core-bluetooth

How to use BLE OBDII Peripheral

两盒软妹~` 提交于 2020-05-12 01:06:57
问题 I'm trying to create an iOS app that will read from an OBDII Bluetooth 4 (LE) device. I purchased a Vgate icar3 bluetooth(4.0) elm327 OBDII. I plug it into my car and find IOS-VLink peripheral that advertises some services. I can then get the characteristics for those services. These are the services I find: <CBService: 0x1780729c0, isPrimary = YES, UUID = Battery> <CBService: 0x178072a80, isPrimary = YES, UUID = 1803> <CBService: 0x178072ac0, isPrimary = YES, UUID = 1802> <CBService:

How to use BLE OBDII Peripheral

拜拜、爱过 提交于 2020-05-12 01:04:35
问题 I'm trying to create an iOS app that will read from an OBDII Bluetooth 4 (LE) device. I purchased a Vgate icar3 bluetooth(4.0) elm327 OBDII. I plug it into my car and find IOS-VLink peripheral that advertises some services. I can then get the characteristics for those services. These are the services I find: <CBService: 0x1780729c0, isPrimary = YES, UUID = Battery> <CBService: 0x178072a80, isPrimary = YES, UUID = 1803> <CBService: 0x178072ac0, isPrimary = YES, UUID = 1802> <CBService:

How to use BLE OBDII Peripheral

老子叫甜甜 提交于 2020-05-12 01:00:11
问题 I'm trying to create an iOS app that will read from an OBDII Bluetooth 4 (LE) device. I purchased a Vgate icar3 bluetooth(4.0) elm327 OBDII. I plug it into my car and find IOS-VLink peripheral that advertises some services. I can then get the characteristics for those services. These are the services I find: <CBService: 0x1780729c0, isPrimary = YES, UUID = Battery> <CBService: 0x178072a80, isPrimary = YES, UUID = 1803> <CBService: 0x178072ac0, isPrimary = YES, UUID = 1802> <CBService:

iOS Background BLE advertising not detectable by Android

北城余情 提交于 2020-05-10 18:36:37
问题 When an iOS BLE peripheral enters the background state, the advertising packets are not emitted in the regular manner and they are placed in a special “overflow” area which is only detectable by another iOS device explicitly looking for this device. The bluetooth-peripheral Background Execution Mode That said, you should be aware that advertising while your app is in the background operates differently than when your app is in the foreground. In particular, when your app is advertising while

iOS Background BLE advertising not detectable by Android

孤人 提交于 2020-05-10 18:35:45
问题 When an iOS BLE peripheral enters the background state, the advertising packets are not emitted in the regular manner and they are placed in a special “overflow” area which is only detectable by another iOS device explicitly looking for this device. The bluetooth-peripheral Background Execution Mode That said, you should be aware that advertising while your app is in the background operates differently than when your app is in the foreground. In particular, when your app is advertising while

Ble advertising and scanning in background mode

时光怂恿深爱的人放手 提交于 2020-05-06 00:31:49
问题 I have an application that acts as a BLE Peripheral and advertises a specific service CBUUIDs, It never connects to the peripherals It is critical for my use case that this app continues advertising even when the app is operating in the background. Though according to Apple’s documentation and several posts from online forums, iOS will severely limit what an app advertise while operating in the background, Is there any way we can advertise the device with name/data in complete background mode

Ble advertising and scanning in background mode

早过忘川 提交于 2020-05-06 00:30:48
问题 I have an application that acts as a BLE Peripheral and advertises a specific service CBUUIDs, It never connects to the peripherals It is critical for my use case that this app continues advertising even when the app is operating in the background. Though according to Apple’s documentation and several posts from online forums, iOS will severely limit what an app advertise while operating in the background, Is there any way we can advertise the device with name/data in complete background mode

Why do all devices discovered by CBCentralmanager have name=null?

拈花ヽ惹草 提交于 2020-03-26 05:19:40
问题 I am attempting to detect battery levels for connected BT devices on macOS. While I can get CBCentralManager to detect SOME nearby devices, all of the devices it detects are name=Null, even though there are numerous devices that should be detected and should have names (e.g., AirPods, magic trackpad, magic keyboard, etc). My BT Manager class is: import Cocoa import CoreBluetooth class BluetoothManager: NSObject, CBCentralManagerDelegate, CBPeripheralDelegate { var centralManager =

Why do all devices discovered by CBCentralmanager have name=null?

℡╲_俬逩灬. 提交于 2020-03-26 05:19:27
问题 I am attempting to detect battery levels for connected BT devices on macOS. While I can get CBCentralManager to detect SOME nearby devices, all of the devices it detects are name=Null, even though there are numerous devices that should be detected and should have names (e.g., AirPods, magic trackpad, magic keyboard, etc). My BT Manager class is: import Cocoa import CoreBluetooth class BluetoothManager: NSObject, CBCentralManagerDelegate, CBPeripheralDelegate { var centralManager =

Checking CBPeripheralManager.authorizationStatus() now that it is deprecated

ぃ、小莉子 提交于 2020-02-24 12:30:11
问题 CBPeripheralManager.authorizationStatus() and CBPeripheralManagerAuthorizationStatus are deprecated based on apple docs. What is the proper way of checking whether user has granted permission to use bluetooth in background now? CBPeripheralManagerDelegate has peripheralManagerDidUpdateState but that never returns unauthorized regardless of whether user granted the permission or not, instead it only returns poweredOn or poweredOff 回答1: CBCentralManager and CBPeripheralManager inherit from