Activation Codes and Methods, Hardware Details, Sniffing
Josh
Site Admin
Posts: 6593
Joined: 03 Nov 2007, 00:30

Re: Huawei u2800: a $40 USB tethering phone?

Post by Josh » 30 May 2013, 23:30

Wow, cool!

I will add this to the usb_modeswitch 'database'.

fedorowp
Posts: 3
Joined: 30 May 2013, 23:08

Re: Huawei u2800: a $40 USB tethering phone?

Post by fedorowp » 06 Jun 2013, 19:28

Support for the model is is now in the latest package, but broken due to the control command being incorrect. See the control message in my previous post.

In order for hot-plug to work under Ubuntu 13.04, (and likely most Linux distros):

1. Create /etc/modprobe.d/usbmodeswitch.conf containing:
# Tell usb-storage to ignore Huawei U2800 phone
options usb-storage quirks=12d1:1805:i

2. update-initramfs -u

3. To have the change take effect, either reboot or 'rmmod usb_storage'.

I believe this solution is applicable for any device usb-storage interferes with, including most phones.

Regards,
Peter Fedorow

Josh
Site Admin
Posts: 6593
Joined: 03 Nov 2007, 00:30

Re: Huawei u2800: a $40 USB tethering phone?

Post by Josh » 07 Jun 2013, 08:01

Don't know how that happened ...

Anyway, I'll release a corrected bug-fix data package tonight.

Regarding the suggestion to "blacklist" all modems and phones - I would be careful with that!
There are several modems I know which need the initialization by the storage driver to make the mode switching work.

If the problem is showing only on Ubuntu and not on Fedora, it's a problem of the specific distribution.

rbruno
Posts: 1
Joined: 21 Oct 2013, 20:06

Re: Huawei u2800: a $40 USB tethering phone?

Post by rbruno » 21 Oct 2013, 20:12

Hi!

I did the following
usb_modeswitch -v 12d1 -p 1805 -C 0xff -M"55534243123456780600000080000601000000000000000000000000000000"


And I get the following output :

[ 101.212202] usb 2-1.3: usbfs: process 2302 (usb_modeswitch) did not claim interface 0 before use
[ 111.439867] usb 2-1.3: USB disconnect, device number 3
[ 112.021410] usb 2-1.3: new high-speed USB device number 4 using ehci-pci
[ 112.115987] usb 2-1.3: New USB device found, idVendor=12d1, idProduct=1805
[ 112.115999] usb 2-1.3: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[ 112.116004] usb 2-1.3: Product: HuaWei Technologies MSM
[ 112.116010] usb 2-1.3: Manufacturer: HuaWei, Incorporated
[ 112.119075] scsi6 : usb-storage 2-1.3:1.2
[ 112.169353] usbcore: registered new interface driver usbserial
[ 112.169399] usbcore: registered new interface driver usbserial_generic
[ 112.169435] usbserial: USB Serial support registered for generic
[ 112.192062] usbcore: registered new interface driver option
[ 112.192082] usbserial: USB Serial support registered for GSM modem (1-port)
[ 112.192294] option 2-1.3:1.0: GSM modem (1-port) converter detected
[ 112.192415] usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB0
[ 112.192434] option 2-1.3:1.1: GSM modem (1-port) converter detected
[ 112.192517] usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB1
[ 113.116579] scsi 6:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 113.119424] sr1: scsi-1 drive
[ 113.119556] sr 6:0:0:0: Attached scsi CD-ROM sr1
[ 113.119622] sr 6:0:0:0: Attached scsi generic sg3 type 5

I do all this and yet it does not work, searched the message displayed on that "usb_modeswitch not claim interface" bug got is very old but if that s not the real problem.

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: Huawei u2800: a $40 USB tethering phone?

Post by LOM » 22 Oct 2013, 02:47

You can ignore the warning message "usb_modeswitch did not claim interface 0 before use".

Your dmesg shows that usb_modeswitch has done the switching and you have got the 2 ttyUSB devices, what remains for you is to configure your modem manager/dial-up program and connect. This is not a usb_modeswitch task..

Post Reply