Difference between revisions of "TI SensorTag"

From eLinux.org
Jump to: navigation, search
m (Overview)
m (Overview)
Line 5: Line 5:
  
 
== Overview ==
 
== Overview ==
--[[File:sensorTagBBB.jpg|frame|BBB interfaceing with Adafruits [http://www.adafruit.com/product/1327 BLE Module ]]]
+
--[[File:sensorTagBBB.jpg|frame|BBB interfaceing with Adafruit's [http://www.adafruit.com/product/1327 BLE Module ]]]
  
 
The [http://processors.wiki.ti.com/index.php/Bluetooth_SensorTag?INTC=SensorTag&HQS=sensortag-wiki TI BLE SensorTag] is a portable low-power module that uses Blueooth Low Energy (BLE, Bluetooth 4.0) and various sensors to communicate data to any BLE reciever.  
 
The [http://processors.wiki.ti.com/index.php/Bluetooth_SensorTag?INTC=SensorTag&HQS=sensortag-wiki TI BLE SensorTag] is a portable low-power module that uses Blueooth Low Energy (BLE, Bluetooth 4.0) and various sensors to communicate data to any BLE reciever.  

Revision as of 22:26, 14 April 2014



Overview

--

BBB interfaceing with Adafruit's BLE Module

The TI BLE SensorTag is a portable low-power module that uses Blueooth Low Energy (BLE, Bluetooth 4.0) and various sensors to communicate data to any BLE reciever.

TI Sensortag Wiki


The python scripts that interface with the BeagleBone Black were gently modified from msaunby's Raspberry Pi Scripts.

System Outline

The Beaglebone Black runs BoneServer.js which creates a webserver on port ____.

The user selects the ballAndCube picture, which launches ballAndCube.html, ballAndCube.js, and the sensortag.py locally on the server (i.e. the BLE dongle is connected to the server not the client).

The sensortag.py python script outputs data, which is handled as an event streamer by node.js, to stream the data to ballAndCube.js which renders object, and interprets the Gyroscope/Accelerometer Data.

Since the python script, which uses gattool, runs in its own process, the data that it receives is streamed without buffering to the client's ballAndCube.js script.

Bone Usage

FlexSensorWiring.jpg


Reading and Interpreting Analog Input Data

Sample C Code


****************************************************************/
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <poll.h>
#include <signal.h>
#include <unistd.h>