Difference between revisions of "ECE597 Project SensorTag 3D"
(→Installation Instructions) |
(→Installation Instructions) |
||
Line 40: | Line 40: | ||
== Installation Instructions == | == Installation Instructions == | ||
+ | *Get the project repository | ||
+ | <source lang="bash"> git clone https://github.com/Litou1/sensorTag3D </source> | ||
*Install necessary packages, libbluetooth-dev bluez sensortag by running the install.sh script. | *Install necessary packages, libbluetooth-dev bluez sensortag by running the install.sh script. |
Revision as of 19:12, 18 October 2014
Embedded Linux Class by Mark A. Yoder
Team members: Leihao Wei
Contents
Grading Template
I'm using the following template to grade. Each slot is 10 points. 0 = Missing, 5=OK, 10=Wow!
00 Executive Summary 00 Installation Instructions 00 User Instructions 00 Highlights 00 Theory of Operation 00 Work Breakdown 00 Future Work 00 Conclusions 00 Demo 00 Late Comments: I'm looking forward to seeing this. Score: 10/100
(Inline Comment)
Executive Summary
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 receiver. The purpose of this project is to build an application interacting with a beaglebone to track the SensorTag’s position and rotation in 3D. We'll start off from the previous work [TI SensorTag]. In the end, we expect to see it sending updates faster than once per second.
Packaging
- Beaglebone Black
- TI SensorTag SensorTag
- Bluetooth CSR 4.0 dongle
Installation Instructions
- Get the project repository
git clone https://github.com/Litou1/sensorTag3D
- Install necessary packages, libbluetooth-dev bluez sensortag by running the install.sh script.
- Retrieve the original python BLE scripts from this github repo [1].
- Retrive the BLE Address of your sensorTag. Press the side button on your sensorTag so that it enters discovery mode.
$hciconfig hci0 up
$hciconfig
hci0: Type: BR/EDR Bus: USB
BD Address: 00:1A:7D:DA:71:05 ACL MTU: 310:10 SCO MTU: 64:8
UP RUNNING
RX bytes:61905 acl:3067 sco:0 events:745 errors:0
TX bytes:2967 acl:74 sco:0 commands:118 errors:0
$hcitool lescan
LE Scan ...
90:59:AF:0B:84:57 (unknown)
90:59:AF:0B:84:57 SensorTag
^^^ Is the BLE address of your sensorTag. It seems the 3.8 kernel has issues with hot plugging. Mine does the same, but if I plug in the bluetooth dongle and then power up, it works just fine. Also, get the 5v plug if it fails to work.
- Execute the sensortag.py script to determine if it executes properly (i.e. your linux distribution comes with pexpect); if not, retrieve pexpect online (I used v3.2)
You should get something like this:
$python sensortag.py [address]
Preparing to connect. You might need to press the side button...
char-write-cmd 0x29 01
char-write-cmd 0x26 0100
char-write-cmd 0x31 01
char-write-cmd 0x2e 0100
char-write-cmd 0x5b 07
char-write-cmd 0x58 0100
T006 26.3
...
Now, it's reading the IR temperature sensor.
...TO BE CONTINUED
User Instructions
Once everything is installed, how do you use the program? Give details here, so if you have a long user manual, link to it here.
Highlights
Here is where you brag about what your project can do.
Include a YouTube demo.
Theory of Operation
Give a high level overview of the structure of your software. Are you using GStreamer? Show a diagram of the pipeline. Are you running multiple tasks? Show what they do and how they interact.
Work Breakdown
List the major tasks in your project and who did what.
Also list here what doesn't work yet and when you think it will be finished and who is finishing it.
Future Work
Suggest addition things that could be done with this project.
Conclusions
Give some concluding thoughts about the project. Suggest some future additions that could make it even more interesting.
Embedded Linux Class by Mark A. Yoder
References:
- ↑ [http://elinux.or
Heading text
g/TI_SensorTag TI_SensorTag]