bluetooth-lowenergy

iOS stops waking up the app upon incoming BLE connection from peripheral

孤街醉人 提交于 2019-12-06 03:02:23
we have a BLE peripheral that connects to the phone every hour and passes some data. Here is how the process works: Upon launch with key UIApplicationLaunchOptionsBluetoothCentralsKey in application(didFinishLaunchingWithOptions launchOptions) app re-initializes CBCentralManager with ID that was passed to it. Then it goes through the regular restoration cycle and reads data off the BLE peripheral. Performs REST request to the service in the cloud. Assuming that app has been launched at least once after phone reboot everything works well for a few days (if app isnt running or been forced out of

Is it allowed to include the battery state (0x2A1A) in the battery service?

∥☆過路亽.° 提交于 2019-12-06 02:26:38
The specification for the BLE GATT battery service only lists the battery level characteristic although the descriptive text mentions "battery level and state ". I would like to indicate the battery charging/discharging state, however the characteristic that allows that (2A1A) is not included in any defined service. It seems this is an oversight by Bluetooth SIG. Will including an additional characteristic in the battery service for battery state be flagged as non-compliant with the specification? Will the addition of the battery state characteristic cause any issue with iOS or android

BLE peripheral support Android-L example [closed]

我怕爱的太早我们不能终老 提交于 2019-12-06 01:59:40
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I would appreciate an example of BLE peripheral mode for Android-L. The code that I have gives me strange errors (i.e too many advertisers) which makes no sense as there are no advertisers that i can see from scanner like Lightblue on ios. https://github.com/geoaxis/BluetoothTest works on my nexus 5 running L. At first when initializing advertising I was getting: public static final int ADVERTISE_FAILED

BLE takes too much time while sending data from iOS 7.1 to iOS 8

左心房为你撑大大i 提交于 2019-12-06 01:54:01
问题 I have a strange issue. I am developing an app in which I am sending Chunks in 20-20 bytes. . Everything is working fine. When I am sending Bytes data from iOS 8 to iOS 8 device it take around 4-5 second to transfer from one device to another, but my problem is when I am sending Bytes data from iOs 7.1 to iOs 8 or reverse, It take around 17-20 seconds to transfer the data from one device to any device. Why it's taking too much time in iOS 7.1 to iOS 8 or reverse? 回答1: Try to look at some of

Reading RSSI value of connected Bluetooth Low Energy device in Android Studio

青春壹個敷衍的年華 提交于 2019-12-05 23:49:18
I am working on a BLE project in Android Studio and would like to read the RSSI value of a device which I have already connected to. So far I was able to discover new devices via LE Scan and get their RSSI from there. However, once I connect to a device I can no longer run a scan and get the RSSI. This is the code for discovering new devices before connecting to one of them. Not sure how relevant it is to my question though: private BluetoothAdapter.LeScanCallback mLeScanCallback = new BluetoothAdapter.LeScanCallback() { @Override public void onLeScan(final BluetoothDevice device,final int

How to get notification from Bluetooth LE devices in iOS app

筅森魡賤 提交于 2019-12-05 23:16:21
问题 I am working on an iOS Bluetooth LE application. The functionality which I am able to follow correctly and successfully are as follows : Discovering peripherals. Connecting to peripheral. Getting services and characteristics. Able to read data from the characteristics while clicking on read button. Able to write data. Here I am facing a problem, I need to read incoming data only when the BLE device transmit it to app. I'm explicitly reading the characteristics on button click. My BLE device

Android Ble GATT_ERROR 133 getting often with samsung devices

元气小坏坏 提交于 2019-12-05 23:01:29
I am working on BLE Applications, I have tested with different devices like Nexus, Moto, Samsung, LG. I am getting the GATT Error 133 in Samsung Devices alone(Samsung A5 2016). Trying to connect 10 times it gets connected only 2 or 3 times.Please Help me out. 来源: https://stackoverflow.com/questions/40465373/android-ble-gatt-error-133-getting-often-with-samsung-devices

BlueGiga BLE development tools

流过昼夜 提交于 2019-12-05 22:22:48
问题 I'm looking at trying out the BlueGiga BLE112 kit to do some BLE development for iOS. I am switching from the TI CC2540 keyfob kits because my IAR Embedded Workbench eval-license expired (30 days) and that software is $2500+ for licensing. I'd like to know what the tools are for writing code for the BLE112; the website mentions "BG Script" and "BG Profile Toolkit", but I can't find any info on what the environment/licensing is for either of these tools. It also mentions writing C code for an

Send Data from CentralManager to PeripheralManager using CoreBluetooth (BLE)

安稳与你 提交于 2019-12-05 20:49:52
I have my app running on two iOS device (both have 6.1.4) where one device acts as the Central and one acts as a Peripheral. I have been successful in getting notifications (characteristics set up to notify) from the Peripheral over to the Central just fine. However, I was wanting to write a value from the Central to the Peripheral to a specific writable characteristic but that always fails. The peripheral:didWriteValueForCharacteristic:error: delegate's method is immediately called where the error description says: "One or more parameters were invalid" I have been searching the net for any

How to filter on manufacturer data when using BluetoothLeScanner for android?

╄→尐↘猪︶ㄣ 提交于 2019-12-05 20:49:12
I am working with my own BLE-devices. When listening after these devices I would like to use ScanFilter , so I only get the devices I am interested in. My solution right now is to filter inside the callback but it would be better if this filtration could happen earlier and according to the specification it should be possible. I am trying to filter on the manufacturer specific data but I can not get it to work. This is my code: BluetoothLeScanner bleScanner = bluetoothAdapter.getBluetoothLeScanner(); ScanFilter filter = getScanFilter(); List<ScanFilter> scanFilters = new ArrayList<>();