Determining the type of expansion card currently in use

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hello all,

I'm working on a mobile application that uses an RFID chip reader, and
now has to support multiple readers. I've found the pattern example at
MSDN for bar code scanners to be an excellent analog (http://
msdn2.microsoft.com/en-us/library/aa446489.aspx), and intend to model
my solution after that. However, it requires the ability to
distinguish between the different types of cards that may be plugged
in to the device.

I've found multiple articles regarding detecting the insertion/removal
of cards, but I feel that won't be sufficient for my situation. The
card is likely to have been inserted when the application isn't
running, so I need to be able to determine the installed card after
the fact.

This post:
http://groups.google.com/group/microsoft.public.dotnet.framework.compactframework/browse_thread/thread/b17ae0d508772609/d53e04dbcd13a987?lnk=gst&q=detect+card&rnum=11#d53e04dbcd13a987

....indicates that a potential source of information is the registry,
specifically the HKLM\Drivers\Active branch. I have confirmed that
there are two different entries that show up, one for each card. I
feel like this is probably workable, but as I'm very new to working
with hardware, I'm not sure if there are unforeseen pitfalls.

Is this the approach you'd take? Is there a better or more "proper"
way that I can determine the installed card?

The current version of my application supports a reader in a Compact
Flash form factor. The new card is Secure Digital. Neither have
storage, so they do not enumerate as directories.

I'm working on a Windows Mobile 5 PDA, using .NET Compact Framework
SP2.

Any help or advice is much appreciated!

Cheers,
Chris

.



Relevant Pages

  • Re: SCardTransmit Fails
    ... ' Advanced Card Systems, Ltd for the Smart Card Development Kit sample code. ... ' this reader be ignored. ... ' This implies that the given ... End Sub ...
    (microsoft.public.platformsdk.security)
  • Re: SCardTransmit Fails(Forgot to Attach File)
    ... ' Advanced Card Systems, Ltd for the Smart Card Development Kit sample code. ... ' this reader be ignored. ... ' This implies that the given ... End Sub ...
    (microsoft.public.platformsdk.security)
  • Re: RFID Flap Silences Security Researchers
    ... while - now it's down to credit card size. ... through a reader, just passed near it. ... RFID devices as people pass by. ...
    (comp.home.automation)
  • Re: External firewire CF card reader not recognised
    ... See if you can find any firmware updates for the card ... | After rebooting OS would recognise card reader as a type II CF reader, | however there was yellow exclamation mark next to it, after few seconds | ""SBP2 Compliant ... | I forgot to mention my machine has two firewire ports, one on the | motherboard the other with Audigy Platinum. ... | Weird thing both ports are listed in Dev Manager as OHCI Compliant IEEE 1394 | Host Controller with Microsoft drivers loaded. ...
    (microsoft.public.windowsxp.hardware)
  • Re: Whats a "programming language"
    ... You may recall I also offered a photograph with my previous post. ... I wrote a program to the hardware I/O interface for the card ... to mix the line and reader or line and printer tasks. ... For IBM-MAIN subscribe / signoff / archive access instructions, ...
    (bit.listserv.ibm-main)