Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > libserial with vmin and vtime

Reply
Thread Tools

libserial with vmin and vtime

 
 
Bill Michaelson
Guest
Posts: n/a
 
      01-27-2008
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
if and and vs if and,and titi VHDL 4 03-11-2007 05:23 AM
LibSerial and signal_handler roxlu C++ 5 06-17-2006 06:48 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57