Installation Emonpi and emonTx

Every day a learning day :slight_smile:

Do you have an internal NTP server the emonPi could get it’s time from? Often routers are able to generate an NTP response.

Thanks. yes i have colleagues who do it. i will ask them to fit an RTC on an EmonPi and will let you know about the results. :slight_smile:

1 Like

Hi Brain,

I have installed external RTC on emonpi as mentioned. Now i am trying to configure time on emonpi via SSH but it not working. can you please help?

What have you tried? What instructions came with the RTC.

This is really an RPi issue and you may find more help on the RPi forums. We will help if we can :slight_smile:

Thanks got the information. working on implementation.
Thanks again

1 Like

Hi Brian,

I have configured the RTC and the time is synchronised and up to date. i am not getting any reading on the input. i checked server status and logs but there isn`t an error. when i checked the device physically there are no readings for the power and Vrms. instead of Vrms it show connecting please wait. Can you please help?

Thanks

Server details

And Config file. currently 2 TH and 1 TX are connected to the pi.

Moderator - file deleted as it had the API key in it

#######################################################################
#######################      emonhub.conf     #########################
#######################################################################
### emonHub configuration file, for info see documentation:
### https://github.com/openenergymonitor/emonhub/blob/emon-pi/configuration.md
#######################################################################
#######################    emonHub  settings    #######################
#######################################################################

[hub]
### loglevel must be one of DEBUG, INFO, WARNING, ERROR, and CRITICAL
loglevel = DEBUG
### Uncomment this to also send to syslog
# use_syslog = yes
#######################################################################
#######################       Interfacers       #######################
#######################################################################

[interfacers]
### This interfacer manages the RFM12Pi/RFM69Pi/emonPi module
[[RFM2Pi]]
    Type = EmonHubJeeInterfacer
    [[[init_settings]]]
        com_port = /dev/ttyAMA0
        com_baud = 38400                        # 9600 for old RFM12Pi
    [[[runtimesettings]]]
        pubchannels = ToEmonCMS,
        subchannels = ToRFM12,

        group = 210
        frequency = 433
        baseid = 5                              # emonPi / emonBase nodeID
        calibration = 230V                      # (UK/EU: 230V, US: 110V)
        quiet = true                            # Disable quite mode (default enabled) to enable RF packet debugging, show packets which fail crc
        # interval =  300                         # Interval to transmit time to emonGLCD (seconds)
        

[[MQTT]]

    Type = EmonHubMqttInterfacer
    [[[init_settings]]]
        mqtt_host = 127.0.0.1
        mqtt_port = 1883
        mqtt_user = emonpi
        mqtt_passwd = emonpimqtt2016

    [[[runtimesettings]]]
        pubchannels = ToRFM12,
        subchannels = ToEmonCMS,

        # emonhub/rx/10/values format
        # Use with emoncms Nodes module
        node_format_enable = 1
        node_format_basetopic = emonhub/

        # emon/emontx/power1 format - use with Emoncms MQTT input
        # http://github.com/emoncms/emoncms/blob/master/docs/RaspberryPi/MQTT.md
        nodevar_format_enable = 1
        nodevar_format_basetopic = emon/

[[emoncmsorg]]
    Type = EmonHubEmoncmsHTTPInterfacer
    [[[init_settings]]]
    [[[runtimesettings]]]
        pubchannels = ToRFM12,
        subchannels = ToEmonCMS,
        url = https://emoncms.org
        apikey = THEAPIKEY
        senddata = 1                    # Enable sending data to Emoncms.org
        sendstatus = 1                  # Enable sending WAN IP to Emoncms.org MyIP > https://emoncms.org/myip/list
        sendinterval= 30                # Bulk send interval to Emoncms.org in seconds

#######################################################################
#######################          Nodes          #######################
#######################################################################

[nodes]

## See config user guide: https://github.com/openenergymonitor/emonhub/blob/emon-pi/conf/emonhub.conf

[[5]]
    nodename = emonpi
    [[[rx]]]
        names = power1,power2,power1pluspower2,vrms,t1,t2,t3,t4,t5,t6,pulsecount
        datacode = h, h, h, h, h, h, h, h, h, h, L
        scales = 1,1,1,0.01,0.1,0.1,0.1,0.1,0.1,0.1,1
        units = W,W,W,V,C,C,C,C,C,C,p

[[6]]
    nodename = emontxshield
    [[[rx]]]
       names = power1, power2, power3, power4, vrms
       datacode = h
       scales = 1,1,1,1,0.01
       units = W,W,W,W,V

[[7]]
   nodename = emontx4
   [[[rx]]]
      names = power1, power2, power3, power4, vrms, temp1, temp2, temp3, temp4, temp5, temp6, pulse
      datacodes = h,h,h,h,h,h,h,h,h,h,h,L
      scales = 1,1,1,1,0.01,0.1,0.1, 0.1,0.1,0.1,0.1,1
      units = W,W,W,W,V,C,C,C,C,C,C,p

[[8]]
    nodename = emontx3
    [[[rx]]]
       names = power1, power2, power3, power4, vrms, temp1, temp2, temp3, temp4, temp5, temp6, pulse
       datacodes = h,h,h,h,h,h,h,h,h,h,h,L
       scales = 1,1,1,1,0.01,0.1,0.1, 0.1,0.1,0.1,0.1,1
       units = W,W,W,W,V,C,C,C,C,C,C,p

[[9]]
   nodename = emontx2
   [[[rx]]]
      names = power1, power2, power3, power4, vrms, temp1, temp2, temp3, temp4, temp5, temp6, pulse
      datacodes = h,h,h,h,h,h,h,h,h,h,h,L
      scales = 1,1,1,1,0.01,0.1,0.1, 0.1,0.1,0.1,0.1,1
      units = W,W,W,W,V,C,C,C,C,C,C,p

[[10]]
    nodename = emontx1
    [[[rx]]]
       names = power1, power2, power3, power4, vrms, temp1, temp2, temp3, temp4, temp5, temp6, pulse
       datacodes = h,h,h,h,h,h,h,h,h,h,h,L
       scales = 1,1,1,1,0.01,0.01,0.01,0.01,0.01,0.01,0.01,1
       units = W,W,W,W,V,C,C,C,C,C,C,p

[[11]]
    nodename = 3phase
    [[[rx]]]
       names = powerL1, powerL2, powerL3, power4, Vrms, temp1, temp2, temp3, temp4, temp5, temp6, pulse
       datacodes = h,h,h,h,h,h,h,h,h,h,h,L
       scales = 1,1,1,1,0.01,0.01,0.01,0.01,0.01,0.01,0.01,1
       units = W,W,W,W,V,C,C,C,C,C,C,p
       
[[12]]
    nodename = 3phase2
    [[[rx]]]
       names = powerL1, powerL2, powerL3, power4, Vrms, temp1, temp2, temp3, temp4, temp5, temp6, pulse
       datacodes = h,h,h,h,h,h,h,h,h,h,h,L
       scales = 1,1,1,1,0.01,0.01,0.01,0.01,0.01,0.01,0.01,1
       units = W,W,W,W,V,C,C,C,C,C,C,p

[[13]]
    nodename = 3phase3
    [[[rx]]]
       names = powerL1, powerL2, powerL3, power4, Vrms, temp1, temp2, temp3, temp4, temp5, temp6, pulse
       datacodes = h,h,h,h,h,h,h,h,h,h,h,L
       scales = 1,1,1,1,0.01,0.01,0.01,0.01,0.01,0.01,0.01,1
       units = W,W,W,W,V,C,C,C,C,C,C,p

[[14]]
    nodename = 3phase4
    [[[rx]]]
       names = powerL1, powerL2, powerL3, power4, Vrms, temp1, temp2, temp3, temp4, temp5, temp6, pulse
       datacodes = h,h,h,h,h,h,h,h,h,h,h,L
       scales = 1,1,1,1,0.01,0.01,0.01,0.01,0.01,0.01,0.01,1
       units = W,W,W,W,V,C,C,C,C,C,C,p

[[15]]
    nodename = emontx3cm15
    [[[rx]]]
       names = MSG, Vrms, P1, P2, P3, P4, E1, E2, E3, E4, T1, T2, T3, pulse
       datacodes = L,h,h,h,h,h,l,l,l,l,h,h,h,L
       scales = 1,0.01,1,1,1,1,1,1,1,1,0.01,0.01,0.01,1
       units = n,V,W,W,W,W,Wh,Wh,Wh,Wh,C,C,C,p
       whitening = 1

[[16]]
    nodename = emontx3cm16
    [[[rx]]]
       names = MSG, Vrms, P1, P2, P3, P4, E1, E2, E3, E4, T1, T2, T3, pulse
       datacodes = L,h,h,h,h,h,l,l,l,l,h,h,h,L
       scales = 1,0.01,1,1,1,1,1,1,1,1,0.01,0.01,0.01,1
       units = n,V,W,W,W,W,Wh,Wh,Wh,Wh,C,C,C,p
       whitening = 1

[[19]]
   nodename = emonth1
   [[[rx]]]
      names = temperature, external temperature, humidity, battery
      datacode = h
      scales = 0.1,0.1,0.1,0.1
      units = C,C,%,V

[[20]]
   nodename = emonth2
   [[[rx]]]
      names = temperature, external temperature, humidity, battery
      datacode = h
      scales = 0.1,0.1,0.1,0.1
      units = C,C,%,V

[[21]]
   nodename = emonth3
   [[[rx]]]
      names = temperature, external temperature, humidity, battery
      datacode = h
      scales = 0.1,0.1,0.1,0.1
      units = C,C,%,V

[[22]]
   nodename = emonth4
   [[[rx]]]
      names = temperature, external temperature, humidity, battery
      datacode = h
      scales = 0.1,0.1,0.1,0.1
      units = C,C,%,V

[[23]]
    nodename = emonth5
    [[[rx]]]
       names = temperature, external temperature, humidity, battery, pulsecount
       datacodes = h,h,h,h,L
       scales = 0.1,0.1,0.1,0.1,1
       units = C,C,%,V,p

[[24]]
    nodename = emonth6
    [[[rx]]]
       names = temperature, external temperature, humidity, battery, pulsecount
       datacodes = h,h,h,h,L
       scales = 0.1,0.1,0.1,0.1,1
       units = C,C,%,V,p

[[25]]
    nodename = emonth7
    [[[rx]]]
       names = temperature, external temperature, humidity, battery, pulsecount
       datacodes = h,h,h,h,L
       scales = 0.1,0.1,0.1,0.1,1
       units = C,C,%,V,p

[[26]]
    nodename = emonth8
    [[[rx]]]
       names = temperature, external temperature, humidity, battery, pulsecount
       datacodes = h,h,h,h,L
       scales = 0.1,0.1,0.1,0.1,1
       units = C,C,%,V,p

Can you post the emonhub log please.

This might be a side effect of the rtc install depending on how that was done. Both the LCD and the rtc use the same i2c bus.

Looking Bach in this thread, you had reported that before starting the etc fitting, have the input updated at any point or not worked throughout?

2021-02-03 14:25:31,076 DEBUG    MainThread Signal 15 received.
2021-02-03 14:25:31,250 INFO     MainThread Exiting hub...
2021-02-03 14:25:31,466 INFO     MainThread Exit completed
2021-02-03 14:25:34,161 INFO     MainThread EmonHub emonHub (emon-pi variant) v2.1.5
2021-02-03 14:25:34,163 INFO     MainThread Opening hub...
2021-02-03 14:25:34,164 INFO     MainThread Logging level set to DEBUG
2021-02-03 14:25:34,164 INFO     MainThread Creating EmonHubJeeInterfacer 'RFM2Pi'
2021-02-03 14:25:34,167 DEBUG    MainThread Opening serial port: /dev/ttyAMA0 @ 38400 bits/s
2021-02-03 14:25:36,170 WARNING  MainThread Device communication error - check settings
2021-02-03 14:25:36,171 INFO     MainThread Setting RFM2Pi baseid: 5 (5i)
2021-02-03 14:25:37,173 INFO     MainThread Setting RFM2Pi frequency: 433 (4b)
2021-02-03 14:25:38,176 INFO     MainThread Setting RFM2Pi group: 210 (210g)
2021-02-03 14:25:39,178 INFO     MainThread Setting RFM2Pi quiet: 1 (1q)
2021-02-03 14:25:40,180 INFO     MainThread Setting RFM2Pi calibration: 230V (1p)
2021-02-03 14:25:41,183 DEBUG    MainThread Setting RFM2Pi pubchannels: ['ToEmonCMS']
2021-02-03 14:25:41,184 DEBUG    MainThread Setting RFM2Pi subchannels: ['ToRFM12']
2021-02-03 14:25:41,185 INFO     MainThread Creating EmonHubMqttInterfacer 'MQTT'
2021-02-03 14:25:41,189 DEBUG    MainThread Setting MQTT pubchannels: ['ToRFM12']
2021-02-03 14:25:41,190 DEBUG    MainThread Setting MQTT subchannels: ['ToEmonCMS']
2021-02-03 14:25:41,191 INFO     MainThread Setting MQTT node_format_enable: 1
2021-02-03 14:25:41,191 INFO     MainThread Setting MQTT nodevar_format_enable: 1
2021-02-03 14:25:41,192 INFO     MainThread Setting MQTT nodevar_format_basetopic: emon/
2021-02-03 14:25:41,194 INFO     MainThread Creating EmonHubEmoncmsHTTPInterfacer 'emoncmsorg'
2021-02-03 14:25:41,195 DEBUG    MainThread Setting emoncmsorg pubchannels: ['ToRFM12']
2021-02-03 14:25:41,196 DEBUG    MainThread Setting emoncmsorg subchannels: ['ToEmonCMS']
2021-02-03 14:25:41,196 WARNING  MainThread Setting emoncmsorg apikey: obscured
2021-02-03 14:25:41,197 INFO     MainThread Setting emoncmsorg url: https://emoncms.org
2021-02-03 14:25:41,197 INFO     MainThread Setting emoncmsorg senddata: 1
2021-02-03 14:25:41,198 INFO     MainThread Setting emoncmsorg sendstatus: 1
2021-02-03 14:42:12,869 INFO     MainThread Setting emoncmsorg apikey: set
2021-02-03 14:45:39,610 DEBUG    MainThread Signal 15 received.
2021-02-03 14:45:39,725 INFO     MainThread Exiting hub...
2021-02-03 14:45:39,891 INFO     MainThread Exit completed
2021-02-03 14:45:42,617 INFO     MainThread EmonHub emonHub (emon-pi variant) v2.1.5
2021-02-03 14:45:42,619 INFO     MainThread Opening hub...
2021-02-03 14:45:42,620 INFO     MainThread Logging level set to DEBUG
2021-02-03 14:45:42,620 INFO     MainThread Creating EmonHubJeeInterfacer 'RFM2Pi'
2021-02-03 14:45:42,623 DEBUG    MainThread Opening serial port: /dev/ttyAMA0 @ 38400 bits/s
2021-02-03 14:45:44,626 WARNING  MainThread Device communication error - check settings
2021-02-03 14:45:44,628 INFO     MainThread Setting RFM2Pi baseid: 5 (5i)
2021-02-03 14:45:45,630 INFO     MainThread Setting RFM2Pi frequency: 433 (4b)
2021-02-03 14:45:46,632 INFO     MainThread Setting RFM2Pi group: 210 (210g)
2021-02-03 14:45:47,634 INFO     MainThread Setting RFM2Pi quiet: 1 (1q)
2021-02-03 14:45:48,636 INFO     MainThread Setting RFM2Pi calibration: 230V (1p)
2021-02-03 14:45:49,639 DEBUG    MainThread Setting RFM2Pi pubchannels: ['ToEmonCMS']
2021-02-03 14:45:49,640 DEBUG    MainThread Setting RFM2Pi subchannels: ['ToRFM12']
2021-02-03 14:45:49,641 INFO     MainThread Creating EmonHubMqttInterfacer 'MQTT'
2021-02-03 14:45:49,645 DEBUG    MainThread Setting MQTT pubchannels: ['ToRFM12']
2021-02-03 14:45:49,645 DEBUG    MainThread Setting MQTT subchannels: ['ToEmonCMS']
2021-02-03 14:45:49,646 INFO     MainThread Setting MQTT node_format_enable: 1
2021-02-03 14:45:49,647 INFO     MainThread Setting MQTT nodevar_format_enable: 1
2021-02-03 14:45:49,647 INFO     MainThread Setting MQTT nodevar_format_basetopic: emon/
2021-02-03 14:45:49,650 INFO     MainThread Creating EmonHubEmoncmsHTTPInterfacer 'emoncmsorg'
2021-02-03 14:45:49,651 DEBUG    MainThread Setting emoncmsorg pubchannels: ['ToRFM12']
2021-02-03 14:45:49,652 DEBUG    MainThread Setting emoncmsorg subchannels: ['ToEmonCMS']
2021-02-03 14:45:49,652 INFO     MainThread Setting emoncmsorg apikey: set
2021-02-03 14:45:49,653 INFO     MainThread Setting emoncmsorg url: https://emoncms.org
2021-02-03 14:45:49,654 INFO     MainThread Setting emoncmsorg senddata: 1
2021-02-03 14:45:49,654 INFO     MainThread Setting emoncmsorg sendstatus: 1
2021-02-03 14:52:06,228 DEBUG    MainThread Signal 15 received.
2021-02-03 14:52:06,243 INFO     MainThread Exiting hub...
2021-02-03 14:52:06,497 INFO     MainThread Exit completed
2021-02-03 14:52:09,225 INFO     MainThread EmonHub emonHub (emon-pi variant) v2.1.5
2021-02-03 14:52:09,226 INFO     MainThread Opening hub...
2021-02-03 14:52:09,227 INFO     MainThread Logging level set to DEBUG
2021-02-03 14:52:09,228 INFO     MainThread Creating EmonHubJeeInterfacer 'RFM2Pi'
2021-02-03 14:52:09,230 DEBUG    MainThread Opening serial port: /dev/ttyAMA0 @ 38400 bits/s
2021-02-03 14:52:11,234 WARNING  MainThread Device communication error - check settings
2021-02-03 14:52:11,235 INFO     MainThread Setting RFM2Pi baseid: 5 (5i)
2021-02-03 14:52:12,237 INFO     MainThread Setting RFM2Pi frequency: 433 (4b)
2021-02-03 14:52:13,239 INFO     MainThread Setting RFM2Pi group: 210 (210g)
2021-02-03 14:52:14,241 INFO     MainThread Setting RFM2Pi quiet: 1 (1q)
2021-02-03 14:52:15,243 INFO     MainThread Setting RFM2Pi calibration: 230V (1p)
2021-02-03 14:52:16,246 DEBUG    MainThread Setting RFM2Pi pubchannels: ['ToEmonCMS']
2021-02-03 14:52:16,247 DEBUG    MainThread Setting RFM2Pi subchannels: ['ToRFM12']
2021-02-03 14:52:16,248 INFO     MainThread Creating EmonHubMqttInterfacer 'MQTT'
2021-02-03 14:52:16,252 DEBUG    MainThread Setting MQTT pubchannels: ['ToRFM12']
2021-02-03 14:52:16,253 DEBUG    MainThread Setting MQTT subchannels: ['ToEmonCMS']
2021-02-03 14:52:16,253 INFO     MainThread Setting MQTT node_format_enable: 1
2021-02-03 14:52:16,254 INFO     MainThread Setting MQTT nodevar_format_enable: 1
2021-02-03 14:52:16,254 INFO     MainThread Setting MQTT nodevar_format_basetopic: emon/
2021-02-03 14:52:16,256 INFO     MainThread Creating EmonHubEmoncmsHTTPInterfacer 'emoncmsorg'
2021-02-03 14:52:16,258 DEBUG    MainThread Setting emoncmsorg pubchannels: ['ToRFM12']
2021-02-03 14:52:16,259 DEBUG    MainThread Setting emoncmsorg subchannels: ['ToEmonCMS']
2021-02-03 14:52:16,259 INFO     MainThread Setting emoncmsorg apikey: set
2021-02-03 14:52:16,260 INFO     MainThread Setting emoncmsorg url: https://emoncms.org
2021-02-03 14:52:16,260 INFO     MainThread Setting emoncmsorg senddata: 1
2021-02-03 14:52:16,261 INFO     MainThread Setting emoncmsorg sendstatus: 1
2021-02-03 14:56:52,008 DEBUG    MainThread Signal 15 received.
2021-02-03 14:56:52,096 INFO     MainThread Exiting hub...
2021-02-03 14:56:52,182 INFO     MainThread Exit completed
2021-02-03 14:59:13,394 INFO     MainThread EmonHub emonHub (emon-pi variant) v2.1.5
2021-02-03 14:59:13,395 INFO     MainThread Opening hub...
2021-02-03 14:59:13,396 INFO     MainThread Logging level set to DEBUG
2021-02-03 14:59:13,397 INFO     MainThread Creating EmonHubJeeInterfacer 'RFM2Pi'
2021-02-03 14:59:13,402 DEBUG    MainThread Opening serial port: /dev/ttyAMA0 @ 38400 bits/s
2021-02-03 14:59:15,405 WARNING  MainThread Device communication error - check settings
2021-02-03 14:59:15,407 INFO     MainThread Setting RFM2Pi baseid: 5 (5i)
2021-02-03 14:59:16,409 INFO     MainThread Setting RFM2Pi frequency: 433 (4b)
2021-02-03 14:59:17,411 INFO     MainThread Setting RFM2Pi group: 210 (210g)
2021-02-03 14:59:18,413 INFO     MainThread Setting RFM2Pi quiet: 1 (1q)
2021-02-03 14:59:19,415 INFO     MainThread Setting RFM2Pi calibration: 230V (1p)
2021-02-03 14:59:20,418 DEBUG    MainThread Setting RFM2Pi pubchannels: ['ToEmonCMS']
2021-02-03 14:59:20,419 DEBUG    MainThread Setting RFM2Pi subchannels: ['ToRFM12']
2021-02-03 14:59:20,421 INFO     MainThread Creating EmonHubMqttInterfacer 'MQTT'
2021-02-03 14:59:20,424 DEBUG    MainThread Setting MQTT pubchannels: ['ToRFM12']
2021-02-03 14:59:20,425 DEBUG    MainThread Setting MQTT subchannels: ['ToEmonCMS']
2021-02-03 14:59:20,426 INFO     MainThread Setting MQTT node_format_enable: 1
2021-02-03 14:59:20,426 INFO     MainThread Setting MQTT nodevar_format_enable: 1
2021-02-03 14:59:20,427 INFO     MainThread Setting MQTT nodevar_format_basetopic: emon/
2021-02-03 14:59:20,429 INFO     MainThread Creating EmonHubEmoncmsHTTPInterfacer 'emoncmsorg'
2021-02-03 14:59:20,431 DEBUG    MainThread Setting emoncmsorg pubchannels: ['ToRFM12']
2021-02-03 14:59:20,431 DEBUG    MainThread Setting emoncmsorg subchannels: ['ToEmonCMS']
2021-02-03 14:59:20,432 INFO     MainThread Setting emoncmsorg apikey: set
2021-02-03 14:59:20,433 INFO     MainThread Setting emoncmsorg url: https://emoncms.org
2021-02-03 14:59:20,434 INFO     MainThread Setting emoncmsorg senddata: 1
2021-02-03 14:59:20,434 INFO     MainThread Setting emoncmsorg sendstatus: 1
2021-02-03 15:00:09,522 DEBUG    MainThread Signal 15 received.
2021-02-03 15:00:09,640 INFO     MainThread Exiting hub...
2021-02-03 15:00:09,804 INFO     MainThread Exit completed
2021-02-03 15:02:15,609 INFO     MainThread EmonHub emonHub (emon-pi variant) v2.1.5
2021-02-03 15:02:15,610 INFO     MainThread Opening hub...
2021-02-03 15:02:15,611 INFO     MainThread Logging level set to DEBUG
2021-02-03 15:02:15,613 INFO     MainThread Creating EmonHubJeeInterfacer 'RFM2Pi'
2021-02-03 15:02:15,616 DEBUG    MainThread Opening serial port: /dev/ttyAMA0 @ 38400 bits/s
2021-02-03 15:02:17,620 WARNING  MainThread Device communication error - check settings
2021-02-03 15:02:17,621 INFO     MainThread Setting RFM2Pi baseid: 5 (5i)
2021-02-03 15:02:18,623 INFO     MainThread Setting RFM2Pi frequency: 433 (4b)
2021-02-03 15:02:19,626 INFO     MainThread Setting RFM2Pi group: 210 (210g)
2021-02-03 15:02:20,628 INFO     MainThread Setting RFM2Pi quiet: 1 (1q)
2021-02-03 15:02:21,630 INFO     MainThread Setting RFM2Pi calibration: 230V (1p)
2021-02-03 15:02:22,633 DEBUG    MainThread Setting RFM2Pi pubchannels: ['ToEmonCMS']
2021-02-03 15:02:22,634 DEBUG    MainThread Setting RFM2Pi subchannels: ['ToRFM12']
2021-02-03 15:02:22,635 INFO     MainThread Creating EmonHubMqttInterfacer 'MQTT'
2021-02-03 15:02:22,640 DEBUG    MainThread Setting MQTT pubchannels: ['ToRFM12']
2021-02-03 15:02:22,641 DEBUG    MainThread Setting MQTT subchannels: ['ToEmonCMS']
2021-02-03 15:02:22,642 INFO     MainThread Setting MQTT node_format_enable: 1
2021-02-03 15:02:22,642 INFO     MainThread Setting MQTT nodevar_format_enable: 1
2021-02-03 15:02:22,643 INFO     MainThread Setting MQTT nodevar_format_basetopic: emon/
2021-02-03 15:02:22,644 INFO     MainThread Creating EmonHubEmoncmsHTTPInterfacer 'emoncmsorg'
2021-02-03 15:02:22,646 DEBUG    MainThread Setting emoncmsorg pubchannels: ['ToRFM12']
2021-02-03 15:02:22,647 DEBUG    MainThread Setting emoncmsorg subchannels: ['ToEmonCMS']
2021-02-03 15:02:22,647 INFO     MainThread Setting emoncmsorg apikey: set
2021-02-03 15:02:22,648 INFO     MainThread Setting emoncmsorg url: https://emoncms.org
2021-02-03 15:02:22,649 INFO     MainThread Setting emoncmsorg senddata: 1
2021-02-03 15:02:22,649 INFO     MainThread Setting emoncmsorg sendstatus: 1
2021-02-04 07:53:50,432 INFO     MainThread EmonHub emonHub (emon-pi variant) v2.1.5
2021-02-04 07:53:50,434 INFO     MainThread Opening hub...
2021-02-04 07:53:50,435 INFO     MainThread Logging level set to DEBUG
2021-02-04 07:53:50,436 INFO     MainThread Creating EmonHubJeeInterfacer 'RFM2Pi'
2021-02-04 07:53:50,439 DEBUG    MainThread Opening serial port: /dev/ttyAMA0 @ 38400 bits/s
2021-02-04 07:53:52,443 WARNING  MainThread Device communication error - check settings
2021-02-04 07:53:52,444 INFO     MainThread Setting RFM2Pi baseid: 5 (5i)
2021-02-04 07:53:53,446 INFO     MainThread Setting RFM2Pi frequency: 433 (4b)
2021-02-04 07:53:54,448 INFO     MainThread Setting RFM2Pi group: 210 (210g)
2021-02-04 07:53:55,451 INFO     MainThread Setting RFM2Pi quiet: 1 (1q)
2021-02-04 07:53:56,453 INFO     MainThread Setting RFM2Pi calibration: 230V (1p)
2021-02-04 07:53:57,455 DEBUG    MainThread Setting RFM2Pi pubchannels: ['ToEmonCMS']
2021-02-04 07:53:57,456 DEBUG    MainThread Setting RFM2Pi subchannels: ['ToRFM12']
2021-02-04 07:53:57,458 INFO     MainThread Creating EmonHubMqttInterfacer 'MQTT'
2021-02-04 07:53:57,461 DEBUG    MainThread Setting MQTT pubchannels: ['ToRFM12']
2021-02-04 07:53:57,462 DEBUG    MainThread Setting MQTT subchannels: ['ToEmonCMS']
2021-02-04 07:53:57,463 INFO     MainThread Setting MQTT node_format_enable: 1
2021-02-04 07:53:57,463 INFO     MainThread Setting MQTT nodevar_format_enable: 1
2021-02-04 07:53:57,464 INFO     MainThread Setting MQTT nodevar_format_basetopic: emon/
2021-02-04 07:53:57,466 INFO     MainThread Creating EmonHubEmoncmsHTTPInterfacer 'emoncmsorg'
2021-02-04 07:53:57,468 DEBUG    MainThread Setting emoncmsorg pubchannels: ['ToRFM12']
2021-02-04 07:53:57,469 DEBUG    MainThread Setting emoncmsorg subchannels: ['ToEmonCMS']
2021-02-04 07:53:57,469 INFO     MainThread Setting emoncmsorg apikey: set
2021-02-04 07:53:57,470 INFO     MainThread Setting emoncmsorg url: https://emoncms.org
2021-02-04 07:53:57,470 INFO     MainThread Setting emoncmsorg senddata: 1
2021-02-04 07:53:57,471 INFO     MainThread Setting emoncmsorg sendstatus: 1
2021-02-04 07:56:34,327 DEBUG    MainThread Signal 15 received.
2021-02-04 07:56:34,393 INFO     MainThread Exiting hub...
2021-02-04 07:56:34,576 INFO     MainThread Exit completed
2021-02-04 07:57:57,896 INFO     MainThread EmonHub emonHub (emon-pi variant) v2.1.5
2021-02-04 07:57:57,897 INFO     MainThread Opening hub...
2021-02-04 07:57:57,899 INFO     MainThread Logging level set to DEBUG
2021-02-04 07:57:57,900 INFO     MainThread Creating EmonHubJeeInterfacer 'RFM2Pi'
2021-02-04 07:57:57,903 DEBUG    MainThread Opening serial port: /dev/ttyAMA0 @ 38400 bits/s
2021-02-04 07:57:59,906 WARNING  MainThread Device communication error - check settings
2021-02-04 07:57:59,908 INFO     MainThread Setting RFM2Pi baseid: 5 (5i)
2021-02-04 07:58:00,910 INFO     MainThread Setting RFM2Pi frequency: 433 (4b)
2021-02-04 07:58:01,913 INFO     MainThread Setting RFM2Pi group: 210 (210g)
2021-02-04 07:58:02,915 INFO     MainThread Setting RFM2Pi quiet: 1 (1q)
2021-02-04 07:58:03,917 INFO     MainThread Setting RFM2Pi calibration: 230V (1p)
2021-02-04 07:58:04,920 DEBUG    MainThread Setting RFM2Pi pubchannels: ['ToEmonCMS']
2021-02-04 07:58:04,921 DEBUG    MainThread Setting RFM2Pi subchannels: ['ToRFM12']
2021-02-04 07:58:04,922 INFO     MainThread Creating EmonHubMqttInterfacer 'MQTT'
2021-02-04 07:58:04,926 DEBUG    MainThread Setting MQTT pubchannels: ['ToRFM12']
2021-02-04 07:58:04,927 DEBUG    MainThread Setting MQTT subchannels: ['ToEmonCMS']
2021-02-04 07:58:04,927 INFO     MainThread Setting MQTT node_format_enable: 1
2021-02-04 07:58:04,928 INFO     MainThread Setting MQTT nodevar_format_enable: 1
2021-02-04 07:58:04,928 INFO     MainThread Setting MQTT nodevar_format_basetopic: emon/
2021-02-04 07:58:04,931 INFO     MainThread Creating EmonHubEmoncmsHTTPInterfacer 'emoncmsorg'
2021-02-04 07:58:04,932 DEBUG    MainThread Setting emoncmsorg pubchannels: ['ToRFM12']
2021-02-04 07:58:04,933 DEBUG    MainThread Setting emoncmsorg subchannels: ['ToEmonCMS']
2021-02-04 07:58:04,933 INFO     MainThread Setting emoncmsorg apikey: set
2021-02-04 07:58:04,934 INFO     MainThread Setting emoncmsorg url: https://emoncms.org
2021-02-04 07:58:04,935 INFO     MainThread Setting emoncmsorg senddata: 1
2021-02-04 07:58:04,935 INFO     MainThread Setting emoncmsorg sendstatus: 1
2021-02-04 08:01:55,138 DEBUG    MainThread Signal 15 received.
2021-02-04 08:01:55,227 INFO     MainThread Exiting hub...
2021-02-04 08:01:55,288 INFO     MainThread Exit completed
2021-02-04 08:03:18,319 INFO     MainThread EmonHub emonHub (emon-pi variant) v2.1.5
2021-02-04 08:03:18,320 INFO     MainThread Opening hub...
2021-02-04 08:03:18,321 INFO     MainThread Logging level set to DEBUG
2021-02-04 08:03:18,322 INFO     MainThread Creating EmonHubJeeInterfacer 'RFM2Pi'
2021-02-04 08:03:18,325 DEBUG    MainThread Opening serial port: /dev/ttyAMA0 @ 38400 bits/s
2021-02-04 08:03:20,329 WARNING  MainThread Device communication error - check settings
2021-02-04 08:03:20,330 INFO     MainThread Setting RFM2Pi baseid: 5 (5i)
2021-02-04 08:03:21,332 INFO     MainThread Setting RFM2Pi frequency: 433 (4b)
2021-02-04 08:03:22,334 INFO     MainThread Setting RFM2Pi group: 210 (210g)
2021-02-04 08:03:23,336 INFO     MainThread Setting RFM2Pi quiet: 1 (1q)
2021-02-04 08:03:24,339 INFO     MainThread Setting RFM2Pi calibration: 230V (1p)
2021-02-04 08:03:25,341 DEBUG    MainThread Setting RFM2Pi pubchannels: ['ToEmonCMS']
2021-02-04 08:03:25,342 DEBUG    MainThread Setting RFM2Pi subchannels: ['ToRFM12']
2021-02-04 08:03:25,353 INFO     MainThread Creating EmonHubMqttInterfacer 'MQTT'
2021-02-04 08:03:25,356 DEBUG    MainThread Setting MQTT pubchannels: ['ToRFM12']
2021-02-04 08:03:25,357 DEBUG    MainThread Setting MQTT subchannels: ['ToEmonCMS']
2021-02-04 08:03:25,358 INFO     MainThread Setting MQTT node_format_enable: 1
2021-02-04 08:03:25,358 INFO     MainThread Setting MQTT nodevar_format_enable: 1
2021-02-04 08:03:25,359 INFO     MainThread Setting MQTT nodevar_format_basetopic: emon/
2021-02-04 08:03:25,361 INFO     MainThread Creating EmonHubEmoncmsHTTPInterfacer 'emoncmsorg'
2021-02-04 08:03:25,364 DEBUG    MainThread Setting emoncmsorg pubchannels: ['ToRFM12']
2021-02-04 08:03:25,364 DEBUG    MainThread Setting emoncmsorg subchannels: ['ToEmonCMS']
2021-02-04 08:03:25,365 INFO     MainThread Setting emoncmsorg apikey: set
2021-02-04 08:03:25,366 INFO     MainThread Setting emoncmsorg url: https://emoncms.org
2021-02-04 08:03:25,366 INFO     MainThread Setting emoncmsorg senddata: 1
2021-02-04 08:03:25,367 INFO     MainThread Setting emoncmsorg sendstatus: 1

Hi,

Yes, initially it was a time problem as we are using it offline. we fitted RTC and configured it to solve that. now i am getting communication error in logs

Hi Paul/Brian,

I compared two Emonpi and bought both together. The one i installed RTC have different version and the highlighted one is the one without RTC have different config versions. I think that’s why its causing the COMM error.

Thanks. I know its too messy and trying to fix it. Thanks your help again


One is showing as 10.2.7 and the other 10.2.6 - the app versions just come with the emoncms updates.

1 Like

Thanks. Can please tell me how to fix the communication error. As i looked into everything including config files but I am unable to solve it.

Thanks Again

I think it is best to tells us, what you have done (install RTC - what system setting were changed) and what the symptoms are.

I wonder if you have changed the serial port for the UART.

1 Like

Hi Brian,

Below the commands i used for RTC configuration

sudo apt-get install python-smbus i2c-tools
sudo i2cdetect -y 1
sudo nano/boot/config.txt

add:

dtoverlay=i2c-rtc,ds3231

at the end of the file

reboot

Run:

sudo apt-get -y remove fake-hwclock
sudo update-rc.d -f fake-hwclock remove

sudo nano /lib/udev/hwclock-set

#if [ -e /run/systemd/system ] : then
# exit 0
# fi

sudo hwclock -D -r
sudo hwclock -w
sudo hwclock -r

Edit - reformatted text for readability. BT, Moderator

The symptoms are that the device isn’t providing any inputs, on the emonLcd there are no power reading and vrms gives a message of please wait. i have attached the images in the loop above.
Thanks

As asked before…

You may have disrupted the I2C setup for this - not something I know anything about.

Can you please provide the output from ls-la /dev/tty* please although @pb66 is probably a better person to help with this.

tty.txt (3.9 KB)

Hi Brian,

i was receiving input before RTC fitting. but the status of that input was inactive. i was missing some data due incorrect time. When i solder the RTC and configured the RTC after that I am unbale to receiving any input. Please find the attached for tty*.

Thanks

Inactive means you were not receiving an input. That was just saying that at some point in the distant past you did receive an input (as was mentioned previously).

If you were not getting inputs before doing this then something else is wrong.

Is this a standard EmonPi setup?