Higher BaudRate than 115200

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I was looking at the MSCOMM32.OCX help when I found that it supports only up to 256000 bps baud rate. Is there another .NET COM that supports higher baud rates (e.g. 460800 and 921600 bps)

Thanks
Amjad
 
Serial communications is always limited to a max bps of 115200. That is the
max speed the serial uart can handle.

There is not a .net based serial comm routine shipped with VS, but you may
find a 3rd party control.

HTH,

Wayne P.

Amjad said:
I was looking at the MSCOMM32.OCX help when I found that it supports only
up to 256000 bps baud rate. Is there another .NET COM that supports higher
baud rates (e.g. 460800 and 921600 bps)?
 
Hi,

MSComm is limited to 115200 bps, regardless of its documentation. Does your
hardware support speeds higher than 115200 bps? Most hardware does not.
There are only a few manufacturers of boards that provide higher speed
serial ports (Sealevel, Quatech, and Pacific Commware come to mind, but I'm
sure that there may be others).

However, if you do have hardware that supports higher speeds, you can use
P/Invoke (Platform Invoke) to call the Windows serial communications APIs to
open and use such a device. I have example code for this in my book, and
there are quite a number of others available online.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
 
Actually, I'm using a USB port as a COM Port (Serial-to-USB cable). I can communicate with this USB port using the Hyperterminal at any of the standard baud rates including 921600 bps with no problems. I assume if I can do that in Windows Hyperterminal then I could do it in VB.NET.

I'm still not sure where to find a solution. Any help

Amjad
 
Hi,

See my other reply. You can use the serial communications API.

However... What device are you communicating with that supports this speed?
If this is another PC where you also control the programming, then a network
connection will be even faster. It is VERY unusual to find hardware that
uses a serial speed in excess of 115200 bps.

Dick


--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
 
Back
Top