bluetooth

Android BLE peripheral with pin pairing

▼魔方 西西 提交于 2021-02-10 06:51:49
问题 I am developing an Android app which behaves as Bluetooth peripheral role with a service. When I start advertising, other Android devices searching for devices offering this service, can see my device (and can pair to it without pin) - ok. But how to enable PIN pairing? 回答1: You can force the device has to be paired, when using specific characteristics by protecting them with PERMISSION_READ_ENCRYPTED_MITM or PERMISSION_WRITE_ENCRYPTED_MITM. The client/central side can force pairing by

Android BLE peripheral with pin pairing

╄→гoц情女王★ 提交于 2021-02-10 06:51:18
问题 I am developing an Android app which behaves as Bluetooth peripheral role with a service. When I start advertising, other Android devices searching for devices offering this service, can see my device (and can pair to it without pin) - ok. But how to enable PIN pairing? 回答1: You can force the device has to be paired, when using specific characteristics by protecting them with PERMISSION_READ_ENCRYPTED_MITM or PERMISSION_WRITE_ENCRYPTED_MITM. The client/central side can force pairing by

Qt Bluetooth on iOS

匆匆过客 提交于 2021-02-10 06:31:09
问题 I tried to search for an answer for my query. It seems trivial, but I cant find an answer yet. I am trying to run a program using Qt Bluetooth on iOS. I am able to use it successfully on MacOS. But even the most basic feature of code like : QBluetoothLocalDevice localDevice; QString localDeviceName; // Check if Bluetooth is available on this device if (localDevice.isValid()) { // Turn Bluetooth on localDevice.powerOn(); // Read local device name localDeviceName = localDevice.name(); // Make

Get Bluetooth Device Battery Level

邮差的信 提交于 2021-02-10 06:15:16
问题 I decided to build a tool to display the battery level of a pair of Bluetooth headphones, since I got this feature on Android, but not on Windows. For some reason, it just doesn't display in the settings. I'm using UWP and with the Device Enumerator I managed to pull a list of connected devices. Is there any way to get the battery level from this point? I've seen that people are using RFCom or GATT, but their issue involves connecting to the device, which I think is redundant since the tool

Get Bluetooth Device Battery Level

爱⌒轻易说出口 提交于 2021-02-10 06:14:12
问题 I decided to build a tool to display the battery level of a pair of Bluetooth headphones, since I got this feature on Android, but not on Windows. For some reason, it just doesn't display in the settings. I'm using UWP and with the Device Enumerator I managed to pull a list of connected devices. Is there any way to get the battery level from this point? I've seen that people are using RFCom or GATT, but their issue involves connecting to the device, which I think is redundant since the tool

Get Bluetooth Device Battery Level

本秂侑毒 提交于 2021-02-10 06:14:01
问题 I decided to build a tool to display the battery level of a pair of Bluetooth headphones, since I got this feature on Android, but not on Windows. For some reason, it just doesn't display in the settings. I'm using UWP and with the Device Enumerator I managed to pull a list of connected devices. Is there any way to get the battery level from this point? I've seen that people are using RFCom or GATT, but their issue involves connecting to the device, which I think is redundant since the tool

RxAndroidBle crash on subscribe to multiple characteristics

孤者浪人 提交于 2021-02-08 11:19:33
问题 I'm currently working on an Android app for a proprietary Bluetooth Low Energy device. I decided to use RxAndroidBle and I'm happy with it's relative ease of use compared to the built-in bluetooth stack. Where I'm running into problems: I need to subscribe to two characteristics and continuously read and aggregate their values. Looking at this example page, http://polidea.github.io/RxAndroidBle/, I have been able to read multiple characteristics as per the example, but have been unsuccessful

In Android, is there any way to route the audio to A2DP using “MODE_IN_COMMUNICATION”?

走远了吗. 提交于 2021-02-08 10:28:09
问题 If I set AudioManager mode to MODE_IN_COMMUNICATION, and set the Media Player stream to STREAM_VOICE_CALL, I can route the audio to the speakerphone or the internal handset speaker just fine. And if it's routed to the internal speaker, and a wired headset is plugged int, it automatically routes to it. However, I can't figure out a way to route the audio to an A2DP headset (without changing the audio mode to MODE_NORMAL, or the stream to STREAM_MUSIC). My problem is that using MODE_NORMAL and

In Android, is there any way to route the audio to A2DP using “MODE_IN_COMMUNICATION”?

浪子不回头ぞ 提交于 2021-02-08 10:27:24
问题 If I set AudioManager mode to MODE_IN_COMMUNICATION, and set the Media Player stream to STREAM_VOICE_CALL, I can route the audio to the speakerphone or the internal handset speaker just fine. And if it's routed to the internal speaker, and a wired headset is plugged int, it automatically routes to it. However, I can't figure out a way to route the audio to an A2DP headset (without changing the audio mode to MODE_NORMAL, or the stream to STREAM_MUSIC). My problem is that using MODE_NORMAL and

IBeacon background monitoring [closed]

牧云@^-^@ 提交于 2021-02-08 10:14:50
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 10 months ago . Improve this question I'm building an app which's core functionality requires beacon monitoring. To be exact I need to add the payload (min range) value of every beacon with a specific UUID to a Core Data list(it would be even better if I could set a certain threshold of time in