Endpoint mapping issue?

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

Member for

16 years 10 months

brett

12 years 9 months ago

Make sure xap-serial is running.  I know you where messing around in the assists area, perhaps you turned it off.

My feed for my jeenodes some from an external RF xap-serial gateway (virtual serial port) however the LUA code path is pretty much the same internally.  Mine looks like this - which is a bit funky I admit.

module(...,package.seeall)
local monitor = require("xap.jeenode").monitor
RoomNode = require("xap.roomnode")
info={
   version="4.0", description="JeeNode"
}
function init()
   monitor({ target="dbzoo.nanode.gateway", port="/dev/ttyUSB0" },
           { [2] = RoomNode{deviceid="nanode",instance="jeenode:2", endpoints={lobat=1,temp=1,light=1},ttl=900},
             [3] = RoomNode{deviceid="nanode",instance="jeenode:3", endpoints={lobat=1,temp=1,light=1},ttl=900},
             [4] = RoomNode{deviceid="nanode", instance="jeenode:4", endpoints={lobat=1,temp=1,light=1},ttl=900},
             [5] = RoomNode{deviceid="nanode", instance="jeenode:5", endpoints={temp=1,lobat=1,light=1,humi=0,moved=1}, ttl=900},
             [7] = RoomNode{deviceid="nanode", instance="jeenode:7", endpoints={lobat=1,temp=1,humi=1},ttl=1800},
           })
end

Brett

Member for

13 years 11 months

AndrewJ

12 years 9 months ago

Thanks Brett,

 

Thats fixed it, it was indeed the Xap-serial, i checked PS and it wasnt listed, i assumed as microm was seeing the data everything was ok

 

cheers for the tip

 

Andrew