https://github.com/s5uishida/cc2650-driver
a java library for using TI SensorTag CC2650 by bluez-dbus with BlueZ
https://github.com/s5uishida/cc2650-driver
accelerometer barometric-pressure bluetooth bluez cc2650 dbus gyroscope humidity java magnetometer notification optical osgi raspberry-pi sensortag temperature
Last synced: about 2 months ago
JSON representation
a java library for using TI SensorTag CC2650 by bluez-dbus with BlueZ
- Host: GitHub
- URL: https://github.com/s5uishida/cc2650-driver
- Owner: s5uishida
- License: mit
- Created: 2019-07-31T13:10:07.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-11T10:26:00.000Z (almost 6 years ago)
- Last Synced: 2025-03-27T18:52:29.748Z (6 months ago)
- Topics: accelerometer, barometric-pressure, bluetooth, bluez, cc2650, dbus, gyroscope, humidity, java, magnetometer, notification, optical, osgi, raspberry-pi, sensortag, temperature
- Language: Java
- Homepage:
- Size: 17.6 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cc2650-driver
cc2650-driver is a java library for using [TI SensorTag CC2650](http://processors.wiki.ti.com/index.php/CC2650_SensorTag_User's_Guide) by [bluez-dbus](https://github.com/hypfvieh/bluez-dbus) with [BlueZ](http://www.bluez.org/) version 5.50 on linux OS. I releases this in the form of the Eclipse plug-in project.
You need Java 8 or higher.CC2650 is powered by a button battery **CR2032**. From CC2650, cc2650-driver get battery level and the following sensor information.
- System information
- Firmware version
- Battery level
The battery level is available for firmware 1.30 or higher.- Sensors
- IR Temperature (Object / Ambience)
- Relative humidity
- Barometric pressure
- Optical
- Movement (Gyroscope / Accelerometer / Magnetometer)There are two ways to acquire data from various sensors of CC2650.
- Direct reading
- Notification
The data acquisition interval that can be specified by notification is 2550 (msec) at maximum.In addition, for `Movement`, when CC2650 detects a shake using Wake-On-Motion function, it may notify ` Movement` data at a time interval specified by notification for 10 seconds.
I do not know how long CC2650 battery is effective. In addition, it seems that the sensors of `Movement` has relatively large power consumption. When the battery level reached approximately 60%, empirically CC2650 could not work properly.
I have confirmed that it works in Raspberry Pi 3B ([Raspbian Buster Lite OS](https://www.raspberrypi.org/downloads/raspbian/) (2019-07-10)).
## Install Raspbian Buster Lite OS (2019-07-10)
The reason for using this version is that it is the latest as of July 2019 and [BlueZ](http://www.bluez.org/) 5.50 is included from the beginning.## Install jdk8 on Raspberry Pi 3B
For example, the installation of OpenJDK 8 is shown below.
```
# apt-get update
# apt-get install openjdk-8-jdk
```## Install git
If git is not included, please install it.
```
# apt-get install git
```## Use this with the following bundles
- [SLF4J 1.7.26](https://www.slf4j.org/)
- [Apache Commons Lang 3.9](https://commons.apache.org/proper/commons-lang/)
- [dbus-java-osgi 3.2.1-SNAPSHOT](https://github.com/hypfvieh/dbus-java)
- [bluez-dbus-osgi 0.1.2-SNAPSHOT](https://github.com/s5uishida/bluez-dbus-osgi)I would like to thank the authors of these very useful codes, and all the contributors.
## How to use
The following sample codes included in CC2650Driver.java will be helpful.
- CC2650Driver#testRead()
- CC2650Driver#testNotification()
- CC2650Driver#testWakeOnMotion()