Go Down

Topic: New Modbusmq project: Testers needed! (Read 6 times) previous topic - next topic

marioquark

i'm working on Modbusmq, a modification of the libmodbus library (https://launchpad.net/libmodbus by Stephane Raimbault) for the Arduino platform. for now, it's a Modbus TCP slave.

any tester and debugger is appreciated to help me makin' a stable program.

that's the code: http://bazaar.launchpad.net/~marioquark-yahoo/modbusmq/modbusmq/files

thank you,
marioquark

marioquark

i am locked:
timing in TCP management doesn't work as it sould: replies are sent with a delay i don't want. this make timeout occur.

probably this happens due to a too big transmission buffer: i can't resize it! :( nor i can set the TCP_NODELAY option (library doesn't offer this).

any suggestion?

please help me, i think my project could be very useful!

marioquark

my libraty is finished and it seems to work perfectly...  ;D

Arnonh

nice work
can you please explain a bit a about how to use it?

marioquark

ok. i'll write down a few lines, then i'll make a wiki for it:


modbusmq is a ModBus ( http://en.wikipedia.org/wiki/Modbus ) TCP slave (server): briefly, it holds a data map, which can be queried by Modbus clients (PC or other) with a standard protocol.

requirements:
- Arduino Ethernet Shield

usage:
Arduino side
- paste the code in a new project in the Arduino IDE
- change the network params, if needed: IP, Gateway.
- change the slave Address, if needed
- set or unset the DEBUG flag to have debug messages through serial line
PC side:
- start a modbus client to query Arduino IP, with the correct slave modbus address (there are many freeware, eg: ModScan)

TODO:
- test two slaves in the same network.
- test two masters (clients) for the same slave

Go Up