All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] speedup: during enable, we have to go offline first.
@ 2011-07-28  8:25 Bertrand Aygon
  2011-07-28 11:18 ` Marcel Holtmann
  0 siblings, 1 reply; 9+ messages in thread
From: Bertrand Aygon @ 2011-07-28  8:25 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1189 bytes --]

---
 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);
 
 	return -EINPROGRESS;
-- 
1.7.4.1

---------------------------------------------------------------------
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.

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH] speedup: during enable, we have to go offline first.
  2011-07-28  8:25 [PATCH] speedup: during enable, we have to go offline first Bertrand Aygon
@ 2011-07-28 11:18 ` Marcel Holtmann
  2011-07-28 11:59   ` Aygon, Bertrand
  0 siblings, 1 reply; 9+ messages in thread
From: Marcel Holtmann @ 2011-07-28 11:18 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1289 bytes --]

Hi Bertrand,

>  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.

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.

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

Marcel



^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: [PATCH] speedup: during enable, we have to go offline first.
  2011-07-28 11:18 ` Marcel Holtmann
@ 2011-07-28 11:59   ` Aygon, Bertrand
  2011-07-28 13:00     ` Aygon, Bertrand
  0 siblings, 1 reply; 9+ messages in thread
From: Aygon, Bertrand @ 2011-07-28 11:59 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 2634 bytes --]

Hi,

> >  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...

> 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.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: [PATCH] speedup: during enable, we have to go offline first.
  2011-07-28 11:59   ` Aygon, Bertrand
@ 2011-07-28 13:00     ` Aygon, Bertrand
  2011-07-28 13:21       ` Marcel Holtmann
  0 siblings, 1 reply; 9+ messages in thread
From: Aygon, Bertrand @ 2011-07-28 13:00 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 2969 bytes --]

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.

[-- Attachment #2: SpeedUpCFUN1CFUN4CFUN1.txt --]
[-- Type: text/plain, Size: 10264 bytes --]

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



^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: [PATCH] speedup: during enable, we have to go offline first.
  2011-07-28 13:00     ` Aygon, Bertrand
@ 2011-07-28 13:21       ` Marcel Holtmann
  2011-07-28 13:37         ` Aygon, Bertrand
  0 siblings, 1 reply; 9+ messages in thread
From: Marcel Holtmann @ 2011-07-28 13:21 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 3657 bytes --]

Hi Bertrand,

> > > >  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.

actually you can only do set_powered() after the CFUN=4 succeeded. You
need to feed that into your modem enabling procedure.

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

The log clearly shows that you power on the modem before sending CFUN=4.
Try to change that.

Some other comments along the lines for this modem:

ofonod[26439]: Aux: > AT+CSCB=?\r
ofonod[26439]: Aux: < \r\nERROR\r\n
ofonod[26439]: CSCB not supported

Since CBS is not supported, do not even bother creating that atom.

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

Same goes for USSD. That is why I hate blind copies from other modem
plugins.

And I would not be surprised if even SMS is half failing. It takes a lot
of patience to figure out what quirks are needed for what hardware. If
it is not tested, then we rather not enable it in the first place.

Regards

Marcel



^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: [PATCH] speedup: during enable, we have to go offline first.
  2011-07-28 13:21       ` Marcel Holtmann
@ 2011-07-28 13:37         ` Aygon, Bertrand
  2011-07-28 13:44           ` Marcel Holtmann
  0 siblings, 1 reply; 9+ messages in thread
From: Aygon, Bertrand @ 2011-07-28 13:37 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 4184 bytes --]

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.
> 
> actually you can only do set_powered() after the CFUN=4 succeeded. You
> need to feed that into your modem enabling procedure.
> 
> 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
> 
> The log clearly shows that you power on the modem before sending CFUN=4.
> Try to change that.
> 
> Some other comments along the lines for this modem:
> 
> ofonod[26439]: Aux: > AT+CSCB=?\r
> ofonod[26439]: Aux: < \r\nERROR\r\n
> ofonod[26439]: CSCB not supported
> 
> Since CBS is not supported, do not even bother creating that atom.

As I explained, all those errors are due to the CPIN=1. If we are in CFUN=4, it seems that we have to wait after sending the CFUN=1 to goes online.

I have attached a full log with only CFUN=1 and no CFUN=4. I have replaced the CFUN=4 by a CFUN=1.

You will see that CBS is supported, USSD also...

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.

[-- Attachment #2: SpeedUpOK.txt --]
[-- Type: text/plain, Size: 12752 bytes --]

ofonod[27494]: plugins/speedup.c:speedup_enable() 0x8c50b50
ofonod[27494]: src/modem.c:get_modem_property() modem 0x8c50b50 property Modem
ofonod[27494]: plugins/speedup.c:open_device() Modem /dev/ttyUSB1
ofonod[27494]: src/modem.c:get_modem_property() modem 0x8c50b50 property Aux
ofonod[27494]: plugins/speedup.c:open_device() Aux /dev/ttyUSB2
ofonod[27494]: Modem: > ATE0 +CMEE=1\r
ofonod[27494]: Aux: > ATE0 +CMEE=1\r
ofonod[27494]: Aux: < ATE0 +CMEE=1\r\r\nOK\r\n
ofonod[27494]: Aux: > AT+CFUN=1\r
ofonod[27494]: Modem: < \r\nOK\r\n
ofonod[27494]: Aux: < \r\nOK\r\n
ofonod[27494]: plugins/speedup.c:cfun_enable() 
ofonod[27494]: Aux: > AT+CPIN?\r
ofonod[27494]: Aux: < \r\n+CME ERROR: 14\r\n
ofonod[27494]: Aux: > AT+CPIN?\r
ofonod[27494]: Aux: < \r\n+CPIN: READY\r\n\r\nOK\r\n
ofonod[27494]: examples/emulator.c:powered_watch() Adding modem 0x8c50b50 to the list
ofonod[27494]: examples/emulator.c:create_tcp() Created server_watch: 46
ofonod[27494]: examples/emulator.c:create_tcp() Created server_watch: 47
ofonod[27494]: src/modem.c:modem_change_state() old state: 0, new state: 1
ofonod[27494]: plugins/speedup.c:speedup_pre_sim() 0x8c50b50
ofonod[27494]: Aux: > AT+GCAP\r
ofonod[27494]: src/sim.c:ofono_sim_add_state_watch() 0x8c50818
ofonod[27494]: src/sim.c:ofono_sim_add_state_watch() 0x8c50818
ofonod[27494]: src/sim.c:ofono_sim_add_state_watch() 0x8c50818
ofonod[27494]: Aux: < \r\n+GCAP: +CGSM,+DS,+ES\r\n\r\nOK\r\n
ofonod[27494]: Aux: > AT+CFUN=1\r
ofonod[27494]: Aux: < \r\nOK\r\n
ofonod[27494]: Aux: > AT+CGMI\r
ofonod[27494]: Aux: < \r\nManufacturer\r\n\r\nOK\r\n
ofonod[27494]: Aux: > AT+CRSM=192,12258,0,0,255\r
ofonod[27494]: Aux: < \r\n+CRSM: 144,0,"62178202412183022FE28A01058B032F06158002000A880110"\r\n\r\nOK\r\n
ofonod[27494]: drivers/atmodem/sim.c:at_crsm_info_cb() crsm_info_cb: 90, 00, 25
ofonod[27494]: Aux: > AT+CGMM\r
ofonod[27494]: Aux: < \r\nHSPA USB MODEM\r\n\r\nOK\r\n
ofonod[27494]: Aux: > AT+CRSM=176,12258,0,0,10\r
ofonod[27494]: Aux: < \r\n+CRSM: 144,0,"98330133018086504021"\r\n\r\nOK\r\n
ofonod[27494]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 10
ofonod[27494]: src/simfs.c:sim_fs_op_read_block_cb() bufoff: 0, dataoff: 0, tocopy: 10
ofonod[27494]: Aux: > AT+CGMR\r
ofonod[27494]: Aux: < \r\nLQA0085.1.2_M038\r\n\r\nOK\r\n
ofonod[27494]: Aux: > AT+CRSM=192,28421,0,0,255\r
ofonod[27494]: Aux: < \r\n+CRSM: 106,130,""\r\n\r\nOK\r\n
ofonod[27494]: Aux: > AT+CGSN\r
ofonod[27494]: Aux: < \r\n356940040305028\r\n\r\nOK\r\n
ofonod[27494]: Aux: > AT+CRSM=192,12037,0,0,255\r
ofonod[27494]: Aux: < \r\n+CRSM: 144,0,"62178202412183022F058A01058B032F06148002000A880128"\r\n\r\nOK\r\n
ofonod[27494]: drivers/atmodem/sim.c:at_crsm_info_cb() crsm_info_cb: 90, 00, 25
ofonod[27494]: Aux: > AT+CRSM=176,12037,0,0,10\r
ofonod[27494]: Aux: < \r\n+CRSM: 144,0,"6672656E646565736974"\r\n\r\nOK\r\n
ofonod[27494]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 10
ofonod[27494]: src/simfs.c:sim_fs_op_read_block_cb() bufoff: 0, dataoff: 0, tocopy: 10
ofonod[27494]: Aux: > AT+CPIN?\r
ofonod[27494]: Aux: < \r\n+CPIN: READY\r\n\r\nOK\r\n
ofonod[27494]: drivers/atmodem/sim.c:at_cpin_cb() crsm_pin_cb: READY
ofonod[27494]: drivers/atmodem/sim.c:at_pin_retries_query() 
ofonod[27494]: Aux: > AT+CPINR\r
ofonod[27494]: Aux: < \r\nERROR\r\n
ofonod[27494]: Querying remaining pin retries failed
ofonod[27494]: Aux: > AT+CRSM=192,28590,0,0,255\r
ofonod[27494]: Aux: < \r\n+CRSM: 106,130,""\r\n\r\nOK\r\n
ofonod[27494]: Aux: > AT+CRSM=192,28589,0,0,255\r
ofonod[27494]: Aux: < \r\n+CRSM: 144,0,"62178202412183026FAD8A01058B036F060B80020004880118"\r\n\r\nOK\r\n
ofonod[27494]: drivers/atmodem/sim.c:at_crsm_info_cb() crsm_info_cb: 90, 00, 25
ofonod[27494]: Aux: > AT+CRSM=176,28589,0,0,4\r
ofonod[27494]: Aux: < \r\n+CRSM: 144,0,"00FFFF02"\r\n\r\nOK\r\n
ofonod[27494]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 4
ofonod[27494]: src/simfs.c:sim_fs_op_read_block_cb() bufoff: 0, dataoff: 0, tocopy: 4
ofonod[27494]: Aux: > AT+CRSM=192,28438,0,0,255\r
ofonod[27494]: Aux: < \r\n+CRSM: 106,130,""\r\n\r\nOK\r\n
ofonod[27494]: Aux: > AT+CRSM=192,28472,0,0,255\r
ofonod[27494]: Aux: < \r\n+CRSM: 144,0,"62178202412183026F388A01058B036F060380020007880120"\r\n\r\nOK\r\n
ofonod[27494]: drivers/atmodem/sim.c:at_crsm_info_cb() crsm_info_cb: 90, 00, 25
ofonod[27494]: Aux: > AT+CRSM=176,28472,0,0,7\r
ofonod[27494]: Aux: < \r\n+CRSM: 144,0,"824B1C6C230602"\r\n\r\nOK\r\n
ofonod[27494]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 7
ofonod[27494]: src/simfs.c:sim_fs_op_read_block_cb() bufoff: 0, dataoff: 0, tocopy: 7
ofonod[27494]: Aux: > AT+CRSM=192,28502,0,0,255\r
ofonod[27494]: Aux: < \r\n+CRSM: 144,0,"62178202412183026F568A01058B036F060480020001880128"\r\n\r\nOK\r\n
ofonod[27494]: drivers/atmodem/sim.c:at_crsm_info_cb() crsm_info_cb: 90, 00, 25
ofonod[27494]: Aux: > AT+CRSM=176,28502,0,0,1\r
ofonod[27494]: Aux: < \r\n+CRSM: 144,0,"00"\r\n\r\nOK\r\n
ofonod[27494]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 1
ofonod[27494]: src/simfs.c:sim_fs_op_read_block_cb() bufoff: 0, dataoff: 0, tocopy: 1
ofonod[27494]: Aux: > AT+CIMI\r
ofonod[27494]: Aux: < \r\n208103386474997\r\n\r\nOK\r\n
ofonod[27494]: drivers/atmodem/sim.c:at_cimi_cb() cimi_cb: 208103386474997
ofonod[27494]: src/modem.c:modem_change_state() old state: 1, new state: 2
ofonod[27494]: plugins/speedup.c:speedup_post_sim() 0x8c50b50
ofonod[27494]: drivers/atmodem/gprs-context.c:at_gprs_context_probe() 
ofonod[27494]: Example History Probe for modem: 0x8c50b50
ofonod[27494]: Example Network Time Probe for modem: 0x8c50b50
ofonod[27494]: Aux: > AT+CSCS=?\r
ofonod[27494]: Aux: < \r\n+CSCS: ("IRA","GSM","UCS2")\r\n\r\nOK\r\n
ofonod[27494]: Aux: > AT+CSMS=?\r
ofonod[27494]: Aux: < \r\n+CSMS: (0-1)\r\n\r\nOK\r\n
ofonod[27494]: drivers/atmodem/sms.c:at_csms_query_cb() CSMS query parsed successfully
ofonod[27494]: Aux: > AT+CGDCONT=?\r
ofonod[27494]: 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[27494]: Aux: > AT+CRSM=192,28480,0,0,255\r
ofonod[27494]: Aux: < \r\n+CRSM: 144,0,"621982054221001C0383026F408A01058B036F0602800200548800"\r\n\r\nOK\r\n
ofonod[27494]: drivers/atmodem/sim.c:at_crsm_info_cb() crsm_info_cb: 90, 00, 27
ofonod[27494]: Aux: > AT+CPBS=?\r
ofonod[27494]: Aux: < \r\n+CPBS: ("SM","DC","FD","LD","MC","ME","RC","EN","ON")\r\n\r\nOK\r\n
ofonod[27494]: Aux: > AT+CSMS=1\r
ofonod[27494]: Aux: < \r\n+CSMS: 1,1,1\r\n\r\nOK\r\n
ofonod[27494]: Aux: > AT+CGREG=?\r
ofonod[27494]: Aux: < \r\n+CGREG: (0-2)\r\n\r\nOK\r\n
ofonod[27494]: Aux: > AT+CRSM=178,28480,1,4,28\r
ofonod[27494]: Aux: < \r\n+CRSM: 144,0,"4D6F6E204E6F20534652FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"\r\n\r\nOK\r\n
ofonod[27494]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 28
ofonod[27494]: Aux: > AT+CSMS?\r
ofonod[27494]: Aux: < \r\n+CSMS: 1,1,1,1\r\n\r\nOK\r\n
ofonod[27494]: Aux: > AT+CGREG=2\r
ofonod[27494]: Aux: < \r\nOK\r\n
ofonod[27494]: Aux: > AT+CGAUTO=0\r
ofonod[27494]: Aux: < \r\nERROR\r\n
ofonod[27494]: Aux: > AT+CGEREP=2,1\r
ofonod[27494]: Aux: < \r\nOK\r\n
ofonod[27494]: Aux: > AT+CRSM=178,28480,2,4,28\r
ofonod[27494]: Registered handle for channel 1: 0x10006
ofonod[27494]: Aux: < \r\n+CRSM: 144,0,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"\r\n\r\nOK\r\n
ofonod[27494]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 28
ofonod[27494]: Aux: > AT+CMGF=?\r
ofonod[27494]: Aux: < \r\n+CMGF: (0-1)\r\n\r\nOK\r\n
ofonod[27494]: Aux: > AT+CPSB=1\r
ofonod[27494]: Aux: < \r\nERROR\r\n
ofonod[27494]: Aux: > AT+CRSM=178,28480,3,4,28\r
ofonod[27494]: Aux: < \r\n+CRSM: 144,0,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"\r\n\r\nOK\r\n
ofonod[27494]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 28
ofonod[27494]: Aux: > AT+CPMS=?\r
ofonod[27494]: Aux: < \r\n+CPMS: ("ME","MT","SM","SR"),("ME","MT","SM","SR"),("ME","MT","SM","SR")\r\n\r\nOK\r\n
ofonod[27494]: Aux: > AT+CRSM=192,28489,0,0,255\r
ofonod[27494]: Aux: < \r\n+CRSM: 106,130,""\r\n\r\nOK\r\n
ofonod[27494]: Aux: > AT+CMGF=0\r
ofonod[27494]: Aux: < \r\nOK\r\n
ofonod[27494]: Aux: > AT+CPMS="ME","ME","ME"\r
ofonod[27494]: Aux: < \r\n+CPMS: 0,23,0,23,0,23\r\n\r\nOK\r\n
ofonod[27494]: Aux: > AT+CNMI=?\r
ofonod[27494]: 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[27494]: drivers/atmodem/sms.c:build_cnmi_string() 
ofonod[27494]: drivers/atmodem/sms.c:construct_ack_pdu() 
ofonod[27494]: Aux: > AT+CNMI=1,2,2,1,0\r
ofonod[27494]: Aux: < \r\nOK\r\n
ofonod[27494]: src/sms.c:sms_restore_tx_queue() 
ofonod[27494]: plugins/push-notification.c:sms_watch() registered
ofonod[27494]: plugins/smart-messaging.c:sms_watch() registered
ofonod[27494]: Aux: > AT+CMGL=4\r
ofonod[27494]: Aux: < \r\nOK\r\n
ofonod[27494]: drivers/atmodem/sms.c:at_cmgl_done() 
ofonod[27494]: Aux: > AT+CGSMS=3\r
ofonod[27494]: Aux: < \r\nOK\r\n
ofonod[27494]: plugins/speedup.c:speedup_set_online() modem 0x8c50b50 online
ofonod[27494]: Aux: > AT+CFUN=1\r
ofonod[27494]: Aux: < \r\nOK\r\n
ofonod[27494]: src/modem.c:modem_change_state() old state: 2, new state: 3
ofonod[27494]: plugins/speedup.c:speedup_post_online() 0x8c50b50
ofonod[27494]: Aux: > AT+CREG=?\r
ofonod[27494]: Aux: < \r\n+CREG: (0-2)\r\n\r\nOK\r\n
ofonod[27494]: Aux: > AT+CSCB=?\r
ofonod[27494]: Aux: < \r\n+CSCB: (0-1)\r\n\r\nOK\r\n
ofonod[27494]: Aux: > AT+CSCS?\r
ofonod[27494]: Aux: < \r\n+CSCS: "IRA"\r\n\r\nOK\r\n
ofonod[27494]: Aux: > AT+CUSD=1\r
ofonod[27494]: Aux: < \r\nOK\r\n
ofonod[27494]: Aux: > AT+CREG=2\r
ofonod[27494]: Aux: < \r\nOK\r\n
ofonod[27494]: Aux: > AT+CSCB=1,"0-65535"\r
ofonod[27494]: Aux: < \r\nOK\r\n
ofonod[27494]: src/cbs.c:cbs_got_imsi() Got IMSI: 208103386474997
ofonod[27494]: Aux: > AT+CIND=?\r
ofonod[27494]: Aux: < \r\n+CIND: ("battchg",(0-5)),("signal",(0-5)),("service",(0-1)),("call",(0-1)),("roam",(0-1)),("smsfull",(0-1)),("GPRS coverage",(0-1)),("callsetup",(0-3))\r\n\r\nOK\r\n
ofonod[27494]: src/network.c:__ofono_netreg_add_status_watch() 0x8c4fa90
ofonod[27494]: src/network.c:__ofono_netreg_add_status_watch() 0x8c4fa90
ofonod[27494]: src/network.c:__ofono_netreg_add_status_watch() 0x8c4fa90
ofonod[27494]: Aux: > AT+CRSM=192,28488,0,0,255\r
ofonod[27494]: Aux: < \r\n+CRSM: 106,130,""\r\n\r\nOK\r\n
ofonod[27494]: drivers/atmodem/cbs.c:at_cbs_set_topics() 
ofonod[27494]: Aux: > AT+CMER=3,0,0,1\r
ofonod[27494]: Aux: < \r\nOK\r\n
ofonod[27494]: Aux: > AT+CREG?\r
ofonod[27494]: Aux: < \r\n+CREG: 2,1, BBE5, 13ED265\r\n\r\nOK\r\n
ofonod[27494]: src/gprs.c:netreg_status_changed() 1
ofonod[27494]: src/cbs.c:cbs_location_changed() 1, -1, -1, -1, (null)(null)
ofonod[27494]: Aux: > AT+CSCB=1\r
ofonod[27494]: Aux: < \r\nOK\r\n
ofonod[27494]: Aux: > AT+CSCB=0,"0,50,221,223,786,4352-4356"\r
ofonod[27494]: Aux: < \r\nOK\r\n
ofonod[27494]: Aux: > AT+CRSM=192,28613,0,0,255\r
ofonod[27494]: Aux: < \r\n+CRSM: 106,130,""\r\n\r\nOK\r\n
ofonod[27494]: Aux: > AT+COPS=3,2\r
ofonod[27494]: src/simfs.c:sim_fs_op_read_block() bufoff: 0, seekoff: 39, toread: 17
ofonod[27494]: EFspn read successfully, but couldn't parse
ofonod[27494]: Aux: < \r\nOK\r\n
ofonod[27494]: Aux: > AT+COPS?\r
ofonod[27494]: Aux: < \r\n+COPS: 1,2,"20810",2\r\n\r\nOK\r\n
ofonod[27494]: drivers/atmodem/network-registration.c:cops_numeric_cb() Cops numeric got mcc: 208, mnc: 10
ofonod[27494]: Aux: > AT+CIND?\r
ofonod[27494]: Aux: < \r\n+CIND: 5,1,1,0,0,0,1,0\r\n\r\nOK\r\n
ofonod[27494]: Aux: > AT+CGATT=1\r
ofonod[27494]: Aux: < \r\nOK\r\n
ofonod[27494]: src/gprs.c:gprs_attach_callback() /speedup0 error = 0
ofonod[27494]: Aux: > AT+CIND?\r
ofonod[27494]: Aux: < \r\n+CIND: 5,1,1,0,0,0,1,0\r\n\r\nOK\r\n
ofonod[27494]: Aux: > AT+CRSM=192,28437,0,0,255\r
ofonod[27494]: Aux: < \r\n+CRSM: 106,130,""\r\n\r\nOK\r\n
ofonod[27494]: Aux: > AT+COPS=3,0\r
ofonod[27494]: Aux: < \r\nOK\r\n
ofonod[27494]: Aux: > AT+COPS?\r
ofonod[27494]: Aux: < \r\n+COPS: 1,0,"F SFR",2\r\n\r\nOK\r\n
ofonod[27494]: drivers/atmodem/network-registration.c:cops_cb() cops_cb: F SFR, 208 10 2
ofonod[27494]: src/network.c:current_operator_callback() 0x8c4fa90, (nil)
ofonod[27494]: src/gprs.c:netreg_status_changed() 1
ofonod[27494]: src/cbs.c:cbs_location_changed() 1, -1, -1, -1, 20810
ofonod[27494]: src/cbs.c:cbs_location_changed() 1, 0, 0
ofonod[27494]: Aux: > AT+CGREG?\r
ofonod[27494]: Aux: < \r\n+CGREG: 2,1, BBE5, 13ED265\r\n\r\nOK\r\n
ofonod[27494]: src/gprs.c:registration_status_cb() /speedup0 error 0 status 1
ofonod[27494]: src/gprs.c:ofono_gprs_status_notify() /speedup0 status 1
ofonod[27494]: Aux: > AT+CSCA?\r
ofonod[27494]: Aux: < \r\n+CSCA: "+33609001390",145\r\n\r\nOK\r\n
ofonod[27494]: drivers/atmodem/sms.c:at_csca_query_cb() csca_query_cb: 33609001390, 145



^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: [PATCH] speedup: during enable, we have to go offline first.
  2011-07-28 13:37         ` Aygon, Bertrand
@ 2011-07-28 13:44           ` Marcel Holtmann
  2011-07-28 13:46             ` Aygon, Bertrand
  0 siblings, 1 reply; 9+ messages in thread
From: Marcel Holtmann @ 2011-07-28 13:44 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 919 bytes --]

Hi Bertrand,

> > Some other comments along the lines for this modem:
> > 
> > ofonod[26439]: Aux: > AT+CSCB=?\r
> > ofonod[26439]: Aux: < \r\nERROR\r\n
> > ofonod[26439]: CSCB not supported
> > 
> > Since CBS is not supported, do not even bother creating that atom.
> 
> As I explained, all those errors are due to the CPIN=1. If we are in CFUN=4, it seems that we have to wait after sending the CFUN=1 to goes online.
> 
> I have attached a full log with only CFUN=1 and no CFUN=4. I have replaced the CFUN=4 by a CFUN=1.
> 
> You will see that CBS is supported, USSD also...

if this hardware can not deal with online/offline mode changes proper
then just remove the set_online modem driver callback and treat it like
a really dumb stupid device.

Only then you can go directly into CFUN=1 and stay there. Otherwise you
are violating online/offline semantics of oFono.

Regards

Marcel



^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: [PATCH] speedup: during enable, we have to go offline first.
  2011-07-28 13:44           ` Marcel Holtmann
@ 2011-07-28 13:46             ` Aygon, Bertrand
  2011-07-28 15:24               ` Aygon, Bertrand
  0 siblings, 1 reply; 9+ messages in thread
From: Aygon, Bertrand @ 2011-07-28 13:46 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1559 bytes --]

Hi,

> > > Some other comments along the lines for this modem:
> > >
> > > ofonod[26439]: Aux: > AT+CSCB=?\r
> > > ofonod[26439]: Aux: < \r\nERROR\r\n
> > > ofonod[26439]: CSCB not supported
> > >
> > > Since CBS is not supported, do not even bother creating that atom.
> >
> > As I explained, all those errors are due to the CPIN=1. If we are in CFUN=4,
> it seems that we have to wait after sending the CFUN=1 to goes online.
> >
> > I have attached a full log with only CFUN=1 and no CFUN=4. I have replaced
> the CFUN=4 by a CFUN=1.
> >
> > You will see that CBS is supported, USSD also...
> 
> if this hardware can not deal with online/offline mode changes proper
> then just remove the set_online modem driver callback and treat it like
> a really dumb stupid device.
> 
> Only then you can go directly into CFUN=1 and stay there. Otherwise you
> are violating online/offline semantics of oFono.

Ok, I will do this.

Thanks for your support,

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.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: [PATCH] speedup: during enable, we have to go offline first.
  2011-07-28 13:46             ` Aygon, Bertrand
@ 2011-07-28 15:24               ` Aygon, Bertrand
  0 siblings, 0 replies; 9+ messages in thread
From: Aygon, Bertrand @ 2011-07-28 15:24 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1706 bytes --]

Hi,

> > > > Some other comments along the lines for this modem:
> > > >
> > > > ofonod[26439]: Aux: > AT+CSCB=?\r
> > > > ofonod[26439]: Aux: < \r\nERROR\r\n
> > > > ofonod[26439]: CSCB not supported
> > > >
> > > > Since CBS is not supported, do not even bother creating that atom.
> > >
> > > As I explained, all those errors are due to the CPIN=1. If we are in
> CFUN=4,
> > it seems that we have to wait after sending the CFUN=1 to goes online.
> > >
> > > I have attached a full log with only CFUN=1 and no CFUN=4. I have replaced
> > the CFUN=4 by a CFUN=1.
> > >
> > > You will see that CBS is supported, USSD also...
> >
> > if this hardware can not deal with online/offline mode changes proper
> > then just remove the set_online modem driver callback and treat it like
> > a really dumb stupid device.
> >
> > Only then you can go directly into CFUN=1 and stay there. Otherwise you
> > are violating online/offline semantics of oFono.
> 
> Ok, I will do this.

Here is the result. I have attach the log, and everything looks fine.

Thanks again, I am preparing the patch.

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.

[-- Attachment #2: SpeedUpNoOnlineOK.txt --]
[-- Type: text/plain, Size: 16855 bytes --]

ofonod[28720]: src/modem.c:ofono_modem_create() name: (null), type: speedup
ofonod[28720]: src/modem.c:set_modem_property() modem 0x904db70 property Path
ofonod[28720]: src/modem.c:set_modem_property() modem 0x904db70 property Registered
ofonod[28720]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.1/ttyUSB1/tty/ttyUSB1 (speedup)
ofonod[28720]: plugins/udev.c:add_speedup() modem 0x904db70
ofonod[28720]: src/modem.c:get_modem_property() modem 0x904db70 property ModemRegistered
ofonod[28720]: src/modem.c:get_modem_property() modem 0x904db70 property AuxRegistered
ofonod[28720]: src/modem.c:set_modem_property() modem 0x904db70 property Modem
ofonod[28720]: src/modem.c:set_modem_property() modem 0x904db70 property ModemRegistered
ofonod[28720]: src/modem.c:get_modem_property() modem 0x904db70 property Path
ofonod[28720]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.2/ttyUSB2/tty/ttyUSB2 (speedup)
ofonod[28720]: plugins/udev.c:add_speedup() modem 0x904db70
ofonod[28720]: src/modem.c:get_modem_property() modem 0x904db70 property ModemRegistered
ofonod[28720]: src/modem.c:get_modem_property() modem 0x904db70 property AuxRegistered
ofonod[28720]: src/modem.c:set_modem_property() modem 0x904db70 property Aux
ofonod[28720]: src/modem.c:set_modem_property() modem 0x904db70 property AuxRegistered
ofonod[28720]: plugins/speedup.c:speedup_probe() 0x904db70
ofonod[28720]: plugins/hfp_ag.c:modem_watch() modem: 0x904db70, added: 1
ofonod[28720]: plugins/dun_gw.c:modem_watch() modem: 0x904db70, added: 1
ofonod[28720]: examples/emulator.c:modem_watch() modem: 0x904db70, added: 1
ofonod[28720]: plugins/smart-messaging.c:modem_watch() modem: 0x904db70, added: 1
ofonod[28720]: plugins/push-notification.c:modem_watch() modem: 0x904db70, added: 1
ofonod[28720]: src/modem.c:get_modem_property() modem 0x904db70 property Path
ofonod[28720]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/ttyUSB0/tty/ttyUSB0 (speedup)
ofonod[28720]: plugins/udev.c:add_speedup() modem 0x904db70
ofonod[28720]: src/modem.c:get_modem_property() modem 0x904db70 property ModemRegistered
ofonod[28720]: src/modem.c:get_modem_property() modem 0x904db70 property AuxRegistered
ofonod[28720]: plugins/speedup.c:speedup_enable() 0x904db70
ofonod[28720]: src/modem.c:get_modem_property() modem 0x904db70 property Modem
ofonod[28720]: plugins/speedup.c:open_device() Modem /dev/ttyUSB1
ofonod[28720]: src/modem.c:get_modem_property() modem 0x904db70 property Aux
ofonod[28720]: plugins/speedup.c:open_device() Aux /dev/ttyUSB2
ofonod[28720]: Modem: > ATE0 +CMEE=1\r
ofonod[28720]: Aux: > ATE0 +CMEE=1\r
ofonod[28720]: Aux: < ATE0 +CMEE=1\r\r\nOK\r\n
ofonod[28720]: Aux: > AT+CFUN=1\r
ofonod[28720]: Modem: < \r\nOK\r\n
ofonod[28720]: Aux: < \r\nOK\r\n
ofonod[28720]: plugins/speedup.c:cfun_enable() 
ofonod[28720]: Aux: > AT+CPIN?\r
ofonod[28720]: Aux: < \r\n+CME ERROR: 14\r\n
ofonod[28720]: Aux: > AT+CPIN?\r
ofonod[28720]: Aux: < \r\n+CME ERROR: 14\r\n
ofonod[28720]: Aux: > AT+CPIN?\r
ofonod[28720]: Aux: < \r\n+CME ERROR: 14\r\n
ofonod[28720]: Aux: > AT+CPIN?\r
ofonod[28720]: Aux: < \r\n+CME ERROR: 14\r\n
ofonod[28720]: Aux: > AT+CPIN?\r
ofonod[28720]: Aux: < \r\n+CME ERROR: 14\r\n
ofonod[28720]: Aux: > AT+CPIN?\r
ofonod[28720]: Aux: < \r\n+CPIN: READY\r\n\r\nOK\r\n
ofonod[28720]: examples/emulator.c:powered_watch() Adding modem 0x904db70 to the list
ofonod[28720]: examples/emulator.c:create_tcp() Created server_watch: 55
ofonod[28720]: examples/emulator.c:create_tcp() Created server_watch: 56
ofonod[28720]: src/modem.c:modem_change_state() old state: 0, new state: 1
ofonod[28720]: plugins/speedup.c:speedup_pre_sim() 0x904db70
ofonod[28720]: Aux: > AT+GCAP\r
ofonod[28720]: Modem: > AT&C0\r
ofonod[28720]: src/sim.c:ofono_sim_add_state_watch() 0x904d8f0
ofonod[28720]: src/sim.c:ofono_sim_add_state_watch() 0x904d8f0
ofonod[28720]: src/sim.c:ofono_sim_add_state_watch() 0x904d8f0
ofonod[28720]: Aux: < \r\n+GCAP: +CGSM,+FCLASS,+DS\r\n\r\nOK\r\n
ofonod[28720]: Aux: > AT&C0\r
ofonod[28720]: Modem: < \r\nOK\r\n
ofonod[28720]: Aux: < \r\nOK\r\n
ofonod[28720]: Aux: > AT+CRSM=192,12258,0,0,255\r
ofonod[28720]: Aux: < \r\n+CRSM: 144,0,"62178202412183022FE28A01058B032F06158002000A880110"\r\n\r\nOK\r\n
ofonod[28720]: drivers/atmodem/sim.c:at_crsm_info_cb() crsm_info_cb: 90, 00, 25
ofonod[28720]: Aux: > AT+CGMI\r
ofonod[28720]: Aux: < \r\nManufacturer\r\n\r\nOK\r\n
ofonod[28720]: Aux: > AT+CRSM=176,12258,0,0,10\r
ofonod[28720]: Aux: < \r\n+CRSM: 144,0,"98330133018086504021"\r\n\r\nOK\r\n
ofonod[28720]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 10
ofonod[28720]: src/simfs.c:sim_fs_op_read_block_cb() bufoff: 0, dataoff: 0, tocopy: 10
ofonod[28720]: Aux: > AT+CGMM\r
ofonod[28720]: Aux: < \r\nHSPA USB MODEM\r\n\r\nOK\r\n
ofonod[28720]: Aux: > AT+CRSM=192,28421,0,0,255\r
ofonod[28720]: Aux: < \r\n+CRSM: 106,130,""\r\n\r\nOK\r\n
ofonod[28720]: Aux: > AT+CGMR\r
ofonod[28720]: Aux: < \r\nLQA0085.1.2_M038\r\n\r\nOK\r\n
ofonod[28720]: Aux: > AT+CRSM=192,12037,0,0,255\r
ofonod[28720]: Aux: < \r\n+CRSM: 144,0,"62178202412183022F058A01058B032F06148002000A880128"\r\n\r\nOK\r\n
ofonod[28720]: drivers/atmodem/sim.c:at_crsm_info_cb() crsm_info_cb: 90, 00, 25
ofonod[28720]: Aux: > AT+CGSN\r
ofonod[28720]: Aux: < \r\n356940040305028\r\n\r\nOK\r\n
ofonod[28720]: Aux: > AT+CRSM=176,12037,0,0,10\r
ofonod[28720]: Aux: < \r\n+CRSM: 144,0,"6672656E646565736974"\r\n\r\nOK\r\n
ofonod[28720]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 10
ofonod[28720]: src/simfs.c:sim_fs_op_read_block_cb() bufoff: 0, dataoff: 0, tocopy: 10
ofonod[28720]: Aux: > AT+CPIN?\r
ofonod[28720]: Aux: < \r\n+CPIN: READY\r\n\r\nOK\r\n
ofonod[28720]: drivers/atmodem/sim.c:at_cpin_cb() crsm_pin_cb: READY
ofonod[28720]: drivers/atmodem/sim.c:at_pin_retries_query() 
ofonod[28720]: Aux: > AT+CPINR\r
ofonod[28720]: Aux: < \r\nERROR\r\n
ofonod[28720]: Querying remaining pin retries failed
ofonod[28720]: Aux: > AT+CRSM=192,28590,0,0,255\r
ofonod[28720]: Aux: < \r\n+CRSM: 106,130,""\r\n\r\nOK\r\n
ofonod[28720]: Aux: > AT+CRSM=192,28589,0,0,255\r
ofonod[28720]: Aux: < \r\n+CRSM: 144,0,"62178202412183026FAD8A01058B036F060B80020004880118"\r\n\r\nOK\r\n
ofonod[28720]: drivers/atmodem/sim.c:at_crsm_info_cb() crsm_info_cb: 90, 00, 25
ofonod[28720]: Aux: > AT+CRSM=176,28589,0,0,4\r
ofonod[28720]: Aux: < \r\n+CRSM: 144,0,"00FFFF02"\r\n\r\nOK\r\n
ofonod[28720]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 4
ofonod[28720]: src/simfs.c:sim_fs_op_read_block_cb() bufoff: 0, dataoff: 0, tocopy: 4
ofonod[28720]: Aux: > AT+CRSM=192,28438,0,0,255\r
ofonod[28720]: Aux: < \r\n+CRSM: 106,130,""\r\n\r\nOK\r\n
ofonod[28720]: Aux: > AT+CRSM=192,28472,0,0,255\r
ofonod[28720]: Aux: < \r\n+CRSM: 144,0,"62178202412183026F388A01058B036F060380020007880120"\r\n\r\nOK\r\n
ofonod[28720]: drivers/atmodem/sim.c:at_crsm_info_cb() crsm_info_cb: 90, 00, 25
ofonod[28720]: Aux: > AT+CRSM=176,28472,0,0,7\r
ofonod[28720]: Aux: < \r\n+CRSM: 144,0,"824B1C6C230602"\r\n\r\nOK\r\n
ofonod[28720]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 7
ofonod[28720]: src/simfs.c:sim_fs_op_read_block_cb() bufoff: 0, dataoff: 0, tocopy: 7
ofonod[28720]: Aux: > AT+CRSM=192,28502,0,0,255\r
ofonod[28720]: Aux: < \r\n+CRSM: 144,0,"62178202412183026F568A01058B036F060480020001880128"\r\n\r\nOK\r\n
ofonod[28720]: drivers/atmodem/sim.c:at_crsm_info_cb() crsm_info_cb: 90, 00, 25
ofonod[28720]: Aux: > AT+CRSM=176,28502,0,0,1\r
ofonod[28720]: Aux: < \r\n+CRSM: 144,0,"00"\r\n\r\nOK\r\n
ofonod[28720]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 1
ofonod[28720]: src/simfs.c:sim_fs_op_read_block_cb() bufoff: 0, dataoff: 0, tocopy: 1
ofonod[28720]: Aux: > AT+CIMI\r
ofonod[28720]: Aux: < \r\n208103386474997\r\n\r\nOK\r\n
ofonod[28720]: drivers/atmodem/sim.c:at_cimi_cb() cimi_cb: 208103386474997
ofonod[28720]: src/modem.c:modem_change_state() old state: 1, new state: 2
ofonod[28720]: plugins/speedup.c:speedup_post_sim() 0x904db70
ofonod[28720]: drivers/atmodem/gprs-context.c:at_gprs_context_probe() 
ofonod[28720]: Example History Probe for modem: 0x904db70
ofonod[28720]: Example Network Time Probe for modem: 0x904db70
ofonod[28720]: src/modem.c:modem_change_state() old state: 2, new state: 3
ofonod[28720]: Aux: > AT+CREG=?\r
ofonod[28720]: Aux: < \r\n+CREG: (0-2)\r\n\r\nOK\r\n
ofonod[28720]: Aux: > AT+CSCB=?\r
ofonod[28720]: Aux: < \r\n+CSCB: (0-1)\r\n\r\nOK\r\n
ofonod[28720]: Aux: > AT+CSCS?\r
ofonod[28720]: Aux: < \r\n+CSCS: "IRA"\r\n\r\nOK\r\n
ofonod[28720]: Aux: > AT+CUSD=1\r
ofonod[28720]: Aux: < \r\nOK\r\n
ofonod[28720]: Aux: > AT+CSCS=?\r
ofonod[28720]: Aux: < \r\n+CSCS: ("IRA","GSM","UCS2")\r\n\r\nOK\r\n
ofonod[28720]: Aux: > AT+CSMS=?\r
ofonod[28720]: Aux: < \r\n+CSMS: (0-1)\r\n\r\nOK\r\n
ofonod[28720]: drivers/atmodem/sms.c:at_csms_query_cb() CSMS query parsed successfully
ofonod[28720]: Aux: > AT+CGDCONT=?\r
ofonod[28720]: 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[28720]: Aux: > AT+CRSM=192,28480,0,0,255\r
ofonod[28720]: Aux: < \r\n+CRSM: 144,0,"621982054221001C0383026F408A01058B036F0602800200548800"\r\n\r\nOK\r\n
ofonod[28720]: drivers/atmodem/sim.c:at_crsm_info_cb() crsm_info_cb: 90, 00, 27
ofonod[28720]: Aux: > AT+CREG=2\r
ofonod[28720]: Aux: < \r\nOK\r\n
ofonod[28720]: Aux: > AT+CSCB=1,"0-65535"\r
ofonod[28720]: Aux: < \r\nOK\r\n
ofonod[28720]: src/cbs.c:cbs_got_imsi() Got IMSI: 208103386474997
ofonod[28720]: Aux: > AT+CPBS=?\r
ofonod[28720]: Aux: < \r\n+CME ERROR: 14\r\n
ofonod[28720]: Phonebook not supported by this modem.  If this is in error please submit patches to support this hardware
ofonod[28720]: src/phonebook.c:phonebook_remove() atom: 0x904cb60
ofonod[28720]: Aux: > AT+CSMS=1\r
ofonod[28720]: Aux: < \r\n+CSMS: 1,1,1\r\n\r\nOK\r\n
ofonod[28720]: Aux: > AT+CGREG=?\r
ofonod[28720]: Aux: < \r\n+CGREG: (0-2)\r\n\r\nOK\r\n
ofonod[28720]: Aux: > AT+CRSM=178,28480,1,4,28\r
ofonod[28720]: Aux: < \r\n+CRSM: 144,0,"4D6F6E204E6F20534652FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"\r\n\r\nOK\r\n
ofonod[28720]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 28
ofonod[28720]: Aux: > AT+CIND=?\r
ofonod[28720]: Aux: < \r\n+CIND: ("battchg",(0-5)),("signal",(0-5)),("service",(0-1)),("call",(0-1)),("roam",(0-1)),("smsfull",(0-1)),("GPRS coverage",(0-1)),("callsetup",(0-3))\r\n\r\nOK\r\n
ofonod[28720]: src/network.c:__ofono_netreg_add_status_watch() 0x904e160
ofonod[28720]: Aux: > AT+CSMS?\r
ofonod[28720]: Aux: < \r\n+CSMS: 1,1,1,1\r\n\r\nOK\r\n
ofonod[28720]: Aux: > AT+CGREG=2\r
ofonod[28720]: Aux: < \r\nOK\r\n
ofonod[28720]: Aux: > AT+CGAUTO=0\r
ofonod[28720]: Aux: < \r\nERROR\r\n
ofonod[28720]: Aux: > AT+CGEREP=2,1\r
ofonod[28720]: Aux: < \r\nOK\r\n
ofonod[28720]: src/network.c:__ofono_netreg_add_status_watch() 0x904e160
ofonod[28720]: Aux: > AT+CRSM=178,28480,2,4,28\r
ofonod[28720]: Registered handle for channel 1: 0x10006
ofonod[28720]: Aux: < \r\n+CRSM: 144,0,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"\r\n\r\nOK\r\n
ofonod[28720]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 28
ofonod[28720]: Aux: > AT+CMER=3,0,0,1\r
ofonod[28720]: Aux: < \r\nOK\r\n
ofonod[28720]: Aux: > AT+CREG?\r
ofonod[28720]: Aux: < \r\n+CREG: 2,2\r\n\r\nOK\r\n
ofonod[28720]: src/network.c:current_operator_callback() 0x904e160, (nil)
ofonod[28720]: src/gprs.c:netreg_status_changed() 2
ofonod[28720]: src/cbs.c:cbs_location_changed() 2, -1, -1, -1, (null)(null)
ofonod[28720]: Aux: > AT+CMGF=?\r
ofonod[28720]: Aux: < \r\n+CMGF: (0-1)\r\n\r\nOK\r\n
ofonod[28720]: Aux: > AT+CPSB=1\r
ofonod[28720]: Aux: < \r\nERROR\r\n
ofonod[28720]: Aux: > AT+CRSM=178,28480,3,4,28\r
ofonod[28720]: Aux: < \r\n+CRSM: 144,0,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"\r\n\r\nOK\r\n
ofonod[28720]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 28
ofonod[28720]: Aux: > AT+CPMS=?\r
ofonod[28720]: Aux: < \r\n+CPMS: ("ME","MT","SM","SR"),("ME","MT","SM","SR"),("ME","MT","SM","SR")\r\n\r\nOK\r\n
ofonod[28720]: Aux: > AT+CRSM=192,28489,0,0,255\r
ofonod[28720]: Aux: < \r\n+CRSM: 106,130,""\r\n\r\nOK\r\n
ofonod[28720]: Aux: > AT+CMGF=0\r
ofonod[28720]: Aux: < \r\nOK\r\n
ofonod[28720]: Aux: > AT+CRSM=192,28488,0,0,255\r
ofonod[28720]: Aux: < \r\n+CRSM: 106,130,""\r\n\r\nOK\r\n
ofonod[28720]: drivers/atmodem/cbs.c:at_cbs_set_topics() 
ofonod[28720]: Aux: > AT+CPMS="ME","ME","ME"\r
ofonod[28720]: Aux: < \r\n+CPMS: 0,23,0,23,0,23\r\n\r\nOK\r\n
ofonod[28720]: Aux: > AT+CSCB=1\r
ofonod[28720]: Aux: < \r\nOK\r\n
ofonod[28720]: Aux: > AT+CSCB=0,"0,50,221,223,786,4352-4356"\r
ofonod[28720]: Aux: < \r\nOK\r\n
ofonod[28720]: Aux: > AT+CRSM=192,28613,0,0,255\r
ofonod[28720]: Aux: < \r\n+CRSM: 106,130,""\r\n\r\nOK\r\n
ofonod[28720]: Aux: > AT+CNMI=?\r
ofonod[28720]: src/simfs.c:sim_fs_op_read_block() bufoff: 0, seekoff: 39, toread: 17
ofonod[28720]: EFspn read successfully, but couldn't parse
ofonod[28720]: 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[28720]: drivers/atmodem/sms.c:build_cnmi_string() 
ofonod[28720]: drivers/atmodem/sms.c:construct_ack_pdu() 
ofonod[28720]: Aux: > AT+CRSM=192,28437,0,0,255\r
ofonod[28720]: Aux: < \r\n+CRSM: 106,130,""\r\n\r\nOK\r\n
ofonod[28720]: Aux: > AT+CNMI=1,2,2,1,0\r
ofonod[28720]: Aux: < \r\nOK\r\n
ofonod[28720]: src/network.c:__ofono_netreg_add_status_watch() 0x904e160
ofonod[28720]: src/sms.c:sms_restore_tx_queue() 
ofonod[28720]: plugins/push-notification.c:sms_watch() registered
ofonod[28720]: plugins/smart-messaging.c:sms_watch() registered
ofonod[28720]: Aux: > AT+CMGL=4\r
ofonod[28720]: Aux: < \r\nOK\r\n
ofonod[28720]: drivers/atmodem/sms.c:at_cmgl_done() 
ofonod[28720]: Aux: > AT+CGSMS=3\r
ofonod[28720]: Aux: < \r\nOK\r\n
ofonod[28720]: Aux: < \r\n+CREG: 0\r\n\r\n+CGREG: 0\r\n
ofonod[28720]: src/network.c:current_operator_callback() 0x904e160, (nil)
ofonod[28720]: src/gprs.c:netreg_status_changed() 0
ofonod[28720]: src/cbs.c:cbs_location_changed() 0, -1, -1, -1, (null)(null)
ofonod[28720]: src/gprs.c:ofono_gprs_status_notify() /speedup0 status 0
ofonod[28720]: Aux: < \r\n+CREG: 1, BBE5, 13ED265\r\n\r\n+CGREG: 0\r\n
ofonod[28720]: src/gprs.c:netreg_status_changed() 1
ofonod[28720]: src/cbs.c:cbs_location_changed() 1, -1, -1, -1, (null)(null)
ofonod[28720]: src/gprs.c:ofono_gprs_status_notify() /speedup0 status 0
ofonod[28720]: Aux: > AT+COPS=3,2\r
ofonod[28720]: Aux: < \r\nOK\r\n
ofonod[28720]: Aux: > AT+COPS?\r
ofonod[28720]: Aux: < \r\n+COPS: 1,2,"20810",2\r\n\r\nOK\r\n
ofonod[28720]: drivers/atmodem/network-registration.c:cops_numeric_cb() Cops numeric got mcc: 208, mnc: 10
ofonod[28720]: Aux: > AT+CIND?\r
ofonod[28720]: Aux: < \r\n+CIND: 5,0,1,0,0,0,0,0\r\n\r\nOK\r\n
ofonod[28720]: Aux: > AT+CGATT=1\r
ofonod[28720]: Aux: < \r\n+CREG: 1, BBE5, 13ED265\r\n\r\n+CGREG: 1, BBE5, 13ED265\r\n\r\nOK\r\n
ofonod[28720]: src/gprs.c:netreg_status_changed() 1
ofonod[28720]: src/cbs.c:cbs_location_changed() 1, -1, -1, -1, (null)(null)
ofonod[28720]: src/gprs.c:ofono_gprs_status_notify() /speedup0 status 1
ofonod[28720]: src/gprs.c:gprs_attach_callback() /speedup0 error = 0
ofonod[28720]: Aux: > AT+COPS=3,0\r
ofonod[28720]: Aux: < \r\nOK\r\n
ofonod[28720]: Aux: > AT+COPS?\r
ofonod[28720]: Aux: < \r\n+COPS: 1,0,"F SFR",2\r\n\r\nOK\r\n
ofonod[28720]: drivers/atmodem/network-registration.c:cops_cb() cops_cb: F SFR, 208 10 2
ofonod[28720]: src/network.c:current_operator_callback() 0x904e160, (nil)
ofonod[28720]: src/gprs.c:netreg_status_changed() 1
ofonod[28720]: src/cbs.c:cbs_location_changed() 1, -1, -1, -1, 20810
ofonod[28720]: src/cbs.c:cbs_location_changed() 1, 0, 0
ofonod[28720]: Aux: > AT+COPS=3,2\r
ofonod[28720]: Aux: < \r\nOK\r\n
ofonod[28720]: Aux: > AT+COPS?\r
ofonod[28720]: Aux: < \r\n+COPS: 1,2,"20810",2\r\n\r\nOK\r\n
ofonod[28720]: drivers/atmodem/network-registration.c:cops_numeric_cb() Cops numeric got mcc: 208, mnc: 10
ofonod[28720]: Aux: > AT+CIND?\r
ofonod[28720]: Aux: < \r\n+CIND: 5,1,1,0,0,0,1,0\r\n\r\nOK\r\n
ofonod[28720]: Aux: > AT+CGREG?\r
ofonod[28720]: Aux: < \r\n+CGREG: 2,1, BBE5, 13ED265\r\n\r\nOK\r\n
ofonod[28720]: src/gprs.c:registration_status_cb() /speedup0 error 0 status 1
ofonod[28720]: src/gprs.c:ofono_gprs_status_notify() /speedup0 status 1
ofonod[28720]: Aux: > AT+COPS=3,0\r
ofonod[28720]: Aux: < \r\nOK\r\n
ofonod[28720]: Aux: > AT+COPS?\r
ofonod[28720]: Aux: < \r\n+COPS: 1,0,"F SFR",2\r\n\r\nOK\r\n
ofonod[28720]: drivers/atmodem/network-registration.c:cops_cb() cops_cb: F SFR, 208 10 2
ofonod[28720]: src/network.c:current_operator_callback() 0x904e160, 0x9054f70
ofonod[28720]: Aux: > AT+CSCA?\r
ofonod[28720]: Aux: < \r\n+CSCA: "+33609001390",145\r\n\r\nOK\r\n
ofonod[28720]: drivers/atmodem/sms.c:at_csca_query_cb() csca_query_cb: 33609001390, 145



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-07-28 15:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-28  8:25 [PATCH] speedup: during enable, we have to go offline first Bertrand Aygon
2011-07-28 11:18 ` Marcel Holtmann
2011-07-28 11:59   ` Aygon, Bertrand
2011-07-28 13:00     ` Aygon, Bertrand
2011-07-28 13:21       ` Marcel Holtmann
2011-07-28 13:37         ` Aygon, Bertrand
2011-07-28 13:44           ` Marcel Holtmann
2011-07-28 13:46             ` Aygon, Bertrand
2011-07-28 15:24               ` Aygon, Bertrand

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.