title: What modbus library should I use for modbus protocol for GCC
body: <p>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.</p>
  
  <ol>
  <li><p>It has to be opensource, since we are opensource geeks.</p></li>
  <li><p>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.  </p></li>
  <li><p>Wide user base: What we believe is that greater the users of the code, more the stability of the code. </p></li>
  </ol>
  
  <p>I came across two such libraries:</p>
  
  <p><a href="http://www.freemodbus.org" rel="noreferrer">http://www.freemodbus.org</a></p>
  
  <p>and    </p>
  
  <p><a href="http://pes.free.fr/" rel="noreferrer">libmodbus</a></p>
  
  <p>Are there any more modbus libraries. Please suggest with pros and cons </p>