summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-04-09 01:02:40 +0200
committerSven Gothel <[email protected]>2020-04-09 01:02:40 +0200
commit8891be2fd6ecb4386ee7bdbb61ccc209b54f5bcf (patch)
tree0d54edb80e50c8389ce340e3e66dd35d0f5fa4b3 /java
parentdb63cc6278beed8a7fe2899af9f31995796a9651 (diff)
Implement direct_bt: Direct Bluetooth access via Linux's Kernel BlueZ protocol stack w/o D-Bus bluetoothd.
By dropping BlueZ userspace D-Bus bluetoothd, we target high-performance reliable bluetooth support with least dependencies for embedded device configurations. See COPYING, describing which Linux Kernel BlueZ IOCTL information has been included in the source tree. We claim Linus Torvalds's Linux Kernel license exception regarding kernel syscalls (ioctl): <https://github.com/torvalds/linux/blob/master/LICENSES/exceptions/Linux-syscall-note> and hence maintain this project's license. The new direct_bt feature set is organized as follows - include/cppunit - api/direct_bt - api/ieee11073 - src/direct_bt - examples/direct_bt Note that the C++ direct_bt layer is not backward compatible to tinyb. Since the Java layer still needs to be completed, it has to be seen whether we will achieve compatibility or drop the original D-Bus tinyb module altogether in favor of a more streamlined API and implementation. Current state allows scanning for LE devices, connecting and parsing GATT plus receiving notifications and indications. See examples/direct_bt_scanner/dbt_scanner.cpp. The Linux Kernel BlueZ is configured via module MgmtComm.[hpp/cpp]
Diffstat (limited to 'java')
-rw-r--r--java/jni/CMakeLists.txt2
-rw-r--r--java/jni/HCIAdapter.cxx4
-rw-r--r--java/jni/HCIDevice.cxx4
-rw-r--r--java/jni/HCIGattCharacteristic.cxx4
-rw-r--r--java/jni/HCIGattDescriptor.cxx4
-rw-r--r--java/jni/HCIGattService.cxx4
-rw-r--r--java/jni/HCIManager.cxx2
-rw-r--r--java/jni/HCIObject.cxx4
8 files changed, 14 insertions, 14 deletions
diff --git a/java/jni/CMakeLists.txt b/java/jni/CMakeLists.txt
index dc613084..cd715a5a 100644
--- a/java/jni/CMakeLists.txt
+++ b/java/jni/CMakeLists.txt
@@ -8,7 +8,7 @@ endif (JNI_FOUND)
set (tinyb_LIB_INCLUDE_DIRS
${PROJECT_SOURCE_DIR}/api
${PROJECT_SOURCE_DIR}/api/tinyb
- ${PROJECT_SOURCE_DIR}/api/tinyb_hci
+ ${PROJECT_SOURCE_DIR}/api/direct_bt
${PROJECT_SOURCE_DIR}/include
)
diff --git a/java/jni/HCIAdapter.cxx b/java/jni/HCIAdapter.cxx
index d357483d..afb420fc 100644
--- a/java/jni/HCIAdapter.cxx
+++ b/java/jni/HCIAdapter.cxx
@@ -23,12 +23,12 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#include "tinyb_hci/HCITypes.hpp"
+#include "direct_bt/HCITypes.hpp"
#include "tinyb_hci_HCIAdapter.h"
#include "JNIMem.hpp"
#include "helper_base.hpp"
-using namespace tinyb_hci;
+using namespace direct_bt;
diff --git a/java/jni/HCIDevice.cxx b/java/jni/HCIDevice.cxx
index d2fb2f98..d143b85d 100644
--- a/java/jni/HCIDevice.cxx
+++ b/java/jni/HCIDevice.cxx
@@ -23,12 +23,12 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#include "tinyb_hci/HCITypes.hpp"
+#include "direct_bt/HCITypes.hpp"
#include "tinyb_hci_HCIDevice.h"
#include "JNIMem.hpp"
#include "helper_base.hpp"
-using namespace tinyb_hci;
+using namespace direct_bt;
diff --git a/java/jni/HCIGattCharacteristic.cxx b/java/jni/HCIGattCharacteristic.cxx
index 7237ffde..0a0c4c07 100644
--- a/java/jni/HCIGattCharacteristic.cxx
+++ b/java/jni/HCIGattCharacteristic.cxx
@@ -23,12 +23,12 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#include "tinyb_hci/HCITypes.hpp"
+#include "direct_bt/HCITypes.hpp"
#include "tinyb_hci_HCIGattCharacteristic.h"
#include "JNIMem.hpp"
#include "helper_base.hpp"
-using namespace tinyb_hci;
+using namespace direct_bt;
diff --git a/java/jni/HCIGattDescriptor.cxx b/java/jni/HCIGattDescriptor.cxx
index 5060170b..cefc6b4d 100644
--- a/java/jni/HCIGattDescriptor.cxx
+++ b/java/jni/HCIGattDescriptor.cxx
@@ -23,12 +23,12 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#include "tinyb_hci/HCITypes.hpp"
+#include "direct_bt/HCITypes.hpp"
#include "tinyb_hci_HCIGattDescriptor.h"
#include "JNIMem.hpp"
#include "helper_base.hpp"
-using namespace tinyb_hci;
+using namespace direct_bt;
diff --git a/java/jni/HCIGattService.cxx b/java/jni/HCIGattService.cxx
index 7ad8d822..14dfcbe8 100644
--- a/java/jni/HCIGattService.cxx
+++ b/java/jni/HCIGattService.cxx
@@ -23,12 +23,12 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#include "tinyb_hci/HCITypes.hpp"
+#include "direct_bt/HCITypes.hpp"
#include "tinyb_hci_HCIGattService.h"
#include "JNIMem.hpp"
#include "helper_base.hpp"
-using namespace tinyb_hci;
+using namespace direct_bt;
diff --git a/java/jni/HCIManager.cxx b/java/jni/HCIManager.cxx
index 218e98d7..57865644 100644
--- a/java/jni/HCIManager.cxx
+++ b/java/jni/HCIManager.cxx
@@ -23,7 +23,7 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#include "tinyb_hci/HCITypes.hpp"
+#include "direct_bt/HCITypes.hpp"
#include "JNIMem.hpp"
#include "helper_base.hpp"
diff --git a/java/jni/HCIObject.cxx b/java/jni/HCIObject.cxx
index 0f261eba..1f420eea 100644
--- a/java/jni/HCIObject.cxx
+++ b/java/jni/HCIObject.cxx
@@ -23,12 +23,12 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#include "tinyb_hci/HCITypes.hpp"
+#include "direct_bt/HCITypes.hpp"
#include "tinyb_hci_HCIObject.h"
#include "JNIMem.hpp"
#include "helper_base.hpp"
-using namespace tinyb_hci;
+using namespace direct_bt;