From: Marcel Holtmann <marcel@holtmann.org>
To: ofono@ofono.org
Subject: Re: [PATCH 0/3] oFono rules update
Date: Tue, 23 Aug 2011 09:13:13 -0700 [thread overview]
Message-ID: <1314115995.3373.211.camel@aeonflux> (raw)
In-Reply-To: <4E53C6BA.9010807@linux.intel.com>
[-- 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
next prev parent reply other threads:[~2011-08-23 16:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2011-08-24 10:34 ` Philippe Nunes
2011-08-24 16:21 ` Marcel Holtmann
2011-08-25 13:48 ` Philippe Nunes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1314115995.3373.211.camel@aeonflux \
--to=marcel@holtmann.org \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.