bluetooth

Bluetooth-connection; can't send strings properly

狂风中的少年 提交于 2020-01-12 19:09:23
问题 I have troubles with my program when i need to send Strings from my server bluetooth-socket to my client bluetooth-socket. Everything works fine as long as I am only sending one String at a time (for example chatting) but if I need to write more Strings at a short period of time (to interchange informations), the Strings will not get seperated from the client code. For example if I'm sending "FirstUser" and right after that "SecondUser" the client does not read "FirstUser" and then

Bluetooth-connection; can't send strings properly

╄→гoц情女王★ 提交于 2020-01-12 19:08:30
问题 I have troubles with my program when i need to send Strings from my server bluetooth-socket to my client bluetooth-socket. Everything works fine as long as I am only sending one String at a time (for example chatting) but if I need to write more Strings at a short period of time (to interchange informations), the Strings will not get seperated from the client code. For example if I'm sending "FirstUser" and right after that "SecondUser" the client does not read "FirstUser" and then

Bluetooth-connection; can't send strings properly

試著忘記壹切 提交于 2020-01-12 19:08:10
问题 I have troubles with my program when i need to send Strings from my server bluetooth-socket to my client bluetooth-socket. Everything works fine as long as I am only sending one String at a time (for example chatting) but if I need to write more Strings at a short period of time (to interchange informations), the Strings will not get seperated from the client code. For example if I'm sending "FirstUser" and right after that "SecondUser" the client does not read "FirstUser" and then

iPad Bluetooth keyboard returns keycode of 0 for any key with onKeyUp

六月ゝ 毕业季﹏ 提交于 2020-01-12 08:37:31
问题 Some clients have been reporting issues when using their iPad Bluetooth keyboards for entering text into one of our internal sites. Mainly pressing enter on a certain input would work fine when using desktop or the iPad on screen keyboard, but not when using a Bluetooth keyboard connected to the iPad. Upon investigation it appears that any input to an onKeyUp returns 0 as the keycode when connected to a Bluetooth keyboard on the iPad. The demo works fine, however when using the onscreen

iPhone does not discover Services on a Bluetooth LE tag on reconnection

こ雲淡風輕ζ 提交于 2020-01-12 07:14:11
问题 I am working on a Bluetooth LE application for iOS. I am using the Core Bluetooth framework within iOS to handle all communications. Question & Description: When I use a single tag, despite numerous connections and disconnections, the single tag connects seamlessly and the phone discovers it services. Also, when multiple Bluetooth LE tags connect for the first time, they connect seamlessly and the phone discovers their services. When the tags get disconnected and then reconnect to the phone,

Toggling A2DP Device (Android)

此生再无相见时 提交于 2020-01-12 07:10:34
问题 I have two paired bluetooth devices (my car's head-unit for phone audio and a separate bluetooth receiver for A2DP). On my phone there's a checkbox for "Use for media audio" that I have to manually toggle for my A2DP output to go to my car's speakers. My goal is to toggle this programmatically. I tried using both the AudioManager class with the deprecated setBluetoothA2dpOn and the setBluetoothScoOn but neither seemed to have any effect. I was able to get a list of the bluetooth paired

how to get list of bluetooth devices using ExternalAccessory.framework

别来无恙 提交于 2020-01-12 06:23:52
问题 how to get list of bluetooth devices using ExternalAccessory.framework not using Gamekid framework, core bluetooth framework. please write me examp0le of code 回答1: The External Accessory framework is only get list apple devices...By Apple The External Accessory framework is designed to allow iOS applications to communicate only with hardware accessories that are developed under Apple's MFi licensee program. MFi compliant accessories can be implemented as wired devices, meaning they plug in to

Android BLE Gatt connection change statuses

白昼怎懂夜的黑 提交于 2020-01-12 06:15:30
问题 I have an android app to connect to a BLE device and write to it. I can successfully connect, read and write to it. As a part of testing, we are trying different disconnection scenarions. Sometimes, if ble device disconnect the connection, i get the connection change as disconnect with status value as 19. Also if there is any bond error, status equals 22. If i programmatically disconnect the connection, this status gives me 0. But none of these states except 0 are specified in android

locationManager:rangingBeaconsDidFailForRegion:withError: kCLErrorDomain 16

孤人 提交于 2020-01-12 03:42:09
问题 I have read CLLocationManager kCLErrorDomain Codes? as well as Apple Docs I check to make sure ranging is available before calling startRangingBeaconsInRegion: and I am also checking if ranging is available while in the locationManager:rangingBeaconsDidFailForRegion:withError: method. Returns true both times. When I get the set of monitoredRegions, my beacon is in the set (so registering for monitoring is working). I have read that error 16 can mean ranging is unavailable, bluetooth could be

is there any ble api in Ndk

荒凉一梦 提交于 2020-01-11 13:13:31
问题 Can we use Ble hardware(Bluetooth low energy) direct from Ndk without any java interface. I am new to NDk. So I don't know about jni, or Ndk. I want to control the bluetooth hardware directly from native code , 回答1: NO and YES. NO: There is no BLE API in ndk. YES: You can talk to BT hardware from C code. In AOSP, look under <>/hardware/libhardware/include/hardware/ there are a bunch of headers. bluetooth.h defines the interface for Android's bluetooth module. Bluedroid implements it. You