I was wondering if I could get some help with my GL-MT300N-V2 mini router. I use easy tether with a pixel 3a, and I’ve been searching on how to reset usb/network via script.
My issue is that when I connect my pixel 3a to the mini router it will work for a while then the internet will disconnect and webpages/videos wont load anymore after some time. The wifi connection is still there but no active internet connection. I have to reconnect the usb cable back from the phone to work again or log into the webgui and restart the tap-easytether WAN. I came across a couple guides on how to set it up but not sure if mine is working correctly because I get an error.
I’m using the following script I found from this post but modified it for the GL-MT300N-V2, but it doesn’t seem to be working because I get this error about the interface being used at hotplug. Any help would be appreciated.
Hi! I read on the internet and found two very old solutions (2012 on the XDA forum) 1.Modem can stop when the device goes to sleep (turn off the display) - solution: in Options turn on “Always on Display on charge” . 2.Enabled adb settings breaks the connection - solution: disable adb (possible in Developer options / Enabled USB debugging mode). If possible, check it.
I tested on my router with external usb card:
root@GL-MT300N-V2:~# logread -f
echo 0 > /sys/class/gpio/usb/value
Sun Nov 7 19:54:51 2021 daemon.notice netifd: Network device ‘eth1’ link is down
Sun Nov 7 19:54:51 2021 daemon.notice netifd: Interface ‘tethering’ has link connectivity loss
Sun Nov 7 19:54:51 2021 daemon.notice netifd: tethering (7811): udhcpc: SIOCGIFINDEX: No such device
Sun Nov 7 19:54:51 2021 daemon.notice netifd: tethering (7811): udhcpc: received SIGTERM
Sun Nov 7 19:54:51 2021 daemon.notice netifd: Interface ‘tethering’ is now down
Sun Nov 7 19:54:52 2021 daemon.notice netifd: Interface ‘tethering’ is disabled
Sun Nov 7 19:54:52 2021 daemon.warn dnsmasq[2161]: no servers found in /tmp/resolv.conf.auto, will retry
Sun Nov 7 19:55:22 2021 daemon.notice netifd: Interface ‘tethering’ is enabled
Sun Nov 7 19:55:25 2021 daemon.notice netifd: Network device ‘eth1’ link is up
Sun Nov 7 19:55:25 2021 daemon.notice netifd: Interface ‘tethering’ has link connectivity
Sun Nov 7 19:55:25 2021 daemon.notice netifd: Interface ‘tethering’ is setting up now
Sun Nov 7 19:55:26 2021 daemon.notice netifd: tethering (10586): udhcpc: started, v1.30.1
Sun Nov 7 19:55:26 2021 daemon.notice netifd: tethering (10586): udhcpc: sending discover
Sun Nov 7 19:55:26 2021 daemon.notice netifd: tethering (10586): udhcpc: sending select for 192.168.1.48
Sun Nov 7 19:55:26 2021 daemon.notice netifd: tethering (10586): udhcpc: lease of 192.168.1.48 obtained, lease time 25200
Sun Nov 7 19:55:26 2021 daemon.notice netifd: Interface ‘tethering’ is now up
Sun Nov 7 19:55:26 2021 daemon.info dnsmasq[2161]: reading /tmp/resolv.conf.auto
Sun Nov 7 19:55:26 2021 daemon.info dnsmasq[2161]: using local addresses only for domain test
Sun Nov 7 19:55:26 2021 daemon.info dnsmasq[2161]: using local addresses only for domain onion
Sun Nov 7 19:55:26 2021 daemon.info dnsmasq[2161]: using local addresses only for domain localhost
Sun Nov 7 19:55:26 2021 daemon.info dnsmasq[2161]: using local addresses only for domain local
Sun Nov 7 19:55:26 2021 daemon.info dnsmasq[2161]: using local addresses only for domain invalid
Sun Nov 7 19:55:26 2021 daemon.info dnsmasq[2161]: using local addresses only for domain bind
Sun Nov 7 19:55:26 2021 daemon.info dnsmasq[2161]: using local addresses only for domain lan
Sun Nov 7 19:55:26 2021 daemon.info dnsmasq[2161]: using nameserver 8.8.4.4#53
Sun Nov 7 19:55:30 2021 user.info mwan3rtmon[2100]: Detect rtchange event.
Sun Nov 7 19:55:31 2021 user.notice firewall: Reloading firewall due to ifup of tethering (eth1)
Hi, I got some basic knowledge of command lines, but not a whole lot. What would i type in putty to check the usb state? When i copied the cat line you posted i got a value of 1.