Direct connection emonTx V3 3-phase to RaspberryPi

Thanks guys.

I’m NOT using a USB to UART adapter.

I connected 3 jumper leads from an emonTx (running the 3 Ph firmware v0.11) to an RPi – connected as the pic in Robert’s post above – using Rx as the sending pin on the emonTx (plus 5V & GND connected).

I DO NOT have an RFM69Pi add-on board fitted to the RPi.

Via the emoncms page – per Glyn’s suggestion, I added the directserial interfacer and restarted.
But there were no Inputs to emoncms shown on the emoncms page.

/var/log/emonhub/emonhub.log gave the following …
2017-04-15 11:05:59,817 INFO MainThread Creating EmonHubTx3eInterfacer ‘SerialTx3e’
2017-04-15 11:05:59,823 ERROR MainThread [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: ‘/dev/ttyUSB0’
2017-04-15 11:05:59,824 ERROR MainThread Unable to create ‘SerialTx3e’ interfacer: global name ‘EmonHubInterfacerInitError’ is not defined

Then I started experimenting …
By changing the Serial Interfacer to dev/ttyAMA0 …

The log then showed that a serial port was now open.

There were some Inputs - Nodes 514, 516, 518, 519, 520, 522, 523, 531 & 693 each including 5 keys plus rssi but all with no values (NaN).

And the RFM2Pi has a ‘thread is dead’ problem.

Here’s the log …
2017-04-15 12:14:40,480 INFO MainThread EmonHub emonHub ‘emon-pi’ variant v1.2
2017-04-15 12:14:40,481 INFO MainThread Opening hub…
2017-04-15 12:14:40,483 INFO MainThread Logging level set to DEBUG
2017-04-15 12:14:40,484 INFO MainThread Creating EmonHubTx3eInterfacer ‘SerialTx3e’
2017-04-15 12:14:40,489 DEBUG MainThread Opening serial port: /dev/ttyAMA0 @ 115200 bits/s
2017-04-15 12:14:40,491 DEBUG MainThread Setting SerialTx3e pubchannels: [‘ToEmonCMS’]
2017-04-15 12:14:40,493 DEBUG MainThread Interfacer: Subscribed to channel’ : ch2
2017-04-15 12:14:40,495 INFO MainThread Creating EmonHubJeeInterfacer ‘RFM2Pi’
2017-04-15 12:14:40,499 DEBUG MainThread Opening serial port: /dev/ttyAMA0 @ 38400 bits/s
2017-04-15 12:14:42,503 WARNING MainThread Device communication error - check settings
2017-04-15 12:14:42,504 INFO MainThread Setting RFM2Pi frequency: 433 (4b)
2017-04-15 12:14:43,506 INFO MainThread Setting RFM2Pi group: 210 (210g)
2017-04-15 12:14:44,509 INFO MainThread Setting RFM2Pi quiet: 0 (0q)
2017-04-15 12:14:45,511 INFO MainThread Setting RFM2Pi baseid: 5 (5i)
2017-04-15 12:14:46,514 INFO MainThread Setting RFM2Pi calibration: 230V (1p)
2017-04-15 12:14:47,516 DEBUG MainThread Setting RFM2Pi subchannels: [‘ToRFM12’]
2017-04-15 12:14:47,518 DEBUG MainThread Interfacer: Subscribed to channel’ : ToRFM12
2017-04-15 12:14:47,519 DEBUG MainThread Setting RFM2Pi pubchannels: [‘ToEmonCMS’]
2017-04-15 12:14:47,520 DEBUG MainThread Interfacer: Subscribed to channel’ : ToRFM12
2017-04-15 12:14:47,521 INFO MainThread Creating EmonHubMqttInterfacer ‘MQTT’
2017-04-15 12:14:47,523 INFO MainThread MQTT Init mqtt_host=127.0.0.1 mqtt_port=1883 mqtt_user=emonpi
2017-04-15 12:14:47,526 DEBUG MainThread MQTT Subscribed to channel’ : ToEmonCMS
2017-04-15 12:14:47,529 INFO MainThread Creating EmonHubEmoncmsHTTPInterfacer ‘emoncmsorg’
2017-04-15 12:14:47,531 DEBUG MainThread emoncmsorg Subscribed to channel’ : ToEmonCMS
2017-04-15 12:14:47,633 INFO MQTT Connecting to MQTT Server
2017-04-15 12:14:47,636 INFO MQTT Could not connect…
2017-04-15 12:14:48,740 INFO MQTT Connecting to MQTT Server
2017-04-15 12:14:48,742 INFO MQTT Could not connect…
2017-04-15 12:14:49,845 INFO MQTT Connecting to MQTT Server
2017-04-15 12:14:49,847 INFO MQTT Could not connect…
2017-04-15 12:14:50,950 INFO MQTT Connecting to MQTT Server
2017-04-15 12:14:50,952 INFO MQTT Could not connect…
2017-04-15 12:14:51,103 WARNING MainThread RFM2Pi thread is dead
2017-04-15 12:14:51,304 WARNING MainThread RFM2Pi thread is dead
2017-04-15 12:14:51,507 WARNING MainThread RFM2Pi thread is dead
2017-04-15 12:14:51,738 WARNING MainThread RFM2Pi thread is dead
2017-04-15 12:14:51,940 WARNING MainThread RFM2Pi thread is dead
2017-04-15 12:14:52,055 INFO MQTT Connecting to MQTT Server
2017-04-15 12:14:52,141 WARNING MainThread RFM2Pi thread is dead
2017-04-15 12:14:52,159 INFO MQTT Connecting to MQTT Server
2017-04-15 12:14:52,263 INFO MQTT Connecting to MQTT Server
2017-04-15 12:14:52,268 INFO MQTT connection status: Connection successful
2017-04-15 12:14:52,270 DEBUG MQTT CONACK => Return code: 0
2017-04-15 12:14:52,343 WARNING MainThread RFM2Pi thread is dead
2017-04-15 12:14:52,372 INFO MQTT on_subscribe
2017-04-15 12:14:52,545 WARNING MainThread RFM2Pi thread is dead
2017-04-15 12:14:52,821 WARNING MainThread RFM2Pi thread is dead
2017-04-15 12:14:53,035 WARNING MainThread RFM2Pi thread is dead

… and continuing several times per second thereafter

Do you guys have any further suggestions?

I’m clutching at straws …

Should I just delete the RFM2Pi interfacer from the emonhub config?

I’ve tried changing the firmware file emonTxV3_4_3Phase_Voltage.ino - changing line 165 from RFM69CW to SERIALOUT but it made no difference.

I noticed that lines 117 to 123 have a slightly different content for Node 11 to that in the emonhub config file – should I use this instead?

Any other suggestions?
Thanks