Re: filter above serial waits for special char by Doron
Doron
Sat May 29 13:10:20 CDT 2004
the performance increases here are minimal here IMO, esp w/regard to serial
port which is not the fastest piece of hw in the world. It is a common
misconception that just b/c you are in kernel mode, things are faster. Not
necessarily so, it just means you can crash the machine more readily in most
cases :).
d
--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.
"Alexander Grigoriev" <alegr@earthlink.net> wrote in message
news:%23J6CSVSREHA.1396@TK2MSFTNGP12.phx.gbl...
> In the kernel he can use DPCs/completion routines to get the data going
and
> have somewhat better latencies because of that.
>
> "Doron Holan [MS]" <doronh@nospam.microsoft.com> wrote in message
> news:OIKgJFQREHA.628@TK2MSFTNGP11.phx.gbl...
> > he would have to be in a waitable state for APCs to be delivered
> (something
> > like SleepEx being called). I don't know if that is overkill for this
> > situation or not. i think whatever timing issues are present here,
being
> in
> > the kernel, in the end, is not going to affect anything. the problem
will
> > be present b/c of limitations of hw, not sw.
> >
> > d
> >
> > --
> > Please do not send e-mail directly to this alias. this alias is for
> > newsgroup purposes only.
> > This posting is provided "AS IS" with no warranties, and confers no
> rights.
> >
> >
> > "Alexander Grigoriev" <alegr@earthlink.net> wrote in message
> > news:etz3QQNREHA.3720@TK2MSFTNGP09.phx.gbl...
> > > Will use of APC (ReadFileEx) give faster response than waiting on an
> > event?
> > > Does running of APC affect thread priority?
> > >
> > > "Doron Holan [MS]" <doronh@nospam.microsoft.com> wrote in message
> > > news:eJp1qFNREHA.2468@tk2msftngp13.phx.gbl...
> > > > if you set a completion routine, you can process the results
> immediately
> > > and
> > > > issue another PIRP from the completion routine w/out synchronously
> > > blocking
> > > > any thread.
> > > >
> > > > d
> > > >
> > > > --
> > > > Please do not send e-mail directly to this alias. this alias is for
> > > > newsgroup purposes only.
> > > > This posting is provided "AS IS" with no warranties, and confers no
> > > rights.
> > > >
> > > >
> > > > "Sanni" <morphemerkenner@web.de> wrote in message
> > > > news:opr8kfi2utk2odb4@sanni...
> > > > hello everyone,
> > > >
> > > > have installed an upper filter above serial and want to let it
listen
> > for
> > > > a special character.
> > > > this char will be send from a device to the com-port, where my
filter
> is
> > > > attached on.
> > > >
> > > > in detail:
> > > > from an usermode app. a deviceIoControl - request is send to my
> filter.
> > > > the dispatch-routine for this ioctl-request sends a char to the
> com-port
> > > > via self-made irp (IoBuildAsynchronousFsdRequest,
> > IoSetCompletionRoutine,
> > > > IoCallDriver)... that works fine so far.
> > > > but, after that i need to listen for an answer from the connected
> > device,
> > > > which is a special character. after this char is identified, a next
> > write
> > > > with some buffer content has to start immediately.
> > > >
> > > > my first idea was to set up a workerthread right after the write,
> which
> > > > sends a synchronous read request down to serial and waits. then, the
> > > > thread validates the content of the readbuffer and initiates the
next
> > > > write-op.
> > > >
> > > > my question is, is this a realistic method? (this is my first
> experience
> > > > in driver programming)
> > > > and, can such a construction react fast enough, that the delay btw.
> > > > incoming answer and next write is physicaly below 6 ms ?
> > > >
> > > > thanks for your answers
> > > >
> > > >
> > >
> > >
> >
> >
>
>