USB Tether from GL-MT300N-V2 to MF910Z

I’ve had issues getting the Mango GL-MT300N to detect the Telstra 4gx model MF910Z via USB for tethering. wondering if anyone else got this working?
Tried a few different cables.
See this in dmesg when I connect cable

[ 4215.730904] usb 1-1: new high-speed USB device number 3 using ehci-platform
[ 4215.947572] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 4215.969861] usb-storage 1-1:1.0: Quirks match for vid 19d2 pid 1225: 1
[ 4215.976727] scsi host0: usb-storage 1-1:1.0
[ 4216.058463] usb 1-1: USB disconnect, device number 3

Tried

usbmode -s

Followed by a reboot. No joy :smiling_face_with_tear:
Any suggestions?

The Telstra is being detected as a USB storage device. Like various other LTE and Wifi USB devices, there may be Windows drivers pre-loaded in a partition that appears as a CD for ease of installation.

You should check that the usb-modeswitch package is installed on your GL-MT300N. If it is already installed, then the Telstra 4gx vendor ID and product ID may not be in its configuration for detection.

Look up the vendor ID and product ID by running lsusb in SSH.

EDIT:
The dmesg log shows the vendor ID is 19d2 and product ID is 1225

I do not work for and I am not directly associated with GL.iNet

Thanks wcs2228

yeah i saw the vendor id and product id in dmesg

usb_modeswitch is installed

root@GL-MT300N-V2:~# opkg list | grep usb
kmod-usb-acm - 4.14.241-1
kmod-usb-core - 4.14.241-1
kmod-usb-ehci - 4.14.241-1
kmod-usb-net - 4.14.241-1
kmod-usb-net-cdc-ether - 4.14.241-1
kmod-usb-net-cdc-ncm - 4.14.241-1
kmod-usb-net-huawei-cdc-ncm - 4.14.241-1
kmod-usb-net-ipheth - 4.14.241-1
kmod-usb-net-qmi-wwan - 4.14.241-1
kmod-usb-net-rndis - 4.14.241-1
kmod-usb-net-sierrawireless - 4.14.241-1
kmod-usb-ohci - 4.14.241-1
kmod-usb-serial - 4.14.241-1
kmod-usb-serial-cp210x - 4.14.241-1
kmod-usb-serial-option - 4.14.241-1
kmod-usb-serial-sierrawireless - 4.14.241-1
kmod-usb-serial-wwan - 4.14.241-1
kmod-usb-storage - 4.14.241-1
kmod-usb-storage-uas - 4.14.241-1
kmod-usb-uhci - 4.14.241-1
kmod-usb-wdm - 4.14.241-1
kmod-usb2 - 4.14.241-1
libusb-1.0-0 - 1.0.22-2
libusbmuxd - 2.0.2-1
usb-modeswitch - 2017-12-19-f40f84c2-2
usbmuxd - 1.1.1-1
usbutils - 007-10

And device is already in config

grep -A 7 "19d2:1225" /etc/usb-mode.json
                "19d2:1225": {
                        "*": {
                                "t_vendor": 6610,
                                "t_product": [ 5125 ],
                                "mode": "StandardEject",
                                "msg": [  ]
                        }
                },

So the usb device registers and unregisters straight away. Never see it in lede or mango interface as a tether device nor have i been quick enough to see usb0 other than rumours of it in dmesg
Wonder if this is related to the ZTE bug mentioned here

Obviously different product id but maybe affects multiple zte devices

When I plug in a Wifi USB adapter with a driver partition into my GL-AR300M16, the USB storage device first gets detected, then it gets disconnected, then the wifi adapter gets properly detected:

[ 2769.189507] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 2769.393590] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 2769.419588] scsi host0: usb-storage 1-1:1.0
[ 2770.067562] usb 1-1: USB disconnect, device number 2
[ 2771.069575] usb 1-1: new high-speed USB device number 3 using ehci-platform
[ 2771.459559] usb 1-1: reset high-speed USB device number 3 using ehci-platform
[ 2771.672155] mt76x2u 1-1:1.0: ASIC revision: 76120044
[ 2771.772458] mt76x2u 1-1:1.0: ROM patch build: 20141115060606a
[ 2772.154289] mt76x2u 1-1:1.0: Firmware Version: 0.0.00
[ 2772.159600] mt76x2u 1-1:1.0: Build: 1
[ 2772.163380] mt76x2u 1-1:1.0: Build Time: 201507311614____
[ 2773.646191] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'

I think usb-modeswitch may be working in your case, but then the tethering device may not be detected. Maybe a driver is missing.

Can you post the output from:

lsusb

lsusb -t

Interesting theory.

root@GL-MT300N-V2:~# lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
root@GL-MT300N-V2:~# lsusb
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

This is pointing back towards an issue with the device switching from a storage device to an Ethernet device
https://kristrev.github.io/2016/07/21/making-the-zte-mf910-play-nice

tried disabling usb

cat /etc/modprobe.d/disableusb.conf
install usb_storage /bin/true

rebooted devices - no joy
Decided to put my cowboy hat on and

root@GL-MT300N-V2:~# opkg remove kmod-usb-storage kmod-usb-storage-uas

Rebooted devices.
maybe a small step forward. Now it actually attempts to register device 3 but errors out.
Possibly should have used a smaller hammer :grin:

[  389.872413] usb 1-1: new high-speed USB device number 2 using ehci-platform
[  390.089140] usb-storage 1-1:1.0: USB Mass Storage device detected
[  390.112793] usb-storage 1-1:1.0: Quirks match for vid 19d2 pid 1225: 1
[  390.119814] scsi host0: usb-storage 1-1:1.0
[  395.580800] usb 1-1: USB disconnect, device number 2
[  396.003368] usb 1-1: new high-speed USB device number 3 using ehci-platform
[  396.245082] usb 1-1: device descriptor read/all, error -71

No change to lsusb results

My router has the MediaTek mt76x2U package installed and lsusb shows the device properly detected on Port 1, Device 3: