Irregular updating of emonhub

Hi all

I'm hoping someone can lend me a hand or point me in the right direction for the following issue.

I bought one of the preloaded SD cards on a new Pi B+ with the emonTX v3 all setup for 433Hz. Managed to get it all up and running on the preloaded builds, and sending data to emoncms. I haven't tried downloading latest SD card or emonTx images. 

Problem now is that the feeds are only irregularly receiving data.

Below is an extract of the /var/log/emonhub/emonhub.log file after setting the config file to debug

2014-10-26 12:51:44,972 DEBUG SIGINT received.
2014-10-26 12:51:44,975 DEBUG Closing serial port
2014-10-26 12:51:44,978 INFO Exiting hub...
2014-10-26 12:51:46,653 INFO EmonHub Pre-Release Development Version (rc1.0)
2014-10-26 12:51:46,656 INFO Opening hub...
2014-10-26 12:51:46,658 INFO Logging level set to DEBUG
2014-10-26 12:51:46,661 INFO Creating EmonHubEmoncmsReporter 'emonCMS'
2014-10-26 12:51:46,666 INFO Set up reporter 'emonCMS' (buffer: memory | size: 1000)
2014-10-26 12:51:46,671 INFO Creating EmonHubJeeInterfacer 'RFM2Pi'
2014-10-26 12:51:46,675 DEBUG Opening serial port: /dev/ttyAMA0
2014-10-26 12:51:46,678 INFO Opened serial port: /dev/ttyAMA0 9600 bits/s
2014-10-26 12:51:46,681 DEBUG Setting RFM2Pi frequency: 433 (4b)
2014-10-26 12:51:47,684 DEBUG Setting RFM2Pi group: 210 (210g)
2014-10-26 12:51:48,688 DEBUG Setting RFM2Pi baseid: 15 (15i)
2014-10-26 12:51:49,708 DEBUG 1 NEW FRAME : 1414288309.71 > 4b
2014-10-26 12:51:49,711 WARNING 1 Discard RX frame 'information' : ['>', '4b']
2014-10-26 12:51:49,914 DEBUG 2 NEW FRAME : 1414288309.91 ^A
2014-10-26 12:51:49,917 INFO 2 Ignoring frame consisting of SOH character
2014-10-26 12:51:50,121 DEBUG 3 NEW FRAME : 1414288310.12 > 210g
2014-10-26 12:51:50,124 WARNING 3 Discard RX frame 'information' : ['>', '210g']
2014-10-26 12:51:50,327 DEBUG 4 NEW FRAME : 1414288310.33 ^A
2014-10-26 12:51:50,329 INFO 4 Ignoring frame consisting of SOH character
2014-10-26 12:51:50,534 DEBUG 5 NEW FRAME : 1414288310.53 > 15i
2014-10-26 12:51:50,536 WARNING 5 Discard RX frame 'information' : ['>', '15i']
2014-10-26 12:51:50,753 DEBUG 6 NEW FRAME : 1414288310.75 ^A
2014-10-26 12:51:50,755 INFO 6 Ignoring frame consisting of SOH character
2014-10-26 16:09:32,895 DEBUG 7 NEW FRAME : 1414300172.89  10 166 255 18 2 0 0 0 0 186 102 0 0
2014-10-26 16:09:32,900 DEBUG 7 Timestamp : 1414300172.89
2014-10-26 16:09:32,902 DEBUG 7      Node : 10
2014-10-26 16:09:32,904 DEBUG 7    Values : [-90, 530, 0, 0, 26298, 0]
2014-10-26 16:09:32,940 DEBUG 7 Append to 'emonCMS' buffer => time: 1414300172.89, data: [10, -90, 530, 0, 0, 26298, 0], ref: 7
2014-10-26 16:09:33,044 INFO Sending: http://emoncms.org/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[[1414300172.89,10,-90,530,0,0,26298,0]]&sentat=14143001$
2014-10-26 16:09:34,176 DEBUG Receipt acknowledged with 'ok' from http://emoncms.org

This datasend then gets repeated at irregular intervals, ranging from ~5min out to 12 hours. Possible to see above that there was a major delay from 12:51 down to 16:09.

Any ideas or suggestions on how to diagnose ? Radio interference? I did initially have the Pi on WiFi, but is currently hard wired back to the router.

Thanks heaps in advance

Leigh

 

 

pb66's picture

Re: Irregular updating of emonhub

Hi Leigh

The log suggests rfm2pi isn't receiving usable packets as in debug mode emonhub will log every valid packet.

Can you confirm the frequency that the led on the rfm2pi flashes? if that led is only flashing sporadically it's not receiving packets and you should check the emonTx v3's range by seeing if moving them closer together improves things.

Paul

lr123's picture

Re: Irregular updating of emonhub

Thanks for the reply Paul. 

LED on the rfm2pi is irregular to non existent. I didn't realise that this is supposed this was supposed to flash each time. Current range is ~10-15m with a single brick and a few cavity walls in between, but I'll have a go at moving it closer.

I've since found a couple of posts by you and others about also using the serial connection into the emonTx. I assume that this would be the next step?

cheers

leigh

pb66's picture

Re: Irregular updating of emonhub

You should only need to resort to a direct serial connection if the range/signal is being reduced by RF interference. if its just a range issue maybe using wifi so the Pi can move alittle closer is easier.

PAul

lr123's picture

Re: Irregular updating of emonhub

I've moved the Pi closer & is now all good. 

Thanks heaps for sorting out such a rookie error!

Leigh

 

Comment viewing options

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