SparkFun Forums 

Where electronics enthusiasts find answers.

General suggestions or questions about the SparkFun Electronics website
By tremodian
#77383
Hi there,

Just recently purchased the AVR stick. The firmware appears to be broken (?). I have tried plugging it into two different computers and neither computer fully enumerates the device. Windows reports it as an unrecognised USB device. Which is not helpful.

USBView (http://www.ftdichip.com/Resources/Utilities/usbview.zip, best piece of software Microsoft ever wrote) reports the following for the device:

Device Descriptor:
bcdUSB: 0x0000
bDeviceClass: 0x00
bDeviceSubClass: 0x00
bDeviceProtocol: 0x00
bMaxPacketSize0: 0x00 (0)
idVendor: 0x0000
idProduct: 0x0000
bcdDevice: 0x0000
iManufacturer: 0x00
iProduct: 0x00
iSerialNumber: 0x00
bNumConfigurations: 0x00

ConnectionStatus: DeviceFailedEnumeration
Current Config Value: 0x00
Device Bus Speed: Low
Device Address: 0x00
Open Pipes: 0

This is admittedly not much to go on.

Also the stick does flash the white then the orange/yellow led once each when initially plugged in.

Any suggestions?

Thanks.

B.
By signal7
#77397
By 'AVR stick' are you referring to the AT90USB demo kit? Can you post more details of which product you're using?
By tremodian
#77406
signal7 wrote:By 'AVR stick' are you referring to the AT90USB demo kit? Can you post more details of which product you're using?
Not the AT90USB demo kit, I mean the AVR Stick, DEV-09147:

http://www.sparkfun.com/commerce/produc ... ts_id=9147

Thanks.

Bryan.
By ik
#77427
Hi. I have the same issue with my AVR Stick. Lights flash once each, then nothing.

Here is output from dmesg:

[701568.972021] usb 1-1: new low speed USB device using uhci_hcd and address 37
[701569.096021] usb 1-1: device descriptor read/64, error -71
[701569.320021] usb 1-1: device descriptor read/64, error -71
[701569.480043] hub 1-0:1.0: unable to enumerate USB device on port 1

I'm assuming it's a hardware issue rather than a firmware issue. Does anyone have any suggestions?
By ik
#77460
Took the device home and it works in a different port, so I imagine it was a poor connection like everyone told me it was :). I suppose I'll add a real USB connector to this one.

tremodian, perhaps you could try stripping and soldering a USB cable to the stick, or just wedging it into the port (USB extension cable can help here!) with a small shim.
By tremodian
#77475
Stripped and soldered a USB cable onto it and that worked better. It still fails to Enumerate but the orange LED now flashes rapidly.
By joshua
#77709
ik wrote: [701568.972021] usb 1-1: new low speed USB device using uhci_hcd and address 37
[701569.096021] usb 1-1: device descriptor read/64, error -71
[701569.320021] usb 1-1: device descriptor read/64, error -71
[701569.480043] hub 1-0:1.0: unable to enumerate USB device on port 1

I'm assuming it's a hardware issue rather than a firmware issue. Does anyone have any suggestions?
I've had some luck with both Windows XP and Linux, I see the 'error -71' message on Linux if I plug directly into a USB 2.0 port. I've had the best luck with plugging the AVR stick into an old USB 1.1 hub that then plugged into a USB 2.0 port. This configuration seems to work reliably.

For me at least, both LEDs light only when the device is first attached, when the device is sending readings, the LEDs are off.
By tremodian
#77748
Plugged the AVR stick into a USB 1.1 Hub and it works fine now.

How odd. Anyone have any specifics on why it might behave in this way?
By anon
#78871
I too had to use a 1.1 hub to get anything from the stick at first.

The source code needs a small change to get the device working under 2.0 hubs. All those LED effects take so long that by the time the disconnect command happens, the computer shuts down the device for not responding. So, include a:

usbDeviceDisconnect();

just after:

//odDebugInit();
at the start of 'main' routine. I left the later disconnect in place, but it can be removed.

Delete the main.o file and recompile with a 'make' in a cmd window, then use 'make flash' to write to AVR chip with suitable programmer (I just used parallel port, a few resistors and the part of the stick where one could put a DIP chip to sit the stick on some snapable headers in a breadboard and the ponyprog programmer descriptor--even had a 6 foot printer cable between the stick and the breadboard powered by external 5V supply). They really should send snappable header with the stick--two sections, 4 pins long each.

My stick now works with my 2.0 usb hub.

jvvh5897