bluetooth-lowenergy

Bluetooth Connection drops automatically with Anrdoid Application

旧时模样 提交于 2019-12-24 19:38:46
问题 I am creating an application which Connects with the BLE Device with android application programmatically. Here's my code for the Connect / Disconnect When use clicks on the Connect button new Thread(new Runnable() { @Override public void run() { mConnecting = true; mConnectException = null; mConnectWait.close(); // Reset the condition. if (mConnectedGatt != null) { // Reconnect to the BLE DEX adapter. Logger.d(LOG_TAG, "going to connect"); mConnectedGatt.connect(); BluetoothDevice device =

Can we detect non-iBeacon beacons on iOS?

余生颓废 提交于 2019-12-24 15:26:33
问题 I and my team are working on a beacon that we need to talk to an app on the user's iPhone. Since we need the app to detect the beacon and execute code to talk to our API even when killed, we cannot use CoreBluetooth and need to operate as a beacon. We're attempting to make a custom beacon on a BCM20737S BLE module. Is it possible to have this custom beacon talk to an app on an iPhone as a beacon? (CoreLocation framework) Thanks! 回答1: As long as your packet is broadcasting a packet with the

Receive BLE signal from iBeacon to Bluno(arduino with BLE)

被刻印的时光 ゝ 提交于 2019-12-24 14:28:35
问题 I want to receive rssi signal and UUID from iBeacon to Bluno which the Arduino board has BLE. there are some questions for this. Are there any solutions to receive UUID and rssi from BLE to BLE? Is it possible to communicate two BLE device each other? I want some sites to reference for this problem. I also need to connect bluno with AR.Drone. Could you give me some advices for this? thank you for your help 回答1: The Bluno has the ability to act as an iBeacon (transmitter), but it doesn't have

Save a cache of all services and characteristics of a BluetoothDevice. Possible?

霸气de小男生 提交于 2019-12-24 13:49:45
问题 I have a BluetoothDevice with it's associated BluetoothGatt object. This is a device that the user connects to daily, and it does not have any characteristics or services that change often. Right now in order to interact with the device, after each connect I have to first discover all services, which often adds 1-5 seconds of delay to the whole process. My question is: is it possible to save a cache of my devices' services and characteristics so that I don't have to actually do a call to

How to fix this error “ Could not find module 'CzsBleSdk' for architecture 'x86_64'; found: arm64, arm ”

僤鯓⒐⒋嵵緔 提交于 2019-12-24 12:42:13
问题 I'm working with bluetooth in an old project which was written in swift3 and i'm working on converting it in swift4 and I had this error "Could not find module 'CzsBleSdk' for architecture 'x86_64'; found: arm64, arm" 回答1: You are now using 64 bit architecture in your Swift 4 project. You'll need the latest CzsBleSdk SDK which supports 64-bit architecture. You can integrate that manually or using Pod. I personally recommend Pod. 回答2: I seems that your framework was built and published the

How to retrive data from Bluetooth when app in background iOS?

不羁的心 提交于 2019-12-24 09:58:01
问题 My scenario is: Another (whatever app it is) try to retrieve the value from a Bluetooth device, But Bluetooth device doesn't send data other than our application. Another application wants Bluetooth data it needs to call our app in background mode to perform an operation also in the background. In short: Retrieve data from Bluetooth in the background and share that content to another application. If I tried using Custom URL it's open our application into the foreground. So, this one not

How do I remove paired Bluetooth devices on iOS?

别来无恙 提交于 2019-12-24 07:22:17
问题 I want my app could remove paired bluetooth devices. Becaues if device paried with iPhone, the device couldn't used for another device. I tried CBCentralManager cancelPeripheralConnection, but it doesn't work. they're still paired. Or there's some other app still connected this server? iPhone5,iOS7 回答1: You cannot unpair a device programmatically in iOS. The cancelPeripheralConnection is only to disconnect your apps connection to the device. Discussion This method is nonblocking, and any

How do I remove paired Bluetooth devices on iOS?

邮差的信 提交于 2019-12-24 07:21:17
问题 I want my app could remove paired bluetooth devices. Becaues if device paried with iPhone, the device couldn't used for another device. I tried CBCentralManager cancelPeripheralConnection, but it doesn't work. they're still paired. Or there's some other app still connected this server? iPhone5,iOS7 回答1: You cannot unpair a device programmatically in iOS. The cancelPeripheralConnection is only to disconnect your apps connection to the device. Discussion This method is nonblocking, and any

Calculate time of flight of BLE message between 2 Android phones

牧云@^-^@ 提交于 2019-12-24 07:12:34
问题 Maybe to general for SO, feel free to move to any other SO clone when needed. I would like calculate the distance between 2 android smartphones based on how long it takes for a message send over Bluetooth Low Energy to travel back and forth. Like: Device A connects over BLE to device B. Device A sends message Device A stores current nanoseconds (T0) Device B receives message on bluetooth radio (BT0) Device B process message Device B raises "message received" event (BT1) Device B stores

Windows 10 Bluetooth Gatt Client ValueChanged issue

霸气de小男生 提交于 2019-12-24 04:34:07
问题 I'm having an issue with Bluetooth Gatt characteristic reading at the moment. I was trying to run the code with my own custom profile thermometerCharacteristic.ValueChanged += temperatureMeasurementChanged; It causes this exception An exception of type 'System.ArgumentException' occurred in mscorlib.ni.dll but was not handled in user code Additional information: Value does not fall within the expected range. My function arguments looks like this void temperatureMeasurementChanged