invalid values emonTX /emonBase

I have an emonBase with an emonTx, both on 433MHz and RFM12B.

EmonTx flashes every 10seconds, RFM on emonBase flashes also every 10 seconds.

When I log in into EmonCMS (local datastorage), all values stay invalid.

Any idea what is going wrong ?

pb66's picture

Re: invalid values emonTX /emonBase

What software and versions are you using on the emonBase? did you follow a guide or use a ready made image?

Where are you looking at the values? inputs page or nodes page? Are the inputs created ok?

If you have "rfm12" devices I'm guessing you have had them running previously maybe? Are you migrating old data or is this a fresh install?

If you have emonhub installed, set "loglevel = DEBUG" in emonhub.conf and check emonhub.log for info, this is where you will find out if the packets from the rfm2pi are being processed correctly and passed on to emoncms.

Paul

Roeland's picture

Re: invalid values emonTX /emonBase

Hello Paul,

 

This is a fresh install : I installed the latest software on a clean SD-card last week following th guide I found on the openenergymonitor-website.

I'm looking in the nodes-pages. It seems to me that there is no inputs page ... Where can I find these ?

The log files :

emonHub.log :

2015-12-27 11:17:33,988 INFO MainThread Creating EmonHubJeeInterfacer 'RFM2Pi'

2015-12-27 11:17:33,994 DEBUG MainThread Opening serial port: /dev/ttyAMA0 @ 38400 bits/s 2015-12-27 11:17:36,002 WARNING MainThread Device communication error - check settings 2015-12-27 11:17:36,015 INFO MainThread Setting RFM2Pi frequency: 433 (4b)

2015-12-27 11:17:37,019 INFO MainThread Setting RFM2Pi group: 210 (210g)

2015-12-27 11:17:38,023 INFO MainThread Setting RFM2Pi quiet: 0 (0q)

2015-12-27 11:17:39,027 INFO MainThread Setting RFM2Pi baseid: 5 (5i)

2015-12-27 11:17:40,031 INFO MainThread Setting RFM2Pi calibration: 230V (1p)

2015-12-27 11:17:41,035 DEBUG MainThread Setting RFM2Pi subchannels: ['ToRFM12']

2015-12-27 11:17:41,038 DEBUG MainThread Interfacer: Subscribed to channel' : ToRFM12

2015-12-27 11:17:41,040 DEBUG MainThread Setting RFM2Pi pubchannels: ['ToEmonCMS'] 2015-12-27 11:17:41,049 DEBUG MainThread Interfacer: Subscribed to channel' : ToRFM12 2015-12-27 11:17:41,059 INFO MainThread Creating EmonHubMqttInterfacer 'MQTT'

2015-12-27 11:17:41,079 INFO MainThread MQTT Init mqtt_host=127.0.0.1 mqtt_port=1883 mqtt_user=

2015-12-27 11:17:41,122 DEBUG MainThread MQTT Subscribed to channel' : ToEmonCMS 2015-12-27 11:17:41,136 INFO MainThread Creating EmonHubEmoncmsHTTPInterfacer 'emoncmsorg'

2015-12-27 11:17:41,142 DEBUG MainThread emoncmsorg Subscribed to channel' : ToEmonCMS 2015-12-27 11:17:41,236 INFO MQTT Connecting to MQTT Server

2015-12-27 11:17:41,268 INFO MQTT connection status: Connection successful

2015-12-27 11:17:41,271 DEBUG MQTT CONACK => Return code: 0

2015-12-27 11:17:41,387 INFO MQTT on_subscribe

2015-12-28 13:33:50,134 INFO MainThread Deleting interfacer 'MQTT'

2015-12-28 13:33:50,138 INFO MainThread Creating EmonHubMqttInterfacer 'MQTT'

2015-12-28 13:33:50,144 INFO MainThread MQTT Init mqtt_host=127.0.0.1 mqtt_port=1883 mqtt_user=emonpi

2015-12-28 13:33:50,153 DEBUG MainThread MQTT Subscribed to channel' : ToEmonCMS

2015-12-28 13:33:50,158 DEBUG MainThread emoncmsorg Subscribed to channel' : ToEmonCMS

2015-12-28 13:33:50,261 INFO MQTT Connecting to MQTT Server

2015-12-28 13:33:50,270 INFO MQTT connection status: Connection successful

2015-12-28 13:33:50,273 DEBUG MQTT CONACK => Return code: 0

2015-12-28 13:33:50,379 INFO MQTT on_subscribe

 

the emonCMS.log:

2015-12-28 16:36:58 MQTT INFO Reloading config 2015-12-28 16:37:04 MQTT INFO Reloading config

2015-12-28 16:37:10 MQTT INFO Reloading config 2015-12-28 16:37:16 MQTT INFO Reloading config

2015-12-28 16:37:22 MQTT INFO Reloading config 2015-12-28 16:37:26 FEEDWRITER INFO PHPTimeSeries bytes written: 0

2015-12-28 16:37:26 FEEDWRITER INFO PHPFina bytes written: 0

2015-12-28 16:37:28 MQTT INFO Reloading config

2015-12-28 16:37:34 MQTT INFO Reloading config

2015-12-28 16:37:40 MQTT INFO Reloading config

2015-12-28 16:37:46 MQTT INFO Reloading config
 

pb66's picture

Re: invalid values emonTX /emonBase

Hi Roeland

"This is a fresh install : I installed the latest software on a clean SD-card last week following th guide I found on the openenergymonitor-website."

For future reference, this site has many guides and many softwares that were all the latest at some point, if you can quote version numbers, names, build dates or link to the guide or software it makes things much easier for all.

Although the emonhub log doesn't show a version number I can tell it's "emon-pi" variant and the second-line tells us the RFM2Pi isn't responding to the 38400 baud, the fact you have an rfm12b device means it's probably 9600. This can be edited in emonhub.conf [interfacers] [[RFM2Pi]] [[[init_settings]]] by setting "com_baud = 9600", while you are in there delete the "calibration = " line in [[[runtimesettings]]] as it serves no purpose unless used with a emonPi and it can create loads of warnings in the log.

See what you have then, it probably won't totally fix it as I have no way of guessing the emonTx payload definition from the info above and therefore the pre-defined nodes in the emonhub.conf are unlikely to match and the packets will be discarded, as you are using the nodes module every node must be fully disclosed in emonub.conf.

The inputs pages is definitely not available in v8.5 low-write emoncms and I'm unsure whether it's definitely available in v9.2 on the latest SDcard or not so I cannot say if or how the inputs page can be found.

Show some new log if you need further help to define the payload in [nodes]

Paul

Comment viewing options

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