views:

348

answers:

3

Is it possible to set the baud rate to 10400? (Using .Net)

+1  A: 

Have you examined the .NET SerialPort class documentation - the baud rate is one of the constructor arguments.

That said, the standard baud rates are generally considered to be:

110, 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 56000, 57600 & 115200

...so your serial hardware many not support the somewhat curious rate you're trying to use.

middaparka
So is your answer yes or no then?
Bandi-T
@Bandi-T: have you stopped beating your wife? The answer is that the question does not contain sufficient information.
EFraim
+1  A: 

You don't need this. Trust me. Even if you think you do, you don't.

Thorsten79
A little more context would be nice for those of us who are curious... =)
Erik Forbes
Google search for 10400 baud results in links to documents mentioning OBD-II, the protocol to communicate with embedded computers in cars.See for example this link: http://www.andywhittaker.com/ECU/OBDIISoftware/tabid/69/language/en-GB/Default.aspx
Bandi-T
Good job entering this into Google. But I'll beat you with 20 years experience fiddling with all sorts of serial circuitry: You need a port chip that groks the weird baud rate. Which means that normal FIFOs in roundabout 100% of all .NET PCs won't be able to serve the baud rate. So you need an adaptor. And I guarantee you this converter will work with any off-the-shelf serial chip (or emulate the same using USB).
Thorsten79
@Thorsten79: Hence you were right in the first place - I just provided references in response to Erik Forbes. (Sorry I did not make it clear that my reply was not directed at you.)
Bandi-T
A: 

The direct answer is Yes. If you are implying another question (will it work?) I think you need to try it and see.

Dim mySP As New IO.Ports.SerialPort
mySP.BaudRate = 10400
dbasnett