View previous topic :: View next topic |
Author |
Message |
Kiwime
Joined: 28 Sep 2006 Posts: 2
|
USB CDC hangs |
Posted: Thu Sep 28, 2006 4:34 pm |
|
|
I am trying to use usb_cdc.h to stream data from a GPS unit to a virtual comm port. Everything works great when sending commands and receiving small amounts of data but when streaming data directly from the GPS to the virtual comm port I get a few pages of data and then it hangs. The comm port is still there, and I can still send commands to the PIC, but no data comes back to the PC. It's like the PC buffer gets full and doesn't flush or something... Anyone have any ideas??
while(!usb_cdc_kbhit() { //stream data until a key is pressed
i = timed_getchar();
usb_cdc_putc(i);
}
When I run this with the ICD and pause is after is hangs, it looks like it's waiting for usb_cdc_putready() to return true... |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
ymoona
Joined: 20 Mar 2005 Posts: 32 Location: Heiloo, the Netherlands
|
|
Posted: Fri Jan 12, 2007 9:44 am |
|
|
I'm right now having the same problems, is it already solved? _________________ checkout my site: www.ymoona.com/wiki |
|
|
ymoona
Joined: 20 Mar 2005 Posts: 32 Location: Heiloo, the Netherlands
|
|
Posted: Fri Jan 12, 2007 1:01 pm |
|
|
ymoona wrote: | I'm right now having the same problems, is it already solved? |
the problem is still there, I put some capasitors around it. but it slows donw the problem but does not eliminate it. Ik sghal also try it with some caramic capasitors (100n) to reduce noise. progress will be posted _________________ checkout my site: www.ymoona.com/wiki |
|
|
ymoona
Joined: 20 Mar 2005 Posts: 32 Location: Heiloo, the Netherlands
|
|
Posted: Sat Jan 13, 2007 4:29 pm |
|
|
ymoona wrote: | ymoona wrote: | I'm right now having the same problems, is it already solved? |
the problem is still there, I put some capasitors around it. but it slows donw the problem but does not eliminate it. Ik sghal also try it with some caramic capasitors (100n) to reduce noise. progress will be posted |
still no pregress here _________________ checkout my site: www.ymoona.com/wiki |
|
|
|