Hi,
I tried using a ZTE High speed CDMA modem. (ZTE AC8710 vendor=0x19d2 product=0xfff1) in an embedded device running 2.6.22 kernel.
But it always gets detected as mass storage device and the product id comes as 0xfff6
I've got this modem working on Fedora core 10 using the manufacturer driver but I want the usb_modeswitch module to work for this so that we can use this modem anywhere. Moreover the manufacture has made it work in a proprietary way and has not provided the source code fully. Especially the mode switching routine they have not given the source code.
DUMP from EMBEDDED DEVICE
------------------------------------------
usb 2-1: new full speed USB device using tangox-ohci-hcd and address 4
usb 2-1: configuration #1 chosen from 1 choice
scsi3 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
scsi 3:0:0:0: CD-ROM ZTE USB Storage FFF1 2.31 PQ: 0 ANSI: 2
sr0: scsi-1 drive
sr 3:0:0:0: Attached scsi CD-ROM sr0
sr 3:0:0:0: Attached scsi generic sg0 type 5
usb-storage: device scan complete
lsusb:
Bus 002 Device 004: ID 19d2:fff6
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
I cross compiled usb_modeswitch but it doesn't work. If you can help me out or give me some more pointer to try out.
I works in my fedora core 10 system using a binary mode ztemtvcdromd . The driver URL is
http://www.ztemt.com.cn/ennewzte/service/ziliao.action
Here you can download the linux driver and modify the generic.c in kernel module from 0xffff to 0xfff11
This daemon just inserts some udev rules by which the device gets changed from 0xfff6 to 0xfff1 which is the real modem.
After that connecting is very easy as its just a usbserial driver work.
The system where it works I've got the udevmonitor dump. I just need to know how to add commands by which it would come to the correct mode.
Any other info is required please let me know.
Thanks in advance.
WORKING DUMP FROM FEDORA CORE 10 PC
----------------------------------------------------------
usb 8-1: new full speed USB device using uhci_hcd and address 4
usb 8-1: configuration #1 chosen from 1 choice
scsi5 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
usb 8-1: New USB device found, idVendor=19d2, idProduct=fff6
usb 8-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 8-1: Product: USB Storage
usb 8-1: Manufacturer: ZTE, Incorporated
usb 8-1: SerialNumber: 000000000002
usb-storage: device scan complete
scsi 5:0:0:0: CD-ROM ZTE USB Storage FFF1 2.31 PQ: 0 ANSI: 2
sr1: scsi-1 drive
sr 5:0:0:0: Attached scsi CD-ROM sr1
sr 5:0:0:0: Attached scsi generic sg2 type 5
usb 8-1: USB disconnect, address 4
usb 8-1: new full speed USB device using uhci_hcd and address 5
usb 8-1: configuration #1 chosen from 1 choice
usbserial_generic 8-1:1.0: generic converter detected
usb 8-1: generic converter now attached to ttyUSB0
usbserial_generic 8-1:1.1: generic converter detected
usb 8-1: generic converter now attached to ttyUSB1
usbserial_generic 8-1:1.2: generic converter detected
usb 8-1: generic converter now attached to ttyUSB2
usbserial_generic 8-1:1.3: generic converter detected
usb 8-1: generic converter now attached to ttyUSB3
usbserial_generic 8-1:1.4: generic converter detected
usb 8-1: generic converter now attached to ttyUSB4
usb 8-1: New USB device found, idVendor=19d2, idProduct=fff1
usb 8-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 8-1: Product: ZTE CDMA Tech
usb 8-1: Manufacturer: ZTE, Incorporated
lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 005: ID 19d2:fff1 ONDA Communication S.p.A.
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[root@akhilesh ~]#
udevmonitor
udevmonitor will print the received events for:
UDEV the event which udev sends out after rule processing
UEVENT the kernel uevent
UEVENT[1239977929.900549] add /devices/pci0000:00/0000:00:
1d.2/usb8/8-1 (usb)
UEVENT[1239977929.903236] add /devices/pci0000:00/0000:00:1d.2/usb8/8-1/8-1:1.0 (usb)
[edited for readability, Josh]
UDEV [1239977937.211584] add /devices/pci0000:00/0000:00:1d.2/usb8/8-1/8-1:1.1/usb_endpoint/usbdev8.3_ep04 (usb_endpoint)
UDEV [1239977937.211736] add /devices/pci0000:00/0000:00:1d.2/usb8/8-1/8-1:1.4/usb_endpoint/usbdev8.3_ep06 (usb_endpoint)
UDEV [1239977937.213554] add /devices/pci0000:00/0000:00:1d.2/usb8/8-1/usb_endpoint/usbdev8.3_ep00 (usb_endpoint)
Regards,
Akhilesh