Core Bluetooth

RSS for tag

Communicate with Bluetooth 4.0 low energy devices using Core Bluetooth.

Core Bluetooth Documentation

Posts under Core Bluetooth tag

282 results found
Sort by:
Post not yet marked as solved
59 Views

CoreBluetooth stopped working in my app

Hello, I am the developer of an app that is published on the App Store. This app connects to Bluetooth devices to read their battery levels. However, it seems that CoreBluetooth, which is used to discover and connect to devices, has completely stopped working on macOS Monterey. The delegate methods are no longer triggered. When I start my app I see the following messages in the output area: [CoreBluetooth] No name or address The Console app shows a lot of this messages: error 14:56:23.730415+0200 bluetoothd Server.Core sdp attributes is empty I don't know if this is related in any case. Are there any new entitlements or something like that? I did not change any single line and on Big Sur, everything works fine. A customer of mine, which also uses the beta version, already contacted me, so this seems to be a general issue - at least with my app? The app also works fine on Big Sur for the customer.
Asked
by inexcitus.
Last updated
.
Post not yet marked as solved
55 Views

Auto launch of IOS application when a Bluetooth connection is established in the background

Hi Team, How to automatically launch iOS application when a Bluetooth connection is established? i.e when the application is pushed to the background, the BT connection with the peripheral will still happen. At this point of time, I want my app to come back to the foreground. How to achieve this ? I have enabled the UIBackgroundModes as below. The application is a Xamarin.ios app. <key>UIBackgroundModes</key> <array> <string>bluetooth-central</string> <string>bluetooth-peripheral</string> </array>
Asked Last updated
.
Post not yet marked as solved
1.3k Views

Bluetooth 5 long range?

Does iOS 13 support Bluetooth 5 long range for iPads and iPhones? There was a post a few years ago about iOS 11 that was never answered, so hopefully a repost for iOS13 will get some answers this time.
Asked
by scholvat.
Last updated
.
Post not yet marked as solved
284 Views

About Bluetooth long range

"Coded PHY" not found in API How to solve this problem? In addition, I checked other questions, only iPhone8 and iPhoneX can realize Long Range, right?
Asked Last updated
.
Post not yet marked as solved
1.3k Views

Core Bluetooth - scanning for extended advertising issues

Hi,I am trying to scan for extended advertising packets using my iPad Air (A2152). I've noticed that my device supports Bluetooth 5.0 but I can't find my BLE 5.0 peripheral using Core Bluetooth. I have found an API to test if my devices support this feature and I have written code to test its. if (@available(iOS 13.0, *)) { if ([CBCentralManager supportsFeatures:CBCentralManagerFeatureExtendedScanAndConnect]) { NSLog(@"YES"); } else { NSLog(@"NO"); } } else { NSLog(@"Not iOS 13"); }I get answer "NO".More over, I was trying to use the PacketLogger for Xcode to find out the problem. My investigation has gone to place when I see that there are sending packets to set extended scan parameters with code "Reserved for future use". It's strange for me why this value is set. It is looking like software issues (with Core Bluetooth) rather than the unability by my device to scan for advertising extensions.What you can see at attached image. Next one, I don't know about if my device is supports "LE 2 Mbps bitrate". We can see that iPad is scanning using LE 1 Mbps. How to check if it's possible to scanning using LE 2 Mbps? It seems to me each device which supports Bluetooth 5.0 should be able to scan using LE 2 Mbps.To sum up, I have a several questions for you.1. About Core Bluetooth, is there any API which should I use to enable scanning for extended advertising? I haven't found any but I would like to be certain about its.2. If first question has negative answer. What is problem with my device or framework or something else? What is caused that scanning for extended advertising is impossible using my iPad A2152?3. I'm wondering about how to check Bluetooth bitrate in my device. How to do it? Is it possible by users? Or maybe anywhere in product's specification exists this information?4. Last one, maybe there are any devices which supports extended advertising. Could you tell which ones?Best Regards
Asked
by lapwingg.
Last updated
.
Post not yet marked as solved
5.2k Views

Is Serial Port Profile (SPP) supported on iOS over BLE Profile Device like ELD hardware

I have ELD hardware with BLE Profile (V4.0) I want to connect through SPP is it possible in iOS?1. If possible do we require to enroll with MFi Program?2. If not possible with SPP is there any other way to do?
Asked Last updated
.
Post not yet marked as solved
44 Views

In iOS 15, when the iPhone power off and restart the app no longer restore via BLE.

My iOS app implements the BLE preservation and restoration bahaviour , Which means If a BLE operation (scan, connect, disconnect, ...) was running and the user power off the phone and restart it then unlocked, if user enters the range of a the device that is related to the running operation before power off, system automatically awakes the app, This was working fine on iOS 14 and below. I updated my device to iOS 15 and app no longer gets awoken while entering a BLE region .
Asked Last updated
.
Post not yet marked as solved
32 Views

Bluetooth connection of iPadOS15 is possible but of iPadOS14 is impossible

Follow-up: 748349673 This is NRI Misonoo (Mnager of Sudo) We are aware that the Bluetooth connection problem of iPadOS14 has not been solved. Under the same conditions we tried the Bluetooth connection of iPadOS15 and succeeded. The iPadOS14 issue be solved with iPadOS15?
Asked Last updated
.
Post not yet marked as solved
38 Views

How to maintain connection between Bluetooth and iPhone

Hello, I am a beginner in Arduino and iOS APP programming and development, and I am doing my university project. I am having trouble maintaining the Bluetooth connection between the Adafruit Esp32 Feather and iPhones. I developed an iOS application that allows me to log in, register, search for friends, send commands to the Adafruit Esp32 Feather board, and so forth. Therefore, these functions have a total of 5 scenes. In the Historical View Controller Scene, tap the device button above the avatar to connect to the Bluetooth embedded in the Adafruit Esp32 Feather board. Then click on a notification in the tableView to send commands to the Adafruit Esp32 Feather board. But the problem is that when I leave this scene and return to the previous scene, Bluetooth will automatically disconnect from the iPhone. I have to power off and on the Adafruit Esp32 Feather board, and tap the device button on the history view controller scene to connect to Bluetooth again. This makes the user experience very inconvenient. How can I keep the Bluetooth connection, even after I leave this page? In this way, I don't have to close and open the Adafruit Esp32 Feather board every time I leave this scene and want to enter this scene again. Attached is the code of App and Arduino. The code of APP and Arduino This is the HistoryViewControllerscene: I put the Bluetooth code in BleManager.swift: Below is the Bluetooth setting in Info.plist: If you have any questions, feel free to ask me. Thanks!
Asked
by PuWu.
Last updated
.
Post not yet marked as solved
63 Views

BGAppRefreshTask never fires when device is offline?

My iOS app needs to run a task periodically in the background that scans BLE devices, then retrieves information from them. I implemented this task with BGAppRefreshTask. It fires when the network is online, but never when the network is offline. Is it correct behavior? In that case, is there any other way to run this task when the network is offline? Thanks.
Asked
by HiroM.
Last updated
.
Post not yet marked as solved
689 Views

Bluetooth 5 Coded PHY (Long Range) removed in iOS 14

I am pretty sure iOS 13.4 (beta and later) did support Coded PHY (Long Range). Tested devices are iPhone SE2 and iPhone 11 Pro. However, it seems iOS 14 removed the support of Coded PHY, accidentally or on purpose, I don't know? The same PHY update request returns "1M PHY" in iOS 14, but "Coded PHY" in iOS 13 (13.4 beta and later). Anyone knows why? Samson
Asked Last updated
.
Post not yet marked as solved
187 Views

Does any IOS version support BLE long range

Is there any Iphone with any IOS version support BLE long range mode (125kb/s or 500kb/s)? I saw someone asked the question and replied that in some version of IOS it supports. But I can't find any documentation/spec indicating this. Just want to have an official confirmation from Apple for this. Thanks!
Asked
by tc_2021.
Last updated
.
Post not yet marked as solved
56 Views

connecting issue with BLE

I am building a flutter project that using a Bluetooth Reactive BLE dependency but I am facing a error while connecting with BLE device. Errors are like: Command PhaseScriptExecution failed with a nonzero exit code Flutter/Flutter.h file not found
Asked
by ashu11.
Last updated
.
Post not yet marked as solved
546 Views

Big Sur - Unable to use Bluetooth in PC/SC IFD Handler plugin from within platform binary

Hi, Our PC/SC IFD Handler plugin loaded and running inside of com.apple.ifdhandler system process stops working on BigSur because the TCC engine denies com.apple.ifdhandler access to bluetooth. Our IFD Handler communicates via BLE to the SmartCardReader. Here the relevant messages from the log AUTHREQATTRIBUTION: msgID=4121.1, attribution={responsible={identifier=com.apple.ifdreader, pid=4115, auid=0, euid=0, responsiblepath=/System/Library/CryptoTokenKit/com.apple.ifdreader.slotd/Contents/MacOS/com.apple.ifdreader, binarypath=/System/Library/CryptoTokenKit/com.apple.ifdreader.slotd/Contents/MacOS/com.apple.ifdreader}, requesting={identifier=com.apple.ifdbundle, pid=4121, auid=0, euid=0, binarypath=/System/Library/CryptoTokenKit/com.apple.ifdreader.slotd/Contents/XPCServices/com.apple.ifdbundle.xpc/Contents/MacOS/com.apple.ifdbundle}, }, standard 15:21:59.836608+0100 tccd AUTHREQSUBJECT: msgID=4121.1, subject=com.apple.ifdreader, 15:21:59.836956+0100 tccd Refusing TCCAccessRequest for service kTCCServiceBluetoothAlways from client Sub:{com.apple.ifdreader}Resp:{identifier=com.apple.ifdreader, pid=4115, auid=0, euid=0, responsiblepath=/System/Library/CryptoTokenKit/com.apple.ifdreader.slotd/Contents/MacOS/com.apple.ifdreader, binary_path=/System/Library/CryptoTokenKit/com.apple.ifdreader.slotd/Contents/MacOS/com.apple.ifdreader} in background session We tried to add com.apple.security.device.bluetooth entitlement to our plugin and also we added NSBluetoothAlwaysUsageDescription and NSBluetoothPeripheralUsageDescription to its Info.plist file but nothing works Does anyone know how to allow platform binary to access bluetooth? if not, all plugins written that runs inside of platform process will not be able to access bluetooth.
Asked
by xenox.
Last updated
.
Post not yet marked as solved
37 Views

BLE MFi information

I have connected two hearing aids by MFi,how can i get some information about the connected hearing aids in our app? I want to recognize our product in our app, when the product has been connected by mfi.
Asked
by iizq.
Last updated
.