Jeenode issue

5 replies [Last post]
g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011

Well i got the jeenode so started to play, the problem is the xap-serial is not picking it up (but is running)

This is my config file and the photo shows my putty sessions.

--[[
    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
IRNode = require("xap.irnode").IRNode

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.1.jeenode:pond", endpoints={temp=1,lobat=0}, ttl=900},
}

function init()
   monitor(jeemon, nodes)
end

 

 

Anyone got any pointers?

brett
Offline
Providence, United States
Joined: 9 Jan 2010
That won't work

Due to some things hardcoded into the LUA code jeenodes are not supported on INSTANCE flavoured liveboxes that is "dbzoo.livebox.1.jeenode:pond" if you want to do this you've need to copy out some of the code already in /usr/share/lua/5.1/xap modify and get it to load in preference.   For now you need to use a non-instance (1) flavoured configuration.  Log an issue for this so its tracked.

I actually ran into this yesterday when I ported some of the the livebox stuff to run natively on a joggler.

Brett

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
Ta

understood will go and buy a usb powered hub.

 

which i think is what you mean i should do :)

 

ta Brett

brett
Offline
Providence, United States
Joined: 9 Jan 2010
unpowered should be fine

I think you might find an unpowered hub will be ok a JeeNode draws bugger all - Brett

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
yes but

you and Derek keep adding functionality, like CC HAHnodes, SMS and possibly usb disk drives for extra code....next it will be WX stns and USB remote devices

 

so i think a powered one might be a necessity...Dean

brett
Offline
Providence, United States
Joined: 9 Jan 2010
JeeNode support on instance liveboxes

I've checked in a change to support xap-serial on instance liveboxes you will get this supported in the next build, its a getting tricky for me to test all this now as I have packed up my livebox for shipping.... however I run xap-serial on my joggler and I was able to back out my device specific changes and use this "standard" code so it should be fine on your livebox.  We'll see.

http://code.google.com/p/livebox-hah/issues/detail?id=30&can=1

Brett

Hardware Info