01.07.2024, 09:01
Post what you have in System config > Status > System log.
problem with 4g modem
|
01.07.2024, 09:01
Post what you have in System config > Status > System log.
01.07.2024, 09:34
What LM hardware model are you using?
01.07.2024, 09:46
LM5p2-RIO3LTE
LM5M3CV15xA23010267
01.07.2024, 09:48
Do you have 3G/4G connection enabled? If it's disabled then the on-board modem won't be initialized.
01.07.2024, 10:19
It was disabled. When we try to enable it the LM stops responding.
01.07.2024, 10:22
This most likely caused by LM using mobile connection gateway instead of Ethernet.
Follow this guide if you only need SMS without 3G/4G: https://forum.logicmachine.net/showthrea...7#pid33127
01.07.2024, 12:05
It worked. Thanks!
I still have a strange situation. In the alert I still get "SMS handler lost connection" but the SMS are getting through. I only happens with a card from one provider. Using a card from a different provider it doesn't happen.
01.07.2024, 12:22
Modify AT:run() function in the user library as follows and post what you get in LM Logs tab.
Code: 12345678910111213141516171819202122232425262728293031323334353637383940414243 function AT:run()
local res, err, cmd, pos, sms
res, err = self:read()
if err then
if err ~= 'timeout' then
log('run error', err)
end
return err == 'timeout'
end
-- check for incoming command
if res:sub(1, 1) ~= '+' then
return true
end
pos = res:find(':', 1, true)
if not pos then
return true
end
-- get command type
cmd = res:sub(2, pos - 1)
-- check only for incoming sms
if cmd ~= 'CMTI' then
log('run cmd', cmd)
return
end
-- read from sim
sms = self:incsms(res)
-- sms seems to be valid, pass to handler if specified
if sms and self.smshandler then
self.smshandler(sms)
end
return true
end
01.07.2024, 14:08
Change the same function as follows and see if it helps.
Code: 1234567891011121314151617181920212223242526272829303132333435 function AT:run()
local res, err, cmd, pos, sms
res, err = self:read()
if err then
return err == 'timeout'
end
-- check for incoming command
if res:sub(1, 1) ~= '+' then
return true
end
pos = res:find(':', 1, true)
if not pos then
return true
end
-- get command type
cmd = res:sub(2, pos - 1)
-- check only for incoming sms
if cmd == 'CMTI' then
-- read from sim
sms = self:incsms(res)
-- sms seems to be valid, pass to handler if specified
if sms and self.smshandler then
self.smshandler(sms)
end
end
return true
end |
« Next Oldest | Next Newest »
|