No response from AT command (Gemalto EHS6T-Lan) | Telit Cinterion IoT Developer Community
October 5, 2017 - 5:48am, 5083 views
Hi Guys,
My Gemalto modem hung after some period of time if no usage. I won't have any response from AT command after I access via telnet and port and issue the AT command. It just hung there and seems waiting for response.
I checked on the log file under /var/log/smsd.log and it's not updated. Last messages was as following. After I restart the modem, it will be working fine after that.
The only file that up to dated when I have the problem is the folder named /tmp/lock with "LCK..ttyACM4" file within it which have number which I suspecting is PID. When I try to find the process the file auto deleted.
Not sure what's the problem here
2017-10-04 11:36:41,6, ehs6: Selecting PDU mode 2017-10-04 11:36:42,7, ehs6: -> AT+CMGF=0 2017-10-04 11:36:42,7, ehs6: Command is sent, waiting for the answer 2017-10-04 11:36:42,7, ehs6: <- OK 2017-10-04 11:36:42,6, ehs6: Checking memory size 2017-10-04 11:36:42,7, ehs6: -> AT+CPMS? 2017-10-04 11:36:42,7, ehs6: Command is sent, waiting for the answer 2017-10-04 11:36:42,7, ehs6: <- +CPMS: "ME",0,4,"ME",0,4,"ME",0,4 OK 2017-10-04 11:36:42,6, ehs6: Used memory is 0 of 4 2017-10-04 11:36:42,6, ehs6: No SMS received 2017-10-04 11:36:52,6, ehs6: Checking device for incoming SMS 2017-10-04 11:36:52,6, ehs6: Checking if modem is ready 2017-10-04 11:36:53,7, ehs6: -> AT 2017-10-04 11:36:53,7, ehs6: Command is sent, waiting for the answer 2017-10-04 11:36:53,7, ehs6: <- OK 2017-10-04 11:36:53,6, ehs6: Pre-initializing modem 2017-10-04 11:36:53,7, ehs6: -> ATE0+CMEE=1;+CREG=2 2017-10-04 11:36:53,7, ehs6: Command is sent, waiting for the answer 2017-10-04 11:36:53,7, ehs6: <- OK 2017-10-04 11:36:53,6, ehs6: Initializing modem 2017-10-04 11:36:54,7, ehs6: -> AT+CPMS="ME","ME","ME" 2017-10-04 11:36:54,7, ehs6: Command is sent, waiting for the answer 2017-10-04 11:36:54,7, ehs6: <- +CPMS: 0,4,0,4,0,4 OK 2017-10-04 11:36:54,7, ehs6: -> AT+CSQ 2017-10-04 11:36:54,7, ehs6: Command is sent, waiting for the answer 2017-10-04 11:36:54,7, ehs6: <- +CSQ: 15,99 OK 2017-10-04 11:36:54,6, ehs6: Signal Strength Indicator: (15,99) -83 dBm (Good), Bit Error Rate: not known or not detectable 2017-10-04 11:36:54,6, ehs6: Checking if Modem is registered to the network 2017-10-04 11:36:55,7, ehs6: -> AT+CREG? 2017-10-04 11:36:55,7, ehs6: Command is sent, waiting for the answer 2017-10-04 11:36:55,7, ehs6: <- +CREG: 2,1,"2EE1","04B0265B",6 OK 2017-10-04 11:36:55,6, ehs6: Modem is registered to the network 2017-10-04 11:36:55,6, ehs6: Selecting PDU mode 2017-10-04 11:36:55,7, ehs6: -> AT+CMGF=0 2017-10-04 11:36:55,7, ehs6: Command is sent, waiting for the answer 2017-10-04 11:36:55,7, ehs6: <- OK 2017-10-04 11:36:55,6, ehs6: Checking memory size 2017-10-04 11:36:56,7, ehs6: -> AT+CPMS? 2017-10-04 11:36:56,7, ehs6: Command is sent, waiting for the answer 2017-10-04 11:36:56,7, ehs6: <- +CPMS: "ME",0,4,"ME",0,4,"ME",0,4 OK 2017-10-04 11:36:56,6, ehs6: Used memory is 0 of 4 2017-10-04 11:36:56,6, ehs6: No SMS received 2017-10-04 11:37:06,6, ehs6: Checking device for incoming SMS 2017-10-04 11:37:06,6, ehs6: Checking if modem is ready 2017-10-04 11:37:06,7, ehs6: -> AT 2017-10-04 11:37:06,7, ehs6: Command is sent, waiting for the answer 2017-10-04 11:37:06,7, ehs6: <- OK +CREG: 1,"2EE1","04B02658",6 2017-10-04 11:37:06,6, ehs6: Pre-initializing modem 2017-10-04 11:37:07,7, ehs6: -> ATE0+CMEE=1;+CREG=2 2017-10-04 11:37:07,7, ehs6: Command is sent, waiting for the answer 2017-10-04 11:37:17,7, ehs6: put_command expected (OK)|(ERROR), timeout occurred. 1. 2017-10-04 11:37:17,7, ehs6: <- 2017-10-04 11:37:17,3, ehs6: Modem did not accept the pre-init string 2017-10-04 11:37:17,6, ehs6: Initializing modem 2017-10-04 11:37:17,7, ehs6: -> AT+CPMS="ME","ME","ME" 2017-10-04 11:37:17,7, ehs6: Command is sent, waiting for the answer 2017-10-04 11:37:27,7, ehs6: put_command expected (OK)|(ERROR), timeout occurred. 2. 2017-10-04 11:37:27,7, ehs6: <- 2017-10-04 11:37:27,7, ehs6: -> AT+CPMS="ME","ME","ME" 2017-10-04 11:37:27,7, ehs6: Command is sent, waiting for the answer 2017-10-04 11:37:37,7, ehs6: put_command expected (OK)|(ERROR), timeout occurred. 3.
Hello,
You wasn't able to sent AT commands over telnet. Did you try to establish a new connection also? Have you tried on a physical interface?
Was it an incident or is that happening regularily?
Please check the module's firmware version with ATI1 command.
Regards,
Bartłomiej
Tried with new connection but still the same. The only way to recover would be restart the terminal. I haven't tries with pyhical interface.
So far it happened twice whereby the same symptom that the modem idle without usage for few days. Currently I'm trying to monitor it just to make sure it's idle or something else that causing this problem.
The firmware version as following:
Cheers,
PangYau
Hello,
Please connect to RS232 interface and log the output to verify if anything happens (any output is printed) when the modules stops responding via telnet. You can also verify, if it will happen again, if the module replies on RS232.
Please check the firmware again with ATI1 command to get the full information about the firmware.
Regards,
Bartłomiej
Hi,
Just saw your message, due to that haven't able to get the message via RS232. Anyhow, the problems looks like swap space issue instead of physical disk space problem. As I noticed the smsd.log size consumed 27.6M and shrunk down to 21.2K automatically after I restarted the terminal.
Today, when I tried to login again. I having following error:
For disk space related trace:
Btw, the ATI1 outut as following:
As of now I will create housekeeping script and assign to cronjob and monitor for a while to see if the problem still persist.
Cheers,
PangYau
Hello,
The module's firmware is not the latest. But you've found an interesting thing with the smsd log file which gets quite big. Please write when you have more results.
I was asking for a trace from serial interface or verification if it is possible to send AT commands on serial or USB interface to verify if the wireless module might be to blame here or not. But from what you've writtem it seems that OpenWrt part may cause these problems. Have you modiefied anything for smsd or it behaves like that by default?
Can you say how long it takse for smsd.log file to grow to such size?
Regards,
Bartłomiej
Hi,
I will provide the traces once I have the chance to get the information. So far, one day for the smsd.log to grow such size. Besides IP address, I didn't update any configuration for the smsd.
Btw, where can I get the latest stable firmware?
Cheers,
PangYau
Hello,
Generally you can ask your distributor or local Gemalto technical sales for firmware if you have no access to Gemalto extranet.
If you mean the EHS6 module's firmware there is a newer firmware version available - I can send you.
As for the OpenWrt image I have already sent you. It's not Gemalto made, I'm trying to clarify if there are any updates available.
Regards,
Bartłomiej
Hello,
It seems that currently there is no update for OpenWrt image. But this problem is going to be analyzed and fixed.
Do you already have more information on this issue?
Were you able to prepare a workaround solution like a cronjob to monitor and cleanup this file periodically? Did it solve the problem?
Thanks,
Bartłomiej
Hi!
If you are not using the smsd server, you can also disable it. This server may increase the log heavily.
root@OpenWrt:/tmp# cd log
root@OpenWrt:/tmp/log# ls -l
-rw-r--r-- 1 root root 0 Jul 21 08:25 lastlog
-rw-r----- 1 root root 31260672 Jul 25 07:10 smsd.log (example from my modem large log file)
-rw-r--r-- 1 root root 0 Jul 21 08:25 wtmp
root@OpenWrt:/tmp/log# /etc/init.d/smstools3 disable <-this command disables the server
Best regards,
Antero
Antero Markkula
Communication and Mechatronics
Enkom Active Oy – www.enkom-active.fi
Upseerinkatu 3 A, 02600 Espoo, Finland
Mobile: +358 400 411368
Office: +358 10 204 0000
Fax: +358 10 204 0010
E-mail: antero.markkula@enkom-active.fi