Solved

Read serial data using Modbus protocol on Linux

Posted on 2004-08-23
7
721 Views
Last Modified: 2008-02-01
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


 
0
Comment
Question by:ncw
  • 3
  • 3
7 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 11872146
Cricket appears to be Perl. You'll have to invoke the Perl interpreter with Runtime.exec or you could try this Modbus library:

http://sourceforge.net/projects/jamod/

0
 
LVL 1

Author Comment

by:ncw
ID: 11872597
Yes I saw the jamod project in my searches. Would I be better to create an interface with Perl?
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 11872759
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
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 92

Expert Comment

by:objects
ID: 11877181
you can use jamod to access the port and have cricket use the output.

might also find something useful at:
http://www.modbus.pl/
0
 
LVL 1

Author Comment

by:ncw
ID: 11879302
Any example code?
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 12045205
:-)

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

Author Comment

by:ncw
ID: 12046821
Thanks for the link anyway.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now