"Unknown USB Device" SOLVED
Posted: Thu Jun 04, 2009 1:34 am
Hi everyone.I am opening this topic as a guide, in order to help any beginners,like me,experimenting with V-USB and facing the "Unknown USB Device" problem.
First of all,I will introduce myself.I am Electronics and Computer Engineer studding at the Technical University of Crete,Greece.
As part of my studies I have to prepare and present a final project to receive my diploma.I am saying all that to explain that this is my point of view for all I am describing below,my believes and in order to help you understand the quality of my sayings.
I take no responsibility for any damage you cause to your hardware.
As part of my project is to build a usb interface between a Graphical User Interface and a Development board.I have to make them "talk" each other through the usb port.So,after googling I discovered metaboard : http://metalab.at/wiki/Metaboard
After constructing the pcb and assembled the parts, I tried to flash the ATMEGA168P-20PU I am using with various firmwares like USBasp, USBaspLoader, PowerSwitch, etc......
I always kept getting the message "Unknown USB Device",when I was plugging the usb cable.So after lots of search, I have to recommend to all of you that facing the same problem,these 4 solutions:
1)First of all, triple check your hardware.Check for any misplaced part or cold soldering,etc.....If possible check one by one the parts with a Multimeter and other equipment.
2)Try to add 2 zener diodes and 2 resistors as shown below:
http://tinypic.com/view.php?pic=11vlet1&s=5
This helps to keep the voltage,at the D+ and D- lines of the usb,at 3.6Volts.Note: R1 and R2 could be between 68 to 330 Ohms
3)Try to write the AVR fuses correct.See the values of the fuses at the project's manual you are building.
Hint:The values,usually, are also in the "MakeFile".
4)If the above do not work,change at your usbconfig.h the values:
#define USB_CFG_IOPORTNAME X
#define USB_CFG_DMINUS_BIT A
#define USB_CFG_DPLUS_BIT B
X= is the port of the AVR that the D+ and D- lines are connected
A= is the pin that D- line of the usb is connected
B= is the pin that D+ line of the usb is connected
If nothing of the above do not work,GOD helps you!!! (Try to call 555-paradise-1234....just joking).
That is all I know so far concerning this "Unknown USB Device" problem.
Please feel free to contact me for anything and PLEASE correct me if I am wrong.
First of all,I will introduce myself.I am Electronics and Computer Engineer studding at the Technical University of Crete,Greece.
As part of my studies I have to prepare and present a final project to receive my diploma.I am saying all that to explain that this is my point of view for all I am describing below,my believes and in order to help you understand the quality of my sayings.
I take no responsibility for any damage you cause to your hardware.
As part of my project is to build a usb interface between a Graphical User Interface and a Development board.I have to make them "talk" each other through the usb port.So,after googling I discovered metaboard : http://metalab.at/wiki/Metaboard
After constructing the pcb and assembled the parts, I tried to flash the ATMEGA168P-20PU I am using with various firmwares like USBasp, USBaspLoader, PowerSwitch, etc......
I always kept getting the message "Unknown USB Device",when I was plugging the usb cable.So after lots of search, I have to recommend to all of you that facing the same problem,these 4 solutions:
1)First of all, triple check your hardware.Check for any misplaced part or cold soldering,etc.....If possible check one by one the parts with a Multimeter and other equipment.
2)Try to add 2 zener diodes and 2 resistors as shown below:
http://tinypic.com/view.php?pic=11vlet1&s=5
This helps to keep the voltage,at the D+ and D- lines of the usb,at 3.6Volts.Note: R1 and R2 could be between 68 to 330 Ohms
3)Try to write the AVR fuses correct.See the values of the fuses at the project's manual you are building.
Hint:The values,usually, are also in the "MakeFile".
4)If the above do not work,change at your usbconfig.h the values:
#define USB_CFG_IOPORTNAME X
#define USB_CFG_DMINUS_BIT A
#define USB_CFG_DPLUS_BIT B
X= is the port of the AVR that the D+ and D- lines are connected
A= is the pin that D- line of the usb is connected
B= is the pin that D+ line of the usb is connected
If nothing of the above do not work,GOD helps you!!! (Try to call 555-paradise-1234....just joking).
That is all I know so far concerning this "Unknown USB Device" problem.
Please feel free to contact me for anything and PLEASE correct me if I am wrong.