Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
livebox:hah_hahnode:outputnode [2015/01/24 23:21] – brett | livebox:hah_hahnode:outputnode [2015/02/03 09:47] – [Debugging] brett | ||
---|---|---|---|
Line 5: | Line 5: | ||
{{: | {{: | ||
- | Snippet of configuration information needed in the jeenodeApplet.lua source. | + | Snippet of configuration information needed in the jeenodeApplet.lua source. Here we are sending to an RF node configured as unit 7. |
< | < | ||
OutputNode = require(" | OutputNode = require(" | ||
local nodes = { | local nodes = { | ||
- | [ID]=OutputNode{instance=" | + | [7]=OutputNode{instance=" |
} | } | ||
</ | </ | ||
Line 33: | Line 33: | ||
This would result in the OutputNode lua code sending to xap-serial the following | This would result in the OutputNode lua code sending to xap-serial the following | ||
- | {{{ | + | < |
xap-header | xap-header | ||
{ | { | ||
Line 48: | Line 48: | ||
port=/ | port=/ | ||
} | } | ||
- | }}} | + | </ |
Controlling an OutputNode from the Joggler in this video we simply toggle 4x LEDs on/off. | Controlling an OutputNode from the Joggler in this video we simply toggle 4x LEDs on/off. | ||
Line 69: | Line 69: | ||
</ | </ | ||
+ | ====== Debugging ====== | ||
+ | |||
+ | Flash the HAHCentral and Output nodes sketches, tethering each to your computer. | ||
+ | Connect to each @ 57600 baud. | ||
+ | |||
+ | When powered on the following should be displayed | ||
+ | < | ||
+ | [HAHCentral.1]1 g212 @ 868Mhz | ||
+ | OK 8 0 | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | [outputNode.1] i8 g212 @ 868Mhz | ||
+ | OUTPUT 0 0 0 0 0 | ||
+ | </ |