anyypsilon
Posts: 2
Joined: Fri Dec 26, 2014 5:01 pm

Libmodbus on raspberry pi

Fri Dec 26, 2014 5:05 pm

Hi,

did any try the libmodbus library on the raspberry pi.
I wrote a slave program, this woks. I just have some problems to work as a master.

Has anyone a living example code?

danjperron
Posts: 3508
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: Libmodbus on raspberry pi

Fri Dec 26, 2014 5:49 pm

I use it a lot to control some build-in I/O remote . Works like a charm in master mode if you are using an USB to RS-485 adapter.

This is the post.
http://www.raspberrypi.org/forums/viewt ... 12#p538112


This is the github. You will have some code on my github. Check 'configPIC.c'. I use libmodbus on it.

https://github.com/danjperron/PIC_MULTI_10_IO


I have some spare time today, I will translate my french document. https://docs.google.com/document/d/1JIR ... sp=sharing

Daniel

User avatar
iinnovations
Posts: 621
Joined: Thu Jun 06, 2013 5:17 pm

Re: Libmodbus on raspberry pi

Fri Dec 26, 2014 6:26 pm

CuPID Controls :: Open Source browser-based sensor and device control
interfaceinnovations.org/cupidcontrols.html
cupidcontrols.com

Return to “C/C++”