Activation Codes and Methods, Hardware Details, Sniffing
Post Reply
Askhat
Posts: 3
Joined: Mon Oct 07, 2019 5:52 am

4G ZTE usb modem MF79 not identified as modem

Post by Askhat » Mon Oct 07, 2019 6:27 am

I am not sure if the problem is with modeswitch, so I would like to apologize in advance.
I am a novice to linux OS

The situation: I have 4G ZTE usb modem MF79, which can be used both as a modem and a wifi hotspot, when I plug it into usb, I can access internet, however in ifconfig

Code: Select all

enpx00a0c6000000: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
inet 192.168.0.183 netmask 255.255.255.0  broadcast 192.168.0.255
in lsusb first:

Code: Select all

Bus 001 Device 043: ID 19d2:1225 ZTE WCDMA Technologies MSM
after a few seconds

Code: Select all

Bus 001 Device 043: ID 19d2:1405 ZTE WCDMA Technologies MSM
The problem, It seems to me as if I am connected to some local network created by modem instead of direct external connection,
My main aim to be able to identify this modem in

Code: Select all

mmcli -L
command. Right now what I see is "No modem found"

dmesg information:

Code: Select all

[255226.092956] usb 1-7: New USB device found, idVendor=19d2, idProduct=1225
[255226.092957] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[255226.092959] usb 1-7: Product: ZTE Mobile Broadband
[255226.092960] usb 1-7: Manufacturer: ZTE,Incorporated
[255226.092961] usb 1-7: SerialNumber: MF79S1ZTED000000
[255226.094277] usb-storage 1-7:1.0: USB Mass Storage device detected
[255226.095069] usb-storage 1-7:1.0: Quirks match for vid 19d2 pid 1225: 1
[255226.095087] scsi host4: usb-storage 1-7:1.0
[255227.112291] scsi 4:0:0:0: CD-ROM            ZTE      USB SCSI CD-ROM  2.31 PQ: 0 ANSI: 2
[255227.168683] sr 4:0:0:0: [sr0] scsi-1 drive
[255227.169027] sr 4:0:0:0: Attached scsi CD-ROM sr0
[255227.169216] sr 4:0:0:0: Attached scsi generic sg1 type 5
[255227.218580] usb 1-7: USB disconnect, device number 42
[255228.103732] usb 1-7: new high-speed USB device number 43 using xhci_hcd
[255228.252986] usb 1-7: New USB device found, idVendor=19d2, idProduct=1405
[255228.252993] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[255228.252998] usb 1-7: Product: ZTE Mobile Broadband
[255228.253002] usb 1-7: Manufacturer: ZTE,Incorporated
[255228.253006] usb 1-7: SerialNumber: MF79S1ZTED000000
[255228.269232] cdc_ether 1-7:1.0 eth0: register 'cdc_ether' at usb-0000:00:14.0-7, ZTE CDC Ethernet Device, 00:a0:c6:00:00:00
[255228.271308] usb-storage 1-7:1.2: USB Mass Storage device detected
[255228.271458] scsi host4: usb-storage 1-7:1.2
[255228.278821] cdc_ether 1-7:1.0 enx00a0c6000000: renamed from eth0
[255228.301698] IPv6: ADDRCONF(NETDEV_UP): enx00a0c6000000: link is not ready
[255229.288437] scsi 4:0:0:0: CD-ROM            ZTE      USB SCSI CD-ROM  2.31 PQ: 0 ANSI: 2
[255229.288778] scsi 4:0:0:1: Direct-Access     ZTE      MMC Storage      2.31 PQ: 0 ANSI: 2
[255229.293419] sr 4:0:0:0: [sr0] scsi-1 drive
[255229.293700] sr 4:0:0:0: Attached scsi CD-ROM sr0
[255229.293855] sr 4:0:0:0: Attached scsi generic sg1 type 5
[255229.295213] sd 4:0:0:1: Attached scsi generic sg2 type 0
[255229.296373] sd 4:0:0:1: [sdb] Attached SCSI removable disk
[255229.380292] sd 4:0:0:1: ioctl_internal_command return code = 8070000
[255229.380299] sd 4:0:0:1: Sense Key : Hardware Error [current]
[255229.380303] sd 4:0:0:1: Add. Sense: No additional sense information
[255229.384466] sr 4:0:0:0: ioctl_internal_command return code = 8070000
[255229.384472] sr 4:0:0:0: Sense Key : Hardware Error [current]
[255229.384476] sr 4:0:0:0: Add. Sense: No additional sense information
[255229.535175] sd 4:0:0:1: ioctl_internal_command return code = 8070000
[255229.535191] sd 4:0:0:1: Sense Key : Hardware Error [current]
[255229.535196] sd 4:0:0:1: Add. Sense: No additional sense information
[255229.944024] sr 4:0:0:0: ioctl_internal_command return code = 8070000
[255229.944030] sr 4:0:0:0: Sense Key : Hardware Error [current]
[255229.944034] sr 4:0:0:0: Add. Sense: No additional sense information
logs in usb_modeswitch.log

Code: Select all

Module loader is /sbin/modprobe
Module is active already
Try to add ID to driver "option"
 ID added to driver; check for new devices in /dev
 driver binding failed
Check for AVOID_RESET_QUIRK kernel attribute
 AVOID_RESET_QUIRK activated

All done, exit

Thanks
Last edited by Askhat on Mon Oct 07, 2019 10:50 am, edited 1 time in total.

LOM
Posts: 1286
Joined: Wed Jul 11, 2012 3:14 pm
Location: Koh Samui, TH

Re: 4G ZTE usb modem MF79 not identified as modem

Post by LOM » Mon Oct 07, 2019 7:35 am

MF79 (19d2:1405) is not a dialup modem, it is a direct ethernet adapter ie a modern Mobile Broadband device for higher speed than a dialup modem can offer.
Ethernet does not have a management protocol so ModemManager can't do anything with the device, everything is handled by NetworkManager.
You will not be able to get a public ip address with a device like this that has a wifi access point built in, the device has to do NAT and hence the address you get on the usb ethernet connection is a private ip from the device LAN where wifi also resides.

Askhat
Posts: 3
Joined: Mon Oct 07, 2019 5:52 am

Re: 4G ZTE usb modem MF79 not identified as modem

Post by Askhat » Mon Oct 07, 2019 10:31 am

LOM wrote:MF79 (19d2:1405) is not a dialup modem, it is a direct ethernet adapter ie a modern Mobile Broadband device for higher speed than a dialup modem can offer.
Ethernet does not have a management protocol so ModemManager can't do anything with the device, everything is handled by NetworkManager.
You will not be able to get a public ip address with a device like this that has a wifi access point built in, the device has to do NAT and hence the address you get on the usb ethernet connection is a private ip from the device LAN where wifi also resides.
I understand the issue now, thank you very much, can I ask if it is possible to get information similar to that provided by mmcli(signal quality, model, brand etc) from nmcli? Or sending AT commands to Mobile Broadband device?

LOM
Posts: 1286
Joined: Wed Jul 11, 2012 3:14 pm
Location: Koh Samui, TH

Re: 4G ZTE usb modem MF79 not identified as modem

Post by LOM » Mon Oct 07, 2019 2:33 pm

There isn't any serial interface in the device so you can not send AT cmds to it, but there is a http server built into it which you can communicate with on the same address as the gateway address, in your case I think it is 192.168.0.1 or maybe 192.168.0.100.
The http server does however not serve web pages so you need to use curl or http wget/wput when communicating with it.
You'll have to dig up the cmds yourself (google) but here are two link to start with:
https://forum.mikrotik.com/viewtopic.php?t=113547
https://www.development-cycle.com/2017/ ... 23-inside/

Askhat
Posts: 3
Joined: Mon Oct 07, 2019 5:52 am

Re: 4G ZTE usb modem MF79 not identified as modem

Post by Askhat » Tue Oct 08, 2019 5:08 am

LOM wrote:There isn't any serial interface in the device so you can not send AT cmds to it, but there is a http server built into it which you can communicate with on the same address as the gateway address, in your case I think it is 192.168.0.1 or maybe 192.168.0.100.
The http server does however not serve web pages so you need to use curl or http wget/wput when communicating with it.
You'll have to dig up the cmds yourself (google) but here are two link to start with:
https://forum.mikrotik.com/viewtopic.php?t=113547
https://www.development-cycle.com/2017/ ... 23-inside/

I see, thank you very much
The links are very helpful

Post Reply