Change BaudRate on Condition

Discussion in '.NET' started by litechniks, Mar 18, 2008.

  1. litechniks

    litechniks

    Joined:
    Mar 18, 2008
    Messages:
    1
    In my task I have to change the baudrate after having a specified string received but send an ACK before.
    I'm trying to do this by placing the following line into "private void DataReceived":
    this.Invoke(new EventHandler(Change_BaudRate));

    Where Change_BaudRate closes the port, reconfigures and reopens it.

    BUT the program crashes at the change, I guess because it is illegal to "call" a method that closes the port on DataReceived event.

    I can't figure out how to do this,
    thanks
    litechniks, Mar 18, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Martin Maurer
    Replies:
    3
    Views:
    4,783
    Peter
    Apr 19, 2006
  2. -
    Replies:
    12
    Views:
    678
    Remon van Vliet
    Jun 15, 2005
  3. Michael
    Replies:
    4
    Views:
    865
    Steven Cheng [MSFT]
    Jun 20, 2008
  4. kiran423

    baudrate generator

    kiran423, Mar 28, 2011, in forum: VHDL
    Replies:
    9
    Views:
    1,948
    kiran423
    Apr 17, 2011
  5. Bill W.
    Replies:
    13
    Views:
    282
    Phillip Gawlowski
    May 9, 2011
Loading...

Share This Page