Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
livebox:hah_hahnode:nanode_gateway [2013/06/02 04:38] – brett | livebox:hah_hahnode:nanode_gateway [2014/01/20 09:11] (current) – [Operation] brett | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Nanode Gateway ====== | ====== Nanode Gateway ====== | ||
- | {{: | + | The Nanode is an RF enabled, and Ethernet enabled, AVR328P boards using the same development tools as the Arduino. |
+ | |||
+ | They are available for purchase here: http:// | ||
+ | |||
+ | {{: | ||
+ | |||
+ | source: {{: | ||
+ | ===== Architecture ===== | ||
+ | |||
+ | How we are going to use this is to have it pretend to be an [[livebox/ | ||
+ | |||
+ | This one embedded device can replace the base jeenode + xap-serial running on the livebox. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | It does this by acting as a pseudo xap-serial service, however it will only generate Serial.Received class messages (for now). | ||
+ | |||
+ | ===== Operation ===== | ||
+ | |||
+ | Once the firmware is flashed, the only details that require configuration are the NODE ID, Group and RF Frequency. These must be done via the serial interface used to flash the device. | ||
+ | |||
+ | Once operational, | ||
+ | < | ||
+ | xap-hbeat | ||
+ | { | ||
+ | v=12 | ||
+ | hop=1 | ||
+ | uid=FFABCD00 | ||
+ | class=xap-hbeat.alive | ||
+ | source=dbzoo.nanode.gateway | ||
+ | interval=60 | ||
+ | port=0 | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | An RF packet that can be decoded will be emitted using the pseudo port / | ||
+ | < | ||
+ | xap-header | ||
+ | { | ||
+ | v=12 | ||
+ | hop=1 | ||
+ | uid=FFABCD00 | ||
+ | class=Serial.Comms | ||
+ | source=dbzoo.nanode.gateway | ||
+ | } | ||
+ | Serial.Received | ||
+ | { | ||
+ | port=/ | ||
+ | data=OK 3 50 1 178 0 | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Integration into the [[livebox/ | ||
+ | < | ||
+ | function init() | ||
+ | | ||
+ | { [2] = RoomNode{deviceid=" | ||
+ | [3] = RoomNode{deviceid=" | ||
+ | [4] = RoomNode{deviceid=" | ||
+ | [5] = RoomNode{deviceid=" | ||
+ | [7] = RoomNode{deviceid=" | ||
+ | }) | ||
+ | end | ||
+ | </ | ||
+ | |||
+ | This configuration can be seen in the xFxViewer output with corresponding nanode gateway packets also being shown. | ||
+ | |||
+ | {{: | ||