Hi Yang,

> >> What about dual mode modems that with two different serial ports?
> >> e.g. a modem support both GSM and CDMA, there is a serial port
> >> For GSM, and there is a serial another for CDMA.
> >>
> >>
> >> Why not keep both udev and modemconf plug-in. It remains for the user
> >> To decide which way to use. I think maybe we can change the compile
> >> Scrips, let user to select which plug-in to use.
> >
> >I don't even see a problem with this at all. Every serial port is
> >present in udev, so you can write proper udev rules for it. A modem with
> >a serial port for GSM and another one CDMA will be just presented as two
> >modems inside oFono. So no problem at all.
> >
> >So modemconf plugin will be removed since it is not needed at all. The
> >only component that needs it is the phonesim plugin. And that will get
> >its own configuration file.
> 
> Can we just add some code in phonesim to make it look like a pseudo serial 
> device which can be managed by udev? That is, if we start the phonesim, it 
> will simulate some tty ports under /dev and udevd will inform the oFono there 
> is a new device (We need some rule for phonesim). And the device disappears 
> if phonesim meets an end.
> Maybe this is possible if we can send message to udevd the same way as kernel 
> via netlink.

in theory yes, but phonesim is the one piece that also works via TCP. So
just having a /etc/ofono/phonesim.conf is a lot simpler.

Regards

Marcel


_______________________________________________
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono

Reply via email to