external-accessory

Blocking communication with ios accessory

醉酒当歌 提交于 2019-12-10 19:51:41
问题 It appears that Apple recommends using runloops for data communications with an external accessory. However, unless I am missing something, runloops are not very suitable for certain types of communications. We have an -experimental- accessory, to which we need to send an arbitrary number of bytes (up to, say 1024), which is followed by the accessory processing that data (variable delay, say between 1ms to 1000ms), followed by a variable length response (upto 1024 bytes) from the accessory.

Getting Issues while connecting device with serial Bluetooth

情到浓时终转凉″ 提交于 2019-12-10 01:49:42
问题 I am facing 2 problems related to regular Bluetooth.Here is my code. - (void)viewDidLoad { [super viewDidLoad]; [NSTimer scheduledTimerWithTimeInterval:3.0 target:self selector:@selector(showElements) userInfo:nil repeats:NO]; [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(accessoryConnected:) name:EAAccessoryDidConnectNotification object:nil]; [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(accessoryDisconnected:) name

RN42 Bluetooth disconnects on iOS within seconds of streaming data

北慕城南 提交于 2019-12-09 13:22:58
问题 I've been trying to read data from a device via Bluetooth 2.1 using an RN-42. The device pairs to an iPhone or iPad Mini, and data is streamed across briefly, but the iOS & BT module disconnect (unpair) within seconds (less than 10). The device is outputting data 5-10kB/s, so well within Bluetooth’s spec. Something that I’ve also noticed is that when I run the function NSInputStream, [NSInputStream read: maxLength:], the number of bytes returned is always 158 or less. The app and hardware don

Provisioning profile doesn't support the Wireless Accessory Configuration capability

好久不见. 提交于 2019-12-08 14:58:07
问题 After upgrading from Xcode 7.3 to Xcode 8, I'm getting an error: Provisioning profile "iOS Team Provisioning Profile: *" doesn't support the Wireless Accessory Configuration capability. May I know how to resolve this? 回答1: You should enable it in apple's developer portal. Go to "App IDs" and edit your app. Check the Wireless Accessory Configuration checkbox. Cick Done Now just regenerate your provisioning profile and rebuild/archive using newly generated profile. 回答2: 1 apply for rights :

Is it possible to detect non-MFI accessories on the iPhone?

我只是一个虾纸丫 提交于 2019-12-08 05:26:40
问题 I realize it is impossible to actually utilize any external accessories that are not MFI certified with the iPhone. Is there any way to simply detect a connection? All I would like to do is acquire the serial number from a USB drive. So far I've tried the following - (void)pollAccessories { statusText.text = [NSString stringWithFormat:@"%@%@", statusText.text, @"\r\nPolling Accessories..."]; NSArray *accessories = [[EAAccessoryManager sharedAccessoryManager] connectedAccessories]; for

List (and connect to) Bluetooth devices from within iOS App

吃可爱长大的小学妹 提交于 2019-12-08 04:54:54
问题 I have a device that broadcasts data via bluetooth. It is MFI certified and I already have an application on the AppStore that communicates with it, using the External Accessory Framework. The problem is that my application assumes the device is already paired. Is there a way to enumerate all such devices within reach and allow the user to select (and therefore pair) to one of the devices in the list? 回答1: No, you can not do this unless two criteria are first met. Your device must be a

iPad Air - CoreBluetooth[ERROR] Cancelling picker as we couldn't communicate with Bluetooth

做~自己de王妃 提交于 2019-12-08 00:57:33
问题 I'm working with the "ExternalAccessory framework". I encountered a problem trying my app on a new iPad Air. When i try to show the bluetooth picker this error appear: CoreBluetooth[ERROR] Cancelling picker as we couldn't communicate with Bluetooth The bluetooth is ON . Picker return this error: Error Domain=EABluetoothAccessoryPickerErrorDomain Code=3 "The operation couldn’t be completed. My app work on every Apple Device, except the new iPad Air. EDIT I can connect and communicate with my

Apples external accessory (bluetooth) only for MFI devices? [closed]

自闭症网瘾萝莉.ら 提交于 2019-12-07 03:30:55
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Target of my bachelors thesis will be to connect optoserial devices via bluetooth adapter to an iPad. Currently I'm struggling with Apples restrictions. I read often in the web that I can use the supported profiles to connect to any devices that support at least on of those. But Apples technical FAQ points

Is it possible to detect non-MFI accessories on the iPhone?

删除回忆录丶 提交于 2019-12-06 15:30:55
I realize it is impossible to actually utilize any external accessories that are not MFI certified with the iPhone. Is there any way to simply detect a connection? All I would like to do is acquire the serial number from a USB drive. So far I've tried the following - (void)pollAccessories { statusText.text = [NSString stringWithFormat:@"%@%@", statusText.text, @"\r\nPolling Accessories..."]; NSArray *accessories = [[EAAccessoryManager sharedAccessoryManager] connectedAccessories]; for (EAAccessory *obj in accessories){ statusText.text = [NSString stringWithFormat:@"%@%@", statusText.text, @"\r

Bluetooth Pairing - HFP profile and Classic Bluetooth/BLE

落花浮王杯 提交于 2019-12-06 12:26:46
问题 Can any one help me on bluetooth pairing and communicating 1.Is it possible to view all the device trying to connect via Bluetooth in the application, not by going to settings page. 2 Can we access data from devices that use standard profile like HFP,A2DP etc without MFi.(Classic bluetooth, not BLE) How is it done and which framework? Pls help and thanks in advance 3.(Edited) Is it possible to view all devices that uses BLE (standard profiles only HFP, A2DP )in the application by using