views:

46

answers:

2

Dear all,

We are building a product, which requires modbus communication (both rs-485 and TCP/IP). The code has to run on an embedded device which has Linux running on it. We have following criteria for the selecting the library that we would be using.

  1. It has to be opensource, since we are opensource geeks.

  2. We would give this product to our users and what their application would be we are not aware, hence it has to complete implementation of the modbus protocol.

  3. Wide user base: What we believe is that greater the users of the code, more the stability of the code.

I came across two such libraries:

http://www.freemodbus.org

and

libmodbus

Are there any more modbus libraries. Please suggest with pros and cons

A: 

I am just starting to explore these options as well. My priority is on ease of use which has led me to RModBus since it was the only one that I was able to get immediate results with. However, there is also a Python library, Pymodbus, that appears to be quite complete in implementation.

I'm sorry, I just figured out that GCC is a compiler; my answer is way off topic.

Again, I was looking for a scripting language that my noob self could be more comfortable in. It really came down to a question of language rather than the library itself. Oh, I am only using the TCP/IP stack at this time, which somewhat simplifies it as well.

arriflex
A: 

I'd suggest libmodbus, it works well and is cross platform.

https://launchpad.net/libmodbus

xmr