Re: Alcatel x060s - incorrect port



Hi,

In udevadm DB, ttyUSB1 has ID_MM_LONGCHEER_PORT_TYPE_AUX=1 flag, and
ttyUSB2 has ID_MM_LONGCHEER_PORT_TYPE_MODEM=1 flag.

I've changed ATTRS{idProduct}=="0000", ENV{.MM_USBIFNUM}=="03"

in 77-mm-longcheer-port-types.rules to be both aux and modem
and it worked! Now NM could connect OK.

While playing with it I found that NM fails to find modem if Ethernet connection is active:

# tail -f /var/log/syslog

...
Apr 29 13:18:07 andrey-laptop NetworkManager: Could not get modem driver: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.


If I detach Ethernet before plugging modem in everything works fine.
It's a minor issue for me because I do not intend to use Ethernet and 3G connections simultaneously.

See udevadm output below.


# udevadm info --export-db
...
P: /devices/pci0000:00/0000:00:1a.7/usb1/1-1/1-1:1.1/ttyUSB1
E: UDEV_LOG=3
E: DEVPATH=/devices/pci0000:00/0000:00:1a.7/usb1/1-1/1-1:1.1/ttyUSB1
E: DRIVER=option1
E: SUBSYSTEM=usb-serial

P: /devices/pci0000:00/0000:00:1a.7/usb1/1-1/1-1:1.1/ttyUSB1/tty/ttyUSB1
N: ttyUSB1
S: char/188:1
S: serial/by-path/pci-0000:00:1a.7-usb-0:1:1.1-port0
S: serial/by-id/usb-USBModem_USBModem_Configuration_1234567890ABCDEF-if01-port0
E: UDEV_LOG=3
E: DEVPATH=/devices/pci0000:00/0000:00:1a.7/usb1/1-1/1-1:1.1/ttyUSB1/tty/ttyUSB1
E: MAJOR=188
E: MINOR=1
E: DEVNAME=/dev/ttyUSB1
E: SUBSYSTEM=tty
E: ID_PORT=0
E: ID_PATH=pci-0000:00:1a.7-usb-0:1:1.1
E: ID_VENDOR=USBModem
E: ID_VENDOR_ENC=USBModem
E: ID_VENDOR_ID=1bbb
E: ID_MODEL=USBModem_Configuration
E: ID_MODEL_ENC=USBModem\x20Configuration
E: ID_MODEL_ID=0000
E: ID_REVISION=0000
E: ID_SERIAL=USBModem_USBModem_Configuration_1234567890ABCDEF
E: ID_SERIAL_SHORT=1234567890ABCDEF
E: ID_TYPE=generic
E: ID_BUS=usb
E: ID_USB_INTERFACES=:ffffff:080650:
E: ID_USB_INTERFACE_NUM=01
E: ID_USB_DRIVER=option
E: ID_IFACE=01
E: ID_VENDOR_FROM_DATABASE=T & A Mobile Phones
E: ID_MM_LONGCHEER_PORT_TYPE_AUX=1
E: ID_MM_LONGCHEER_TAGGED=1
E: DEVLINKS=/dev/char/188:1 /dev/serial/by-path/pci-0000:00:1a.7-usb-0:1:1.1-port0 /dev/serial/by-id/usb-USBModem_USBModem_Configuration_1234567890ABCDEF-if01-port0
...

Thanks!

Dan Williams wrote:
On Wed, 2010-04-28 at 08:15 +0400, Andrey Alakozov wrote:
Dan,

I use NM version 0.8 that comes with kubuntu lucid.

ATTRS{idProduct}=="0000", ENV{.MM_USBIFNUM}=="03", ENV{ID_MM_LONGCHEER_PORT_TYPE_MODEM}="1"

is presented in 77-mm-longcheer-port-types.rules, but NM still tries to use ttyUSB1 and fails with 'Did not receive a reply' error.

Can you run "udevadm info --export-db" and then look for 'ttyUSB1' and
see if the udev rules actually got applied?

Dan

Thanks.

Dan Williams wrote:
On Tue, 2010-04-27 at 19:41 +0400, Andrey Alakozov wrote:
Hello,

I have just the same problem as described here - http://www.mail-archive.com/networkmanager-list gnome org/msg14493.html
with Alcatel x060s: three devices (ttyUSB[0-2]), only ttyUSB2 works OK

If I do link -f ttyUSB2 ttyUSB0 ; link -f ttyUSB2 ttyUSB0 - everything works fine.

# lsusb
...
Bus 001 Device 014: ID 1bbb:0000 T & A Mobile Phones
...

# cd -P /sys/class/tty/ttyUSB2
# pwd
/sys/devices/pci0000:00/0000:00:1a.7/usb1/1-1/1-1.3/1-1.3:1.3/ttyUSB2/tty/ttyUSB2

How to update 77-mm-zte-port-types.rules ?
You don't want ZTE rules, you want 77-mm-longcheer-port-types.rules.
And I'm pretty sure your device is already listed there.  What version
of ModemManager are you running?

http://cgit.freedesktop.org/ModemManager/ModemManager/tree/plugins/77-mm-longcheer-port-types.rules

See the bottom of that file for your device:

ATTRS{idProduct}=="0000", ENV{.MM_USBIFNUM}=="03", ENV{ID_MM_LONGCHEER_PORT_TYPE_MODEM}="1"

Dan








--
Andrey


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]