Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jul 2020 22:50:03 +0200 (CEST)
From:      Wojciech Puchar <wojtek@puchar.net>
To:        freebsd-hackers@freebsd.org
Subject:   ZTE LTE modem - can it be made to work
Message-ID:  <alpine.BSF.2.20.2007262245090.92566@puchar.net>

next in thread | raw e-mail | index | archive | help
ugen0.4: <ZTE,Incorporated ZTE LTE Technologies MSM> at usbus0, cfg=0 
md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)

   bLength = 0x0012
   bDescriptorType = 0x0001
   bcdUSB = 0x0200
   bDeviceClass = 0x0000  <Probed by interface class>
   bDeviceSubClass = 0x0000
   bDeviceProtocol = 0x0000
   bMaxPacketSize0 = 0x0040
   idVendor = 0x19d2
   idProduct = 0x0166
   bcdDevice = 0x0000
   iManufacturer = 0x0003  <ZTE,Incorporated>
   iProduct = 0x0002  <ZTE LTE Technologies MSM>
   iSerialNumber = 0x0004  <MF821_FFFS111111>
   bNumConfigurations = 0x0001



after pluggin in (u3g driver is loaded) it displays only
ugen0.4: <ZTE,Incorporated ZTE LTE Technologies MSM> at usbus0
umass0 on uhub1
umass0: <ZTE,Incorporated ZTE LTE Technologies MSM, class 0/0, rev 
2.00/0.00, addr 3> on usbus0

then after minute

(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00
(probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(probe0:umass-sim0:0:0:0): Retrying command, 3 more tries remain

after next minute or so

cd1 at umass-sim0 bus 0 scbus2 target 0 lun 0
cd1: <L_T_E USB SCSI CD-ROM USB> Removable CD-ROM SCSI device
cd1: 40.000MB/s transfers
cd1: 44MB (22825 2048 byte sectors)
cd1: quirks=0x10<10_BYTE_ONLY>
da0 at umass-sim0 bus 0 scbus2 target 0 lun 1
da0: <ZTE MMC Storage 2.31> Removable Direct Access SCSI device
da0: 40.000MB/s transfers
da0: Attempt to query device size failed: NOT READY, Medium not present
da0: quirks=0x2<NO_6_BYTE>

and is not switched to modem mode


tried

usb_modeswitch -v 0x19d2  -p 0x0166 -c /usr/local/share/usb_modeswitch/19d2\:0166
Look for target devices ...
  No devices in target mode or class found
Look for default devices ...
  Found devices in default mode (1)
Access device 004 on bus 000
Get the current device configuration ...
Current configuration number is 1
Use interface number 0
  with class 8
Use endpoints 0x01 (out) and 0x81 (in)
Looking for active drivers ...
  OK, driver detached
Set up interface 0
Use endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
  OK, message successfully sent
Read the response to message 1 (CSW) ...
  Response reading failed (error -9)
  Device is gone, skip any further commands
-> Run lsusb to note any changes. Bye!

it is detached and reattach instantly

Jul 26 22:49:02 laptop kernel: ugen0.4: <ZTE,Incorporated ZTE LTE 
Technologies MSM> at usbus0
Jul 26 22:49:02 laptop kernel: umass0 on uhub1
Jul 26 22:49:02 laptop kernel: umass0: <ZTE,Incorporated ZTE LTE 
Technologies MSM, class 0/0, rev 2.00/0.00, addr 5> on usbus0
Jul 26 22:49:03 laptop kernel: cd1 at umass-sim0 bus 0 scbus2 target 0 lun 
0
Jul 26 22:49:03 laptop kernel: cd1: <L_T_E USB SCSI CD-ROM USB> Removable 
CD-ROM SCSI device
Jul 26 22:49:03 laptop kernel: cd1: 40.000MB/s transfers
Jul 26 22:49:03 laptop kernel: cd1: Attempt to query device size failed: 
NOT READY, Medium not present
Jul 26 22:49:03 laptop kernel: cd1: quirks=0x10<10_BYTE_ONLY>
Jul 26 22:49:03 laptop kernel: da0 at umass-sim0 bus 0 scbus2 target 0 lun 
1
Jul 26 22:49:03 laptop kernel: da0: <ZTE MMC Storage 2.31> Removable 
Direct Access SCSI device
Jul 26 22:49:03 laptop kernel: da0: 40.000MB/s transfers
Jul 26 22:49:03 laptop kernel: da0: Attempt to query device size failed: 
NOT READY, Medium not present
Jul 26 22:49:03 laptop kernel: da0: quirks=0x2<NO_6_BYTE>


still as mass storage. not modem.

any ideas?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.2007262245090.92566>