All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Problem detecting/using wwan0 modem
  2011-06-27 15:45 Problem detecting/using wwan0 modem ofonoconn
@ 2011-06-27 14:12 ` Denis Kenzior
  2011-06-27 17:25   ` ofonoconn
  0 siblings, 1 reply; 19+ messages in thread
From: Denis Kenzior @ 2011-06-27 14:12 UTC (permalink / raw)
  To: ofono

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

Hi Michael,

On 06/27/2011 10:45 AM, ofonoconn(a)encambio.com wrote:
> 
> Hello list,
> 
> when using distros integrating network-manager, I can connect to the
> Internet using my GSM/GPRS/UMTS WWAN modem and would like to be able
> to do so with Linux distros (MeeGo) which integrate ofono and
> connman. This is not very well documented, so please help.
> 
> GOAL
> ----
> I want to be able to select from between eth0, wlan0, and wwan0
> from the ofono/connman connection applet in MeeGo.
> 
> PROBLEM
> -------
> Ofono (or connman, not sure which) presents connection options after
> detecting that wired and wireless ethernet interfaces exist. In my
> netbook, no option to use the F3607gw (labeled Hewlett-Packard below)
> WWAN modem device wwan0 is available.
> 
> ENVIRONMENT
> -----------
> $ lsusb
> Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> [...]
> Bus 001 Device 006: ID 03f0:271d Hewlett-Packard 
> 
> $ ifconfig -a
> eth0      Link encap:Ethernet  HWaddr 12:34:56:78:9A:BC  
> [...]
> lo        Link encap:Local Loopback  
> [...]
> wlan0     Link encap:Ethernet  HWaddr 12:34:56:78:9A:BC  
> [...]
> wwan0     Link encap:Ethernet  HWaddr 12:34:56:78:9A:BC
>           BROADCAST MULTICAST  MTU:1500  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000 
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
> 
> $ /usr/lib/ofono/test/list-modems
> $
> 
> $ dmesg | grep wwan
> [   11.385780] cdc_ether 1-5:1.6: wwan0: register 'cdc_ether' at usb-0000:00:1d.7-5, Mobile Broadband Network Device, 02:80:37:ec:02:00
> [ 2505.050955] cdc_ether 1-5:1.6: wwan0: unregister 'cdc_ether' usb-0000:00:1d.7-5, Mobile Broadband Network Device
> [ 2505.609492] cdc_ether 1-5:1.6: wwan0: register 'cdc_ether' at usb-0000:00:1d.7-5, Mobile Broadband Network Device, 02:80:37:ec:02:00
> 
> $ lsmod
> Module                  Size  Used by
> iptable_nat             3545  0 
> nf_nat                 16042  1 iptable_nat
> ath9k                  65740  0 
> ideapad_laptop          3529  0 
> zaurus                  3045  0 
> battery                 8862  0 
> uvcvideo               50368  0 
> ath9k_common            1977  1 ath9k
> cdc_ether               5744  1 zaurus
> cdc_acm                15767  0 
> serio_raw               3821  0 
> joydev                  8205  0 
> cdc_wdm                 8885  0 
> ath9k_hw              243316  2 ath9k,ath9k_common
> usbnet                 19620  2 zaurus,cdc_ether
> 
> What could the problem be?
> 

The 3607GW based modems are well supported by oFono, however we have not
tested all of the possible ones.  So assuming that you have installed
ofono.rules file correctly the only other problem might be that your
device manufacturer has named the port / network devices slightly
differently from other manufacturers.

See plugins/udev.c add_mbm() for more details.  I see that we definitely
do not cover the "Broadband Network Device" case that your modem is
reporting.

Running ofono with -n -d 'udev*' command line options should help you
quickly diagnose the issue.

Regards,
-Denis

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

* Problem detecting/using wwan0 modem
@ 2011-06-27 15:45 ofonoconn
  2011-06-27 14:12 ` Denis Kenzior
  0 siblings, 1 reply; 19+ messages in thread
From: ofonoconn @ 2011-06-27 15:45 UTC (permalink / raw)
  To: ofono

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


Hello list,

when using distros integrating network-manager, I can connect to the
Internet using my GSM/GPRS/UMTS WWAN modem and would like to be able
to do so with Linux distros (MeeGo) which integrate ofono and
connman. This is not very well documented, so please help.

GOAL
----
I want to be able to select from between eth0, wlan0, and wwan0
from the ofono/connman connection applet in MeeGo.

PROBLEM
-------
Ofono (or connman, not sure which) presents connection options after
detecting that wired and wireless ethernet interfaces exist. In my
netbook, no option to use the F3607gw (labeled Hewlett-Packard below)
WWAN modem device wwan0 is available.

ENVIRONMENT
-----------
$ lsusb
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[...]
Bus 001 Device 006: ID 03f0:271d Hewlett-Packard 

$ ifconfig -a
eth0      Link encap:Ethernet  HWaddr 12:34:56:78:9A:BC  
[...]
lo        Link encap:Local Loopback  
[...]
wlan0     Link encap:Ethernet  HWaddr 12:34:56:78:9A:BC  
[...]
wwan0     Link encap:Ethernet  HWaddr 12:34:56:78:9A:BC
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

$ /usr/lib/ofono/test/list-modems
$

$ dmesg | grep wwan
[   11.385780] cdc_ether 1-5:1.6: wwan0: register 'cdc_ether' at usb-0000:00:1d.7-5, Mobile Broadband Network Device, 02:80:37:ec:02:00
[ 2505.050955] cdc_ether 1-5:1.6: wwan0: unregister 'cdc_ether' usb-0000:00:1d.7-5, Mobile Broadband Network Device
[ 2505.609492] cdc_ether 1-5:1.6: wwan0: register 'cdc_ether' at usb-0000:00:1d.7-5, Mobile Broadband Network Device, 02:80:37:ec:02:00

$ lsmod
Module                  Size  Used by
iptable_nat             3545  0 
nf_nat                 16042  1 iptable_nat
ath9k                  65740  0 
ideapad_laptop          3529  0 
zaurus                  3045  0 
battery                 8862  0 
uvcvideo               50368  0 
ath9k_common            1977  1 ath9k
cdc_ether               5744  1 zaurus
cdc_acm                15767  0 
serio_raw               3821  0 
joydev                  8205  0 
cdc_wdm                 8885  0 
ath9k_hw              243316  2 ath9k,ath9k_common
usbnet                 19620  2 zaurus,cdc_ether

What could the problem be?

Regards,
Michael

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

* Re: Problem detecting/using wwan0 modem
  2011-06-27 17:38     ` Problem detecting/using wwan0 modem ofonoconn
@ 2011-06-27 15:50       ` Denis Kenzior
  0 siblings, 0 replies; 19+ messages in thread
From: Denis Kenzior @ 2011-06-27 15:50 UTC (permalink / raw)
  To: ofono

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

Hi Michael,

On 06/27/2011 12:38 PM, ofonoconn(a)encambio.com wrote:
> 
> Hello again,
> 
> On 06/27/2011 10:45 AM, ofonoconn(a)encambio.com wrote:
>> On Mon., June 27, 2011, Denis KENZIOR wrote:
>>> On 06/27/2011 10:45 AM, ofonoconn(a)encambio.com wrote:
>>  meego$ find /etc/udev/
>>  /etc/udev/makedev.d/50-udev.nodes
>>  /etc/udev/rules.d/70-persistent-cd.rules
>>  /etc/udev/udev.conf
>>
>> ...and nowhere is ofono.rules. Is that the problem? In which package
>> are these things usually found? MeeGo includes 'ofono-0.58-1.4.i586'
>> and 'ofono-test-0.58-1.4.i586' only.
>>
>> ...but:
>>
>>  meego$ ls -1 /dev/.udev/db/*an*
>>  /dev/.udev/db/net:wlan0
>>  /dev/.udev/db/net:wwan0
>>
>> ...so even without a ofono.rules, the modem is being detected?

by udev, maybe.  However, it won't be detected by oFono without a
properly setup udev rule.

>>
>>> See plugins/udev.c add_mbm() for more details.  I see that we
>>> definitely do not cover the "Broadband Network Device" case that
>>> your modem is reporting.
>>>
> Hmmm.
> 
>   meego$ cat /dev/.udev/db/net\:wwan0
>   E:ID_VENDOR=ð_HP_hs2330_Mobile_Broadband_Module
>   E:ID_VENDOR_ENC=ð\x03HP\x20hs2330\x20Mobile\x20Broadband\x20Module
>   E:ID_VENDOR_ID=03f0
>   E:ID_MODEL=HP_hs2330_Mobile_Broadband_Module
>   E:ID_MODEL_ENC=HP\x20hs2330\x20Mobile\x20Broadband\x20Module
>   E:ID_MODEL_ID=271d
>   E:ID_REVISION=0000
>   E:ID_SERIAL=ð_HP_hs2330_Mobile_Broadband_Module_HP_hs2330_Mobile_Broadband_Module_0044017003593710
>   E:ID_SERIAL_SHORT=0044017003593710
>   E:ID_TYPE=generic
>   E:ID_BUS=usb
>   E:ID_USB_INTERFACES=:020800:020201:0a0000:020901:020a00:0a00ee:
>   E:ID_USB_INTERFACE_NUM=06
>   E:ID_USB_DRIVER=cdc_ether
>   E:ID_VENDOR_FROM_DATABASE=Hewlett-Packard
> 
> Is 'cdc_ether' the driver string entry which is missing from
> add_mbm() function? Is that why '/usr/lib/ofono/test/list-modems'
> comes up empty on my netbook?
> 

Code from add_mbm for reference:

        } else if (registered == 0 &&
                        (g_str_has_suffix(desc, "Minicard Network
Adapter") ||
                        g_str_has_suffix(desc, "Mini-Card Network
Adapter") ||
                        g_str_has_suffix(desc, "Broadband Network
Adapter") ||
                        g_str_has_suffix(desc, "Minicard
NetworkAdapter"))) {

Your modem (at least according to your earlier dmesg log) is reporting
the ethernet device as: Mobile Broadband Network Device

Regards,
-Denis

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

* Re: Problem detecting/using wwan0 modem
  2011-06-27 17:25   ` ofonoconn
@ 2011-06-27 15:53     ` Denis Kenzior
  2011-06-27 18:43       ` ofonoconn
  2011-06-27 17:38     ` Problem detecting/using wwan0 modem ofonoconn
  1 sibling, 1 reply; 19+ messages in thread
From: Denis Kenzior @ 2011-06-27 15:53 UTC (permalink / raw)
  To: ofono

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

Hi Michael,

On 06/27/2011 12:25 PM, ofonoconn(a)encambio.com wrote:
> 
> Hello Denis,
> 
> On Mon., June 27, 2011, Denis KENZIOR wrote:
>> On 06/27/2011 10:45 AM, ofonoconn(a)encambio.com wrote:
>>> Ofono (or connman, not sure which) presents connection options after
>>> detecting that wired and wireless ethernet interfaces exist. In my
>>> netbook, no option to use the F3607gw (labeled Hewlett-Packard below)
>>> WWAN modem device wwan0 is available.
>>>
>>> What could the problem be?
>>>
>> The 3607GW based modems are well supported by oFono, however we
>> have not tested all of the possible ones.  So assuming that you
>> have installed ofono.rules file correctly the only other problem
>> might be that your device manufacturer has named the port / network
>> devices slightly differently from other manufacturers.
>>
> The vanilla MeeGo distribution has:
> 
>   meego$ find /etc/udev/
>   /etc/udev/makedev.d/50-udev.nodes
>   /etc/udev/rules.d/70-persistent-cd.rules
>   /etc/udev/udev.conf
> 
> ...and nowhere is ofono.rules. Is that the problem? In which package
> are these things usually found? MeeGo includes 'ofono-0.58-1.4.i586'
> and 'ofono-test-0.58-1.4.i586' only.
> 

oFono has so far only released version 0.50 upstream, so I'm not sure
how Meego is making 0.58 ;)  Try putting plugins/ofono.rules from
ofono.git into /etc/udev/rules.d, re-plugging your dongle and starting
oFono with -n -d 'udev*'

> ...but:
> 
>   meego$ ls -1 /dev/.udev/db/*an*
>   /dev/.udev/db/net:wlan0
>   /dev/.udev/db/net:wwan0
> 
> ...so even without a ofono.rules, the modem is being detected?
> 
>> See plugins/udev.c add_mbm() for more details.  I see that we
>> definitely do not cover the "Broadband Network Device" case that
>> your modem is reporting.
>>
> If the missing 'ofono.rules' is not the problem, then I'll likely
> have to add a new entry to the list of devices in the add_mbm()
> function. Not sure how to determine the name of my device though.
> Huawei, sierra, nokia are there, but no 'ericsson'.
> 
>> Running ofono with -n -d 'udev*' command line options should help you
>> quickly diagnose the issue.
>>
> After booting I killed the 'ofonod' process and restarted it as root
> with the arguments -n -d 'udev*', but no output has appeared yet.
> How do you expect this to help, should I send USR1 signal or do
> something else?

Nope, sounds like the rules are not installed or the card is not
inserted (but I assume it is built-in, so the latter is probably not it)

Regards,
-Denis

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

* Re: Problem detecting/using wwan0 modem
  2011-06-27 18:43       ` ofonoconn
@ 2011-06-27 16:46         ` Denis Kenzior
  2011-06-27 19:04           ` ofonoconn
  0 siblings, 1 reply; 19+ messages in thread
From: Denis Kenzior @ 2011-06-27 16:46 UTC (permalink / raw)
  To: ofono

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

Hi Michael,

On 06/27/2011 01:43 PM, ofonoconn(a)encambio.com wrote:
> 
> Hello Denis,
> 
> On Mon., June 27, 2011, Denis Kenzior wrote:
>> On 06/27/2011 12:25 PM, ofonoconn(a)encambio.com wrote:
>>> On Mon., June 27, 2011, Denis KENZIOR wrote:
>>>> On 06/27/2011 10:45 AM, ofonoconn(a)encambio.com wrote:
>>>> The 3607GW based modems are well supported by oFono, however we
>>>> have not tested all of the possible ones.  So assuming that you
>>>> have installed ofono.rules file correctly the only other problem
>>>> might be that your device manufacturer has named the port / network
>>>> devices slightly differently from other manufacturers.
>>>>
>> oFono has so far only released version 0.50 upstream, so I'm not sure
>> how Meego is making 0.58 ;)  Try putting plugins/ofono.rules from
>> ofono.git into /etc/udev/rules.d, re-plugging your dongle and starting
>> oFono with -n -d 'udev*'
>>
> Its not a dongle, rather a Mini PCI-E  that I semi-permanently
> installed on the motherboard.
> 

That's what I figured.  The rules seem to be OK, so the udev detection
code in plugins/udev.c:add_mbm is not finding your modem.

Try starting oFono with

ofonod -n -d 'plugins/udev*' (sorry, I messed this up earlier)

and report the output

Regards,
-Denis

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

* Re: Problem detecting/using wwan0 modem
  2011-06-27 19:04           ` ofonoconn
@ 2011-06-27 17:21             ` Denis Kenzior
  2011-06-27 19:32               ` Michael Schloh von Bennewitz
                                 ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Denis Kenzior @ 2011-06-27 17:21 UTC (permalink / raw)
  To: ofono

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

Hi Michael,

>> The rules seem to be OK, so the udev detection code
>> in plugins/udev.c:add_mbm is not finding your modem.
>>
>> Try starting oFono with
>>
>> ofonod -n -d 'plugins/udev*' (sorry, I messed this up earlier)
>>
>> and report the output
>>
>   meego$ /usr/sbin/ofonod -n -d 'plugins/udev*'
>   ofonod[811]: oFono version 0.48
>   ofonod[811]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.1/tty/ttyACM0 (mbm)
>   ofonod[811]: plugins/udev.c:add_mbm() desc: HP hs2330 Mobile Broadband Module Data Modem
>   ofonod[811]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.3/tty/ttyACM1 (mbm)
>   ofonod[811]: plugins/udev.c:add_mbm() desc: HP hs2330 Mobile Broadband Module Modem
>   ofonod[811]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.6/net/wwan0 (mbm)
>   ofonod[811]: plugins/udev.c:add_mbm() desc: HP hs2330 Mobile Broadband Module Network Adapter
>   ofonod[811]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.9/tty/ttyACM2 (mbm)
>   ofonod[811]: plugins/udev.c:add_mbm() desc: HP hs2330 Mobile Broadband Module NMEA
>   ofonod[811]: Exit
> 
> ...sorry I think before I mistyped the MeeGo 1.2 (current) ofono
> version 0.48 as 0.58 incorrectly.
> 
> But the output shown above is rather good, so I'm at a loss
> to what could be wrong. Any ideas? Is connman relevant here?
> 

Based on the output above, the udev plugin needed to be modified to
detect the HP version of the MBM modems.  The change can be found in
commit: 6a2847f7aba5d84b06940ee29300d4b6fd31d682.  I'm also attaching
this patch for your reference.  Please report back if this solves your
issue.

Regards,
-Denis

[-- Attachment #2: 0001-udev-Tweak-detection-rules-for-HP-HS2330-cards.patch --]
[-- Type: text/plain, Size: 2007 bytes --]

>From 6a2847f7aba5d84b06940ee29300d4b6fd31d682 Mon Sep 17 00:00:00 2001
From: Denis Kenzior <denkenz@gmail.com>
Date: Mon, 27 Jun 2011 12:17:22 -0500
Subject: [PATCH] udev: Tweak detection rules for HP HS2330 cards

---
 plugins/udev.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/plugins/udev.c b/plugins/udev.c
index 1580b02..8ea937c 100644
--- a/plugins/udev.c
+++ b/plugins/udev.c
@@ -122,6 +122,7 @@ static void add_mbm(struct ofono_modem *modem,
 			g_str_has_suffix(desc, "Minicard Modem 2") ||
 			g_str_has_suffix(desc, "Mini-Card Modem") ||
 			g_str_has_suffix(desc, "Broadband Modem") ||
+			g_str_has_suffix(desc, "Module Modem") ||
 			g_str_has_suffix(desc, "Broadband USB Modem"))) {
 		devnode = udev_device_get_devnode(udev_device);
 
@@ -132,11 +133,13 @@ static void add_mbm(struct ofono_modem *modem,
 	} else if (registered == 0 &&
 			(g_str_has_suffix(desc, "Minicard Data Modem") ||
 			g_str_has_suffix(desc, "Mini-Card Data Modem") ||
+			g_str_has_suffix(desc, "Module Data Modem") ||
 			g_str_has_suffix(desc, "Broadband Data Modem"))) {
 		devnode = udev_device_get_devnode(udev_device);
 		ofono_modem_set_string(modem, DATA_DEVICE, devnode);
 	} else if (g_str_has_suffix(desc, "Minicard GPS Port") ||
 			g_str_has_suffix(desc, "Mini-Card GPS Port") ||
+			g_str_has_suffix(desc, "Module NMEA") ||
 			g_str_has_suffix(desc, "Broadband GPS Port")) {
 		devnode = udev_device_get_devnode(udev_device);
 		ofono_modem_set_string(modem, GPS_DEVICE, devnode);
@@ -144,6 +147,7 @@ static void add_mbm(struct ofono_modem *modem,
 			(g_str_has_suffix(desc, "Minicard Network Adapter") ||
 			g_str_has_suffix(desc, "Mini-Card Network Adapter") ||
 			g_str_has_suffix(desc, "Broadband Network Adapter") ||
+			g_str_has_suffix(desc, "Module Network Adapter") ||
 			g_str_has_suffix(desc, "Minicard NetworkAdapter"))) {
 		devnode = get_property(udev_device, "INTERFACE");
 		ofono_modem_set_string(modem, NETWORK_INTERFACE, devnode);
-- 
1.7.3.4


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

* Re: Problem detecting/using wwan0 modem
  2011-06-27 14:12 ` Denis Kenzior
@ 2011-06-27 17:25   ` ofonoconn
  2011-06-27 15:53     ` Denis Kenzior
  2011-06-27 17:38     ` Problem detecting/using wwan0 modem ofonoconn
  0 siblings, 2 replies; 19+ messages in thread
From: ofonoconn @ 2011-06-27 17:25 UTC (permalink / raw)
  To: ofono

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


Hello Denis,

On Mon., June 27, 2011, Denis KENZIOR wrote:
>On 06/27/2011 10:45 AM, ofonoconn(a)encambio.com wrote:
>> Ofono (or connman, not sure which) presents connection options after
>> detecting that wired and wireless ethernet interfaces exist. In my
>> netbook, no option to use the F3607gw (labeled Hewlett-Packard below)
>> WWAN modem device wwan0 is available.
>>
>> What could the problem be?
>>
>The 3607GW based modems are well supported by oFono, however we
>have not tested all of the possible ones.  So assuming that you
>have installed ofono.rules file correctly the only other problem
>might be that your device manufacturer has named the port / network
>devices slightly differently from other manufacturers.
>
The vanilla MeeGo distribution has:

  meego$ find /etc/udev/
  /etc/udev/makedev.d/50-udev.nodes
  /etc/udev/rules.d/70-persistent-cd.rules
  /etc/udev/udev.conf

...and nowhere is ofono.rules. Is that the problem? In which package
are these things usually found? MeeGo includes 'ofono-0.58-1.4.i586'
and 'ofono-test-0.58-1.4.i586' only.

...but:

  meego$ ls -1 /dev/.udev/db/*an*
  /dev/.udev/db/net:wlan0
  /dev/.udev/db/net:wwan0

...so even without a ofono.rules, the modem is being detected?

>See plugins/udev.c add_mbm() for more details.  I see that we
>definitely do not cover the "Broadband Network Device" case that
>your modem is reporting.
>
If the missing 'ofono.rules' is not the problem, then I'll likely
have to add a new entry to the list of devices in the add_mbm()
function. Not sure how to determine the name of my device though.
Huawei, sierra, nokia are there, but no 'ericsson'.

>Running ofono with -n -d 'udev*' command line options should help you
>quickly diagnose the issue.
>
After booting I killed the 'ofonod' process and restarted it as root
with the arguments -n -d 'udev*', but no output has appeared yet.
How do you expect this to help, should I send USR1 signal or do
something else?

Thanks for helping,
Michael

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

* Re: Problem detecting/using wwan0 modem
  2011-06-27 17:25   ` ofonoconn
  2011-06-27 15:53     ` Denis Kenzior
@ 2011-06-27 17:38     ` ofonoconn
  2011-06-27 15:50       ` Denis Kenzior
  1 sibling, 1 reply; 19+ messages in thread
From: ofonoconn @ 2011-06-27 17:38 UTC (permalink / raw)
  To: ofono

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


Hello again,

On 06/27/2011 10:45 AM, ofonoconn(a)encambio.com wrote:
>On Mon., June 27, 2011, Denis KENZIOR wrote:
>>On 06/27/2011 10:45 AM, ofonoconn(a)encambio.com wrote:
>  meego$ find /etc/udev/
>  /etc/udev/makedev.d/50-udev.nodes
>  /etc/udev/rules.d/70-persistent-cd.rules
>  /etc/udev/udev.conf
>
>...and nowhere is ofono.rules. Is that the problem? In which package
>are these things usually found? MeeGo includes 'ofono-0.58-1.4.i586'
>and 'ofono-test-0.58-1.4.i586' only.
>
>...but:
>
>  meego$ ls -1 /dev/.udev/db/*an*
>  /dev/.udev/db/net:wlan0
>  /dev/.udev/db/net:wwan0
>
>...so even without a ofono.rules, the modem is being detected?
>
>>See plugins/udev.c add_mbm() for more details.  I see that we
>>definitely do not cover the "Broadband Network Device" case that
>>your modem is reporting.
>>
Hmmm.

  meego$ cat /dev/.udev/db/net\:wwan0
  E:ID_VENDOR=ð_HP_hs2330_Mobile_Broadband_Module
  E:ID_VENDOR_ENC=ð\x03HP\x20hs2330\x20Mobile\x20Broadband\x20Module
  E:ID_VENDOR_ID=03f0
  E:ID_MODEL=HP_hs2330_Mobile_Broadband_Module
  E:ID_MODEL_ENC=HP\x20hs2330\x20Mobile\x20Broadband\x20Module
  E:ID_MODEL_ID=271d
  E:ID_REVISION=0000
  E:ID_SERIAL=ð_HP_hs2330_Mobile_Broadband_Module_HP_hs2330_Mobile_Broadband_Module_0044017003593710
  E:ID_SERIAL_SHORT=0044017003593710
  E:ID_TYPE=generic
  E:ID_BUS=usb
  E:ID_USB_INTERFACES=:020800:020201:0a0000:020901:020a00:0a00ee:
  E:ID_USB_INTERFACE_NUM=06
  E:ID_USB_DRIVER=cdc_ether
  E:ID_VENDOR_FROM_DATABASE=Hewlett-Packard

Is 'cdc_ether' the driver string entry which is missing from
add_mbm() function? Is that why '/usr/lib/ofono/test/list-modems'
comes up empty on my netbook?

Regards,
Michael

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

* Re: Problem detecting/using wwan0 modem
  2011-06-27 15:53     ` Denis Kenzior
@ 2011-06-27 18:43       ` ofonoconn
  2011-06-27 16:46         ` Denis Kenzior
  0 siblings, 1 reply; 19+ messages in thread
From: ofonoconn @ 2011-06-27 18:43 UTC (permalink / raw)
  To: ofono

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


Hello Denis,

On Mon., June 27, 2011, Denis Kenzior wrote:
>On 06/27/2011 12:25 PM, ofonoconn(a)encambio.com wrote:
>> On Mon., June 27, 2011, Denis KENZIOR wrote:
>>> On 06/27/2011 10:45 AM, ofonoconn(a)encambio.com wrote:
>>> The 3607GW based modems are well supported by oFono, however we
>>> have not tested all of the possible ones.  So assuming that you
>>> have installed ofono.rules file correctly the only other problem
>>> might be that your device manufacturer has named the port / network
>>> devices slightly differently from other manufacturers.
>>>
>oFono has so far only released version 0.50 upstream, so I'm not sure
>how Meego is making 0.58 ;)  Try putting plugins/ofono.rules from
>ofono.git into /etc/udev/rules.d, re-plugging your dongle and starting
>oFono with -n -d 'udev*'
>
Its not a dongle, rather a Mini PCI-E  that I semi-permanently
installed on the motherboard.

>Nope, sounds like the rules are not installed or the card is not
>inserted (but I assume it is built-in, so the latter is probably
>not it)
>
It's installed correctly and a SIM card is plugged in. This
exact configuration works perfectly when booting Ubuntu (with
network-manager) on the same netbook.

Okay but we were looking in the wrong place...

  meego$ ls /lib/udev/rules.d/*ofono*
  97-ofono.rules

  meego$ grep -i '03f0.*271d' /lib/udev/rules.d/97-ofono.rules
  # HP hs2330 Mobile Broadband Module
  ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="271d", ENV{OFONO_DRIVER}="mbm"

I've confirmed that the PID/VID of my butchered (by HP) Ericsson
modem matches this entry above, which is in my udev rules directory.
It's probably the reason that /dev/.udev/db/net:\wwan0 is getting
created by udev at all.

So with this new information what should I be doing to correct this
problem? It seems to me that the ofono sources are not missing
anything.

  meego$ /usr/lib/ofono/test/list-modems
  meego$

...shouldn't that command be showing my modem?

Regards,
Michael

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

* Re: Problem detecting/using wwan0 modem
  2011-06-27 16:46         ` Denis Kenzior
@ 2011-06-27 19:04           ` ofonoconn
  2011-06-27 17:21             ` Denis Kenzior
  0 siblings, 1 reply; 19+ messages in thread
From: ofonoconn @ 2011-06-27 19:04 UTC (permalink / raw)
  To: ofono

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


On Mon., June 27, 2011, Denis Kenzior wrote:
>On 06/27/2011 01:43 PM, ofonoconn(a)encambio.com wrote:
>> On Mon., June 27, 2011, Denis Kenzior wrote:
>>> On 06/27/2011 12:25 PM, ofonoconn(a)encambio.com wrote:
>>>> On Mon., June 27, 2011, Denis KENZIOR wrote:
>>>>> The 3607GW based modems are well supported by oFono, however we
>>>>> have not tested all of the possible ones.  So assuming that you
>>>>> have installed ofono.rules file correctly the only other problem
>>>>> might be that your device manufacturer has named the port / network
>>>>> devices slightly differently from other manufacturers.
>>>>>
>The rules seem to be OK, so the udev detection code
>in plugins/udev.c:add_mbm is not finding your modem.
>
>Try starting oFono with
>
>ofonod -n -d 'plugins/udev*' (sorry, I messed this up earlier)
>
>and report the output
>
  meego$ /usr/sbin/ofonod -n -d 'plugins/udev*'
  ofonod[811]: oFono version 0.48
  ofonod[811]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.1/tty/ttyACM0 (mbm)
  ofonod[811]: plugins/udev.c:add_mbm() desc: HP hs2330 Mobile Broadband Module Data Modem
  ofonod[811]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.3/tty/ttyACM1 (mbm)
  ofonod[811]: plugins/udev.c:add_mbm() desc: HP hs2330 Mobile Broadband Module Modem
  ofonod[811]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.6/net/wwan0 (mbm)
  ofonod[811]: plugins/udev.c:add_mbm() desc: HP hs2330 Mobile Broadband Module Network Adapter
  ofonod[811]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.9/tty/ttyACM2 (mbm)
  ofonod[811]: plugins/udev.c:add_mbm() desc: HP hs2330 Mobile Broadband Module NMEA
  ofonod[811]: Exit

...sorry I think before I mistyped the MeeGo 1.2 (current) ofono
version 0.48 as 0.58 incorrectly.

But the output shown above is rather good, so I'm at a loss
to what could be wrong. Any ideas? Is connman relevant here?

Regards,
Michael

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

* Re: Problem detecting/using wwan0 modem
  2011-06-27 17:21             ` Denis Kenzior
@ 2011-06-27 19:32               ` Michael Schloh von Bennewitz
  2011-06-28 17:05               ` ofonoconn
  2011-06-28 20:07               ` Michael Schloh von Bennewitz
  2 siblings, 0 replies; 19+ messages in thread
From: Michael Schloh von Bennewitz @ 2011-06-27 19:32 UTC (permalink / raw)
  To: ofono

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


Hello Denis,

On Mon., June 27, 2011, Denis Kenzior wrote:
>> ...sorry I think before I mistyped the MeeGo 1.2 (current) ofono
>> version 0.48 as 0.58 incorrectly.
>>
>> But the output shown above is rather good, so I'm at a loss
>> to what could be wrong. Any ideas? Is connman relevant here?
>> 
>Based on the output above, the udev plugin needed to be modified to
>detect the HP version of the MBM modems.  The change can be found in
>commit: 6a2847f7aba5d84b06940ee29300d4b6fd31d682.  I'm also attaching
>this patch for your reference.  Please report back if this solves your
>issue.
>
Wow that's great. I haven't built a new package yet to test your
patch, but if I understand the logic correctly it should solve
the problem. I'll let you know what happens after I'm done.

>>From 6a2847f7aba5d84b06940ee29300d4b6fd31d682 Mon Sep 17 00:00:00 2001
> [...]
> plugins/udev.c |    4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
>diff --git a/plugins/udev.c b/plugins/udev.c
>index 1580b02..8ea937c 100644
>--- a/plugins/udev.c
>+++ b/plugins/udev.c
>[...]
>
Thanks,
Michael

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

* Re: Problem detecting/using wwan0 modem
  2011-06-27 17:21             ` Denis Kenzior
  2011-06-27 19:32               ` Michael Schloh von Bennewitz
@ 2011-06-28 17:05               ` ofonoconn
  2011-06-28 20:07               ` Michael Schloh von Bennewitz
  2 siblings, 0 replies; 19+ messages in thread
From: ofonoconn @ 2011-06-28 17:05 UTC (permalink / raw)
  To: ofono

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


Hello Denis,

On Mon., June 27, 2011, Denis Kenzior wrote:
>>> The rules seem to be OK, so the udev detection code
>>> in plugins/udev.c:add_mbm is not finding your modem.
>>>
>>> Try starting oFono with
>>>
>>> ofonod -n -d 'plugins/udev*' (sorry, I messed this up earlier)
>>>
>>> and report the output
>>>
>>   meego$ /usr/sbin/ofonod -n -d 'plugins/udev*'
>>   ofonod[811]: oFono version 0.48
>>   ofonod[811]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.1/tty/ttyACM0 (mbm)
>>   ofonod[811]: plugins/udev.c:add_mbm() desc: HP hs2330 Mobile Broadband Module Data Modem
>>   ofonod[811]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.3/tty/ttyACM1 (mbm)
>>   ofonod[811]: plugins/udev.c:add_mbm() desc: HP hs2330 Mobile Broadband Module Modem
>>   ofonod[811]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.6/net/wwan0 (mbm)
>>   ofonod[811]: plugins/udev.c:add_mbm() desc: HP hs2330 Mobile Broadband Module Network Adapter
>>   ofonod[811]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.9/tty/ttyACM2 (mbm)
>>   ofonod[811]: plugins/udev.c:add_mbm() desc: HP hs2330 Mobile Broadband Module NMEA
>>   ofonod[811]: Exit
>> 
>Based on the output above, the udev plugin needed to be modified to
>detect the HP version of the MBM modems.  The change can be found in
>commit: 6a2847f7aba5d84b06940ee29300d4b6fd31d682.  I'm also attaching
>this patch for your reference.  Please report back if this solves your
>issue.
>
>[...]
>
>diff --git a/plugins/udev.c b/plugins/udev.c
>index 1580b02..8ea937c 100644
>--- a/plugins/udev.c
>+++ b/plugins/udev.c
>@@ -122,6 +122,7 @@ static void add_mbm(struct ofono_modem *modem,
> 			g_str_has_suffix(desc, "Minicard Modem 2") ||
> 			g_str_has_suffix(desc, "Mini-Card Modem") ||
> 			g_str_has_suffix(desc, "Broadband Modem") ||
>+			g_str_has_suffix(desc, "Module Modem") ||
> 			g_str_has_suffix(desc, "Broadband USB Modem"))) {
> 		devnode = udev_device_get_devnode(udev_device);
> 
>@@ -132,11 +133,13 @@ static void add_mbm(struct ofono_modem *modem,
> 	} else if (registered == 0 &&
> 			(g_str_has_suffix(desc, "Minicard Data Modem") ||
> 			g_str_has_suffix(desc, "Mini-Card Data Modem") ||
>+			g_str_has_suffix(desc, "Module Data Modem") ||
> 			g_str_has_suffix(desc, "Broadband Data Modem"))) {
> 		devnode = udev_device_get_devnode(udev_device);
> 		ofono_modem_set_string(modem, DATA_DEVICE, devnode);
> 	} else if (g_str_has_suffix(desc, "Minicard GPS Port") ||
> 			g_str_has_suffix(desc, "Mini-Card GPS Port") ||
>+			g_str_has_suffix(desc, "Module NMEA") ||
> 			g_str_has_suffix(desc, "Broadband GPS Port")) {
> 		devnode = udev_device_get_devnode(udev_device);
> 		ofono_modem_set_string(modem, GPS_DEVICE, devnode);
>@@ -144,6 +147,7 @@ static void add_mbm(struct ofono_modem *modem,
> 			(g_str_has_suffix(desc, "Minicard Network Adapter") ||
> 			g_str_has_suffix(desc, "Mini-Card Network Adapter") ||
> 			g_str_has_suffix(desc, "Broadband Network Adapter") ||
>+			g_str_has_suffix(desc, "Module Network Adapter") ||
> 			g_str_has_suffix(desc, "Minicard NetworkAdapter"))) {
> 		devnode = get_property(udev_device, "INTERFACE");
> 		ofono_modem_set_string(modem, NETWORK_INTERFACE, devnode);
>
Okay bad news. I patched version 0.50 with the logic above and
nothing has changed. After installing version 0.50 with the patch
applied (checked to make sure) I get the same debug output and
/usr/lib/ofono/test/list-modems gives no output.

Is there some other test other than list-modems that I should use?

  meego# /usr/sbin/ofonod -n -d 'plugins/udev*'
  ofonod[851]: oFono version 0.50
  ofonod[851]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.1/tty/ttyACM0 (mbm)
  ofonod[851]: plugins/udev.c:add_mbm() desc: HP hs2330 Mobile Broadband Module Data Modem
  ofonod[851]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.3/tty/ttyACM1 (mbm)
  ofonod[851]: plugins/udev.c:add_mbm() desc: HP hs2330 Mobile Broadband Module Modem
  ofonod[851]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.6/net/wwan0 (mbm)
  ofonod[851]: plugins/udev.c:add_mbm() desc: HP hs2330 Mobile Broadband Module Network Adapter
  ofonod[851]: plugins/udev.c:add_modem() /devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.9/tty/ttyACM2 (mbm)
  ofonod[851]: plugins/udev.c:add_mbm() desc: HP hs2330 Mobile Broadband Module NMEA

Any ideas?

Regards,
Michael

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

* Re: Problem detecting/using wwan0 modem
  2011-06-27 17:21             ` Denis Kenzior
  2011-06-27 19:32               ` Michael Schloh von Bennewitz
  2011-06-28 17:05               ` ofonoconn
@ 2011-06-28 20:07               ` Michael Schloh von Bennewitz
  2011-06-30 12:31                 ` Incoming patch HS2330 detection, plugins/udev.c Michael Schloh von Bennewitz
  2 siblings, 1 reply; 19+ messages in thread
From: Michael Schloh von Bennewitz @ 2011-06-28 20:07 UTC (permalink / raw)
  To: ofono

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


Hello,

After much help from Denis, here's a incoming patch for detection
of HP hs2330 butchered Ericsson F3607gw modem.


On mon., June 27, 2011, Denis Kenzior wrote:
>>From 6a2847f7aba5d84b06940ee29300d4b6fd31d682 Mon Sep 17 00:00:00 2001
>From: Denis Kenzior <denkenz@gmail.com>
>Date: Mon, 27 Jun 2011 12:17:22 -0500
>Subject: [PATCH] udev: Tweak detection rules for HP HS2330 cards
>
>---
> plugins/udev.c |    4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
>diff --git a/plugins/udev.c b/plugins/udev.c
>index 1580b02..8ea937c 100644
>--- a/plugins/udev.c
>+++ b/plugins/udev.c
>@@ -122,6 +122,7 @@ static void add_mbm(struct ofono_modem *modem,
> 			g_str_has_suffix(desc, "Minicard Modem 2") ||
> 			g_str_has_suffix(desc, "Mini-Card Modem") ||
> 			g_str_has_suffix(desc, "Broadband Modem") ||
>+			g_str_has_suffix(desc, "Module Modem") ||
> 			g_str_has_suffix(desc, "Broadband USB Modem"))) {
> 		devnode = udev_device_get_devnode(udev_device);
> 
>@@ -132,11 +133,13 @@ static void add_mbm(struct ofono_modem *modem,
> 	} else if (registered == 0 &&
> 			(g_str_has_suffix(desc, "Minicard Data Modem") ||
> 			g_str_has_suffix(desc, "Mini-Card Data Modem") ||
>+			g_str_has_suffix(desc, "Module Data Modem") ||
> 			g_str_has_suffix(desc, "Broadband Data Modem"))) {
> 		devnode = udev_device_get_devnode(udev_device);
> 		ofono_modem_set_string(modem, DATA_DEVICE, devnode);
> 	} else if (g_str_has_suffix(desc, "Minicard GPS Port") ||
> 			g_str_has_suffix(desc, "Mini-Card GPS Port") ||
>+			g_str_has_suffix(desc, "Module NMEA") ||
> 			g_str_has_suffix(desc, "Broadband GPS Port")) {
> 		devnode = udev_device_get_devnode(udev_device);
> 		ofono_modem_set_string(modem, GPS_DEVICE, devnode);
>@@ -144,6 +147,7 @@ static void add_mbm(struct ofono_modem *modem,
> 			(g_str_has_suffix(desc, "Minicard Network Adapter") ||
> 			g_str_has_suffix(desc, "Mini-Card Network Adapter") ||
> 			g_str_has_suffix(desc, "Broadband Network Adapter") ||
>+			g_str_has_suffix(desc, "Module Network Adapter") ||
> 			g_str_has_suffix(desc, "Minicard NetworkAdapter"))) {
> 		devnode = get_property(udev_device, "INTERFACE");
> 		ofono_modem_set_string(modem, NETWORK_INTERFACE, devnode);
>-- 
>1.7.3.4
>
Index: plugins/udev.c
--- plugins/udev.c.orig	2011-06-15 14:45:37.000000000 +0200
+++ plugins/udev.c	2011-06-28 16:33:26.003136888 +0200
@@ -122,6 +122,7 @@
 			g_str_has_suffix(desc, "Minicard Modem 2") ||
 			g_str_has_suffix(desc, "Mini-Card Modem") ||
 			g_str_has_suffix(desc, "Broadband Modem") ||
+			g_str_has_suffix(desc, "Module Modem") ||
 			g_str_has_suffix(desc, "Broadband USB Modem"))) {
 		devnode = udev_device_get_devnode(udev_device);
 
@@ -132,11 +133,14 @@
 	} else if (registered == 0 &&
 			(g_str_has_suffix(desc, "Minicard Data Modem") ||
 			g_str_has_suffix(desc, "Mini-Card Data Modem") ||
+			g_str_has_suffix(desc, "Module Data Modem") ||
+			g_str_has_suffix(desc, "Module\xc2\xa0""Data Modem") ||
 			g_str_has_suffix(desc, "Broadband Data Modem"))) {
 		devnode = udev_device_get_devnode(udev_device);
 		ofono_modem_set_string(modem, DATA_DEVICE, devnode);
 	} else if (g_str_has_suffix(desc, "Minicard GPS Port") ||
 			g_str_has_suffix(desc, "Mini-Card GPS Port") ||
+			g_str_has_suffix(desc, "Module NMEA") ||
 			g_str_has_suffix(desc, "Broadband GPS Port")) {
 		devnode = udev_device_get_devnode(udev_device);
 		ofono_modem_set_string(modem, GPS_DEVICE, devnode);
@@ -144,6 +148,7 @@
 			(g_str_has_suffix(desc, "Minicard Network Adapter") ||
 			g_str_has_suffix(desc, "Mini-Card Network Adapter") ||
 			g_str_has_suffix(desc, "Broadband Network Adapter") ||
+			g_str_has_suffix(desc, "Module Network Adapter") ||
 			g_str_has_suffix(desc, "Minicard NetworkAdapter"))) {
 		devnode = get_property(udev_device, "INTERFACE");
 		ofono_modem_set_string(modem, NETWORK_INTERFACE, devnode);

The only difference is the line with the hex characters.

Regards,
Michael

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

* Re: Incoming patch HS2330 detection, plugins/udev.c
  2011-06-30 12:31                 ` Incoming patch HS2330 detection, plugins/udev.c Michael Schloh von Bennewitz
@ 2011-06-30  6:47                   ` Denis Kenzior
  2011-06-30 19:46                     ` Michael Schloh von Bennewitz
  2011-07-20 12:55                   ` Nicolas Paccou
  1 sibling, 1 reply; 19+ messages in thread
From: Denis Kenzior @ 2011-06-30  6:47 UTC (permalink / raw)
  To: ofono

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

Hi Michael,

On 06/30/2011 07:31 AM, Michael Schloh von Bennewitz wrote:
> This patch is assembled according to discussions on #ofono
> irc.freenode.net and mailing list thread 'Problem detecting/using wwan0
> modem' in June 2011, after comprehensive guidance from Denis KENZIOR.
> 
> Denis had already modified plugins/udev.c in git commit
> 6a2847f7aba5d84b06940ee29300d4b6fd31d682 to correct detection of
> OEM Ericsson F3607gw modems relabeled by HP and sold as HS2330.
> Because some (or all?) HS2330 modems contain flawed text identifiers
> containing strange (probably erroneous) binary sequences in place of
> the ASCII space '\x20' character, the previous commit is incomplete.
> The following logic detects the modem properly, by comparing binary
> data as well as ASCII text values.
> 

Patch has been applied with a slightly reformatted commit message.

Regards,
-Denis

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

* Incoming patch HS2330 detection, plugins/udev.c
  2011-06-28 20:07               ` Michael Schloh von Bennewitz
@ 2011-06-30 12:31                 ` Michael Schloh von Bennewitz
  2011-06-30  6:47                   ` Denis Kenzior
  2011-07-20 12:55                   ` Nicolas Paccou
  0 siblings, 2 replies; 19+ messages in thread
From: Michael Schloh von Bennewitz @ 2011-06-30 12:31 UTC (permalink / raw)
  To: ofono

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

This patch is assembled according to discussions on #ofono
irc.freenode.net and mailing list thread 'Problem detecting/using wwan0
modem' in June 2011, after comprehensive guidance from Denis KENZIOR.

Denis had already modified plugins/udev.c in git commit
6a2847f7aba5d84b06940ee29300d4b6fd31d682 to correct detection of
OEM Ericsson F3607gw modems relabeled by HP and sold as HS2330.
Because some (or all?) HS2330 modems contain flawed text identifiers
containing strange (probably erroneous) binary sequences in place of
the ASCII space '\x20' character, the previous commit is incomplete.
The following logic detects the modem properly, by comparing binary
data as well as ASCII text values.

Michael Schloh von Bennewitz
http://michael.schloh.com/
30 June 2011

Index: plugins/udev.c
diff -Nau plugins/udev.c.orig plugins/udev.c
--- plugins/udev.c.orig	2011-06-30 13:42:29.279704948 +0200
+++ plugins/udev.c	2011-06-30 13:43:48.117205221 +0200
@@ -134,6 +134,7 @@
 			(g_str_has_suffix(desc, "Minicard Data Modem") ||
 			g_str_has_suffix(desc, "Mini-Card Data Modem") ||
 			g_str_has_suffix(desc, "Module Data Modem") ||
+			g_str_has_suffix(desc, "Module\xc2\xa0""Data Modem") ||
 			g_str_has_suffix(desc, "Broadband Data Modem"))) {
 		devnode = udev_device_get_devnode(udev_device);
 		ofono_modem_set_string(modem, DATA_DEVICE, devnode);

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

* Re: Incoming patch HS2330 detection, plugins/udev.c
  2011-06-30  6:47                   ` Denis Kenzior
@ 2011-06-30 19:46                     ` Michael Schloh von Bennewitz
  2011-06-30 20:20                       ` Marcel Holtmann
  0 siblings, 1 reply; 19+ messages in thread
From: Michael Schloh von Bennewitz @ 2011-06-30 19:46 UTC (permalink / raw)
  To: ofono

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


Hello Denis,

On Thurs., June 30, 2011, Denis Kenzior wrote:
>On 06/30/2011 07:31 AM, Michael Schloh von Bennewitz wrote:
>> This patch is assembled according to discussions on #ofono
>> [...]
>>
>Patch has been applied with a slightly reformatted commit message.
>
Great, thanks alot. But most of all, thanks for the great work
on ofono in general. I think it's pretty good software and a
good project.

It might interest you that I made a feature request 20386 on the
MeeGo bugtracker [1][2] today to include PIN entry logic in the
MeeGo network panel. Not sure how far this request will go or if
they'll (gulp) ask me to do it myself... I'm still unclear on the
boundaries and coupling between ofono, connman, and the UI pieces
like the MeeGo network panel.

It's only relevant because we had discussions about this on IRC.

[1] https://bugs.meego.com/
[2] https://bugs.meego.com/show_bug.cgi?id=20386

Regards,
Michael

-- 
Michael Schloh von Bennewitz
http://michael.schloh.com/

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

* Re: Incoming patch HS2330 detection, plugins/udev.c
  2011-06-30 19:46                     ` Michael Schloh von Bennewitz
@ 2011-06-30 20:20                       ` Marcel Holtmann
  2011-07-02 19:08                         ` Michael
  0 siblings, 1 reply; 19+ messages in thread
From: Marcel Holtmann @ 2011-06-30 20:20 UTC (permalink / raw)
  To: ofono

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

Hi Michael,

> It might interest you that I made a feature request 20386 on the
> MeeGo bugtracker [1][2] today to include PIN entry logic in the
> MeeGo network panel. Not sure how far this request will go or if
> they'll (gulp) ask me to do it myself... I'm still unclear on the
> boundaries and coupling between ofono, connman, and the UI pieces
> like the MeeGo network panel.

we do not really work on MeeGo network panel related UI details, but in
general there needs to be a split between network generic tasks and
technology specific ones. Similar to that we have a Bluetooth panel for
pairing etc.

So would expect to see a cellular panel that allows to enter the PIN
code and configure the APN settings. Since APN settings are oFono
specific and have nothing to do with ConnMan.

I leave this all up to our UX designers :)

Regards

Marcel



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

* Re: Incoming patch HS2330 detection, plugins/udev.c
  2011-06-30 20:20                       ` Marcel Holtmann
@ 2011-07-02 19:08                         ` Michael
  0 siblings, 0 replies; 19+ messages in thread
From: Michael @ 2011-07-02 19:08 UTC (permalink / raw)
  To: ofono

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


Hello Marcel,

On Thurs., Jun 30, 2011, Marcel Holtmann wrote:
>> It might interest you that I made a feature request 20386 on the
>> MeeGo bugtracker [1][2] today to include PIN entry logic in the
>> MeeGo network panel. Not sure how far this request will go or if
>> they'll (gulp) ask me to do it myself... I'm still unclear on the
>> boundaries and coupling between ofono, connman, and the UI pieces
>> like the MeeGo network panel.
>
>we do not really work on MeeGo network panel related UI details,
>but in general there needs to be a split between network generic
>tasks and technology specific ones. Similar to that we have a
>Bluetooth panel for pairing etc.
>
>So would expect to see a cellular panel that allows to enter the
>PIN code and configure the APN settings. Since APN settings are
>oFono specific and have nothing to do with ConnMan.
>
Well I don't think you mean 'panel' here, because they are rather
large overreaching components. Putting cellular information in its
own panel would only be a good thing if there's much more to it than
the APN typically used. Maybe I'm too new to 3G, but it seems to me
that the cellular config can be part of the network panel just as
Wifi information is as well.

Bluetooth probably has its own panel because of potential file
transfers, pairing, tethering, various profile activity... It's
a lot more to configure than just the APN of a cellular connection.

So that's why it might be good to put the PIN entry textedit just
next to the DHCP/Static selector of the cellular device. It would
be a intuitive place to look for it at least.

>I leave this all up to our UX designers :)
>
It would help to know just who that is and where or how they
communicate with the community.

Are these UX designers officially part of the ofono project or
the meego project? When you say 'our UX designers' do you mean
that 'ofono developers maintain the MeeGo network panel code'
as well?

Regards,
Michael

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

* RE: Incoming patch HS2330 detection, plugins/udev.c
  2011-06-30 12:31                 ` Incoming patch HS2330 detection, plugins/udev.c Michael Schloh von Bennewitz
  2011-06-30  6:47                   ` Denis Kenzior
@ 2011-07-20 12:55                   ` Nicolas Paccou
  1 sibling, 0 replies; 19+ messages in thread
From: Nicolas Paccou @ 2011-07-20 12:55 UTC (permalink / raw)
  To: ofono

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

Hi Michael,

I'm Nicolas Paccou, I'm in charge of validating the changes applied in new
oFono release.
Unfortunately, I have not the hardware to be able to regress your patch.

I wanted to know if you have tested your patch on HS2330 modem ?
If yes, can you tell me if the result is ok ?
If not, do you able to test it and tell me the result please ?

Thanks,
Nicolas

-----Original Message-----
From: ofono-bounces(a)ofono.org [mailto:ofono-bounces(a)ofono.org] On Behalf Of
Michael Schloh von Bennewitz
Sent: Thursday, June 30, 2011 2:31 PM
To: Ofono List
Subject: Incoming patch HS2330 detection, plugins/udev.c

This patch is assembled according to discussions on #ofono
irc.freenode.net and mailing list thread 'Problem detecting/using wwan0
modem' in June 2011, after comprehensive guidance from Denis KENZIOR.

Denis had already modified plugins/udev.c in git commit
6a2847f7aba5d84b06940ee29300d4b6fd31d682 to correct detection of
OEM Ericsson F3607gw modems relabeled by HP and sold as HS2330.
Because some (or all?) HS2330 modems contain flawed text identifiers
containing strange (probably erroneous) binary sequences in place of
the ASCII space '\x20' character, the previous commit is incomplete.
The following logic detects the modem properly, by comparing binary
data as well as ASCII text values.

Michael Schloh von Bennewitz
http://michael.schloh.com/
30 June 2011

Index: plugins/udev.c
diff -Nau plugins/udev.c.orig plugins/udev.c
--- plugins/udev.c.orig	2011-06-30 13:42:29.279704948 +0200
+++ plugins/udev.c	2011-06-30 13:43:48.117205221 +0200
@@ -134,6 +134,7 @@
 			(g_str_has_suffix(desc, "Minicard Data Modem") ||
 			g_str_has_suffix(desc, "Mini-Card Data Modem") ||
 			g_str_has_suffix(desc, "Module Data Modem") ||
+			g_str_has_suffix(desc, "Module\xc2\xa0""Data Modem")
||
 			g_str_has_suffix(desc, "Broadband Data Modem"))) {
 		devnode = udev_device_get_devnode(udev_device);
 		ofono_modem_set_string(modem, DATA_DEVICE, devnode);
_______________________________________________
ofono mailing list
ofono(a)ofono.org
http://lists.ofono.org/listinfo/ofono


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

end of thread, other threads:[~2011-07-20 12:55 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-27 15:45 Problem detecting/using wwan0 modem ofonoconn
2011-06-27 14:12 ` Denis Kenzior
2011-06-27 17:25   ` ofonoconn
2011-06-27 15:53     ` Denis Kenzior
2011-06-27 18:43       ` ofonoconn
2011-06-27 16:46         ` Denis Kenzior
2011-06-27 19:04           ` ofonoconn
2011-06-27 17:21             ` Denis Kenzior
2011-06-27 19:32               ` Michael Schloh von Bennewitz
2011-06-28 17:05               ` ofonoconn
2011-06-28 20:07               ` Michael Schloh von Bennewitz
2011-06-30 12:31                 ` Incoming patch HS2330 detection, plugins/udev.c Michael Schloh von Bennewitz
2011-06-30  6:47                   ` Denis Kenzior
2011-06-30 19:46                     ` Michael Schloh von Bennewitz
2011-06-30 20:20                       ` Marcel Holtmann
2011-07-02 19:08                         ` Michael
2011-07-20 12:55                   ` Nicolas Paccou
2011-06-27 17:38     ` Problem detecting/using wwan0 modem ofonoconn
2011-06-27 15:50       ` Denis Kenzior

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.