Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!news-out.readnews.com!transit3.readnews.com!panix!not-for-mail From: Grant Edwards Newsgroups: comp.os.linux.development.apps Subject: Re: termios Date: Fri, 17 Jun 2011 20:19:51 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 20 Message-ID: References: <4dfb6e98$0$30769$ba4acef3@reader.news.orange.fr> NNTP-Posting-Host: dsl.comtrol.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: reader1.panix.com 1308341991 10244 64.122.56.22 (17 Jun 2011 20:19:51 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Fri, 17 Jun 2011 20:19:51 +0000 (UTC) User-Agent: slrn/pre0.9.9-102 (Linux) Xref: x330-a1.tempe.blueboxinc.net comp.os.linux.development.apps:155 On 2011-06-17, michel simian wrote: > I develop an industrial application which send and receive from RS485 > device, on linux (2.6.32 i686). > > When I c onfigure my /dev/ttSx port, like below : > > c _lflag &= ~(ICANON | ECHO | ECHOE) > > I always receive an echo of my last write output and a select > returns immediately... > > What's wrong ? My guess is that your RS485 hardware is doing the echoing. -- Grant Edwards grant.b.edwards Yow! Are we on STRIKE yet? at gmail.com