bluetooth-lowenergy

Android BLE readCharacteristic returns always false

隐身守侯 提交于 2019-12-08 06:15:16
问题 I am developing and application to read and write in a custom device through Bluetooth BLE. There is no problem for writing. I am able to establish a connections, discover the service and the characteristics. Note the call to enableRXNotification public void startReceiving() { boolean readOk = gatt.readCharacteristic(rx); if (!readOk) { Log.d("ANUBEBT", "ERROR INITIATING READ CHARACTERISTIC"); } } public void onServicesDiscovered(BluetoothGatt gatt, int status) { super.onServicesDiscovered

Connect to Paired Bluetooth Device iOS8.1

家住魔仙堡 提交于 2019-12-08 06:09:01
问题 Newbie to all things CoreBlooth here. I have successfully written a small app to connect to a Wahoo Blue HR heart rate monitor and retrieve the bpm for my heart rate etc. I used the tutorial below but rewrote the code into swift. Link to tutorial I am now trying to write a simple app to retrieve the Blood Pressure readings from a Bluetooth LE BP reader I have. The model in question is an iHealth BP5. When I scan for this device using the following code I get nothing. func

Reading from a BluetoothGattCharacteristic is failing

允我心安 提交于 2019-12-08 05:57:11
问题 Im trying to read the value stored in a BluetoothGattCharacteristic . The following is my BluetoothGattCallback code, where most of the action takes place: private final BluetoothGattCallback mGattCallback = new BluetoothGattCallback() { @Override public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) { if (newState == BluetoothProfile.STATE_CONNECTED) { Log.i(TAG, "Connected to GATT server."); Log.i(TAG, "Getting services...."); gatt.discoverServices(); } else if

How to use Arduino with BLE Shield search Apple's iBeacons signal source

半世苍凉 提交于 2019-12-08 05:19:09
问题 I am playing a project to search iBeacons in region by Arduino with BLE Shield. Because of leak of tech-support of iBeacons Technology, I can't find any docs about how to search iBeacons signal source. 回答1: An iBeacon is basically a BLE Broadcaster, and such devices can only be discovered by a Central or an Observer. Many BLE shields use Nordic Semiconductor's nRF8001 chip, and unfortunately, this is a pure Peripheral device, and as such, it isn't possible to use this to discover an iBeacon.

Reducing the threshold of didEnterRegion

点点圈 提交于 2019-12-08 05:14:03
问题 I'm currently working on an app that I want for my app to detect a beacon in background mode just when it gets close to it(Immediate). Based on articles that I've read it cannot be done with didEnterRegion and I should use ranging while it's running in the background mode(Location Update). is there any solution that directly reduces the didEnterRegion threshold? or Should I use the other method? and if that's the case does it work like didEnterRegion but with a limited range of RSSI? does it

How do I pair and/or bond to BLE on iOS using Swift code and an HM-10 so data sent is encrypted?

旧巷老猫 提交于 2019-12-08 05:08:18
问题 Background I've built a simple circuit which includes an Arduino Nano and a HM-10 BLE serial module. You can see that circuit at the following Electrical Engineering SE question: https://electronics.stackexchange.com/questions/412525/when-i-write-data-to-a-ble-characteristic-ffe1-to-send-data-over-bluetooth-is I also have an Xcode project written in Swift that successfully sends bytes to the FFE1 characteristic. It all works great and I can see the data coming from my iPad via Arduino Serial

How to Autoconnect to a paired device (BLE) without scanning

房东的猫 提交于 2019-12-08 05:02:44
问题 We are developing a BLE application and we need a low power consumption. We need to connect devices in background processes so we are scanning all the time. This means that the power consumption is huge. We know that Android OS connects automatically to some bluetooth devices as headsets or car free-hands devices and the power consumption of the phone keeps low. Is there any way to use the same method that Android OS use? We need to connect to the device as soon as it appears near the phone,

Cordova: Scan for iBeacons / BLE in background mode (iOS and Android)

陌路散爱 提交于 2019-12-08 04:58:40
问题 I have implemented an cordova/ionic app (hybrid for iOS/Android) that scans for iBeacons in background mode and notifies the user, if a beacon is found. I am using following plugins: iBeacon Scanning: cordova-plugin-ibeacon by petermetz Background Mode: cordova-plugin-background-mode by katzer Notification: cordova-plugin-local-notifications by katzer This works good so far (on both iOS and Android). The problem here is, that Apple would reject my App form publishing to the App Store (see

How possible ANCS ( Apple Notification Center Service ) send phone call or sms to wearable devices?

流过昼夜 提交于 2019-12-08 04:52:45
问题 As we know ANCS provides the chance to send notification to paired BLE devices such as Pebble alike watches. My question is Is that possible to send the telephone call info (i.e, the calling number ) or SMS message to the paired BLE devices via ANCS ? Quite new to ANCS, got a lot sample code from this question here to verify if the wearable device can know who is calling my iphone, or what message is sending to me. I know Apple has high protection for users, call and sms are high sensitive

Why value does not fall within the expected range when setting Value Changed for Gatt Characteristic

爱⌒轻易说出口 提交于 2019-12-08 04:41:16
问题 I would like to keep on reading characteristic/set value changed event handlers for characteristics from my BLE 4.0 device, by using the ValueChanged callback in Universal Windows Platform C# in Visual Studio 2017. I followed some tutorial from these sites: Damian Blog's Windows Universal with BLE, Bluetooth Gatt's Git Hub, Bluetooth Generic Attribute Profile - Heart Rate Service and Dr. Jukka's mobile Blog on BLE. All of them are using ValueChanged and I have tried to follow what they did.