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/02/12 09:44] – [Theory of operation] minerva9 | livebox:hah_hahnode:bluenode [2014/02/18 10:40] – [Theory of operation] minerva9 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== BlueNode ====== | ====== BlueNode ====== | ||
- | Integration of a BlueTooth | + | Integration of a Bluetooth |
{{: | {{: | ||
Line 8: | Line 8: | ||
===== Theory of operation ===== | ===== Theory of operation ===== | ||
- | The BlueTooth | + | The Bluetooth |
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 14: | Line 14: | ||
[[livebox/ | [[livebox/ | ||
- | The decoder is an Lua applet that creates a BSC endpoint dynamically sending a xAPBSC ON event when the device is first registered. | + | The decoder is a Lua applet that creates a BSC endpoint dynamically sending a xAPBSC ON event when the device is first registered. |
These on/off events can then be used by other scripts to drive an action. | These on/off events can then be used by other scripts to drive an action. | ||
Line 41: | Line 41: | ||
OK | OK | ||
</ | </ | ||
- | The ERROR:(17) can be safely | + | The ERROR:(17) can be safely |
- | You will notice the RF module is disable, that due to me running the bluetooth device attached to my arduino | + | You will notice the RF module is disabled, that' |
- | A packet will arrive on the Receiver. | + | A packet will arrive on the Receiver. |
< | < | ||
[HAHCentral.1]1 g212 @ 868Mhz | [HAHCentral.1]1 g212 @ 868Mhz | ||
Line 67: | 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 110: | Line 110: | ||
</ | </ | ||
- | All going well you should see an endpoint dynamically appear in xFXViewer when your Bluetooth device comes into range. | + | All going well, you should see an endpoint dynamically appear in xFXViewer when your Bluetooth device comes into range. |
===== Wiring / Source ===== | ===== Wiring / Source ===== | ||
Line 126: | Line 126: | ||
We don't connect the 5v pins together, 3.3v is sufficient. | We don't connect the 5v pins together, 3.3v is sufficient. | ||
- | The source code for the SKETCH is call BlueNode | + | The source code for the SKETCH is called |
* 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:// | ||