OpenWrt Forum Archive

Topic: Need help with ZTE MF710M USB 3G Modem

The content of this topic has been archived on 27 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

hello all,
hope I have posted in the right place.My device is Xiaomi miwifi mini and I am running a custom built OpenWRT chaos calmer image built using the build tools available in git repo.
I have a ZTE MF710M USB modem
Output of 'lsusb'
Bus 001 Device 003: ID 19d2:1595 ZTE WCDMA Technologies MSM
it doesnt do modswitching automatically and I have this new usbmode instead of usb_modswitch.
So I installed sdparm and Issued sdparm --command="eject" /dev/sr0 (Also tried using sg0 and got the same output)
here is the output after that
/dev/sr0: HSPA      USB SCSI CD-ROM   2.31  [cd/dvd]
[ 1386.540000] usb 1-1: USB disconnect, device number 3
root@OpenWrt:/# [ 1387.350000] usb 1-1: new high-speed USB device number 4 using ehci-platform
[ 1387.500000] cdc_ether 1-1:1.0 usb0: register 'cdc_ether' at usb-101c0000.ehci-1, CDC Ethernet Device, 02:00:ff:aa:aa:aa
[ 1387.530000] option 1-1:1.2: GSM modem (1-port) converter detected
[ 1387.530000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 1387.540000] option 1-1:1.3: GSM modem (1-port) converter detected
[ 1387.550000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 1387.560000] option 1-1:1.4: GSM modem (1-port) converter detected
[ 1387.560000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[ 1387.570000] option 1-1:1.5: GSM modem (1-port) converter detected
[ 1387.580000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
[ 1387.600000] usb-storage 1-1:1.6: USB Mass Storage device detected
[ 1387.600000] scsi host6: usb-storage 1-1:1.6
[ 1388.610000] scsi 6:0:0:0: CD-ROM            HSPA     USB SCSI CD-ROM  2.31 PQ: 0 ANSI: 0 CCS
[ 1388.630000] sr 6:0:0:0: [sr0] scsi3-mmc drive: 0x/0x caddy
[ 1388.630000] sr 6:0:0:0: Attached scsi generic sg0 type 5
[ 1388.640000] scsi 6:0:0:1: Direct-Access     HSPA     MMC Storage      2.31 PQ: 0 ANSI: 0 CCS
[ 1388.650000] sd 6:0:0:1: Attached scsi generic sg1 type 0
[ 1388.680000] sd 6:0:0:1: [sda] Attached SCSI removable disk
Now 'lsusb' says
Bus 001 Device 004: ID 19d2:1592 ZTE WCDMA Technologies MSM
Then I switched to luci and added a new interface for 3G with /dev/ttyUSB0 and apn and dialing number ( *99#). This worked for me on a Huawei Modem ( lsusb  Bus 002 Device 004: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem)
But here,it doesnt work at all. I googled around and some said such modems register usb ethernet drivers so it should be accessed by assigning ip addresses and then wget/curl commands such as
curl --header "Referer: url=http://192.168.0.1/index.html" http://192.168.0.1/index.html\" http://192.168.0.1/goform
/goform_set_cmd_process?goformId=CONNECT_NETWORK
(from archwiki ZTE MF823) but that didnt do anything either.
So, how do I get it working?
Thanks in advance

hrshovon wrote:

[ 1386.540000] usb 1-1: USB disconnect, device number 3
root@OpenWrt:/# [ 1387.350000] usb 1-1: new high-speed USB device number 4 using ehci-platform
[ 1387.500000] cdc_ether 1-1:1.0 usb0: register 'cdc_ether' at usb-101c0000.ehci-1, CDC Ethernet Device, 02:00:ff:aa:aa:aa
[ 1387.530000] option 1-1:1.2: GSM modem (1-port) converter detected
[ 1387.530000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 1387.540000] option 1-1:1.3: GSM modem (1-port) converter detected
[ 1387.550000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 1387.560000] option 1-1:1.4: GSM modem (1-port) converter detected
[ 1387.560000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[ 1387.570000] option 1-1:1.5: GSM modem (1-port) converter detected
[ 1387.580000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3

Install these packages
usb-modeswitch kmod-usb-net-rndis kmod-usb-net-cdc-ether kmod-usb-net
Its CDC USB Ethernet as you can see in log CDC Ethernet Device, 02:00:ff:aa:aa:aa
you have to create a new wan connection in luci, in physical settings select your new CDC interface, probably as eth2
Done!

Looper wrote:
hrshovon wrote:

[ 1386.540000] usb 1-1: USB disconnect, device number 3
root@OpenWrt:/# [ 1387.350000] usb 1-1: new high-speed USB device number 4 using ehci-platform
[ 1387.500000] cdc_ether 1-1:1.0 usb0: register 'cdc_ether' at usb-101c0000.ehci-1, CDC Ethernet Device, 02:00:ff:aa:aa:aa
[ 1387.530000] option 1-1:1.2: GSM modem (1-port) converter detected
[ 1387.530000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 1387.540000] option 1-1:1.3: GSM modem (1-port) converter detected
[ 1387.550000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 1387.560000] option 1-1:1.4: GSM modem (1-port) converter detected
[ 1387.560000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[ 1387.570000] option 1-1:1.5: GSM modem (1-port) converter detected
[ 1387.580000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3

Install these packages
usb-modeswitch kmod-usb-net-rndis kmod-usb-net-cdc-ether kmod-usb-net
Its CDC USB Ethernet as you can see in log CDC Ethernet Device, 02:00:ff:aa:aa:aa
you have to create a new wan connection in luci, in physical settings select your new CDC interface, probably as eth2
Done!

Thanks for replying!
All these packages are installed already.
I just managed to get it working smile Had to enter AT+CFUN=0 and then AT+CFUN=1 to activate the radio

Hi can someone tell me how they got this working

did you use the
curl --header "Referer: url=http://192.168.0.1/index.html" http://192.168.0.1/index.html\" http://192.168.0.1/goform
/goform_set_cmd_process?goformId=CONNECT_NETWORK

line?

Thank you
Dan

The discussion might have continued from here.