We have just bought an EmonPi but using our own raspberry Pi 3 and flashed 07-Nov-16 image to 8GB SD card. Order number #15430, order date: 20/07/2017 (Have already tried related topic solutions from forum)
Had an LCD connection problem- fixed (soldered button’s wire) and therefore checked all other connections - hardware is fine.
On Emoncms, running locally on the pi, no inputs appear, although LCD shows that CT clips and temperature sensor are present when booting up.
When checking mqtt status and restarting it on SSH it all looks fine, but still there is the error message on LCD: Error MQTT not connected.
I don’t have any inputs displaying on the webpage by default even though i have connected a temperature sensor. The only time anything shows on the inputs page is when i send a fake message using the API to generate inputs.
My understanding was that having the temperature sensor connected should automatically generate some input figures or am I wrong?
com_baud has been updated to 115200 but mqtt error still appears on LCD. See below for emonhub log which still states ‘device communication error - check settings’.
We are using a Raspberry Pi 3 Model B V1.2 . Are there any know issues with this?
2017-08-03 14:06:08,552 INFO MainThread EmonHub emonHub ‘emon-pi’ variant v1.2
2017-08-03 14:06:08,553 INFO MainThread Opening hub…
2017-08-03 14:06:08,554 INFO MainThread Logging level set to DEBUG
2017-08-03 14:06:08,555 INFO MainThread Creating EmonHubJeeInterfacer ‘RFM2Pi’
2017-08-03 14:06:08,557 DEBUG MainThread Opening serial port: /dev/ttyAMA0 @ 115200 bits/s
2017-08-03 14:06:10,559 WARNING MainThread Device communication error - check settings
2017-08-03 14:06:10,561 INFO MainThread Setting RFM2Pi frequency: 433 (4b)
2017-08-03 14:06:11,563 INFO MainThread Setting RFM2Pi group: 210 (210g)
2017-08-03 14:06:12,565 INFO MainThread Setting RFM2Pi quiet: 0 (0q)
2017-08-03 14:06:13,567 INFO MainThread Setting RFM2Pi baseid: 5 (5i)
2017-08-03 14:06:14,569 INFO MainThread Setting RFM2Pi calibration: 230V (1p)
2017-08-03 14:06:15,572 DEBUG MainThread Setting RFM2Pi subchannels: [‘ToRFM12’]
2017-08-03 14:06:15,573 DEBUG MainThread Interfacer: Subscribed to channel’ : ToRFM12
2017-08-03 14:06:15,573 DEBUG MainThread Setting RFM2Pi pubchannels: [‘ToEmonCMS’]
2017-08-03 14:06:15,574 DEBUG MainThread Interfacer: Subscribed to channel’ : ToRFM12
2017-08-03 14:06:15,576 INFO MainThread Creating EmonHubMqttInterfacer ‘MQTT’
2017-08-03 14:06:15,577 INFO MainThread MQTT Init mqtt_host=127.0.0.1 mqtt_port=1883 mqtt_user=emonpi
2017-08-03 14:06:15,580 DEBUG MainThread MQTT Subscribed to channel’ : ToEmonCMS
2017-08-03 14:06:15,581 INFO MainThread Creating EmonHubEmoncmsHTTPInterfacer ‘emoncmsorg’
2017-08-03 14:06:15,583 DEBUG MainThread emoncmsorg Subscribed to channel’ : ToEmonCMS
2017-08-03 14:06:15,682 INFO MQTT Connecting to MQTT Server
2017-08-03 14:06:15,686 INFO MQTT connection status: Connection successful
2017-08-03 14:06:15,688 DEBUG MQTT CONACK => Return code: 0
2017-08-03 14:06:15,790 INFO MQTT on_subscribe
I cannot comment on the mqtt error message on the screen, but the data arrives to the RPi via the the serial port which is read directly by emonhub. If emonhub isn’t reading any any stream from the serial port it cannot publish it to MQTT regardless of whether the MQTT side is good or not.
You need to focus on getting a data stream into emonhub via the serial port first.
Is the emonPi add-on board powered? You must power via the mini usb on the emonpi board, not via the micro usb on the RPi.
Is the serial port functional on the RPi? I would expect the std image to work from the get go with any RPi 3, Have you altered any serial port settings using raspi-config or editing config.txt or cmdline.txt?
Is the firmware installed on the emonPi (I have no idea if the unassembled emonPi is preloaded), Is the LED flashing on the emonpi add-on board (assuming it’s uncased, it isn’t visible once cased)
Did you run the emonpi update with the emonpi board attached? or before you attached it to the RPi?
Have you tried power-cycling the RPi and the emonpi board together since updating? Rebooting doesn’t restart the emonpi board, try disconnecting and re-applying the power.
Can you also post your update.log, available via the emoncms admin page?
I2C LCD NOT DETECTED on either 0x['27', '3f'] ...exiting LCD script
With issues on both the I²C and the GPIO serial port I have to ask if the emonpi board is definitely seated correctly on the RPi. Although i have to say I would expect bigger issues if it was wrongly connected, but worth a check.
Can you also see if any errors are reported in /var/log/service-runner.log? this will require logging into the RPi command line via ssh.
I had assumed that to be included in the standard downloaded image to work on any Pi 3, shop supplied or not, hence asking if any changes were made to the config.txt etc. plus I²C shouldn’t be affected by the BT and serial mapping (as far as I’m aware), fingers crossed it is that straight forward.
Yesterday after one of the reboots the Pi 3 was no longer receiving power from the GPIO pins so may have been a faulty board. I would be interested to see whether the bluetooth module was causing the problem in the first place.
In the meantime i have found a spare Pi 2 which is successfully picking up data.
If i get the chance to check against a Pi 3 again then i will update this post with the information.