🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ee.prog
Article #193

Re: VB6 mscomm

#193
From: Taavi Talvik
Date: Thu, 20 Apr 2006 18:41
23 lines
1944 bytes
Lembit <lembit@kodu.ee> wrote:
: Loen kontrollerist umbes iga 6mS j?rel 4 baiti datat commporti.
: K?ik ilus, aga programm loeb ju event-iga suvalisest kohast, siis kui
: puhver t?is saab(4)
: Mina tahan aga, et igas 6mS ts?klis oleks rangelt esimene bait k?ige ees
: ja tagumine taga.
: Kuidas seda asja k?ige elegantsemalt lahendada?
: V?in lasta kontrollerist saata veel 2 baiti lisaks, kas ette v?i taha
: v?i m?lemale poole, peaasi, et nihet ei tekiks.

Sellise asja jaoks on mõistlik "pisike device driver" kirjutada.
Driver loeb iga 6ms tagant rauast (või kavalamalt), paneb näiteks
time-stampi juurde ning hoolitseb selle eest, et user-space
programm kuidagi andmed kätte saaks.

tervisi,
taavi
-- 
If Bill Gates were into building cars we'd often be madder than hell --
and Ferraris would be doing from zero to sixty in 60 seconds flat -- so, a
few things that would be different if Microsoft started building cars ...
Technical Details
Message-ID: <4447d5e1$0$76677$bb624dac@diablo.uninet.ee>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news2.volia.net!newspeer1.de.telia.net!newspeer4.de.telia.net!de.telia.net!newsfeed101.telia.com!nf02.dk.telia.net!newsfeed.bahnhof.se!195.197.54.117.MISMATCH!feeder1.news.jippii.net!newsfeed1.funet.fi!newsfeeds.funet.fi!newsfeed.uninet.ee!diablo.uninet.ee!not-for-mail
References: <4447a95f_1@news.estpak.ee>

Show Full Headers
Complete Article Headers
X-Google-Thread: f8b3f,c82a35d7f4e3b79f
X-Google-Attributes: gidf8b3f,public
X-Google-Language: ESTONIAN,CP1257
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news2.volia.net!newspeer1.de.telia.net!newspeer4.de.telia.net!de.telia.net!newsfeed101.telia.com!nf02.dk.telia.net!newsfeed.bahnhof.se!195.197.54.117.MISMATCH!feeder1.news.jippii.net!newsfeed1.funet.fi!newsfeeds.funet.fi!newsfeed.uninet.ee!diablo.uninet.ee!not-for-mail
Message-ID: <4447d5e1$0$76677$bb624dac@diablo.uninet.ee>
From: Taavi Talvik <taavi@uninet.ee>
Subject: Re: VB6 mscomm
Newsgroups: ee.prog
References: <4447a95f_1@news.estpak.ee>
Distribution: Estonia
User-Agent: tin/1.7.8-20050321 ("Hellisay") (UNIX) (FreeBSD/5.3-RELEASE (i386))
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Date: 20 Apr 2006 18:41:37 GMT
Lines: 24
NNTP-Posting-Host: 194.204.5.161
X-Trace: 1145558497 diablo.uninet.ee 76677 194.204.5.161