Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Setting baud rates above 115200

8 views
Skip to first unread message

ear

unread,
Apr 26, 2000, 3:00:00 AM4/26/00
to
Using Win32API / VC6.0, I'm trying to set the serial port speed to above
115200 baud, but SetCommState() returns INVALID_HANDLE_ID when for example
trying 230400 baud. The serial port supports baud rates up to 921600 baud (8
times normal clocking).

When inspecting comm port proprties in control panel, it correctly lists
all baud rates I expect, as does a call to the CommConfigDialog() function.
So obviously the required information is somwhere in the system.
GetCommProperties() says the port supports 'User settable baud rates'.

However, in my application I need to present a list of available baud rates
to the user, without handshaking, number of data bits etc (which
CommConfigDialog() presents). In other words, I need to identify legal baud
rates in order to build my own list, and thereafter set the port to any of
these baud rates.

Does anyone have a clue how this may be done?

-ear


Jean-Marc MORIN

unread,
Apr 26, 2000, 3:00:00 AM4/26/00
to
Could your response be in your question...

Any standard baud rates up-to 115200 times 8.

0 new messages