diff options
author | Sven Gothel <[email protected]> | 2020-04-09 01:02:40 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-04-09 01:02:40 +0200 |
commit | 420774ecf7f7a9db07a2f26d394f661aa75ac32e (patch) | |
tree | f829dbf38f3cf924a4bac635a16e35cb853438bb /java | |
parent | 8f036f28709aba8a78bbcb90401d617e28fd9913 (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.txt | 2 | ||||
-rw-r--r-- | java/jni/HCIAdapter.cxx | 4 | ||||
-rw-r--r-- | java/jni/HCIDevice.cxx | 4 | ||||
-rw-r--r-- | java/jni/HCIGattCharacteristic.cxx | 4 | ||||
-rw-r--r-- | java/jni/HCIGattDescriptor.cxx | 4 | ||||
-rw-r--r-- | java/jni/HCIGattService.cxx | 4 | ||||
-rw-r--r-- | java/jni/HCIManager.cxx | 2 | ||||
-rw-r--r-- | java/jni/HCIObject.cxx | 4 |
8 files changed, 14 insertions, 14 deletions
diff --git a/java/jni/CMakeLists.txt b/java/jni/CMakeLists.txt index dc61308..cd715a5 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 d357483..afb420f 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 d2fb2f9..d143b85 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 7237ffd..0a0c4c0 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 5060170..cefc6b4 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 7ad8d82..14dfcbe 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 218e98d..5786564 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 0f261eb..1f420ee 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; |