Open Source Telephony
 help / color / mirror / Atom feed
From: Kalle Valo <kalle.valo@canonical.com>
To: ofono@ofono.org
Subject: Re: [PATCH 1/1] Huawei E176: Mark primary and secondary device at ofono.rules TODO: Fix sim_add detection, add E1552 idProduct to ofono.rules
Date: Mon, 31 May 2010 15:29:43 +0300	[thread overview]
Message-ID: <87hblo2r0o.fsf@potku.valot.fi> (raw)
In-Reply-To: <20100530134721.GA14827@h02.hostsharing.net>

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

Hi Florian,

thank you for the patch.

I'm curious, did you test ofono with Huawei E176? Did it work? Did you
have any problems?

Florian Steinel <Florian.Steinel@gmail.com> writes:

> diff --git a/plugins/ofono.rules b/plugins/ofono.rules
> index 0575362..abae06a 100644
> --- a/plugins/ofono.rules
> +++ b/plugins/ofono.rules
> @@ -1,11 +1,26 @@
>  # do not edit this file, it will be overwritten on update
>  
>  ACTION!="add|change", GOTO="ofono_end"
> +
> +SUBSYSTEM!="tty", GOTO="ofono_typ_end"
> +KERNEL!="ttyUSB[0-9]*", GOTO="ofono_typ_end"
> +
> +# HUAWEI E176
> +ENV{ID_VENDOR_ID}=="12d1", ENV{ID_MODEL_ID}=="1003", ENV{ID_IFACE}=="00", ENV{OFONO_TYP}="PRIMARY"
> +ENV{ID_VENDOR_ID}=="12d1", ENV{ID_MODEL_ID}=="1003", ENV{ID_IFACE}=="01", ENV{OFONO_TYP}="SECONDARY"
>
> +# HUAWEI E1552
> +# TODO: Add ID_MODEL_ID aka idProduct for E1552
> +#ENV{ID_VENDOR_ID}=="12d1", ENV{ID_MODEL_ID}=="1003", ENV{ID_IFACE}=="00", ENV{OFONO_TYP}="PRIMARY"
> +#ENV{ID_VENDOR_ID}=="12d1", ENV{ID_MODEL_ID}=="1003", ENV{ID_IFACE}=="02", ENV{OFONO_TYP}="SECONDARY"
> +
> +LABEL="ofono_typ_end"

I think adding usb ids to the rules file for each Huawei product is a
maintenance problem. There are so many devices out there, that handling
the usb ids for all of them is difficult.

I personally would prefer a solution which would dynamically probe the
ports and choose them based on results. I believe modemmanager does
something like this, but I haven't looked in detail.

But Denis and Marcel should comment here, they know best.

-- 
Kalle Valo

  reply	other threads:[~2010-05-31 12:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-30 13:47 [PATCH 1/1] Huawei E176: Mark primary and secondary device at ofono.rules TODO: Fix sim_add detection, add E1552 idProduct to ofono.rules Florian Steinel
2010-05-31 12:29 ` Kalle Valo [this message]
2010-05-31 15:52   ` Marcel Holtmann
2010-05-31 16:52     ` Kalle Valo
2010-05-31 17:00       ` Daniel Oliveira Nascimento
2010-06-01 19:09       ` Denis Kenzior
2010-05-31 17:57   ` Florian Steinel

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=87hblo2r0o.fsf@potku.valot.fi \
    --to=kalle.valo@canonical.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox