wrong modeswitch conf for usb_modeswitch GlobeTrotter GI1515 0af0:d001 gsm modem

Bug #1261923 reported by bademux
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
usb-modeswitch-data (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Configuration posted back in 2011 by kwardak is OK http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=3&t=797&p=5370

Works as expected:
#######################################################
# Option HSO device
DefaultVendor =0x0af0
DefaultProduct =0xd001
TargetVendor =0x0af0
TargetProduct =0xd157
TargetClass =0xff
Interface =0x01
MessageEndpoint =0x02
ResponseEndpoint =0x89
MessageContent ="55534243785634120100000080000601000000000000000000000000000000"
CheckSuccess =4

Ubuntu 13.10 (usb_modeswitch Version 1.2.3 (C) Josua Dietze 2012) still uses BAD configPack.tar.gz/0af0:d001 config:
# Option GlobeTrotter GI1515

TargetVendor= 0x0af0
TargetProduct= 0xd157

MessageContent="55534243785634120100000080000601000000000000000000000000000000"

NoDriverLoading=1

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: usb-modeswitch-data 20120815-2
ProcVersionSignature: Ubuntu 3.11.0-15.23-generic 3.11.10
Uname: Linux 3.11.0-15-generic x86_64
ApportVersion: 2.12.5-0ubuntu2.2
Architecture: amd64
Date: Tue Dec 17 22:05:19 2013
InstallationDate: Installed on 2012-10-06 (437 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Beta amd64 (20120926)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: usb-modeswitch-data
UpgradeStatus: Upgraded to saucy on 2013-10-18 (60 days ago)

Related branches

Revision history for this message
bademux (bademux) wrote :
Revision history for this message
Lars Melin (larsm17) wrote :

Can you please add a lsusb -v -d 0af0:d001 listing taken before switching the device and also one for 0af0:d157 after switching.
What vid:pid do you get when trying to switch the device using the "BAD configpack" ?

Revision history for this message
bademux (bademux) wrote :

Requested report attached. Sorry for delay

Revision history for this message
Josua Dietze (digidietze) wrote :

Somehow the "Interface" paramater has never made it into the data package ...

I'll include it with the next release; however, a small change in the program package is required as well. This applies to the upstream wrapper code which filters out all devices with interface 0 class anything other than "8" (meaning it expects the pseudo CDROM at the first interface). I don't know how the Ubuntu fork handles this.

For now, this device can be treated manually. Copy the "faulty" config file to /etc/usb_modeswitch.d and edit it by adding this line: "Interface=1".

Then run this command (as root or with sudo):
"usb_modeswitch -I -v 0af0 -p d001 -c /etc/usb_modeswitch.d/0af0:d001"

Revision history for this message
Josua Dietze (digidietze) wrote :

Correction for post #4:

When you edit the config file, also add the following lines:

MessageEndpoint =0x02
ResponseEndpoint =0x89

Changed in usb-modeswitch-data (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.