emocms - No data has been recieved from the RFM12Pi in the last 30s.

Hi,

I'm trying to get emoncms v8.4 running but it can't seem to get any inputs.

http://localhost/emoncms/raspberrypi/config error message is

"No data has been recieved from the RFM12Pi in the last 30s..."

 

The RFM12Pi is working and getting data from the emontx.

So I think the emoncms config is not right since it isn't communicating with the RFM12Pi.

 

My setup is -

  • rpi + RFM12Pi + ext hdd -> emontx v3
  • Raspian and emoncms is running off the hdd.
  • In http://localhost/emoncms/raspberrypi/config I've tried different settings for network group and nodeID eg 210, 10.
  • my inittab has this line commented: # T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
  • my /boot/cmdline.txt:
    wc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
  • minicom output is

    Current configuration:
    65 i1 g0 @ 433 MHz  Lock: 1

    G 210 10 2 1 151 8 140 0 4 0 249 0
    G 210 10 165 8 35 1 143 0 5 0 248 0
    G 210 10 147 8 42 1 146 0 5 0 248 0
    G 210 10 7 1 42 1 138 0 5 0 250 0
    G 210 10 14 1 47 1 142 0 4 0 250 0

The g0 doesn't look right? How do I change the configuration?

 

 

mtran's picture

Re: emocms - No data has been recieved from the RFM12Pi in the last 30s.

ok, I've set the group to 210 and node ID to 10 , so now minicom looks like this

Current configuration:
74 i10 g210 @ 433 MHz  Lock: 1

 10 5 1 2 1 129 0 5 0 248 0
 10 16 1 3 1 131 0 5 0 247 0
 10 9 1 253 0 129 0 4 0 248 0
 10 2 1 4 1 129 0 4 0 249 0
 10 10 1 248 0 126 0 5 0 248 0
 10 5 1 6 1 130 0 4 0 249 0
 10 17 1 2 1 130 0 4 0 249 0
 

Q. am I supposed to install emonhub as well?

(I followed this guide to install emoncms onto the hdd - https://github.com/emoncms/emoncms/blob/master/docs/LinuxInstall.md)

ukmoose's picture

Re: emocms - No data has been recieved from the RFM12Pi in the last 30s.

I'm not convinced this is going to solve all your problems but how to change the configuration is described here:

http://wiki.openenergymonitor.org/index.php?title=RFM12Pi_V2 under the section debugging.

 

Also can you confirm if your Raspberry Pi is a "Pi 2" ( new this week) or an older one.

 

pb66's picture

Re: emocms - No data has been recieved from the RFM12Pi in the last 30s.

my /boot/cmdline.txt:
wc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait

​Is this a typo ? If it is correct you are not running off the harddrive as the Pi will look to the SD for the filesystem.

​ok, I've set the group to 210 and node ID to 10 , so now minicom looks like this

This is the base station node id (base id) so shouldn't be same as the emonTx as each node should have a unique id, the OEM standard is to use node id 15 for the base id.

The "raspberrypi module" is no longer recommended, you should ideally be using emonhub instead. So i'm not sure what you have installed there but "http://localhost/emoncms/raspberrypi/config" shouldn't be the place to change the RFM2Pi settings.

Tell us a bit more about the software you have on the Pi and is you followed any guides can you link them.

Paul

mtran's picture

Re: emocms - No data has been recieved from the RFM12Pi in the last 30s.

thank you for your replies,

1. I'm using the rpi B+ (not the RPi 2, although I do have one).

2. root=/dev/mmcblk0p2 - sorry, yes typo its root=/dev/sda2

3. node id 15 - yes, straight after my post I changed it to 15. So now its

Current configuration:
79 i15 g210 @ 433 MHz  Lock: 1

 10 192 1 37 0 134 0 6 0 245 0
 10 165 1 38 0 135 0 6 0 245 0

 

4. I followed: Install Emoncms v8 on Ubuntu / Debian Linux from https://github.com/emoncms/emoncms/blob/master/docs/LinuxInstall.md which doesn't mention emonhub.

I'll go and install emonhub now.

 

 

 

 

 

pb66's picture

Re: emocms - No data has been recieved from the RFM12Pi in the last 30s.

If you use this one line 

git clone https://github.com/emonhub/dev-emonhub.git ~/dev-emonhub && ~/dev-emonhub/upgrade

It will remove the raspberrypi module and fully install emonhub at the same time. You will just have to edit emonhub.conf with the emoncms apikey.

If both the raspberrypi module and emonhub are installed it will cause conflict as only one device can use serial port.

​Paul

mtran's picture

Re: emocms - No data has been recieved from the RFM12Pi in the last 30s.

Hi Paul,

I just installed emonhub using
git clone https://github.com/emonhub/dev-emonhub.git && dev-emonhub/install

and everything works now. I have inputs back.

but I'll try yours now.

 

thank you.

 

pb66's picture

Re: emocms - No data has been recieved from the RFM12Pi in the last 30s.

No!!!!!! don't do that!

If you run "upgrade" you will be duplicating the "install" script and will probally cause some issues, if you have installed emonhub already just delete the .../Modules/raspberrypi folder.

Paul

EDIT - I'm not sure if you read this in time or not, but I have now added a check to the "upgrade" to skip installing if there is a pre-existing install.

Comment viewing options

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