bluetooth-lowenergy

How can i get exact distance in feets from the beacon, using roximity sdk?

两盒软妹~` 提交于 2020-02-06 03:56:04
问题 I am using Roximity SDK and it gives beacons range update but only with three points Far, Near and Immediate, while i want to get their distance in feets, any idea how can i get this ? Here's the code i have used according to roximity SDK docs. private void createBroadcastRecievers(){ IntentFilter intentFilter = new IntentFilter(); intentFilter.addAction(ROXConsts.MESSAGE_FIRED); intentFilter.addAction(ROXConsts.BEACON_RANGE_UPDATE); intentFilter.addAction(ROXConsts.WEBHOOK_POSTED);

Is it possible to create a Bluetooth Mesh Network with iOS and Android devices

拟墨画扇 提交于 2020-02-05 06:12:32
问题 I'm currently building an app that creates a platform where users can share information on a network but I wanted to create an offline option where users could still communicate on a peer-to-peer network when in close proximity. Is it possible to create a BT mesh network with smart phones? I've seen that Bluetooth has the option to create mesh networks using BLE but after looking into CoreBluetooth I haven't been able to find anything that would support this type of network. I've see some

Android Using BluetoothGattServer

痴心易碎 提交于 2020-02-01 09:41:50
问题 For an application I have need for an android device to be both a Ble Gatt peripheral and server to accept both incoming and send outgoing messages; however, it seems I cannot find much information pertaining to setting up and maintaining the server other than looking at projects of others in github. Can anyone show me the correct solution or guide me to more information regarding setting up BluetoothGattServer. 回答1: I would like to quickly mention, that most of the Android devices in use don

Bluetooth LE can't find any device on android 6.0

ぐ巨炮叔叔 提交于 2020-01-25 09:27:09
问题 I am building an app that receives data from bluetooth device and is fully functional on a 4.4.4 android smartphone. But when I try it on version 6.0 devices it does not find the bluetooth devices. I have activated location on the phone and I have added the permissions for location on manifest file but nothing happens. I have read somewhere that I have to request permission from the user and I have tried to add ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.ACCESS

BLE onDescriptorWrite is not trigger when writeDescriptor receive true

▼魔方 西西 提交于 2020-01-25 09:22:07
问题 It's my code to enable characteristic notification. private void enableNotification(BluetoothGattCharacteristic characteristic) { boolean s = bluetoothGatt.setCharacteristicNotification(characteristic, true); Log.d(TAG, "enableNotification: setCharacteristicNotification " + s); List<BluetoothGattDescriptor> descriptors = characteristic.getDescriptors(); if (null != descriptors && descriptors.size() > 0) { for (BluetoothGattDescriptor descriptor : descriptors) { Log.d(TAG, "enableNotification:

How can i scanning the mobile phone's bluetooth by using bluetoothLescanner?

醉酒当歌 提交于 2020-01-25 07:25:14
问题 I asked this question a few hours ago, but I still can't solve it. I'm trying to catch the BLE signal, and get the rssi vlue by using "BluetoothLeScanner" to measure the distance between two phone. But, my program detects every BLE_signal except the Bluetooth signal on my phone. The following is what I printed out with Log.e as I ran the program. ''' 2019-12-01 00:21:16.319 22089-22089/com.example.bluetooth E/get_RSSI: name: null, addr: 33:DC:55:32:73:96, rssi: -88, distance: 8

Android BLE Resubscribing to Characteristics

核能气质少年 提交于 2020-01-25 00:48:07
问题 I have an Android app which auto-subscribes to specific BLE characteristics on onServicesDiscovered() after BluetoothGatt gives me a GATT_SUCCESS. This was working pretty well. Later, I noticed that reconnecting to a previous connection using an indirect connection via BluetoothGatt.connect() was taking too long, so I changed it to be a direct connection: device.connectGatt(this, false, mGattCallback). This worked great in improving my reconnection speed. The problem: Now whenever I do a

Android: Can't connect to specific bluetooth device

左心房为你撑大大i 提交于 2020-01-24 10:57:08
问题 I have an application that regularly polls BLE peripherals for data. On rare occasions, the Android device is not able to connect to specific devices for long periods of time. Not only using my application, but with any other BLE-application I could find on Google play, is it unable to connect to one specific peripheral X. It can connect just fine with other ("identical") peripherals during this state, and other Android devices can connect to peripheral X. This problem tend to go away after a

Ranging an iBeacon latency

ぃ、小莉子 提交于 2020-01-23 19:35:19
问题 I have been playing around with the new iBeacons in iOS 7. I have one device setup as a beacon, and the other device ranging to detect when I am near, far, immediate, etc. I'd like to know very quickly when I cross between these ranges. Is there any way to adjust the latency? I find that I have to move my device around very slowly or I will not know when I cross these thresholds. 回答1: No, you would not be able to adjust the beacon latency. As Apple says in Region Monitoring Guide: To prevent

Ranging an iBeacon latency

血红的双手。 提交于 2020-01-23 19:33:47
问题 I have been playing around with the new iBeacons in iOS 7. I have one device setup as a beacon, and the other device ranging to detect when I am near, far, immediate, etc. I'd like to know very quickly when I cross between these ranges. Is there any way to adjust the latency? I find that I have to move my device around very slowly or I will not know when I cross these thresholds. 回答1: No, you would not be able to adjust the beacon latency. As Apple says in Region Monitoring Guide: To prevent