IOBluetooth

RSS for tag

Gain user-space access to Bluetooth devices using IOBluetooth.

Posts under IOBluetooth tag

184 Posts

Post

Replies

Boosts

Views

Activity

Help in certificate my product
I plan made certificate my product called EB01 for apple. I have a trouble with grouping EB01 in to one of categories from Accessory Interface Specification. EB01 is a bluetooth module (precisly BM64 from Microchip) that enables send music and custom data beetwen phone and amplifiers (EB01 is a plug and play extension pcb to our amplifers). So the input to EB01 is a bluetooth connection, and output is digital data with music and custom raw data (like uart). We plan to desging app for iphone to control our amplifers by this custom data. From above descriptive what device in Accessory Interface Specificationi can assign to my device? BM64 also supprot iap protocol.
0
0
880
Apr ’23
Iphone blue tooth fails to discover devices
Prior to IOS 14 this functioned well with multiple types of devices (JBL speakers, headsets, computer) on both our iPhones. Now, and with having tried all the recommended fixes, they no longer discover these. The iPhone may discover each other but the connection fails. Does connect to AirPods but now always needing pairing and with many fails before. It's a useful feature and a deal breaker for my next choice of personal device so, let me know how soon this can be resolved. The response clock is ticking.
1
0
1.7k
Apr ’23
MI Dual Mode Wireless Mouse side buttons not working via BT connection
I am using MI dual mode mouse on my MacBook Pro 2018, OS Ventura, but the side buttons don't work when using Bluetooth. The side buttons do work well via USB dongle but not Bluetooth. I did some research and found that, the Mouse/HID descriptor send invalid code for the 2 side buttons when using BT. Anyone who might know how I can solve this issue?
6
2
5.3k
Mar ’23
Announce notifications not working correctly
I have a pair of AirPod pros and a iPhone 12 Pro Max. When I first got them the announce notifications worked fine but now I am having a issue where it will pause my podcast or turn down my music as if it was gonna tell me the notification, and then say nothing. After a few seconds turns right back up. If I turn the announce notifications off I get nothing as if my phone is on silent. I have made sure that the tone volume in the accessibility settings is turned up and it is. Very odd and would like to find a solution.the only time I get a actual notification sound through them is if I unlocked using my phone and then at that point it will give me the regular notification sounds.
0
0
1k
Mar ’23
How to keep a connection with a Bluetooth device in the background for more than 3 minutes
I need to establish a Bluetooth connection with the sensor and maintain the connection with the sensor even in the background mode to continuously receive data. When I actually enter the background mode, the connection works well for 2 minutes, but after 2 minutes the connection is automatically disconnected. I searched and found that iOS automatically disconnects the Bluetooth connection between 1 and 3 minutes for battery efficiency, but is there no way to maintain the connection for more than 3 minutes?
0
0
985
Mar ’23
Bluetooth Connection Issues with Multiple Devices
Greetings all :) We have a third party device designed to be paired with multiple iPads. It's designed for a class room setting, where all student will have their own iPad, and each student will have access to any number of third party bluetooth enabled devices. The device currently has a baked in limit of x5 devices being paired to it at any one time. This means for up to 5 'lessons / classes' everyone can pair with any device without issue. However on the sixth lesson, connecting to the bluetooth device then fails, and the only fix is to go into the Settings, unpair any previous connected bluetooth devices, and then start the process again. Is there any workaround to allow either 'disconnecting' or 'forgetting' devices (in the same session on the same device) to allow re-pairing? At present it is a really poor user experience expecting all users to 'forget' all bluetooth devices, before being able to continue. All help / advice much appreciated.
0
0
1k
Mar ’23
Bluetooth hardware not found
Bluetooth not working, debug mode gives this report , unable to attach all of it due to file size restrictions. please help Bluetooth Explorer_2023-03-06-091822_Utsuks-MacBook-Pro.crash Bluetooth Explorer_2023-03-06-094223_Utsuks-MacBook-Pro.crash Bluetooth Explorer_2023-03-06-095634_Utsuks-MacBook-Pro.crash Bluetooth Explorer_2023-03-06-095634.crash mds_2023-03-06-143223.crash
0
0
1.7k
Mar ’23
Bluetooth connection busy
We have an application that uses flutter as a development framework, and on some newer devices with IOS 16.3.1 it is happening that the bluetooth connection is busy after a connection. Closing the app or disconnecting is not ending that connection, the only way to get it working again is to restart the iPhone. I would like to know if you have any suggestions of any cache memory that should be cleared or any other ideas to solve this problem?
0
0
625
Feb ’23
I Can Not Close Bluetooth With Using XCode
Hi, i've developing bluetooth off/on application for my IOT Device. When IoT publish "off" message, mac's bt should be close. Or the exact opposite. To make it, i decided to use "blueutil". So here is my function:     let task = Process()     task.launchPath = "/opt/homebrew/Cellar/blueutil/2.9.1/bin/blueutil"     task.arguments = ["power", "0"]     task.launch()     task.waitUntilExit()   } launchPath is blueutil's installed colation. But here is the problem. If i call the function, i get this error: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'launch path not accessible' terminating with uncaught exception of type NSException How can i fix it? Is there any way to close or open bluetooth? Thanks a lot from now.
0
0
666
Feb ’23
How to customize additional Buttons for a bluetooth device by an APP?
Hi Guys, I need to customize several keys for a bluetooth device. Sometimes the functional of the bluetooth device keys need to change, like change functional from "pgup" to "left" key. So far to customize the key it must go to the Iphone Settings=>Accessibility=>Touch=>AssistiveTouch=>Devices=>"bluetooth device name"=>Customize Additional Buttons/ Above progress is too complicated for user. I want to built an APP to simplify above progress. Currently I found the apple only provide the DriverKit Extension or HIDDriveKit for MacOS or PadOS but no IOS. Is there any methods? Thanks for the help.
0
0
2.6k
Jan ’23
bluetooth l2cap connect response 0x04
I have a question about below two devices connect classic BT L2cap profile, device 1: iphone xs max IOS 15.3.1 device 2: BT 5.1 module I need to do SDP service search, so l2cap connect is necessary. when I use my BT module to send a l2cap request command to iphone, it sometimes get response with 0x04(no resources available). But this issue wouldn't happen on android phone. Can anyone teach me why iphone response 0x04, and hot to fix it? Thanks a lot. I got the btsnoop log on attaached image.
0
0
966
Dec ’22
Remote control for iPad from BLE device
I need to implement a remote control for a SwiftUI app running on iPad. I would need to handle 2 different events like Start / Stop. On software side, I plan to use .onReceive to listen to BLE device. So my questions: I need realtime reaction (a few 1/100 s max) can any BLE remote control do the job ? If anyone has tested some low cost remote, I am interested to know. Or should I look for Homekit solutions ? Or use an iPhone as remote controller ?
0
0
972
Dec ’22
SDP query callback runs on macOS Big Sur but not Ventura
I have the following Swift code to perform an SDP query on a remote device: import IOBluetooth class Callback: IOBluetoothDeviceAsyncCallbacks { func sdpQueryComplete(_ device: IOBluetoothDevice!, status: IOReturn) { print("Query complete") CFRunLoopStop(CFRunLoopGetCurrent()) } func connectionComplete(_ device: IOBluetoothDevice!, status: IOReturn) {} func remoteNameRequestComplete(_ device: IOBluetoothDevice!, status: IOReturn) {} } let callback = Callback() let device = IOBluetoothDevice(addressString: "3c:61:05:2a:ed:12") let uuid = IOBluetoothSDPUUID(uuid16: 0x0003) let result = device!.performSDPQuery(_: callback, uuids: [uuid!]) print("Query started, result \(result)") CFRunLoopRun() On my 2021 MacBook Pro (with Ventura 13.1), the code prints "Query started, result 0" and hangs indefinitely because the callback does not run to stop the loop. However, on a virtual machine with Big Sur 11.3, the code also prints "Query complete" and exits normally. I believe this issue is related to other Bluetooth issues that have existed since Monterey, which have been posted about before. Since I plan to use SDP queries in my own application, are there any solutions or workarounds to make the above code work on recent versions of macOS?
1
0
970
Dec ’22
BLE Performance issue after upgrading to iOS 16.1.0 and 16.2.
Our iOS App uses BLE to connect to embedded devices. It was all working fine till iOS 15. After upgrading to iOS 16 we started seeing slowness in our app.   So the scenario here is we download a metadata file after successful BLE connection to embedded device. Previously in iOS 15 this operation use to take max 7-8 seconds. But now it takes 28 seconds to download the same metadata file. And this is main cause of slowness.   On further investigation we found that ATT_MTU negotiation was not sent from iPhone to embedded device and hence embedded device used the default max MTU size for connection. Which is 250.   Till iOS 15: MTU was negotiated as 527 or something higher based on the iPhone or device type. As you can see in the image below. Here [localhost (sivaram...)] is our Apple device and [Apple_d4:86:e9] is the embedded device. And L2CAP is sent from iPhone to device, and which negotiate the MTU size as 527. iOS 16.1.1 and after that MTU negotiation is not happening and it is always constant at 250 as set by embedded devices. Here localhost () is our Apple device and SiliconL_ee:c5:97 is the embedded device. And here there in no L2CAP call from iPhone that is not been sent at all. Hence, we received 250 as the max MTU size from the embedded device and are using it. We want to know how we can sent the negotiated MTU size as was happening before in iOS 15 from our app. Reference of the similar Apple tickets are also mention below. https://developer.apple.com/forums/thread/716874 https://developer.apple.com/forums/thread/715646 https://developer.apple.com/forums/thread/713095 Your response to this ticket is highly appreciated.
0
0
2.1k
Dec ’22
MacOS Monterey Bluetooth Issues
Hi Apple developer experts, I am getting one critical issue related to Bluetooth on MacOS 12.0.1 and MacOS 12.1. Since we upgrade to MacOS 12.0.1 the bluetooth not working to the pair with device anymore with detail checking as below: The issue was not happened from MacOS 10.7 to 11.3 Big Sur. Only happened from macOS Monterey 12.0.1 + I got the console log with these message: [CoreBluetooth] No name or address and [CoreBluetooth] WARNING: Unknown error: 431. Sometime I also got this: [CoreBluetooth] WARNING: Unknown error: 10702 Checking with tool PacketLogger I saw the error message in HCI Event : Authentication Complete - PIN Or Key Missing and Command Complete [FD4E] - LE Update Extended Advertising Instance - Invalid HCI Command Parameters The code get IOBluetooth Local Services in macOS Catalina response the channel id is 2 or 3 for the hardware device depending on. While in macOS Monterey is response with channel id 1. (The valid RFComm channel from 1 to 30 - IOBluetooth library) The RFCOMMChannel in macOS Monterey is not opened and not response the notification. Everything works fine with older MacOS (I used PacketLogger to check). This maybe the main issue that the Pair device is not working anymore. Note that the status BT connected just keep around 5 seconds then disconnected. My code request RFCOMM include service name, L2Cap attribute, RFComm attributes, SDP attributes with uuid I am very appreciate If anyone knows what should be changed or fix. Many thanks. I tried a lot of cases but it still not working, include reset the bluetooth from my Mac machine. Our customer complaints a lot since they updated macOS Monterey and the bluetooth has been not working properly. Any help would be greatly appreciated. Thank you!
13
1
6.3k
Dec ’22
IOBluetooth replyUserConfirmation hangs in MacOS Ventura
When trying to send a true to a "devicePairingUserConfirmationRequest" (in IOBluetoothDevicePairDelegate), there is no command sent via the HCI controller, i.e. when running PacketLogger there is no User Confirmation Request Reply. This causes a timeout and the a Simple Pairing Complete and Authentication Failure. This within itself is a strange behaviour (since the replyUserConfirmation function is being called), but if I send a replyPINCode, it magically works. This is behaviour was seen using both swift and objective-c cli and a simple swift APP. Also, if I connect to the device from the bluetooth settings page, the device pair without any problem (although when capturing system logs using Instruments, the pairing logic is completely different, using its own functions and API calls).
0
1
805
Nov ’22
Help in certificate my product
I plan made certificate my product called EB01 for apple. I have a trouble with grouping EB01 in to one of categories from Accessory Interface Specification. EB01 is a bluetooth module (precisly BM64 from Microchip) that enables send music and custom data beetwen phone and amplifiers (EB01 is a plug and play extension pcb to our amplifers). So the input to EB01 is a bluetooth connection, and output is digital data with music and custom raw data (like uart). We plan to desging app for iphone to control our amplifers by this custom data. From above descriptive what device in Accessory Interface Specificationi can assign to my device? BM64 also supprot iap protocol.
Replies
0
Boosts
0
Views
880
Activity
Apr ’23
Looking to Hire Developer
I have an app project that I'm trying to get off the ground, and I'm looking to hire a developer or team of developers to write the code for the app. The app will require communication with the latest versions of Bluetooth. Any suggestions on where to find developers for this? Is anyone here interested in learning more about the project?
Replies
0
Boosts
1
Views
755
Activity
Apr ’23
macOS 13 and BLE5 2mbps PHY
Does macOS (not iOS) support the BLE5 2mbps PHY? I'm trying to do BLE5 streaming to an iMac and cannot see to enable the 2mbps phy during negotiation. Also not finding anything in the forums for macOS and BLE5. Thank you.
Replies
2
Boosts
0
Views
1.1k
Activity
Apr ’23
Iphone blue tooth fails to discover devices
Prior to IOS 14 this functioned well with multiple types of devices (JBL speakers, headsets, computer) on both our iPhones. Now, and with having tried all the recommended fixes, they no longer discover these. The iPhone may discover each other but the connection fails. Does connect to AirPods but now always needing pairing and with many fails before. It's a useful feature and a deal breaker for my next choice of personal device so, let me know how soon this can be resolved. The response clock is ticking.
Replies
1
Boosts
0
Views
1.7k
Activity
Apr ’23
Change from Bluetooth to iPhone speaker
is it possible to change from Bluetooth to iPhone speaker in iOS 14? All I want is real-time control of where the audio comes from
Replies
1
Boosts
0
Views
1.5k
Activity
Mar ’23
MI Dual Mode Wireless Mouse side buttons not working via BT connection
I am using MI dual mode mouse on my MacBook Pro 2018, OS Ventura, but the side buttons don't work when using Bluetooth. The side buttons do work well via USB dongle but not Bluetooth. I did some research and found that, the Mouse/HID descriptor send invalid code for the 2 side buttons when using BT. Anyone who might know how I can solve this issue?
Replies
6
Boosts
2
Views
5.3k
Activity
Mar ’23
Announce notifications not working correctly
I have a pair of AirPod pros and a iPhone 12 Pro Max. When I first got them the announce notifications worked fine but now I am having a issue where it will pause my podcast or turn down my music as if it was gonna tell me the notification, and then say nothing. After a few seconds turns right back up. If I turn the announce notifications off I get nothing as if my phone is on silent. I have made sure that the tone volume in the accessibility settings is turned up and it is. Very odd and would like to find a solution.the only time I get a actual notification sound through them is if I unlocked using my phone and then at that point it will give me the regular notification sounds.
Replies
0
Boosts
0
Views
1k
Activity
Mar ’23
How to keep a connection with a Bluetooth device in the background for more than 3 minutes
I need to establish a Bluetooth connection with the sensor and maintain the connection with the sensor even in the background mode to continuously receive data. When I actually enter the background mode, the connection works well for 2 minutes, but after 2 minutes the connection is automatically disconnected. I searched and found that iOS automatically disconnects the Bluetooth connection between 1 and 3 minutes for battery efficiency, but is there no way to maintain the connection for more than 3 minutes?
Replies
0
Boosts
0
Views
985
Activity
Mar ’23
Bluetooth Connection Issues with Multiple Devices
Greetings all :) We have a third party device designed to be paired with multiple iPads. It's designed for a class room setting, where all student will have their own iPad, and each student will have access to any number of third party bluetooth enabled devices. The device currently has a baked in limit of x5 devices being paired to it at any one time. This means for up to 5 'lessons / classes' everyone can pair with any device without issue. However on the sixth lesson, connecting to the bluetooth device then fails, and the only fix is to go into the Settings, unpair any previous connected bluetooth devices, and then start the process again. Is there any workaround to allow either 'disconnecting' or 'forgetting' devices (in the same session on the same device) to allow re-pairing? At present it is a really poor user experience expecting all users to 'forget' all bluetooth devices, before being able to continue. All help / advice much appreciated.
Replies
0
Boosts
0
Views
1k
Activity
Mar ’23
Bluetooth hardware not found
Bluetooth not working, debug mode gives this report , unable to attach all of it due to file size restrictions. please help Bluetooth Explorer_2023-03-06-091822_Utsuks-MacBook-Pro.crash Bluetooth Explorer_2023-03-06-094223_Utsuks-MacBook-Pro.crash Bluetooth Explorer_2023-03-06-095634_Utsuks-MacBook-Pro.crash Bluetooth Explorer_2023-03-06-095634.crash mds_2023-03-06-143223.crash
Replies
0
Boosts
0
Views
1.7k
Activity
Mar ’23
Bluetooth connection busy
We have an application that uses flutter as a development framework, and on some newer devices with IOS 16.3.1 it is happening that the bluetooth connection is busy after a connection. Closing the app or disconnecting is not ending that connection, the only way to get it working again is to restart the iPhone. I would like to know if you have any suggestions of any cache memory that should be cleared or any other ideas to solve this problem?
Replies
0
Boosts
0
Views
625
Activity
Feb ’23
I Can Not Close Bluetooth With Using XCode
Hi, i've developing bluetooth off/on application for my IOT Device. When IoT publish "off" message, mac's bt should be close. Or the exact opposite. To make it, i decided to use "blueutil". So here is my function:     let task = Process()     task.launchPath = "/opt/homebrew/Cellar/blueutil/2.9.1/bin/blueutil"     task.arguments = ["power", "0"]     task.launch()     task.waitUntilExit()   } launchPath is blueutil's installed colation. But here is the problem. If i call the function, i get this error: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'launch path not accessible' terminating with uncaught exception of type NSException How can i fix it? Is there any way to close or open bluetooth? Thanks a lot from now.
Replies
0
Boosts
0
Views
666
Activity
Feb ’23
bluebooth for cars
How does the app identify the car Bluetooth? Is there iOS framework support?
Replies
1
Boosts
0
Views
1.4k
Activity
Feb ’23
How to customize additional Buttons for a bluetooth device by an APP?
Hi Guys, I need to customize several keys for a bluetooth device. Sometimes the functional of the bluetooth device keys need to change, like change functional from "pgup" to "left" key. So far to customize the key it must go to the Iphone Settings=>Accessibility=>Touch=>AssistiveTouch=>Devices=>"bluetooth device name"=>Customize Additional Buttons/ Above progress is too complicated for user. I want to built an APP to simplify above progress. Currently I found the apple only provide the DriverKit Extension or HIDDriveKit for MacOS or PadOS but no IOS. Is there any methods? Thanks for the help.
Replies
0
Boosts
0
Views
2.6k
Activity
Jan ’23
bluetooth l2cap connect response 0x04
I have a question about below two devices connect classic BT L2cap profile, device 1: iphone xs max IOS 15.3.1 device 2: BT 5.1 module I need to do SDP service search, so l2cap connect is necessary. when I use my BT module to send a l2cap request command to iphone, it sometimes get response with 0x04(no resources available). But this issue wouldn't happen on android phone. Can anyone teach me why iphone response 0x04, and hot to fix it? Thanks a lot. I got the btsnoop log on attaached image.
Replies
0
Boosts
0
Views
966
Activity
Dec ’22
Remote control for iPad from BLE device
I need to implement a remote control for a SwiftUI app running on iPad. I would need to handle 2 different events like Start / Stop. On software side, I plan to use .onReceive to listen to BLE device. So my questions: I need realtime reaction (a few 1/100 s max) can any BLE remote control do the job ? If anyone has tested some low cost remote, I am interested to know. Or should I look for Homekit solutions ? Or use an iPhone as remote controller ?
Replies
0
Boosts
0
Views
972
Activity
Dec ’22
SDP query callback runs on macOS Big Sur but not Ventura
I have the following Swift code to perform an SDP query on a remote device: import IOBluetooth class Callback: IOBluetoothDeviceAsyncCallbacks { func sdpQueryComplete(_ device: IOBluetoothDevice!, status: IOReturn) { print("Query complete") CFRunLoopStop(CFRunLoopGetCurrent()) } func connectionComplete(_ device: IOBluetoothDevice!, status: IOReturn) {} func remoteNameRequestComplete(_ device: IOBluetoothDevice!, status: IOReturn) {} } let callback = Callback() let device = IOBluetoothDevice(addressString: "3c:61:05:2a:ed:12") let uuid = IOBluetoothSDPUUID(uuid16: 0x0003) let result = device!.performSDPQuery(_: callback, uuids: [uuid!]) print("Query started, result \(result)") CFRunLoopRun() On my 2021 MacBook Pro (with Ventura 13.1), the code prints "Query started, result 0" and hangs indefinitely because the callback does not run to stop the loop. However, on a virtual machine with Big Sur 11.3, the code also prints "Query complete" and exits normally. I believe this issue is related to other Bluetooth issues that have existed since Monterey, which have been posted about before. Since I plan to use SDP queries in my own application, are there any solutions or workarounds to make the above code work on recent versions of macOS?
Replies
1
Boosts
0
Views
970
Activity
Dec ’22
BLE Performance issue after upgrading to iOS 16.1.0 and 16.2.
Our iOS App uses BLE to connect to embedded devices. It was all working fine till iOS 15. After upgrading to iOS 16 we started seeing slowness in our app.   So the scenario here is we download a metadata file after successful BLE connection to embedded device. Previously in iOS 15 this operation use to take max 7-8 seconds. But now it takes 28 seconds to download the same metadata file. And this is main cause of slowness.   On further investigation we found that ATT_MTU negotiation was not sent from iPhone to embedded device and hence embedded device used the default max MTU size for connection. Which is 250.   Till iOS 15: MTU was negotiated as 527 or something higher based on the iPhone or device type. As you can see in the image below. Here [localhost (sivaram...)] is our Apple device and [Apple_d4:86:e9] is the embedded device. And L2CAP is sent from iPhone to device, and which negotiate the MTU size as 527. iOS 16.1.1 and after that MTU negotiation is not happening and it is always constant at 250 as set by embedded devices. Here localhost () is our Apple device and SiliconL_ee:c5:97 is the embedded device. And here there in no L2CAP call from iPhone that is not been sent at all. Hence, we received 250 as the max MTU size from the embedded device and are using it. We want to know how we can sent the negotiated MTU size as was happening before in iOS 15 from our app. Reference of the similar Apple tickets are also mention below. https://developer.apple.com/forums/thread/716874 https://developer.apple.com/forums/thread/715646 https://developer.apple.com/forums/thread/713095 Your response to this ticket is highly appreciated.
Replies
0
Boosts
0
Views
2.1k
Activity
Dec ’22
MacOS Monterey Bluetooth Issues
Hi Apple developer experts, I am getting one critical issue related to Bluetooth on MacOS 12.0.1 and MacOS 12.1. Since we upgrade to MacOS 12.0.1 the bluetooth not working to the pair with device anymore with detail checking as below: The issue was not happened from MacOS 10.7 to 11.3 Big Sur. Only happened from macOS Monterey 12.0.1 + I got the console log with these message: [CoreBluetooth] No name or address and [CoreBluetooth] WARNING: Unknown error: 431. Sometime I also got this: [CoreBluetooth] WARNING: Unknown error: 10702 Checking with tool PacketLogger I saw the error message in HCI Event : Authentication Complete - PIN Or Key Missing and Command Complete [FD4E] - LE Update Extended Advertising Instance - Invalid HCI Command Parameters The code get IOBluetooth Local Services in macOS Catalina response the channel id is 2 or 3 for the hardware device depending on. While in macOS Monterey is response with channel id 1. (The valid RFComm channel from 1 to 30 - IOBluetooth library) The RFCOMMChannel in macOS Monterey is not opened and not response the notification. Everything works fine with older MacOS (I used PacketLogger to check). This maybe the main issue that the Pair device is not working anymore. Note that the status BT connected just keep around 5 seconds then disconnected. My code request RFCOMM include service name, L2Cap attribute, RFComm attributes, SDP attributes with uuid I am very appreciate If anyone knows what should be changed or fix. Many thanks. I tried a lot of cases but it still not working, include reset the bluetooth from my Mac machine. Our customer complaints a lot since they updated macOS Monterey and the bluetooth has been not working properly. Any help would be greatly appreciated. Thank you!
Replies
13
Boosts
1
Views
6.3k
Activity
Dec ’22
IOBluetooth replyUserConfirmation hangs in MacOS Ventura
When trying to send a true to a "devicePairingUserConfirmationRequest" (in IOBluetoothDevicePairDelegate), there is no command sent via the HCI controller, i.e. when running PacketLogger there is no User Confirmation Request Reply. This causes a timeout and the a Simple Pairing Complete and Authentication Failure. This within itself is a strange behaviour (since the replyUserConfirmation function is being called), but if I send a replyPINCode, it magically works. This is behaviour was seen using both swift and objective-c cli and a simple swift APP. Also, if I connect to the device from the bluetooth settings page, the device pair without any problem (although when capturing system logs using Instruments, the pairing logic is completely different, using its own functions and API calls).
Replies
0
Boosts
1
Views
805
Activity
Nov ’22