25.01.2023, 07:38
Try running this script and see if you get anything in the Logs tab. Check that the panel is configured to send events to RS232.
Code:
if not port then
port = require('serial').open('/dev/RS232', {
baudrate = 19200,
})
buf = {}
function logbuf()
local txt = table.concat(buf)
log(txt)
buf = {}
end
end
char, err = port:read(1, 1)
if char then
if char == '\r' or char == '\n' then
if #buf > 0 then
logbuf()
end
else
buf[ #buf + 1 ] = char
if #buf == 100 then
logbuf()
end
end
end