🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.bsd
Article #21942

Re: TIOCGSERIAL

#21942
From: Paweł Michalicki
Date: Thu, 18 Aug 2011 18:17
18 lines
2098 bytes
Przez stty wcześniej nie próbowałem (nic by to nie dało, protokół
wymiany danych jest egzotyczny na tyle, że i tak muszę mieć własny
program do jego obsługi), ale Twoja odpowiedź skłoniła mnie do
eksperymentów z stty, a to z kolei do ponownego zapoznania się z man
cfsetspeed... no i cóż mogę powiedzieć, po prostu nie doczytałem tego
mana poprzednim razem:

"The input and output baud rates are found in the termios structure.
The unsigned integer speed_t is typedef'd in the include file
<termios.h>. The value of the integer corresponds directly to the baud
rate being represented, however, the following symbolic values are
defined (...)"

Corresponds directly... Innymi słowy, na FreeBSD żadne TIOCGSERIAL nie
jest potrzebne, cfsetspeed() z automatu wybiera żądaną bitrate i tyle.
Zastosowałem to we własnym programie i działa!

Dzięki!
Technical Details
Message-ID: <506775d7-487e-42ce-b620-a572835c87aa@c14g2000yqk.googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.glorb.com!postnews.google.com!c14g2000yqk.googlegroups.com!not-for-mail
References: <5be35a14-a1c5-4b7f-8932-1089e7c2ec23@s17g2000yqs.googlegroups.com> <8T82kdkpIc0kN13q.elb@akson.sgh.waw.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.glorb.com!postnews.google.com!c14g2000yqk.googlegroups.com!not-for-mail
From: Paweł Michalicki <perquam@gmail.com>
Newsgroups: pl.comp.os.bsd
Subject: Re: TIOCGSERIAL
Date: Thu, 18 Aug 2011 11:17:26 -0700 (PDT)
Organization: http://groups.google.com
Lines: 21
Message-ID: <506775d7-487e-42ce-b620-a572835c87aa@c14g2000yqk.googlegroups.com>
References: <5be35a14-a1c5-4b7f-8932-1089e7c2ec23@s17g2000yqs.googlegroups.com> <8T82kdkpIc0kN13q.elb@akson.sgh.waw.pl>
NNTP-Posting-Host: 212.87.13.74
Mime-Version: 1.0
X-Trace: posting.google.com 1313693131 7361 127.0.0.1 (18 Aug 2011 18:45:31 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 18 Aug 2011 18:45:31 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: c14g2000yqk.googlegroups.com; posting-host=212.87.13.74; posting-account=1r-X2goAAADqiqtzhcCOS_f_HFvu-VUP
User-Agent: G2/1.0
X-Google-Web-Client: true
X-Google-Header-Order: HUALESNKRC
X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0,gzip(gfe)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit