Activation Codes and Methods, Hardware Details, Sniffing
Post Reply
discostu
Posts: 3
Joined: 18 Apr 2016, 11:41

ZTE device detection/configuration problem

Post by discostu » 19 Apr 2016, 11:27

Hello

In summary, I have tried following various how to's on getting the Raspberry Pi to establish a 3g connection using a USB modem, but am having difficulty trying to configure the USB modem. The system appears to be detecting the dongle as a USB device storage device, which is then switched into 3g modem mode. From this post http://www.draisberghof.de/usb_modeswit ... f=3&t=2427, I gather that because the manufacturer/product combination is not known to the usb_modeswitch, the usb_modeswitch isn't being invoked, but I'm not certain as to whether this is necessary since the device has already been switched into modem operation.

The issue I believe I have is that after the switch to modem mode, there is no subsequent assignment of a serial port to the modem (e.g. ttyUSB0). Consequently, Sakis3g/wvdial etc. have no means of conveying connection details to the modem (as far as I can tell). Am I missing something obvious?


My system is as follows:

Host device Rasberry Pi 2
OS Rasbian (Wheezy)

USB Modem:
USB 3G Dongle ZTE K4203 (Vendor ID:0x19d2)

I have installed the usb_modeswich utility/database


dmesg indicates mode-switching from 1046->1048, but no subsequent attachment to a tty serial port (as noted in other examples)
  • [ 2.376426] hid-generic 0003:413C:2105.0001: input,hidraw0: USB HID v1.10 Keyboard [Dell Dell USB Keyboard] on usb-3f980000.usb-1.2/input0
    [ 2.823639] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
    [ 4.796198] EXT4-fs (mmcblk0p6): re-mounted. Opts: (null)
    [ 5.076033] EXT4-fs (mmcblk0p6): re-mounted. Opts: (null)
    [ 5.790484] random: nonblocking pool is initialized
    [ 9.385941] usb 1-1.5: new high-speed USB device number 5 using dwc_otg
    [ 9.492020] usb 1-1.5: unable to read config index 2 descriptor/start: -32
    [ 9.492059] usb 1-1.5: chopping to 2 config(s)
    [ 9.494792] usb 1-1.5: New USB device found, idVendor=19d2, idProduct=1046
    [ 9.494854] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=4
    [ 9.494877] usb 1-1.5: Product: ZTE Mobile Broadband Station
    [ 9.496515] usb 1-1.5: can't set config #1, error -71
    [ 9.665275] usb 1-1.5: USB disconnect, device number 5
    [ 9.905925] usb 1-1.5: new high-speed USB device number 6 using dwc_otg
    [ 10.007359] usb 1-1.5: New USB device found, idVendor=19d2, idProduct=1048
    [ 10.007373] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [ 10.007383] usb 1-1.5: Product: ZTE Mobile Broadband Station
    [ 10.007392] usb 1-1.5: Manufacturer: Vodafone(ZTE)
    [ 10.007401] usb 1-1.5: SerialNumber: MF730MZTED000000
    [ 10.011487] usb-storage 1-1.5:1.2: USB Mass Storage device detected
    [ 10.012027] scsi host0: usb-storage 1-1.5:1.2
    [ 10.051225] cdc_ether 1-1.5:1.0 usb0: register 'cdc_ether' at usb-3f980000.usb-1.5, CDC Ethernet Device, 02:0c:e7:0b:01:02
    [ 10.051548] usbcore: registered new interface driver cdc_ether
    [ 10.185306] cdc_ether 1-1.5:1.0 usb0: kevent 11 may have been dropped
    [ 10.431454] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
    [ 11.007220] scsi 0:0:0:0: CD-ROM Vodafone CD-ROM 2.31 PQ: 0 ANSI: 2
    [ 11.016314] scsi 0:0:0:1: Direct-Access Vodafone Storage 2.31 PQ: 0 ANSI: 2
    [ 11.029954] sd 0:0:0:1: [sda] Attached SCSI removable disk
    [ 11.043182] sr 0:0:0:0: [sr0] scsi-1 drive
    [ 11.043228] cdrom: Uniform CD-ROM driver Revision: 3.20
    [ 11.047032] sr 0:0:0:0: Attached scsi CD-ROM sr0
    [ 11.058670] sr 0:0:0:0: Attached scsi generic sg0 type 5
    [ 11.058973] sd 0:0:0:1: Attached scsi generic sg1 type 0
    [ 12.381131] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1
    [ 13.767098] Adding 102396k swap on /var/swap. Priority:-1 extents:1 across:102396k SSFS
Any help gratefully received.

David

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

Re: ZTE device detection/configuration problem

Post by Josh » 19 Apr 2016, 12:44

Have a look at this thread, it might help:

http://www.draisberghof.de/usb_modeswit ... f=3&t=2427

discostu
Posts: 3
Joined: 18 Apr 2016, 11:41

Re: ZTE device detection/configuration problem

Post by discostu » 19 Apr 2016, 13:19

Thanks Josh-that's actually the post I referenced in my initial question, but I'll have another read of it...

My understanding is that I need to get the device to present an interface that includes a serial port that the OS can assign a port to. Would I be right in thinking that this is actually what is achieved by using usb_modeswitch to switch to a particular product ID/MessageContent string? In which case, the trick is finding what those 'magic' details are for the device in question...

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

Re: ZTE device detection/configuration problem

Post by Josh » 19 Apr 2016, 21:55

The point that the linked thread makes is pretty clear: there is no serial port available in this modem.

The mode-switching can only bring up what the manufacturer has built in - in this case an ethernet port. The different mode from Windows 8 mentioned in the thread provides an RNDIS port, which is also no serial port.

Post Reply