Hi Christopher,

I am trying to setup the Telit HE910 with oFono-1.3, I adapted 

a few files using the 1.12 version :

drivers/atmodem/sim.c
  plugins/telit.c
  plugins/udevng.c
I still have this CMER problem though, and I was wondering what patch 
you are refering to in the previous message, so that I can apply it to
my version of oFono.
Thank you in advance,

Etienne


Here is the end of the log from oFono just in case :

ofonod[1680]: plugins/telit.c:telit_post_online() 0x88e8290
ofonod[1680]: Aux: > AT+CGREG=?\r
ofonod[1680]: Aux: < \r\n
ofonod[1680]: Aux: < +CGREG: (0-2)\r\n\r\nOK\r\n
ofonod[1680]: Aux: > AT+CRSM=192,28489\r
ofonod[1680]: Aux: < \r\n+CRSM: 148,4\r\n\r\nOK\r\n
ofonod[1680]: Aux: > AT+CREG=?\r
ofonod[1680]: Aux: < \r\n
ofonod[1680]: Aux: < +CREG: (0-2)\r\n\r\nOK\r\n
ofonod[1680]: Aux: > AT+CSCS?\r
ofonod[1680]: Aux: < \r\n+CSCS: "IRA"\r\n\r\nOK\r\n
ofonod[1680]: Aux: > AT+CUSD=1\r
ofonod[1680]: Aux: < \r\nOK\r\n
ofonod[1680]: Aux: > AT+CAOC=2\r
ofonod[1680]: Aux: < \r\nOK\r\n
ofonod[1680]: Aux: > AT+CCWE=1\r
ofonod[1680]: Aux: < \r\n+CME ERROR: 3\r\n
ofonod[1680]: Aux: > AT+CGREG=2\r
ofonod[1680]: Aux: < \r\nOK\r\n
ofonod[1680]: Aux: > AT+CGAUTO=0\r
ofonod[1680]: Aux: < \r\nERROR\r\n
ofonod[1680]: Aux: > AT+CGEREP=2,1\r
ofonod[1680]: Aux: < \r\nOK\r\n
ofonod[1680]: Aux: > AT+CRSM=192,20256\r
ofonod[1680]: Aux: < \r\n+CME ERROR: 4\r\n
ofonod[1680]: Aux: > AT+CREG=2\r
ofonod[1680]: Aux: < \r\nOK\r\n
ofonod[1680]: Aux: > AT+CPSB=1\r
ofonod[1680]: Aux: < \r\nERROR\r\n
ofonod[1680]: Aux: > AT+CRSM=192,28618\r
ofonod[1680]: Aux: < \r\n+CRSM: 148,4\r\n\r\nOK\r\n
ofonod[1680]: Unable to read waiting messages numbers from SIM
ofonod[1680]: Aux: > AT+CIND=?\r
ofonod[1680]: Aux: < \r\n+CIND: (("battchg",(0-5,99)),("signal",(0-7,99)),("service",(0,1)),("sounder",(0,1)),("message",(0,1)),("call",(0,1)),("roam",(0,1)),("smsfull",(0,1)),("rssi",(0-5,99)))\r\n\r\nOK\r\n
ofonod[1680]: src/sim.c:ofono_sim_add_spn_watch() 0x88e7308
ofonod[1680]: src/network.c:__ofono_netreg_add_status_watch() 0x88eb670
ofonod[1680]: Aux: > AT+CRSM=192,28617\r
ofonod[1680]: Aux: < \r\n+CRSM: 148,4\r\n\r\nOK\r\n
ofonod[1680]: Unable to read mailbox identifies from SIM
ofonod[1680]: Aux: > AT+CMER=3,0,0,1\r
ofonod[1680]: Aux: < \r\n+CME ERROR: 14\r\n
ofonod[1680]: Aux: > AT+CREG?\r
ofonod[1680]: Aux: < \r\n+CREG: 2,2\r\n\r\nOK\r\n
ofonod[1680]: src/network.c:current_operator_callback() 0x88eb670, (nil)
ofonod[1680]: src/gprs.c:netreg_status_changed() 2
ofonod[1680]: Aux: > AT+CRSM=192,28433\r
ofonod[1680]: Aux: < \r\n+CRSM: 144,0,000000016F11040011005501010000\r\n\r\nOK\r\n
ofonod[1680]: drivers/atmodem/sim.c:at_crsm_info_cb() crsm_info_cb: 90, 00, 15
ofonod[1680]: Aux: > AT+CRSM=176,28433,0,0,1\r
ofonod[1680]: Aux: < \r\n+CRSM: 144,0,5A\r\n\r\nOK\r\n
ofonod[1680]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 1
ofonod[1680]: src/simfs.c:sim_fs_op_read_block_cb() bufoff: 0, dataoff: 0, tocopy: 1
ofonod[1680]: Aux: > AT+CRSM=192,28435\r
ofonod[1680]: Aux: < \r\n+CRSM: 144,0,000000016F13040011005501010000\r\n\r\nOK\r\n
ofonod[1680]: drivers/atmodem/sim.c:at_crsm_info_cb() crsm_info_cb: 90, 00, 15
ofonod[1680]: Aux: > AT+CRSM=176,28435,0,0,1\r
ofonod[1680]: Aux: < \r\n+CRSM: 144,0,55\r\n\r\nOK\r\n
ofonod[1680]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 1
ofonod[1680]: src/simfs.c:sim_fs_op_read_block_cb() bufoff: 0, dataoff: 0, tocopy: 1
ofonod[1680]: Aux: > AT+CRSM=192,28613\r
ofonod[1680]: Aux: < \r\n+CRSM: 148,4\r\n\r\nOK\r\n
ofonod[1680]: src/simfs.c:sim_fs_op_read_block() bufoff: 0, seekoff: 39, toread: 17
ofonod[1680]: EFspn read successfully, but couldn't parse
ofonod[1680]: Aux: > AT+CRSM=192,28621\r
ofonod[1680]: Aux: < \r\n+CME ERROR: 4\r\n
ofonod[1680]: 3GPP MBDN not provided, parsing CPHS..
ofonod[1680]: Aux: > AT+CRSM=192,28437\r
ofonod[1680]: Aux: < \r\n+CRSM: 148,4\r\n\r\nOK\r\n
ofonod[1680]: Modem: < \r\n#MWI: 1,1\r\n
ofonod[1680]: Aux: < \r\n#MWI: 1,1\r\n
ofonod[1680]: Aux: < \r\n#QSS: 3\r\n
ofonod[1680]: plugins/telit.c:telit_qss_notify() 0x88e8290
ofonod[1680]: plugins/telit.c:switch_sim_state_status() 0x88e8290, SIM status: 3
ofonod[1680]: Aux: > AT+CSCS=?\r
ofonod[1680]: Aux: < \r\n
ofonod[1680]: Aux: < +CSCS: ("GSM","IRA","8859-1","PCCP437","UCS2")\r\n\r\nOK\r\n
ofonod[1680]: Aux: > AT+CSMS=?\r
ofonod[1680]: Aux: < \r\n+CSMS: (0,1)\r\n\r\nOK\r\n
ofonod[1680]: drivers/atmodem/sms.c:at_csms_query_cb() CSMS query parsed successfully
ofonod[1680]: Aux: > AT+CPBS=?\r
ofonod[1680]: Aux: < \r\n+CPBS: ("SM","FD","LD","MC","RC","MB","DC","ME")\r\n\r\nOK\r\n
ofonod[1680]: Aux: > AT+CSMS=1\r
ofonod[1680]: Aux: < \r\n+CSMS: 1,1,1\r\n\r\nOK\r\n
ofonod[1680]: Aux: > AT+CSMS?\r
ofonod[1680]: Aux: < \r\n+CSMS: 1,1,1,1\r\n\r\nOK\r\n
ofonod[1680]: Aux: > AT+CMGF=?\r
ofonod[1680]: Aux: < \r\n
ofonod[1680]: Aux: < +CMGF: (0,1)\r\n\r\nOK\r\n
ofonod[1680]: Aux: > AT+CPMS=?\r
ofonod[1680]: Aux: < \r\n+CPMS: ("SM"),("SM"),("SM")\r\n\r\nOK\r\n
ofonod[1680]: Aux: > AT+CMGF=0\r
ofonod[1680]: Aux: < \r\nOK\r\n
ofonod[1680]: Aux: > AT+CPMS="SM","SM","SM"\r
ofonod[1680]: Aux: < \r\n
ofonod[1680]: Aux: < +CPMS: 0,100,0,100,0,100\r\n\r\nOK\r\n
ofonod[1680]: Aux: > AT+CNMI=?\r
ofonod[1680]: Aux: < \r\n
ofonod[1680]: Aux: < +CNMI: (0-3),(0-3),(0,2),(0-2),(0,1)\r\n\r\nOK\r\n
ofonod[1680]: drivers/atmodem/sms.c:build_cnmi_string()
ofonod[1680]: drivers/atmodem/sms.c:construct_ack_pdu()
ofonod[1680]: Aux: > AT+CNMI=2,2,2,1,0\r
ofonod[1680]: Aux: < \r\nOK\r\n
ofonod[1680]: src/network.c:__ofono_netreg_add_status_watch() 0x88eb670
ofonod[1680]: src/sms.c:sms_restore_tx_queue()
ofonod[1680]: plugins/push-notification.c:sms_watch() registered
ofonod[1680]: plugins/smart-messaging.c:sms_watch() registered
ofonod[1680]: Aux: > AT+CMGL=4\r
ofonod[1680]: Aux: < \r\nOK\r\n
ofonod[1680]: drivers/atmodem/sms.c:at_cmgl_done()
ofonod[1680]: Aux: > AT+CGSMS=3\r
ofonod[1680]: Aux: < \r\nOK\r\n
ofonod[1680]: Modem: < AT+CREG?\r\r\n+CREG: 0,2\r\n\r\nOK\r\n




On 17/12/12 17:22, Mingli Wu wrote: > For Telit HE910, ofono always got "\r\n+CME ERROR: 14\r\n" > after issuing "AT+CMER=3,0,0,2\r" command. "CME ERROR: 14" > means that SIM is busy. Now we igonre the result of the > command "AT+CMER=3,0,0,2\r", and register network anyway. > --- I submitted some patches which will solve this problem. You should not get CME ERROR: 14 anymore and hence the netreg atom will not be removed. There is not need to make changes in the network registration atom. Telit supports +CMER but without waiting for the modem to be ready the command will fail. Regards, Christopher