General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
i want to constanly get the feedback from AVR-USB based ATMega8 , i give a delay between two successive commands and sometime the host stops recognizing the USB device .
Code: Select all
but if i don't give the delay , then the host stops detecting the device early. Actually i want to put a delay between two successive commands. putting a for loop puts the host in a same situation.
Any idea how to tackle that.
The interface works properly if i use serial port instead, but i want to use USB port.
I guess some buffer are overflowing if i am communicating like that , is there any way to check whether the buffer is full or not , or whether the buffer is empty or not , i checked the usb.h on my linux machine it has buffer_length ( urb->transfer_buffer_length = buffer_length ) as a variable which i guess is the length of the buffer for transfer , is there any way to check whether the buffer is empty or not ? i am using control messages to communicate with Atmega. please reply if anyone has an idea.
- Rank 1
- Posts: 27
- Joined: Sat Oct 20, 2007 5:58 pm
You can't expect any help, unless you give sufficient details about your application.