SocketConnection state | Telit Cinterion IoT Developer Community
January 19, 2017 - 12:14pm, 13115 views
Hello,
How to check state of a SocketConnection with Java API?
After a SocketConnection opened, if other party closes the socket or if it drops due to network conditions how to be aware of that? Is there a notification to catch?
Best Regards,
Ergün.
Hello Mr. Barlomiej,
Starting without sim card returns 99,99 for the first time. But AT+CSQ afterwards always return other values. No idea why this is happening. Can you kindly test it on EHS5 module ? I have tested it so many ***** with the same result ( EHS5 starts without sim card and I give AT command AT+CSQ and it returns me 99,99 and if I give it again after 1 minute 14,99 to 16,99 range of values are returned which is obviously illogical... Given AT+CREG? returns not registered not searching all the time which is according to specifications ).
Best Regards,
Umair
Hello,
Could you check the firmware version with ATI1 command so I could use the same and check if you have the latest?
Thanks,
Bartłomiej
Hello Mr. Bartlomiej,
Firmware version :
Cinterion
EHS5-E
REVISION 03.001
A-REVISION 00.000.42
Best Regards,
Umair
Hello Umair,
I have tested this on exactly the same FW. No such results. In my case CSQ always returns 99,99. Could you please try to check what these commands will return (in both cases when CSQ shows 99, and when is shows 14,16...):
AT^SMONI
AT^COPS?
AT^CFUN?
AT+XRAT?
I was able to get csq only when trying to dial an emergency number like ATD112; then module started to show the other values.
Best regards,
Michał
Hello Mr. Michal,
Thanks for your reply.
In my scenario at the first place after getting the outputs of signal strength and registration status I call Connector.open() and it would fail obviously because no sim card is there. Afterwards in the second attempt a valid value of signal strength is achived.
1) When CSQ shows 99,99 I am getting these values:
AT^SMONI
^SMONI: 2G,SEARCH,SEARCH
OK
AT^COPS?
ERROR
AT^CFUN?
ERROR
AT+XRAT?
+XRAT: 1,2
I also try to connect to the network using correct credentials using Connector.open() after printing the outputs of your recommended AT commands.
2) When CSQ shows a valid strength ( Note it can be any valid value) I am getting these values:
AT^SMONI
^SMONI: 2G,39,-91,262,02,200E,26E1,16,16,3,4,-,LIMSRV
OK
AT^COPS?
ERROR
AT^CFUN?
ERROR
AT+XRAT?
+XRAT: 1,2
I think at the first place it was searching for a valid cell that is why no signal strength is available ( it can be seen as u mentioned by AT^SMONI).
Secondly, the output of AT^SMONI shows it has found a valid cell that is why a valid signal strength is available.
But one interesting thing is that when I give AT+CSQ manually without trying to connect to the network using Connector.open() I always get 99,99. Does it have to do something with Connector.open()?
Best Regards,
Umair
Hi Umair,
as Michal is out of office I overtake this case - I tested your scenario and I can confirm that indeed module initially shows CSQ 99,99 but later it show exact values. This is related to fact that module even without SIM after some time ( AT+COPS=0 command or ATD112; speed up this process) camp to some network cell to make possible quick emergency call ( LIMSRV showed at the end of AT^SMONI output).
This is metnioned in AT spec under AT+CSQ command description:
"The results of AT+CSQ are valid only after the ME has successfully finished network registration. Otherwise, the commands returns only +CSQ: 99,99."
This note is a bit misleading because module in this scenario did not register to the network ( is impossible because there is no SIM card) but only camp to the network cell.
You have to somehow handle this specific scenario ...
Best regards
Lukasz
Hello Mr. Lukasz,
I have tested it in 2 stages:
1st Stage : Start the hardware without sim card and check registration status . Not registered and 99,99 are observed. After that I call Connector.open() method using a MIDlet and it timeouts after 1 minute or so since no sim card is inserted.
2nd Stage : Now, asking for regisration status gives not registered, but asking for signal strength gives a valid value.
Have you tested exactly the above mentioned scenario ?
This is metnioned in AT spec under AT+CSQ command description:
"The results of AT+CSQ are valid only after the ME has successfully finished network registration. Otherwise, the commands returns only +CSQ: 99,99.
I am reading Cinterion EHS5-E AT Command Set and I can't find this exact description over there.
Best Regards,
Umair
Hi Umar,
yes I did test like you and got such result. Regarding note in AT spec it is added in newer version you must probab ly using old version in my AT spec ver EHS6_atc_v03001a.pdf it is written under AT+CSQ command description at the bottom.
Best regards
Lukasz
Hello Mr. Lukasz,
Thanks for your reply. Did you also test on the same firmware version I have :
Cinterion
EHS5-E
REVISION 03.001
A-REVISION 00.000.42
This is my current version.
Can I also get a copy of the updated version ?
Best Regards,
Umair
Hello Umair,
You can find the new doc here. I have just updated it:
https://iot-developer.thalesgroup.com/documentation/cinterion%C2%AE-conc...
Best regards,
Michał