Help to configure EHS6T Lan modem for python GsmModem module | Thales IoT Developer Community
February 10, 2022 - 12:21pm, 1330 views
Hello,
I have just purchased an EHS6T Lan modem and would like to use it with python GsmModem module (https://pypi.org/project/python-gsmmodem).
I already adapted the module to work with Coniugo Ethernet LAN Modem ( https://www.coniugo.de/tl_files/dateien/downloads/datenblaetter/GSM-Modems-EN/Datasheet_GPRS_Modem_RS232_USB_LAN.pdf ) : I use the LAN version (700400170S (LAN-Version).
With Cinterion Modem, I have errors when connecting and Modem close doesn't work.
Need help for configure the EHS6T in my context.
Regards,
Hello,
Thanks for response. This just for testing. The Modem will never be used manually.
My issue result output: New lines (\n) are not processed ?
May be character set issue ?
Thanks.
Hello,
If you ask how to terminate the reply data that you enter after '>' you need so send <CTRL-Z> which would be SUB character in ASCII table (26, 0x1A).
BR,
Bartłomiej
Thank you for your response.
Things are being more clear in my mind. So here are my clear requests ;
1) How to configure the modem to reply to USSD without adding "CTL+Z" at then end.
2) For the output display, which parameter should I send to have a normal output (without "\OA" instead of new line. Attached header image is the same USSD command response from CINTERION MC35i Modem and EHS6T one at the footer for comparison .
Thanks for your availbility and help.
Thanks.
Hello,
If USSD status returned with "+CUSD:" URC is 1 and the URC ends with ">" the reply is necessary and ***** to be terminated with <CTRL-Z> or aborted with <ESC>. You can't change this. But it is only a matter of adding the character code 26 (or 0x1A in hex) in case of <CTRL-Z>.
As for these escape sequences - maybe it is a matter of the original text. Have you also tested both modules with exactly the same USSD code?
BR,
Bartłomiej
Hello,
Finally, I updated my python program to fix the CTL+Z issue.
Will check the text encode in modem configuration AT Commands reference.
Thanks