Re: Alcatel x060s - incorrect port

2010-05-07 Thread Andrey Alakozov

07.05.2010 02:30, Dan Williams пишет:

On Fri, 2010-04-30 at 15:45 +0400, Andrey Alakozov wrote:

29.04.2010 22:22, Dan Williams пишет:


Is there any chance I can get the Windows .INF files from you off the
device's fake driver CD?  In a pinch, feel free to just mail me the
entire contents of the fake driver CD or post it somewhere I can grab
it.  This will clear up the issue 100%.


Yes, these are Windows 7 drivers provided by modem distributor:
http://www.svyaznoy.ru/upload/Window_7(32&64)_Patch.zip


Thanks; that confirms that the rules in 77-longcheer.rules are correct
and that USB interface #3 is the correct interface to use for the
modem/ppp stuff.  So the ports should get tagged correctly.

I just found your bug too; the problem was that the Longcheer plugin
also contains a vendor ID check, and since your Alcatel x060s has a
different vendor ID, it wasn't getting grabbed by the Longcheer plugin.
The generic plugin doesn't handle port tags because most generic modems
don't need them.

I've committed that fix upstream as:

425c28dfc1d24126feab432609f2c525069d577e

this is a very safe commit for Ubuntu to backport.  At this point, I'd
suggest filing a bug in Launchpad requesting a backport for this
specific commit and follow up the actual Ubuntu packages there.

Thanks for reporting this!
Dan


Thanks for the fix! Should I do something about it? I am not very 
familiar with a Launchpad.


BTW, is it possible to tell from .inf file how to send USSD requests via 
this modem? I've tried different combinations of writing corresponding 
AT command to one ttyUSB and reading reply from other, but with no 
success - all I got back was 'OK'.


Thanks again!

--
Andrey
___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Alcatel x060s - incorrect port

2010-04-30 Thread Andrey Alakozov

29.04.2010 22:22, Dan Williams пишет:


Is there any chance I can get the Windows .INF files from you off the
device's fake driver CD?  In a pinch, feel free to just mail me the
entire contents of the fake driver CD or post it somewhere I can grab
it.  This will clear up the issue 100%.


Yes, these are Windows 7 drivers provided by modem distributor: 
http://www.svyaznoy.ru/upload/Window_7(32&64)_Patch.zip




I have the driver for the X020s, but not the X060s.


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.


Quite interesting; that indicates a problem with ModemManager.  Any
chance you can grab some modem-manager debugging for me?

http://live.gnome.org/NetworkManager/Debugging

under the "Debugging NetworkManager 0.8.x 3G connections" section.  And
lets see what's going on there.


After doing some more experiments I found that it is not Ethernet that 
causes problem. NM fails if I detach and attach modem back. If I attach 
it quickly and to the same USB port, NM alway fails. If I attach it 
after a minute and to the different USB port it is more probable to get 
it working. modem-manager log looks the same in all cases. I've also 
noticed, that after Ethernet is connected, NM starts using ttyUSB1 for 
modem, though udevadm DB is not changed.


So. the best way to make it work is a fresh boot without Ethernet cable 
connected.


Thanks again!

Debag info:

Kubuntu Lucid Beta 2
kernel 2.6.32-21-generic
Aclatel x060s

# lsusb -v
...
Bus 001 Device 020: ID 1bbb: T & A Mobile Phones
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   2.00
  bDeviceClass0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize064
  idVendor   0x1bbb T & A Mobile Phones
  idProduct  0x
  bcdDevice0.00
  iManufacturer   2 USBModem
  iProduct1 USBModem Configuration
  iSerial 3 1234567890ABCDEF
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength  108
bNumInterfaces  4
bConfigurationValue 1
iConfiguration  1 USBModem Configuration
bmAttributes 0xa0
  (Bus Powered)
  Remote Wakeup
MaxPower  500mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   0
  bNumEndpoints   2
  bInterfaceClass   255 Vendor Specific Class
  bInterfaceSubClass255 Vendor Specific Subclass
  bInterfaceProtocol255 Vendor Specific Protocol
  iInterface  0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81  EP 1 IN
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval  32
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01  EP 1 OUT
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval  32
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber1
  bAlternateSetting   0
  bNumEndpoints   2
  bInterfaceClass   255 Vendor Specific Class
  bInterfaceSubClass255 Vendor Specific Subclass
  bInterfaceProtocol255 Vendor Specific Protocol
  iInterface  0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82  EP 2 IN
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval  32
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02  EP 2 OUT
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval  32
Interfa

Re: Alcatel x060s - incorrect port

2010-04-29 Thread Andrey Alakozov

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}=="", 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/pci:00/:00:1a.7/usb1/1-1/1-1:1.1/ttyUSB1
E: UDEV_LOG=3
E: DEVPATH=/devices/pci:00/:00:1a.7/usb1/1-1/1-1:1.1/ttyUSB1
E: DRIVER=option1
E: SUBSYSTEM=usb-serial

P: /devices/pci:00/:00:1a.7/usb1/1-1/1-1:1.1/ttyUSB1/tty/ttyUSB1
N: ttyUSB1
S: char/188:1
S: serial/by-path/pci-: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/pci:00/: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-: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=
E: ID_REVISION=
E: ID_SERIAL=USBModem_USBModem_Configuration_1234567890ABCDEF
E: ID_SERIAL_SHORT=1234567890ABCDEF
E: ID_TYPE=generic
E: ID_BUS=usb
E: ID_USB_INTERFACES=:ff: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-: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}=="", 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: T & A Mobile Phones
...

# cd -P /sys/class/tty/ttyUSB2
# pwd
/sys/devices/pci:00/: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}=="", ENV{.MM_USBIFNUM}=="03", 
ENV{ID_MM_LONGCHEER_PORT_TYPE_MODEM}="1"

Dan










--
Andrey
___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Alcatel x060s - incorrect port

2010-04-27 Thread Andrey Alakozov

Dan,

I use NM version 0.8 that comes with kubuntu lucid.

ATTRS{idProduct}=="", 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.


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: T & A Mobile Phones
...

# cd -P /sys/class/tty/ttyUSB2
# pwd
/sys/devices/pci:00/: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}=="", ENV{.MM_USBIFNUM}=="03", 
ENV{ID_MM_LONGCHEER_PORT_TYPE_MODEM}="1"

Dan





___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Alcatel x060s - incorrect port

2010-04-27 Thread Andrey Alakozov

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: T & A Mobile Phones
...

# cd -P /sys/class/tty/ttyUSB2
# pwd
/sys/devices/pci:00/: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 ?

Thanks!

--
Andrey
___
networkmanager-list mailing list
networkmanager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list