I'm just starting on some development using the android accessory protocol. I have sourced a starters kit (microchip) to get familiar with the environment. I should note that I' have a solid background in embedded C, but not really in Android / Java.
The kit connects using USB, so I have configured my phone to use ADB over Wifi, which works great. I compile the app and can debug in the phone just fine. However, it will not recognize when the accessory is connected to the USB port. When I stop the wireless ADB, the app will recognize the accessory just fine and works as it should.
I have a hard time finding out whether this is expected behavior or not, but as it would stop any debugging on an app communicating with a USB accessory I doubt it and suspect I am doing something wrong.
I use a Galaxy S3 I9300 rooted, and microchip's Accessory Development Starters Kit and provided samples.