Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: usbdeviceopen failure - non-classic problem



Hi,

I am aware of the pc/sc subsystem in the OS. I have the driver bundle
placed in /usr/libexec/smartcardservices/drivers. When i plug-in my
device (spr532), the driver bundle loads, but is failing when it tries
to open the interface. that is my problem. I found from forums that
some other app maybe holding the handle. Hence, I went for the
"codeless kext". But, still I am facing the issue.

Under this situation, if i run "pcsctest", it fails in the
"scardestablishcontext" itself since the driver is not successfully
loaded. Hence, the deadlock for me. I sure shall post it in the cdsa
list also, if I can get a lead/solution to this.

Joe

On 10/25/05, Garth Cummings <email@hidden> wrote:
> Hi Joseph,
>
>
> On Oct 24, 2005, at 6:04 AM, Joseph Antony wrote:
>
>
> To reiterate and update, I am writing a CFPlugin bundle for spr532
> (SCM microsystems) usb smart card reader. When I tried to open the
> interface (USBInterfaceOpen), I am getting a a 0xE00002c5 ( exclusive
> access and device already open) error.
> I notice that you're running Mac OS X 10.4.2. On Tiger, the OS owns smart
> card readers that have PC/SC drivers on the system. These drivers live in
> /usr/libexec/SmartCardServices/drivers.
>
> To see if PC/SC knows about your reader, open Terminal and run pcsctest. If
> that test tool shows the name of your reader, it's already been opened by
> PC/SC.
>
> Session with unknown reader:
>
> $ pcsctest
>
> MUSCLE PC/SC Lite Test Program
>
> Testing SCardEstablishContext    : Command successful.
> Testing SCardGetStatusChange
> ^C
>
> Session with known reader:
>
> $ pcsctest
>
> MUSCLE PC/SC Lite Test Program
>
> Testing SCardEstablishContext    : Command successful.
> Testing SCardGetStatusChange
> Please insert a working reader   : Command successful.
> Testing SCardListReaders         : Command successful.
> Reader 01: CCID Smart Card Reader 0 0
> Enter the reader number          : ^C
>
> The next question is: what task are you trying to accomplish? There's a
> whole smart card support infrastructure on Tiger that you should probably be
> taking advantage of instead of rolling your own. For example, if you write a
> small module (called a tokend) that knows the specifics of the card you want
> to use, you get system-wide smart card authentication, S/MIME support in
> Mail, and Safari integration for free.
>
> BTW, as this topic has more to do with Mac OS X security services than with
> USB, you might want to move this thread to the apple-cdsa mailing list, as
> that's where the engineers who work on Mac OS X smart card support hang out.
>
> <http://lists.apple.com/apple-cdsa>.
>
> Regards,
> --gc
>
>
>
>
>
> __________________________________________________________________
>
> Garth Cummings
>
> Apple Developer Technical Support     email@hidden
>
>
>
>
> http://developer.apple.com/technicalsupport
>
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden

References: 
 >usbdeviceopen failure - non-classic problem (From: Joseph Antony <email@hidden>)
 >Re: usbdeviceopen failure - non-classic problem (From: Garth Cummings <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.