Logic Machine Forum
4G internal modem some questions - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: 4G internal modem some questions (/showthread.php?tid=4021)



4G internal modem some questions - AlexLV - 26.04.2022

Hi,

I have LM with 4G integrated modem. Site is remote enough from tower, and even 3G sometimes not working good. Optical network is not ready for now. 

So some questions regarding modem:

1. Is possible measure periodically modem network signal/status?? modem AT command +CSQ. Is it supported? If yes, how implement it in modem library for periodical check signal level?

2. Is it possible check LAN status by ping usage, not over LAN port but from modem (over provider APN)?
3. If I want to check site parameters, could I send to site as example SMS "Status" and receive back some group statements?

Any advice's will be very useful.

BR,

Alexander


RE: 4G internal modem some questions - Dré - 27.04.2022

Maybe this can help you?

Automatic Ethernet connection checking and informing in case of troubles ?

you can sent it to yourself like every week.


RE: 4G internal modem some questions - admin - 28.04.2022

Modem supports AT commands, the serial port is either /dev/ttyACM3 or /dev/ttyUSB2 depending on the hardware model.

SMS script can be modified to periodically read signal quality via the CSQ command. It also supports reading and writing objects via messages like "R 1/1/1" and "W 1/1/2 100". This script can be modified with custom commands as needed.

If you want to ping an external IP address it depends whether you have a gateway set for the Ethernet connection. If not then the ping will go over wireless if it's connected.


RE: 4G internal modem some questions - AlexLV - 28.04.2022

Thank you for useful information!!!