06.11.2025, 20:21
(06.11.2025, 20:07)AlexLV Wrote: Hi Cristian,Thanks I will check.
not remember all details now, but I added to my modem script's this part (in incoming sms handler):
Code:-- incoming sms handler
readcsq = function()
local res, err, reply = modem:send('AT+CSQ')
local rssi
if reply then
rssi = reply:match('%+CSQ:%s+(%d+),(%d+)')
end
rssi = tonumber(rssi) or 0
if 2 <= rssi and rssi <= 9 then
quality = 'marginal'
elseif 10 <= rssi and rssi <= 14 then
quality = 'ok'
elseif 15 <= rssi and rssi <= 19 then
quality = 'good'
elseif 20 <= rssi and rssi <= 30 then
quality = 'excellent'
else
quality = 'unknown'
end
grp.write('0/0/40', quality) -- Modem signal level write to group
end
For modem I use resident script, working every 10 seconds.
Hope it helps.
If not - I will look deep and will write my modem's script and info. I have 2G BGS2T modem, connected to usb on LM through USB2RS232 adapter. Working already ~8 years without problems.
BR,
Alex