I am using LPC2368 to communicate with PC using USB CDC. When PC sends the command to LPC over Bulk Out End Point 2,LPC2368 recives 4104 bytes from UART which is sent to PC over USB CDC Bulk IN Endpoint 2.
At PC,this data is considered to be coming form virtual com port,enabling me to see the data (sent to PC) over hypertermial.
There are some commands to which response is less than 64bytes.
After sending command to get these 4104bytes,the 4014 bytes are successfully received from UART and sent in for loop(for in bulk transmission only 64 bytes can be sent in one go) to PC.
Now,if any command be sent after receiving the 4104 bytes,no response is seen.Only,after sending command twice I get response.
Can anyone guide to resolve this behavior of USB?