livebox:hah_hahnode:bluenode

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
livebox:hah_hahnode:bluenode [2014/02/18 10:36] – [BlueNode] minerva9livebox:hah_hahnode:bluenode [2014/02/18 10:42] (current) – [Observations] 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.  As each device reports in, its device ID will be transmitted via the RFM12B. A total of 6 bytes are needed to represent the 48 bit address, to a receiving unit.+The Bluetooth unit is connected to a JeeNode and it will perform an inquiry check for available devices every 30 seconds (adjustable).  As each device reports in, its device ID will be transmitted via the RFM12B. A total of 6 bytes are needed to represent the 48 bit address, to a receiving unit.
  
 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/xap_serial]] will pickup the serial transmission from our receiver node and transmit this data as an xAP message for decoding. [[livebox/xap_serial]] will pickup the serial transmission from our receiver node and transmit this data as an xAP message for decoding.
  
-The decoder is an Lua applet that creates a BSC endpoint dynamically sending a xAPBSC ON event when the device is first registered.  As long as the device updates itself within 35 seconds, the endpoint will remain alive.  When the device moves out of range a reaper will take care of expiring the endpoint sending an xAPBSC OFF event and removing the endpoint.+The decoder is Lua applet that creates a BSC endpoint dynamically sending a xAPBSC ON event when the device is first registered.  As long as the device updates itself within 35 seconds, the endpoint will remain alive.  When the device moves out of range a reaper will take care of expiring the endpoint sending an xAPBSC OFF event and removing the endpoint.
  
 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 22: Line 22:
 ===== Data Flow ===== ===== Data Flow =====
  
-With Serial debugging enable on the bluenode sketch this is the sample output.+With Serial debugging enabled on the bluenode sketch this is the sample output.
 <code> <code>
 [BlueNode.1] - RF disabled [BlueNode.1] - RF disabled
Line 170: Line 170:
 ===== Observations ===== ===== Observations =====
  
-This code has been tested with the following bluetooth devices and the following has been observed.+This code has been tested with the following Bluetooth devices and the following has been observed.
  
-In general "Smart phones" have a habit of powering off the bluetooth device when they sleep, which sort of kills this idea stone dead.   Working on a way around this.+In general "Smart phones" have a habit of powering off the Bluetooth device when they sleep, which sort of kills this idea stone dead.   Working on a way around this.
  
 ^ Device ^ Year ^ Observation ^ ^ Device ^ Year ^ Observation ^
Line 181: Line 181:
 Ed. Sure smarts phones with all their apps are cool but they have taken their eye off the most important thing, in my opinion, which a phone should have; a long battery life and being able to make phone calls.  They are so worried about battery drain everything gets turned off, even things you actually want left on. Ed. Sure smarts phones with all their apps are cool but they have taken their eye off the most important thing, in my opinion, which a phone should have; a long battery life and being able to make phone calls.  They are so worried about battery drain everything gets turned off, even things you actually want left on.
  
-Until I can go a week on one charge I'm sticking to my trusty Nokia, where I can leave bluetooth on permanently without causing me duress.  Oh and it works with this code  :)+Until I can go a week on one charge I'm sticking to my trusty Nokia, where I can leave Bluetooth on permanently without causing me duress.  Oh and it works with this code  :)
  
  • livebox/hah_hahnode/bluenode.txt
  • Last modified: 2014/02/18 10:42
  • by minerva9