Sorry, I missed this bit. Having restarted the PiZero, I pressed the Tx reset button, and this is the last bits of the emonHub log.
2020-10-12 14:12:20,058 INFO MainThread Setting RFM2Pi baseid: 5 (5i)
2020-10-12 14:12:21,062 INFO MainThread Setting RFM2Pi frequency: 433 (4b)
2020-10-12 14:12:22,065 INFO MainThread Setting RFM2Pi group: 210 (210g)
2020-10-12 14:12:23,068 INFO MainThread Setting RFM2Pi quiet: 1 (1q)
2020-10-12 14:12:24,072 INFO MainThread Setting RFM2Pi calibration: 230V (1p)
2020-10-12 14:12:25,076 DEBUG MainThread Setting RFM2Pi pubchannels: ['ToEmonCMS']
2020-10-12 14:12:25,077 DEBUG MainThread Setting RFM2Pi subchannels: ['ToRFM12']
2020-10-12 14:12:25,089 INFO MainThread Creating EmonHubTx3eInterfacer 'SerialTx'
2020-10-12 14:12:25,094 DEBUG MainThread Opening serial port: /dev/ttyAMA0 @ 115200 bits/s
2020-10-12 14:12:25,102 INFO MainThread Creating EmonHubMqttInterfacer 'MQTT'
2020-10-12 14:12:25,124 DEBUG MainThread Setting MQTT pubchannels: ['ToRFM12']
2020-10-12 14:12:25,126 DEBUG MainThread Setting MQTT subchannels: ['ToEmonCMS']
2020-10-12 14:12:25,128 INFO MainThread Setting MQTT node_format_enable: 1
2020-10-12 14:12:25,129 INFO MainThread Setting MQTT nodevar_format_enable: 1
2020-10-12 14:12:25,141 INFO MainThread Setting MQTT nodevar_format_basetopic: emon/
2020-10-12 14:12:25,145 INFO MainThread Creating EmonHubEmoncmsHTTPInterfacer 'emoncmsorg'
2020-10-12 14:12:25,148 DEBUG MainThread Setting emoncmsorg pubchannels: ['ToRFM12']
2020-10-12 14:12:25,160 DEBUG MainThread Setting emoncmsorg subchannels: ['ToEmonCMS']
2020-10-12 14:12:25,162 WARNING MainThread Setting emoncmsorg apikey: obscured
2020-10-12 14:12:25,164 INFO MainThread Setting emoncmsorg url: https://emoncms.org
2020-10-12 14:12:25,167 INFO MainThread Setting emoncmsorg senddata: 1
2020-10-12 14:12:25,169 INFO MainThread Setting emoncmsorg sendstatus: 1
2020-10-12 14:12:34,868 WARNING SerialTx Exception caught in SerialTx thread. Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 501, in read
'device reports readiness to read but returned no data '
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/openenergymonitor/emonhub/src/emonhub_interfacer.py", line 32, in wrapper
return func(*args)
File "/opt/openenergymonitor/emonhub/src/emonhub_interfacer.py", line 99, in run
rxc = self.read()
File "/opt/openenergymonitor/emonhub/src/interfacers/EmonHubTx3eInterfacer.py", line 46, in read
self._rx_buf = self._rx_buf + self._ser.readline().decode()
File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 509, in read
raise SerialException('read failed: {}'.format(e))
serial.serialutil.SerialException: read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
2020-10-12 14:12:34,886 WARNING MainThread SerialTx thread is dead.
2020-10-12 14:12:34,889 WARNING MainThread Attempting to restart thread SerialTx (thread has been restarted 0 times...)
2020-10-12 14:12:34,904 INFO MainThread Creating EmonHubTx3eInterfacer 'SerialTx'
2020-10-12 14:12:34,908 DEBUG MainThread Opening serial port: /dev/ttyAMA0 @ 115200 bits/s
2020-10-12 14:12:41,171 DEBUG SerialTx invalid input name:
2020-10-12 14:13:01,484 WARNING RFM2Pi Exception caught in RFM2Pi thread. Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 501, in read
'device reports readiness to read but returned no data '
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/openenergymonitor/emonhub/src/emonhub_interfacer.py", line 32, in wrapper
return func(*args)
File "/opt/openenergymonitor/emonhub/src/emonhub_interfacer.py", line 99, in run
rxc = self.read()
File "/opt/openenergymonitor/emonhub/src/interfacers/EmonHubJeeInterfacer.py", line 85, in read
self._rx_buf = self._rx_buf + self._ser.readline().decode()
File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 509, in read
raise SerialException('read failed: {}'.format(e))
serial.serialutil.SerialException: read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
2020-10-12 14:13:01,579 DEBUG SerialTx 9 NEW FRAME : MSG:1,Vrms:246.21,P1:0,E1:0,pulse:1
2020-10-12 14:13:01,605 DEBUG SerialTx 9 Timestamp : 1602508381.578269
2020-10-12 14:13:01,607 DEBUG SerialTx 9 From Node : Serial_PiZero_barn
2020-10-12 14:13:01,630 DEBUG SerialTx 9 Values : [1, 246.21, 0, 0, 1]
2020-10-12 14:13:01,632 DEBUG SerialTx 9 Sent to channel(start)' : ToEmonCMS
2020-10-12 14:13:01,635 DEBUG SerialTx 9 Sent to channel(end)' : ToEmonCMS
2020-10-12 14:13:01,643 WARNING MainThread RFM2Pi thread is dead.
2020-10-12 14:13:01,645 WARNING MainThread Attempting to restart thread RFM2Pi (thread has been restarted 0 times...)
2020-10-12 14:13:01,649 INFO MainThread Creating EmonHubJeeInterfacer 'RFM2Pi'
2020-10-12 14:13:01,665 INFO MQTT Connecting to MQTT Server
2020-10-12 14:13:01,695 DEBUG MainThread Opening serial port: /dev/ttyAMA0 @ 38400 bits/s
2020-10-12 14:13:01,770 DEBUG emoncmsorg Buffer size: 1
2020-10-12 14:13:01,812 INFO MQTT connection status: Connection successful
2020-10-12 14:13:01,815 DEBUG MQTT CONACK => Return code: 0
2020-10-12 14:13:01,932 INFO MQTT on_subscribe
2020-10-12 14:13:03,703 WARNING MainThread Device communication error - check settings
2020-10-12 14:13:03,706 INFO MainThread Setting RFM2Pi baseid: 5 (5i)
2020-10-12 14:13:04,709 INFO MainThread Setting RFM2Pi frequency: 433 (4b)
2020-10-12 14:13:05,713 INFO MainThread Setting RFM2Pi group: 210 (210g)
2020-10-12 14:13:06,717 INFO MainThread Setting RFM2Pi quiet: 1 (1q)
2020-10-12 14:13:07,721 INFO MainThread Setting RFM2Pi calibration: 230V (1p)
2020-10-12 14:13:08,724 DEBUG MainThread Setting RFM2Pi pubchannels: ['ToEmonCMS']
2020-10-12 14:13:08,726 DEBUG MainThread Setting RFM2Pi subchannels: ['ToRFM12']