I need a tester much like modpoll but one that runs on Raspbian OS. I need to check if my Raspberry Pi is able to communicate with my modbus slaves.

  • 1
    Looks like, modpoll requires some licenced hpp files to compile from the source. You can use libmodbus or something similar (pymodbus on python) to test communication. Commented Dec 31, 2015 at 9:44
  • 1
    @dastaan I tried pymodbus and other libraries but none of them worked. Thats why I was searching for something that I can directly run on Rpi to check if anything is wrong with hardware... Commented Dec 31, 2015 at 10:17
  • 1
    I regularly use libmodbus on my Rpi without any problem. Use this wiki post, github.com/stephane/libmodbus/wiki/Libmodbus-on-Raspberry-pi for step by step guide, how to install libmodbus and then go through test programs. Hope it helps. Commented Dec 31, 2015 at 10:23
  • 1
    @dastaan I have been trying to make it work on Rpi for weeks now. Are there any configurations that need to be done on RPi? I'll go through the above link. Commented Dec 31, 2015 at 10:29
  • 1
    Which port are you using for RTU ? Default Rpi (ie, /dev/ttyAMA0) or using off the usb to serial converter (ie, /dev/ttyUSB0 or /dev/ttyACM0) ? If you're using ttyAMA0, make sure to turn off serial console on raspbian which is turned on by default. Commented Dec 31, 2015 at 10:33


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.