All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] oFono rules update
@ 2011-08-11 15:38 Philippe Nunes
  2011-08-11 15:38 ` [PATCH 1/3] udev: use ttyUSB3 for ZTE K3570 modem port Philippe Nunes
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Philippe Nunes @ 2011-08-11 15:38 UTC (permalink / raw)
  To: ofono

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

Based on the latest usb_modeswitch rules, some 3G dongles require
to modify the ofono rules to be supported correctly (tests done in India)  


Philippe Nunes (3):
  udev: use ttyUSB3 for ZTE K3570 modem port.
  udev:  add support for Olive HSDPA modem
  udev: Use ttyUSB4 for Huawei E367 Pcui port

 plugins/ofono.rules |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)


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

* [PATCH 1/3] udev: use ttyUSB3 for ZTE K3570 modem port.
  2011-08-11 15:38 [PATCH 0/3] oFono rules update Philippe Nunes
@ 2011-08-11 15:38 ` Philippe Nunes
  2011-08-11 15:38 ` [PATCH 2/3] udev: add support for Olive HSDPA modem Philippe Nunes
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 11+ messages in thread
From: Philippe Nunes @ 2011-08-11 15:38 UTC (permalink / raw)
  To: ofono

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

---
 plugins/ofono.rules |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/ofono.rules b/plugins/ofono.rules
index 4143e17..82232d9 100644
--- a/plugins/ofono.rules
+++ b/plugins/ofono.rules
@@ -35,7 +35,7 @@ ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="0121", ENV{ID_USB_INTERFACE_NUM}=="0
 ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="0124", ENV{ID_USB_INTERFACE_NUM}=="04", ENV{OFONO_ZTE_TYPE}="modem"
 ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="0124", ENV{ID_USB_INTERFACE_NUM}=="01", ENV{OFONO_ZTE_TYPE}="aux"
 
-ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="1008", ENV{ID_USB_INTERFACE_NUM}=="02", ENV{OFONO_ZTE_TYPE}="modem"
+ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="1008", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{OFONO_ZTE_TYPE}="modem"
 ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="1008", ENV{ID_USB_INTERFACE_NUM}=="01", ENV{OFONO_ZTE_TYPE}="aux"
 
 ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="2003", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{OFONO_ZTE_TYPE}="modem"
-- 
1.7.1


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

* [PATCH 2/3] udev:  add support for Olive HSDPA modem
  2011-08-11 15:38 [PATCH 0/3] oFono rules update Philippe Nunes
  2011-08-11 15:38 ` [PATCH 1/3] udev: use ttyUSB3 for ZTE K3570 modem port Philippe Nunes
@ 2011-08-11 15:38 ` Philippe Nunes
  2011-08-12  0:49   ` Deng, Ying An
  2011-08-11 15:38 ` [PATCH 3/3] udev: Use ttyUSB4 for Huawei E367 Pcui port Philippe Nunes
  2011-08-11 16:21 ` [PATCH 0/3] oFono rules update Marcel Holtmann
  3 siblings, 1 reply; 11+ messages in thread
From: Philippe Nunes @ 2011-08-11 15:38 UTC (permalink / raw)
  To: ofono

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

---
 plugins/ofono.rules |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/plugins/ofono.rules b/plugins/ofono.rules
index 82232d9..a361e70 100644
--- a/plugins/ofono.rules
+++ b/plugins/ofono.rules
@@ -376,9 +376,12 @@ ATTRS{idVendor}=="1c9e", ATTRS{idProduct}=="9800", ENV{ID_USB_INTERFACE_NUM}=="0
 ATTRS{idVendor}=="1c9e", ATTRS{idProduct}=="9e00", ENV{ID_USB_INTERFACE_NUM}=="00", ENV{OFONO_SPEEDUP_TYPE}="modem"
 ATTRS{idVendor}=="1c9e", ATTRS{idProduct}=="9e00", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{OFONO_SPEEDUP_TYPE}="aux"
 
-# SpeedUp 8000
-ATTRS{idVendor}=="2020", ATTRS{idProduct}=="1008", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{OFONO_SPEEDUP_TYPE}="modem"
-ATTRS{idVendor}=="2020", ATTRS{idProduct}=="1008", ENV{ID_USB_INTERFACE_NUM}=="01", ENV{OFONO_SPEEDUP_TYPE}="aux"
+# SpeedUp
+ATTRS{idVendor}=="2020", ATTRS{idProduct}=="1005", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{OFONO_SPEEDUP_TYPE}="modem"
+ATTRS{idVendor}=="2020", ATTRS{idProduct}=="1005", ENV{ID_USB_INTERFACE_NUM}=="01", ENV{OFONO_SPEEDUP_TYPE}="aux"
+
+ATTRS{idVendor}=="2020", ATTRS{idProduct}=="1008", ENV{ID_USB_INTERFACE_NUM}=="01", ENV{OFONO_SPEEDUP_TYPE}="modem"
+ATTRS{idVendor}=="2020", ATTRS{idProduct}=="1008", ENV{ID_USB_INTERFACE_NUM}=="03", ENV{OFONO_SPEEDUP_TYPE}="aux"
 
 # Olive
 ATTRS{idVendor}=="201e", ATTRS{idProduct}=="2009", ENV{ID_USB_INTERFACE_NUM}=="00", ENV{OFONO_HUAWEI_TYPE}="Modem"
@@ -434,8 +437,8 @@ ATTRS{idVendor}=="1c9e", ATTRS{idProduct}=="9800", ENV{OFONO_DRIVER}="speedup"
 
 ATTRS{idVendor}=="1c9e", ATTRS{serial}=="1234567890ABCDEF", ENV{ID_SERIAL_SHORT}=""
 
-# SpeedUp 8000
-ATTRS{idVendor}=="2020", ATTRS{idProduct}=="1008", ENV{OFONO_DRIVER}="speedup"
+# SpeedUp
+ATTRS{idVendor}=="2020", ENV{OFONO_DRIVER}="speedup"
 
 ATTRS{idVendor}=="2020", ATTRS{serial}=="1234567890ABCDEF", ENV{ID_SERIAL_SHORT}=""
 
-- 
1.7.1


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

* [PATCH 3/3] udev: Use ttyUSB4 for Huawei E367 Pcui port
  2011-08-11 15:38 [PATCH 0/3] oFono rules update Philippe Nunes
  2011-08-11 15:38 ` [PATCH 1/3] udev: use ttyUSB3 for ZTE K3570 modem port Philippe Nunes
  2011-08-11 15:38 ` [PATCH 2/3] udev: add support for Olive HSDPA modem Philippe Nunes
@ 2011-08-11 15:38 ` Philippe Nunes
  2011-08-11 16:21 ` [PATCH 0/3] oFono rules update Marcel Holtmann
  3 siblings, 0 replies; 11+ messages in thread
From: Philippe Nunes @ 2011-08-11 15:38 UTC (permalink / raw)
  To: ofono

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

---
 plugins/ofono.rules |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/ofono.rules b/plugins/ofono.rules
index a361e70..5e59425 100644
--- a/plugins/ofono.rules
+++ b/plugins/ofono.rules
@@ -363,7 +363,7 @@ ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1486", ENV{ID_USB_INTERFACE_NUM}=="0
 ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1486", ENV{ID_USB_INTERFACE_NUM}=="02", ENV{OFONO_HUAWEI_TYPE}="Pcui"
 
 ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1506", ENV{ID_USB_INTERFACE_NUM}=="00", ENV{OFONO_HUAWEI_TYPE}="Modem"
-ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1506", ENV{ID_USB_INTERFACE_NUM}=="01", ENV{OFONO_HUAWEI_TYPE}="Pcui"
+ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1506", ENV{ID_USB_INTERFACE_NUM}=="04", ENV{OFONO_HUAWEI_TYPE}="Pcui"
 
 ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1c05", ENV{ID_USB_INTERFACE_NUM}=="00", ENV{OFONO_HUAWEI_TYPE}="Modem"
 ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1c05", ENV{ID_USB_INTERFACE_NUM}=="02", ENV{OFONO_HUAWEI_TYPE}="Pcui"
-- 
1.7.1


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

* Re: [PATCH 0/3] oFono rules update
  2011-08-11 15:38 [PATCH 0/3] oFono rules update Philippe Nunes
                   ` (2 preceding siblings ...)
  2011-08-11 15:38 ` [PATCH 3/3] udev: Use ttyUSB4 for Huawei E367 Pcui port Philippe Nunes
@ 2011-08-11 16:21 ` Marcel Holtmann
  2011-08-23 15:26   ` Philippe Nunes
  3 siblings, 1 reply; 11+ messages in thread
From: Marcel Holtmann @ 2011-08-11 16:21 UTC (permalink / raw)
  To: ofono

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

Hi Philippe,

> Based on the latest usb_modeswitch rules, some 3G dongles require
> to modify the ofono rules to be supported correctly (tests done in India)  
> 
> 
> Philippe Nunes (3):
>   udev: use ttyUSB3 for ZTE K3570 modem port.
>   udev:  add support for Olive HSDPA modem
>   udev: Use ttyUSB4 for Huawei E367 Pcui port
> 
>  plugins/ofono.rules |   17 ++++++++++-------
>  1 files changed, 10 insertions(+), 7 deletions(-)

I think you are way too late with these changes. We are not using
plugins/udev.c for Huawei and ZTE device detection anymore. I fixed this
all up and plugins/udevng.c should do proper automatic detection.

Please check if this works properly for you or if you have problems.

Regards

Marcel



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

* RE: [PATCH 2/3] udev:  add support for Olive HSDPA modem
  2011-08-11 15:38 ` [PATCH 2/3] udev: add support for Olive HSDPA modem Philippe Nunes
@ 2011-08-12  0:49   ` Deng, Ying An
  0 siblings, 0 replies; 11+ messages in thread
From: Deng, Ying An @ 2011-08-12  0:49 UTC (permalink / raw)
  To: ofono

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


> -----Original Message-----
> From: ofono-bounces(a)ofono.org [mailto:ofono-bounces(a)ofono.org] On Behalf
> Of Philippe Nunes
> Sent: Thursday, August 11, 2011 11:38 PM
> To: ofono(a)ofono.org
> Subject: [PATCH 2/3] udev: add support for Olive HSDPA modem
> 
> ---
>  plugins/ofono.rules |   13 ++++++++-----
>  1 files changed, 8 insertions(+), 5 deletions(-)
> 
> diff --git a/plugins/ofono.rules b/plugins/ofono.rules
> index 82232d9..a361e70 100644
> --- a/plugins/ofono.rules
> +++ b/plugins/ofono.rules
> @@ -376,9 +376,12 @@ ATTRS{idVendor}=="1c9e",
> ATTRS{idProduct}=="9800", ENV{ID_USB_INTERFACE_NUM}=="0
>  ATTRS{idVendor}=="1c9e", ATTRS{idProduct}=="9e00",
> ENV{ID_USB_INTERFACE_NUM}=="00",
> ENV{OFONO_SPEEDUP_TYPE}="modem"
>  ATTRS{idVendor}=="1c9e", ATTRS{idProduct}=="9e00",
> ENV{ID_USB_INTERFACE_NUM}=="03", ENV{OFONO_SPEEDUP_TYPE}="aux"
> 
> -# SpeedUp 8000
> -ATTRS{idVendor}=="2020", ATTRS{idProduct}=="1008",
> ENV{ID_USB_INTERFACE_NUM}=="03",
> ENV{OFONO_SPEEDUP_TYPE}="modem"
> -ATTRS{idVendor}=="2020", ATTRS{idProduct}=="1008",
> ENV{ID_USB_INTERFACE_NUM}=="01", ENV{OFONO_SPEEDUP_TYPE}="aux"
> +# SpeedUp
> +ATTRS{idVendor}=="2020", ATTRS{idProduct}=="1005",
> ENV{ID_USB_INTERFACE_NUM}=="03",
> ENV{OFONO_SPEEDUP_TYPE}="modem"
> +ATTRS{idVendor}=="2020", ATTRS{idProduct}=="1005",
> ENV{ID_USB_INTERFACE_NUM}=="01", ENV{OFONO_SPEEDUP_TYPE}="aux"
> +
> +ATTRS{idVendor}=="2020", ATTRS{idProduct}=="1008",
> ENV{ID_USB_INTERFACE_NUM}=="01",
> ENV{OFONO_SPEEDUP_TYPE}="modem"
> +ATTRS{idVendor}=="2020", ATTRS{idProduct}=="1008",
> ENV{ID_USB_INTERFACE_NUM}=="03", ENV{OFONO_SPEEDUP_TYPE}="aux"

Dear Philippe,
The modem port shall be 03 and aux port shall be 01 for 2020: 1008 (SU8000) modem.

> 
>  # Olive
>  ATTRS{idVendor}=="201e", ATTRS{idProduct}=="2009",
> ENV{ID_USB_INTERFACE_NUM}=="00",
> ENV{OFONO_HUAWEI_TYPE}="Modem"
> @@ -434,8 +437,8 @@ ATTRS{idVendor}=="1c9e", ATTRS{idProduct}=="9800",
> ENV{OFONO_DRIVER}="speedup"
> 
>  ATTRS{idVendor}=="1c9e", ATTRS{serial}=="1234567890ABCDEF",
> ENV{ID_SERIAL_SHORT}=""
> 
> -# SpeedUp 8000
> -ATTRS{idVendor}=="2020", ATTRS{idProduct}=="1008",
> ENV{OFONO_DRIVER}="speedup"
> +# SpeedUp
> +ATTRS{idVendor}=="2020", ENV{OFONO_DRIVER}="speedup"
> 
>  ATTRS{idVendor}=="2020", ATTRS{serial}=="1234567890ABCDEF",
> ENV{ID_SERIAL_SHORT}=""
> 
> --
> 1.7.1
> 
> _______________________________________________
> ofono mailing list
> ofono(a)ofono.org
> http://lists.ofono.org/listinfo/ofono

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

* Re: [PATCH 0/3] oFono rules update
  2011-08-11 16:21 ` [PATCH 0/3] oFono rules update Marcel Holtmann
@ 2011-08-23 15:26   ` Philippe Nunes
  2011-08-23 16:13     ` Marcel Holtmann
  0 siblings, 1 reply; 11+ messages in thread
From: Philippe Nunes @ 2011-08-23 15:26 UTC (permalink / raw)
  To: ofono

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

On 08/11/2011 06:21 PM, Marcel Holtmann wrote:
> Hi Philippe,
>
>> Based on the latest usb_modeswitch rules, some 3G dongles require
>> to modify the ofono rules to be supported correctly (tests done in India)
>>
>>
>> Philippe Nunes (3):
>>    udev: use ttyUSB3 for ZTE K3570 modem port.
>>    udev:  add support for Olive HSDPA modem
>>    udev: Use ttyUSB4 for Huawei E367 Pcui port
>>
>>   plugins/ofono.rules |   17 ++++++++++-------
>>   1 files changed, 10 insertions(+), 7 deletions(-)
>
> I think you are way too late with these changes. We are not using
> plugins/udev.c for Huawei and ZTE device detection anymore. I fixed this
> all up and plugins/udevng.c should do proper automatic detection.
>
> Please check if this works properly for you or if you have problems.
>


Hi Marcel,

I just experienced a case where the automatic detection brings a 
difference with the previous implementation.

Using the dongle ZTE MF190 (DefaultProduct= 0x0149 TargetProduct= 
0x0124), udevng.c is assigning the modem port to ttyUSB3 whereas ttyUSB4 
was assigned with the previous udev.c based on the previous ofono.rules.

In practice, the port com ttyUSB3 is not responsive (I checked also with 
minicom) so we can't manage to connect a data call (see ofono logs in 
attachment). Using the previous combination udev.c  + ofono.rules, if 
the modem port assigned to ttyUSB4 is responsive, we are however facing 
with an other issue:

ofonod[23908]: plugins/zte.c:zte_post_online() 0x9e2a470
ofonod[23908]: Aux: > AT+CREG=?\r
ofonod[23908]: Aux: < \r\nOK\r\n
ofonod[23908]: Unable to initialize Network Registration
ofonod[23908]: src/network.c:netreg_remove() atom: 0x9e29cf0


So, we can't go ahead for the data call since the network is not 
registered. But this is an other issue we would need to fix I guess 
specifically for this dongle.

Here, I just wanted to raise a potential issue regarding the modem port 
com assignment for ZTE dongles:

Indeed, according the previous ofono.rules, we were assigning ttyUSB4 as 
modem port for 2 product Ids:

ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="0121", 
ENV{ID_USB_INTERFACE_NUM}=="04", ENV{OFONO_ZTE_TYPE}="modem"
ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="0121", 
ENV{ID_USB_INTERFACE_NUM}=="01", ENV{OFONO_ZTE_TYPE}="aux"

ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="0124", 
ENV{ID_USB_INTERFACE_NUM}=="04", ENV{OFONO_ZTE_TYPE}="modem"
ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="0124", 
ENV{ID_USB_INTERFACE_NUM}=="01", ENV{OFONO_ZTE_TYPE}="aux"

but looking to udevng.c and particularly the function 'setup_zte', the 
modem port can't be assigned anymore to ttyUSB4.

static gboolean setup_zte(struct modem_info *modem)
{
	...

	if (g_strcmp0(info->number, "00") == 0)
		qcdm = info->devnode;
	else if (g_strcmp0(info->number, "01") == 0)
		aux = info->devnode;
	else if (g_strcmp0(info->number, "02") == 0)
		mdm = info->devnode;
	else if (g_strcmp0(info->number, "03") == 0)
		mdm = info->devnode;
	}
}

So, I wonder if the condition:
	
	else if (g_strcmp0(info->number, "04") == 0)

is voluntarily missing or not.

Please, could you clarify?
Thanks.

Regards,

Philippe.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: ofono.log --]
[-- Type: text/x-log, Size: 28362 bytes --]

ofonod[25685]: oFono version 0.53
ofonod[25685]: src/plugin.c:__ofono_plugin_init() 
ofonod[25685]: plugins/push-notification.c:push_notification_init() 
ofonod[25685]: plugins/smart-messaging.c:smart_messaging_init() 
ofonod[25685]: examples/emulator.c:example_emulator_init() 
ofonod[25685]: src/gprs-provision.c:ofono_gprs_provision_driver_register() driver: 0x81364e0 name: Example GPRS context provisioning
ofonod[25685]: src/nettime.c:ofono_nettime_driver_register() driver: 0x81364a0 name: Example Network Time
ofonod[25685]: src/history.c:ofono_history_driver_register() driver: 0x8136460 name: Example Call History
ofonod[25685]: plugins/connman.c:connman_init() 
ofonod[25685]: src/private-network.c:ofono_private_network_driver_register() driver: 0x8136420, name: ConnMan Private Network
ofonod[25685]: plugins/dun_gw.c:dun_gw_init() 
ofonod[25685]: src/modem.c:ofono_modem_driver_register() driver: 0x8136320, name: hfp
ofonod[25685]: src/modem.c:ofono_modem_driver_register() driver: 0x8136280, name: samsung
ofonod[25685]: src/modem.c:ofono_modem_driver_register() driver: 0x8136220, name: speedupcdma
ofonod[25685]: src/modem.c:ofono_modem_driver_register() driver: 0x81361c0, name: speedup
ofonod[25685]: src/modem.c:ofono_modem_driver_register() driver: 0x8136160, name: alcatel
ofonod[25685]: src/modem.c:ofono_modem_driver_register() driver: 0x8136100, name: telit
ofonod[25685]: src/modem.c:ofono_modem_driver_register() driver: 0x81360a0, name: linktop
ofonod[25685]: src/modem.c:ofono_modem_driver_register() driver: 0x8136040, name: nokiacdma
ofonod[25685]: src/modem.c:ofono_modem_driver_register() driver: 0x8135fe0, name: nokia
ofonod[25685]: src/modem.c:ofono_modem_driver_register() driver: 0x8135f80, name: tc65
ofonod[25685]: src/modem.c:ofono_modem_driver_register() driver: 0x8135ee0, name: ste
ofonod[25685]: src/modem.c:ofono_modem_driver_register() driver: 0x8135e80, name: ifx
ofonod[25685]: src/modem.c:ofono_modem_driver_register() driver: 0x8135e20, name: palmpre
ofonod[25685]: src/modem.c:ofono_modem_driver_register() driver: 0x8135dc0, name: novatel
ofonod[25685]: src/modem.c:ofono_modem_driver_register() driver: 0x8135d60, name: sierra
ofonod[25685]: src/modem.c:ofono_modem_driver_register() driver: 0x8135d00, name: huaweicdma
ofonod[25685]: src/modem.c:ofono_modem_driver_register() driver: 0x8135c80, name: huawei
ofonod[25685]: src/modem.c:ofono_modem_driver_register() driver: 0x8135c20, name: zte
ofonod[25685]: src/modem.c:ofono_modem_driver_register() driver: 0x8135bc0, name: hso
ofonod[25685]: src/modem.c:ofono_modem_driver_register() driver: 0x8135b60, name: mbm
ofonod[25685]: src/modem.c:ofono_modem_driver_register() driver: 0x8135b00, name: calypso
ofonod[25685]: src/modem.c:ofono_modem_driver_register() driver: 0x8135aa0, name: wavecom
ofonod[25685]: src/modem.c:ofono_modem_driver_register() driver: 0x8135a40, name: gobi
ofonod[25685]: src/modem.c:ofono_modem_driver_register() driver: 0x81359e0, name: g1
ofonod[25685]: src/cdma-netreg.c:ofono_cdma_netreg_driver_register() driver: 0x81359a0, name: huaweicdmamodem
ofonod[25685]: src/cdma-voicecall.c:ofono_cdma_voicecall_driver_register() driver: 0x8135920, name: cdmamodem
ofonod[25685]: src/modem.c:ofono_devinfo_driver_register() driver: 0x8135940, name: cdmamodem
ofonod[25685]: src/cdma-connman.c:ofono_cdma_connman_driver_register() driver: 0x8135964, name: cdmamodem
ofonod[25685]: src/modem.c:ofono_modem_driver_register() driver: 0x8135880, name: phonesim
ofonod[25685]: src/modem.c:ofono_modem_driver_register() driver: 0x81358c0, name: localhfp
ofonod[25685]: src/gprs.c:ofono_gprs_context_driver_register() driver: 0x8135854, name: phonesim
ofonod[25685]: src/ctm.c:ofono_ctm_driver_register() driver: 0x8135840, name: phonesim
ofonod[25685]: plugins/phonesim.c:parse_config() filename /etc/ofono/phonesim.conf
ofonod[25685]: plugins/phonesim.c:create_modem() group phonesim
ofonod[25685]: src/modem.c:ofono_modem_create() name: phonesim, type: phonesim
ofonod[25685]: src/modem.c:set_modem_property() modem 0x8bc4458 property Address
ofonod[25685]: src/modem.c:set_modem_property() modem 0x8bc4458 property Port
ofonod[25685]: src/modem.c:set_modem_property() modem 0x8bc4458 property Modem
ofonod[25685]: plugins/phonesim.c:create_modem() 0x8bc4458
ofonod[25685]: src/modem.c:ofono_modem_register() 0x8bc4458
ofonod[25685]: plugins/phonesim.c:phonesim_probe() 0x8bc4458
ofonod[25685]: src/modem.c:emit_modem_added() 0x8bc4458
ofonod[25685]: src/modem.c:call_modemwatches() 0x8bc4458 added:1
ofonod[25685]: plugins/hfp_ag.c:modem_watch() modem: 0x8bc4458, added: 1
ofonod[25685]: plugins/dun_gw.c:modem_watch() modem: 0x8bc4458, added: 1
ofonod[25685]: examples/emulator.c:modem_watch() modem: 0x8bc4458, added: 1
ofonod[25685]: plugins/smart-messaging.c:modem_watch() modem: 0x8bc4458, added: 1
ofonod[25685]: plugins/push-notification.c:modem_watch() modem: 0x8bc4458, added: 1
ofonod[25685]: src/voicecall.c:ofono_voicecall_driver_register() driver: 0x8135760, name: hfpmodem
ofonod[25685]: src/network.c:ofono_netreg_driver_register() driver: 0x81357c0, name: hfpmodem
ofonod[25685]: src/call-volume.c:ofono_call_volume_driver_register() driver: 0x81357f4, name: hfpmodem
ofonod[25685]: src/network.c:ofono_netreg_driver_register() driver: 0x81356e0, name: dunmodem
ofonod[25685]: src/gprs.c:ofono_gprs_driver_register() driver: 0x813570c, name: dunmodem
ofonod[25685]: src/voicecall.c:ofono_voicecall_driver_register() driver: 0x8135600, name: stemodem
ofonod[25685]: src/gprs.c:ofono_gprs_context_driver_register() driver: 0x813568c, name: stemodem
ofonod[25685]: src/radio-settings.c:ofono_radio_settings_driver_register() driver: 0x8135660, name: stemodem
ofonod[25685]: src/voicecall.c:ofono_voicecall_driver_register() driver: 0x81354c0, name: ifxmodem
ofonod[25685]: src/audio-settings.c:ofono_audio_settings_driver_register() driver: 0x8135510, name: ifxmodem
ofonod[25685]: src/radio-settings.c:ofono_radio_settings_driver_register() driver: 0x8135540, name: ifxmodem
ofonod[25685]: src/gprs.c:ofono_gprs_context_driver_register() driver: 0x813556c, name: ifxmodem
ofonod[25685]: src/stk.c:ofono_stk_driver_register() driver: 0x8135590, name: ifxmodem
ofonod[25685]: src/ctm.c:ofono_ctm_driver_register() driver: 0x81355b8, name: ifxmodem
ofonod[25685]: src/gprs.c:ofono_gprs_context_driver_register() driver: 0x8135440, name: hsomodem
ofonod[25685]: src/radio-settings.c:ofono_radio_settings_driver_register() driver: 0x8135460, name: hsomodem
ofonod[25685]: src/gprs.c:ofono_gprs_context_driver_register() driver: 0x81353a0, name: mbmmodem
ofonod[25685]: src/stk.c:ofono_stk_driver_register() driver: 0x81353c4, name: mbmmodem
ofonod[25685]: src/location-reporting.c:ofono_location_reporting_driver_register() driver: 0x81353e4, name: mbmmodem
ofonod[25685]: src/voicecall.c:ofono_voicecall_driver_register() driver: 0x8135300, name: calypsomodem
ofonod[25685]: src/stk.c:ofono_stk_driver_register() driver: 0x8135348, name: calypsomodem
ofonod[25685]: src/voicecall.c:ofono_voicecall_driver_register() driver: 0x8135220, name: huaweimodem
ofonod[25685]: src/audio-settings.c:ofono_audio_settings_driver_register() driver: 0x8135268, name: huaweimodem
ofonod[25685]: src/radio-settings.c:ofono_radio_settings_driver_register() driver: 0x81352a0, name: huaweimodem
ofonod[25685]: src/gprs.c:ofono_gprs_context_driver_register() driver: 0x813527c, name: huaweimodem
ofonod[25685]: src/radio-settings.c:ofono_radio_settings_driver_register() driver: 0x81351c0, name: nwmodem
ofonod[25685]: src/voicecall.c:ofono_voicecall_driver_register() driver: 0x8135020, name: atmodem
ofonod[25685]: src/modem.c:ofono_devinfo_driver_register() driver: 0x81350c0, name: atmodem
ofonod[25685]: src/call-barring.c:ofono_call_barring_driver_register() driver: 0x8135078, name: atmodem
ofonod[25685]: src/call-forwarding.c:ofono_call_forwarding_driver_register() driver: 0x8134e40, name: atmodem
ofonod[25685]: src/call-meter.c:ofono_call_meter_driver_register() driver: 0x8134e80, name: atmodem
ofonod[25685]: src/call-settings.c:ofono_call_settings_driver_register() driver: 0x8134d40, name: atmodem
ofonod[25685]: src/phonebook.c:ofono_phonebook_driver_register() driver: 0x8135098, name: atmodem
ofonod[25685]: src/ussd.c:ofono_ussd_driver_register() driver: 0x8134fec, name: atmodem
ofonod[25685]: src/sms.c:ofono_sms_driver_register() driver: 0x8134dc0, name: atmodem
ofonod[25685]: src/sim.c:ofono_sim_driver_register() driver: 0x8134f40, name: atmodem
ofonod[25685]: src/stk.c:ofono_stk_driver_register() driver: 0x8134fcc, name: atmodem
ofonod[25685]: src/network.c:ofono_netreg_driver_register() driver: 0x8134ee0, name: atmodem
ofonod[25685]: src/cbs.c:ofono_cbs_driver_register() driver: 0x8134e20, name: atmodem
ofonod[25685]: src/call-volume.c:ofono_call_volume_driver_register() driver: 0x81350e4, name: atmodem
ofonod[25685]: src/gprs.c:ofono_gprs_driver_register() driver: 0x8135114, name: atmodem
ofonod[25685]: src/gprs.c:ofono_gprs_context_driver_register() driver: 0x8135138, name: atmodem
ofonod[25685]: src/sim-auth.c:ofono_sim_auth_driver_register() driver: 0x813514c, name: atmodem
ofonod[25685]: src/gnss.c:ofono_gnss_driver_register() driver: 0x8135164, name: atmodem
ofonod[25685]: src/modem.c:ofono_modem_driver_register() driver: 0x8134b40, name: u8500
ofonod[25685]: src/modem.c:ofono_devinfo_driver_register() driver: 0x8134b20, name: u8500
ofonod[25685]: src/modem.c:ofono_modem_driver_register() driver: 0x8134ac0, name: n900
ofonod[25685]: src/modem.c:ofono_modem_driver_register() driver: 0x8134a60, name: isiusb
ofonod[25685]: src/modem.c:ofono_devinfo_driver_register() driver: 0x8134750, name: isimodem
ofonod[25685]: src/phonebook.c:ofono_phonebook_driver_register() driver: 0x8134740, name: isimodem
ofonod[25685]: src/network.c:ofono_netreg_driver_register() driver: 0x8134780, name: isimodem
ofonod[25685]: src/voicecall.c:ofono_voicecall_driver_register() driver: 0x81347c0, name: isimodem
ofonod[25685]: src/sms.c:ofono_sms_driver_register() driver: 0x8134820, name: isimodem
ofonod[25685]: src/cbs.c:ofono_cbs_driver_register() driver: 0x8134840, name: isimodem
ofonod[25685]: src/sim.c:ofono_sim_driver_register() driver: 0x8134860, name: isimodem
ofonod[25685]: src/ussd.c:ofono_ussd_driver_register() driver: 0x81348a8, name: isimodem
ofonod[25685]: src/call-forwarding.c:ofono_call_forwarding_driver_register() driver: 0x81348c0, name: isimodem
ofonod[25685]: src/call-settings.c:ofono_call_settings_driver_register() driver: 0x81348e0, name: isimodem
ofonod[25685]: src/call-barring.c:ofono_call_barring_driver_register() driver: 0x8134910, name: isimodem
ofonod[25685]: src/call-meter.c:ofono_call_meter_driver_register() driver: 0x8134940, name: isimodem
ofonod[25685]: src/radio-settings.c:ofono_radio_settings_driver_register() driver: 0x8134980, name: isimodem
ofonod[25685]: src/gprs.c:ofono_gprs_driver_register() driver: 0x81349a4, name: isimodem
ofonod[25685]: src/gprs.c:ofono_gprs_context_driver_register() driver: 0x81349b8, name: isimodem
ofonod[25685]: src/audio-settings.c:ofono_audio_settings_driver_register() driver: 0x81349cc, name: isimodem
ofonod[25685]: src/sim.c:ofono_sim_driver_register() driver: 0x81349e0, name: wgmodem2.5
ofonod[25685]: plugins/udevng.c:udev_start() 
ofonod[25685]: plugins/udevng.c:enumerate_devices() 
ofonod[25685]: plugins/udevng.c:add_device() /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/ttyUSB0/tty/ttyUSB0
ofonod[25685]: plugins/udevng.c:add_device() /dev/ttyUSB0 (zte) 255/255/255 [00] ==> (null) (null)
ofonod[25685]: plugins/udevng.c:add_device() /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.1/ttyUSB1/tty/ttyUSB1
ofonod[25685]: plugins/udevng.c:add_device() /dev/ttyUSB1 (zte) 255/255/255 [01] ==> (null) (null)
ofonod[25685]: plugins/udevng.c:add_device() /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.2/ttyUSB2/tty/ttyUSB2
ofonod[25685]: plugins/udevng.c:add_device() /dev/ttyUSB2 (zte) 255/255/255 [02] ==> (null) (null)
ofonod[25685]: plugins/udevng.c:add_device() /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.3/ttyUSB3/tty/ttyUSB3
ofonod[25685]: plugins/udevng.c:add_device() /dev/ttyUSB3 (zte) 255/255/255 [03] ==> (null) (null)
ofonod[25685]: plugins/udevng.c:add_device() /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.4/ttyUSB4/tty/ttyUSB4
ofonod[25685]: plugins/udevng.c:add_device() /dev/ttyUSB4 (zte) 255/255/255 [04] ==> (null) (null)
ofonod[25685]: plugins/udevng.c:add_device() /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.5/ttyUSB5/tty/ttyUSB5
ofonod[25685]: plugins/udevng.c:add_device() /dev/ttyUSB5 (zte) 255/255/255 [05] ==> (null) (null)
ofonod[25685]: plugins/udevng.c:create_modem() /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1
ofonod[25685]: plugins/udevng.c:create_modem() driver=zte
ofonod[25685]: src/modem.c:ofono_modem_create() name: (null), type: zte
ofonod[25685]: plugins/udevng.c:setup_zte() /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1
ofonod[25685]: plugins/udevng.c:setup_zte() /dev/ttyUSB0 255/255/255 00 (null)
ofonod[25685]: plugins/udevng.c:setup_zte() /dev/ttyUSB1 255/255/255 01 (null)
ofonod[25685]: plugins/udevng.c:setup_zte() /dev/ttyUSB2 255/255/255 02 (null)
ofonod[25685]: plugins/udevng.c:setup_zte() /dev/ttyUSB3 255/255/255 03 (null)
ofonod[25685]: plugins/udevng.c:setup_zte() /dev/ttyUSB4 255/255/255 04 (null)
ofonod[25685]: plugins/udevng.c:setup_zte() /dev/ttyUSB5 255/255/255 05 (null)
ofonod[25685]: plugins/udevng.c:setup_zte() aux=/dev/ttyUSB1 modem=/dev/ttyUSB3 qcdm=/dev/ttyUSB0
ofonod[25685]: src/modem.c:set_modem_property() modem 0x8bc7380 property Aux
ofonod[25685]: src/modem.c:set_modem_property() modem 0x8bc7380 property Modem
ofonod[25685]: src/modem.c:ofono_modem_register() 0x8bc7380
ofonod[25685]: plugins/zte.c:zte_probe() 0x8bc7380
ofonod[25685]: src/modem.c:emit_modem_added() 0x8bc7380
ofonod[25685]: src/modem.c:call_modemwatches() 0x8bc7380 added:1
ofonod[25685]: plugins/hfp_ag.c:modem_watch() modem: 0x8bc7380, added: 1
ofonod[25685]: plugins/dun_gw.c:modem_watch() modem: 0x8bc7380, added: 1
ofonod[25685]: examples/emulator.c:modem_watch() modem: 0x8bc7380, added: 1
ofonod[25685]: plugins/smart-messaging.c:modem_watch() modem: 0x8bc7380, added: 1
ofonod[25685]: plugins/push-notification.c:modem_watch() modem: 0x8bc7380, added: 1
ofonod[25685]: src/modem.c:ofono_modem_create() name: P671A2TMED010000, type: zte
ofonod[25685]: src/modem.c:set_modem_property() modem 0x8bc91c0 property Path
ofonod[25685]: src/modem.c:set_modem_property() modem 0x8bc91c0 property Registered
ofonod[25685]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/ttyUSB0/tty/ttyUSB0 (zte)
ofonod[25685]: src/modem.c:get_modem_property() modem 0x8bc91c0 property Path
ofonod[25685]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.1/ttyUSB1/tty/ttyUSB1 (zte)
ofonod[25685]: src/modem.c:get_modem_property() modem 0x8bc91c0 property Path
ofonod[25685]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.2/ttyUSB2/tty/ttyUSB2 (zte)
ofonod[25685]: src/modem.c:get_modem_property() modem 0x8bc91c0 property Path
ofonod[25685]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.3/ttyUSB3/tty/ttyUSB3 (zte)
ofonod[25685]: src/modem.c:get_modem_property() modem 0x8bc91c0 property Path
ofonod[25685]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.4/ttyUSB4/tty/ttyUSB4 (zte)
ofonod[25685]: src/modem.c:get_modem_property() modem 0x8bc91c0 property Path
ofonod[25685]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.5/ttyUSB5/tty/ttyUSB5 (zte)
ofonod[25685]: src/private-network.c:ofono_private_network_driver_register() driver: 0x8136540, name: Example Private Network Driver
ofonod[25685]: plugins/bluetooth.c:manager_properties_cb() 
ofonod[25685]: plugins/bluetooth.c:parse_adapters() 
ofonod[25685]: plugins/bluetooth.c:parse_adapters() Calling GetProperties on /org/bluez/1310/hci0
ofonod[25685]: plugins/bluetooth.c:adapter_properties_cb() 
ofonod[25685]: plugins/bluetooth.c:parse_devices() 
ofonod[25685]: plugins/bluetooth.c:adapter_properties_cb() Adapter Address: 5C:AC:4C:FF:95:E6, Path: /org/bluez/1310/hci0
ofonod[25685]: plugins/bluetooth.c:device_properties_cb() 
ofonod[25685]: Using device: /org/bluez/1310/hci0/dev_00_13_E0_64_80_7E, devaddr: 00:13:E0:64:80:7E, adapter: 5C:AC:4C:FF:95:E6
ofonod[25685]: src/modem.c:ofono_modem_create() name: hfp/5CAC4CFF95E6_0013E064807E, type: hfp
ofonod[25685]: src/modem.c:ofono_modem_register() 0x8bc8a00
ofonod[25685]: plugins/hfp_hf.c:hfp_register_ofono_handsfree() Registering oFono Agent to bluetooth daemon
ofonod[25685]: src/modem.c:emit_modem_added() 0x8bc8a00
ofonod[25685]: src/modem.c:call_modemwatches() 0x8bc8a00 added:1
ofonod[25685]: plugins/hfp_ag.c:modem_watch() modem: 0x8bc8a00, added: 1
ofonod[25685]: plugins/dun_gw.c:modem_watch() modem: 0x8bc8a00, added: 1
ofonod[25685]: examples/emulator.c:modem_watch() modem: 0x8bc8a00, added: 1
ofonod[25685]: plugins/smart-messaging.c:modem_watch() modem: 0x8bc8a00, added: 1
ofonod[25685]: plugins/push-notification.c:modem_watch() modem: 0x8bc8a00, added: 1
ofonod[25685]: plugins/bluetooth.c:device_properties_cb() 
ofonod[25685]: Using device: /org/bluez/1310/hci0/dev_58_1F_AA_11_14_D2, devaddr: 58:1F:AA:11:14:D2, adapter: 5C:AC:4C:FF:95:E6
ofonod[25685]: src/modem.c:ofono_modem_create() name: hfp/5CAC4CFF95E6_581FAA1114D2, type: hfp
ofonod[25685]: src/modem.c:ofono_modem_register() 0x8bc99e0
ofonod[25685]: plugins/hfp_hf.c:hfp_register_ofono_handsfree() Registering oFono Agent to bluetooth daemon
ofonod[25685]: src/modem.c:emit_modem_added() 0x8bc99e0
ofonod[25685]: src/modem.c:call_modemwatches() 0x8bc99e0 added:1
ofonod[25685]: plugins/hfp_ag.c:modem_watch() modem: 0x8bc99e0, added: 1
ofonod[25685]: plugins/dun_gw.c:modem_watch() modem: 0x8bc99e0, added: 1
ofonod[25685]: examples/emulator.c:modem_watch() modem: 0x8bc99e0, added: 1
ofonod[25685]: plugins/smart-messaging.c:modem_watch() modem: 0x8bc99e0, added: 1
ofonod[25685]: plugins/push-notification.c:modem_watch() modem: 0x8bc99e0, added: 1
ofonod[25685]: plugins/bluetooth.c:device_properties_cb() 
ofonod[25685]: plugins/zte.c:zte_enable() 0x8bc7380
ofonod[25685]: src/modem.c:get_modem_property() modem 0x8bc7380 property Modem
ofonod[25685]: plugins/zte.c:open_device() Modem /dev/ttyUSB3
ofonod[25685]: src/modem.c:get_modem_property() modem 0x8bc7380 property Aux
ofonod[25685]: plugins/zte.c:open_device() Aux /dev/ttyUSB1
ofonod[25685]: Modem: > ATZ E0 +CMEE=1\r
ofonod[25685]: Aux: > ATE0 +CMEE=1\r
ofonod[25685]: Aux: < ATE0 +CMEE=1\r\r\nOK\r\n
ofonod[25685]: Aux: > AT+CFUN=1\r
ofonod[25685]: Aux: < \r\nOK\r\n
ofonod[25685]: plugins/zte.c:cfun_enable() 
ofonod[25685]: Aux: > AT+CPIN?\r
ofonod[25685]: Aux: < \r\n+CPIN: READY\r\n\r\nOK\r\n
ofonod[25685]: Aux: > AT+ZOPRT=6\r
ofonod[25685]: Aux: < \r\nOK\r\n
ofonod[25685]: plugins/zte.c:zoprt_enable() 
ofonod[25685]: examples/emulator.c:powered_watch() Adding modem 0x8bc7380 to the list
ofonod[25685]: examples/emulator.c:create_tcp() Created server_watch: 48
ofonod[25685]: examples/emulator.c:create_tcp() Created server_watch: 49
ofonod[25685]: src/modem.c:modem_change_state() old state: 0, new state: 1
ofonod[25685]: plugins/zte.c:zte_pre_sim() 0x8bc7380
ofonod[25685]: Aux: > AT&C0\r
ofonod[25685]: src/sim.c:ofono_sim_add_state_watch() 0x8bc8320
ofonod[25685]: src/sim.c:ofono_sim_add_state_watch() 0x8bc8320
ofonod[25685]: src/sim.c:ofono_sim_add_state_watch() 0x8bc8320
ofonod[25685]: Aux: < \r\nOK\r\n
ofonod[25685]: Aux: > AT+ZPCB?\r
ofonod[25685]: Aux: < \r\n+ZPCB: MF190-1.0.0\r\n\r\nOK\r\n
ofonod[25685]: Aux: > AT+GCAP\r
ofonod[25685]: Aux: < \r\n+GCAP: +CGSM,+DS,+ES\r\n\r\nOK\r\n
ofonod[25685]: Aux: > AT+CRSM=192,12258,0,0,255\r
ofonod[25685]: Aux: < \r\n+CRSM: 144,0,"62178202412183022FE28A01058B032F06158002000A880110"\r\n\r\nOK\r\n
ofonod[25685]: drivers/atmodem/sim.c:at_crsm_info_cb() crsm_info_cb: 90, 00, 25
ofonod[25685]: Aux: > AT+CGMI\r
ofonod[25685]: Aux: < \r\nZTE CORPORATION\r\n\r\nOK\r\n
ofonod[25685]: Aux: > AT+CRSM=176,12258,0,0,10\r
ofonod[25685]: Aux: < \r\n+CRSM: 144,0,"98330133018086504021"\r\n\r\nOK\r\n
ofonod[25685]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 10
ofonod[25685]: src/simfs.c:sim_fs_op_read_block_cb() bufoff: 0, dataoff: 0, tocopy: 10
ofonod[25685]: Aux: > AT+CGMM\r
ofonod[25685]: Aux: < \r\nMF190\r\n\r\nOK\r\n
ofonod[25685]: Aux: > AT+CRSM=192,28421,0,0,255\r
ofonod[25685]: Aux: < \r\n+CRSM: 106,130,""\r\n\r\nOK\r\n
ofonod[25685]: Aux: > AT+CGMR\r
ofonod[25685]: Aux: < \r\nMF190V1.0.0B05\r\n\r\nOK\r\n
ofonod[25685]: Aux: > AT+CRSM=192,12037,0,0,255\r
ofonod[25685]: Aux: < \r\n+CRSM: 144,0,"62178202412183022F058A01058B032F06148002000A880128"\r\n\r\nOK\r\n
ofonod[25685]: drivers/atmodem/sim.c:at_crsm_info_cb() crsm_info_cb: 90, 00, 25
ofonod[25685]: Aux: > AT+CGSN\r
ofonod[25685]: Aux: < \r\n359728031277380\r\n\r\nOK\r\n
ofonod[25685]: Aux: > AT+CRSM=176,12037,0,0,10\r
ofonod[25685]: Aux: < \r\n+CRSM: 144,0,"6672656E646565736974"\r\n\r\nOK\r\n
ofonod[25685]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 10
ofonod[25685]: src/simfs.c:sim_fs_op_read_block_cb() bufoff: 0, dataoff: 0, tocopy: 10
ofonod[25685]: Aux: > AT+CPIN?\r
ofonod[25685]: Aux: < \r\n+CPIN: READY\r\n\r\nOK\r\n
ofonod[25685]: drivers/atmodem/sim.c:at_cpin_cb() crsm_pin_cb: READY
ofonod[25685]: drivers/atmodem/sim.c:at_pin_retries_query() 
ofonod[25685]: Aux: > AT+ZPINPUK=?\r
ofonod[25685]: Aux: < \r\n+ZPINPUK: 3,10\r\n\r\nOK\r\n
ofonod[25685]: drivers/atmodem/sim.c:zpinpuk_cb() retry counter id=1, val=3
ofonod[25685]: drivers/atmodem/sim.c:zpinpuk_cb() retry counter id=9, val=10
ofonod[25685]: Aux: > AT+CRSM=192,28590,0,0,255\r
ofonod[25685]: Aux: < \r\n+CRSM: 106,130,""\r\n\r\nOK\r\n
ofonod[25685]: Aux: > AT+CRSM=192,28589,0,0,255\r
ofonod[25685]: Aux: < \r\n+CRSM: 144,0,"62178202412183026FAD8A01058B036F060B80020004880118"\r\n\r\nOK\r\n
ofonod[25685]: drivers/atmodem/sim.c:at_crsm_info_cb() crsm_info_cb: 90, 00, 25
ofonod[25685]: Aux: > AT+CRSM=176,28589,0,0,4\r
ofonod[25685]: Aux: < \r\n+CRSM: 144,0,"00FFFF02"\r\n\r\nOK\r\n
ofonod[25685]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 4
ofonod[25685]: src/simfs.c:sim_fs_op_read_block_cb() bufoff: 0, dataoff: 0, tocopy: 4
ofonod[25685]: Aux: > AT+CRSM=192,28438,0,0,255\r
ofonod[25685]: Aux: < \r\n+CRSM: 106,130,""\r\n\r\nOK\r\n
ofonod[25685]: Aux: > AT+CRSM=192,28472,0,0,255\r
ofonod[25685]: Aux: < \r\n+CRSM: 144,0,"62178202412183026F388A01058B036F060380020007880120"\r\n\r\nOK\r\n
ofonod[25685]: drivers/atmodem/sim.c:at_crsm_info_cb() crsm_info_cb: 90, 00, 25
ofonod[25685]: Aux: > AT+CRSM=176,28472,0,0,7\r
ofonod[25685]: Aux: < \r\n+CRSM: 144,0,"824B1C6C230602"\r\n\r\nOK\r\n
ofonod[25685]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 7
ofonod[25685]: src/simfs.c:sim_fs_op_read_block_cb() bufoff: 0, dataoff: 0, tocopy: 7
ofonod[25685]: Aux: > AT+CRSM=192,28502,0,0,255\r
ofonod[25685]: Aux: < \r\n+CRSM: 144,0,"62178202412183026F568A01058B036F060480020001880128"\r\n\r\nOK\r\n
ofonod[25685]: drivers/atmodem/sim.c:at_crsm_info_cb() crsm_info_cb: 90, 00, 25
ofonod[25685]: Aux: > AT+CRSM=176,28502,0,0,1\r
ofonod[25685]: Aux: < \r\n+CRSM: 144,0,"00"\r\n\r\nOK\r\n
ofonod[25685]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 1
ofonod[25685]: src/simfs.c:sim_fs_op_read_block_cb() bufoff: 0, dataoff: 0, tocopy: 1
ofonod[25685]: Aux: > AT+CIMI\r
ofonod[25685]: Aux: < \r\n208103386474997\r\n\r\nOK\r\n
ofonod[25685]: drivers/atmodem/sim.c:at_cimi_cb() cimi_cb: 208103386474997
ofonod[25685]: src/modem.c:modem_change_state() old state: 1, new state: 2
ofonod[25685]: plugins/zte.c:zte_post_sim() 0x8bc7380
ofonod[25685]: drivers/atmodem/gprs-context.c:at_gprs_context_probe() 
ofonod[25685]: Example History Probe for modem: 0x8bc7380
ofonod[25685]: Example Network Time Probe for modem: 0x8bc7380
ofonod[25685]: Aux: > AT+CSCS=?\r
ofonod[25685]: Aux: < \r\n+CSCS: ("IRA","GSM","UCS2")\r\n\r\nOK\r\n
ofonod[25685]: Aux: > AT+CSMS=?\r
ofonod[25685]: Aux: < \r\n+CSMS: (0-1)\r\n\r\nOK\r\n
ofonod[25685]: drivers/atmodem/sms.c:at_csms_query_cb() CSMS query parsed successfully
ofonod[25685]: Aux: > AT+CGDCONT=?\r
ofonod[25685]: Aux: < \r\n+CGDCONT: (1-16),"IP",,,(0-2),(0-3)\r\n+CGDCONT: (1-16),"PPP",,,(0-2),(0-3)\r\n+CGDCONT: (1-16),"IPV6",,,(0-2),(0-3)\r\n\r\nOK\r\n
ofonod[25685]: Aux: > AT+CRSM=192,28480,0,0,255\r
ofonod[25685]: Aux: < \r\n+CRSM: 144,0,"621982054221001C0383026F408A01058B036F0602800200548800"\r\n\r\nOK\r\n
ofonod[25685]: drivers/atmodem/sim.c:at_crsm_info_cb() crsm_info_cb: 90, 00, 27
ofonod[25685]: Aux: > AT+CPBS=?\r
ofonod[25685]: Aux: < \r\n+CPBS: ("SM","DC","FD","LD","MC","ME","RC","EN","ON")\r\n\r\nOK\r\n
ofonod[25685]: Aux: > AT+CSMS=1\r
ofonod[25685]: Aux: < \r\n+CSMS: 1,1,1\r\n\r\nOK\r\n
ofonod[25685]: Aux: > AT+CGREG=?\r
ofonod[25685]: Aux: < \r\nOK\r\n
ofonod[25685]: GPRS not supported on this device
ofonod[25685]: src/gprs.c:gprs_remove() atom: 0x8bc4ca0
ofonod[25685]: Aux: > AT+CRSM=178,28480,1,4,28\r
ofonod[25685]: Aux: < \r\n+CRSM: 144,0,"4D6F6E204E6F20534652FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"\r\n\r\nOK\r\n
ofonod[25685]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 28
ofonod[25685]: Aux: > AT+CSMS?\r
ofonod[25685]: Aux: < \r\n+CSMS: 1,1,1,1\r\n\r\nOK\r\n
ofonod[25685]: Aux: > AT+CRSM=178,28480,2,4,28\r
ofonod[25685]: Aux: < \r\n+CRSM: 144,0,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"\r\n\r\nOK\r\n
ofonod[25685]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 28
ofonod[25685]: Aux: > AT+CMGF=?\r
ofonod[25685]: Aux: < \r\n+CMGF: (0-1)\r\n\r\nOK\r\n
ofonod[25685]: Aux: > AT+CRSM=178,28480,3,4,28\r
ofonod[25685]: Aux: < \r\n+CRSM: 144,0,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"\r\n\r\nOK\r\n
ofonod[25685]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 28
ofonod[25685]: Aux: > AT+CPMS=?\r
ofonod[25685]: Aux: < \r\n+CPMS: ("ME","MT","SM","SR"),("ME","MT","SM","SR"),("ME","MT","SM","SR")\r\n\r\nOK\r\n
ofonod[25685]: Aux: > AT+CRSM=192,28489,0,0,255\r
ofonod[25685]: Aux: < \r\n+CRSM: 106,130,""\r\n\r\nOK\r\n
ofonod[25685]: Aux: > AT+CMGF=0\r
ofonod[25685]: Aux: < \r\nOK\r\n
ofonod[25685]: Aux: > AT+CPMS="ME","ME","ME"\r
ofonod[25685]: Aux: < \r\n+CPMS: 0,100,0,100,0,100\r\n\r\nOK\r\n
ofonod[25685]: Aux: > AT+CNMI=?\r
ofonod[25685]: Aux: < \r\n+CNMI: (0,1,2,3),(0,1,2,3),(0,2),(0,1,2),(0,1)\r\n\r\nOK\r\n
ofonod[25685]: drivers/atmodem/sms.c:build_cnmi_string() 
ofonod[25685]: drivers/atmodem/sms.c:construct_ack_pdu() 
ofonod[25685]: Aux: > AT+CNMI=1,2,2,1,0\r
ofonod[25685]: Aux: < \r\nOK\r\n
ofonod[25685]: src/sms.c:sms_restore_tx_queue() 
ofonod[25685]: plugins/push-notification.c:sms_watch() registered
ofonod[25685]: plugins/smart-messaging.c:sms_watch() registered
ofonod[25685]: Aux: > AT+CMGL=4\r
ofonod[25685]: Aux: < \r\nOK\r\n
ofonod[25685]: drivers/atmodem/sms.c:at_cmgl_done() 
ofonod[25685]: Aux: > AT+CGSMS=3\r
ofonod[25685]: Aux: < \r\nOK\r\n
ofonod[25685]: plugins/zte.c:zte_set_online() modem 0x8bc7380 online
ofonod[25685]: Aux: > AT+ZOPRT=5\r
ofonod[25685]: Aux: < \r\nOK\r\n
ofonod[25685]: src/modem.c:modem_change_state() old state: 2, new state: 3
ofonod[25685]: plugins/zte.c:zte_post_online() 0x8bc7380
ofonod[25685]: Aux: > AT+CREG=?\r
ofonod[25685]: Aux: < \r\nOK\r\n
ofonod[25685]: Unable to initialize Network Registration
ofonod[25685]: src/network.c:netreg_remove() atom: 0x8bc6620
ofonod[25685]: Aux: > AT+CSCB=?\r
ofonod[25685]: Aux: < \r\n+CSCB: (0-1)\r\n\r\nOK\r\n
ofonod[25685]: Aux: > AT+CSCS?\r
ofonod[25685]: Aux: < \r\n+CSCS: "IRA"\r\n\r\nOK\r\n
ofonod[25685]: Aux: > AT+CUSD=1\r
ofonod[25685]: Aux: < \r\nOK\r\n
ofonod[25685]: Aux: > AT+CSCB=1,"0-65535"\r
ofonod[25685]: Aux: < \r\nOK\r\n
ofonod[25685]: src/cbs.c:cbs_got_imsi() Got IMSI: 208103386474997
ofonod[25685]: Aux: > AT+CRSM=192,28488,0,0,255\r
ofonod[25685]: Aux: < \r\n+CRSM: 106,130,""\r\n\r\nOK\r\n
ofonod[25685]: drivers/atmodem/cbs.c:at_cbs_set_topics() 
ofonod[25685]: Aux: > AT+CSCB=1\r
ofonod[25685]: Aux: < \r\nOK\r\n
ofonod[25685]: Aux: > AT+CSCB=0,"3,5,38,54,130,147,221,223,237,786,4352-4356"\r
ofonod[25685]: Aux: < \r\nOK\r\n




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

* Re: [PATCH 0/3] oFono rules update
  2011-08-23 15:26   ` Philippe Nunes
@ 2011-08-23 16:13     ` Marcel Holtmann
  2011-08-24 10:34       ` Philippe Nunes
  0 siblings, 1 reply; 11+ messages in thread
From: Marcel Holtmann @ 2011-08-23 16:13 UTC (permalink / raw)
  To: ofono

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

Hi Phillipe,

> >> Based on the latest usb_modeswitch rules, some 3G dongles require
> >> to modify the ofono rules to be supported correctly (tests done in India)
> >>
> >>
> >> Philippe Nunes (3):
> >>    udev: use ttyUSB3 for ZTE K3570 modem port.
> >>    udev:  add support for Olive HSDPA modem
> >>    udev: Use ttyUSB4 for Huawei E367 Pcui port
> >>
> >>   plugins/ofono.rules |   17 ++++++++++-------
> >>   1 files changed, 10 insertions(+), 7 deletions(-)
> >
> > I think you are way too late with these changes. We are not using
> > plugins/udev.c for Huawei and ZTE device detection anymore. I fixed this
> > all up and plugins/udevng.c should do proper automatic detection.
> >
> > Please check if this works properly for you or if you have problems.
> >
> 
> 
> Hi Marcel,
> 
> I just experienced a case where the automatic detection brings a 
> difference with the previous implementation.
> 
> Using the dongle ZTE MF190 (DefaultProduct= 0x0149 TargetProduct= 
> 0x0124), udevng.c is assigning the modem port to ttyUSB3 whereas ttyUSB4 
> was assigned with the previous udev.c based on the previous ofono.rules.
> 
> In practice, the port com ttyUSB3 is not responsive (I checked also with 
> minicom) so we can't manage to connect a data call (see ofono logs in 
> attachment). Using the previous combination udev.c  + ofono.rules, if 
> the modem port assigned to ttyUSB4 is responsive, we are however facing 
> with an other issue:
> 
> ofonod[23908]: plugins/zte.c:zte_post_online() 0x9e2a470
> ofonod[23908]: Aux: > AT+CREG=?\r
> ofonod[23908]: Aux: < \r\nOK\r\n
> ofonod[23908]: Unable to initialize Network Registration
> ofonod[23908]: src/network.c:netreg_remove() atom: 0x9e29cf0
> 
> 
> So, we can't go ahead for the data call since the network is not 
> registered. But this is an other issue we would need to fix I guess 
> specifically for this dongle.
> 
> Here, I just wanted to raise a potential issue regarding the modem port 
> com assignment for ZTE dongles:
> 
> Indeed, according the previous ofono.rules, we were assigning ttyUSB4 as 
> modem port for 2 product Ids:
> 
> ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="0121", 
> ENV{ID_USB_INTERFACE_NUM}=="04", ENV{OFONO_ZTE_TYPE}="modem"
> ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="0121", 
> ENV{ID_USB_INTERFACE_NUM}=="01", ENV{OFONO_ZTE_TYPE}="aux"
> 
> ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="0124", 
> ENV{ID_USB_INTERFACE_NUM}=="04", ENV{OFONO_ZTE_TYPE}="modem"
> ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="0124", 
> ENV{ID_USB_INTERFACE_NUM}=="01", ENV{OFONO_ZTE_TYPE}="aux"
> 
> but looking to udevng.c and particularly the function 'setup_zte', the 
> modem port can't be assigned anymore to ttyUSB4.
> 
> static gboolean setup_zte(struct modem_info *modem)
> {
> 	...
> 
> 	if (g_strcmp0(info->number, "00") == 0)
> 		qcdm = info->devnode;
> 	else if (g_strcmp0(info->number, "01") == 0)
> 		aux = info->devnode;
> 	else if (g_strcmp0(info->number, "02") == 0)
> 		mdm = info->devnode;
> 	else if (g_strcmp0(info->number, "03") == 0)
> 		mdm = info->devnode;
> 	}
> }
> 
> So, I wonder if the condition:
> 	
> 	else if (g_strcmp0(info->number, "04") == 0)
> 
> is voluntarily missing or not.

it might be missing. What does usb-devices say and how many TTY is this
one actually creating. If it creates indeed 5 TTY and the fourth TTY is
on interface number 04, then yes this should be added.

The general rule for ZTE is that the modem interface is suppose to be on
the last interface. Not sure if this is always true, but with all my
devices it was. And we could still overwrite this with a udev rule if we
have to.

Regards

Marcel



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

* Re: [PATCH 0/3] oFono rules update
  2011-08-23 16:13     ` Marcel Holtmann
@ 2011-08-24 10:34       ` Philippe Nunes
  2011-08-24 16:21         ` Marcel Holtmann
  0 siblings, 1 reply; 11+ messages in thread
From: Philippe Nunes @ 2011-08-24 10:34 UTC (permalink / raw)
  To: ofono

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

On 08/23/2011 06:13 PM, Marcel Holtmann wrote:
> Hi Phillipe,
>
>>>> Based on the latest usb_modeswitch rules, some 3G dongles require
>>>> to modify the ofono rules to be supported correctly (tests done in India)
>>>>
>>>>
>>>> Philippe Nunes (3):
>>>>     udev: use ttyUSB3 for ZTE K3570 modem port.
>>>>     udev:  add support for Olive HSDPA modem
>>>>     udev: Use ttyUSB4 for Huawei E367 Pcui port
>>>>
>>>>    plugins/ofono.rules |   17 ++++++++++-------
>>>>    1 files changed, 10 insertions(+), 7 deletions(-)
>>>
>>> I think you are way too late with these changes. We are not using
>>> plugins/udev.c for Huawei and ZTE device detection anymore. I fixed this
>>> all up and plugins/udevng.c should do proper automatic detection.
>>>
>>> Please check if this works properly for you or if you have problems.
>>>
>>
>>
>> Hi Marcel,
>>
>> I just experienced a case where the automatic detection brings a
>> difference with the previous implementation.
>>
>> Using the dongle ZTE MF190 (DefaultProduct= 0x0149 TargetProduct=
>> 0x0124), udevng.c is assigning the modem port to ttyUSB3 whereas ttyUSB4
>> was assigned with the previous udev.c based on the previous ofono.rules.
>>
>> In practice, the port com ttyUSB3 is not responsive (I checked also with
>> minicom) so we can't manage to connect a data call (see ofono logs in
>> attachment). Using the previous combination udev.c  + ofono.rules, if
>> the modem port assigned to ttyUSB4 is responsive, we are however facing
>> with an other issue:
>>
>> ofonod[23908]: plugins/zte.c:zte_post_online() 0x9e2a470
>> ofonod[23908]: Aux:>  AT+CREG=?\r
>> ofonod[23908]: Aux:<  \r\nOK\r\n
>> ofonod[23908]: Unable to initialize Network Registration
>> ofonod[23908]: src/network.c:netreg_remove() atom: 0x9e29cf0
>>
>>
>> So, we can't go ahead for the data call since the network is not
>> registered. But this is an other issue we would need to fix I guess
>> specifically for this dongle.
>>
>> Here, I just wanted to raise a potential issue regarding the modem port
>> com assignment for ZTE dongles:
>>
>> Indeed, according the previous ofono.rules, we were assigning ttyUSB4 as
>> modem port for 2 product Ids:
>>
>> ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="0121",
>> ENV{ID_USB_INTERFACE_NUM}=="04", ENV{OFONO_ZTE_TYPE}="modem"
>> ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="0121",
>> ENV{ID_USB_INTERFACE_NUM}=="01", ENV{OFONO_ZTE_TYPE}="aux"
>>
>> ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="0124",
>> ENV{ID_USB_INTERFACE_NUM}=="04", ENV{OFONO_ZTE_TYPE}="modem"
>> ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="0124",
>> ENV{ID_USB_INTERFACE_NUM}=="01", ENV{OFONO_ZTE_TYPE}="aux"
>>
>> but looking to udevng.c and particularly the function 'setup_zte', the
>> modem port can't be assigned anymore to ttyUSB4.
>>
>> static gboolean setup_zte(struct modem_info *modem)
>> {
>> 	...
>>
>> 	if (g_strcmp0(info->number, "00") == 0)
>> 		qcdm = info->devnode;
>> 	else if (g_strcmp0(info->number, "01") == 0)
>> 		aux = info->devnode;
>> 	else if (g_strcmp0(info->number, "02") == 0)
>> 		mdm = info->devnode;
>> 	else if (g_strcmp0(info->number, "03") == 0)
>> 		mdm = info->devnode;
>> 	}
>> }
>>
>> So, I wonder if the condition:
>> 	
>> 	else if (g_strcmp0(info->number, "04") == 0)
>>
>> is voluntarily missing or not.
>
> it might be missing. What does usb-devices say and how many TTY is this
> one actually creating. If it creates indeed 5 TTY and the fourth TTY is
> on interface number 04, then yes this should be added.
>
> The general rule for ZTE is that the modem interface is suppose to be on
> the last interface. Not sure if this is always true, but with all my
> devices it was. And we could still overwrite this with a udev rule if we
> have to.
>
> Regards
>
> Marcel
>
>
>

Hi Marcel,

Actually, with this dongle, we have 6 TTY (usb0 -> usb5) and usb-devices 
gives:

T:  Bus=02 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 32 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=19d2 ProdID=0124 Rev=00.00
S:  Manufacturer=ZTE,Incorporated
S:  Product=ZTE WCDMA Technologies MSM
S:  SerialNumber=P671A2TMED010000
C:  #Ifs= 7 Cfg#= 1 Atr=e0 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
I:  If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
I:  If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
I:  If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
I:  If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
I:  If#= 5 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
I:  If#= 6 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage

Now, ttyUSB5 is not responsive. So, for this particular dongle, the 
modem interface won't be on the last interface. Anyway, as I'm just 
looking to add the condition related to the interface number 04, it 
doesn't really matter.

Regards,

Philippe.









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

* Re: [PATCH 0/3] oFono rules update
  2011-08-24 10:34       ` Philippe Nunes
@ 2011-08-24 16:21         ` Marcel Holtmann
  2011-08-25 13:48           ` Philippe Nunes
  0 siblings, 1 reply; 11+ messages in thread
From: Marcel Holtmann @ 2011-08-24 16:21 UTC (permalink / raw)
  To: ofono

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

Hi Philippe,

> Actually, with this dongle, we have 6 TTY (usb0 -> usb5) and usb-devices 
> gives:
> 
> T:  Bus=02 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 32 Spd=480 MxCh= 0
> D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
> P:  Vendor=19d2 ProdID=0124 Rev=00.00
> S:  Manufacturer=ZTE,Incorporated
> S:  Product=ZTE WCDMA Technologies MSM
> S:  SerialNumber=P671A2TMED010000
> C:  #Ifs= 7 Cfg#= 1 Atr=e0 MxPwr=500mA
> I:  If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
> I:  If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
> I:  If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
> I:  If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
> I:  If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
> I:  If#= 5 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
> I:  If#= 6 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
> 
> Now, ttyUSB5 is not responsive. So, for this particular dongle, the 
> modem interface won't be on the last interface. Anyway, as I'm just 
> looking to add the condition related to the interface number 04, it 
> doesn't really matter.

so on which interfaces do we actually have the modem and the aux channel
now.

And more important now, do we use the right usb_modeswitch magic to
switch it into this mode. Or is Windows using something different?

Regards

Marcel



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

* Re: [PATCH 0/3] oFono rules update
  2011-08-24 16:21         ` Marcel Holtmann
@ 2011-08-25 13:48           ` Philippe Nunes
  0 siblings, 0 replies; 11+ messages in thread
From: Philippe Nunes @ 2011-08-25 13:48 UTC (permalink / raw)
  To: ofono

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

On 08/24/2011 06:21 PM, Marcel Holtmann wrote:
> Hi Philippe,
>
>> Actually, with this dongle, we have 6 TTY (usb0 ->  usb5) and usb-devices
>> gives:
>>
>> T:  Bus=02 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 32 Spd=480 MxCh= 0
>> D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
>> P:  Vendor=19d2 ProdID=0124 Rev=00.00
>> S:  Manufacturer=ZTE,Incorporated
>> S:  Product=ZTE WCDMA Technologies MSM
>> S:  SerialNumber=P671A2TMED010000
>> C:  #Ifs= 7 Cfg#= 1 Atr=e0 MxPwr=500mA
>> I:  If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
>> I:  If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
>> I:  If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
>> I:  If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
>> I:  If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
>> I:  If#= 5 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
>> I:  If#= 6 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
>>
>> Now, ttyUSB5 is not responsive. So, for this particular dongle, the
>> modem interface won't be on the last interface. Anyway, as I'm just
>> looking to add the condition related to the interface number 04, it
>> doesn't really matter.
>
> so on which interfaces do we actually have the modem and the aux channel
> now.
>
Actually, with current udevng.c, aux channel is on ttyUSB1 and modem is 
on ttyUSB3. But in practice, modem should be on ttyUSB4.

> And more important now, do we use the right usb_modeswitch magic to
> switch it into this mode.

My configuration:
usb modeswitch Version 1.1.8, 2011/06/19
usb modeswitch data package 2011/07/14

Or is Windows using something different?

Windows Device Manager gives the following results:

Vendor Id: 19d2 / Product Id: 0124 (same as after usb_modeswitch)

ZTE Diagnostic port		 	- 00
ZTE AT port			 	- 01
ZTE ATExt2 port 			- 02
ZTE USB SmartCard Reader 		- 03
ZTE Proprietary USB Modem 		- 04
ZTE Mobile broadband Network manager 	- 05

So, it confirms that the modem port com is on ttyUSB4.
For ZTE, the proposed change (add the condition related to the interface 
number 04) seems relevant.


Now, I found an other mismatch with Speedup dongles:
In practice, enabling the dongle speedup SU-7300 fails actually in timeout.

Looking to the oFono traces, we have:
...
ofonod[32238]: plugins/udevng.c:setup_speedup() 
/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1
ofonod[32238]: plugins/udevng.c:setup_speedup() /dev/ttyUSB0 255/255/255 
00 (null)
ofonod[32238]: plugins/udevng.c:setup_speedup() /dev/ttyUSB1 255/255/255 
01 (null)
ofonod[32238]: plugins/udevng.c:setup_speedup() /dev/ttyUSB2 255/255/255 
02 (null)
ofonod[32238]: plugins/udevng.c:setup_speedup() /dev/ttyUSB3 255/255/255 
03 (null)
ofonod[32238]: plugins/udevng.c:setup_speedup() /dev/ttyUSB4 255/255/255 
04 (null)
ofonod[32238]: plugins/udevng.c:setup_speedup() aux=/dev/ttyUSB1 
modem=/dev/ttyUSB3

...

ofonod[32238]: plugins/speedupcdma.c:open_device() Modem /dev/ttyUSB3
ofonod[32238]: src/modem.c:get_modem_property() modem 0x9a0bc00 property Aux
ofonod[32238]: plugins/speedupcdma.c:open_device() Aux /dev/ttyUSB1
ofonod[32238]: Modem: > ATE0 &C0 +CMEE=1\r
ofonod[32238]: Aux: > ATE0 &C0 +CMEE=1\r
ofonod[32238]: Modem: < ATE0 &C0 +CMEE=1\r\r\nOK\r\n
ofonod[32238]: src/modem.c:set_powered_timeout() modem: 0x9a0bc00


Aux channel is not responsive.
As you can see, aux channel is now set to ttyUSB1 whereas it was set 
previously to ttyUSB3 (as stated by the rules below).

# SpeedUp 7300
ATTRS{idVendor}=="1c9e", ATTRS{idProduct}=="9e00", 
ENV{ID_USB_INTERFACE_NUM}=="00", ENV{OFONO_SPEEDUP_TYPE}="modem"
ATTRS{idVendor}=="1c9e", ATTRS{idProduct}=="9e00", 
ENV{ID_USB_INTERFACE_NUM}=="03", ENV{OFONO_SPEEDUP_TYPE}="aux"

Looking to the previous ofono rules related to speedup dongles, aux 
channel was always assigned to the last interface. Now, with udevng.c, 
aux channel is always assigned to ttyUSB1 and modem is set on the last 
interface.
So, currently, aux channel and modem channel are switched.

But in practice, this seems wrong.
I tried indeed with a Speedup 9800 and I could notice that the network 
registration unsolicited result codes (+CREG, +CGREG) were received on 
the modem channel instead of the aux channel. This issue is raised 
already by the bug #20553 (Meego)

Now, if the aux channel is set properly on the last interface, the 
remaining issue is that the modem channel can't be always assigned on 
ttyUSB1.
At least for speedup 7300 (and generally for speedup cdma dongles ?), 
modem channel should be assigned to ttyUSB0.

So, I propose the following change in udevng.c:

@@ -311,12 +311,17 @@ static gboolean setup_speedup(struct modem_info 
*modem)
  			if (aux != NULL)
  				break;
  		} else if (g_strcmp0(info->interface, "255/255/255") == 0) {
-			if (g_strcmp0(info->number, "01") == 0)
-				aux = info->devnode;
-			else if (g_strcmp0(info->number, "02") == 0)
+			if (g_strcmp0(info->number, "00") == 0 &&
+					g_strcmp0(modem->driver,
+							"speedupcdma") == 0)
  				mdm = info->devnode;
-			else if (g_strcmp0(info->number, "03") == 0)
+			else if (g_strcmp0(info->number, "01") == 0 &&
+					mdm == NULL)
  				mdm = info->devnode;
+			else if (g_strcmp0(info->number, "02") == 0)
+				aux = info->devnode;
+			else if (g_strcmp0(info->number, "03") == 0)
+				aux = info->devnode;
  		}
  	}

Please, let me know if I can go ahead with a proper patch.
Thanks,

Regards,

Philippe.







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

end of thread, other threads:[~2011-08-25 13:48 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-11 15:38 [PATCH 0/3] oFono rules update Philippe Nunes
2011-08-11 15:38 ` [PATCH 1/3] udev: use ttyUSB3 for ZTE K3570 modem port Philippe Nunes
2011-08-11 15:38 ` [PATCH 2/3] udev: add support for Olive HSDPA modem Philippe Nunes
2011-08-12  0:49   ` Deng, Ying An
2011-08-11 15:38 ` [PATCH 3/3] udev: Use ttyUSB4 for Huawei E367 Pcui port Philippe Nunes
2011-08-11 16:21 ` [PATCH 0/3] oFono rules update Marcel Holtmann
2011-08-23 15:26   ` Philippe Nunes
2011-08-23 16:13     ` Marcel Holtmann
2011-08-24 10:34       ` Philippe Nunes
2011-08-24 16:21         ` Marcel Holtmann
2011-08-25 13:48           ` Philippe Nunes

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.