USB commands
Posted: Wed Oct 24, 2007 3:43 pm
Hi ,
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 .
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 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
command1
system("usleep 8000");
command2
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.