Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Moved from https://github.com/quarks-edge/quarks/issues/85 .
[dlaboss]
I did a bit of investigation of the use of Bluecove (http://www.bluecove.org/) as suggested in that original issue:
- BlueCove implements JSR-82 "javax.bluetooth" but development seems to have stopped in 2008
- "doesn't implement BLE" [1]
- challenges making it work on a Raspberry Pi [4], making it work on a Pi [5]
- some of it is GPL (unacceptible) but some (the part of interest?) is AL-2.0
Intel TinyB [2] - what platforms? "everything worked" [1]
Android BLE API [3]
Looks like Java ME SDK 3.0 include Bluetooth from in the "Wireless Toolkit" [6]
(present in "SE embedded" or "ME embedded" ?)
For some applications there was a suggestion to just the standard linux Bluetooth stack "BlueZ" utils
e.g., "sudo hcitool lescan" and process the command output.
I've also seen an approach using python to access the bluez stack APIs to perform a "device scan" and emit the
desired info to stdout.
Edgent's Command connector (CommandStreams) provides a convenient way to integrate with external commands should use of external commands be an acceptable solution.
[1] http://stackoverflow.com/questions/28855288/java-j2se-bluetooth-low-energy-ble
[2] intel TinyB https://software.intel.com/en-us/java-for-bluetooth-le-apps
[3] android BLE API https://developer.android.com/guide/topics/connectivity/bluetooth-le.html
[4] Pi/Bluecove nightmare https://www.raspberrypi.org/forums/viewtopic.php?f=81&t=120317
[5] 2015 Pi/Bluecove success? http://lukealderton.com/blog/posts/2015/january/raspberry-pi-bluetooth-using-bluecove-on-raspbian.aspx
[6] http://www.oracle.com/technetwork/java/download-135801.html