On 12/19/2011 06:50 AM, Marcel Holtmann wrote: > Hi Philippe, > >> plugins/ofono.rules | 3 +++ >> 1 files changed, 3 insertions(+), 0 deletions(-) >> >> diff --git a/plugins/ofono.rules b/plugins/ofono.rules >> index c7fac57..079db07 100644 >> --- a/plugins/ofono.rules >> +++ b/plugins/ofono.rules >> @@ -22,6 +22,9 @@ KERNEL!="ttyUSB[0-9]*", GOTO="ofono_tty_end" >> ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="0017", ENV{ID_USB_INTERFACE_NUM}=="02", ENV{OFONO_LABEL}="modem" >> ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="0017", ENV{ID_USB_INTERFACE_NUM}=="01", ENV{OFONO_LABEL}="aux" >> >> +ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="0124", ENV{ID_USB_INTERFACE_NUM}=="04", ENV{OFONO_LABEL}="modem" >> +ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="0124", ENV{ID_USB_INTERFACE_NUM}=="01", ENV{OFONO_LABEL}="aux" >> + >> LABEL="ofono_tty_end" >> >> SUBSYSTEM!="usb", GOTO="ofono_end" > > same here. The modem AUX port is always the second TTY and the modem TTY > is always the last one. Where is this not true? Actually, with this dongle ZTE MF190, we have 6 TTY (usb0 -> usb5) and usb-devices gives: T: Bus=02 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 32 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=19d2 ProdID=0124 Rev=00.00 S: Manufacturer=ZTE,Incorporated S: Product=ZTE WCDMA Technologies MSM S: SerialNumber=P671A2TMED010000 C: #Ifs= 7 Cfg#= 1 Atr=e0 MxPwr=500mA I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option I: If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option I: If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option I: If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option I: If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option I: If#= 5 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option I: If#= 6 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage Now, ttyUSB5 is not responsive. So, for this particular dongle, the modem won't be on the latest interface. In practice, we shall use the interface ttyUSB4 for PPP. Windows Device Manager gives the following results: Vendor Id: 19d2 / Product Id: 0124 (same as after usb_modeswitch) ZTE Diagnostic port - 00 ZTE AT port - 01 ZTE ATExt2 port - 02 ZTE USB SmartCard Reader - 03 ZTE Proprietary USB Modem - 04 ZTE Mobile broadband Network manager - 05 So, it confirms that the modem port com is on ttyUSB4. To not break the support of ZTE modems with 5 interfaces (which are using the 4th one for PPP, like K3570), I can't extend the current logic in udevng to take into account the ttyUSB4. So, I added a specific rule for ZTE MF190. Regards, Philippe. > > Regards > > Marcel > > > _______________________________________________ > ofono mailing list > ofono(a)ofono.org > http://lists.ofono.org/listinfo/ofono >