bluetooth-lowenergy

TI Sensortag, how to use push buttons?

强颜欢笑 提交于 2019-12-07 18:43:32
问题 I am working with the new TI Sensortag. I'm trying to do a simple iOS app that reads the state of those buttons. I've found a lot of guide, tutorial etc. about using Sensortag's sensors (humidity, IR Temperature, ...) but no one talks about push buttons on his top. Has anyone an idea about them? Tank you very much Reda P.S. I'm using an iPhone 5 回答1: 0xFFE1 SK_KEY_PRESSED GATT_PERMIT_READ Left/Right Keys, Side key as Bit 2 in test mode only. http://processors.wiki.ti.com/index.php/File:BLE

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

雨燕双飞 提交于 2019-12-07 18:14:40
问题 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

DBUS APIs in BLUEZ

倖福魔咒の 提交于 2019-12-07 16:49:01
问题 I am new to BLUEZ as well as linux. I found that Bluez promotes usage of DBUS APIs. I want to know whats a DBUS API in terms of BLUEZ also, whats the benefit of using them instead of direct C APIS? How different is it as compared to C APIs? 回答1: From my own experience: DBUS apis are the officially published ones so are more likely to be stable, maintained and documented. The C apis are a bit more low level and it's not always obvious how they can be used (beyond simple discover). The C apis

Reducing the threshold of didEnterRegion

有些话、适合烂在心里 提交于 2019-12-07 16:36:26
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 work when my phone entered the region and it's locked and the screen is off? Monitoring APIs give you

Android ble device is not disconnecting sometime

给你一囗甜甜゛ 提交于 2019-12-07 13:07:00
问题 After doing disconnecte ble device i am getting disconnect callback . but some time still it is not disconnected . in some layer connection state is maintaining . so that i am not able to do reconnect. i have tested in android 5 & android 6. in HTC One A9, Moto x play, Moto G4 If i do bluetooth turn on off. then again disconnect callback is coming and device is disconnecting actually. -Please give some suggestion for resolve issue. I am doing below steps for ble operation 1.Discover ble

How to send RGB signal to BLE device using iPhone application?

一个人想着一个人 提交于 2019-12-07 12:38:28
We are working on iOS application and in which we need to pass the RGB signal to the BLE device and based on RGB code the device LED will glow. We are doing the connection using CBCentralManager for the CBPeripheral object of Bluetooth Framework in iOS app. We are setting the characteristic and descriptor UUID but still we are not able to send the signal on the BLE device. Here is the code we are using to pass RGB data in hex bytes format. - (void)centralManager:(CBCentralManager )central didConnectPeripheral:(CBPeripheral )peripheral { NSLog(@"connect peripheral"); unsigned char bytes[] = {

Android Ble GATT_ERROR 133 getting often with samsung devices

浪尽此生 提交于 2019-12-07 11:56:46
问题 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

How to scan multiple regions using startMonitoringForRegion in Objective-C

南笙酒味 提交于 2019-12-07 10:42:21
问题 I've been through two tutorials and am reading up on basic C. Learn best through doing and have written a few light apps in the past week or so. Am getting up to speed to write some apps that will use ibeacon. As I'm going through some samples and reading the reference guide I see that multiple regions can be scanned by running startMonitoringForRegion for each UUID. OK, so I figure I could just run it for each UUID but that's not working. I'm sure I'm doing something basic totally wrong...

Bluetooth GATT - onServicesDiscovered(BluetoothGatt gatt, int status) does not contain all Services

强颜欢笑 提交于 2019-12-07 10:10:32
问题 I have code that connects to, and then tries to discover all Services provided by a custom BLE server device advertising custom Services. The code works on Nexus 5 with Android 5.1 Samsung SM-T320 with Android 4.4.2 ZTE Blade Vec 4G With Android 4.4.2 Code does not work on Samsung SM-T360 with Android 4.4.4 Samsung GT-I9195 with Android 4.4.2 On devices where it fails it often discovers all of the BLE Services on one (of two) devices that advertises the same BLE Services. Restarting the

Bluetooth-Low-Energy RSSI changes periodically on Android devices

走远了吗. 提交于 2019-12-07 09:50:49
问题 I noticed that the signal strength of Bluetooth Low Energy received on Androids is varying in cycles. The graph below represents the RSSI values of one BLE beacon over two minutes. The receiving Android and the beacon were both static with a distance of 1 meter. I made sure that there is as low interference as possible. The Android was a Nexus 5, but I had the same phenomenon with other Android devices, all running on API 21. I could not test it on iOS yet. RSSI Graph You can see that there