EHS5 Modbus RTU Java | Telit Cinterion IoT Developer Community
May 10, 2017 - 5:31pm, 3886 views
Hello!
Could anyone share Java program with EHS5 working as Modbus RTU master?
Or maybe only a part of a program, where Modbus RTU is realized?
Documentation for EHS5 contains nothing about Modbus RTU so I don't know where to start.
Hello,
Gemalto does not provide any Modbus libraries. The EHS5 module provides among others RS232 interface which can be used by the Java application - the API for the serial port is available (it can be also used for USB). There is also a terminal version which provides RS485 interface. Then you would need to use (and probably adopt) or implement on your own some additional library for Modbus protocol that would work on top of the serial port API.
Unfortunately I don't have any example but I'm sure that there are customers that have realized such solutions.
Best regards,
Bartłomiej
Thank you for the answer.
I understand about Modbus.
May be there is an example with sending/recieving massages via RS232 or RS485 port no matter what kind of massages. I just want to understand how to send or recieve any kind of massages from Java-application via these ports.
Hello,
If you have installed the installation CD you should already have some example projects under "C:\Users\Public\Cinterion\EHS5 WTK Examples" or similar path. There should be rs232demo project. There's also a short example in the API documentation.
Besides that it should be possible to find something in our Knowledge Base. For example I have found the following:
https://iot-developer.thalesgroup.com/tutorial/ehs8-and-gps-receiver
https://iot-developer.thalesgroup.com/showcase/paho-project-110-july-201...
https://iot-developer.thalesgroup.com/showcase/uart-ftp-pipe-example-jav...
Best regards,
Bartłomiej
Thanks a lot!