Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to configure Baudrate 76800

How to configure Baudrate 76800

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelptutorial
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Adi Narayana Vemuru
    wrote on last edited by
    #1

    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

    R 1 Reply Last reply
    0
    • A Adi Narayana Vemuru

      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

      R Offline
      R Offline
      Roger Allen
      wrote on last edited by
      #2

      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

      A 1 Reply Last reply
      0
      • R Roger Allen

        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

        A Offline
        A Offline
        Adi Narayana Vemuru
        wrote on last edited by
        #3

        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

        L 1 Reply Last reply
        0
        • A Adi Narayana Vemuru

          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

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          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

          A 1 Reply Last reply
          0
          • L Lost User

            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

            A Offline
            A Offline
            Adi Narayana Vemuru
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups