- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hello:
I have been trying to complete an industrial prototype using a Galileo Gen 2, and the project I am working on requires the use of the Modbus RTU. I found code at Cooking Hacks (https://www.cooking-hacks.com/documentation/tutorials/modbus-module-shield-tutorial-for-arduino-rasp... Modbus Tutorial for Arduino, Raspberry Pi and Intel Galileo) that says it will work with the Galileo, but it doesn't, as I receive this error:
.../Arduino/libraries/RS485/SPI.h:54:22: fatal error: avr32/io.h: No such file or directory compilation terminated.
I would simply comment out the offending code if I could, but it doesn't look like that will be possible, as it is at the core of the SPI.h functionality. I found this earlier discussion of a similar issue: . This issue, though, is a couple of years old. Has anyone written code to port Modbus functionality to a Galileo Gen 2 at this stage? If so and you can point me in the right direction, I would appreciate it.
If not, I found this as an option (http://pymodbus.readthedocs.io/ Welcome to PyModbus's documentation! — Pymodbus 1.0 documentation ), but I am not sure if it will do the trick. If I can run code straight from the Arduino IDE, that would be better. Otherwise, I will give this a shot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi,
Modbus library is used in UPM for Intel Galileo. Check the following modules of UPM which uses Modbus library:
- hwxpxx (https://github.com/intel-iot-devkit/upm/blob/master/src/hwxpxx/hwxpxx.cxx# L76 upm/hwxpxx.cxx at master · intel-iot-devkit/upm · GitHub )
- h803x
- t6713
- t3311
BTW, you may check on your Galileo board that /usr/lib/libmodbus.so is present or not.
BR,
xbolshe
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi,
Modbus library is used in UPM for Intel Galileo. Check the following modules of UPM which uses Modbus library:
- hwxpxx (https://github.com/intel-iot-devkit/upm/blob/master/src/hwxpxx/hwxpxx.cxx# L76 upm/hwxpxx.cxx at master · intel-iot-devkit/upm · GitHub )
- h803x
- t6713
- t3311
BTW, you may check on your Galileo board that /usr/lib/libmodbus.so is present or not.
BR,
xbolshe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
xbolshe:
Thanks very much for this. I totally missed it in my search. I am having some problems updating the versions for mraa and upm using Intel's suggested approach, but I am sure I can figure that out.
Thanks again!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
xbolshe:
I managed to get mraa (1.1.2.5) and upm (0.7.2.11) updated on my board, but the libmodbus file isn't present. I looked at http://iotdk.intel.com/repos/3.5/iotdk/galileo/i586/ http://iotdk.intel.com/repos/3.5/iotdk/galileo/i586/ and see that libmodbus is there. Is this something that was included recently? I created my SD card image about two months ago, so if it is more recent than that, it would explain why it isn't there. I am new to Linux, and I am not entirely sure how to go about getting libmodbus onto my board. Any help you can offer is appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi,
as I see libmodbus was added about 3 months ago.
And there is a delay between an official release and source code publishing.
So you may try just to update UPM.
BR,
xbolshe

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page