开发者

External Accessory unknown when plugged in since boot

I am developing an app the uses an external accessory (and am using the EAAccessory framework). Everything works great, except for the instance when the iDevice powers on while the accessory is plugged into the dock. It recognizes the accessory for a short time -- usually 10-15 seconds, then a "EAAccessoryDidDisconnectNotification" is se开发者_运维百科nt for my accessory, and right after a "EAAccessoryDidConnectNotification" is sent with an "unknown" device. When I ask what accessories are connected, I get the following output:

" {\n connected:YES\n connectionID:0x825600\n name: \n manufacturer: \n modelNumber: \n serialNumber: \n firmwareRevision: \n hardwareRevision: \n protocols: (\n)\n delegate: (null)\n}"

So, it can tell that something is connected, just not the device that is connected. If you have an accessory, you can test this easily using the EADemo

Any ideas?


You get the EAAccessoryDidDisconnectNotification then immediate EAAccessoryDidConnectNotification when your accessory transfers from the un-authenticated to the authenticated state. If your EAAccessory object is empty after that, then you haven't made that transition. This works for my accessory so you will have to inspect the traffic between the accessory and the iOS device to see what error you get.


It turned out to be a faulty cable and it worked with a different cable.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜