Feeds not updating

I am an absolute beginner. I have the EmonTx self assembled and flashed with EmonTx_CT123 and the green LED blinks every 5 secs. I assume it is OK. The base is a Pi Ver 2 with the ready assembled RFM12B module. The software is from the 'Ready to Go SD card Emoncms'.

Firefox browser open Emoncms and I have created 2 inputs with  http://192.168.1.79/emoncms/input/post.json?node=10&csv=100,200,300&apik... The created the feeds as described.

Problem is the feeds are not getting updated automatically. I have to do manual updates via the browser using the command as above. Then it updates once and I have to repeat this process for more updates.

What am I doing wrong?

Grateful for any advice.

 

Paul Reed's picture

Re: Feeds not updating

Please check top left of your emoncms webpage, there should be a 'Raspberry  Pi' link, select that, and look if you have a green box with the text 'RFM12 to Pi interface script is up and running' at the top of the screen?

Also, on the same page, check that your RFM12B is set up correctly, ie have you used a 433Mhz or 868Mhz RFM12B, and check Network group setting - it should match whatever the group setting is in the emonTX - the default is 210, whilst the Node ID's must be different for the emonTX & RaspPI

Have you selected the right frequency setting in the emonTX sketch?

Paul

Nihal K's picture

Re: Feeds not updating

Thanks for the reply.

Yes, the web page has a green box and the frequency is 433Mhz,  group=210, node=15 on Pi. The EmonTx is same frequency, node= 10 and group =210; it is defined on the sketch as well.

The PHP log is as below

MESSAGE RX:> 15i
BASEID SET CORRECTLY
DATA RX:
MESSAGE RX:> 4b
FREQUENCY SET CORRECTLY
DATA RX:
MESSAGE RX:> 210g
GROUP SET CORRECTLY
DATA RX:
MESSAGE RX:> 15i
BASEID SET CORRECTLY
DATA RX:
MESSAGE RX:> 4b
FREQUENCY SET CORRECTLY
DATA RX:
MESSAGE RX:> 210g
GROUP SET CORRECTLY
DATA RX:
MESSAGE RX:> 15i
BASEID SET CORRECTLY
DATA RX:
MESSAGE RX:> 4b
FREQUENCY SET CORRECTLY
DATA RX:
MESSAGE RX:> 210g
GROUP SET CORRECTLY
DATA RX:
MESSAGE RX:> 15i
BASEID SET CORRECTLY
DATA RX:
MESSAGE RX:> 4b
FREQUENCY SET CORRECTLY
DATA RX:
MESSAGE RX:> 210g
GROUP SET CORRECTLY
DATA RX:

Also tried this with minicom

Welcome to minicom 2.6.1

OPTIONS: I18n
Compiled on Apr 28 2012, 19:24:31.
Port /dev/ttyAMA0

Press CTRL-A Z for help on special keys

> 0e

Available commands:
  123 x      - Toggle configuration change protection, 1=Unlocked
  <nn> i     - set node ID (standard node ids are 1..26)
  <n> b      - set MHz band (4 = 433, 8 = 868, 9 = 915)
  <nnn> g    - set network group (RFM12 only allows 212, 0 = any)
  <n> c      - set collect mode (advanced, normally 0)
  ...,<nn> a - send data packet to node <nn>, with ack
  ...,<nn> s - send data packet to node <nn>, no ack
  <n> l      - turn activity LED on DIG8 on or off
Current configuration:
79 i15 g210 @ 433 MHz  Lock: 1

Regards

Nihal

 

Paul Reed's picture

Re: Feeds not updating

Can you try;

$ sudo service rfm12piphp restart log

followed by;

$ tail -F -n 40  /var/log/rfm12piphp.log

Paul

Nihal K's picture

Re: Feeds not updating

Hi Paul, Here is the log, Thanks for helping.

pi@raspberrypi ~ $ sudo service rfm12piphp restart log
Log is turned on
Restarting RPIpi@raspberrypi ~ $ tail F -n 40 /var/log/rfm12piphp.log
GROUP SET CORRECTLY
DATA RX:
MESSAGE RX:> 15i
BASEID SET CORRECTLY
DATA RX:
MESSAGE RX:> 4b
FREQUENCY SET CORRECTLY
DATA RX:
MESSAGE RX:> 210g
GROUP SET CORRECTLY
DATA RX:
MESSAGE RX:> 15i
BASEID SET CORRECTLY
DATA RX:
MESSAGE RX:> 4b
FREQUENCY SET CORRECTLY
DATA RX:
MESSAGE RX:> 210g
GROUP SET CORRECTLY
DATA RX:
MESSAGE RX:> 15i
BASEID SET CORRECTLY
DATA RX:
MESSAGE RX:> 4b
FREQUENCY SET CORRECTLY
DATA RX:
MESSAGE RX:> 210g
GROUP SET CORRECTLY
DATA RX:
DATA RX:ands:
DATA RX: DATA RX:ggle conMESSAGE RX:> i     BASEID ERROR, RE SENDING BASEID
DATA RX:DIG8 on DATA RX:3 MHz  LMESSAGE RX:> 15i
BASEID SET CORRECTLY
DATA RX:
MESSAGE RX:> 4b
FREQUENCY SET CORRECTLY
DATA RX:
MESSAGE RX:> 210g
GROUP SET CORRECTLY
DATA RX:
pi@raspberrypi ~ $

Hope this is helpful

Nihal

Paul Reed's picture

Re: Feeds not updating

The settings look OK, this looks more like a hardware problem than software.
Have you got another emonTX module to help identify whether it's a transmitting or receiving problem?

A more knowledgeable contributor may be able to help further.

Paul 

Nihal K's picture

Re: Feeds not updating

Thanks, I will await some other contribution.

Nihal

Comment viewing options

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