libmodbus on Raspberrpi

117 views
Skip to first unread message

ajay dange

unread,
Oct 14, 2015, 5:49:48 AM10/14/15
to libmodbus
Hello, i am developing an application in which i want to use raspberry pi as a modbus server to which number of devices will be connected.
I have compiled libmodbus on pi & able to run all the programs under \test  folder. now what should i do now if i want to connect devices to raspberry pi GPIO pins and controll them using modbus.
a modbus client will be a program runnning on pc.
What changes do i need to make to source of server.please provide some guidelines.
-regards

Yuvaraj Velumani

unread,
Mar 6, 2017, 12:36:11 PM3/6/17
to libmodbus
Hello,
You can't directly use the modbus library to drive the gpio's because Raspberry pi uses either python library or wiringPi/pigpio libraries to control teh GPIOs.
You need to write your code inside the opensource modbus library.
Reply all
Reply to author
Forward
0 new messages