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
Next revisionBoth sides next revision
livebox:hah_hahnode:bluenode [2014/02/05 01:05] – [Configuration] brettlivebox: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.  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.  As each device reports inits 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 21: Line 21:
  
 ===== Data Flow ===== ===== Data Flow =====
 +
 +With Serial debugging enable on the bluenode sketch this is the sample output.
 +<code>
 +[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,5,15
 +OK
 +ASYNC> AT+INQ
 +OK
 ++INQ:12:37:E90912,520204,7FFF
 +device=12:37:E90912 type=520204 rssi=7FFF
 +OK
 +</code>
 +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.  The first byte is the sender node ID, in this case its node 18.  The remaining data is the Device ID packed into 6 bytes. A packet will arrive on the Receiver.  The first byte is the sender node ID, in this case its node 18.  The remaining data is the Device ID packed into 6 bytes.
Line 45: Line 67:
 </code> </code>
  
-That something doing the decoding is an applet running inside [[livebox/hah_plugboard_v2|plugboard]].+That 'somethingdoing the decoding is an applet running inside [[livebox/hah_plugboard_v2|plugboard]].
  
 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://livebox-hah.googlecode.com/svn/trunk/userapps/arduino/Bluetooth/   * http://livebox-hah.googlecode.com/svn/trunk/userapps/arduino/Bluetooth/
  
-The LUA decoder logic is found in bluenode.lua or on your HAH system in /usr/share/lua/5.1/xap+The Lua decoder logic is found in bluenode.lua or on your HAH system in /usr/share/lua/5.1/xap
   * http://livebox-hah.googlecode.com/svn/trunk/userapps/hah/xap-plugboard/xap   * http://livebox-hah.googlecode.com/svn/trunk/userapps/hah/xap-plugboard/xap
  
  • livebox/hah_hahnode/bluenode.txt
  • Last modified: 2014/02/18 10:42
  • by minerva9