Questions tagged [external-accessory]
The External Accessory framework provides support for communicating with external hardware connected to an iOS-based device through the 30-pin dock connector or wirelessly using Bluetooth.
244
questions
1
vote
0
answers
28
views
EAAccessoryManager connectedAccessories returning empty array despite connected device
Hello dear StackOverflow users,
i have been working on improving the stability of our app at work in conjunction with using mobile thermal printers.
During testing we discovered a scenario in which we ...
2
votes
0
answers
43
views
How to discover already connected devices using the ExternalAccessoryFramework on iOS for a non-MFI Bluetooth device?
I am writing an app that seeks to discover if the user is already connected to a specialized Bluetooth keyboard that I produce. My peripheral is running Bluetooth Classic, version 3.0, and uses HID to ...
0
votes
1
answer
183
views
How can I implement ExternalAccessory Framework for serial communication between IoT device and iOS/ iPadOS/ macOS using Swift? [closed]
I am working on an software application where we can connect the IoT device with mobile phones or laptops using USB for serial communication for following purposes
Using features of IoT device
...
0
votes
0
answers
35
views
How to get the HID country code information when connecting the Smart KBD to the iPad?
I want to develop an APP to get the HID country code information (keyboard language layout) when connecting the Smart KBD to the iPad.
Is it possible? And how to get the HID country code information?
...
0
votes
0
answers
490
views
Uploading firmware via Bluetooth is not working in iOS
We were DFU-Library to upload firmware to our BLE accessory earlier.
But our new set of accessories doesn't support DFU library and we need to upload the firmware to an OTA service in its respective ...
2
votes
2
answers
959
views
EA showBluetoothAccessoryPicker not showing in SwiftUI
I have created a small program that needs to connect to an external accessory. I have been able to do so successfully with UIKit and the EA framework.
The problem I am having is that I have a SwiftUI ...
4
votes
0
answers
163
views
iOS 15 Beta 7 & 8 - App process killed , when App consumes Bluetooth Asseceries framework in background
Application process being killed by iOS internal, when the application was background for more than 30 secs and application is consuming Bluetooth Asseceries frameworks (data transmission or just ...
0
votes
0
answers
186
views
Getting App Crashed alert even when the app is not launched
I'm working on an application which uses external microphone using External accessory framework. We have a new build available in TestFlight. Downloaded the app from TestFlight but didn't launch it. ...
1
vote
0
answers
420
views
Connect and disconnect Classic bluetooth device within application in swift
I have ios application that connects with Classic Bluetooth device from iPhone settings (using External accessory framework)
Requirement is to connect and disconnect within application for better user ...
0
votes
2
answers
136
views
Does CoreLocation framework required to connect to Core Bluetooth or Classic Bluetooth devices
I have applications(Live and under maintenance) that connects with BLE device by Core bluetooth framework and Classic Bluetooth device by External Accessory framework.
Does enabling/implementing Core ...
4
votes
1
answer
583
views
EAExternalAccessory Bluetooth Accessory Picker doesn't display on screen
I've been trying to use the following method on Swift 5 to display the Bluetooth Accessory Picker:
DispatchQueue.main.async {
EAAccessoryManager.shared().showBluetoothAccessoryPicker(...
2
votes
0
answers
545
views
Using showBluetoothAccessoryPicker causes SceneDelegate presenting errors
I currently have an app that will try to automatically discover a MFi bluetooth device.
The only way is to use the ExternalAccessory framework, as CoreBluetooth only files Ble devices.
Right now I ...
1
vote
1
answer
715
views
Is MFi needed for CoreBluetooth and GATT over BR/EDR?
Before iOS 13.0, the only way how to connect to BT classic device was External Accessory framework and the device had to be MFi licensed.
Now that I can use Core Bluetooth to connect to BT classic ...
1
vote
2
answers
272
views
How reconnect programatically Classic Bluetooh on IOS with MFi and external-accessory framework
I am creating an IOS App to connect into a Bluetooth Device using Classic Bluetooth with Mpi using ExternalAccessory Framework.
Using showBluetoothAccessoryPicker method, I can display an alert with a ...
0
votes
0
answers
94
views
Can iPhone connect to Mac or another iPhone through Bluetooth Classic ( not BLE )
I want to create a simulator to test the connection between the accessory ( which is already registered for MFi ) and my App. Currently, I'm using Bluetooth Classic. I have researched a lot but there'...
0
votes
0
answers
514
views
iOS show/hide onscreen keyboard with external keyboard
I have a company app (not on AppStore) that I'm attempting to use with a wired barcode scanner, but also need the onscreen keyboard for manual entry. The scanner itself does not have any "show/hide ...
1
vote
0
answers
111
views
Android UsbAccessory return null in android 8 and above
The below code works fine in android 7 and below version. But returns null on android 8 and above.
Does anyone know alternate solutions or permissions to make it work?
UsbAccessory[] accessories = ...
0
votes
1
answer
142
views
Is it possible to test mobile device through usb to usb port from hub
I tried to build App to debug with an external device I want to debug while connecting external device. How can I achieve that
I am using type C USB hub and trying to test with USB - USB cable but ...
0
votes
1
answer
618
views
In my iOS app to communicate with my external accessory to play video from stream
In my iOS application, I need to play video using external accessory framework. The framework will provide the stream over a delegate method. But i couldnot find a player which plays from byte stream. ...
0
votes
1
answer
716
views
How to use of standard Classic Bluetooth Profiles in an iOS app?
As far as I understood correctly it should be possible to connect to non iOS- and non MFi-devices via Classic Bluetooth, as long as the supported Bluetooth-Profiles (as described in https://support....
0
votes
0
answers
386
views
EASession stream function doesn't fire
I have MFi device(RFID reader) and I'm trying to catch scanned tags in my app. So I use EAAccessorymanager to get the shared accessory and read data from it. When I open session and scan tags, stream ...
0
votes
1
answer
477
views
external accessory api getting error, how to work with external accessory
i am trying to work with external accessory api , wrote some code but i gets big error.
can someone tell me please, where is my problem?
this is what i wrote and the error that i get
maybe that ...
3
votes
1
answer
124
views
How to differentiate between a device paired via Bluetooth and a device "paired" via cable using ExternalAccessory?
I am trying to find a way to establish which of my
[[EAAccessoryManager sharedAccessoryManager] connectedAccessories];
are connected via Bluetooth and which are connected via USB.
External ...
0
votes
0
answers
215
views
Two parallel iAP Bluetooth Connections
Is it possible to have two iAP Blueetooth connections open from a single iOS device (iPhone)? I know that you can be connected to more than one bluetooth device on the OS level. But will I be able to ...
1
vote
0
answers
353
views
Does an accessory need to be MFI compliant if it's connected to my iOS application through Lightning to USB Adapter?
I'm creating an app that will access an external device connected to an iPhone through a Lightning to USB 3 Camera Adapter. According to the External Accessory framework documentation, I need to ...
0
votes
0
answers
542
views
iOS send file to printer using bluetooth
I'm currently developing an iOS app to directly print with my HP Sprocket printer but I'm stuck with the bluetooth data I have to send to the printer.
After reading some forum I made some test and it'...
1
vote
0
answers
2k
views
Listing the number of connected accessories with External Accessory in Swift
Using the External Accessory framework, or some other framework, is it possible to list the number of accessories connected to an iOS device?
I've been using import ExternalAccessory and then in a ...
1
vote
1
answer
962
views
How to detect the Smart/external Keyboard on iPad?
How can one get a notification when a (Smart) keyboard is connected?
Some context:
I am working on a feature that automatically shows and hides my software keyboard based on whether the iPad Pro ...
1
vote
0
answers
176
views
Error when trying to connect bluetooth device via ExternalAccessory framework: "Unsupported Legacy Device"
We have a device with an MFI chip we would like to connect through right from the app.
Using EAAccessoryManager.shared().showBluetoothAccessoryPicker, we can indeed see the peripheral appear in the ...
1
vote
0
answers
251
views
How to use any video bitstream from external accessory for preview?
In iOS, To preview the video, I found that I should use AVCaptureVideoPreviewLayer with an instance of AVCaptureSession. For example,
AVCaptureSession *captureSession = <#Get a capture session>...
5
votes
1
answer
5k
views
iOS - What does External accessory communication of Background Modes do?
I guess it is a background mode related to ExternalAccessory.framework.
But the document about External Accessory says, "If your app is suspended in the background when an accessory notification ...
1
vote
0
answers
1k
views
Classic bluetooth implementation iOS
My app needs to communicate with an android app via classic bluetooth.
We have implemented bluetooth socket in android application. Now i have to connect to the bluetooth service created by this app ...
0
votes
1
answer
2k
views
How to use External Accessory Framework without having a protocol from the MFi program
We are planning to build a external device that will connect to the iPhone through the lightning port. The device is already working when you conect it via USB to a Mac.
We know we have to apply to ...
0
votes
0
answers
91
views
iOS endoscope camera connection
I am currently trying to connect a wifi endoscope camera to my app in objective c.
I tried connecting using ExternalAccessory, but it registers no accessory.
Has anyone got an idea on how I can do ...
2
votes
0
answers
433
views
Can't write data to external bluetooth device using External Accessory Framework
I have followed the sample code EADemo provided by Apple. I have successfully connected to IAP2 Bluetooth MFI device below BLE i.e. version (2.x) with my application and read data from external device....
1
vote
1
answer
154
views
eaframework outputstream doesn't work on 11.2.1
- (void)_writeData {
while (([[_session outputStream] hasSpaceAvailable]) && ([_writeData length] > 0))
{
NSInteger bytesWritten = [[_session outputStream] write:[_writeData ...
0
votes
0
answers
721
views
Pairing to Bluetooth device automatically with External Accessory
I am using EASession (External Accessory) library to integrate with my Non-BLE Bluetooth device. I am looking for a way to pair my device automatically without the need to go to the: iPhone Settings->...
0
votes
1
answer
377
views
iOS External accessories framework to connect iPod using bluetooth
I am using EADemo from apple
https://developer.apple.com/library/content/samplecode/EADemo/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010079-Intro-DontLinkElementID_2
This is basically ...
1
vote
0
answers
194
views
MFi EADemo sample code send test string to the accessory
I am using sample code for EADemo. Its working fine and show MFI device list. but when I tried to sending right test string to the accessory. Its getting response.
Code for sending test string:
- (...
1
vote
0
answers
470
views
Xamarin iOS External Accessory: check whether hands free device (car) is available
I want my app to detect the Hands-Free built in the car. I don't need to communicate with the device, I just need to check if it is available.
Ex: I want to send a notification when an Hands-Free ...
1
vote
1
answer
878
views
is it possible to connect bluetooth device, without pairing them in iOS?
The question is not for BLE device, its just normal bluetooth device.
currently my code works like this,
I call the function :
[[EAAccessoryManager sharedAccessoryManager] ...
1
vote
0
answers
175
views
create a DEMO External Accessory application for IOS
I want to make an IOS Demo application which will communicate with external devices using ios EA Framework
let say, I want to connect, exchange data with
external bluetooth device
external USB ...
4
votes
0
answers
1k
views
connectedAccessories method in externalAccessory framework iOS giving 0 elements
This might be a duplicate question, but all previous are asked more than one year ago and does not have helpful answer.
External Accessory Framework bluetooth pair. connectedAccessories every time ...
2
votes
1
answer
1k
views
Relationship between CarPlay and External Accessory and Wireless Accessory Configuration
For my current project I am supposed to develop a IAP2 over USB connectivity to a Head Unit (MFI certified) that is developed by a 3rd party.
The requirement continuously uses the term 'CarPlay ...
1
vote
0
answers
502
views
Bluetooth Speaker Playback and control by using Dual mode capability in iOS device ? without using iAP protocol
I have researched a lot and yet have doubts with respect Bluetooth dual mode accessory working with iOS device. help by any expert who has experience in the following case is appreciated.
i need the ...
1
vote
0
answers
787
views
Integrating with a bluetooth device using the Hands-Free Profile (HFP) on iOS
I have tried to connect bluetooth Hands-Free Profile (HFP) to iPhone device using External Accessory and download this sample app
Using sample code
but bluetooth Headset device list not show on screen....
1
vote
0
answers
412
views
Can't connect to RN42-XV bluetooth module through iOS app
I am currently working on an iOS app written in Swift 3 which has to send data to a (MFi) bluetooth module over a serial port connection using the External Accessory Framework. The bluetooth module in ...
0
votes
0
answers
583
views
Cannot find connected accessory if EAAccessoryManager.shared() is called in AppDelegate constructor
If I call EAAccessoryManager.shared() inside the AppDelegate constructor e.g.
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var accessoryManager = EAAccessoryManager....
0
votes
1
answer
339
views
Do hardware & iOS app developed to connect with MFi certified Lightning serial cable needs to be enrolled in Apple MFi Program
I want to get data from serial port of hardware into iPad by connecting it through a Lightning Serial Cable. The lightning serial cable is available with companies like RedPark which say they are MFi ...
0
votes
1
answer
483
views
Why I don't get instance of paired device via CoreBluetooth?
I have a device (named later "scanner") and other devices (named later "stone"). Scanner can scan stones and display their information on build in display. Scanner can send stones information via ...