Jan 16, 2013 Defines a list of commonly supported serial communication rates (baud rates). One baud signifies one pulse per second. Namespace: System.IO.Ports Assembly: Microsoft.SPOT.Hardware (in Microsoft.SPOT.Hardware.dll) Syntax 'Declaration Public Enumeration BaudRate public enum BaudRate public enum class BaudRate type BaudRate public enum BaudRate.
- Automatically Detecting Serial Baud Rate As discussed on the prior page, the transmitter and receiver each needs to be within 2% of the agreed bps/baud rate to ensure accurate serial communication. Usually this means pre-programming or configuring the rate in both devices, and using either an individually compensated oscillator or a crystal.
- You want you are expecting when you request certain information. The logical solution is to connected to the device using one baund rate, check if the requested data is correct, and if its not disconnect and try the other baud rate. There is no way to 'request' the band rate from a serial device. – Security Hound May 16 '13 at 14:10.
To change the baud rate setting for a PubSub+ appliance’s RS-232 serial console port, enter the following commands:
solace# configure
solace(configure)# console baud-rate <baud-rate>
Detect Serial Baud Rate Calculator
Where:
baud-rate
is the desired baud rate setting for the RS-232 serial console port in bits per second (bps). Valid values are 110, 300, 1200, 2400, 4800, 9600, 19200, 38400, 57600, or 115200. The default value is 115200 on Solace PubSub+ 3260, 3530, and 3560.
To view the baud rate used for the RS-232 serial console port, enter the show console
command. Note that this command does not apply to PubSub+ software event brokers.
The console has the following RS-232 configuration:
- 8 data bits
- 0 parity bits (turn Parity checking off)
- 1 stop bit (RS232 allows 1, 1.5 and 2)
- No flow control
- Baud rate configurable
The baud rate setting of the RS-232 connection is affected by the length of the cable used between the appliance and the datacenter terminal server. The higher the baud rate, the shorter the cable length. The default 115,200 baud rate setting is designed for a shorter cable length to the ‘top of rack’ terminal server found in newer data centres. For data centres where larger terminal servers are deployed that serve a suite of racks, the default setting should be changed to allow longer cables and reliable communication. The value of 9,600 is a standard terminal server speed for such terminal server/console deployment style.
Note that both ends of the RS232 connection must have the same configuration.
Detect Serial Baud Rate Code
For more information on baud rate and how it relates to bit rate, refer to this blog post.