How to configure Baudrate 76800
-
Hello guys, Requirement:My Application should work with any baudrate starting from 01- 256k ideally and i need to implement for 76800 baud with out fail. Constraint:We are able configure the bauds from 0 - 9600 (all the numbers), 10400,14400,19200,38400,56000,57600,etc..... when i give different baudrate from the above list, the error comes is Invalid Parameter. Question: Is there any work around to overcome this constraint.It's really urgent. can someone through light on this.???? Thanks in advance. Adi
-
Hello guys, Requirement:My Application should work with any baudrate starting from 01- 256k ideally and i need to implement for 76800 baud with out fail. Constraint:We are able configure the bauds from 0 - 9600 (all the numbers), 10400,14400,19200,38400,56000,57600,etc..... when i give different baudrate from the above list, the error comes is Invalid Parameter. Question: Is there any work around to overcome this constraint.It's really urgent. can someone through light on this.???? Thanks in advance. Adi
I take it your tryig to set the baud rate through a DCB structure and the BaudRate member. Ar eyou setting it like this:
dcb.BaudRate = 76800;
The other issue could be that some of the othere DCB parameters are not filled out correctly. If you vote me down, my score will only get lower
-
I take it your tryig to set the baud rate through a DCB structure and the BaudRate member. Ar eyou setting it like this:
dcb.BaudRate = 76800;
The other issue could be that some of the othere DCB parameters are not filled out correctly. If you vote me down, my score will only get lower
Hello Roger, Thanks for your response. Yes i'm setting the baudrate and other configuration parameters of serial port using DCB structure only with SetCommState() Function. so when i use baudrates like 76800, the return value of SetCommState() function is INVALID_PARAMETER. So i want to know if anyone has done something to achieve this kinda baudrates configured with serial port for their requirements. Thanks Adi
-
Hello Roger, Thanks for your response. Yes i'm setting the baudrate and other configuration parameters of serial port using DCB structure only with SetCommState() Function. so when i use baudrates like 76800, the return value of SetCommState() function is INVALID_PARAMETER. So i want to know if anyone has done something to achieve this kinda baudrates configured with serial port for their requirements. Thanks Adi
Some systems (drivers) have a list of accepted baud rates, I'm not sure if that could be your problem. Certainly on standard PC serial ports the hardware only allows a limited selection of baud rates and the driver will reflect this. Elaine :rose: The tigress is here :-D
-
Some systems (drivers) have a list of accepted baud rates, I'm not sure if that could be your problem. Certainly on standard PC serial ports the hardware only allows a limited selection of baud rates and the driver will reflect this. Elaine :rose: The tigress is here :-D
yeah it's true there are limited which driver supports which is documented in the header ntddser.h file. The hardware support depends on the highest speed of the hardware (till 1990s the speed was 115.2 k, after 2000's it's become more than that like 230K, 430K etc.....). The baudrates that are supported by the drivers are derived from the devisors of the highest speed.(Ex:115.2k - devisor 1,57600-div2,38400-div 3 ..etc). So i'm looking for what can be done to achieve the baudrates (such as 76800) which are exact divisors of the highest speed(incase of 115.2k) also. Please let me know if you know any leads on the same. Thanks for your info sharing Adi