External Accessory

RSS for tag

Communicate with accessories connected to a device by the Apple Lightning connector or through Bluetooth using External Accessory.

External Accessory Documentation

Posts under External Accessory tag

85 Posts
Sort by:
Post not yet marked as solved
0 Replies
460 Views
Not sure if this is the right place to put it, but if you guys have answers it's much appreciated. I have a BLE-enabled Arduino board that I want to use as a client to receive notifications from my iPhone 13 over ANCS. I can connect the board to the phone, connect to the service, and when checking characteristics all 3 that should be exposed are exposed; however, attempting to subscribe to any fails. All the ANCS docs say on this is: So... how exactly do I authorize my Arduino to access these characteristics? Do I need to build an app to manipulate internal properties somehow? (There's a get-only variable in the CoreBluetooth docs that indicates this status, but no mention of how to set it - only that an authorization will set it to true.) I'm not receiving any authorization pop-up on my iPhone when this occurs, and it doesn't appear anyone else has had a similar problem - please advise!
Posted Last updated
.
Post not yet marked as solved
1 Replies
396 Views
hello everyone. I have a MacBook Air M1 and it works fine with HP34' via USB-C to DP1.4 cable HDR and 165hz. but my corporate MacBook Air M2 doesn't at all. need help
Posted
by karcevgo.
Last updated
.
Post not yet marked as solved
0 Replies
272 Views
Dear Apple Experts, When I was trying to connect iPhone and my Carkit via Bluetooth A2DP service and play music, I found there was no sound sometimes. I checked the Bluetooth sniff log and found that Carkit initiated the AVDTP_Discovery procedure and sent AVDTP_Set_Configuration to AAC which also accepted by iPhone, but after AVDTP_START, iPhone set SBC instead of AAC audio data in A2DP media packet. During this period, iPhone also did AVDTP_Discovery but didn’t do AVDTP_Reconfigure to SBC. From the spec view, If iPhone wants to change the codec, it need to be OPEN state or suspend the streaming and then do AVDTP_Reconfigure procedure, but actually not happened. Could you help to check this, thanks a lot. BR
Posted
by DaleWang.
Last updated
.
Post not yet marked as solved
0 Replies
877 Views
My company has a Bluetooth 4.2 hardware product that requires a connection interval of 15ms to operate correctly. Starting with the release of iOS 16, we noticed these connection parameters are being rejected and we are provided a connection interval of 30ms which leads to severe packet loss. I'm aware of the note on page 193 of this document that specifies this may happen on some devices, but it had not been an issue up until the release of iOS 16. Does anyone know the precise circumstances that would lead to the scaling of this interval? Is there anything that can be done in software or firmware to get around the issue?
Posted
by gairmuse.
Last updated
.
Post not yet marked as solved
0 Replies
480 Views
I am trying to turn an iOS device into a Bluetooth keyboard/joystick peripheral. I know iOS 16 supports the HID profile for communication with Bluetooth keyboards and game controllers (https://support.apple.com/en-us/HT204387). However, is it also possible for an iOS device to act as a HID device, advertising services like the HID? I've seen an app, BlueTouch seems to make the similar functionality, and sample code on Github (https://gist.github.com/conath/c606d95d58bbcb50e9715864eeeecf07) suggest this might be possible. Has there been any change in iOS that would allow an iOS device to act as a Bluetooth HID device? Could you point me to the relevant documentation or sample code? Thanks for any guidance you can provide.
Posted
by ironerumi.
Last updated
.
Post not yet marked as solved
0 Replies
409 Views
I am wondering if it's possible to obtain audio focus when the app is in the background without using the duckOthers option. I tested the Amazon Echo buds with the Alexa app and found that it can obtain audio focus. I am curious about how this is accomplished. I have a BLE device that can connect with my app. After connecting the device and my app, I put my app in the background and play a song from the Spotify app. Then, when I press a button on my BLE device, it sends a BLE command to my app to play music. However, my app cannot obtain audio focus, so the music cannot be played. The only way to make it work is to configure duckOthers. Compare with Echo buds, if we do the same steps, it can get audio focus. Is it because it has the MFI? do { let options: AVAudioSession.CategoryOptions = [.allowBluetoothA2DP, .defaultToSpeaker, .duckOthers] try audioSession.setCategory(.playAndRecord, mode: .spokenAudio, options: options) DDLogDebug("\(LOG_TAG) \(#function) setting category: \(audioSession.category.rawValue), " + "options: \(audioSession.categoryOptions.rawValue)") } catch { DDLogWarn("\(LOG_TAG) \(#function) Failed to configure audio session: \(error.localizedDescription)") } }
Posted
by cindyQin1.
Last updated
.
Post not yet marked as solved
0 Replies
582 Views
Hello. I would like to inquire about the possibility of using a USB connection between an iPhone and an Arduino board for flashing this board. From other posts, I understand that the only option for using USB serial is through the MFI program. Other options involve using peripheral WiFi or Bluetooth modules for the Arduino board, which require additional wire connections. Therefore, I want to ask if there have been any developments for direct usb serial connection to Arduino?
Posted
by CodiPlay.
Last updated
.
Post not yet marked as solved
0 Replies
659 Views
Hi guys, After getting bounced around by Apple support, I was told to post here to get confirmation(?) about usage of a product we are interested in using. I'm hoping to get some insight on this. In a nutshell, we found some home brewed software that will allow us to flash an airtag like device with custom firmware. This device can then leverage Apple's BLE and send information(GPS) through icloud to a mac that we purchased(server resides there, we do not run/need Find My). We can then use that data internally to assist first responders. As this would be an internal project, there is no selling, no money changing hands for profit, etc. Any thoughts if this is something we can do legally? I don't want to deploy this and find out we shouldn't be doing this. To be honest, if push came to shove, and the pricing was reasonable, we would be open to paying Apple a fee if that was a factor. Any thoughts?
Posted Last updated
.
Post not yet marked as solved
1 Replies
649 Views
I cannot scan on HP officeJet Pro 9020 after I installed Sonoma. Printing is working but HP start and HP easy scan does not Thanks, Zvika
Posted
by meiriz1.
Last updated
.
Post not yet marked as solved
0 Replies
410 Views
I am reaching out to inquire about the supported protocols for the Lightning to USB Camera Adapter. I'm creating an app that will access an external device connected to an iPhone through a Lightning to USB Camera Adapter. According to the External Acessory framework documentation, I need to declare protocol strings for the external accessories in Info.plist. Could you please provide me with detailed information regarding the protocols supported by the Lightning to USB Camera Adapter? Specifically, I would like to know the protocols that enable data transfer and interaction with connected devices.
Posted Last updated
.
Post not yet marked as solved
4 Replies
1.1k Views
Good morning, So let me explain what I’m needing. We have a IoT device, that we have no way of changing. This device has the ability to be put into a broadcast mode which turns the device into a Wifi Router that we connect to. Once we are connected to the device, we then have the ability to set that device up to connect to a customers WiFi network. What I’m wanting to do is this: 1: User will physically put the device in broadcast mode 2: Mobile app will then scan all available local wifi’s looking for a SSID that matches the a MAC Address 3: The mobile app will then need to connect the device to the consumer's WiFi. #2 is where the problem lies. I need to get a list of wifi networks local to the mobile device so I can pick out the MAC address that I need to connect to. Any examples of this working would be awesome. The application I'm writing is written in Xamarin but even if you were to provide swift examples, I should be able to convert it. Thanks,
Posted Last updated
.
Post not yet marked as solved
0 Replies
252 Views
I have a USB flash drive with MFi certification, and this USB flash has a Lightning interface that can be directly connected to the iPhone. I want to create an app to access the files on the USB drive. I know that I need to use the ExternalAccessory framework, and I need to add UISupportedExternalProtocol to the info.plist. I already know that the value of UISupportedExternalProtocol for this USB flash is "com.isparemobile.protocol", and I have added it to the info.plist. However, I still can't access the files on the USB flash. Can you tell me what I need to do to allow the app to access the files on the USB flash?
Posted
by KGG_HT.
Last updated
.
Post marked as solved
4 Replies
2.3k Views
I made up my own iAP2-BT-device, which is perfectly running by use the BT-list and the External Accessory Framework. Now, following the instruction for MFI developers, I would like to show the showBluetoothAccessoryPicker using the following swift code: EAAccessoryManager.shared().showBluetoothAccessoryPicker(withNameFilter: nil) { (error) in             if let error = error {                 switch error {                 case EABluetoothAccessoryPickerError.alreadyConnected:                     break                 default:                     break                 }             }         } Wherever I put this snipple in my app code the picker is never shown (device unpaired by "forget device") and I always get the console message: A constraint factory method was passed a nil layout anchor.  This is not allowed, and may cause confusing exceptions. Break on BOOL _NSLayoutConstraintToNilAnchor(void) to debug.  This will be logged only once.  This may break in the future. I have no idea what to do to get this picker shown ... Thanks for your help
Posted
by PrinzAkim.
Last updated
.
Post not yet marked as solved
0 Replies
608 Views
A: iPhone SE 2nd (iOS 16.5) Used bluetooth model: Shokz OpenRun S803 B: Any mobile device A uses bluetooth microphone/speaker, and make a call to B using iPhone app. Mute the A's headphone. (The bluetooth device support mute by hardware). While A mutes, B speaks. Unmute A's headphone. Every time B speaks, B can hear the echo. Since there is no audio data during the hardware muted, VPIO don't recognize audio reference data to remove echo signal. Is there any alternative to resolve this echo in VoIP software using VPIO?
Posted
by ened.
Last updated
.
Post not yet marked as solved
0 Replies
283 Views
macOS -> System Configuration -> Bluetooth -> the android phone is printed to bluetooth scan list. macOS -> App Store -> Bluetooth App -> the android phone does not print to bluetooth scan list. I checked the macOS App with the API **** : scanForPeripherals(withServices: nill, options: nil)
Posted
by JangJinho.
Last updated
.
Post not yet marked as solved
0 Replies
495 Views
Hello The following is the 42.2 electrical content of the attachment design guide: Enumerate as a USB device when connected to a USB host, such as a Mac, and: ● Not draw more than 100 mA of current until they have been successfully enumerated. ● Request no more than 500 mA of charging current in their USB device descriptor. It seems that this specification is for accessories with power role as sink mode. The question is: How to handle source mode when connecting to iPad Pro? Can it provide 5V 1.5A energy to iPad Pro and communicate through USB 2.0? Thank you.
Posted Last updated
.
Post not yet marked as solved
0 Replies
437 Views
I want to access files that are inside a device with MFi authentication. After researching on the Internet, I found that it is possible to access it by providing the UI Supported UIExternalAccessoryProtocols key from Apple. Please let me check a few things Please tell me how to provide the key After getting the key, do I need any API to access the device with MFi authentication?
Posted
by KGG_HT.
Last updated
.