Roomnodes

10 replies [Last post]
kim
Offline
Throwleigh, United Kingdom
Joined: 1 Dec 2010

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

mark_baldwin
Offline
Blackburn, United Kingdom
Joined: 19 May 2012
Hiya Kim,Like many of us in

Hiya Kim,

Like many of us in here we only pop on infrequently these days as the system is so stable (thank you) 

Are you still in need of a roomnode? I have some spares (Why buy 1 when you can by 10 ? :) )

kim
Offline
Throwleigh, United Kingdom
Joined: 1 Dec 2010
Hi MarkThanks for replying -

Hi Mark

Thanks for replying - yes I would be interested in two if possible.  Email is kim@btinternet.com

I agree about the reliability.

Regards

Kim 

mark_baldwin
Offline
Blackburn, United Kingdom
Joined: 19 May 2012
email sent

email sent

kim
Offline
Throwleigh, United Kingdom
Joined: 1 Dec 2010
Sorted...

......thanks to Mark for sending me stuff.  I am now progressing well with repairing my system, discovering that the reason one wasn't working was simply because the RFM12 module had changed frequency to 433mhz.

Looking at all the stuff on Wemos D1 mini and IOT dashboards, I am realising just how far ahead Brett's xap stuff was.  I still can't

find something free like Xlively which will give me flexible graphs easily.

So now I am wondering if I can easily integrate the esp8266 toys but make use of the xap protocol and xlively platform.  Probably a step too far for me - but ideas welcome.  I see brett did do some esp8266 stuff a while back.

Regards

 

Kim 

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Hey Kim thanks - Its

Hey Kim thanks - Its suprising that 5yrs has passed and people are starting to catch up with what we have achived here using xAP.  There is so much that was ahead of its time and in some cases still ahead.

Any of the roomnodes you can communicate with using serial, its just a matter of what firmware you have flashed down on the AVR.   I'm pretty sure Derek could rustle up a pcb.

On the ESP front I'm trying to recall if I managed to get xAP running on these.  From memory I didn'y using LUA as UDP broadcast was not supported and I had to use an MQTT bridge.  This did work pretty well.

http://www.homeautomationhub.com/content/esp8266-very-cheap-wifi-iot-module

I believe the LUA library has advanced somewhat and the ESP chips have more memory so it might be possible to run a fully native LUA/XAP stack on them.  Most certainly if you drop back to C setting up an xAP stack would work without any issue.  I've got a couple of those unit here so I'll give it a bash.

Brett

kim
Offline
Throwleigh, United Kingdom
Joined: 1 Dec 2010
Interesting...

.....  I think before there was not enough memory.  Now you can get a Wemos D1 mini for £2.35 delivered (albeit with a delay) and 4M memory.  

I have always been right on the margin with transmitting distance for the jeenodes from the compost bin (!) - and if I could work out how to plug a basenode into the usb of a wemos then I could use it to put xap messages on my home network via wifi.  I don't know really how it works, but I have two liveboxes - one records the jeenode stuff and puts it on the network and another picks it up and publishes it to xlively - which platform still has the ability to produce different length graphs (selected by the user) which I can't find elsewhere (free at least).

868mhz goes through granite walls better than wifi 2.4ghz (and certainly better than 5ghz wifi).

All input most welcome.  

mark_baldwin
Offline
Blackburn, United Kingdom
Joined: 19 May 2012
Glad you got sorted

Glad you could get back up and running. As for the RFM changing frequency, it's happened to me in the past, once you realise what the problem is it's easily sorted but so easy to overlook.

kim
Offline
Throwleigh, United Kingdom
Joined: 1 Dec 2010
rekindled interest...

So I got stuff from Mark Baldwin and Derek and fairly rapidly got my two non functioning jeenodes working.  Then I had to work out what to do with the extra jeenodes I was given.  

Mark had sent me (kindly more than I asked for) a jeenode in an airwick enclosure.  I was intrigued by the soldered molex pins - since I thought you couldn't program jeenodes in any way other than reverting the software to HAHcentral and moving the chip into the basenode.  It was working on ID 2 which clashed with another jeenode I have running.  So I decided to reprogram the RF12 by reverting to HAHcentral etc in accordance with the instructions.  Trying to use the Arduino IDE it wouldn't work,  using the USB in the livebox didn't work.  So I set about learning how to program the chip assuming there was no bootloader (thinking maybe the bootloader had been overwritten).  Getting into all sorts of interesting areas - bit banging, ISP connectors.  Was reading about repairing jeenodes in this article https://jeelabs.org/2010/06/09/repairing-a-faulty-atmega/ 

In readiness I tried out https://jeelabs.org/2012/03/07/which-boot-loader-do-i-have/ for my working jeenode and it gave

[bootCheck.2]

   CRC 2048b @ 0x7800=88C8

   CRC 512b @ 0x&E00=A3E1

Boot loader: (UNKNOWN)

Then i read that early jeenodes were based on Uno and not Duemilanove.  So before starting to try and wire up the ICSP wires I changed the Arduino to Uno - and it worked - loading in the boot loader check which then gave me
[bootCheck.2]
   CRC 2048b @ 0x7800=CD70
   CRC 512b @ 0x&E00=FD70
Boot loader: Optiboot 4.4
And now I have loaded HAHcentral and can now reprogram this chip for other experiments.
I have one question for Brett or anyone who may know:
In the http://www.dbzoo.com/livebox/hah_hahnode section talking about programming using an Arduino ISP - it gives details of fuses as
Lockbits FF, Fusebits low FF, high D0, extended FF.
But in http://www.homeautomationhub.com/content/jeenode-rf12demo-bootloader Brett dishes out a new jeenode-rf12demo-bootloader.zip
saying " Fuse: FD DA FF Lock: C"    So I am a bit confused.  Not a problem with Mark's chip -'cos presumably I can leave the fuses alone, but Derek has sent me 
some completely unprogrammed ones - and challenged me to get a RFM69CW working (which should have a more sensitive radio).
There you go - as ever all input welcome.  I think I am late to the arduino programming game, but it is great fun nevertheless.  Sorry about formatting - can't correct it.
brett
Offline
Providence, United States
Joined: 9 Jan 2010
Reading fuse bits: Fuse

Reading fuse bits: Fuse bits: http://www.engbedded.com/fusecalc/
http://www.martyncurrey.com/arduino-atmega-328p-fuse-settings/

CKSEL0/1/2/3 control the clock. Turning all these off low FF selects the external resonator as the roomnodes have one.

D0 controlls a couple of thing but the difference between D0 and DA is the size of the reserved bootloader blocks.
Depending which bootloader is used you may need to reserve more space for it.

DA - reserves 512 bytes.
D0 - reserves 2048 bytes.

The fuse bits should be set based on what bootloader you have installed.

kim
Offline
Throwleigh, United Kingdom
Joined: 1 Dec 2010
more enlightenment...

.... thank you.  Reading mark's fuses I get low DE high DE ext FD lock CF.   Decoding the differences was interesting - at least I know how to make it work.

I seem to do all this with sketch changes at present - this one was from 

https://arduino.stackexchange.com/questions/24859/how-do-i-read-the-fuse...

Hardware Info