Illegal response to AT+CCID Command: CME ERROR: 805

I’m using the Q24Plus in an embedded application. I am getting a +CME ERROR: 805 response to the AT+CCID command. Since I hadn’t planned for this response it upsets the state machine. The AT_Command_Interface_Guide_Open_AT_Firmware_v6.57d.pdf guide states that I should always at a minimum receive an “OK” response. Here is the problem trace:

: +WIND: 3|Ready for AT|  418190|33661|
: +WIND: 13|Rack Closed|  418305|115|
: ATE0||  418620|315|
: OK||  418648|28|
: AT+CFUN=1||  418840|192|
: Trace End at 14:25:32 09-Dec-2009|
 HMR - COMMAND TIMEOUT |14:22:48 09-Dec-09 |194|
: OK||  420433|1593|
: +WIND: 3|Ready for AT|  420446|13|
: +WIND: 13|Rack Closed|  420553|107|
: AT+CMEE=1||  421430|877|
: OK||  421463|33|
: +CREG: 0||  421644|181|
: +CGREG: 0|Not Registered|  421658|14|
: AT+WIND?||  422140|482|
: +WIND: 511||  422174|34|
: OK||  422180|6|
: AT+WIND=511||  422380|200|
: OK||  422413|33|
: AT+WIND?||  422610|197|
: +WIND: 511||  422644|34|
: OK||  422650|6|
: AT+CREG=1||  422850|200|
: OK||  422878|28|
: AT+CGREG=1||  423070|192|
: OK||  423100|30|
: +WIND: 1|SIM Inserted|  423246|146|
: AT+CPIN?||  424100|854|
: +CPIN: SIM PIN||  424144|44|
: AT+CPIN=1301||  424640|496|
: OK||  425153|513|
: AT+CGMR||  425350|197|
: 657d09gg.Q24PL001 1956364 052907 16:50||  425726|376|
: OK||  425732|6|
: AT+STSF=1||  425930|198|
: OK||  425966|36|
: AT+STSF=2,"1F6BFFFF1F",3,1||  426160|194|
: OK||  426220|60|
: +WIND: 4|Ready for all AT|  433605|7385|
: AT+WMBS?||  434420|815|
: +WMBS: 4,0||  434463|43|
: OK||  434469|6|
: AT+COPS?|Request Operator|  434660|191|
: +COPS: 0|Automatic|  434701|41|
: OK||  434707|6|
: AT+CCID||  434900|193|
: +CME ERROR: 805||  436450|1550|

Normally it looks like this:

: +WIND: 3|Ready for AT| 8644102|33625|
: +WIND: 13|Rack Closed| 8644213|111|
: ATE0|| 8644570|357|
: OK|| 8644598|28|
: AT+CFUN=1|| 8644790|192|
: OK|| 8646346|1556|
: +WIND: 3|Ready for AT| 8646358|12|
: +WIND: 13|Rack Closed| 8646466|108|
: AT+CMEE=1|| 8647340|874|
: OK|| 8647373|33|
: +CREG: 0|| 8647557|184|
: +CGREG: 0|Not Registered| 8647571|14|
: AT+WIND?|| 8648050|479|
: +WIND: 511|| 8648085|35|
: OK|| 8648091|6|
: AT+WIND=511|| 8648290|199|
: OK|| 8648323|33|
: AT+WIND?|| 8648520|197|
: +WIND: 511|| 8648554|34|
: OK|| 8648560|6|
: AT+CREG=1|| 8648760|200|
: OK|| 8648788|28|
: AT+CGREG=1|| 8648980|192|
: OK|| 8649010|30|
: +WIND: 1|SIM Inserted| 8649160|150|
: AT+CPIN?|| 8650010|850|
: +CPIN: SIM PIN|| 8650054|44|
: AT+CPIN=1301|| 8650550|496|
: OK|| 8651069|519|
: AT+CGMR|| 8651260|191|
: 657d09gg.Q24PL001 1956364 052907 16:50|| 8651619|359|
: OK|| 8651625|6|
: AT+STSF=1|| 8651820|195|
: OK|| 8651857|37|
: AT+STSF=2,"1F6BFFFF1F",3,1|| 8652050|193|
: OK|| 8652110|60|
: Trace End at 16:42:54 09-Dec-2009|
 HMR - COMMAND TIMEOUT |16:39:59 09-Dec-09 |64|
 St Err Vend: ss=1 op=10 |16:40:01 09-Dec-09 |65|
: +CGREG: 1|Registered (Home Network)| 8658549|6439|
: +WIND: 4|Ready for all AT| 8660036|1487|
: AT+WIOW=4,1|Modem Green LEDON| 8660037|1|
: OK|| 8660077|40|
: AT+WMBS?|| 8660270|193|
: +WMBS: 4,0|| 8660316|46|
: OK|| 8660323|7|
: AT+COPS?|Request Operator| 8660520|197|
: +COPS: 0|Automatic| 8660564|44|
: OK|| 8660570|6|
: AT+CCID|| 8660770|200|
: +CCID: "8901260430014029180"|SIM#| 8660863|93|
: OK|| 8660869|6|
: AT+WOPEN=1|Start embedded application| 8661070|201|
: OK|| 8661101|31|
: AT+CGCLASS="CG"|| 8661300|199|
: OK|| 8661336|36|
: AT+WIPCFG=1|| 8661530|194|
: OK|| 8661566|36|
: AT+WIPBR=1,6|| 8661760|194|
: OK|| 8661793|33|
: AT+WIPBR=2,6,11,"internet2.voicestream.com"|| 8661990|197|
: OK|| 8662055|65|
: AT+WIPBR=2,6,0,""|| 8662250|195|
: OK|| 8662285|35|

So my question is: "What does this error code mean in this context? Is this a bug or an undocumented feature? How should my application respond to this error at this point? Note that the additional text in the trace is just debugging information printed out during the initialization process.

Hi,

The best explanation I can find for error 805 is “Network interface not available”. (Which REALLY clears things up :smiley: )

Since you are asking for the ICC of the SIM, you will get that even if not connected to the GSM network.

Are you using a standard SIM-card?
Does it work in a cell phone?

/BdeB