Newsletter
June 12, 2020 - 11:19am, 2495 views
I want to connect to an IP/Port on the local network with the Java code I wrote.
Where can I find a sample code about this?
Hi,
please check install CD package. In directory: \All Users\Cinterion\EHS5 WTK Examples\ you will find some examples, e.g. NetDemo.
Best regards,
Adam
Just to clarify. Inside the terminal, there is other chipset with OpenWrt responsible for Ethernet connection. You won't be able to directly use Java MIDlet to send data from the module over the Ethernet. You can play with CommConnector class to send data over the USB to OpenWrt and implement some logic on OpenWrt side to forward the data through the Ethernet.
Is there a case study (to send data over Ethernet) as you mentioned?
Can you provide quick feedback on this subject?
I need to be able to send simple / small ModBus queries to the devices on the Ethernet side and get the answers.
Example query: Connect to IP:Port over Ethernet on local network. Send a 10 byte query. Wait for a response of 120 bytes. The process is ok.
Hello,
The LAN terminal consists of two parts:
1. The processor with OpenWrt system which controls the LAN port.
2. EHS6 module which is used by OpenWrt as a modem to provide internet connection for the devices connected to LAN port.
So in this solution the Gemalto module is only a modem and does not have a control on OpenWrt system and LAN connection. It is connected to OpenWrt over USB - one channel is used for internet connection and one is used to provide the module's AT interface access over LAN. From the MIDlet on the module you can only access the network and local interfaces like USB. Any code/script for sending data over LAN would have to be located in OpenWrt system.
Best regards,
Bartłomiej