CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

USB CDC hangs

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Kiwime



Joined: 28 Sep 2006
Posts: 2

View user's profile Send private message

USB CDC hangs
PostPosted: Thu Sep 28, 2006 4:34 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Sep 28, 2006 4:45 pm     Reply with quote

Read this thread for problems with hanging. They suggest adding
large capacitors to do power supply bypassing on Vusb.
http://www.ccsinfo.com/forum/viewtopic.php?t=24308&postdays=0&postorder=asc&start=15
ymoona



Joined: 20 Mar 2005
Posts: 32
Location: Heiloo, the Netherlands

View user's profile Send private message Visit poster's website

PostPosted: Fri Jan 12, 2007 9:44 am     Reply with quote

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

View user's profile Send private message Visit poster's website

PostPosted: Fri Jan 12, 2007 1:01 pm     Reply with quote

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

View user's profile Send private message Visit poster's website

PostPosted: Sat Jan 13, 2007 4:29 pm     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group