![]() |
problem with 4g modem - Printable Version +- LogicMachine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Hardware (https://forum.logicmachine.net/forumdisplay.php?fid=12) +--- Thread: problem with 4g modem (/showthread.php?tid=3839) |
RE: problem with 4g modem - EjvindHald - 29.09.2025 I have been trying it over the weekend, and it is only working now and then. Sometimes I can leave it for 1 hour, and then it can process a single new message - sometimes a few messages. If I enable the log writing, then it usually works, but that is not a long term solution. This morning I got a reply after 7 minutes on a read request. This happens sometimes - sometimes no reply at all. Hope you have some good ideas. The hardware is LM5p2-RIO3LTE. RE: problem with 4g modem - admin - 29.09.2025 Logging does not affect how the script works. Try checking the signal quality periodically, maybe the modem loses connection: https://forum.logicmachine.net/showthread.php?tid=5369&pid=34692#pid34692 You can modify the logging part to skip timeout errors: Code: local res, err, cmd, pos, sms RE: problem with 4g modem - EjvindHald - 29.09.2025 Here is the signal strength, which I things looks good. My antenna is located quite high which explains the good signal quality. The change in the logging to filter out timeout is actually very good. When I send a SMS request with no response, there is no activity in neither Logs nor Alerts tab. However, if I do a LM reboot it picks up the previous message and does a proper respond. If you can't figure it out, I will live with it. After all, the sendsms function is by far the most important, and that works flawlessly. RE: problem with 4g modem - admin - 01.10.2025 Signal quality is good. Looks like the issue is in the modem and/or SIM card. When LM boots the modem is power cycled. When the script starts it deletes all previously received SMS messages. If you say that sent messages are processed after a reboot it means that these messages weren't received previously otherwise they would have been deleted. |