From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10564 invoked by alias); 26 Sep 2009 07:58:15 -0000 Received: (qmail 10555 invoked by uid 22791); 26 Sep 2009 07:58:14 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-ew0-f225.google.com (HELO mail-ew0-f225.google.com) (209.85.219.225) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 26 Sep 2009 07:58:08 +0000 Received: by ewy25 with SMTP id 25so3188747ewy.45 for ; Sat, 26 Sep 2009 00:58:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.210.106.12 with SMTP id e12mr1254519ebc.11.1253951885998; Sat, 26 Sep 2009 00:58:05 -0700 (PDT) Date: Sat, 26 Sep 2009 07:58:00 -0000 Message-ID: <44185a820909260058k6f820a1aheb6f37b2e4e868fc@mail.gmail.com> From: wb ning To: ecos-discuss@ecos.sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] how to set overtime to serial port block read/write? X-SW-Source: 2009-09/txt/msg00244.txt.bz2 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