I'm just starting out with the HAH and a couple of jeenodes.
I've got them setup with roomnode2 and rf12demo and can see data coming into the HAH from the remote device using microcom -
[RF12demo.7] A i1 g212 @ 433 MHz
Available commands:
<nn> i - set node ID (standard node ids are 1..26)
(or enter an uppercase 'A'..'Z' to set id)
<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)
t - broadcast max-size test packet, with ack
...,<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 PB1 on or off
<n> q - set quiet mode (1 = don't report bad packets)
Remote control commands:
<hchi>,<hclo>,<addr>,<cmd> f - FS20 command (868 MHz)
<addr>,<dev>,<on> k - KAKU command (433 MHz)
Current configuration:
A i1 g212 @ 433 MHz
? 18 36 216 230 116 139 102 48 20 206 172 103 247 98 27 65 26 14 75 93 77
? 34 229 215 36 57 146 85 99 47 192 154 100 180 96 3 118 68 229 192 140 71
? 12 223 131 243 41 180 74 219 223 103 56 213 236 106 179 30 100 113 160 128 108
? 184 216 15 59 106 108 242 94 19 156 12 93 49 25 8 13 232 64 227 123 188
> 1q
OK 2 0 0 211 0
The remote device is configured as node 2 and I have added the following to /etc/plugboard/jeenodeApplet.lua
# cat jeenodeApplet.lua
--[[
JeeNode to xAP Endpoint mapping
--]]
_DEBUG=1
module(...,package.seeall)
monitor = require("xap.jeenode").monitor
RoomNode = require("xap.roomnode").RoomNode
OutputNode = require("xap.outputnode").OutputNode
info={
version="2.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{base="dbzoo.livebox.jeenode:attic", endpoints={temp=1,lobat=1,light=1}, ttl=900},
[3] = RoomNode{base="dbzoo.livebox.jeenode:basement", endpoints={temp=1,lobat=1}, ttl=900},
[4] = OutputNode{base="dbzoo.wombat.jeenode:bedroom",endpoints={p1="light",p2="heater",p3="amp",p4=0}},
}
function init()
monitor(jeemon, nodes)
end
However, the messages I am receiving in xfx don't seem to contain the information received in the serial data -
xap-header
{
v=12
hop=1
uid=FF00D804
class=xAPBSC.info
source=dbzoo.livebox.jeenode:attic.temp
}
input.state
{
state=?
text=?
}
I've tried running xap-plugboard with the debug option -d 9 but it doesn't appear to be supported with v2? I've also tried increasing the debug value in the jeenodeApplet.lua file but again it doesn't seem to log any more than at level 1?
Can anyone help with this please?
Many thanks,
Andy