IOBluetooth

RSS for tag

Gain user-space access to Bluetooth devices using IOBluetooth.

IOBluetooth Documentation

Posts under IOBluetooth tag

60 Posts
Sort by:
Post not yet marked as solved
0 Replies
128 Views
hi Team, after upgrading my Mac to Monterey m not able to connect my Non-Mac Bluetooth devices. please sort this out as I am suffering from this.
Posted
by meerghous.
Last updated
.
Post not yet marked as solved
1 Replies
551 Views
Hi, our Java-Bluetooth library avetanaBluetooth has stopped working with the Monterey update. I can also see that the Apple provided "Bluetooth Explorer" tool is not working as expected anymore. Inquires do not show any devices discoverable nearby. Is there any recommendation how to fix this in our code or is this something that Apple needs to fix internally? Any roadmap on when to expect a solution? Thanks Moritz
Posted
by moritzg74.
Last updated
.
Post not yet marked as solved
0 Replies
149 Views
Hi, Before my question, I've sent this ticket to Apple Bug Report. But it need to wait a lot of time for getting response. So that I leave it on the Developer Forums. Please help or try to give some ideas how to achieve this. Thanks! Initially, there are running two apps in our project. The first one is sending the data with iAP2(Bluetooth)(40KB per sec). The other is sending the data with BLE(150 byte per 100 ms). The BT device is same(iAP2(BT), BLE). The phone connect with a Bluetooth headset and play a music. Normally, they work well. All of transmission are sent well. *** BTW: The MFi device is also made by us. *** But when answering a phone call, the iAP2 data looks like is hung on the iOS. We get two situations. The first one is no space. Check by the api(https://developer.apple.com/documentation/foundation/outputstream/1411335-hasspaceavailable). All of commands could not be sent. The other the hasSpaceAvailable is true. By checking the api(https://developer.apple.com/documentation/foundation/outputstream/1411335-hasspaceavailable), the content is sent completed. The results both of them are same. The iAP2(BT) could not be sent to the MFi device. We also traced the air-sniffer log, but we got nothing. The transmission between iPhone and the device stopped. We have no idea about it. Please help or try to give some ideas how to analyze this. Thanks!
Posted Last updated
.
Post not yet marked as solved
2 Replies
286 Views
[Q] What is the thread safety status of the IOBluetooth framework? Is it possible call any class from the IOBluetooth framework from a secondary thread? I haven't found so far information about this in the documentation and the only pieces of info you can find through a google search say the framework is not thread safe but these are old pieces of info.
Posted Last updated
.
Post not yet marked as solved
0 Replies
252 Views
I am working on an iPad application which uses Henex HC-3208R wireless bar code scanner. While doing scanning the scanner reads the code from the QR code or barcode and copies the code in the textfield where focus is there which need to be restricted. If by mistakenly the focus goes to any textfield and you trigger the scanning button in device at the same time then it reads the code and copies it to the textfield. I also tried to distinguish between the text inputs from the virtual keyboard and bluetooth input device so that I can block the text coming from bluetooth scanner device but there is no changes in the textfield delegates, it behaves the same. If we can get to know the source of the key strike when focus is already there in a textfield, that will be much helpful. PS: I am connecting the scanner as using HID Profile and it is treated as a bluetooth keyboard by iPad.This is expected as device treats bar code scanner as bluetooth keyboard, but we can forcefully open the virtual keyboard on long pressing the arrow-up icon in keyboard task bar which is shown everytime. Please let me know if it is possible or any other suggestion which I can try. Thanks in advance.
Posted Last updated
.
Post not yet marked as solved
1 Replies
232 Views
Hi, is there any possibility to control iPhone over Raspberry's Bluetooth? For example, when I press button, iPhone will stop playing music. Thanks a lot!
Posted
by Drda64.
Last updated
.
Post not yet marked as solved
0 Replies
238 Views
I'm connecting to an iPhone 12 via Bluetooth for access to PBAP, HFP, and MAP for sending, receiving, and listening to messages/calls. Note that this is not via any kind of custom hardware but rather through a PC. When I try to run basic commands like GetMessagesListing, it always comes back empty. I can hook some events, so I at least get something, but nothing compared to other platforms. That said, is there any documentation that describes what is supported for each Bluetooth profile? I've searched through the documentation for Core Bluetooth but wasn't able to find answers to that specific question. From what I can gather, this is something that Apple doesn't seem to support as opposed to me doing it wrong. Any help is appreciated, -Dew
Posted Last updated
.
Post not yet marked as solved
0 Replies
301 Views
I have MacOS Monterey 12.1 on an iMac (Retina 5K, 27-inch, Late 2015). After a recent Monterey update, the Bluetooth began to drop and eventually reconnect the Trackpad 2. Even after purchasing a new replacement Trackpad 2 from Apple, the issue persists. The issue can occur frequently or with an hour or two of intermittent stability. When the connection drops, it usually (but not always) reconnects in some random number of seconds or minutes. Several steps have been taken that DO NOT resolve the issue: Delete /Library/Preferences/com.apple.Bluetooth.plist Delete ~/Library/Preferences/ByHost/com.appl.Bluetooth... Shutdown bluetooth and reboot Reset NVRAM/PRAM Reset SMC I have been unable to locate any logs on my MAC that provide more detail on bluetooth connections/issues. Questions Is there a fix for this recently-introduced issues OR is there an option to rollback the latest updates? Are there logs that can clarify the underlying issue(s) OR is this an oversight in the design?
Posted Last updated
.
Post not yet marked as solved
1 Replies
356 Views
Hi, We have an app that broadcast UUIDs as beacons to the Suntech vehicle tracker device in the foreground and background. This app broadcast UUIDs to vehicle tracker devices when the app is in range of the device, and when the application is away from the device then it will send alerts to users. But this is working properly when the app is in the foreground. And when the user puts the application in the background then broadcasting stops and UUIDs format is also changed. So can you guide us, on how we can broadcast in the background for a long time and when the app is killed?
Posted Last updated
.
Post not yet marked as solved
0 Replies
294 Views
I want to send encrypted data from ble (as central) to another device (as peripheral). Now when app is open everything is all good, but what to do if app is in background? Do I have to buy smaller version of advertising id from BLE SIG? OR Is there any way I can send data in background? Or Is there any unique characteristics or services other than BLE ADDRESS that iPhone always advertises when iOS Bluetooth is turned on, so that I can check on that condition and allow entry to user (as application is for smart door lock.)
Posted Last updated
.
Post not yet marked as solved
0 Replies
274 Views
We developed a bluetooth keyboard with classical bluetooth, and used usage page 0x01 and usage 0x03 for OTA firmware update, and I wrote an appliction on Windows 10 and everything works as expect. I am trying to wrote same application on macOS Big Sur 11.6.1 with XCode 13.2.1, but I found that DeviceMatchingCallback was triggered only once with usage page 0x01 and usage 0x06, which is keyboard usage page/usage pairs, any other usage page/usage pairs such as 0x01/0x03, 0x0C/0x01 didn't trigger DeviceMatchingCallback. So my question is: can customize usage page/usage of bluetooth hid be accessed by application?
Posted Last updated
.
Post not yet marked as solved
4 Replies
2.1k Views
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.
Posted
by inexcitus.
Last updated
.
Post not yet marked as solved
1 Replies
602 Views
My Bluetooth headphones are cracking and popping. This topic is on a lot of forums but I haven't found any fixes. Some of them are quite old. There is a really long run on this forum in fact years however there's not a fix for me. I did have success with reset the Bluetooth module this morning and it cleared up the distracting noises. I/m back on my computer this ever working in Logic Pro X and it's back. ANY HELP would be greatly appreciated. Thank You in advance. I have a late 2105 iMac Big Sur 11.4 Graphics: ADM Radeon R9 M390 2 GB 32 GB RAM
Posted
by transley.
Last updated
.
Post not yet marked as solved
0 Replies
406 Views
I trying to connect peripheral using UUID in the background, It's working only when i interact with advertising beacon first time at foreground then my app went background its working background and lock mode also if First time my app is away from advertising beacon i put my app at background then will come near to advertising beacon it's not working. in console, they came last peripheral not found as that error will come, my question is: is this possible to scan or connect Bluetooth using UUID for the first time without the app opening? i already tried that solutions also : https://stackoverflow.com/questions/53299770/ios-ble-device-paired-while-app-is-in-background-or-killed-or-suspend https://stackoverflow.com/questions/32140863/ios-diddiscoverperipheral-not-called-in-background-mode https://stackoverflow.com/questions/58235920/diddiscoverperipheral-not-working-sometimes-on-background https://stackoverflow.com/questions/42090795/not-able-to-search-my-ble-device-which-is-providing-service-id-in-scan-response Thanks
Posted
by naan_arun.
Last updated
.
Post not yet marked as solved
0 Replies
242 Views
Multiple barcode scanners will work properly when hard-plugged into Windows device but will insert random spaces into Notes when bluetooth-connected to iPad mini 4 (running 15.1), even if the settings are for a mac OS device. Thoughts?
Posted
by iidbiw3.
Last updated
.
Post not yet marked as solved
1 Replies
360 Views
I want to capture Bluetooth "Classic" device notifications on both Mac and iOS platforms primarily when: Bluetooth is turned on/off When a device gets connected/disconnected to Bluetooth On Mac: I used the IOBluetooth framework in Mac for this by registering for two notifications: registerForConnectNotifications registerForDisconnectNotifications However, the issue with this is that notifications get triggered even when a connect request happens with the device. (For ex: I pressed connect for connecting with headphones and a notification is received even though it failed to connect to the device for whatever reason). I need the notification to be received only when the device is successfully connected with the system. On iOS: I am not sure which framework to go with - whether CoreBluetooth or External Accessory. I did read that CoreBluetooth supports classic devices but not every device. I would appreciate any insight or help on this topic.
Posted Last updated
.