AVR-USB users ?

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I've been experimenting with the 'software' USB driver from obdev.at and it looks really great to be able to have a packet based communication with the host, and get rid of the serial cables.

Their newer version supports 16Mhz and I've been using that on a Mega644. Problem I have is that the device is not recognized on my linux box all the time. Works fine when I plug it into the Mac, but not on this debian box..
I tried hub/no hub, changed the cable etc.. no luck..

Anyone else is using avr-usb ?

I'm using this circuit, on prototype board:

And the rather heavily reworked board :D

Author of simavr - Follow me on twitter : @buserror

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is it never recognised by your Linux box, or just sometimes? If the answer is 'sometimes', is there any discernible pattern to the failures? What do you mean by not recognised? Knowing this might help us make a guess about where the problem lies.

Have you checked /proc/bus/usb/devices (or whatever the equivalent is on your system) to see if there are any descriptors matching your device when it is plugged in? This would indicate that the hardware and low level drivers are OK.

Are there any clues in the system message buffer? That's usually a good place to look for low level USB driver / USB enumeration troubles. Try 'dmesg | more' after plugging in your device.

Michael

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yeah I use dmesg all the time. The device is only recognized randomly, and not very often; but there doesn't seem to be a pattern to it.
At the moment, it seems to be working everytime, and now I'm afraid to /move/ the board :D :D

dmesg shows it detects a device, but it 'refuses address' with error -62

I added a lot of delay at startup, keep the USB in reset longer, and maybe that fixed the problem.. right now it works... finger crossed :D

USB is really cool to have! Nice power source and data channels, on one cable :D

Author of simavr - Follow me on twitter : @buserror