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 support@ccsinfo.com

USB CDC Communication Problem

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



Joined: 26 Apr 2011
Posts: 4
Location: Brazil

View user's profile Send private message

USB CDC Communication Problem
PostPosted: Fri Jul 08, 2011 6:47 am     Reply with quote

Hi,

I'm using CCS USB CDC implemented in a PIC18F4550 for communicating with a Visual Basic software. My system works fine for some time and then it crashes. The windows gives the following answers:

Run-Time error '8015':

Could not set comm state, there may be one or more invalid communications parameters.


Anyone can help me?
Ttelmah



Joined: 11 Mar 2010
Posts: 19359

View user's profile Send private message

PostPosted: Fri Jul 08, 2011 7:44 am     Reply with quote

Run time error 8015, means one of two things:

Two packages both trying to open one port.
Something is trying to change a port setting, that is not accepted.
The latter really doesn't happen. The CDC driver will accept all serial settings, even if it just ignores them. So I'd suspect the former.

I'd be suspicious, that you might have another 'background' program that thinks it can control the same com port as the one you are using.....
PalmPilot for example will do this. Or, a printer setup to use the com port.

Best Wishes
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