Activation Codes and Methods, Hardware Details, Sniffing
Post Reply
ouatedoeuf
Posts: 1
Joined: Mon Mar 19, 2018 11:47 am

ZTE f160 Raspbian

Post by ouatedoeuf » Mon Mar 19, 2018 12:25 pm

Hello,

I had a nice setup with a Raspberry pi (Raspbian Stretch) running gammu with a zte f160 connected through usb and working as a modem.

I disconnected the USB and now there's no way I can make it work as a modem again.

Code: Select all

user@raspbian:~ $ gammu identify
No response in specified timeout. Probably phone not connected.
I'll try to provide as much information as I can.

dmesg return mentions several devices for vendor 19d2 :

Code: Select all

[ 3683.557774] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[ 3683.691080] usb 1-1.2: New USB device found, idVendor=19d2, idProduct=0083
[ 3683.691103] usb 1-1.2: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[ 3683.691113] usb 1-1.2: Product: ZTE WCDMA Technologies MSM
[ 3683.691125] usb 1-1.2: Manufacturer: ZTE,Incorporated
[ 3683.691135] usb 1-1.2: SerialNumber: 1234567890ABCDEF
[ 3683.694410] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[ 3683.695512] scsi host0: usb-storage 1-1.2:1.0
[ 3684.777334] scsi 0:0:0:0: CD-ROM            ZTE      USB SCSI CD-ROM  2.31 PQ: 0 ANSI: 2
[ 3684.928548] scsi 0:0:0:0: Attached scsi generic sg0 type 5
[ 3685.016156] sr 0:0:0:0: [sr0] scsi-1 drive
[ 3685.016176] cdrom: Uniform CD-ROM driver Revision: 3.20
[ 3685.022765] sr 0:0:0:0: Attached scsi CD-ROM sr0
[ 3686.338691] usb 1-1.2: USB disconnect, device number 4
[ 3686.737867] usb 1-1.2: new high-speed USB device number 5 using dwc_otg
[ 3686.870874] usb 1-1.2: New USB device found, idVendor=19d2, idProduct=0010
[ 3686.870901] usb 1-1.2: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[ 3686.870912] usb 1-1.2: Product: ZTE WCDMA Technologies MSM
[ 3686.870921] usb 1-1.2: Manufacturer: ZTE,Incorporated
[ 3687.111174] usbcore: registered new interface driver usbserial
[ 3687.111318] usbcore: registered new interface driver usbserial_generic
[ 3687.111456] usbserial: USB Serial support registered for generic
[ 3687.137767] usbcore: registered new interface driver option
[ 3687.174666] usbserial: USB Serial support registered for GSM modem (1-port)
[ 3687.175603] option 1-1.2:1.0: GSM modem (1-port) converter detected
[ 3687.198212] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[ 3687.198775] option 1-1.2:1.1: GSM modem (1-port) converter detected
[ 3687.218078] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[ 3687.221641] option 1-1.2:1.2: GSM modem (1-port) converter detected
[ 3687.222487] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2
[ 4374.725061] usb 1-1.2: USB disconnect, device number 5
[ 4374.731067] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[ 4374.731250] option 1-1.2:1.0: device disconnected
[ 4374.739319] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[ 4374.739419] option 1-1.2:1.1: device disconnected
[ 4374.743435] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[ 4374.743556] option 1-1.2:1.2: device disconnected
[ 4378.092633] usb 1-1.2: new high-speed USB device number 6 using dwc_otg
[ 4378.226092] usb 1-1.2: New USB device found, idVendor=19d2, idProduct=0083
[ 4378.226116] usb 1-1.2: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[ 4378.226127] usb 1-1.2: Product: ZTE WCDMA Technologies MSM
[ 4378.226136] usb 1-1.2: Manufacturer: ZTE,Incorporated
[ 4378.226148] usb 1-1.2: SerialNumber: 1234567890ABCDEF
[ 4378.238040] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[ 4378.252728] scsi host0: usb-storage 1-1.2:1.0
[ 4379.274587] scsi 0:0:0:0: CD-ROM            ZTE      USB SCSI CD-ROM  2.31 PQ: 0 ANSI: 2
[ 4379.281487] sr 0:0:0:0: [sr0] scsi-1 drive
[ 4379.289250] sr 0:0:0:0: Attached scsi CD-ROM sr0
[ 4379.289967] sr 0:0:0:0: Attached scsi generic sg0 type 5
[ 4380.100368] usb 1-1.2: USB disconnect, device number 6
[ 4380.402597] usb 1-1.2: new high-speed USB device number 7 using dwc_otg
[ 4380.535700] usb 1-1.2: New USB device found, idVendor=19d2, idProduct=0010
[ 4380.535725] usb 1-1.2: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[ 4380.535736] usb 1-1.2: Product: ZTE WCDMA Technologies MSM
[ 4380.535745] usb 1-1.2: Manufacturer: ZTE,Incorporated
[ 4380.541586] option 1-1.2:1.0: GSM modem (1-port) converter detected
[ 4380.542312] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[ 4380.553969] option 1-1.2:1.1: GSM modem (1-port) converter detected
[ 4380.559607] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[ 4380.560787] option 1-1.2:1.2: GSM modem (1-port) converter detected
[ 4380.561518] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2

So I am not really sure what to look for in usb-modeswitch config files.

I have tried to switch on the debug flag in usb_modeswitch.conf.

Both /var/log/usb_modeswitch_1-1.2 19d2:0083:uPr=WCDMA and sudo nano /var/log/usb_modeswitch_1-1.2 19d2:0010 report to be working so I don't know which is best.

Code: Select all

user@raspbian:~ $ lsusb -vd 19d2:0010

Bus 001 Device 009: ID 19d2:0010 ZTE WCDMA Technologies MSM 
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x19d2 ZTE WCDMA Technologies MSM
  idProduct          0x0010 
  bcdDevice            0.00
  iManufacturer           3 
  iProduct                2 
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          215
    bNumInterfaces          3
    bConfigurationValue     1
    iConfiguration          1 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      ** UNRECOGNIZED:  05 24 00 10 01
      ** UNRECOGNIZED:  04 24 02 02
      ** UNRECOGNIZED:  05 24 01 03 00
      ** UNRECOGNIZED:  05 24 06 00 00
      ** UNRECOGNIZED:  15 24 12 20 01 98 b0 6a 49 b0 9e 48 96 94 46 d9 9a 28 ca 4e 5d
      ** UNRECOGNIZED:  06 24 13 00 01 10
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               5
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      ** UNRECOGNIZED:  05 24 00 10 01
      ** UNRECOGNIZED:  05 24 15 00 01
      ** UNRECOGNIZED:  05 24 06 01 01
      ** UNRECOGNIZED:  15 24 12 20 01 98 b0 6a 49 b0 9e 48 96 94 46 d9 9a 28 ca 4e 5d
      ** UNRECOGNIZED:  06 24 13 00 01 10
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      ** UNRECOGNIZED:  05 24 00 10 01
      ** UNRECOGNIZED:  05 24 15 00 01
      ** UNRECOGNIZED:  05 24 06 02 02
      ** UNRECOGNIZED:  15 24 12 20 01 98 b0 6a 49 b0 9e 48 96 94 46 d9 9a 28 ca 4e 5d
      ** UNRECOGNIZED:  06 24 13 00 01 10
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
user@raspbian:~ $ lsusb -vd 19d2:0083
user@raspbian:~ $ lsusb -vd 19d2:0003

Obviously, I am a bit lost. Any help would be precious and much appreciated.

Josh
Site Admin
Posts: 6534
Joined: Sat Nov 03, 2007 12:30 am

Re: ZTE f160 Raspbian

Post by Josh » Tue Mar 20, 2018 12:34 am

The mode switch is working normally when you re-insert the modem. This part of your log confirms that:

Code: Select all

[ 4379.289250] sr 0:0:0:0: Attached scsi CD-ROM sr0
[ 4379.289967] sr 0:0:0:0: Attached scsi generic sg0 type 5
[ 4380.100368] usb 1-1.2: USB disconnect, device number 6
[ 4380.402597] usb 1-1.2: new high-speed USB device number 7 using dwc_otg
[ 4380.535700] usb 1-1.2: New USB device found, idVendor=19d2, idProduct=0010
If you can't access the modem afterwards, the problem is likely driver-related. Looking for improved host drivers (replacement for dwc_otg) may be a way forward.

Post Reply