JeeNodes

Description

Issues around HAHNode and JeeNodes

Forums

I would like to extend the reliability of the jeenode communications.   Most are fine but one is some way away in the garage or the garden in the summer.  Previous plans had focussed on extending the ethernet network and moving the livebox.

I am now wondering if it would be possible to plug a basenode into a Wemos D1 mini (ESP8266), load it with LUA and get it to run plugboard and jeenodeApplet.

Presumably duplicate xap signals on the network won't matter.

With a mixture of 433mhz and wifi I could get the range I need. ...  And more fun than just fitting a bigger antenna!

Guru input most welcome before I waste a lot of time.

Kim

Forums

So, having acquired a some blank atmega328p chips and several basenode kits, I wanted to find a way of programming the blanks without buying an ISP programmer (yes I know they only cost a few £'s but that wasn't the point).

After reading all sorts of information I was intrigued by this https://jeelabs.org/2011/05/17/switching-to-optiboot/ which shows a jeenode programming a jeenode.  I then stumbled across this nice diagram

So I wired two jeenodes together with all pins going to the same except pin 16 of the donor chip going to the reset pin 1 of the receiver chip and followed the instructions in https://www.arduino.cc/en/Tutorial/ArduinoToBreadboard on burning a bootloader.

Hit the button - and it worked!

Here's the back and front of my rudimentary programmer.  It set fusebits to FF DA FD CF.

 

 

Forums

Having worked well for 5 years it is time for a network service.

One of my jeenodes has suffered somewhat being outside in a plastic bag.  Known as compost node (and in some months as "are the pipes too cold" node) it has now stopped working.  My normal first approach is to reprogram the main chip.

However that involves decomissioning the room node which has a socket which has been used many times.

I would like to get hold of 1) a roomnode and 2) a cable to connect - since I believe all the jeenodes apart from roomnode cannot 

be made to work with the serial cable even if you put a connector on.

On the sales board I see there is a cable available but not a roomnode.  Is there any way I can get one - maybe even pay someone for a second

hand one?

Kim

Forums

Has anyone looked into using an optical sensor hooked up to a room node to capture smartmeter pulses?

im considering replacing the current cost clamp with something more accurate with pulse counting or prehaps use both as a comparison

Current Cost have a unit called the optismart but im finding it practically impossible to find one as i beleive they had issues and pulled the unit from release.

the openenergymonitor project store sells readers and transmitters so we could interface one a plugboard script and a serial port but im thinking a modified node would be a cheaper approach

 

Andrew

Forums

Hi,

i have 5 jeenodes as Roomnodes perfectly up and running.

Now i wanted to change one of these to an Outputnode.

When i change the state of a digital point (e.g. p1) i can see the output state changing from off to on in the xfx Viewer as it schould be,

but on the node, nothing happens.

There is also no Serial.Comms Class where I would see a Serial.Sent command or something like this in the xfx Viewer.

It seems to me as if the command would be ignored by the HAH and doesn`t come to the hahcentral node to be sent to the peripheral node.

What did i do wrong? Where can i debug für things going wrong?

Forums

Hi Brett,

was wondering if you could please give the HAHCentral sketch a quick look over for me.

I am trying to use your newer version for the first time and have it setup as a roomnode also but using 1 wire rather the DHT.

there seems to be an error in the serial output from this with an extra ' ' character being sent after node id but I have managed to sort this for my node.

however, I still am not properly decoding the payload temp even though I have checked and double checked the structure of the payload matches the lua decoder e.g (8,1,7,-10,1)

i am getting negative temps for a supposedly room temp reading suggesting the raw data is being sliced/compiled totally wrong. 

The data from the serial output of the central node shows OK 1 0 0 80 3 0 0 (once the extra blank is removed) which makes me think it's the sketch rather than the lua that incorrect.

I noticed you have used a union on this sketch for the payload, (presumably cos your transmitting over serial rather than rf12?) is this all working ok at your end? no obvious errors that you can see in the code?

the setup in question is not local (Brothers house) hence the reason for asking as I cannot easily debug. I suspect I may have done something wrong when adding 1wire to the central sketch but looking over my mods I cannot see what.

thanks,

Garry

Forums

I have no data coming through the jeenodes, or the other receiver nodes.

I can see the data from the nodes via xap-serial and I know plugboard is running as I can still control the dim level on my lights via a plugboard script but I see no data being parsed by the jeenode, current cost, or weather station applets.

Any pointers to what I should be looking at? I've got a little rusty on this.

Data showing via xap-serial

xap-header

{

v=12

hop=1

uid=FF00D500

class=Serial.Comms

source=dbzoo.beaglebone.Serial

}

Serial.Received

{

port=/dev/ttyUSB2

data=OK 8 0 0 206 0

}

 

Oh and hello everybody, not been on for a while

Forums

I had a major power spike a few weeks ago and my cc lead got fried (along with livebox)

basenode as also not working. so i replaced it.

output below does this look right? as i am not seeing any "interpretaed" packets on my joggler.

 

how do i debug this problem?

 

login as: root
root@192.168.0.124's password:
# microcom -s 57600 /dev/ttyUSB0

[RF12nocfg.1] A i1 g212 @ 868 MHz

Current basenode configuration:
 A i1 g212 @ 868 MHz
OK 5 180 6 178 241 0
OK 2 0 0 50 2
OK 5 182 6 178 241 0
OK 5 182 6 178 241 0
 ? 187 113 222 104 156 39 194 245 30 103 21 68 69 76 225 206 239 98 103 209 137
OK 5 183 6 178 241 0
OK 5 183 6 178 241 0
 ? 190 243 225 204 197 108 98 156 13 223 70 81 235 137 126 212 129 100 153 120 66
OK 5 183 6 178 242 0



Forums

The Airwicks are good. They look nice and blend in quite well but in some places they just don't work. 

I wanted a similar hiding place for a node on the landing and with no suitable flat surface to place an Airwick I was on the hunt. (I did have an Airwick suspended upside down on the ceiling but I have to admit, it looked a little odd)

I found this ceiling mounted PIR that wasn't much more expensive than an Airwick on a certain auction site. http://www.amazon.co.uk/gp/product/B007H5SSQ4/ref=oh_details_o01_s00_i0…

A plus side to this was that SWMBO liked the look of it.

So hacking time...the unit comes with a PIR sensor but it is mains powered and the PCB is quite spacious.

I removed the PCB and started reorganising the internals but would it fit a battery clip, the node and a PIR +

The PIR I used give a source output so no need for pullup in code and the output is high when movement seen so you have to change the PIR input in the roomnode sketch. I also fitted a DHT22 instead of the DS to give me humidity as well as temperature.

This is the updated roomnode sketch that I have working for me (you may have to mod bits)

Forums

Recovered from a soft brick the other week (possible web hack on my livebox) now backup and running on bretts latest beta 311.10

however for the life of me i cant seem to get my room node to map to the endpoint in XFX Viewer

i can see the data coming in with microcom -s 57600 /dev/ttyUSB0 as below


[RF12nocfg.1] A i1 g212 @ 868 MHz

Current basenode configuration:
 A i1 g212 @ 868 MHz
OK 2 7 0 10 3

and my Roomnode is on ID 2 as detailed in my jeenodeapplet

info={
   version="4.0", description="JeeNode"
}

local jeemon={
      port="/dev/ttyUSB0",
      baud=57600,
      stop=1,
      databits=8,
      parity="none",
      flow="none"
}

-- Keyed by NODE ID
local nodes = {
   [2] = RoomNode{instance="jeenode:room1", endpoints={temp=1,light=1,humi=1,moved=1,lobat=1}, ttl=900},

message from XFX viewer shows no data depite seeing the serial data OK on USB0

xap-header
{
v=12
hop=1
uid=FF00D804
class=xAPBSC.info
source=dbzoo.livebox.jeenode:room1.temp
}
input.state
{
state=?
text=?
}

A little bit puzzled...

Andrew