bluetooth-lowenergy

getServiceData returns an empty array in some devices

风格不统一 提交于 2021-01-29 11:05:32
问题 Context: I have two devices with me: 1. LG G7 2. Huawei Pra LX1 I am currently using implementation "com.polidea.rxandroidble2:rxandroidble:1.10.0" When I call to Disposable scanSubscription = rxBleClient.scanBleDevices( new ScanSettings.Builder() // .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY) // change if needed // .setCallbackType(ScanSettings.CALLBACK_TYPE_ALL_MATCHES) // change if needed .build() // add filters if needed ) .subscribe( scanResult -> { // Process scan result here. },

porting a python3 app from Linux to Android using kivy and bluepy

◇◆丶佛笑我妖孽 提交于 2021-01-29 10:11:05
问题 I created a simple app in python3 using Kivy for the UI and bluepy to access some Bluetooth BLE devices. Now I like to port the app to my Android phone. I saw there is somehow a port in Kivy to Android (https://github.com/kivy/python-for-android). But I am not sure if I can port my app with the bluepy dependency. So it comes down to the questions: 1st) is it possible to port a kivy and bluepy app to Android? 2nd) is there a tutorial showing how to do that? 回答1: You can package an Android app

Experience/Examples using Nordic nRF52840 (BLE) with C#?

ⅰ亾dé卋堺 提交于 2021-01-29 09:18:42
问题 Does anyone have experience using the Nordic NRF52840 with a C# app to act as a receiver? I'm trying to communicate with an Onset InTemp thermometer and although I've had quite a bit of success with the native Windows 10 BLE, I'm having some problems. See: C#, BLE. Why does GetGattServicesAsync hang forever? Is there a work around such as turning off/on BLE? for details. Nordic advertises that they only have C++, Python and Node.js libraries. See https://devzone.nordicsemi.com/f/nordic-q-a

Basic flutter bluetooth questions

拥有回忆 提交于 2021-01-29 08:12:39
问题 I'm undertaking a new project involving flutter and bluetooth. For this I read a bit about it and tried a test project, but I still have questions I find no easy answer for. Firstly, BLE vs Bluetooth. BLE is nothing else than Bluetooth version 4, mostly used in IoT applications. It can run in mobile phones, but is there any compatibility issues? AKA, can a BLE device comunicate with a bluetooth device or do they both need to be using the same bluetooth version? This question comes from

BLE Advertise data size limit

百般思念 提交于 2021-01-29 07:42:54
问题 On My Addroid app I'm trying to add some extra data when I try to start ble advertising, and as I've read, advertise data must be <= 31 bytes. That's how I do it: var testData = "abcdefghij" var data = AdvertiseData.Builder().apply { addServiceData( ParcelUuid(MY_UUID), testData.toByteArray(Charsets.UTF_8) ) } bleAdvertiser.startAdvertising( settings.build(), data.build(), advertiseCallback ) In this way everything works well. Now if testData fields become var testData = "abcdefghijk"

Android Ble reading attribute with PERMISSION_READ_ENCRYPTED

て烟熏妆下的殇ゞ 提交于 2021-01-29 05:30:17
问题 I've faced with the issue that after pairing with keys attribute that has permission PERMISSION_READ_ENCRYPTED is still is not available ... Attribute is visible, but permissions is not set for readability, Permissions is empty for this attribute (: In Android documentation only description of this permission, but no example of using such attribute ... Seems like I need somehow to additionally encrypt this connection ... Can somebody share example of using this attribute or link to

QT Bluetooth Peripheral and Central role possible?

只愿长相守 提交于 2021-01-29 05:17:45
问题 I'm running a programm on a Raspberry Pie which is based on QT and uses a bluetooth adapter to connect to some peripheral devices as a central role. I also have another device, which only can act as a Central bluetooth device and needs to be connected to my Raspberry. Is it possible with QT to first build a connection to my second device by advertising itself and acting as a peripheral, and afterwards swaping to central mode, to connect to the other devices? I didn't find any evidence for or

connectGatt on Samsung Galaxy S7 creates connection over Bluetooth Classic instead of BLE

不羁岁月 提交于 2021-01-29 02:30:40
问题 I have a dual-mode (BR/EDR + BLE) device running a GATT server. The address is public and same for BLE and BD/EDR. When I call connectGatt on Galaxy S7 with Android 6.0.1 (API level 23) and set the transport parameter as "TRANSPORT_LE" the phone still tries to establish connection over BD/EDR. It looks like the problem is related to the public address of the BLE because if I set it to private the connection is done over BLE, as expected. This problem was observed only on Galaxy S7, on other

Is there a minimum device name length for BLE 4.0 advertising local name complete?

狂风中的少年 提交于 2021-01-28 23:04:09
问题 For BLE advertising type LOCAL_NAME_COMPLETE, is there a minimum length requirement? I could not find any length specification in the spec (other than it needs to fit in the advertising packet of 31 bytes minus anything else already in the advertisement packet), but am running into an issue where it may seem that there is. I wanted to confirm here. 回答1: According to the BLUETOOTH SPECIFICATION Version 4.0 [Vol 3] section 12.1: ...The Device Name characteristic value shall be 0 to 248 octets

Is there a minimum device name length for BLE 4.0 advertising local name complete?

前提是你 提交于 2021-01-28 22:44:24
问题 For BLE advertising type LOCAL_NAME_COMPLETE, is there a minimum length requirement? I could not find any length specification in the spec (other than it needs to fit in the advertising packet of 31 bytes minus anything else already in the advertisement packet), but am running into an issue where it may seem that there is. I wanted to confirm here. 回答1: According to the BLUETOOTH SPECIFICATION Version 4.0 [Vol 3] section 12.1: ...The Device Name characteristic value shall be 0 to 248 octets