Node not appearing in Emoncms

Hi guys,

I've just finished setting up my EmonTx V3 with a direct serial connection to my RPi. I'm using the ready made SD card image and things appear to received by the RPi, which I've confirmed via Minicom, although I don't seem to get a nodeID passed in the output, i'm not sure if this is an issue though.

I've checked the log for emonhub and data appears to be uploaded ok, however no nodes are detected by emoncms:

Here's a snip from the emonhub.log

pi@raspberrypi ~ $ tail /var/log/emonhub/emonhub.log
2015-02-16 18:19:58,283 DEBUG 45 Append to 'emonCMS' buffer => time: 1424110798.18, data: [1383, 14, 23347], ref: 45
2015-02-16 18:19:58,387 INFO Sending: http://emoncms.org/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[[1424110798.18,1383,14,23347]]&sentat=1424110798
2015-02-16 18:19:58,502 DEBUG Receipt acknowledged with 'ok' from http://emoncms.org
2015-02-16 18:20:09,177 DEBUG 46 NEW FRAME : 1424110809.18 1386 14 23414
2015-02-16 18:20:09,180 DEBUG 46 Timestamp : 1424110809.18
2015-02-16 18:20:09,182 DEBUG 46      Node : 1386
2015-02-16 18:20:09,184 DEBUG 46    Values : [14, 23414]
2015-02-16 18:20:09,247 DEBUG 46 Append to 'emonCMS' buffer => time: 1424110809.18, data: [1386, 14, 23414], ref: 46
2015-02-16 18:20:09,351 INFO Sending: http://emoncms.org/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[[1424110809.18,1386,14,23414]]&sentat=1424110809
2015-02-16 18:20:09,455 DEBUG Receipt acknowledged with 'ok' from http://emoncms.org

And a snip from minicom:

Welcome to minicom 2.6.1

OPTIONS: I18n
Compiled on Apr 28 2012, 19:24:31.
Port /dev/ttyAMA0

Press CTRL-A Z for help on special keys

1560 14 23401
1562 14 23372
1575 14 23384
1542 14 23176

Any thought's to why the emoncms is not picking up the stream? I've tried tinkering with the nodes section of the emonhub.conf but it doesn't appear to make any difference.

Thanks in advance,

Martyn

pb66's picture

Re: Node not appearing in Emoncms

The sketch used for a direct serial connection is missing a node id the sketch will need editing to add one see Serial link RPI<->EMonTX using Emonhub  and there are other some other threads that may also help as you should be using a EmonHubSerialInterfacer rather than the default EmonHubJeeInterfacer (if you're not already).

Paul

Martyn's picture

Re: Node not appearing in Emoncms

Hi Paul,

Thanks for the swift response, I'm using the full DS V1.4 RFM12B firmware that was shipped with the unit, not the serial only firmware as I'd read that the stock firmware should work with both RF and serial.

I had previously modified my emonhub.conf to use the following setting:

    [[SerialDirect]]

            Type = EmonHubSerialInterfacer

            [[[init_settings]]]

                    com_port = /dev/ttyAMA0

                    com_baud = 9600

            [[[runtimesettings]]]

So hopefully i'm on the right track.

*Edit* - I've loaded the serial only firmware and added Serial.print("10 "); to the section where the print to serial sections start and it's working now.

It's a shame that No RF sketch is so stripped bare. Has anyone converted any of the full fat sketches to serial only so data from the AC/AC adaptor etc can be monitored?

Thanks,

Martyn

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.