What does the warning at line 6 mean. Log from the start up of emonHub.
2015-06-17 14:40:49,243 INFO MainThread EmonHub Pre-Release Development Version (rc2.0?)
2015-06-17 14:40:49,245 INFO MainThread Opening hub...
2015-06-17 14:40:49,248 INFO MainThread Logging level set to DEBUG
2015-06-17 14:40:49,251 INFO MainThread Creating EmonHubJeeInterfacer 'RFM2Pi'
2015-06-17 14:40:49,257 DEBUG MainThread Opening serial port: /dev/ttyAMA0 @ 38400 bits/s
2015-06-17 14:40:51,264 WARNING MainThread Device communication error - check settings
2015-06-17 14:40:51,267 INFO MainThread Setting RFM2Pi frequency: 868 (8b)
2015-06-17 14:40:52,270 INFO MainThread Setting RFM2Pi group: 210 (210g)
2015-06-17 14:40:53,274 INFO MainThread Setting RFM2Pi quiet: 0 (0q)
2015-06-17 14:40:54,278 INFO MainThread Setting RFM2Pi baseid: 5 (5i)
2015-06-17 14:40:55,282 INFO MainThread Setting RFM2Pi calibration: 230V (1p)
2015-06-17 14:40:56,286 DEBUG MainThread Setting RFM2Pi subchannels: ['ToRFM12']
2015-06-17 14:40:56,289 DEBUG MainThread Interfacer: Subscribed to channel' : ToRFM12
2015-06-17 14:40:56,300 DEBUG MainThread Setting RFM2Pi pubchannels: ['ToEmonCMS']
2015-06-17 14:40:56,303 DEBUG MainThread Interfacer: Subscribed to channel' : ToRFM12
2015-06-17 14:40:56,311 INFO MainThread Creating EmonHubMqttInterfacer 'MQTT'
2015-06-17 14:40:56,315 INFO MainThread MQTT Init mqtt_host=127.0.0.1 mqtt_port=1883
2015-06-17 14:40:56,338 DEBUG MainThread MQTT Subscribed to channel' : ToEmonCMS
2015-06-17 14:40:56,361 INFO MainThread Creating EmonHubEmoncmsHTTPInterfacer 'emoncmsorg'
2015-06-17 14:40:56,367 DEBUG MainThread emoncmsorg Subscribed to channel' : ToEmonCMS
2015-06-17 14:40:56,472 INFO MQTT Connecting to MQTT Server
2015-06-17 14:40:56,561 INFO MQTT connection status: Connection successful
2015-06-17 14:40:56,565 DEBUG MQTT CONACK => Return code: 0
2015-06-17 14:40:56,708 INFO MQTT on_subscribe
Re: WARNING at start up?
"2015-06-17 14:40:51,264 WARNING MainThread Device communication error - check settings"
Means emonHub cannot communicate with via the serial port as defined in the previous line
"2015-06-17 14:40:49,257 DEBUG MainThread Opening serial port: /dev/ttyAMA0 @ 38400 bits/s"
You would need to share a little more info to for us to help determine why!
Is this an emonPi? I'm guessing not, are you using the latest 'emonpi" ready to go image? I suspect you are (but it looks like Trystan has forgotten to set the version to "emon-pi variant"
Do you have an RFM2PI fitted? if so do you know what model (exactly) or what baud rate it runs at ?
Paul
Re: WARNING at start up?
No, it's a Raspberry pi (approx.2 years old) with a RFM12Pi ver 2.5.3. I'm running the (latest ?) image, "emonSD-13-03-15".
Re: WARNING at start up?
Have you done any updating or made any changes to the image? can you provide a link to where you sourced it?
The log print doesn't fit what is expected. terms like "'ToRFM12" and "ToEmonCMS" were introduced by Trystan in the "emon-pi" variant of emonhub and do not appear in vanilla emonhub, Likewise with the MQTT stuff. The logged version (2.0?) is the temp version I set on the experimental branch of emonHub.
I guess you could try setting the "com_baud = 9600" in the RFM2Pi settings of emonhub.conf since all but the last v2.6 rfm2pi's were rfm12 not rfm69 so the baud should be 9600 unless the firmware has been updated.
Using the emonPi image on a Pi plus rfm2pi is new territory so may encounter minor "hiccups" but should work. However that doesn't help understand why or how you have that version if you thought you had the emonSD image.
Paul
Re: WARNING at start up?
Here is the link: "https://github.com/emoncms/emoncms/blob/low-write/docs/setup.md" where I downloaded the image. And I think I used the UK mirror.
[Duplicate post deleted. Moderator (RW)]
[edit]
I changed the baudrate to 9600, and now it works :-) The WARNING is gone, and I start receiving data from my emonTx.
Re: WARNING at start up?
Good to hear!
The version has since been amended it should actually read "emonHub 'emon-pi' variant v1.0" not "EmonHub Pre-Release Development Version (rc2.0?)" and in that image the baud is set for the emonPi at 38400 hence the error.
Paul
Re: WARNING at start up?
Ok.
What about image "emonSD-17jun2015.img"? Is that version only for emonPi and emonbase. Found a link to that release from this thread "OLD:Raspberry Pi 2 (http://openenergymonitor.org/emon/node/10163)" updated 24th june. I'am a bit confused about the naming and versions :-)
Re: WARNING at start up?
confusion is something we seem to excel at :-)
As far as I'm aware the emonSD-13-03-15.image is pre emonPi and emonSD-17jun2015 is post emonPi.
The former is only tested with emonBase (ie not emonPi) and has the standard v1.2 emonHub, while the latter has the "emon-pi" variant of emonhub based on the experimental (v2.0?) branch of emonhub adapted specifically for the emonPi, but should run ok on emonBase with some minor edits eg baud speed.
The "emon-pi" emonSD image is intended to become a single image for all Pi based installs but does currently lean towards the emonPi. for example the updater will unsuccessfully try to install the emonpi sketch to your rfm2pi.
Paul