Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / October 2005

Tip: Looking for answers? Try searching our database.

Serial port programming

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
badsha - 24 Oct 2005 22:54 GMT
Hello,
If I try to set com port to baud rate higher than 115200pbs using
SetCommState() API, it returns with an error. The error code is 87 which
means INVALID_PARAMETER. I tried using 128000 bps and 256000 bps. These rates
are valid in deed.

If you can, please let me know what I should do?

-- Badsha
Jochen Kalmbach [MVP] - 25 Oct 2005 07:03 GMT
Hi badsha!

> If I try to set com port to baud rate higher than 115200pbs using
> SetCommState() API, it returns with an error. The error code is 87 which
> means INVALID_PARAMETER. I tried using 128000 bps and 256000 bps. These rates
> are valid in deed.
>
> If you can, please let me know what I should do?

The valid baud-rates depends on the serial-port-driver.
If the driver does not support these baud-rates you can either install a
different hardware/driver or you can do nothing (of couse you could
write your own driver)

Signature

Greetings
  Jochen

   My blog about Win32 and .NET
   http://blog.kalmbachnet.de/

badsha - 25 Oct 2005 19:25 GMT
Jochen,
Thanks for your reply. You are right. I don't see this error when I ran my
code in another computer that uses serial over USB port. It supports higher
rate.
-- badsha

> Hi badsha!
>
[quoted text clipped - 9 lines]
> different hardware/driver or you can do nothing (of couse you could
> write your own driver)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.