bluetooth-peripheral

Scan peripheral when app in background (ex. when screen locked)

自作多情 提交于 2020-06-23 14:08:12
问题 I have an app which is working in background. I use CBPeripheralManager to Advertising and CBCentralManager to scan. I use two ıos (IOS 11.3 and IOS 13.4.1) device. First one is advertising foreground and background. Second one is scan foreground and background. I can scan; App in the background, phone is unlocked - Works perfect App in background, phone is locked, screen is lighted - Works perfect App in background, phone locked, screen is off - Doesn't work! /* I check it Advertising app

How to Programmatically Clear Bluetooth Cache using GattServer

此生再无相见时 提交于 2020-03-17 07:03:29
问题 I'm slightly familiar with BLE and I am facing some problem with an inherited code. So the app works like that: With BLE enabled the app scans for devices The app displays the devices found The user selects the device to pair with The app pairs with the device The problem I'm facing is that after pairing several times (it varies) the phone is not able to discover devices, hence blocking the user to pair. I'm using GattServer to connect with the client device, and I'm reseting the services as

Advertise Bluetooth LE Service using HCITool

牧云@^-^@ 提交于 2019-12-07 05:53:57
问题 I'm experimenting with creating a Bluetooth Low Energy Peripheral on my Linux computer (The goal is to send data over Bluetooth From an iPhone). Im currently using the Tools hciconfig , hcitool and hcidump . My current experiment is to advertise a Service with a Specific UUID, that the iOS CoreBluetooth Library will pick up. (Note: I'm not trying to create an iBeacon). Right now, it's actually as simple as One Single Command that is bugging me. hcitool -i hci0 cmd 0x08 0x0008 15 02 01 1a 11

Advertise Bluetooth LE Service using HCITool

时光总嘲笑我的痴心妄想 提交于 2019-12-05 11:45:04
I'm experimenting with creating a Bluetooth Low Energy Peripheral on my Linux computer (The goal is to send data over Bluetooth From an iPhone). Im currently using the Tools hciconfig , hcitool and hcidump . My current experiment is to advertise a Service with a Specific UUID, that the iOS CoreBluetooth Library will pick up. (Note: I'm not trying to create an iBeacon). Right now, it's actually as simple as One Single Command that is bugging me. hcitool -i hci0 cmd 0x08 0x0008 15 02 01 1a 11 07 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f 50 What I think it should do is the following: 0x08:

iOS Apps that access the same BLE peripheral: How to distinguish?

我是研究僧i 提交于 2019-12-02 04:53:07
I have to following scenario: My app requests and receives data from an BLE peripheral (a glucometer). It it possible that the user has another app (from another developer) installed, that also communicates with the peripheral. I noticed that my app receives characteristic notifications for requests that where initiated by the other app. This causes my app to receive some data twice. Is there any way to distinguish between responses to my request and responses that are caused by another app? Or how can I handle it? While the stack obviously knows which app a certain (read, write) response