Le dimanche 21 juin 2009 13:10:50 W. Martin Borgert, vous avez écrit :
> Package: usb-modeswitch
> Version: 0.9.7-1
> Severity: normal

Hi Martin, and thanks for your bugreport,

first of all, a new 1.0.2-1 upstream release landed in unstable (and migrated 
to 
testing). You might be interested to try it. If I remember correctly, the rules 
for your device changed a little bit.

Secondly, a mega-sorry for the delay, I have had tons of other things to do in 
the meanwhile.

> I have on Option UMTS modem with the USB id 0af0:6971 (output of
> lsusb -v attached) plugged in. When I run the command:
>
> # /usr/sbin/usb_modeswitch --DefaultVendor 0x0af0 --DefaultProduct 0x6971
> --MessageEndpoint 0x05 --MessageContent
> 55534243785634120100000080000601000000000000000000000000000000
>
> (as written in /etc/udev/rules.d/usb_modeswitch.rules) I get
> error messages:
> 
> (…)
> Prepare switching, accessing device 007 on bus 003 ...
> Looking for active driver ...
>  No driver found. Either detached before or never attached

This seems to imply that your device was not correctly plugged in…

> This does not look like the right behaviour to me. What does
> "error -2" mean? When I comment out the respective lines in
> /etc/usb_modeswitch.conf, and do not use udev, but run the
> command:
>
> # usb_modeswitch
>
> without arguments, I get:
> (…)
>  All devices in target class mode. Nothing to do. Bye!

This seems to imply that your device was _already_ switched before you launched 
usb_modeswitch.

> Is the device really supported? Are there maybe wrong parameters?
> Esp. I cannot find the MessageContent documented somewhere in the
> package, so it's hard to tell, whether there might be an error.

The MessageContent is some sort of BlackMagic hexa stream pushed to the USB 
device. This is at least what I understood of it.

Could you please give me your /var/log/syslog lines concerning the plugging of 
your device ? These indicate pretty clearly what happens : a) recognised as 
zeroconf usb-storage b) disconnected by usb-modeswitch c) recognised as modem 
d) 
appearance of /dev/ttyUSB* devices.

Also notes that some devices begin to _not_ need usb-modeswitch anymore with 
newer kernel versions.

> (Minor point, which does not justify a bug report: In both
> /etc/udev/rules.d/usb_modeswitch.rules and
> /etc/usb_modeswitch.conf, the names of the contributors Bernd
> Holzmüller, Flávio Moringa, and Jérôme Oufella are encoded in
> ISO-8859-1. I believe, this should be UTF-8, right?)

About this minor point, it's an easy fix, so I committed a patch already. 
Thanks 
for that !

Best regards, 

OdyX

-- 
Didier Raboud, proud Debian user.
CH-1802 Corseaux
did...@raboud.com

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to