bluetooth-lowenergy

The device GattServer stops advertising after connecting to it

隐身守侯 提交于 2019-12-08 04:39:04
问题 This is the link to the GATT Server sample for Android Things on GitHub: https://github.com/androidthings/sample-bluetooth-le-gattserver Setting up the server on RPi-3 is easy enough. What I do not understand is why the GATT server stops advertising once you have connected to then disconnected from the device (BLE connect). ...gattserver I/GattServerActivity: BluetoothDevice CONNECTED: 67:2F:1A:B4:1F:86 ...gattserver D/BluetoothGattServer: onConnectionUpdated() - Device=67:2F:1A:B4:1F:86

BluetoothLEDevice.FromIdAsync returning null

本小妞迷上赌 提交于 2019-12-08 04:34:26
问题 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

Turning a mobile phone into a beacon

假如想象 提交于 2019-12-08 03:40:30
I'm trying to build an access control system using BLE beacons and a web server. A mobile phone will transmit a beacon signal near the gate and the beacon will be forwarded to the server to decide whether this person should pass. The problem is transmitting a beacon without encryption is not safe, i need to encrypt the beacons. The question is: is there an API for web applications to resolve the Eddystone EID encrypted beacon without using google web service? Another question: is the Eddystone EID a good idea for encrypting the beacon for access control (regarding security, time, etc..)?

Transferring Data from Central to peripheral in Background mode in iOS

折月煮酒 提交于 2019-12-08 03:39:56
问题 I am developing an application for a custom wearable communicating through BLE. I have subscribed to the UI background modes in the info.plist file for Bluetooth-central. I am transferring a firmware file of around 600 kb by dividing into chunk sizes of 200 bytes each. The process is going fine but as I am pressing the Home button the app is entering into background state and thus terminating the process after 1-2 minutes. If my screens dims after certain amount of time then the firmware

Bluetooth Gatt issue onClientConnectionState() - status=8 clientIf=29

℡╲_俬逩灬. 提交于 2019-12-08 02:07:53
问题 I am making android BLE app. As per the Documents, I make application. My Problem is that sometime the app will work good , but sometime it throw the errors .There is 2 logs, one for success and 2nd for the errors. Every time bluetooth disconnect, i am send close method. I don't know where I am stuck. 1st success log 7-11 11:44:54.371 17649-17649/com.clavax.ultrapen I/BluetoothGatt 1: try to connecte 07-11 11:44:54.371 17649-17649/com.clavax.ultrapen D/BluetoothGatt: connect() - device: 00:13

Android can't find any BLE devices

杀马特。学长 韩版系。学妹 提交于 2019-12-08 02:07:46
问题 Here's he problem. I've developed an app for iOS to control an BLE LED device (and a few other things). Everything works fine and smooth. Now I wanted develop the same app for android and I already fail at the scanning of BLE devices. I have tried a few tutorials and sample codes but whatever I do I can't find any devices. I work on a Moto G4 Play. The bluetooth works and I can pair devices in the settings but it won't work with any sample code/tutorial I've tried. For example this one: https

Bluetooth Low Energy app failed to write characteristics on iOS 7

帅比萌擦擦* 提交于 2019-12-08 01:49:03
问题 I have a Bluetooth Low Energy (BLE) app that communicates with a BLE device through open connection. I am using CoreBluetooth library. After I upgraded my iPhone to iOS 7 and XCode to XCode 5. I recompiled my Bluetooth Low Energy app and found it no longer working. The connection is successful. The services and characteristics are discovered with no problems. Even the reading of the characteristics seems fine. But writing to a characteristic which should trigger some action on the BLE device

iBeacon app - receiving/transmitting at the same time

偶尔善良 提交于 2019-12-08 01:02:18
问题 How can my app transmit its iBeacon (to advertise itself) AND range for other iBeacons (to discover peers running the same app) at the same time? Are there any code samples out there? 回答1: Yes, this is possible. You can see for yourself by downloading my Locate for iBeacon app and trying it on two iOS devices simultaneously. You can turn on a transmitter on each device and simultaneously range for iBeacons and successfully see the iBeacon transmission from the other device. The only

Android Thread vs AsyncTask vs IntentService called from BLE onCharacteristicChanged()

為{幸葍}努か 提交于 2019-12-07 23:31:36
问题 I have an Android app from which I receive BLE data (every 62ms via notifications). The app can save data via a BufferedWriter to a file. Upon each onCharacteristicChanged() callback, I call either an AsyncTask, Thread or an IntentService to do a file write if the user enabled file save. The AsyncTask seems to work fine. But the docs say execute must be invoked on the UI thread, and I'm calling it from the BLE callback. Is that a problem? And how should I fix it? Using Thread causes this

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

廉价感情. 提交于 2019-12-07 23:05:27
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. 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. Take a look at this question for further details on the roles in BLE. 来源: https://stackoverflow.com