ttyS0 linux - ELS61T-E2 | Telit Cinterion IoT Developer Community
May 5, 2021 - 2:07pm, 1451 views
Hello,
I would like to use the serial port of the board with an application installed with openwrt packet management.
Serial port ttyS0 is not available, I suppose because it is used by the JAVA machine.
How can I disable the JRE to use this serial port ? Or there is another reason ?
Thanks
Hello,
Please check "Serial/Interface/Allocation" setting of AT^SCFG. There are more than one USB port available for AT commands. Java MIDlets inside the module can access any interface and then it is not available for AT commands.
Dou you have the orange LAN terminal with OpenWrt system or you own hardware with OpenWrt running on it?
Regards,
Bartłomiej
Hello,
Thanks for your answer. We are using the orange LAN terminal.
I think my request was not very clear. We don't need to use AT commands. The application is running under Linux, and need to use the RS232 serial port and the cellular connectivity from the modem. We use ssh to setup the application and we will add the application to the init.d folder, in order to start it when the modem is powered on. The data collected by the application need to be transmitted to the RS232 port, this is the step we are not able to perform currently.
Thus the JAVA layer is not useful for us, and I think that it prevents to use the /dev/ttyS0 serial port.
Thanks for your help.
Benoît
Hello,
LAN terminal includes a processor running OpenWrt system and ELS61 module. It is intended and configured for providing network connection to device connected over LAN port. OpenWrt controls the LAN port and uses the ELS61 module as a modem. Both are connected over USB. One of the USB ports is used to establish the network connection and the other to provide ELS61's AT interface over LAN.
There should be one USB port free which could be used inside OpenWrt for any custom logic.
RS232 port available on the casing is a direct connection to the ELS61 module. So it can't be controlled and accessed by OpenWrt.
If you have your device connected over RS232 to the module and would like to communicate with it from OpenWrt system you would probably need a bridge between RS232 and USB. It could be done as a Java MIDlet for ELS61 module. Or please see AT^SCFG "Serial/Ifc" command in the AT spec doc - it allows to set up a transparent communication link between the ASC1 interface and other interfaces of the module, for instance one of the USBs. ASC1 lines should be available on the GPIO connector of the terminal. Please see the terminal's HW spec for more.
Best regards,
Bartłomiej
Hello,
Thanks for your answer.
It will help us.
I wish you a nice weekend.
Benoît