Difference between revisions of "TI SensorTag"

From eLinux.org
Jump to: navigation, search
m (Overview)
m (System Outline)
Line 14: Line 14:
 
The python scripts that interface with the BeagleBone Black were modified from [https://github.com/msaunby/ble-sensor-pi msaunby's] Raspberry Pi Scripts.
 
The python scripts that interface with the BeagleBone Black were modified from [https://github.com/msaunby/ble-sensor-pi msaunby's] Raspberry Pi Scripts.
  
== Inputs and Outputs ==
+
== 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 ==
 
== Bone Usage ==

Revision as of 21:05, 14 April 2014



Overview

--

Inputs and Outputs for FlexSensor

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 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>