bluetooth-lowenergy

iPhone - Polar H7_heart_rate_sensor connectivity using bluetooth

余生长醉 提交于 2019-12-08 13:54:05
问题 Please suggest me, whether an iPhone application can connect with external bluetooth devices like polar h7/h6 heart rate sensor fitness belt (http://www.polar.com/en/products/accessories/H7_heart_rate_sensor)? I am following these links: http://www.tekritisoftware.com/scan-ble-devices-using-ios-core-bluetooth-framework https://github.com/sergiomtzlosa/CoreBluetooth-Demo/ But i am not sure, whether iPhone app will connect to this external fitness belt. Please guide. Thanks. 回答1: So: Bluetooth

BluetoothLEDevice.FromIdAsync returning null

北城以北 提交于 2019-12-08 13:53:32
This is UWP code for getting BLE devices. Why I get bleDevice == null for some devices? I didn't find any documentation which explains that. var devices = await DeviceInformation.FindAllAsync(BluetoothLEDevice.GetDeviceSelector()); foreach (DeviceInformation di in devices) { Debug.WriteLine(di.Name); BluetoothLEDevice bleDevice = await BluetoothLEDevice.FromIdAsync(di.Id); if (bleDevice == null) { Debug.WriteLine("--- NULL ----"); continue; } Debug.WriteLine(bleDevice.Name); } I noticed that I get bleDevice != null for BLE devices that HAVE exclamation mark with STATUS_DEVICE_POWER_FAILURE in

DispatchGroup.wait not waiting

那年仲夏 提交于 2019-12-08 12:21:55
问题 I'm having an issue understanding or using Dispatchgroup. I've read a lot about them however most examples / documentation are very vague or doesn't resemble what I want to do, however every time I mention my problem everyone says "USE DISPATCH GROUPS!". Here's what I want to do(NOTE: SEQUENTIAL ORDER IS CRUCIAL): Send Bluetooth Write characteristic. device receives value, and spits something in response Read Bluetooth response (via a read characteristic) Send a new write characteristic (a

How to port corebluetooth from Objective C to Objective C++

China☆狼群 提交于 2019-12-08 12:15:47
问题 I was hoping to get some help with a project I'm working on. I'm currently trying to rework this code https://github.com/djwait/CoreBluetoothExample written in Objective -c into Openframeworks ios Objective c++. However I am a complete beginner to Objective -c and am feeling lost as to how to proceed. The aim is to get access to the variable uint16_t heartRate (from the original app) and use it in c++ code. More than anything I’m confused as to how the original code is creating an

Broadcom BLE SDK

怎甘沉沦 提交于 2019-12-08 11:53:37
问题 I am trying to run samples provided in BroadCom BLE SDK. i have created AVD by installing this SDK but the application is not getting installed on the emulator. It gives as error which says Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY [2012-04-18 14:17:59 - BleFindMeServer] Please check logcat output for more details. [2012-04-18 14:17:59 - BleFindMeServer] Launch canceled! Any pointers to a solution to this? Do we have to run this sample on the actual device? 回答1: Referencing

How to transfer data between two Android devices using Beacon?

百般思念 提交于 2019-12-08 11:26:53
问题 I am trying to send text data between two Android devices using beacon. I am using Android Bluetooth Low Energy APIs to develop the application. But i am stuck in reading the data. Whenever i am trying to set Values to the Characteristics , the other device not able to receive the data. The Characteristics getValues return null. I have already asked this question in other thread in Stackoverflow . But still again i am conveying my queries in Graphical format. This is the above image which

Bluetooth Low Energy avaible devices listview

时光怂恿深爱的人放手 提交于 2019-12-08 11:10:43
问题 I´m working on an app for android 5.0 and upper, and I need to show all the available bluetooth low energy devices on a listview and, after that, when a device is clicked I need its mac adress to be saved and to connect to it. The problem is that it doesn´t even show the available devices. After lots of tries i finally get this code: package com.sma.javier.sma_q.BluetoothLE; import android.app.Activity; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice;

Unable to read/write some characateristics from BLE device using the BluetoothLeGatt app

大城市里の小女人 提交于 2019-12-08 10:44:17
问题 I have been working with the BluetoothLeGatt application. I am trying to read characteristics from a BLE device- TI CC2541 Keyfob . I am able to read and write into some characteristics, but failing to do so to some other characteristics. All these services and characteristics are listed in the expandableListView . But on selecting some of them, their values and not getting displayed. Can anybody help me out with this problem. Is there a way to read value using Characteristic Value Handle 回答1

How to make a characteristic both read and write?

拜拜、爱过 提交于 2019-12-08 10:36:07
问题 I understand that a characteristic can have only one property and one permission, and that the property must have the same value as the permission e.g. a characteristic must have the property of being writable if it has permission to be written to... so how can I make a characteristic readable AND writable? e.g. How to turn this int permission = BluetoothGattCharacteristic.PERMISSION_WRITE; int property = BluetoothGattCharacteristic.PROPERTY_WRITE; Into read and write 回答1: Use a mask int

Android execute BluetoothAdapter.LeScanCallback on seperate thread

我们两清 提交于 2019-12-08 09:45:39
问题 In Android, BluetoothAdapter.LeScanCallback runs on main thread. private BluetoothAdapter.LeScanCallback mLeScanCallback = new BluetoothAdapter.LeScanCallback() { @Override public void onLeScan(final BluetoothDevice device, final int rssi, byte[] scanRecord) { //The code here is executed on main thread Log.e("LeScanCallback", Thread.currentThread().getName());//Prints main } }; I can make the code run on a seperate thread by doing the following: private BluetoothAdapter.LeScanCallback