Hi,
You should not have too many problems getting the MODBUS RTU slave to work on mbed. Open the program at http://mbed.org/users/cam/programs/Modbus/5zdqv program in the mbed Compiler by clicking the "Import this program" link.
The main.cpp source file has the MODBUS settings in the "Defines" area and the following line 43 does the serial port settings.
eStatus = eMBInit( MB_RTU, SLAVE_ID, 0, 9600, MB_PAR_NONE );
The program should compile with just a couple of warnings.
Run modpoll with the following options: MODPOLL -m rtu -a 10 -r 1000 -c 4 -t 3:hex -b 9600 -d 8 -p none COM2. Of course select COM number to match the mbed com port. Use modpoll -h for help on the options.
I hope that is sufficient to get you going.
Peter
Hi everybody,
I would like to know if it's possible to communicate with MODBUS protocol between mbed and an other device ?