Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
dez
Posts: 4
Joined: 20 Aug 2020, 03:45

1&1 ZTE MF710M fails to set up

Post by dez » 20 Aug 2020, 03:56

Hello,

I just tried to set up my ZTE MF710M dongle on my Raspberry Pi but there are some issues. I don't know whether the problems are on my side or if the device isn't supported. At least it's available in usb-modeswitch-data.

Here's the log of when trying to automatically connect:

Code: Select all

USB_ModeSwitch log from Thu Aug 20 03:09:44 CEST 2020

Use global config file: /etc/usb_modeswitch.conf
Raw parameters: {--switch-mode} {1-1.3} 
Use top device dir /sys/bus/usb/devices/1-1.3
Check class of first interface ...
 Interface 0 class is 08.

----------------
USB values from sysfs:
  manufacturer	ZTE,Incorporated
  product	ZTE Mobile Broadband Station
  serial	TLTBANGMF710MB01
----------------
Found packed config collection /usr/share/usb_modeswitch/configPack.tar.gz
ConfigList: /etc/usb_modeswitch.d/19d2:1588 pack/19d2:1588 pack/
SCSI attributes not needed, move on
Check config: /etc/usb_modeswitch.d/19d2:1588
! matched. Read config data
Use config file from override folder /etc/usb_modeswitch.d
Logger is /usr/bin/logger
Device may have an MBIM configuration, check driver ...
 driver for MBIM devices is available
Find MBIM configuration number ...
 No MBIM configuration found, switch to legacy modem mode
Command line:
usb_modeswitch -W -D  -b 1 -g 13 -v 19d2 -p 1588 -f $flags(config)

Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are to be expected in the process)
--------------------------------

Read long config from command line

 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.5.2 (C) Josua Dietze 2017
 * Based on libusb1/libusbx

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x19d2
DefaultProduct= 0x1588
TargetVendor=   0x19d2
TargetProductList="1589,1591,1592"

StandardEject=1
MessageContent="55534243123456702000000080000c85010101180101010101000000000000"
System integration mode enabled

Use given bus/device number: 001/013 ...
Look for default devices ...
 bus/device number matched
  found USB ID 19d2:1588
   vendor ID matched
   product ID matched
 Found devices in default mode (1)
Get the current device configuration ...
Current configuration number is 1
Use interface number 0
 with class 8
Use endpoints 0x01 (out) and 0x81 (in)

USB description data (for identification)
-------------------------
Manufacturer: ZTE,Incorporated
     Product: ZTE Mobile Broadband Station
  Serial No.: TLTBANGMF710MB01
-------------------------
Sending standard EJECT sequence
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 successfully read (13 bytes), status 1
Trying to send message 2 to endpoint 0x01 ...
 OK, message successfully sent
Read the response to message 2 (CSW) ...
 Response successfully read (13 bytes), status 1
Trying to send message 3 to endpoint 0x01 ...
 OK, message successfully sent
Read the response to message 3 (CSW) ...
 Response reading failed (error -1)
 Device is gone, skip any further commands
ok:busdev
--------------------------------
(end of usb_modeswitch output)

Check success of mode switch for max. 20 seconds ...
 Read attributes ...
 All attributes matched
Mode switching was successful, found 19d2:1592 (ZTE,Incorporated: ZTE Mobile Broadband Station)
Check for AVOID_RESET_QUIRK kernel attribute
 AVOID_RESET_QUIRK activated

All done, exit


dmesg

Code: Select all

[ 3482.225609] cdc_ether 1-1.3:1.0 usb0: unregister 'cdc_ether' usb-0000:01:00.0-1.3, ZTE CDC Ethernet Device
[ 3482.270203] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[ 3482.270309] option 1-1.3:1.2: device disconnected
[ 3482.271031] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[ 3482.271132] option 1-1.3:1.3: device disconnected
[ 3482.271843] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[ 3482.271960] option 1-1.3:1.4: device disconnected
[ 3482.272837] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
[ 3482.272962] option 1-1.3:1.5: device disconnected
[ 3493.018962] usb 1-1.3: new high-speed USB device number 17 using xhci_hcd
[ 3493.160169] usb 1-1.3: New USB device found, idVendor=19d2, idProduct=1588, bcdDevice= 0.00
[ 3493.160179] usb 1-1.3: New USB device strings: Mfr=2, Product=3, SerialNumber=5
[ 3493.160185] usb 1-1.3: Product: ZTE Mobile Broadband Station
[ 3493.160192] usb 1-1.3: Manufacturer: ZTE,Incorporated
[ 3493.160197] usb 1-1.3: SerialNumber: TLTBANGMF710MB01
[ 3493.162089] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[ 3493.162319] scsi host0: usb-storage 1-1.3:1.0
[ 3494.002915] usb 1-1.3: USB disconnect, device number 17
[ 3494.809029] usb 1-1.3: new high-speed USB device number 18 using xhci_hcd
[ 3494.940112] usb 1-1.3: New USB device found, idVendor=19d2, idProduct=1592, bcdDevice= 0.00
[ 3494.940132] usb 1-1.3: New USB device strings: Mfr=10, Product=11, SerialNumber=13
[ 3494.940148] usb 1-1.3: Product: ZTE Mobile Broadband Station
[ 3494.940164] usb 1-1.3: Manufacturer: ZTE,Incorporated
[ 3494.940178] usb 1-1.3: SerialNumber: TLTBANGMF710MB01
[ 3494.953850] cdc_ether 1-1.3:1.0 usb0: register 'cdc_ether' at usb-0000:01:00.0-1.3, ZTE CDC Ethernet Device, 26:f3:20:dd:ab:f0
[ 3494.955360] option 1-1.3:1.2: GSM modem (1-port) converter detected
[ 3494.955778] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB0
[ 3494.956602] option 1-1.3:1.3: GSM modem (1-port) converter detected
[ 3494.956948] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB1
[ 3494.957704] option 1-1.3:1.4: GSM modem (1-port) converter detected
[ 3494.958065] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB2
[ 3494.958805] option 1-1.3:1.5: GSM modem (1-port) converter detected
[ 3494.959246] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB3
[ 3494.959938] usb-storage 1-1.3:1.6: USB Mass Storage device detected
[ 3494.962526] scsi host0: usb-storage 1-1.3:1.6
[ 3496.040654] scsi 0:0:0:0: CD-ROM            ZTE      USB SCSI CD-ROM  2.31 PQ: 0 ANSI: 0 CCS
[ 3496.051926] sr 0:0:0:0: [sr0] scsi3-mmc drive: 0x/0x caddy
[ 3496.100915] sr 0:0:0:0: Attached scsi CD-ROM sr0
[ 3496.101450] sr 0:0:0:0: Attached scsi generic sg0 type 5
[ 3496.196212] scsi 0:0:0:1: Direct-Access     ZTE      MMC Storage      2.31 PQ: 0 ANSI: 0 CCS
[ 3496.197459] sd 0:0:0:1: Attached scsi generic sg1 type 0
[ 3496.249976] sd 0:0:0:1: [sda] 0 512-byte logical blocks: (0 B/0 B)
[ 3496.249990] sd 0:0:0:1: [sda] 0-byte physical blocks
[ 3496.251025] sd 0:0:0:1: [sda] Test WP failed, assume Write Enabled
[ 3496.251474] sd 0:0:0:1: [sda] Asking for cache data failed
[ 3496.251488] sd 0:0:0:1: [sda] Assuming drive cache: write through
[ 3496.290516] sd 0:0:0:1: [sda] Attached SCSI removable disk
[ 3496.567095] ISO 9660 Extensions: Microsoft Joliet Level 1
[ 3496.568122] ISOFS: changing to secondary root
lsusb

Code: Select all

Bus 001 Device 018: ID 19d2:1592 ZTE WCDMA Technologies MSM
usb-devices

Code: Select all

T:  Bus=01 Lev=02 Prnt=02 Port=02 Cnt=02 Dev#= 18 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=02(commc) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=19d2 ProdID=1592 Rev=00.00
S:  Manufacturer=ZTE,Incorporated
S:  Product=ZTE Mobile Broadband Station
S:  SerialNumber=TLTBANGMF710MB01
C:  #Ifs= 7 Cfg#= 1 Atr=a0 MxPwr=500mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=02(commc) Sub=06 Prot=00 Driver=cdc_ether
I:  If#=0x1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether
I:  If#=0x2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
I:  If#=0x3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
I:  If#=0x4 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
I:  If#=0x5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
I:  If#=0x6 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
Any help would be very appreciated.

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: 1&1 ZTE MF710M fails to set up

Post by LOM » 20 Aug 2020, 17:31

Nothing wrong, usb_modeswitch has done its job and switched the dongle from 19d2:1588 to 19d2:1592, it is not supposed to do more than that.

The cdc_ether driver has created a usb0 ethernet device which you have to handle like you handle a wired ethernet connection, ie dhcp pull an ip address from it and then make sure the interface is up and running.

dez
Posts: 4
Joined: 20 Aug 2020, 03:45

Re: 1&1 ZTE MF710M fails to set up

Post by dez » 20 Aug 2020, 18:00

Thanks for the reply.

I already looked at that but it has no dhcp ip address assigned.

Code: Select all

usb0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 0a:92:ab:2c:7e:6c  txqueuelen 1000  (Ethernet)
        RX packets 1  bytes 1 (1.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
Also, it lights red which means it's not connected to the internet. I tried it with a Huawei stick which was working fine and was directly assigned an ip address.
In the logs it says:

Code: Select all

Read the response to message 3 (CSW) ...
 Response reading failed (error -1)
 Device is gone, skip any further commands
Might this be an issue?

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: 1&1 ZTE MF710M fails to set up

Post by LOM » 21 Aug 2020, 01:58

The response error is normal for ZTE devices, it did not prevent it from getting switched.
It is possible that the dongles connection to the tower is controlled by a mfgr proprietary AT cmd on one of the serial ports so that you can start/stop the connection. You'll need a users manual or AT cmd manual for the dongle to find out if that is the case.

dez
Posts: 4
Joined: 20 Aug 2020, 03:45

Re: 1&1 ZTE MF710M fails to set up

Post by dez » 21 Aug 2020, 14:40

AT commands seem to hang up with a sim card connected.

After a short period of time screen becomes unresponsive using:

Code: Select all

sudo screen /dev/ttyUSB0
Doesn't happen when there's no sim card connected though.

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

Re: 1&1 ZTE MF710M fails to set up

Post by Josh » 31 Aug 2020, 19:50

You can force a dhcp query on the interface manually.

"dhclient -4 usb0"

dez
Posts: 4
Joined: 20 Aug 2020, 03:45

Re: 1&1 ZTE MF710M fails to set up

Post by dez » 04 Sep 2020, 13:08

Sadly that doesn't help as well.

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

Re: 1&1 ZTE MF710M fails to set up

Post by Josh » 07 Sep 2020, 00:17

Are you using a proper terminal program to issue AT commands?

I'm using "minicom" for this purpose.

Post Reply