문제

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 sent 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?

도움이 되었습니까?

해결책 2

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

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top