modbus: add nxmodbus#3459
Conversation
|
here two scripts in python that can be used for testing: |
|
Whoah! Amazing work BIG THANK YOU @raiden00pl !! =) Can we put the python test scripts under nuttx/tools/modbus? These are very handy for testing and I created something like that myself too. Would be nice to have them in the repo :-) Very popular GUI open-source modbus client application is https://sourceforge.net/projects/qmodmaster/. |
acassis
left a comment
There was a problem hiding this comment.
@raiden00pl Amazing work! Kudos!
masc2008
left a comment
There was a problem hiding this comment.
Overall, this is a great feature!
|
@cederom I don't like the idea of putting app-specific things in the NuttX repo, but I can include these in nuttx-apps if you find it useful |
05ee52d to
0c1fed9
Compare
NxModbus is a lightweight Modbus protocol stack implementation for NuttX RTOS. This commit adds: - nxmodbus stack - nxmbserver - Modbus Server (Slave) example - nxmbclient - Modbus Client (Master) tool Supported Modbus transports: - ASCII - RTU over serial port - TCP - RAW (ADU) for custom transport implementations Signed-off-by: raiden00pl <raiden00@railab.me>
|
Thank you @raiden00pl I am prototyping a new board right now, it should be ready this week maybe next week, then I will play with your stack, thank you again for sharing your solution!! :-) |
Summary
NxModbus is a lightweight Modbus protocol stack implementation for NuttX RTOS.
This commit adds:
Supported Modbus transports:
It takes some concepts from FreeModBus and some from Zephyr Modbus implementation.
Impact
new modbus stack
Testing
simulator for RTU, qemu-intel64 for TCP, nucleo-c071rb for RTU.
response time on nucleo-c071rb is 10-20ms so it fixes my main issue with freemodbus #3037:
