bluetooth-lowenergy

Getting list of available bluetooth devices in ios

对着背影说爱祢 提交于 2019-12-24 04:12:13
问题 Is there a way to get list of mac addresses of available bluetooth devices in ios? I'm working on a programm which finds people nearby using bluetooth mac addresses. 回答1: I'm sure you have: [centralManager scanForPeripheralsWithServices:nil options:nil]; That means your app is searching for BLE peripherals. Every time your app discovers a peripheral invokes: - (void)centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:(NSDictionary *

How to detect click event of connected Bluetooth peripheral device (Selfie stick)?

。_饼干妹妹 提交于 2019-12-24 02:57:22
问题 I have Selfie stick connected to my phone. I am able to find device ID using below code: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); IntentFilter filter = new IntentFilter(BluetoothDevice.ACTION_ACL_CONNECTED); this.registerReceiver(mReceiver, filter); } //The BroadcastReceiver that listens for bluetooth broadcasts private final BroadcastReceiver mReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent

Bluetooth LE maximum transmission size

守給你的承諾、 提交于 2019-12-24 02:42:45
问题 We are currently working with Bluetooth LE and want to send a 128 character string to a gatt service. Now the Bluetooth Specs say that the maximum packet size of BLE is 22 bytes, my string will never fit in the packet. We are thinking about chunking it up and send it in iterations. Is this the usual way of doing things? 回答1: Yes, you need to chunk the data into 18 bytes pieces, then send a series of Prepare Write Request s to the Server. Each of this request has 3 parameters: Attribute handle

Dealing with Android-Doze mode on my BLE monitoring app while user's sleeping

爱⌒轻易说出口 提交于 2019-12-24 01:54:11
问题 I made the device which monitors person's health in sleep time and it connects to a smartphone via BLE. It's working great with the iOS app. But since Doze mode came on Android world. It's really hard to deal with it because my device is working in his sleep time. The main feature is that it detects particular danger and notify to the user while he is sleeping with the device. I need a network connection when it occurs. Many articles tell me that I can use a network even in the doze mode if

iOS CoreBluetooth reconnecting device with UUID

青春壹個敷衍的年華 提交于 2019-12-24 01:47:27
问题 I have a Bluetooth 4.0 (BLE) device using the CC2541 chipset which I am interfacing with via the iOS Core Bluetooth Framework. I can successfully make a connection to the device using Core Bluetooth when the device is in a discoverable/advertising mode and transfer data to and from the device without any problem. I maintain a collection of device UUIDs that I have connected with and I am now attempting to connect to one of these devices again using: CBCentralManager - (void

BLE peripheral: scanning while connected

谁都会走 提交于 2019-12-23 22:54:19
问题 Is it possible to make a peripheral scan for advertisments while connected to a central? It seems like it is either scanning for advertisments or have your peripheral connected but I need to do both. The peripheral should be able to report RSSI measurements from advertisements it picks up. I'm using 'bleno' for the peripheral and 'noble' for the scanning on a linux box (bluez) 回答1: The answer to this differs depending on the version of Bluetooth that your device is on. For Bluetooth v4.0: A

what is the difference between bounded and unbounded device?

拈花ヽ惹草 提交于 2019-12-23 17:53:14
问题 I’m new to both iOS and BLE, so kindly bear with me if this question is very basic. What is the distinction between bounded and unbounded devices? I’m working with CBCentralManager for BLE in iOS, and I’m trying to figure out how to pair them through CBCentralManager . 回答1: You don't need to do anything different app, iOS will handle the binding if required. Bounded connections are in a way "paired" to the iOS device. Once bounded they will not communicate to any other device. Bounding is

Scan bluetooth low energy using hcitool?

我怕爱的太早我们不能终老 提交于 2019-12-23 15:51:38
问题 When I run this command which makes the ble device scanning for just 5 seconds only: $ sudo timeout 5s hcitool -i hci0 lescan the output is shown in the terminal screen. But when I redirect the output to a file to save the addresses of the advertising devices, every time I run the command I find the file is empty and the output isn't visible in the terminal nor in the file. The command I used: $ sudo timeout 5s hcitool -i hci0 lescan > file.txt What do I have to do in order to make hcitool

Android: Bluetooth Low Energy GATT Profile

。_饼干妹妹 提交于 2019-12-23 10:29:12
问题 I am looking to send information from my Android device to a micro-controller (such as an Arduino). Using Bluetooth Classic I simply send a byte array of data to the micro-controller, and process the byte array accordingly. I started reading about Bluetooth Low Energy and I am hearing all this talk about GATT profiles. Why should I create a GATT profile? What is a GATT profile going to do for me in the case of exchanging information from an Android device to a micro-controller? Thanks in

Android: Bluetooth Low Energy GATT Profile

一个人想着一个人 提交于 2019-12-23 10:28:54
问题 I am looking to send information from my Android device to a micro-controller (such as an Arduino). Using Bluetooth Classic I simply send a byte array of data to the micro-controller, and process the byte array accordingly. I started reading about Bluetooth Low Energy and I am hearing all this talk about GATT profiles. Why should I create a GATT profile? What is a GATT profile going to do for me in the case of exchanging information from an Android device to a micro-controller? Thanks in