Hi Marcel,

> > >  plugins/speedup.c |    2 +-
> > >  1 files changed, 1 insertions(+), 1 deletions(-)
> > >
> > > diff --git a/plugins/speedup.c b/plugins/speedup.c
> > > index 90ca5e3..a7aa43c 100644
> > > --- a/plugins/speedup.c
> > > +++ b/plugins/speedup.c
> > > @@ -177,7 +177,7 @@ static int speedup_enable(struct ofono_modem *modem)
> > >   g_at_chat_send(data->modem, "ATE0 &C0 +CMEE=1", NULL, NULL, NULL,
> > NULL);
> > >   g_at_chat_send(data->aux, "ATE0 &C0 +CMEE=1", NULL, NULL, NULL, NULL);
> > >
> > > - g_at_chat_send(data->aux, "AT+CFUN=1", NULL,
> > > + g_at_chat_send(data->aux, "AT+CFUN=4", NULL,
> > >                                   cfun_enable, modem, NULL);
> >
> > this is not a correct fix. You are messing up the logic here. You are
> > still in offline mode from an oFono point of view, but your modem is
> > actually online.
> >
> > Try the same that we did for ZTE with sending +CFUN=1;+CFUN=4 if that
> > works out.
> 
> This is not working:
> 
> ofonod[17315]: plugins/speedup.c:speedup_enable() 0x9ae1af8
> ofonod[17315]: src/modem.c:get_modem_property() modem 0x9ae1af8 property Modem
> ofonod[17315]: plugins/speedup.c:open_device() Modem /dev/ttyUSB1
> ofonod[17315]: src/modem.c:get_modem_property() modem 0x9ae1af8 property Aux
> ofonod[17315]: plugins/speedup.c:open_device() Aux /dev/ttyUSB2
> ofonod[17315]: Modem: > ATE0 +CMEE=1\r
> ofonod[17315]: Aux: > ATE0 +CMEE=1\r
> ofonod[17315]: Aux: < ATE0 +CMEE=1\r
> ofonod[17315]: Modem: < \r\nOK\r\n
> ofonod[17315]: Aux: < \r\nOK\r\n
> ofonod[17315]: Aux: > AT+CFUN=1;+CFUN=4\r
> ofonod[17315]: Aux: < \r\n+CME ERROR: 0\r\n
> ofonod[17315]: plugins/speedup.c:cfun_enable()
> 
> 
> > If not, then check if we can go CFUN=1 first and then after SIM query
> > succeeded, we go into CFUN=4. We do this for Huawei actually.
> 
> I will try this...

I have attach the log. There is an issue. The AT command just after the CFUN=1 
to go online are failing. I guess that we have to do some timing stuff, because 
if I use minicom to send the AT+CREG=? Later, the answer is correct.

> > If none of these work, then you need to remove the set_online callback
> > like we do for Nokia. If you can not support online/offline mode, then
> > don't even try to.
> >
> > And please show proper OFONO_AT_DEBUG traces. They can be part of the
> > commit message actually.
> >
 
Regards,

Bertrand
---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris, 
92196 Meudon Cedex, France
Registration Number:  302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
ofonod[26439]: plugins/speedup.c:speedup_enable() 0x8909ae0
ofonod[26439]: src/modem.c:get_modem_property() modem 0x8909ae0 property Modem
ofonod[26439]: plugins/speedup.c:open_device() Modem /dev/ttyUSB1
ofonod[26439]: src/modem.c:get_modem_property() modem 0x8909ae0 property Aux
ofonod[26439]: plugins/speedup.c:open_device() Aux /dev/ttyUSB2
ofonod[26439]: Modem: > ATE0 +CMEE=1\r
ofonod[26439]: Aux: > ATE0 +CMEE=1\r
ofonod[26439]: Aux: < ATE0 +CMEE=1\r
ofonod[26439]: Modem: < \r\nOK\r\n
ofonod[26439]: Aux: < \r\nOK\r\n
ofonod[26439]: Aux: > AT+CFUN=1\r
ofonod[26439]: Aux: < \r\nOK\r\n
ofonod[26439]: plugins/speedup.c:cfun_enable() 
ofonod[26439]: Aux: > AT+CPIN?\r
ofonod[26439]: Aux: < \r\n+CME ERROR: 14\r\n
ofonod[26439]: Aux: > AT+CPIN?\r
ofonod[26439]: Aux: < \r\n+CPIN: READY\r\n\r\nOK\r\n
ofonod[26439]: examples/emulator.c:powered_watch() Adding modem 0x8909ae0 to 
the list
ofonod[26439]: examples/emulator.c:create_tcp() Created server_watch: 47
ofonod[26439]: examples/emulator.c:create_tcp() Created server_watch: 48
ofonod[26439]: src/modem.c:modem_change_state() old state: 0, new state: 1
ofonod[26439]: plugins/speedup.c:speedup_pre_sim() 0x8909ae0
ofonod[26439]: Aux: > AT+GCAP\r
ofonod[26439]: src/sim.c:ofono_sim_add_state_watch() 0x890a348
ofonod[26439]: src/sim.c:ofono_sim_add_state_watch() 0x890a348
ofonod[26439]: src/sim.c:ofono_sim_add_state_watch() 0x890a348
ofonod[26439]: Aux: < \r\n+GCAP: +CGSM,+FCLASS,+DS\r\n\r\nOK\r\n
ofonod[26439]: Aux: > AT+CFUN=4\r
ofonod[26439]: Aux: < \r\nOK\r\n
ofonod[26439]: Aux: > AT+CGMI\r
ofonod[26439]: Aux: < \r\nManufacturer\r\n\r\nOK\r\n
ofonod[26439]: Aux: > AT+CRSM=192,12258,0,0,255\r
ofonod[26439]: Aux: < \r\n+CRSM: 
144,0,"62178202412183022FE28A01058B032F06158002000A880110"\r\n\r\nOK\r\n
ofonod[26439]: drivers/atmodem/sim.c:at_crsm_info_cb() crsm_info_cb: 90, 00, 25
ofonod[26439]: Aux: > AT+CGMM\r
ofonod[26439]: Aux: < \r\nHSPA USB MODEM\r\n\r\nOK\r\n
ofonod[26439]: Aux: > AT+CRSM=176,12258,0,0,10\r
ofonod[26439]: Aux: < \r\n+CRSM: 144,0,"98330133018086504021"\r\n\r\nOK\r\n
ofonod[26439]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 10
ofonod[26439]: src/simfs.c:sim_fs_op_read_block_cb() bufoff: 0, dataoff: 0, 
tocopy: 10
ofonod[26439]: Aux: > AT+CGMR\r
ofonod[26439]: Aux: < \r\nLQA0085.1.2_M038\r\n\r\nOK\r\n
ofonod[26439]: Aux: > AT+CRSM=192,28421,0,0,255\r
ofonod[26439]: Aux: < \r\n+CRSM: 106,130,""\r\n\r\nOK\r\n
ofonod[26439]: Aux: > AT+CGSN\r
ofonod[26439]: Aux: < \r\n356940040305028\r\n\r\nOK\r\n
ofonod[26439]: Aux: > AT+CRSM=192,12037,0,0,255\r
ofonod[26439]: Aux: < \r\n+CRSM: 
144,0,"62178202412183022F058A01058B032F06148002000A880128"\r\n\r\nOK\r\n
ofonod[26439]: drivers/atmodem/sim.c:at_crsm_info_cb() crsm_info_cb: 90, 00, 25
ofonod[26439]: Aux: > AT+CRSM=176,12037,0,0,10\r
ofonod[26439]: Aux: < \r\n+CRSM: 144,0,"6672656E646565736974"\r\n\r\nOK\r\n
ofonod[26439]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 10
ofonod[26439]: src/simfs.c:sim_fs_op_read_block_cb() bufoff: 0, dataoff: 0, 
tocopy: 10
ofonod[26439]: Aux: > AT+CPIN?\r
ofonod[26439]: Aux: < \r\n+CPIN: READY\r\n\r\nOK\r\n
ofonod[26439]: drivers/atmodem/sim.c:at_cpin_cb() crsm_pin_cb: READY
ofonod[26439]: drivers/atmodem/sim.c:at_pin_retries_query() 
ofonod[26439]: Aux: > AT+CPINR\r
ofonod[26439]: Aux: < \r\nERROR\r\n
ofonod[26439]: Querying remaining pin retries failed
ofonod[26439]: Aux: > AT+CRSM=192,28590,0,0,255\r
ofonod[26439]: Aux: < \r\n+CRSM: 106,130,""\r\n\r\nOK\r\n
ofonod[26439]: Aux: > AT+CRSM=192,28589,0,0,255\r
ofonod[26439]: Aux: < \r\n+CRSM: 
144,0,"62178202412183026FAD8A01058B036F060B80020004880118"\r\n\r\nOK\r\n
ofonod[26439]: drivers/atmodem/sim.c:at_crsm_info_cb() crsm_info_cb: 90, 00, 25
ofonod[26439]: Aux: > AT+CRSM=176,28589,0,0,4\r
ofonod[26439]: Aux: < \r\n+CRSM: 144,0,"00FFFF02"\r\n\r\nOK\r\n
ofonod[26439]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 4
ofonod[26439]: src/simfs.c:sim_fs_op_read_block_cb() bufoff: 0, dataoff: 0, 
tocopy: 4
ofonod[26439]: Aux: > AT+CRSM=192,28438,0,0,255\r
ofonod[26439]: Aux: < \r\n+CRSM: 106,130,""\r\n\r\nOK\r\n
ofonod[26439]: Aux: > AT+CRSM=192,28472,0,0,255\r
ofonod[26439]: Aux: < \r\n+CRSM: 
144,0,"62178202412183026F388A01058B036F060380020007880120"\r\n\r\nOK\r\n
ofonod[26439]: drivers/atmodem/sim.c:at_crsm_info_cb() crsm_info_cb: 90, 00, 25
ofonod[26439]: Aux: > AT+CRSM=176,28472,0,0,7\r
ofonod[26439]: Aux: < \r\n+CRSM: 144,0,"824B1C6C230602"\r\n\r\nOK\r\n
ofonod[26439]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 7
ofonod[26439]: src/simfs.c:sim_fs_op_read_block_cb() bufoff: 0, dataoff: 0, 
tocopy: 7
ofonod[26439]: Aux: > AT+CRSM=192,28502,0,0,255\r
ofonod[26439]: Aux: < \r\n+CRSM: 
144,0,"62178202412183026F568A01058B036F060480020001880128"\r\n\r\nOK\r\n
ofonod[26439]: drivers/atmodem/sim.c:at_crsm_info_cb() crsm_info_cb: 90, 00, 25
ofonod[26439]: Aux: > AT+CRSM=176,28502,0,0,1\r
ofonod[26439]: Aux: < \r\n+CRSM: 144,0,"00"\r\n\r\nOK\r\n
ofonod[26439]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 1
ofonod[26439]: src/simfs.c:sim_fs_op_read_block_cb() bufoff: 0, dataoff: 0, 
tocopy: 1
ofonod[26439]: Aux: > AT+CIMI\r
ofonod[26439]: Aux: < \r\n208103386474997\r\n\r\nOK\r\n
ofonod[26439]: drivers/atmodem/sim.c:at_cimi_cb() cimi_cb: 208103386474997
ofonod[26439]: src/modem.c:modem_change_state() old state: 1, new state: 2
ofonod[26439]: plugins/speedup.c:speedup_post_sim() 0x8909ae0
ofonod[26439]: drivers/atmodem/gprs-context.c:at_gprs_context_probe() 
ofonod[26439]: Example History Probe for modem: 0x8909ae0
ofonod[26439]: Example Network Time Probe for modem: 0x8909ae0
ofonod[26439]: Aux: > AT+CSCS=?\r
ofonod[26439]: Aux: < \r\n+CSCS: ("IRA","GSM","UCS2")\r\n\r\nOK\r\n
ofonod[26439]: Aux: > AT+CSMS=?\r
ofonod[26439]: Aux: < \r\n+CSMS: (0-1)\r\n\r\nOK\r\n
ofonod[26439]: drivers/atmodem/sms.c:at_csms_query_cb() CSMS query parsed 
successfully
ofonod[26439]: Aux: > AT+CGDCONT=?\r
ofonod[26439]: Aux: < \r\n+CGDCONT: (1-16),"IP",,,(0-2),(0-4)\r\n+CGDCONT: 
(1-16),"PPP",,,(0-2),(0-4)\r\n+CGDCONT: 
(1-16),"IPV6",,,(0-2),(0-4)\r\n\r\nOK\r\n
ofonod[26439]: Aux: > AT+CRSM=192,28480,0,0,255\r
ofonod[26439]: Aux: < \r\n+CRSM: 
144,0,"621982054221001C0383026F408A01058B036F0602800200548800"\r\n\r\nOK\r\n
ofonod[26439]: drivers/atmodem/sim.c:at_crsm_info_cb() crsm_info_cb: 90, 00, 27
ofonod[26439]: Aux: > AT+CPBS=?\r
ofonod[26439]: Aux: < \r\n+CPBS: 
("SM","DC","FD","LD","MC","ME","RC","EN","ON")\r\n\r\nOK\r\n
ofonod[26439]: Aux: > AT+CSMS=1\r
ofonod[26439]: Aux: < \r\n+CSMS: 1,1,1\r\n\r\nOK\r\n
ofonod[26439]: Aux: > AT+CGREG=?\r
ofonod[26439]: Aux: < \r\n+CGREG: (0-2)\r\n\r\nOK\r\n
ofonod[26439]: Aux: > AT+CRSM=178,28480,1,4,28\r
ofonod[26439]: Aux: < \r\n+CRSM: 
144,0,"4D6F6E204E6F20534652FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"\r\n\r\nOK\r\n
ofonod[26439]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 28
ofonod[26439]: Aux: > AT+CSMS?\r
ofonod[26439]: Aux: < \r\n+CSMS: 1,1,1,1\r\n\r\nOK\r\n
ofonod[26439]: Aux: > AT+CGREG=2\r
ofonod[26439]: Aux: < \r\nOK\r\n
ofonod[26439]: Aux: > AT+CGAUTO=0\r
ofonod[26439]: Aux: < \r\nERROR\r\n
ofonod[26439]: Aux: > AT+CGEREP=2,1\r
ofonod[26439]: Aux: < \r\nOK\r\n
ofonod[26439]: Aux: > AT+CRSM=178,28480,2,4,28\r
ofonod[26439]: Registered handle for channel 1: 0x10006
ofonod[26439]: Aux: < \r\n+CRSM: 
144,0,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"\r\n\r\nOK\r\n
ofonod[26439]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 28
ofonod[26439]: Aux: > AT+CMGF=?\r
ofonod[26439]: Aux: < \r\n+CMGF: (0-1)\r\n\r\nOK\r\n
ofonod[26439]: Aux: > AT+CPSB=1\r
ofonod[26439]: Aux: < \r\nERROR\r\n
ofonod[26439]: Aux: > AT+CRSM=178,28480,3,4,28\r
ofonod[26439]: Aux: < \r\n+CRSM: 
144,0,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"\r\n\r\nOK\r\n
ofonod[26439]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 28
ofonod[26439]: Aux: > AT+CPMS=?\r
ofonod[26439]: Aux: < \r\n+CPMS: 
("ME","MT","SM","SR"),("ME","MT","SM","SR"),("ME","MT","SM","SR")\r\n\r\nOK\r\n
ofonod[26439]: Aux: > AT+CRSM=192,28489,0,0,255\r
ofonod[26439]: Aux: < \r\n+CRSM: 106,130,""\r\n\r\nOK\r\n
ofonod[26439]: Aux: > AT+CMGF=0\r
ofonod[26439]: Aux: < \r\nOK\r\n
ofonod[26439]: Aux: > AT+CPMS="ME","ME","ME"\r
ofonod[26439]: Aux: < \r\n+CPMS: 0,23,0,23,0,23\r\n\r\nOK\r\n
ofonod[26439]: Aux: > AT+CNMI=?\r
ofonod[26439]: Aux: < \r\n+CNMI: 
(0,1,2),(0,1,2,3),(0,2),(0,1,2),(0,1)\r\n\r\nOK\r\n
ofonod[26439]: drivers/atmodem/sms.c:build_cnmi_string() 
ofonod[26439]: drivers/atmodem/sms.c:construct_ack_pdu() 
ofonod[26439]: Aux: > AT+CNMI=1,2,2,1,0\r
ofonod[26439]: Aux: < \r\nOK\r\n
ofonod[26439]: src/sms.c:sms_restore_tx_queue() 
ofonod[26439]: plugins/push-notification.c:sms_watch() registered
ofonod[26439]: plugins/smart-messaging.c:sms_watch() registered
ofonod[26439]: Aux: > AT+CMGL=4\r
ofonod[26439]: Aux: < \r\nOK\r\n
ofonod[26439]: drivers/atmodem/sms.c:at_cmgl_done() 
ofonod[26439]: Aux: > AT+CGSMS=3\r
ofonod[26439]: Aux: < \r\nOK\r\n
ofonod[26439]: plugins/speedup.c:speedup_set_online() modem 0x8909ae0 online
ofonod[26439]: Aux: > AT+CFUN=1\r
ofonod[26439]: Aux: < \r\nOK\r\n
ofonod[26439]: src/modem.c:modem_change_state() old state: 2, new state: 3
ofonod[26439]: plugins/speedup.c:speedup_post_online() 0x8909ae0
ofonod[26439]: Aux: > AT+CREG=?\r
ofonod[26439]: Aux: < \r\nERROR\r\n
ofonod[26439]: Unable to initialize Network Registration
ofonod[26439]: src/network.c:netreg_remove() atom: 0x8909308
ofonod[26439]: Aux: > AT+CSCB=?\r
ofonod[26439]: Aux: < \r\nERROR\r\n
ofonod[26439]: CSCB not supported
ofonod[26439]: src/cbs.c:cbs_remove() atom: 0x8909460
ofonod[26439]: Aux: > AT+CSCS?\r
ofonod[26439]: Aux: < \r\nERROR\r\n
ofonod[26439]: Aux: > AT+CUSD=1\r
ofonod[26439]: Aux: < \r\nERROR\r\n
ofonod[26439]: Could not enable CUSD notifications
ofonod[26439]: Aux: < \r\n+CGREG: 0\r\n
ofonod[26439]: src/gprs.c:ofono_gprs_status_notify() /speedup0 status 0
ofonod[26439]: Aux: < \r\n+CGREG: 0\r\n
ofonod[26439]: src/gprs.c:ofono_gprs_status_notify() /speedup0 status 0
ofonod[26439]: Aux: < \r\n+CGREG: 0\r\n
ofonod[26439]: src/gprs.c:ofono_gprs_status_notify() /speedup0 status 0
ofonod[26439]: Aux: < \r\n+CGREG: 1, 20D1, 4A4F\r\n
ofonod[26439]: src/gprs.c:ofono_gprs_status_notify() /speedup0 status 1


_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to