I have some data to add to the thread. I’ve now had this happen to my Pi three times, but the last time I was able to intervene.
This is not a standard emonHub. I have the RFM2Pi board installed on a Pi3B that is running some Docker containers. emonHub is installed as a systemd service. The Pi has a LiFePO4wered Pi UPS connected. The Pi was running happily for nearly a year before I added the emonHub to it.
The symptoms are that no mqtt data flowed after 04:59 this morning. When I realised and checked:
- The emonhub service was running
- The log file shows nothing after 04:59
I restarted the service:
- The log showed the service configuring the RFM2Pi board
- but no telemetry was received
I then changed a setting in emonhub.conf (I changed quiet = true
in the RFM2Pi config). Once I restarted the service, telemetry started to flow again.
Here’s the log from just before it stops to now:
2021-02-01 04:59:12,323 DEBUG RFM2Pi 55621 NEW FRAME : OK 24 174 0 23 0 199 1 28 0 1 0 0 0 (-59)
2021-02-01 04:59:12,325 DEBUG RFM2Pi 55621 Timestamp : 1612155552.323061
2021-02-01 04:59:12,326 DEBUG RFM2Pi 55621 From Node : 24
2021-02-01 04:59:12,328 DEBUG RFM2Pi 55621 Values : [17.400000000000002, 2.3000000000000003, 45.5, 2.8000000000000003, 1]
2021-02-01 04:59:12,329 DEBUG RFM2Pi 55621 RSSI : -59
2021-02-01 04:59:12,330 DEBUG RFM2Pi 55621 Sent to channel(start)' : ToEmonCMS
2021-02-01 04:59:12,331 DEBUG RFM2Pi 55621 Sent to channel(end)' : ToEmonCMS
2021-02-01 04:59:12,428 DEBUG MQTT Publishing: emon/emonth6/temperature 17.400000000000002
2021-02-01 04:59:12,430 DEBUG MQTT Publishing: emon/emonth6/external temperature 2.3000000000000003
2021-02-01 04:59:12,434 DEBUG MQTT Publishing: emon/emonth6/humidity 45.5
2021-02-01 04:59:12,436 DEBUG MQTT Publishing: emon/emonth6/battery 2.8000000000000003
2021-02-01 04:59:12,438 DEBUG MQTT Publishing: emon/emonth6/pulsecount 1
2021-02-01 04:59:12,440 DEBUG MQTT Publishing: emon/emonth6/rssi -59
2021-02-01 04:59:12,441 INFO MQTT Publishing 'node' formatted msg
2021-02-01 04:59:12,442 DEBUG MQTT Publishing: emonhub/rx/24/values 17.400000000000002,2.3000000000000003,45.5,2.8000000000000003,1,-59
2021-02-01 04:59:20,945 DEBUG emoncmsorg Buffer size: 3
... first service restart
2021-02-01 14:52:40,444 DEBUG MainThread Signal 15 received.
2021-02-01 14:52:40,522 INFO MainThread Exiting hub...
2021-02-01 14:52:40,748 INFO MainThread Exit completed
2021-02-01 14:52:43,221 INFO MainThread EmonHub emonHub (emon-pi variant) v2.1.5
2021-02-01 14:52:43,222 INFO MainThread Opening hub...
2021-02-01 14:52:43,223 INFO MainThread Logging level set to DEBUG
2021-02-01 14:52:43,223 INFO MainThread Creating EmonHubJeeInterfacer 'RFM2Pi'
2021-02-01 14:52:43,225 DEBUG MainThread Opening serial port: /dev/ttyAMA0 @ 38400 bits/s
2021-02-01 14:52:45,232 INFO MainThread RFM2Pi device firmware version: [RF12demo.13]
2021-02-01 14:52:45,234 INFO MainThread RFM2Pi device current settings: E i5 g210 @ 433 MHz q1
2021-02-01 14:52:45,235 INFO MainThread Setting RFM2Pi calibration: 230V (1p)
2021-02-01 14:52:46,238 DEBUG MainThread Setting RFM2Pi pubchannels: ['ToEmonCMS']
2021-02-01 14:52:46,239 DEBUG MainThread Setting RFM2Pi subchannels: ['ToRFM12']
2021-02-01 14:52:46,241 INFO MainThread Creating EmonHubMqttInterfacer 'MQTT'
2021-02-01 14:52:46,243 DEBUG RFM2Pi acknowledged command: > 1p
2021-02-01 14:52:46,245 DEBUG MainThread Setting MQTT pubchannels: ['ToRFM12']
2021-02-01 14:52:46,247 DEBUG MainThread Setting MQTT subchannels: ['ToEmonCMS']
2021-02-01 14:52:46,248 INFO MainThread Setting MQTT node_format_enable: 1
2021-02-01 14:52:46,248 INFO MainThread Setting MQTT nodevar_format_enable: 1
2021-02-01 14:52:46,249 INFO MainThread Setting MQTT nodevar_format_basetopic: emon/
2021-02-01 14:52:46,249 INFO MainThread Setting MQTT node_JSON_enable: 0
2021-02-01 14:52:46,251 INFO MainThread Creating EmonHubEmoncmsHTTPInterfacer 'emoncmsorg'
2021-02-01 14:52:46,252 DEBUG MainThread Setting emoncmsorg pubchannels: ['ToRFM12']
2021-02-01 14:52:46,253 DEBUG MainThread Setting emoncmsorg subchannels: ['ToEmonCMS']
2021-02-01 14:52:46,255 WARNING MainThread Setting emoncmsorg apikey: obscured
2021-02-01 14:52:46,255 INFO MainThread Setting emoncmsorg url: https://emoncms.org
2021-02-01 14:52:46,256 INFO MainThread Setting emoncmsorg senddata: 1
2021-02-01 14:52:46,257 INFO MainThread Setting emoncmsorg sendstatus: 1
2021-02-01 14:52:46,551 DEBUG RFM2Pi acknowledged command: <nn> i - set node ID (standard node ids are 1..30)
2021-02-01 14:52:46,655 DEBUG RFM2Pi acknowledged command: <n> b - set MHz band (4 = 433, 8 = 868, 9 = 915)
2021-02-01 14:52:46,759 DEBUG RFM2Pi acknowledged command: <nnnn> o - change frequency offset within the band (default 1600)
2021-02-01 14:52:46,967 DEBUG RFM2Pi acknowledged command: <nnn> g - set network group (RFM12 only allows 212, 0 = any)
2021-02-01 14:52:47,072 DEBUG RFM2Pi acknowledged command: <n> c - set collect mode (advanced, normally 0)
2021-02-01 14:52:47,299 DEBUG RFM2Pi acknowledged command: ...,<nn> a - send data packet to node <nn>, request ack
2021-02-01 14:52:47,405 DEBUG RFM2Pi acknowledged command: ...,<nn> s - send data packet to node <nn>, no ack
2021-02-01 14:52:47,510 DEBUG RFM2Pi acknowledged command: <n> q - set quiet mode (1 = don't report bad packets)
2021-02-01 14:52:47,615 DEBUG RFM2Pi acknowledged command: <n> x - set reporting format (0: decimal, 1: hex, 2: hex+ascii)
2021-02-01 14:52:47,925 DEBUG RFM2Pi acknowledged command: <hchi>,<hclo>,<addr>,<cmd> f - FS20 command (868 MHz)
2021-02-01 14:52:48,030 DEBUG RFM2Pi acknowledged command: <addr>,<dev>,<on> k - KAKU command (433 MHz)
2021-02-01 14:52:48,235 DEBUG RFM2Pi device settings updated: E i5 g210 @ 433 MHz q1
... 2nd restart after chaning config
2021-02-01 14:59:34,400 INFO MainThread Setting RFM2Pi quiet: 0 (0q)
2021-02-01 14:59:34,429 DEBUG RFM2Pi acknowledged command: > 0q
2021-02-01 14:59:34,531 DEBUG RFM2Pi device settings updated: E i5 g210 @ 433 MHz
2021-02-01 14:59:34,937 DEBUG RFM2Pi Discarding RX frame 'unreliable content': ? 0 249 179 159 154 188 13 94 70 96 193 85 227 147 251 132 226 67 84 196 103 (-89)
2021-02-01 14:59:35,402 INFO MainThread Setting RFM2Pi calibration: 230V (1p)
2021-02-01 14:59:35,440 DEBUG RFM2Pi acknowledged command: > 1p
2021-02-01 14:59:35,745 DEBUG RFM2Pi acknowledged command: <nn> i - set node ID (standard node ids are 1..30)
2021-02-01 14:59:35,849 DEBUG RFM2Pi acknowledged command: <n> b - set MHz band (4 = 433, 8 = 868, 9 = 915)
2021-02-01 14:59:35,953 DEBUG RFM2Pi acknowledged command: <nnnn> o - change frequency offset within the band (default 1600)
2021-02-01 14:59:36,161 DEBUG RFM2Pi acknowledged command: <nnn> g - set network group (RFM12 only allows 212, 0 = any)
2021-02-01 14:59:36,264 DEBUG RFM2Pi acknowledged command: <n> c - set collect mode (advanced, normally 0)
2021-02-01 14:59:36,471 DEBUG RFM2Pi acknowledged command: ...,<nn> a - send data packet to node <nn>, request ack
2021-02-01 14:59:36,577 DEBUG RFM2Pi acknowledged command: ...,<nn> s - send data packet to node <nn>, no ack
2021-02-01 14:59:36,682 DEBUG RFM2Pi acknowledged command: <n> q - set quiet mode (1 = don't report bad packets)
2021-02-01 14:59:36,787 DEBUG RFM2Pi acknowledged command: <n> x - set reporting format (0: decimal, 1: hex, 2: hex+ascii)
2021-02-01 14:59:37,097 DEBUG RFM2Pi acknowledged command: <hchi>,<hclo>,<addr>,<cmd> f - FS20 command (868 MHz)
2021-02-01 14:59:37,201 DEBUG RFM2Pi acknowledged command: <addr>,<dev>,<on> k - KAKU command (433 MHz)
2021-02-01 14:59:37,406 DEBUG RFM2Pi device settings updated: E i5 g210 @ 433 MHz
2021-02-01 14:59:37,512 DEBUG RFM2Pi Discarding RX frame 'unreliable content': ? 2 125 130 47 102 182 207 99 42 216 26 96 133 20 42 44 89 108 216 86 154 (-95)
2021-02-01 14:59:42,243 DEBUG RFM2Pi Discarding RX frame 'unreliable content': ? 10 10 239 175 248 136 4 253 148 54 137 145 247 113 238 172 185 139 139 8 249 (-92)
2021-02-01 14:59:44,075 DEBUG RFM2Pi Discarding RX frame 'unreliable content': ? 21 3 59 175 189 130 80 238 222 195 56 177 65 116 201 136 158 49 92 28 240 (-89)
2021-02-01 14:59:45,789 DEBUG RFM2Pi Discarding RX frame 'unreliable content': ? 9 95 190 23 118 11 175 23 9 12 39 212 129 244 39 97 97 117 28 47 17 (-86)
2021-02-01 14:59:46,500 DEBUG RFM2Pi Discarding RX frame 'unreliable content': ? 11 171 154 242 75 88 126 71 97 229 206 160 178 25 86 219 101 236 97 215 54 (-87)
2021-02-01 14:59:46,709 DEBUG RFM2Pi Discarding RX frame 'unreliable content': ? 14 255 221 120 41 110 4 216 169 119 42 121 160 102 68 202 62 190 29 219 127 (-90)
2021-02-01 14:59:46,817 DEBUG RFM2Pi Discarding RX frame 'unreliable content': ? 25 203 245 213 159 255 201 209 24 111 239 56 125 81 105 255 57 73 66 203 254 (-89)
2021-02-01 14:59:49,073 DEBUG MainThread Signal 15 received.
2021-02-01 14:59:49,191 INFO MainThread Exiting hub...
2021-02-01 14:59:49,353 INFO MainThread Exit completed
2021-02-01 14:59:50,750 INFO MainThread EmonHub emonHub (emon-pi variant) v2.1.5
2021-02-01 14:59:50,751 INFO MainThread Opening hub...
2021-02-01 14:59:50,752 INFO MainThread Logging level set to DEBUG
2021-02-01 14:59:50,753 INFO MainThread Creating EmonHubJeeInterfacer 'RFM2Pi'
2021-02-01 14:59:50,755 DEBUG MainThread Opening serial port: /dev/ttyAMA0 @ 38400 bits/s
2021-02-01 14:59:52,761 INFO MainThread RFM2Pi device firmware version: [RF12demo.13]
2021-02-01 14:59:52,762 INFO MainThread RFM2Pi device current settings: E i5 g210 @ 433 MHz
2021-02-01 14:59:52,764 INFO MainThread Setting RFM2Pi quiet: 0 (0q)
2021-02-01 14:59:53,767 INFO MainThread Setting RFM2Pi calibration: 230V (1p)
2021-02-01 14:59:54,770 DEBUG MainThread Setting RFM2Pi pubchannels: ['ToEmonCMS']
2021-02-01 14:59:54,772 DEBUG MainThread Setting RFM2Pi subchannels: ['ToRFM12']
2021-02-01 14:59:54,781 INFO MainThread Creating EmonHubMqttInterfacer 'MQTT'
2021-02-01 14:59:54,784 DEBUG RFM2Pi acknowledged command: > 0q
2021-02-01 14:59:54,787 DEBUG MainThread Setting MQTT pubchannels: ['ToRFM12']
2021-02-01 14:59:54,789 DEBUG MainThread Setting MQTT subchannels: ['ToEmonCMS']
2021-02-01 14:59:54,790 INFO MainThread Setting MQTT node_format_enable: 1
2021-02-01 14:59:54,791 INFO MainThread Setting MQTT nodevar_format_enable: 1
2021-02-01 14:59:54,792 INFO MainThread Setting MQTT nodevar_format_basetopic: emon/
2021-02-01 14:59:54,795 INFO MainThread Setting MQTT node_JSON_enable: 0
2021-02-01 14:59:54,797 INFO MainThread Creating EmonHubEmoncmsHTTPInterfacer 'emoncmsorg'
2021-02-01 14:59:54,800 DEBUG MainThread Setting emoncmsorg pubchannels: ['ToRFM12']
2021-02-01 14:59:54,802 DEBUG MainThread Setting emoncmsorg subchannels: ['ToEmonCMS']
2021-02-01 14:59:54,803 WARNING MainThread Setting emoncmsorg apikey: obscured
2021-02-01 14:59:54,804 INFO MainThread Setting emoncmsorg url: https://emoncms.org
2021-02-01 14:59:54,806 INFO MainThread Setting emoncmsorg senddata: 1
2021-02-01 14:59:54,807 INFO MainThread Setting emoncmsorg sendstatus: 1
2021-02-01 14:59:54,887 DEBUG RFM2Pi device settings updated: E i5 g210 @ 433 MHz
2021-02-01 14:59:54,991 DEBUG RFM2Pi Discarding RX frame 'unreliable content': ? 16 240 40 214 3 188 11 186 1 186 32 241 1 171 207 89 30 103 20 47 145 (-95)
2021-02-01 14:59:55,093 DEBUG RFM2Pi acknowledged command: > 1p
2021-02-01 14:59:55,398 DEBUG RFM2Pi acknowledged command: <nn> i - set node ID (standard node ids are 1..30)
2021-02-01 14:59:55,502 DEBUG RFM2Pi acknowledged command: <n> b - set MHz band (4 = 433, 8 = 868, 9 = 915)
2021-02-01 14:59:55,609 DEBUG RFM2Pi acknowledged command: <nnnn> o - change frequency offset within the band (default 1600)
2021-02-01 14:59:55,821 DEBUG RFM2Pi acknowledged command: <nnn> g - set network group (RFM12 only allows 212, 0 = any)
2021-02-01 14:59:55,927 DEBUG RFM2Pi acknowledged command: <n> c - set collect mode (advanced, normally 0)
2021-02-01 14:59:56,138 DEBUG RFM2Pi acknowledged command: ...,<nn> a - send data packet to node <nn>, request ack
2021-02-01 14:59:56,244 DEBUG RFM2Pi acknowledged command: ...,<nn> s - send data packet to node <nn>, no ack
2021-02-01 14:59:56,350 DEBUG RFM2Pi acknowledged command: <n> q - set quiet mode (1 = don't report bad packets)
2021-02-01 14:59:56,458 DEBUG RFM2Pi acknowledged command: <n> x - set reporting format (0: decimal, 1: hex, 2: hex+ascii)
2021-02-01 14:59:56,773 DEBUG RFM2Pi acknowledged command: <hchi>,<hclo>,<addr>,<cmd> f - FS20 command (868 MHz)
2021-02-01 14:59:56,907 DEBUG RFM2Pi acknowledged command: <addr>,<dev>,<on> k - KAKU command (433 MHz)
2021-02-01 14:59:57,112 DEBUG RFM2Pi device settings updated: E i5 g210 @ 433 MHz
2021-02-01 14:59:57,220 DEBUG RFM2Pi Discarding RX frame 'unreliable content': ? 13 167 33 45 23 167 38 211 249 13 111 252 66 154 64 136 184 198 171 161 89 (-92)
2021-02-01 14:59:57,329 DEBUG RFM2Pi Discarding RX frame 'unreliable content': ? 9 89 111 212 92 85 223 103 188 54 122 202 245 88 143 188 213 154 138 230 97 (-92)
2021-02-01 14:59:59,653 DEBUG RFM2Pi Discarding RX frame 'unreliable content': ? 14 49 164 186 181 23 123 110 239 57 131 46 221 166 233 117 34 156 21 7 27 (-95)
2021-02-01 14:59:59,996 DEBUG RFM2Pi 7 NEW FRAME : OK 24 198 0 45 0 215 1 28 0 1 0 0 0 (-55)
2021-02-01 14:59:59,999 DEBUG RFM2Pi 7 Timestamp : 1612191599.995925
2021-02-01 15:00:00,000 DEBUG RFM2Pi 7 From Node : 24
2021-02-01 15:00:00,000 DEBUG RFM2Pi 7 Values : [19.8, 4.5, 47.1, 2.8000000000000003, 1]
2021-02-01 15:00:00,001 DEBUG RFM2Pi 7 RSSI : -55
2021-02-01 15:00:00,002 DEBUG RFM2Pi 7 Sent to channel(start)' : ToEmonCMS
2021-02-01 15:00:00,003 DEBUG RFM2Pi 7 Sent to channel(end)' : ToEmonCMS
2021-02-01 15:00:00,225 INFO MQTT Connecting to MQTT Server
2021-02-01 15:00:00,310 DEBUG RFM2Pi Discarding RX frame 'unreliable content': ? 19 23 84 78 128 109 156 75 122 79 199 124 239 175 159 103 200 27 19 193 29 (-96)
2021-02-01 15:00:00,328 DEBUG emoncmsorg Buffer size: 1