RE: Keyboard filter (to work with a Card Reader)
From: Christiaan (Christiaan_at_discussions.microsoft.com)
Date: 11/17/04
- Next message: Paul Sliwowicz [MSFT]: "Re: Bug in DriverEntry()/DriverUnload() processing (was: Start and stop via SCM not multiprocessor-safe?)"
- Previous message: Calvin Guan: "Re: USB Upper Filter Driver not getting IRP_MJ_INTERNAL_DEVICE_CONTROL"
- In reply to: Maria Penedo: "Keyboard filter (to work with a Card Reader)"
- Next in thread: Doron Holan [MS]: "Re: Keyboard filter (to work with a Card Reader)"
- Reply: Doron Holan [MS]: "Re: Keyboard filter (to work with a Card Reader)"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 16 Nov 2004 17:33:03 -0800
"Maria Penedo" wrote:
>
> I’m trying to develop a driver that filters the input of a card reader. The
> card reader shares the keyboard input PS/2 port by a wedge and to the OS the
> readings made by the card reader are the same as keyboard inputs. The purpose
> is to extract a substring from the data in the card.
> Example of reading: %a67081210343059&061010101691000166042600000000000_
> Substring needed: 16604
>
> My idea is to filter the inputs that start with some characters (in my case,
> the data always start with %a670812), read them to a buffer and send only the
> substring to the upper level.
> I’ve already seen the kbfiltr sample but my problem is that this is first
> time that I try to develop a driver and I’m really having some trouble to
> understand how it works.
>
> My questions are:
> - is a driver the best solution for this case?
> - If yes, how can I create a buffer in the kbfiltr sample to keep reading
> chars when some kind of input is read?
>
> TIA,
>
> Maria
>
You may take a look here :
http://home.tiscali.be/ri006712/OPOSKeyboard/OPOSKeyboard.asp
The sample is able to collect data from a MSR by watching for the pattern
that arrives and till the end pattern . Hint : OKBDHook.reg --> ; CARD START
RAW DATA within \OPOSKeyboard\OKBDHook\REG
- Next message: Paul Sliwowicz [MSFT]: "Re: Bug in DriverEntry()/DriverUnload() processing (was: Start and stop via SCM not multiprocessor-safe?)"
- Previous message: Calvin Guan: "Re: USB Upper Filter Driver not getting IRP_MJ_INTERNAL_DEVICE_CONTROL"
- In reply to: Maria Penedo: "Keyboard filter (to work with a Card Reader)"
- Next in thread: Doron Holan [MS]: "Re: Keyboard filter (to work with a Card Reader)"
- Reply: Doron Holan [MS]: "Re: Keyboard filter (to work with a Card Reader)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|