Derek_Fairbairn
Newbie level 3
- Joined
- Sep 2, 2009
- Messages
- 3
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Perth Australia
- Activity points
- 1,324
Hi,
I've been having a problem with the SimCom modem taking a long time to complete the AT+CIICR command.
This only appears to happen when the GSM signal level is marginal. (The AT+CSQ value is around 10). If the signal goes higher then it succeeds and if the signal goes lower it fails. However at this level it appears to take forever to complete.
These are the commands that were sent:
>AT+CSQ
+CSQ: 10,2
OK
>AT+CIPSTATUS
STATE: IP CLOSE
OK
>AT+CIPSHUT
SHUT OK
>AT+CIPSTATUS
OK
STATE: IP INITIAL
>AT+CIPSPRT=1
OK
>AT+CDNSORIP=0
OK
>AT+CIPSRIP=1
OK
>AT+CIPHEAD=1
OK
>AT+CGDCONT=1,"IP","internet"
OK
>AT+CSTT="internet","",""]
OK
>AT+CDNSCFG="208.67.222.222",""
OK
>AT+CIICR
+PDP: DEACT
+PDP: DEACT
+CREG: 0
+CGREG: 0
+CREG: 2
+CREG: 1
+CGREG: 1
+CREG: 0
+CGREG: 0
+CREG: 2
+CREG: 1
+CGREG: 1
+CREG: 0
+CGREG: 0
+CREG: 2
+CREG: 0
+CREG: 2
+CREG: 0
+CREG: 2
+CREG: 0
+CREG: 2
+CREG: 0
After 10 minutes there is still no OK or ERROR response for the AT+CIICR so my application times out.
I don't know how to deal with this situation. If it returns an ERROR then I could attempt a new connection. However it doesn't return anything apart from the +CREG and +CGREG URC events. I'm not sure if I should continue sending more AT commands when the AT+CIICR command hasn't finished.
Is there some way to interrupt the AT+CIICR command and start again?
Is there anything wrong with the commands that I am using?
Or is this a SIM340 or hardware fault?
99% of the time I can send/receive GPRS data normally, its just every now and again this happens.
I've been having a problem with the SimCom modem taking a long time to complete the AT+CIICR command.
This only appears to happen when the GSM signal level is marginal. (The AT+CSQ value is around 10). If the signal goes higher then it succeeds and if the signal goes lower it fails. However at this level it appears to take forever to complete.
These are the commands that were sent:
>AT+CSQ
+CSQ: 10,2
OK
>AT+CIPSTATUS
STATE: IP CLOSE
OK
>AT+CIPSHUT
SHUT OK
>AT+CIPSTATUS
OK
STATE: IP INITIAL
>AT+CIPSPRT=1
OK
>AT+CDNSORIP=0
OK
>AT+CIPSRIP=1
OK
>AT+CIPHEAD=1
OK
>AT+CGDCONT=1,"IP","internet"
OK
>AT+CSTT="internet","",""]
OK
>AT+CDNSCFG="208.67.222.222",""
OK
>AT+CIICR
+PDP: DEACT
+PDP: DEACT
+CREG: 0
+CGREG: 0
+CREG: 2
+CREG: 1
+CGREG: 1
+CREG: 0
+CGREG: 0
+CREG: 2
+CREG: 1
+CGREG: 1
+CREG: 0
+CGREG: 0
+CREG: 2
+CREG: 0
+CREG: 2
+CREG: 0
+CREG: 2
+CREG: 0
+CREG: 2
+CREG: 0
After 10 minutes there is still no OK or ERROR response for the AT+CIICR so my application times out.
I don't know how to deal with this situation. If it returns an ERROR then I could attempt a new connection. However it doesn't return anything apart from the +CREG and +CGREG URC events. I'm not sure if I should continue sending more AT commands when the AT+CIICR command hasn't finished.
Is there some way to interrupt the AT+CIICR command and start again?
Is there anything wrong with the commands that I am using?
Or is this a SIM340 or hardware fault?
99% of the time I can send/receive GPRS data normally, its just every now and again this happens.