bluetooth-lowenergy

com.polidea.rxandroidble2.exceptions.BleCharacteristicNotFoundException: Characteristic not found with UUID

两盒软妹~` 提交于 2020-01-06 08:29:06
问题 I'm trying to read an unsolicited data stream from my Bluetooth device. The data should appear as a byte array. Unfortunately, the UUID I'm supplying doesn't seem to be the correct one. What could be going wrong? val stringDeviceUUID = rxBleDevice.bluetoothDevice.uuids[0].toString() val charUUID = UUID.fromString(stringDeviceUUID) println("$stringDeviceUUID = $charUUID?") /* If device if it is not already connected... */ if (rxBleDevice.connectionState != RxBleConnection.RxBleConnectionState

Bluetooth low energy (BLE 112 ) Difference between BGAPI and BGScript

夙愿已清 提交于 2020-01-06 07:15:52
问题 What is the Difference between BGAPI and BGScript ? And if we write any code for BG profile than how can we burn it in BLE 112? 回答1: The BGAPI interface defines the protocol used to talk to the module over USB or serial link. BGScript is something which runs on the module processor itself, when the USB or serial link is not used. I have the dongle, BLED112, which is the same thing as BLE112 with a USB connector on it, and the code is "burned" to it using standard USB DFU interface. The

How do you scan for the same BLE device twice?

最后都变了- 提交于 2020-01-06 03:07:20
问题 I have an iOS app that scans for BLE peripherals, of which there may be many, and allows the user to decide whether or not to connect to the device. Once connected, the user can also decide to break the connection. All of this works fine. I would also like to add an option to allow the user to change their mind and rescan for a device, but this seems to be problematic. The most obvious way to do this seems to be to stop scanning and restart it, as in: [centralManager stopScan]; CBUUID

How to get the characteristic from UUID in objective-C?

ε祈祈猫儿з 提交于 2020-01-06 02:32:49
问题 I am developing for BLE in objective-C. I define the UUID like the following code: static NSString *const LEDStateCharacteristicUUID = @"ffffffff-7777-7uj7-a111-d631d00173f4"; I want to write characteristic to BLE device by following code , it need to pass 3 parameter:1.Data 2.Characteristic 3.type CBCharacteristic *chara = ??? // how to set the characteristic via above UUID let it can pass to following function? [peripheral writeValue:data forCharacteristic:chara type

iOs CoreBluetooth Central Server and Peripheral Client

天涯浪子 提交于 2020-01-05 19:29:30
问题 Currently, iOS does not support the combination GAP Central role and ATT Server role as well as the combination GAP Peripheral role and ATT Client role. Is Apple working on this? Does someone know when it will be possible to do so ? 回答1: If you develop a non iOS peripheral, then you should be able to start acting as ATT client once the iOS central connected to you. The ATT database is shared accross applications and should be accessible this way. You can initialize it in a separate app or in

Android: Can a regular Bluetooth device communicate with BLE?

允我心安 提交于 2020-01-05 12:56:58
问题 I have tried looking at http://developer.android.com/guide/topics/connectivity/bluetooth-le.html and searching google but I am unable to figure out the following: If I am using a regular Bluetooth capable Android device, can I communicate with a BLE device? Thanks in advance! 回答1: Depends on the Android device. Bluetooth Low Energy is a protocol defined within Bluetooth 4.0. If you mean by "regular Bluetooth capable Android device" a Bluetooth version prior to 4.0, then it is not possible to

Android: Can a regular Bluetooth device communicate with BLE?

给你一囗甜甜゛ 提交于 2020-01-05 12:55:13
问题 I have tried looking at http://developer.android.com/guide/topics/connectivity/bluetooth-le.html and searching google but I am unable to figure out the following: If I am using a regular Bluetooth capable Android device, can I communicate with a BLE device? Thanks in advance! 回答1: Depends on the Android device. Bluetooth Low Energy is a protocol defined within Bluetooth 4.0. If you mean by "regular Bluetooth capable Android device" a Bluetooth version prior to 4.0, then it is not possible to

Android: Can a regular Bluetooth device communicate with BLE?

送分小仙女□ 提交于 2020-01-05 12:54:27
问题 I have tried looking at http://developer.android.com/guide/topics/connectivity/bluetooth-le.html and searching google but I am unable to figure out the following: If I am using a regular Bluetooth capable Android device, can I communicate with a BLE device? Thanks in advance! 回答1: Depends on the Android device. Bluetooth Low Energy is a protocol defined within Bluetooth 4.0. If you mean by "regular Bluetooth capable Android device" a Bluetooth version prior to 4.0, then it is not possible to

Reading Thermometer Data with Bluez Bluetooth Low Energy

六眼飞鱼酱① 提交于 2020-01-05 06:42:54
问题 I was wondering if there anyone willing to guide me a bit. I am trying to read the temperature of a Bluetooth thermometer using gatttool, but I don't know how to work with the indicate property. I am able to connect to the device, get the device name, etc., but it has proven to be more challenging to get the actual temperature data. Does any one have an idea? Also if you have more questions for me, let me know. 回答1: Assuming that your device uses the adopted thermometer profile, then you want

Can you uniquely identify a BLE MAC address in Android 5.0?

风流意气都作罢 提交于 2020-01-05 04:34:07
问题 In Android 5.0, BLE doesn't use static MAC addresses anymore, but the MACs change after intervals, using a method called IRK and public key cryptography. Is it possible to uniquely identify an Android phone in a way that can not be spoofed by the user of that phone, or has that become completely impossible now unless the other side co-operates? 回答1: No, it is not possible. That's the whole idea of using IRKs: only bonded devices can identify it after the address changes. For those who do not