Serial data not getting to EmonCMS

Hi, Hoping someone can point me where to check next.

I cant get either the local ( On the Pi ) or remote EmonCMS to log anything.

Because the EmonPi is taking so long ( dig, dig ) , Ive rigged up a serially connected emonTx V2 to a Pi.

I am using this image on the Pi - emonSD-12-02-15.img

I am able to see my serial data leaving the EmonTx with the Arduino serial monitor and it looks like this.

11 0.69 3.74 231.29
11 1.07 1.86 231.38
11 0.44 1.58 231.50
11 0.99 1.94 231.45
11 1.45 3.00 231.74
11 0.49 1.58 231.71
11 0.09 2.78 231.84

Which is  Node, Power1, Power2 and Voltage

Ive then verified with Minicom on the Pi that the same data is being seen by the serial port.

Ive checked the serial port is setup correctly. i.e The changes to inittab file and the cmdline.txt file have been checked.

Ive checked my API key

I have the wireless listener disabled, and the serial one setup like this:

# This listener manages the serial
    type = OemGatewaySerialListener
        com_port = /dev/ttyAMA0
        com_baud = 9600

Ive tried to install avrdude as per the instructions on this post,  - Submitted by pb66 on Sat, 07/02/2015 - 13:11    but I get a file not found when I try run it.

My log file seems to stop prematurely.  Log level is set to DEBUG

1970-01-01 02:00:33,421 INFO EmonHub Pre-Release Development Version (rc1.2)
1970-01-01 02:00:33,424 INFO Opening hub...
1970-01-01 02:00:33,427 INFO Logging level set to DEBUG
1970-01-01 02:00:33,429 INFO Creating EmonHubEmoncmsReporter 'emonCMS'
1970-01-01 02:00:33,435 INFO Set up reporter 'emonCMS' (buffer: memory | size: 1000)
1970-01-01 02:00:33,439 INFO Setting emonCMS url: http://localhost/emoncms
1970-01-01 02:00:33,441 INFO Setting emonCMS apikey: set

Any pointers on where to check next ?






pb66's picture

Re: Serial data not getting to EmonCMS


The serial "listener" is almost correct the oem gateway used listeners and was emonHub's predecessor, so the "Type" (capital T) should read EmonHubSerialInterfacer and no hyphen in "runtimesettings"

# This listener manages the serial
    Type = EmonHubSerialInterfacer
        com_port = /dev/ttyAMA0
        com_baud = 9600

Your log will have stopped because the "serialinterfacer" wouldn't of been created so no data would be able to access emonhub, so that should change with the edits above.

It also looks like you have been hit by the "1970" bug, if you instal "ntp-backup" (included in the next image revision) you can avoid that reoccurring

git clone ~/ntp-backup && ~/ntp-backup/install

Unfortunately your link didn't work but I found the post you refer to here This particular user wasn't using the read-only image so for you to use this you would need to use rpi-rw to put your Pi to take your Pi out of read-only mode first.



Lionel's picture

Re: Serial data not getting to EmonCMS

Hi Paul

Sorry its been a couple of days.

I just wanted to say you were spot on, and its working 100%

Thanks for your assistance.



Comment viewing options

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