First open energy monitor project

Hello everybody. My name is Michelangelo and I'm trying to mount, set and configure the whole oem system. Now I encountered some troubles. The basestation is a Raspberry pi with rfm12pi module. This module is placed up on the gpio pin . EMONTX is 3 version with CT current sensors. 

I'm a beginner. When I set up the rfm module as written in the wiki, the service rfm12piphp does not exists so I cannot continue the procedure. I would know how resolve this.

 

pb66's picture

Re: First open energy monitor project

The wiki does need updating maybe as the "rfm12piphp" is rarely used, if at all now.

However the idea is the same for which ever way you are communicating with the RFM2Pi board, the common method currently is emonHub.

​To stop emonHub use 

sudo service emonhub stop

and to start again

sudo service emonhub start

Paul

 

mike_86's picture

Re: First open energy monitor project

Hi Paul and thanks now I can start the service. When the module is attached the OS goes very slow, when the module isn't in place it works fine. 

In order to send - acquire data, can I directly communicate with emontx using the miniport usb ?

 

Robert Wall's picture

Re: First open energy monitor project

Do you mean the USB socket on the emonTX? - No, that is for power only.

pb66's picture

Re: First open energy monitor project

We maybe able to help you some more if you tell us more about what you are doing. 

Normally you can put the SD card in plug on the rfm2pi and it all works. You will need to set up some details in emonhub.conf either before you insert the SD card to the Pi or after the Pi has booted up via ssh or keyboard and monitor.

I'm not sure why you were following the steps in the wiki, were you trying to upload a different sketch to the one pre-loaded?

You should not need to start the emonHub service unless you stop it as it should start automatically at boot up.

You can use a FTDI programmer to connect to the emonTx v3's 6pin FTDI header from the Pi's usb for debugging or you can create a direct-serial connection in place of the RFM2Pi module if you want the emonTx permanently connected to the Pi.

However if you are having "serial port issue" as your "When the module is attached the OS goes very slow, when the module isn't in place it works fine."  comment may suggest, then using the same serial port to connect directly with the Pi may yield the same result. 

Paul

mike_86's picture

Re: First open energy monitor project

I have to monitor home energy consumption and temperature so that some instruments power off if consumption or temperature are higher than a value. So that it will be done a statistical analysis of the effective energy and temperaure spent in time to manage every situations.

The raspian os (debian in this case) lags every time the rfm module is connected to gpio. I have not upload any sketches, I have only installed arduino and downloaded the rfm firmware on the sd of raspberry. Firstly I will try a wireless connection between emontx and radsperrypi. Is it posible upload arduino sketches wirelessly on the arduino emontx? I know it is possible directly using usb to serial converter.

 

pb66's picture

Re: First open energy monitor project

Are you using a shop bought SD card, downloaded image or did you build yourself? if the latter did you follow a guide? if so which?

How are you experiencing " lag" ? does it just taking longer to do a specific task or are you measuring the speed somehow?

I have only installed arduino and downloaded the rfm firmware on the sd of raspberry

The Arduino IDE is a "graphical interface" and won't run correctly in read-only mode, are you running read-only? are you running headless (via ssh) or using keyboard and screen? from the command line or xstart?

Is it posible upload arduino sketches wirelessly on the arduino emontx? 

No, not wirelessly.

Paul

mike_86's picture

Re: First open energy monitor project

I'm using the sd card with original raspbian image downloaded from main raspberry site and mounted. So I had to configure rfmv2 as explained in this guide: http://wiki.openenergymonitor.org/index.php?title=RFM12Pi_V2

I already tried to use pre built image but It were impossible modify system configuration files like keyboard, neither with super user root privileges. Now , using the original image, all work fine without rfm module.

The lag consists of a slow time reaction by the computer, some inconveniences like black screen sometimes , the cursor don't respond, the system don't respond to keyboard tastes. I'm running using keyboard and screen using lxterminal.

 Can I only use a FTDI Serial TTL-232 USB Cable like this:http://www.adafruit.com/products/70 for pc connection or I need the serial to uart programmer ?

 

pb66's picture

Re: First open energy monitor project

Unable to post full reply in the thread so I have started another thread First open energy monitor project (PART 2)

Paul

Comment viewing options

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