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:bluenode [2014/01/07 10:19] – brett | livebox:hah_hahnode:bluenode [2014/02/13 15:10] – [Data Flow] minerva9 | ||
---|---|---|---|
Line 8: | Line 8: | ||
===== Theory of operation ===== | ===== Theory of operation ===== | ||
- | The BlueTooth unit is connected to a JeeNode and it will perform an inquiry check for available devices every 30 seconds. | + | The BlueTooth unit is connected to a JeeNode and it will perform an inquiry check for available devices every 30 seconds. |
On the receiver side the RF is decoded and transmitted as an ASCII string out the serial port for decoding. | On the receiver side the RF is decoded and transmitted as an ASCII string out the serial port for decoding. | ||
Line 21: | Line 21: | ||
===== Data Flow ===== | ===== Data Flow ===== | ||
+ | |||
+ | With Serial debugging enable on the bluenode sketch this is the sample output. | ||
+ | < | ||
+ | [BlueNode.1] - RF disabled | ||
+ | SYNC> AT | ||
+ | OK | ||
+ | SYNC> AT+NAME=blueNode | ||
+ | OK | ||
+ | SYNC> AT+ROLE=1 | ||
+ | OK | ||
+ | SYNC> AT+INIT | ||
+ | ERROR:(17) | ||
+ | SYNC> AT+INQM=0, | ||
+ | OK | ||
+ | ASYNC> AT+INQ | ||
+ | OK | ||
+ | +INQ: | ||
+ | device=12: | ||
+ | OK | ||
+ | </ | ||
+ | The ERROR:(17) can be safely ignore that just means the SPP profile lib has already been initialized. | ||
+ | You will notice the RF module is disable, that due to me running the bluetooth device attached to my arduino which does not have any RF device on it so I disabled that code whilst testing. | ||
A packet will arrive on the Receiver. | A packet will arrive on the Receiver. | ||
Line 45: | Line 67: | ||
</ | </ | ||
- | That something doing the decoding is an applet running inside [[livebox/ | + | That 'something' |
We are running the Lua decoder in debug mode so the lifecycle of an endpoint can be seen. | We are running the Lua decoder in debug mode so the lifecycle of an endpoint can be seen. | ||
Line 107: | Line 129: | ||
* http:// | * http:// | ||
- | The LUA decoder logic is found in bluenode.lua or on your HAH system in / | + | The Lua decoder logic is found in bluenode.lua or on your HAH system in / |
* http:// | * http:// | ||
Line 118: | Line 140: | ||
module(..., | module(..., | ||
local monitor = require(" | local monitor = require(" | ||
- | RoomNode = require(" | + | RoomNode = require(" |
- | BlueNode = require(" | + | BlueNode = require(" |
</ | </ | ||