IOBluetooth

RSS for tag

Gain user-space access to Bluetooth devices using IOBluetooth.

Posts under IOBluetooth tag

190 Posts

Post

Replies

Boosts

Views

Activity

Press some special characters by HID usage codes
Hi everyone, I am developing a virtual keyboard device connected to an iOS device by Bluetooth. And how to press any special characters by HID usage. I have tried all combinations of keys option + shift + key or option + key but there aren't any characters that I want Particularly, I want to press the character '@' in the Lithuanian language for iOS devices by Bluetooth virtual keyboard. Are there any combinations of keys to press these special characters? Dien Vu
0
0
895
Jun ’22
Bluetooth UHP IOS 14.2 problem iphone 12
Iphone 12 new with bluetooth handsfree UHP, Cadillac,Opel,Saab. connect ok, receive and make calls ok, but when you will end the call, the sustem of the car turns crazy, sometimes loose conection, sometimes freeze the call on the car but it’s ended on the phone. several test done, changing configuration on the phone,with no result, The most surprising it’s thats if the person tbat makes tbe call to you end the call, everything it’s ok. same car eith iphone 11 Ios 14.1 works fine ahy thoughts about?
3
0
1.2k
Jun ’22
Remap different keyboard using IOHID
Hi there! I'm currently new to Mac OS dev (coming from a history of Linux dev). I have an external BT keyboard and a couple keys are mapped differently than my Mac keyboard (§ to ` for example). I'm wondering if it's possible to write a kernel extension that detects the key sent from the BT keyboard and remap the key code. I don't really know whether this is possible and if it is, where to look in the ecosystem. It's a bit different from Linux. Thank you!
1
0
1.1k
May ’22
how to use the cache of GATT datatbase in IOS
Here I have an requirement that ios ble app may not repeatedly does service and characterice discovery process if that the gatt database in the peer device is not changed. To use the cache in the ios could fast the operation on peer device. And it said to use the cache of gatt database in IOS needs the condition which IOS and ble device need to be paired firstly. However my ios app does not need to be paired. who could tell how to do with it ?
0
0
681
May ’22
Bluetooth and Wi-Fi issues
So i got this problem where i cant turn on bluetooth or wifi in my i phone. Thoes worked fine just minute ago but suddenly both of thoes stopped working. I tried to restart phone, restart wifi settings and restart all of the settings but nothing seems to work. What i can do?
1
0
570
Apr ’22
why my bluetooth won’t turn on
Hi my bluetooth wont turn on after monterey Is anyone solved his problem of bluetooth turning on after monterey 12.3.1 or public beta 12.4? I updated to it but yet can’t turning on bluetooth of my core i5 macbook / anyone does have better solution? / I delete plist / rest smc and nvram / reset bluetooth / reinstall mac old and new versions / clean install mac / try unsigned blufix kext / try pkill bluetoothd in terminal try bluetool by brew / force quit bluetoothd and… / but didn’t solve it and I cant turn on bluetooth and using my magic mouse 2
1
0
906
Apr ’22
my right airpod is not charging properly after ios 15.4.1 update
My right airpod is not charging properly after the update. It shows it is always connected to the phone even when it is in the case. And when charging only left AirPod is getting charged. When I receive a call through the phone I am still getting airpods option. I tried unpairing and pairing, cleaned the case thoroughly, restarted my phone but nothing helped. Help me find a solution.
0
0
549
Apr ’22
Bluetooth in Monterey
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
1
0
1.3k
Apr ’22
iAP2(BT) doesnt have space to write when or after calling.
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!
0
0
1k
Mar ’22
How to restrict textfield to take input from virtual keyboard only not from any other connected Bluetooth Device (scanner device)?
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.
0
0
627
Mar ’22
Bluetooth OBEX Profile Support Documentation?
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
0
1
972
Feb ’22
Recent Bluetooth Flakiness on MacOS Monterey 12.1
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?
0
0
881
Feb ’22
iBeacons broadcasting on background for long time
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?
1
0
1.5k
Jan ’22
Press some special characters by HID usage codes
Hi everyone, I am developing a virtual keyboard device connected to an iOS device by Bluetooth. And how to press any special characters by HID usage. I have tried all combinations of keys option + shift + key or option + key but there aren't any characters that I want Particularly, I want to press the character '@' in the Lithuanian language for iOS devices by Bluetooth virtual keyboard. Are there any combinations of keys to press these special characters? Dien Vu
Replies
0
Boosts
0
Views
895
Activity
Jun ’22
Bluetooth UHP IOS 14.2 problem iphone 12
Iphone 12 new with bluetooth handsfree UHP, Cadillac,Opel,Saab. connect ok, receive and make calls ok, but when you will end the call, the sustem of the car turns crazy, sometimes loose conection, sometimes freeze the call on the car but it’s ended on the phone. several test done, changing configuration on the phone,with no result, The most surprising it’s thats if the person tbat makes tbe call to you end the call, everything it’s ok. same car eith iphone 11 Ios 14.1 works fine ahy thoughts about?
Replies
3
Boosts
0
Views
1.2k
Activity
Jun ’22
Remap different keyboard using IOHID
Hi there! I'm currently new to Mac OS dev (coming from a history of Linux dev). I have an external BT keyboard and a couple keys are mapped differently than my Mac keyboard (§ to ` for example). I'm wondering if it's possible to write a kernel extension that detects the key sent from the BT keyboard and remap the key code. I don't really know whether this is possible and if it is, where to look in the ecosystem. It's a bit different from Linux. Thank you!
Replies
1
Boosts
0
Views
1.1k
Activity
May ’22
how to use the cache of GATT datatbase in IOS
Here I have an requirement that ios ble app may not repeatedly does service and characterice discovery process if that the gatt database in the peer device is not changed. To use the cache in the ios could fast the operation on peer device. And it said to use the cache of gatt database in IOS needs the condition which IOS and ble device need to be paired firstly. However my ios app does not need to be paired. who could tell how to do with it ?
Replies
0
Boosts
0
Views
681
Activity
May ’22
Logi MX Master 3 and MX Keys are not discoverable after upgrading to macOS Monterey 12.4 (21F79)
My Logi devices were working perfectly well for the last 2 years, but after recently upgrading to macOS Monterey 12.4 (21F79), these devices are not showing up in the list of Bluetooth devices, its not getting discovered, can anyone help to resolve this issue.
Replies
0
Boosts
0
Views
635
Activity
May ’22
iBeacon detection when app is closed
Does anyone know if I can create an app that can detect ibeacon even if the app is closed? I need to send the user a local notification when a region is entered (at an immediate distance) while the app is closed.
Replies
1
Boosts
0
Views
1.8k
Activity
May ’22
Bluetooth pairs but will not connect Monterey 12.3.3 with iPhone 15.4.1
Last week or two AirDrop will not work and Bluetooth connection immediately gets dropped after pairing and connecting momentarily
Replies
1
Boosts
1
Views
793
Activity
May ’22
Bluetooth and Wi-Fi issues
So i got this problem where i cant turn on bluetooth or wifi in my i phone. Thoes worked fine just minute ago but suddenly both of thoes stopped working. I tried to restart phone, restart wifi settings and restart all of the settings but nothing seems to work. What i can do?
Replies
1
Boosts
0
Views
570
Activity
Apr ’22
why my bluetooth won’t turn on
Hi my bluetooth wont turn on after monterey Is anyone solved his problem of bluetooth turning on after monterey 12.3.1 or public beta 12.4? I updated to it but yet can’t turning on bluetooth of my core i5 macbook / anyone does have better solution? / I delete plist / rest smc and nvram / reset bluetooth / reinstall mac old and new versions / clean install mac / try unsigned blufix kext / try pkill bluetoothd in terminal try bluetool by brew / force quit bluetoothd and… / but didn’t solve it and I cant turn on bluetooth and using my magic mouse 2
Replies
1
Boosts
0
Views
906
Activity
Apr ’22
my right airpod is not charging properly after ios 15.4.1 update
My right airpod is not charging properly after the update. It shows it is always connected to the phone even when it is in the case. And when charging only left AirPod is getting charged. When I receive a call through the phone I am still getting airpods option. I tried unpairing and pairing, cleaned the case thoroughly, restarted my phone but nothing helped. Help me find a solution.
Replies
0
Boosts
0
Views
549
Activity
Apr ’22
Non-Mac Bluetooth devices are not working
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.
Replies
0
Boosts
0
Views
530
Activity
Apr ’22
Bluetooth in Monterey
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
Replies
1
Boosts
0
Views
1.3k
Activity
Apr ’22
macbook with m1 processor not finding esp32 over bluetooth
The library I use in esp32 is bledevice.h cpp. macbook finds my esp32 through 3rd party software. but macos can't find it with bluetooth software.
Replies
0
Boosts
0
Views
1.2k
Activity
Apr ’22
iAP2(BT) doesnt have space to write when or after calling.
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!
Replies
0
Boosts
0
Views
1k
Activity
Mar ’22
How to restrict textfield to take input from virtual keyboard only not from any other connected Bluetooth Device (scanner device)?
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.
Replies
0
Boosts
0
Views
627
Activity
Mar ’22
Raspberry Pi - controlling iPhone
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!
Replies
1
Boosts
0
Views
1.2k
Activity
Mar ’22
Discover and connect to BT speaker via API
Hi all, is there anything available in the iOS SDKs to allow me to find and connect to a bluetooth speaker? At the moment I have to direct users to iOS settings and do it from there, but I would like to have an in-app experience for this. Thanks!
Replies
0
Boosts
0
Views
1.4k
Activity
Feb ’22
Bluetooth OBEX Profile Support Documentation?
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
Replies
0
Boosts
1
Views
972
Activity
Feb ’22
Recent Bluetooth Flakiness on MacOS Monterey 12.1
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?
Replies
0
Boosts
0
Views
881
Activity
Feb ’22
iBeacons broadcasting on background for long time
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?
Replies
1
Boosts
0
Views
1.5k
Activity
Jan ’22