Getting started

Topics about the Software of Revolution Pi
Post Reply
cerberus78
Posts: 3
Joined: 06 May 2024, 20:24

Getting started

Post by cerberus78 »

Hello,

I'm just getting started with the Raspberry Pi revolution for a school project, and I'm eager to know if there are any examples in C or C++ (preferably C++) for managing IO, Modbus as a network master.

Can you please help me ? i don't know where to start.

Regards
User avatar
dirk
KUNBUS
Posts: 1970
Joined: 15 Dec 2016, 13:19

Re: Getting started

Post by dirk »

Hello cerberus78, that sounds exciting, a school project. It's helpful to have a few good examples in stock. The best place to start is with the video tutorials #20, #21, #22 and 23 on Modbus: https://revolutionpi.com/en/tutorials/v ... rials#VT20

Then of course you can work with C/C++ and use the video tutorial #13 - there is also sample code in the download area: https://revolutionpi.com/en/tutorials/v ... orials#V13

If you like working with Python like I do, I can recommend the gateway tutorial - create an application with less than 10 lines: https://kunbus-gmbh.atlassian.net/servi ... 2379186179

Code examples and a helpful Arduino Modbus RTU coupling can be found here:
https://revolutionpi.com/en/tutorials/downloads#coding
cerberus78
Posts: 3
Joined: 06 May 2024, 20:24

Re: Getting started

Post by cerberus78 »

Thank you very much for your reply, also i have a second question, is there a build in library to manage modbus ? or we need to install common one (apt-get install libmodbus-dev)...


Thank you
Last edited by cerberus78 on 07 May 2024, 12:13, edited 1 time in total.
User avatar
dirk
KUNBUS
Posts: 1970
Joined: 15 Dec 2016, 13:19

Re: Getting started

Post by dirk »

Hi cerberus78, well, Modbus works like a charm with the Revolution Pi, just take a look at the video tutorials #20-23
https://revolutionpi.com/en/tutorials/v ... rials#VT20
Post Reply