From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8527 invoked by alias); 7 Oct 2009 03:17:02 -0000 Received: (qmail 8515 invoked by uid 22791); 7 Oct 2009 03:17:00 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from virtual.bogons.net (HELO virtual.bogons.net) (193.178.223.136) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 07 Oct 2009 03:16:57 +0000 Received: from jifvik.dyndns.org (jifvik.dyndns.org [85.158.45.40]) by virtual.bogons.net (8.10.2+Sun/8.11.2) with ESMTP id n973Gt406341; Wed, 7 Oct 2009 04:16:55 +0100 (BST) Received: from [172.31.1.126] (neelix.jifvik.org [172.31.1.126]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by jifvik.dyndns.org (Postfix) with ESMTP id 950CC3FEB; Wed, 7 Oct 2009 04:16:54 +0100 (BST) Message-ID: <4ACC0825.7050707@jifvik.org> Date: Wed, 07 Oct 2009 03:17:00 -0000 From: Jonathan Larmour User-Agent: Mozilla Thunderbird 1.0.8-1.1.fc4 (X11/20060501) MIME-Version: 1.0 To: wb ning Cc: ecos-discuss@ecos.sourceware.org References: <44185a820909260058k6f820a1aheb6f37b2e4e868fc@mail.gmail.com> <4ABFDF2D.6070709@jifvik.org> <44185a820910061944l2e676e41s8dc91f3f9970a0fd@mail.gmail.com> In-Reply-To: <44185a820910061944l2e676e41s8dc91f3f9970a0fd@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Re: [ECOS] how to set overtime to serial port block read/write? X-SW-Source: 2009-10/txt/msg00035.txt.bz2 wb ning wrote: > I use cyg_io_get_config(io_handle, CYG_IO_GET_CONFIG_SERIAL_ABORT, 0, > &len) as you said. The return code of this function is 0, but seems my > cyg_io_read() seems still block there. I cannot find where the mistake > is, i used the test file at $ECOS_REPOSITORY/io/serial/v3_0/tests/. > And my code is like this: Your code looks ok to me. Have you been able to debug with GDB and find out where the thread doing the read has stopped? A backtrace would be very useful. Jifl -- --["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss