This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

problem with 4g modem
#41
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.
Reply
#42
Logging does not affect how the script works. Try checking the signal quality periodically, maybe the modem loses connection: https://forum.logicmachine.net/showthrea...2#pid34692

You can modify the logging part to skip timeout errors:
Code:
local res, err, cmd, pos, sms

  res, err = self:read()
  if err ~= 'timeout` then
    log(res, err)
  end
Reply
#43
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.

Attached Files Thumbnail(s)
   
Reply
#44
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.
Reply


Forum Jump: