Link to home
Start Free TrialLog in
Avatar of ncw
ncw

asked on

Read serial data using Modbus protocol on Linux

How can I read data from an external device connected to the com port using the Modbus protocol on Linux. I'm a VB6 developer who's done a bit of java, C, and C++ a while ago, some treat me as a beginner, certainly with Linux! I need to run the exe or script from Cricket:
http://cricket.sourceforge.net/

Info found so far:
http://modbus.control.com/dev/1026196999/index_html


 
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ncw
ncw

ASKER

Yes I saw the jamod project in my searches. Would I be better to create an interface with Perl?
Well if you use Java and Cricket, you're going to have to go through two interpreters (Java + Perl) before you even get at anything.

>>Would I be better to create an interface with Perl?

Possibly - you're far more likely to find a Perl interpreter on a Linux box than a Java one, but i suppose it also depends on your degree of familiarity with each of the two
you can use jamod to access the port and have cricket use the output.

might also find something useful at:
http://www.modbus.pl/
Avatar of ncw

ASKER

Any example code?
:-)

Sorry - i can't give you any code - i'm completely unfamiliar with the APIs. There should be samples in the downloads though
Avatar of ncw

ASKER

Thanks for the link anyway.