• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 955
  • Last Modified:

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


 
0
ncw
Asked:
ncw
  • 3
  • 3
1 Solution
 
CEHJCommented:
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
 
ncwAuthor Commented:
Yes I saw the jamod project in my searches. Would I be better to create an interface with Perl?
0
 
CEHJCommented:
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
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
objectsCommented:
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
 
ncwAuthor Commented:
Any example code?
0
 
CEHJCommented:
:-)

Sorry - i can't give you any code - i'm completely unfamiliar with the APIs. There should be samples in the downloads though
0
 
ncwAuthor Commented:
Thanks for the link anyway.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now