RFLinkGateway
RFLinkGateway copied to clipboard
RFLinkGW.SerialProcessing - run - ERROR - Receive error: list index out of range
My device appears to be seeing RF traffic based on the logs but its not publishing to MQTT. The only thing I can see in the logs that speaks to any issues is the following line
Jan 24 14:54:26 coruscant.local python3[3920015]: 2021-01-24 14:54:26,945 - RFLinkGW.SerialProcessing - run - ERROR - Receive error: list index out of range
Here are the full logs
Jan 24 14:54:25 coruscant.local python3[3919959]: 2021-01-24 14:54:25,008 - RFLinkGW.SerialProcessing - __init__ - INFO - Starting...
Jan 24 14:54:25 coruscant.local python3[3919959]: 2021-01-24 14:54:25,008 - RFLinkGW.SerialProcessing - connect - INFO - Connecting to serial
Jan 24 14:54:26 coruscant.local python3[3919959]: 2021-01-24 14:54:26,010 - RFLinkGW.SerialProcessing - connect - DEBUG - Serial connected
Jan 24 14:54:26 coruscant.local python3[3919959]: 2021-01-24 14:54:26,014 - RFLinkGW.MQTTClient - __init__ - INFO - Starting...
Jan 24 14:54:26 coruscant.local python3[3920015]: 2021-01-24 14:54:26,934 - RFLinkGW.SerialProcessing - prepare_output - DEBUG - Received message:['20', '00', 'Nodo RadioFrequencyLink - RFLink Gateway V1.1 - R48']
Jan 24 14:54:26 coruscant.local python3[3920015]: 2021-01-24 14:54:26,945 - RFLinkGW.SerialProcessing - prepare_output - DEBUG - Received message:['20', '01', 'MySensors=OFF', 'NO NRF24L01']
Jan 24 14:54:26 coruscant.local python3[3920015]: 2021-01-24 14:54:26,945 - RFLinkGW.SerialProcessing - run - ERROR - Receive error: list index out of range
Jan 24 14:54:26 coruscant.local python3[3920015]: 2021-01-24 14:54:26,945 - RFLinkGW.SerialProcessing - connect - INFO - Connecting to serial
Jan 24 14:54:26 coruscant.local python3[3920015]: 2021-01-24 14:54:26,946 - RFLinkGW.SerialProcessing - prepare_output - DEBUG - Received message:['20', '02', 'setGPIO=ON']
Jan 24 14:54:51 coruscant.local python3[3920015]: 2021-01-24 14:54:51,245 - RFLinkGW.SerialProcessing - prepare_output - DEBUG - Received message:['20', '03', 'Keeloq', 'ID=f2e7', 'SWITCH=00', 'CMD=ON', 'BAT=OK']
Jan 24 14:54:51 coruscant.local python3[3920015]: 2021-01-24 14:54:51,245 - RFLinkGW.SerialProcessing - prepare_output - DEBUG - set topic to: Keeloq/f2e7/READ/SWITCH
Jan 24 14:54:51 coruscant.local python3[3920015]: 2021-01-24 14:54:51,245 - RFLinkGW.SerialProcessing - prepare_output - DEBUG - set topic to: Keeloq/f2e7/00/READ/CMD
Jan 24 14:54:51 coruscant.local python3[3920015]: 2021-01-24 14:54:51,245 - RFLinkGW.SerialProcessing - prepare_output - DEBUG - set topic to: Keeloq/f2e7/READ/BAT
Jan 24 14:54:51 coruscant.local python3[3920015]: 2021-01-24 14:54:51,245 - RFLinkGW.SerialProcessing - run - DEBUG - Sending to Q:{'method': 'publish', 'topic': 'Keeloq/f2e7/READ/SWITCH', 'family': 'Keeloq', 'deviceId': 'f2e7', 'param': 'SWITCH', 'payload': '00', 'qos': 1, 'timestamp': 1611500091.2456121}
Jan 24 14:54:51 coruscant.local python3[3920015]: 2021-01-24 14:54:51,247 - RFLinkGW.SerialProcessing - run - DEBUG - Sending to Q:{'method': 'publish', 'topic': 'Keeloq/f2e7/00/READ/CMD', 'family': 'Keeloq', 'deviceId': 'f2e7', 'param': 'CMD', 'payload': 'ON', 'qos': 1, 'timestamp': 1611500091.2457597}
Jan 24 14:54:51 coruscant.local python3[3920015]: 2021-01-24 14:54:51,247 - RFLinkGW.SerialProcessing - run - DEBUG - Sending to Q:{'method': 'publish', 'topic': 'Keeloq/f2e7/READ/BAT', 'family': 'Keeloq', 'deviceId': 'f2e7', 'param': 'BAT', 'payload': 'OK', 'qos': 1, 'timestamp': 1611500091.2458508}
Jan 24 14:54:51 coruscant.local python3[3920016]: 2021-01-24 14:54:51,270 - RFLinkGW.MQTTClient - _on_publish - DEBUG - Message 2 published.
Jan 24 14:54:51 coruscant.local python3[3920016]: 2021-01-24 14:54:51,271 - RFLinkGW.MQTTClient - publish - DEBUG - Sending:{'method': 'publish', 'topic': 'Keeloq/f2e7/READ/SWITCH', 'family': 'Keeloq', 'deviceId': 'f2e7', 'param': 'SWITCH', 'payload': '{"value": 00}', 'qos': 1, 'timestamp': 1611500091.2456121}
Jan 24 14:54:51 coruscant.local python3[3920016]: 2021-01-24 14:54:51,272 - RFLinkGW.MQTTClient - _on_publish - DEBUG - Message 3 published.
Jan 24 14:54:51 coruscant.local python3[3920016]: 2021-01-24 14:54:51,272 - RFLinkGW.MQTTClient - publish - DEBUG - Sending:{'method': 'publish', 'topic': 'Keeloq/f2e7/00/READ/CMD', 'family': 'Keeloq', 'deviceId': 'f2e7', 'param': 'CMD', 'payload': '{"value": "ON"}', 'qos': 1, 'timestamp': 1611500091.2457597}
Jan 24 14:54:51 coruscant.local python3[3920016]: 2021-01-24 14:54:51,272 - RFLinkGW.MQTTClient - _on_publish - DEBUG - Message 4 published.
Jan 24 14:54:51 coruscant.local python3[3920016]: 2021-01-24 14:54:51,272 - RFLinkGW.MQTTClient - publish - DEBUG - Sending:{'method': 'publish', 'topic': 'Keeloq/f2e7/READ/BAT', 'family': 'Keeloq', 'deviceId': 'f2e7', 'param': 'BAT', 'payload': '{"value": "OK"}', 'qos': 1, 'timestamp': 1611500091.2458508}
And here is the config
(venv) 15:07:06 [email protected] RFLinkGateway master ? cat config.json 130 ↵
{
"mqtt_host": "192.168.100.16",
"mqtt_port": 1883,
"mqtt_prefix": "/data/RFLINK",
"mqtt_format": "json",
"mqtt_message_timeout": 10,
"mqtt_user":"xxxxx",
"mqtt_password":"xxxxx",
"rflink_tty_device": "/dev/ttyACM0",
"rflink_direct_output_params": [
"BAT",
"CMD",
"SET_LEVEL",
"SWITCH",
"HUM",
"CHIME",
"PIR",
"SMOKEALERT"
],
"rflink_signed_output_params": [
"TEMP",
"WINCHL",
"WINTMP"
],
"rflink_wdir_output_params": [
"WINDIR"
]
}
Hi Looks like it is not RF data but rather a message from RFLink board. I'll check it with my software