Important:This document may not represent best practices for current development. Links to downloads and other resources may no longer be valid.
Important: This document may not represent best practices for current development. Links to downloads and other resources may no longer be valid.
A new feature in iOS 5 is the support for Bluetooth 4.0 Low Energy (LE) devices using the Core Bluetooth Framework. For those who do not have a Bluetooth LE capable device, it is still possible to begin development and test Core Bluetooth iOS applications using the iOS simulator with a Bluetooth LE USB adapter. This Technical Note describes how to configure an OS X system to enable iOS simulator support for Core Bluetooth iOS applications. This Technical Note also explains the need for a Bluetooth LE adapter for OS X systems, which have Bluetooth LE built-in, for simulator testing.
Usb Bluetooth Adapter For Mac Os X 10 11 Download Free![]() Usb Bluetooth Adapter For Mac
This Technical Note also provides important information if you are using an OS X system for testing both iOS and OS X Core Bluetooth applications. When you make the changes described in this Technical Note, you may need to restore the system in order to run OS X Bluetooth LE application tests.
Usb Bluetooth Adapter For Mac Os X 10 13 Download
Steps For Enabling iOS Simulator Support
Jan 06, 2020 Techkey Bluetooth Dongle 4.0 EDR Driver for Windows 10, Linux, Mac OS & Manual PDF Download, Setup, Installation Instrunctions – Techkey Bluetooth Dongle 4.0 EDR driver software is a type of system software that gives life to Techkey Bluetooth Dongle 4.0 EDR bluetooth adapter. The drivers allow all connected components and external add-ons to perform the planned tasks according to the. For the Mac OS X 10.12 users, kindly utilize Mac OS X 10.6-10.11 driver for effective adapter installed in your device. Choosing the Best Bluetooth Adapter for Windows 10 1. Compatibility: Luckily, we have conducted internet search and conducted tests for the Best USB Bluetooth adapter for windows 10. Jul 12, 2011 Then open a terminal window on your Mac OS X machine and type $ cat /dev/cu.usbserial If you’ve connected another Mac OS X machine with another USB-to-Serial adapter, you can type $ echo “Hello” /dev/cu.usbserial Then the text should appear in the ‘cat’ window. The on / off button in System Preferences is a little buggy. Turning off the adapter works fine, but clicking 'on' turned the internal adapter back on. I had to unplug the adapter, plug it back in, and then turn Bluetooth back on. If you want to work around this without rebooting, you can use Bluetooth Explorer from the OS X developer tools.
Testing OS X Bluetooth LE Applications
Introduction
iOS 5.0 provides the Core Bluetooth framework for creating iOS applications, which can detect, connect, and communicate with Bluetooth 4.0 Low Energy (LE) devices. The standard method for testing Core Bluetooth applications is on a device such as the iPhone 4S, which has Bluetooth LE support. In order to facilitate the development of Core Bluetooth iOS applications when one does not have a Bluetooth LE iOS device, the iOS 5 SDK simulator can be used to test these applications with the help of a third-party Bluetooth LE USB adapter. This Technical Note describes the process to enable and verify simulator support on an OS X system.
Note: Developer Technical Support does not support the iOS Simulators in cases where code execution is found to be different when executed on iOS devices. When code is found to run differently on the simulator, please submit a bug report using the Apple Developer Bug Report web site Apple Developer Bug Report web site.
Important: You must test your Core Bluetooth application on an iOS device with Bluetooth 4.0 built-in before submitting the application to App Review. Do not base your iOS application submission on the success of running the application only in the iOS simulator.
Requirements
To test iOS Core Bluetooth applications in the iOS simulator environment, you must have the following
For Mac systems with Bluetooth 4.0 built in, it is still a requirement to have a Bluetooth LE USB adapter in order to test iOS Core Bluetooth applications. An explanation as to why an adapter is required for this case is described in the section Bluetooth LE USB adapter Required on OS X Systems with Bluetooth 4.0 built-in
Steps For Enabling iOS Simulator Support
The following are the steps to enable iOS simulator support for Core Bluetooth applications.
Step 1 - Set the NVRAM Setting
Open a Terminal window and use the NVRAM command as shown in Listing 1
Listing 1 Setting the bluetoothHostControllerSwitchBehavior NVRAM Setting
A system restart is not required after performing this setting. To understand why this step is necessary, see section Understanding the OS X Bluetooth Driver Behavior
Step 2 - Attach the Bluetooth LE USB adapter
The Bluetooth LE USB adapter must be connected after performing the NVRAM setting.
Step 3 - Verify the NVRAM Setting
Open the System Information application to verify that the system Bluetooth driver is matched to the built-in Bluetooth host controller interface (HCI). For the Hardware->Bluetooth setting, verify that the Vendor ID is '0x5AC'. Refer to Figure 1 below for an example of what the System Information application window should show.
If the system Bluetooth controller is matched to the Bluetooth LE USB adapter, then the iOS simulator will not be able to use the external Bluetooth controller for Bluetooth LE services. In this case, you might see a System Information Bluetooth panel as shown in Figure 2. Here, the Bluetooth driver is matched to the Cambridge Silicon Radio (CSR) Bluetooth LE USB adapter. If this is the case, remove the Adapter and return to Step 1 - Set the NVRAM Setting
Step 4 - Enable Bluetooth in the iOS Simulator
In Xcode, launch the iOS application in the iOS 5 iPhone/iPad simulator. When the iOS simulator launches, close the application and open the Settings application and select the General tab and verify that Bluetooth is ON.
Relaunch the iOS application in the simulator. The iOS Core Bluetooth application should connect and communicate with Bluetooth LE devices, as it would when run on an iOS device with Bluetooth LE support.
Note: If there is no Bluetooth LE adapter attached to the system, it will not be possible to turn Bluetooth on in the Settings application. In running CoreBluetooth code in the simulator where there is no Bluetooth 4.0 support,
-[CentralManager state] will return the CBCentralManagerStatePoweredOff result. On an iOS device with no Bluetooth LE support, -[CentralManager state] will instead return CBCentralManagerStateUnsupported .
Understanding the OS X Bluetooth Driver Behavior
The default behavior of the OS X Bluetooth driver is such that when an external Bluetooth HCI is attached, the driver will detach from the built-in Bluetooth interface and attach to the external HCI - if the HCI is not an Apple device. This behavior benefits OS X application developers who are developing Bluetooth LE applications, in the case that they have older Mac systems, which do not have built-in Bluetooth LE support. The developer can attach the Bluetooth LE USB adapter, the system Bluetooth driver attaches to the new HCI, then when the OS X Core Bluetooth application is run, Bluetooth LE services are accessed through the adapter. The downside here is that existing Bluetooth connections via the built-in driver are lost (Bluetooth HID devices for example).
For iOS Core Bluetooth application developers, this behavior is not compatible with the iOS simulator. In order to simulate the same Bluetooth behavior as the iOS device, the iOS simulator must open a direct connection with a Bluetooth LE HCI. If the built-in driver automatically attaches to the external Bluetooth LE HCI when it is attached, the simulator will not be able to open a connection with the external HCI. To control the driver matching behavior, the built-in Bluetooth driver recognizes the
bluetoothHostControllerSwitchBehavior NVRAM setting. If the setting is set to 'never', when the Bluetooth LE adapter is connected, the system Bluetooth driver does not switch to supporting the external HCI.
The following is a listing of behavior settings with respect to the OS X built-in Bluetooth driver. Refer to Listing 1 for setting the
bluetoothHostControllerSwitchBehavior NVRAM variable.
![]() Bluetooth LE USB adapter Required on OS X Systems with Bluetooth 4.0 built-in
On Mac systems with Bluetooth 4.0 built-in, a Bluetooth LE USB adapter is still required to support Core Bluetooth functionality in the iOS 5 simulator. As explained in Understanding the OS X Bluetooth Driver Behavior the system Bluetooth driver attaches to the built-in Bluetooth HCI. This leaves no available Bluetooth HCI for the iOS 5 simulator to attach to. For this reason, the external Bluetooth LE USB adapter is required for testing Core Bluetooth applications in the iOS 5 simulator.
Note: For Mac systems with built-in Bluetooth LE support, there is a known issue under OS X 10.7.3 in the case that an external Bluetooth LS Adapter is connected. If the built-in driver attaches to an external Bluetooth HCI leaving the built-in HCI available for the iOS simulator, the simulator fails to attach to the built-in Bluetooth HCI - Radar bug: (r. 11267888)
Testing OS X Bluetooth LE Applications
If you are testing Bluetooth LE applications for both iOS and OS X, you may need to restore the
bluetoothHostControllerSwitchBehavior setting. There are 2 cases to consider.
Testing iOS / OS X Bluetooth LE Applications on a System with built-in Bluetooth LE
If your system has Bluetooth LE built-in, leave the
bluetoothHostControllerSwitchBehavior='never' setting in NVRAM. With the bluetoothHostControllerSwitchBehavior setting set to 'never', the system Bluetooth driver will stay matched to the built-in Bluetooth HCI which supports Bluetooth LE and OS X application will use the built-in HCI for Bluetooth LE services.
Testing iOS / OS X Bluetooth LE Applications on a System without built-in Bluetooth LE
If your system does not have Bluetooth LE built-in, then to test an OS X application, you want the built-in Bluetooth driver to attach to the Bluetooth LE USB adapter to support the OS X application. To achieve this behavior, you must change the bluetoothHostControllerSwitchBehavior setting to the 'default' behavior. When you want the test iOS Bluetooth LE applications in the iOS simulator, you will need to set the bluetoothHostControllerSwitchBehavior to 'never'.
Document Revision History
Copyright © 2012 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2012-04-23
Bluetooth adapters, wake from sleep, and headsets | 7 comments | Create New Account
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Bluetooth adapters, wake from sleep, and headsets
Note the notice on Apple's site:
'Important: Applying this firmware updater to a D-Link USB to Bluetooth adapter will make it incompatible with non-Macintosh systems.' I think it's easy to understand then why this firmware is not installed by default when you purchase a new adapter.
Bluetooth adapters, wake from sleep, and headsets
More recent Windows PCs aren't affected by this AFAIK. Something to do with the features it adds not being supported in older Windows systems.
--- http://mobile.feisar.com/ - Apple Mac, iSync & Sony Ericsson Hints & Tips
Bluetooth adapters, wake from sleep, and headsets
You also might like to know that the Apple Firmware updates also works with (some) non- D-Link USB Bluetooth Adapters.
I have a Sitecom CN-500 and for the hell-of-it tried updating it with Apple's firmware updater. To my surprise, I didn't end up with a dead dongle, it updated it fine. Obviously its the same internally - maybe others work too? --- http://mobile.feisar.com/ - Apple Mac, iSync & Sony Ericsson Hints & Tips
Bluetooth adapters, wake from sleep, and headsets
I just tried the updater on my Billionton USBBT02-B USB bluetooth adapter and it seemed to have applied successfully, and now allows me to check the 'allow bluetooth devices to wake this computer' checkbox.
So there's at least two that work. :-)
Bluetooth adapters, wake from sleep, and headsets
Yes, but have you tried using the adapter with a headset? Lots of adapters work on the Mac out of the box, and some support the updater, but that still does not mean that they will support usage with a headset. That's the key issue that has caused problems for may people, headset support.
Bluetooth adapters, wake from sleep, and headsets
Yes, but have you tried using the adapter with a headset? Lots of adapters work on the Mac out of the box, and some support the updater, but that still does not mean that they will support usage with a headset.
Bluetooth adapters, wake from sleep, and headsets
The Bluetooth support forum on the Apple web site is the place place to ask questions about this. There are several threads that already point these things out clearly:
Thread 1 Thread 2 Thread 3 Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2020
Categories |