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 baud rate changing

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



Joined: 02 May 2006
Posts: 7

View user's profile Send private message

USB cdc baud rate changing
PostPosted: Fri May 12, 2006 2:50 am     Reply with quote

How can I change baud rate in USB CDC Virtual Com port Example?
Even if i change baud rate in 'usb_cdc_init()' and i set different baud rate in HyperTerminal it steel works so changing has no effect.
Ttelmah
Guest







PostPosted: Fri May 12, 2006 7:12 am     Reply with quote

It is a virtual com port, not a real one. The same happens wth virtual ports over ethernet. The communication rate over USB, remains the same whatever you set, and the device at the other end, receiving the data over USB, always gets the data. If however the 'virtual' port is then mapped at the device to a 'real' port, you have to make provision to hand the 'rate' data over to the device, and change speed on the real port to match the selection. This involves adding this to the Windows driver, and to the data passed over the USB connection.

Best Wishes
GreenPic



Joined: 02 May 2006
Posts: 7

View user's profile Send private message

PostPosted: Fri May 12, 2006 8:26 am     Reply with quote

Ttelmah wrote:
It is a virtual com port, not a real one. The same happens wth virtual ports over ethernet. The communication rate over USB, remains the same whatever you set, and the device at the other end, receiving the data over USB, always gets the data. If however the 'virtual' port is then mapped at the device to a 'real' port, you have to make provision to hand the 'rate' data over to the device, and change speed on the real port to match the selection. This involves adding this to the Windows driver, and to the data passed over the USB connection.

Best Wishes


So, what bit rate i have? Not 9600 (like is in usb_cdc()) ???
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