Help troubleshooting communication between raspberry pi and emontx

I think I am nearly there. But I am stuck in getting data from the emontx through to the RFM12B and therefor to show on emoncms. I would also like to know how to add inputs on emoncms. At the moment I have a single CT sensor connected to the emontx.

emontx
-------
sketch uploaded contains:

const int CT1 = 1;
const int CT2 = 0;                                                      // Set to 0 to disable CT channel 2
const int CT3 = 0;                                                      // Set to 0 to disable CT channel 3

#define freq RF12_868MHZ                                                // Frequency of RF12B module can be RF12_433MHZ, RF12_868MHZ or RF12_915MHZ. You should use the one matching the module you have.
const int nodeID = 10;                                                  // emonTx RFM12B node ID
const int networkGroup = 210;                                           // emonTx RFM12B wireless network group - needs to be same as emonBase and emonGLCD

const int UNO = 1;         

-------------
led lit with flash off every 10 seconds

from Minicom on raspberry pi
------------

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:
65 i1 g210 @ 868 MHz  Lock: 1

Reading the documentation, should I be seeing data received

emoncms
-------
input page
No inputs created
-------------------
Documentation mentions a 'raspberry pi' menu option to configure frequency, group and base id
I dont have this option, i have an image in the same place but when click on this icon I get an almost blank page
After clicking admin menu option, I just get database update and check

RFM12B
------
led continously lit

jonbev's picture

Re: Help troubleshooting communication between raspberry pi and emontx

Have you installed the raspberryPi module?

 

-------------------------

Install the raspberrypi module
Navigate to the emoncms modules folder $ cd emoncms/Modules. Download the Raspberry Pi emoncms module into the Modules folder $ git clone https://github.com/emoncms/raspberrypi.git
Or if not using git:
cd /var/www/emoncms/Modules
sudo wget -O raspberrypi.tar.gz https://github.com/emoncms/raspberrypi/tarball/master
sudo tar xvfz raspberrypi.tar.gz
sudo mv -i emoncms-raspberrypi-b9703b5 raspberrypi

-------------------------

gb095666's picture

Re: Help troubleshooting communication between raspberry pi and emontx

I think the problem appears to be with your RFM12B module, the LED should flash roughly in time with the emonTX LED, I would make sure your build looks ok and check you have aligned it correctly on the pins, although being able to see it via Minicom seems to suggest the pins are OK.

betaalf's picture

Re: Help troubleshooting communication between raspberry pi and emontx

Thanks for replies. Will have a look again at the weekend.

Comment viewing options

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