Automator after power-on - problem

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
Wojtek

Automator after power-on - problem

Post by Wojtek » Thu Nov 23, 2006 6:35 pm

There is communication problem with Automator device if it was connected to PC before power-on. I can see Automator in the Control Panel (Win XP) but Automator.exe reports error: "Error opening Automator device: Communication error with device". The solution is to unplug and then plug device.
I am looking for some other solution, without unplugging...
Best Regards
Wojtek

christian
Objective Development
Objective Development
Posts: 1442
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Fri Nov 24, 2006 7:58 pm

Reading through the code, this error probably means that HidD_GetManufacturerString() or HidD_GetProductString() failed. You can get more verbose reporting if you compile the application with -DDEBUG=1. You must start it from the command line since debug logging is done to stdout.

If this is the cause, I have no idea why these calls fail. Since you say that you see Automator in the Control Panel of XP, the operating system must know these strings.

Maybe you can find out more with an USB snooper (e.g. USB Snoopy Pro).

Post Reply