January 19, 2017 - 12:14pm, 13115 views
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?
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 ).
Could you check the firmware version with ATI1 command so I could use the same and check if you have the latest?
Hello Mr. Bartlomiej,
Firmware version :
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...):
I was able to get csq only when trying to dial an emergency number like ATD112; then module started to show the other values.
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:
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:
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()?
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 ...
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 ?
"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.
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.
Thanks for your reply. Did you also test on the same firmware version I have :
This is my current version.
Can I also get a copy of the updated version ?
You can find the new doc here. I have just updated it:
© 2013-2023 Thales DIS AIS Deutschland GmbH - a Telit Cinterion Company