bluetooth-lowenergy

Large data transmission in Bluetooth Low Energy between HM10 with Arduino & Android BLE

廉价感情. 提交于 2019-12-11 08:37:15
问题 Have an issue receiving data from HM-10 Bluetooth Low Energy in my android App I did half the way. what I did is : sending data from the phone to the BLE and i succeeded now i want to receive data to my phone from the BLE. (Arduino) --> (HM-10 BLE) ->-->-BLE CONNECTION-->-->- (ANDROID APP) So I'm sending dummy data from Arduino but I cannot receive it in the app. here's the class that responsible to send data from Android to the BLE Module public class DeviceControlActivity extends Activity {

Write a characteristic in BLE android

∥☆過路亽.° 提交于 2019-12-11 08:32:30
问题 I'm trying to send a characteristic in a BLE android to another device. Seaching in internet I found some code that help me to do this, but I cant transmit successfully the data. This is my code, based on Gatt android sample project: public class DeviceControlActivity extends Activity { public static final String EXTRAS_DEVICE_NAME = "DEVICE_NAME"; public static final String EXTRAS_DEVICE_ADDRESS = "DEVICE_ADDRESS"; private TextView mConnectionState; private TextView mDataField; private

How do I org.bluetooth.characteristic.report_map for more than one type of report?

六眼飞鱼酱① 提交于 2019-12-11 08:04:54
问题 Alright, I'm building a keyboard with an integrated touch-screen used as a mouse, I'm sending the data generated over BLE via HID OVER GATT. This works fine for org.bluetooth.characteristic.boot_keyboard_input_report & org.bluetooth.characteristic.boot_mouse_input_report, but I'm not very certain how to configure the report_map and what I need to send according to these declarations. The Main question is really, because there is no hybrid type of Usage, I need to use two Usage. But do I need

Advantages of only advertising data vs connecting BLE devices

☆樱花仙子☆ 提交于 2019-12-11 07:43:12
问题 Let Say I have a peripheral that is advertising data that is encoded into its UUID . The central scanning sees this UUID and and knows to turn the hexadecimal UUID to decimal and from there take out certain numbers by groups such as the first 4, then the next 6, then the next 4. It has certain functions to put these numbers into. Is there any advantages of this instead of connecting to the central device and then just trading information. Would it be faster? What about when you take into

What does [peripheral maximumWriteValueLengthForType:CBCharacteristicWriteWithResponse] return?

不想你离开。 提交于 2019-12-11 07:13:37
问题 I am running the following code: [peripheral maximumWriteValueLengthForType:CBCharacteristicWriteWithResponse]; In my case (iPhone 7, iOS 10.0.2) it returns 512. What is the meaning of this number? From documentation: method maximumWriteValueLengthForType: The maximum amount of data, in bytes, that can be sent to a characteristic in a single write type. But if I try to send 500 or 600 bytes it works absolutely the same. The target device receives all data. And in both cases response callback

BLE different MTU for different implementations

懵懂的女人 提交于 2019-12-11 06:58:01
问题 I have tried different implementations of BLE connection on Android. One with RxAndroidBle and another one with simple Android API. I used RxAndroidBle example app for testing. I connect to the same peripheral with the same service and characteristic. Though when I read or get notifications from it in the case of RxAndroidBle I receive 512 bytes and in the case of Android API - just 20. I try to request MTU 512 but onMtuChanged is never called and I still receive 20. Do I miss something? 来源:

Is there any way to uniquely identify BLE device?

醉酒当歌 提交于 2019-12-11 06:49:54
问题 I want to store information about BLE device locally, but I cannot rely on MAC address because it changes too often. Is there any way to do that? 回答1: The Bluetooth address is the best way you can distinguish between devices. This is mentioned in the Bluetooth specification as follows [1]: Devices are identified using a device address. Device addresses may be either a public device address or a random device address. A public device address and a random device address are both 48 bits in

Android 6, authentification issue with BLE Device, access to the LinkKey bits

删除回忆录丶 提交于 2019-12-11 06:25:22
问题 I've got an issue about android 6 and BLE compatibility. My app initiate a read request on a protected characteristic which launch the pairing display to enter the appropriate passcode. With the right pass code, the smartphone and the ble device are bonded just fine if it's with android < 6.0 I tried with an android 6.0.1 too but it keeps giving me the same message "Couldn't pair because of an incorrect PIN or passkey" It's not a permission issue since i already get the position permission

Maximum number of BLE sensors that could be connected to a BLE gateway at a given instant?

拜拜、爱过 提交于 2019-12-11 06:15:31
问题 I have this doubt. For example, I have a Smart Wrist Band (measures pulse, body temp), a Smart Gear/Watch (to display text alerts, control calls) and a Bluetooth headset. I need all the three to communicate with my mobile phone at the same given instant. Is it possible to achieve the same ? What are the challenges involved if I need to develop an application on my own if I had to achieve the above possibilities ? Your help is highly appreciated. Note: - BLE has star-based network topology and

BLE: Lower MTU value size(big difference) after MTU exchange

自作多情 提交于 2019-12-11 06:06:55
问题 I am new to the BLE development. I want to send some large amount of data over a BLE connection with maximum throughput. I have a GATT server, which is running on Linux, and a client which is running as an app on Android. I have created a custom characteristic with the maximum allowed size(512 bytes). I am requesting it from the app with a read operation. Every time I receive a call for reading on the server side I change it's value until I am finished with all the data(I know this isn't the