Activation Codes and Methods, Hardware Details, Sniffing
Post Reply
mvdw
Posts: 2
Joined: 19 Sep 2008, 06:41
Location: Australia
Contact:

Trouble with ZTE MF-626

Post by mvdw » 19 Sep 2008, 07:15

Just bought a ZTE MF-626 today, and by the looks of things it'll need to be switched using a command. However, I can't work out from the SniffUsb log which command I should use.

The log is at http://www.vandewerken.id.au/zte-mf-626.log

If someone could take a quick look and decipher it for me I'd appreciate it.

Cheers,
mvdw

mvdw
Posts: 2
Joined: 19 Sep 2008, 06:41
Location: Australia
Contact:

Still can't switch

Post by mvdw » 29 Oct 2008, 05:21

Tried the following based on the usbsnoop log as linked above:

sudo usb_modeswitch -v 0x19d2 -p 0x2000 -m 1 -M "55534243e0f026892400000080000c12000000240000000000000000000000"

With still no luck.

Ideas? Am I snooping the correct place?

Note that dmesg gives:

Oct 29 13:16:19 hammond kernel: [ 5421.021813] usb-storage: device ignored

when I plug it in, so maybe a clue?

Cheers,
mvdw

joke_dst
Posts: 19
Joined: 04 Mar 2008, 12:21

Post by joke_dst » 29 Oct 2008, 10:09

That log looks terribly short... For comparison, my log from the ZTE MF-628 was 1 Mb, having 18000 lines.

So I think you only got the top of the log there (since you have the configuration stuff in it), and the switch command us usually at the very end.

Try to get a new log.

However, you've created a perfectly correct usb_modeswitch command considering the log you have :)

robertfullarton
Posts: 1
Joined: 12 Nov 2008, 04:19
Location: Brisbane, Australia

Post by robertfullarton » 12 Nov 2008, 04:31

I got my mf626 to switch by using the info for the MF-628+.
The MF-628+ has the same product id when in modem mode as the MF-626.

Still havn't got the modem talking yet, but I seem to have got passed the switching problem.

Rob

LunaticFringe
Posts: 1
Joined: 15 Nov 2008, 17:55

Post by LunaticFringe » 15 Nov 2008, 17:59

By using the MF628+ info, then afterwards doing a manual insmod, I've come up with serial devices

insmod /lib/modules/2.6.27.6/kernel/drivers/usb/serial/usbserial.ko vendor=0x19d2 product=0x0031

After this, using /dev/ttyUSB2 works perfectly.

Y-Master
Posts: 1
Joined: 10 Dec 2008, 11:28
Location: Paris, France

Post by Y-Master » 10 Dec 2008, 12:55

I have a MF626 from my provider in France. I'm on ubuntu 8.10
As indicate in this topic, i've tryed the MF628+ config for usb_modeswitch, but nothing append, the product id stay at 19d2:2000.

Could you give me the exact command you use to switch your device ?

Thanks

PS : sorry for my english, french people sucks in other laguage :D

poetas
Posts: 2
Joined: 27 Dec 2008, 01:21

Re: Still can't switch

Post by poetas » 27 Dec 2008, 03:07

Hello

Did you manage to make this device work?
I have a similar device. On the box it sais Huawei but on the device it is writen HSDPA USB stick
model: K3565-z ZTE Corporation.
It has a micro sd slot.

when i plug it in the usb slot i get logs in syslog:

Code: Select all

Dec 27 01:35:48 poetas-laptop kernel: [33353.304183] usb 4-3: new high speed USB device using ehci_hcd and address 47
Dec 27 01:35:49 poetas-laptop kernel: [33353.477639] usb 4-3: configuration #1 chosen from 1 choice
Dec 27 01:35:49 poetas-laptop kernel: [33353.480243] usb-storage: device ignored
The vid and pid are 19d2:2000
In windows it swiches to 19d2:0052

i followed this tutorial: http://blogger.ziesemer.com/2008/10/all ... buntu.html

i have the folowing log files:
http://78.158.0.250/UsbSnoop.log
http://78.158.0.250/UsbSnoop2.log

They are very similar to the one in the firs post.

as i understand from the log file what happens is:
a string 5553424308b0a4892400000080000c12000000240000000000000000000000 is written to endpoint 0x01 then a string is read from endpoint 0x81 then another string is read from endpoint 0x81 and then the firs string again is writen to endpoint 0x01 and then device swiches to modem mode
i tried this with usb_modeswich with no success
I modified the usb_modeswich to print the bytes read
for some reason it is not what is read in windows

Code: Select all

sudo ./usb_modeswitch -v 0x19d2 -p 0x2000 -m 0x01 -M "5553424308b0a4892400000080000c12000000240000000000000000000000" -r 0x81

Looking for default devices
 Found default devices (1)
Prepare switching, accessing latest device
Looking for active default driver to detach it
 No driver found. Device probably not initialized. Trying to continue ...
Setting up communication with device
Trying to send the message'5553424308b0a4892400000080000c12000000240000000000000000000000' 
 OK, message successfully sent.
Reading the response
 OK, response successfully read (36 bytes).
058000321f0000005a5445202020202055534220534353492043442d524f4d00322e3331
Reading the response
 OK, response successfully read (13 bytes).
5553425308b0a4890000000000
Trying to send the message'5553424308b0a4892400000080000c12000000240000000000000000000000' 
 OK, message successfully sent.
-> See /proc/bus/usb/devices (or call lsusb) for changes. Bye
Am i going in the right direction ?
and does anyone know why it is not working?
is there anything else i can try?

poetas
Posts: 2
Joined: 27 Dec 2008, 01:21

Re: Still can't switch

Post by poetas » 27 Dec 2008, 17:22

Solved the problem myself
i used the config from ZTE MF628+
aparently if one config failed to swich the device
and you want to try another config you have to pull out the usb stick and plug it back in again before continuing.

sstefanov
Posts: 2
Joined: 08 Jan 2009, 19:16

Re: Still can't switch

Post by sstefanov » 08 Jan 2009, 19:22

poetas wrote:Solved the problem myself
i used the config from ZTE MF628+
aparently if one config failed to swich the device
and you want to try another config you have to pull out the usb stick and plug it back in again before continuing.
Hi Poetas,

Can you explain me how you did the trick with the ZTE 3565 modem?

I am struggling for a whole day to make it switch the USB mode.

What I managed to do is switch it from id 0x2000 to 0x0052, but still I do not see any serial ports enabled by the USB system.

Once I issue the usb_modeswitch command from your post, and the ZTE 3565 switches from USB Cdrom to memory card reader mode - i.e. I see in dmesg:
[ 1035.714541] usb-storage: device found at 3
[ 1035.714549] usb-storage: waiting for device to settle before scanning
[ 1037.057337] usb-storage: device scan complete
[ 1037.059253] scsi 6:0:0:0: Direct-Access ZTE MMC Storage 2.31 PQ: 0 ANSI: 2
[ 1037.062763] input: Virtual ThinkFinger Keyboard as /devices/virtual/input/input16
[ 1037.066922] sd 6:0:0:0: [sdb] Attached SCSI removable disk
[ 1037.066966] sd 6:0:0:0: Attached scsi generic sg2 type 0


lsusb shows:

Bus 005 Device 001: ID 0000:0000
Bus 007 Device 001: ID 0000:0000
Bus 006 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 002: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 003: ID 19d2:0052
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 003: ID 046d:09c1 Logitech, Inc.
Bus 001 Device 001: ID 0000:0000


I am running Ubuntu 8.04.1 with latest updates. I tried it under windows xp and it seems to work OK.

PS: Also I found that the ZTE 3565 switches from product id 0x2000 to 0x0052 by ejecting the mounted CDROM (0x2000 is detected as USB Cdrom).

Thanks in advance for your hints!

Regards,
Stefan

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

Post by Josh » 08 Jan 2009, 22:10

If your product ID changes, you probably switched the device already. The usb-storage driver is available and binds again, this time to the SD slot. It is not unlikely that the modem part works at the same time.

Chances are that no serial driver is attached to it. Did you load the usbserial module with the parameters of the switched device? The command is on the USB_ModeSwitch documentation page. For your convenience:

modprobe usbserial vendor=<TargetProdID> product=<TargetVendID>

sstefanov
Posts: 2
Joined: 08 Jan 2009, 19:16

Post by sstefanov » 11 Jan 2009, 20:21

Josh wrote:If your product ID changes, you probably switched the device already. The usb-storage driver is available and binds again, this time to the SD slot. It is not unlikely that the modem part works at the same time.

Chances are that no serial driver is attached to it. Did you load the usbserial module with the parameters of the switched device? The command is on the USB_ModeSwitch documentation page. For your convenience:

modprobe usbserial vendor=<TargetProdID> product=<TargetVendID>
Many thanks, that was it. Also, I noted that on my ZTE K3565-Z, ejecting the usb CDROM, switches the dongle in USB modem mode. Hence no need for usb_modeswitch at all.

Stefan

zhouqiqiu1982
Posts: 27
Joined: 10 Aug 2010, 16:15

Post by zhouqiqiu1982 » 10 Aug 2010, 16:23

Josh wrote:If your product ID changes, you probably switched the device already. The usb-storage driver is available and binds again, this time to the SD slot. It is not unlikely that the modem part works at the same time.

Chances are that no serial driver is attached to it. Did you load the usbserial module with the parameters of the switched device? The command is on the USB_ModeSwitch documentation page. For your convenience:

modprobe usbserial vendor=<TargetProdID> product=<TargetVendID>
I have tried the command as the same as MF628+, but the pid is always 2000, it does not change. And i have tried all the methods listed in the forum, but it do not work. so, could you please give me the exact command you use to switch your device? my linux kernel is 2.6.15. by the way, must the usb_storage.ko be insmoded first to switch the device?

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

Post by Josh » 10 Aug 2010, 17:06

Did you try this combination in /etc/usb_modeswitch.d/19d2:2000 ?

Code: Select all

MessageContent="5553424312345678000000000000061e000000000000000000000000000000"
MessageContent2="5553424312345679000000000000061b000000020000000000000000000000"
MessageContent3="55534243123456702000000080000c85010101180101010101000000000000"

NeedResponse=1

Salmon
Posts: 1
Joined: 14 Aug 2010, 12:51

Post by Salmon » 14 Aug 2010, 12:55

Josh wrote:Did you try this combination in /etc/usb_modeswitch.d/19d2:2000 ?

Code: Select all

MessageContent="5553424312345678000000000000061e000000000000000000000000000000"
MessageContent2="5553424312345679000000000000061b000000020000000000000000000000"
MessageContent3="55534243123456702000000080000c85010101180101010101000000000000"

NeedResponse=1
Adding the third message to /etc/usb_modeswitch.d/19d2:2000 solved the problem (for me at least).

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

Post by Josh » 14 Aug 2010, 15:58

The three-message combination will be the default in the next data package release.

Hopefully this will finally work with all ZTE devices ...

Post Reply