10.06.2021, 20:43
Hello
Could somebody help me with Tulikivi relay board for the sauna heater, trying to read sauna temperature with CMD 11, but the result always 0. When I connecting my touch panel, then pannel starts asking for data from the relay board and a log is showing some values. So the connection is established, but the request is wrong.
protocol attached
Thank you
Could somebody help me with Tulikivi relay board for the sauna heater, trying to read sauna temperature with CMD 11, but the result always 0. When I connecting my touch panel, then pannel starts asking for data from the relay board and a log is showing some values. So the connection is established, but the request is wrong.
Code:
require('serial')
port, err = serial.open('/dev/RS485', {
baudrate = 9600,
databits = 8,
stopbits = 1,
parity = 'none',
duplex = 'half'
})
port:flush()
port:write(0xB)
data = port:read(2,3)
byte = string.byte(data)
log(string.format("%o, %x, %d", byte,byte,byte))
port:close()
protocol attached
Thank you