Solved

Read serial data using Modbus protocol on Linux

Posted on 2004-08-23
7
796 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

729 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