libserial with vmin and vtime

Discussion in 'C++' started by Bill Michaelson, Jan 27, 2008.

  1. I'm looking for guidance in using the libserial package. It seems
    reasonable to assume that the facility I need is there, but it's not
    obvious to me how to use it...

    Ideally, I want to use a SerialStream::getline() to read a CR terminated
    string from an RS-232 input source, but in any case, I would like a
    blocking operation with a timeout parameter. As a C coder, I would
    ordinarily use a Linux/POSIX read(), and ioctl() to set VMIN/VTIME
    appropriately. But I prefer to use C++ with libserial, and I'm not so
    proficient.

    If need be, I would do final string assembly from raw buffers in my own app.

    But I'm not getting it from the libserial docs I can find, and I could
    use some clues from experienced hands. Perhaps you can refer me to a
    code fragment for this?

    TIA
     
    Bill Michaelson, Jan 27, 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. Nut Cracker
    Replies:
    1
    Views:
    365
  2. jakk
    Replies:
    4
    Views:
    12,639
  3. Tim Meagher
    Replies:
    8
    Views:
    1,313
    Karl Seguin
    Jun 18, 2005
  4. roxlu
    Replies:
    5
    Views:
    666
    Roland Pibinger
    Jun 17, 2006
  5. titi

    if and and vs if and,and

    titi, Mar 9, 2007, in forum: VHDL
    Replies:
    4
    Views:
    627
    Mike Treseler
    Mar 11, 2007
Loading...

Share This Page