High baud rate using win32

Discussion in 'Win32' started by ljungsan, Apr 7, 2006.

  1. ljungsan

    ljungsan New Member

    Joined:
    Apr 7, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    I'm trying to set up a serial connection at 250000 baud rate (optimal baud rate for other side) with win32. SetCommState returns error 87 (bad parameter). The doc says "Baud rate at which the communications device operates. This member can be an actual baud rate value, or one of the following indexes." Highest index 256000. Is there limitations with HW? Anyone got tips/hints?

    Regards, Ljung
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Why not try with other values like CBR_128000 or CBR_115200 ...
     
  3. ljungsan

    ljungsan New Member

    Joined:
    Apr 7, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    The communication is with a microcontroller running on a crystal (8MHz) not good for baudrates. The only baudrate with 0% error is 250k.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice