This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
how to set overtime to serial port block read/write?
- From: wb ning <helloningwb at gmail dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Sat, 26 Sep 2009 15:58:05 +0800
- Subject: [ECOS] how to set overtime to serial port block read/write?
Hi, everyone:
I think it's a common question, but i can't find the answer. I
think block read/write of serial port need a overtime, if time exceeds
that, i can made my program don't
wait any longer, if i can't set overtime, maybe i send a command and
wait for response, but when some error occurs and the reponse is lost,
my thread will wait forever.
Do anyone have find how to send overtime to block read/write? Please help me.
Thanks.
wenbo
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss