[PATCH 1/1] Huawei E176: Mark primary and secondary device at ofono.rules TODO: Fix sim_add detection, add E1552 idProduct to ofono.rules
Denis Kenzior
denkenz at gmail.com
Tue Jun 1 12:09:10 PDT 2010
Hi Kalle,
> Marcel Holtmann <marcel at holtmann.org> writes:
> > Hi Kalle,
>
> Hallo Marcel,
>
> >> 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.
> >
> > we should do something like auto-detect at some point, but there are
> > limits in it.
>
> So what's the best option to go forward?
>
> And related to this, can we rely on the port numbering order provided by
> udev? For example, on my Huawei E1552 port 0 is the main chat port and
> port 2 is the "event" port. Is it certain that port numbering will be
> the same across all distributions and kernels?
>
I'm not the kernel expert, but the answer is probably 'no'. However, doing
any sort of port auto-detection inside plugins/udev.c is a bit nasty. Best we
can do is set all of the 2/3/4 ttys and let the plugin probe them. I
certainly have doubts we can do this reliably. If we can't, then we should
consider Florian's approach as a backup.
Regards,
-Denis
More information about the ofono
mailing list