Well still having problems.
I received a proper serial to RS485 adaptor, with the controller chip and rx/tx in/outs and +5 and gnd and A/B for the 485 bus, and connect only the +5, gnd, and Rx pins on the emonTx’s programming header.
The RX light on the RS485 adapter blinks when sending, so I have the correct pins.
I used Glyn’s addition to emonhub.conf and changed it for a sUB to RS485 adapter:
### This interfacer manages the EmonTx3 ESP format serial
[[SerialTx3e]]
Type = EmonHubTx3eInterfacer
[[[init_settings]]]
# Un-comment line below if using RS485 adapter
**com_port = /dev/ttyRS485-0**
# default com port if using USB to UART adapter
#com_port= /dev/ttyUSB0
#com_baud = 115200
[[[runtimesettings]]]
pubchannels = ToEmonCMS,
and this is what I got in the log (spoiler alert… ERRORS)
2021-08-31 05:16:10,130 INFO MainThread Opening hub...
2021-08-31 05:16:10,130 INFO MainThread Creating EmonHubJeeInterfacer 'RFM2Pi'
2021-08-31 05:16:12,137 INFO MainThread RFM2Pi device firmware version & configuration: not available
2021-08-31 05:16:12,138 INFO MainThread Setting RFM2Pi baseid: 5 (5i)
2021-08-31 05:16:13,140 INFO MainThread Setting RFM2Pi frequency: 433 (4b)
2021-08-31 05:16:14,142 INFO MainThread Setting RFM2Pi group: 210 (210g)
2021-08-31 05:16:15,144 INFO MainThread Setting RFM2Pi quiet: 1 (1q)
2021-08-31 05:16:16,147 INFO MainThread Setting RFM2Pi calibration: 230V (1p)
2021-08-31 05:16:17,150 INFO MainThread Creating EmonHubTx3eInterfacer 'SerialTx3e'
2021-08-31 05:16:17,152 **ERROR MainThread [Errno 2] could not open port /dev/ttyRS485-0: [Errno 2] No such file or directory: '/dev/ttyRS485-0'**
2021-08-31 05:16:17,154 INFO MainThread Creating EmonHubMqttInterfacer 'MQTT'
2021-08-31 05:16:17,158 INFO MainThread Setting MQTT node_format_enable: 1
2021-08-31 05:16:17,159 INFO MainThread Setting MQTT nodevar_format_enable: 1
2021-08-31 05:16:17,159 INFO MainThread Setting MQTT nodevar_format_basetopic: emon/
2021-08-31 05:16:17,161 INFO MainThread Creating EmonHubEmoncmsHTTPInterfacer 'emoncmsorg'
2021-08-31 05:16:17,163 INFO MainThread Setting emoncmsorg apikey: set
2021-08-31 05:16:17,163 INFO MainThread Setting emoncmsorg url: https://emoncms.org
2021-08-31 05:16:17,164 INFO MainThread Setting emoncmsorg senddata: 1
2021-08-31 05:16:17,165 INFO MainThread Setting emoncmsorg sendstatus: 1
2021-08-31 05:16:17,462 INFO MQTT Connecting to MQTT Server
2021-08-31 05:16:17,567 INFO MQTT connection status: Connection successful
2021-08-31 05:16:17,568 INFO emoncmsorg sending: https://emoncms.org/input/bulk.json? data=[[1630383377.200861,5,1414.5,-1.05,2828,240.82614,21,20.8,21,21,21,0,3]]&sentat=1630383377&apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y
2021-08-31 05:16:17,673 INFO MQTT on_subscribe
2021-08-31 05:16:19,087 INFO MQTT Publishing 'node' formatted msg
So OBVIOUSLY I am doing something wrong, or missing a step…
I tried verifying the FW with Arduino, selecting the atmega 328p xplained mini, and the verify failed. Isn’t this the correct board?
I want to disable the radio, but according to what Glyn wrote, no FW mod is needed, just add the lines to emonhub.conf like I tried, but that didn’t work…
REALLY stumped! (obviously not enough knowledge… but I’m trying!)