Coder Social home page Coder Social logo

s5uishida / cc2650-driver Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 2.0 18 KB

a java library for using TI SensorTag CC2650 by bluez-dbus with BlueZ

License: MIT License

Java 100.00%
bluetooth bluez dbus java osgi sensortag cc2650 temperature humidity barometric-pressure optical gyroscope accelerometer magnetometer raspberry-pi notification

cc2650-driver's Introduction

cc2650-driver

cc2650-driver is a java library for using TI SensorTag CC2650 by bluez-dbus with BlueZ 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 (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 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

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.