Activation Codes and Methods, Hardware Details, Sniffing
Post Reply
anarchist
Posts: 4
Joined: 06 Mar 2010, 04:24

Help required: ZTE MF668

Post by anarchist » 08 Mar 2010, 19:47

Hey I am using Ubuntu 9.10 (Desktop Version) on my HP mini 210 and I have the Rogers HSPA+ Speed Stick (ZTE MF 668). I've done my best to read your site and tried absolutely everything but now, finally after being able to register for an account, I really could use your help please.

When I install the usb_modeswitch and usb_modeswitch-data and i've also changed the /etc/usb_modeswitch.conf file to include the following:

DefaultVendor=0x19d2
DefaultProduct=0x2000

TargetVendor=0x19d2
TargetProduct=0x0017

MessageEndpoint=0x01
MessageContent="55534243123456782000000080000c85010101180101010101000000000000"

Now when I first install the usb_modeswitch and usb_modeswitch-data and I run the usb_modeswitch command (from sudo su) it works fine, it detects switches the usb from 0x19d2:0x2000 to 0x19d2:0x0017
and I get the dialogue to set up my modem network connection and it works perfectly!

As soon as I disable my connection and unplug and re plug to see if it works again, no matter what I do, I can't get it to switch.

This is what I get (right after plugging it in)


root@ahmad-laptop:/# lsusb
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 0461:4d2b Primax Electronics, Ltd Wireless Laser Mini Mouse (HID)
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 009: ID 19d2:2000 ONDA Communication S.p.A.
Bus 001 Device 002: ID 090c:637b Feiya Technology Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

When I check the /media/cdrom1 the directory is empty and there is actually no driver. So I can see why usb_modeswitch says no driver found but why Is the speed stick in flash mode but no driver in there? Or am I off point? Either way it's not working and I could really use some help and I really appreciate any information you can provide.

root@ahmad-laptop:/# usb_modeswitch

* usb_modeswitch: tool for controlling "flip flop" mode USB devices
* Version 1.0.2 (C) Josua Dietze 2009
* Works with libusb 0.1.12 and probably other versions

Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
Found default devices (1)
Accessing device 009 on bus 001 ...
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
OK, driver found ("usbfs")
OK, driver "usbfs" detached
Could not get INQUIRY response (error -16)

Device description data (identification)
-------------------------
Manufacturer: ZTE,Incorporated
Product: ZTE HSPA Technologies MSM
Serial No.: P680A1ZTED010000
-------------------------
Looking for active driver ...
OK, driver found ("usbfs")
OK, driver "usbfs" detached
Setting up communication with interface 0 ...
Trying to send the message to endpoint 0x01 ...
Sending the message returned error -110. Trying to continue
-> Run lsusb to note any changes. Bye.


AND Then after that if I enter the command again, it does the following:


root@ahmad-laptop:/# usb_modeswitch

* usb_modeswitch: tool for controlling "flip flop" mode USB devices
* Version 1.0.2 (C) Josua Dietze 2009
* Works with libusb 0.1.12 and probably other versions

Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
Found default devices (1)
Accessing device 009 on bus 001 ...
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
No driver found. Either detached before or never attached

(continues in sleep mode waiting for command to finish).

and the third time:

ahmad@ahmad-laptop:~$ usb_modeswitch

* usb_modeswitch: tool for controlling "flip flop" mode USB devices
* Version 1.0.2 (C) Josua Dietze 2009
* Works with libusb 0.1.12 and probably other versions

Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
Found default devices (1)
Accessing device 000 on bus 001 ...
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
No driver found. Either detached before or never attached
Could not claim interface (error -1). Skipping device inquiry

Device description data (identification)
-------------------------
Error: could not get description string "manufacturer"
Manufacturer:
Error: could not get description string "product"
Product:
Error: could not get description string "serial number"
Serial No.:
-------------------------
Looking for active driver ...
No driver found. Either detached before or never attached
Setting up communication with interface 0 ...
Could not claim interface (error -1). Skipping message sending
-> Run lsusb to note any changes. Bye.


Also I am not sure if this is related but now on my desktop there is a "Rogers" icon and I can not delete it, when i right click and click "unmount", it gives me the following error:
"Unable to unmount Rogers
umount: /media/cdrom1 mount disagrees with the fstab|

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

Post by Josh » 08 Mar 2010, 21:52

I've had reports of similar behaviour before. Unfortunately, there is not much to do; I suspect hardware quirks.

The problem seems to be somehow related to the failure of the usb-storage driver when inserting the second time.

You could try to remove the storage driver after unplugging. Call dmesg to see if there are any behaviour changes after plugging again.

Usually, I'd recommend to use the latest version (the Debian package 1.1.0), but in your case I doubt it would solve the problem.


anarchist
Posts: 4
Joined: 06 Mar 2010, 04:24

loading flash drive / driver problem

Post by anarchist » 09 Mar 2010, 03:37

I did some further investigation into this. The problem it seems that for some reason even after I plug in the speed stick and issue lsusb command it does register the device being plugged into the usb port. But when you go to /media/cdrom1 or anywhere else, there are no driver's actually being loaded (or I am not sure if the device is properly even in flash storage mode?).

Either way there has to be something I can do because now even after un installing usb_modeswitch / usb_modeswitch-data completely and re install it. The problem is exactally the same, it won't even register the ZTE MF 668 when I input usb_modeswitch command.

There just has to be a way to fix this :( no matter what it takes! lol

Again, I appreciate your help.

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

Post by Josh » 09 Mar 2010, 11:43

Did you do what I recommended?

To make it easier, after unplugging do (as root or with sudo):
# modprobe -r -v usb-storage

After each replugging call "dmesg" and see if the SCSI driver has found anything.

anarchist
Posts: 4
Joined: 06 Mar 2010, 04:24

ty

Post by anarchist » 09 Mar 2010, 19:37

Thank you very much for the reply.

It seems that modprobe helps a lot and I can get it to work every time I restart my laptop and run the command before plugging in the speed stick and then input dmesg and then usb_mode-switch. But the second I unplug and try the modprobe command again it gives me the following error:

FATAL: Module usb_storage is in use.

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

Post by Josh » 09 Mar 2010, 20:27

There we have it: the system probably mounts a storage card slot after switching, or even accesses the install storage.

You might see it on the desktop somewhere. Next time you unplug, try to unmount it first (mostly an option in a context menu opened with the right mouse button).

anarchist
Posts: 4
Joined: 06 Mar 2010, 04:24

it works :"D

Post by anarchist » 09 Mar 2010, 21:06

Your absolutely right, that's exactly what it's doing. Now the next problem is that when I do unmount through the context menu on the Rogers speed stick icon, it prints the message:

"umount: /media/cdrom1 mount disagrees with the fstab"

so I tried the command "umount /media/cdrom1" and it worked perfectly :D

now every time first I do umount through the command line, next remove speed stick, then do modprobe -vr usb-storage

after that replug and call dmesg and then input usb_modeswitch command and it works perfectly :D

thank you soo much Josh, i really appreciate all your help on this matter! your a smart guy, wish you were my linux teacher lol.. so happy it finally works now everytime :D

Post Reply