I’m operating several GL-X300B Rounters with built-in cellular modems. In general the routers fit perfect in my solution and they do exactly what they should and the connection seems to be very stable. At some spots a power drop occurs and after the router is back, the modem does not reconnect. When I pass by the location, I can see that the router is up and running and the HTML interface tells me that the cellular connection is fine, but in fact it’s not. If I perform a reboot via the admin interface it seems not to work. If I do a hard reset on the modem via menu, everything is fine again.
But it seems to be, that the topic has been discussed private at some point and not solution was provided in the forum.
Could you please let me know how the problem was solved?
I already wrote a script, which performs a ping and restarts the network service and if this does not work, it reboots the router. But a as a manual restart via the admin interface (as mentioned above) does not work, I doubt it will not be sufficient. If there is no out-of-the-box solution, is there a documentation about how to perform a hard reset of the modem vial SSH / shell so I can help myself?
Something off-topic: Is there in general a documentation about the tools / functions available via SSH?
We've reviewed the topic you mentioned, but it appears to be a different issue.
Regarding your question, would it be possible to connect the router to the Internet and GoodCloud via an alternative method the next time the issue occurs, and share that with us for remote troubleshooting? Technical Support via GoodCloud - GL.iNet Router Docs 4
If you prefer to resolve the issue through your custom script, you can execute AT commands using the following commands (assuming the "hard reset" you mentioned is performed via AT commands):
thank you for your quick response! Unfortunately there is no possibility for an alternative connection as the sites where the routers are placed are somewhere in the middle of a field without any infrastructure or alternative connection.
As I already created a script which checks the connection, it makes sense to enhance the script with the reboot of the modem via AT commands if necessary. I also need to implement something, which checks the vpn connection to my wireguard server so it works in one go.
I stored the log data, which is available in the GUI before rebooting the device. Would it be helpful for you if I provide it to your to analyze the problem in general?
By the way, I’m absolutely new in handling AT commands. Is there a documentation on how to deal with AT commands and a list of supported commands?
Beside from this: Currently my script is pladed in the /usr/bin folder. From what I read in the forum, the script will be deleted with a firmware update. Is there a way to protect the script from beeing removed in case of a firmware update (e.g. different location)?
The logs may not be very helpful since you mentioned that restarting the device didn't resolve the issue.
Of course, please send them anyway so we can investigate further.
In fact I stored the logs before rebooting the device. It was the status how found the router on the site. But I just copy and pasted the text from the GUI. I did not download the files like described below. I hope it is sufficient.