advertisement
from the <>< department...
Java modbus library
Software, including programming, OS issues, etc. topic
Posted by Nicram on 17 February, 2011 - 8:50 am
I'm looking for free modbus library for java. I found Jamod library, but I'm not sure that this library is still developed and supported.

When I try to run examples supplied with Jamod, I receive an error that some javax.comm libraries (Java communications api) are missing. But when I try to download these libraries from Java site, there are no libraries for Windows platform cuz Windows is no longer supported :(

I need to write simple modbus application in java under windows, but don't know what to do?


Posted by pvbrowser on 18 February, 2011 - 10:16 am
You could take our C++ library and wrap it with http://swig.org for useing it from Java.
http://pvbrowser.org/pvbrowser/sf/manual/rllib/html/classrlModbus.h tml

The library is part of
http://pvbrowser.org

But you can download the library as a separte package from
http://pvbrowser.de/pvbrowser/tar/rllib.tar.gz


Posted by Nicram on 21 February, 2011 - 3:36 am
i found that javax.comm library could be replaced by rxtx library
http://rxtx.qbang.org/wiki/index.php/Main_Page


Posted by Frank O'Gorman on 21 February, 2011 - 4:58 am
RXTX (http://rxtx.qbang.org/) provide a Java serial comms implementation that should work with Jamod, although you will probably have to build Jamod yourself in order to use it - see http://jamod.sourceforge.net/development/serial_slave_howto.html.

I have never used Jamod, so if you need further help you should probably try the Jamod forum (http://sourceforge.net/projects/jamod/forums).

Frank O'Gorman
Wingpath Software Development


Posted by Steve on 18 May, 2011 - 7:23 am
I have used Jamod extensively in Modbus/TCP where we have rtu nodes i use a telemechanique TSXETG100
as a crossover bridge


Posted by Edgar Hilton on 10 August, 2012 - 12:10 pm
I've used Jamod for years in many Linux and Windows environments. I've had no problems with Jamod, and I've used it for Modbus/TCP, and Modbus/RTU. It's not the most beautiful library (lots of System.outs and System.errs) but it does not affect its behavior.

You need the rxtx library, and yes, you need to tell Jamod to use this library. The instructions are uber simple (it's been a while since I've done this, but I think it was just a matter of commenting out something in the build file).

Regards
-Edgar


Posted by Julie Haugh on 11 August, 2012 - 6:00 am
jamod is mostly not being developed, and appears to have been out of active development for quite a while. The project owner will insist otherwise, but too many people have reached the same conclusion.

My company makes hardware and software that relies on Modbus for communication, so I decided it was time to fork "jamod" and came out with "j2mod".

I'd been using a version of "jamod" for several years that I'd patched and updated quite a bit, so "j2mod" is mostly ready for production use. The only untested features are all of the messages "jamod" did not support. I believe it's the only open source product with support for READ FILE RECORD and WRITE FILE RECORD. The test functions for those two commands are some of the first I added.

You can download the source and Javadocs from SourceForge --

https://sourceforge.net/projects/j2mod/files/

And, of course, it's free.

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2013 Nerds in Control, LLC. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.


Fortune
HE: Let's end it all, bequeathin' our brains to science.
SHE: What?!? Science got enough trouble with their ___OWN brains.
-- Walt Kelley
Advertise here
Advertisement
our advertisers
Help keep our servers running...
Patronize our advertisers!
Visit our Post Archive