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,

Sorry for the delay. I am seeing the failure in the USBInterfaceOpen
call only. I tried setting up the KEXT to focus forthe interface as
below.... but, still faced failure.
---------------info.plist-------------
<key>IOKitPersonalities</key>
       <dict>
               <key>SPR532Interface</key>
               <dict>
                       <key>CFBundleIdentifier</key>
                       <string>com.scmmicro.kext.kextscr33x</string>
                       <key>IOClass</key>
                       <string>IOService</string>
                       <key>IOKitDebug</key>
                       <integer>65535</integer>
                       <key>IOProviderClass</key>
                       <string>IOUSBInterface</string>
                       <key>IOProviderMergeProperties</key>
                       <dict>
                               <key>ClassicMustNotSeize</key>
                               <true/>
                       </dict>
                       <key>bConfigurationValue</key>
                       <integer>1</integer>
                       <key>bDeviceClass</key>
                       <integer>0</integer>
                       <key>bDeviceSubClass</key>
                       <integer>0</integer>
                       <key>bInterfaceClass</key>
                       <integer>255</integer>
                       <key>bInterfaceNumber</key>
                       <integer>0</integer>
                       <key>bInterfaceProtocol</key>
                       <integer>0</integer>
                       <key>bInterfaceSubClass</key>
                       <integer>0</integer>
                       <key>bcdDevice</key>
                       <integer>1287</integer>
                       <key>idProduct</key>
                       <integer>57347</integer>
                       <key>idVendor</key>
                       <integer>1254</integer>
               </dict>
       </dict>
---------------info.plist-------------

One observation:
The problem does NOT occur when I connected the device to Port 1 (the
one where I normally connect the keyboard). Sorry for missing out this
testing before. What is the significance of this?

The following ioreg log is when I connected to Port 1 and successfully
was able to load the driver bundle.
---------------------ioreg_success---------------------
  | |       |   +-o SPRx32 USB Smart Card Reader@9130000  <class
IOUSBDevice, registered, matched, active, busy 0, retain count 11>
   | |       |     | {
   | |       |     |   "PortNum" = 3
   | |       |     |   "IOUserClientClass" = "IOUSBDeviceUserClient"
   | |       |     |   "Device Speed" = 1
   | |       |     |   "iSerialNumber" = 5
   | |       |     |   "Bus Power Available" = 250
   | |       |     |   "IOGeneralInterest" = "IOCommand is not serializable"
   | |       |     |   "bDeviceClass" = 0
   | |       |     |   "USB Product Name" = "SPRx32 USB Smart Card Reader"
   | |       |     |   "bNumConfigurations" = 1
   | |       |     |   "USB Serial Number" = "60102571"
   | |       |     |   "USB Vendor Name" = "SCM Microsystems Inc."
   | |       |     |   "iManufacturer" = 1
   | |       |     |   "bcdDevice" = 1287
   | |       |     |   "bDeviceSubClass" = 0
   | |       |     |   "IOCFPlugInTypes" =
{"9dc7b780-9ec0-11d4-a54f-000a27052861"="IOUSBFamily.kext/Contents/PlugIns/IOUSBLib.bundle"}
   | |       |     |   "iProduct" = 2
   | |       |     |   "sessionID" = 820500893627
   | |       |     |   "bMaxPacketSize0" = 16
   | |       |     |   "locationID" = 152240128
   | |       |     |   "idProduct" = 57347
   | |       |     |   "USB Address" = 3
   | |       |     |   "bDeviceProtocol" = 0
   | |       |     |   "idVendor" = 1254
   | |       |     | }
   | |       |     |
   | |       |     +-o IOUSBCompositeDriver  <class
IOUSBCompositeDriver, !registered, !matched, active, busy 0, retain
count 4>
   | |       |     |   {
   | |       |     |     "IOMatchCategory" = "IODefaultMatchCategory"
   | |       |     |     "IOClass" = "IOUSBCompositeDriver"
   | |       |     |     "bDeviceClass" = 0
   | |       |     |     "IOProviderClass" = "IOUSBDevice"
   | |       |     |     "bDeviceSubClass" = 0
   | |       |     |     "CFBundleIdentifier" =
"com.apple.driver.AppleUSBComposite"
   | |       |     |     "IOProbeScore" = 50000
   | |       |     |   }
   | |       |     |
   | |       |     +-o IOUSBUserClientInit  <class
IOUSBUserClientInit, !registered, !matched, active, busy 0, retain
count 4>
   | |       |     |   {
   | |       |     |     "IOMatchCategory" = "IOUSBUserClientInit"
   | |       |     |     "IOProbeScore" = 9000
   | |       |     |     "IOClass" = "IOUSBUserClientInit"
   | |       |     |     "IOProviderClass" = "IOUSBDevice"
   | |       |     |     "CFBundleIdentifier" =
"com.apple.iokit.IOUSBUserClient"
   | |       |     |     "IOProviderMergeProperties" =
{"IOUserClientClass"="IOUSBDeviceUserClient","IOCFPlugInTypes"={"9dc7b780-9ec0-11d4-a54f-000a27052861"="IOUSBF$
   | |       |     |   }
   | |       |     |
   | |       |     +-o IOUSBDeviceUserClient  <class
IOUSBDeviceUserClient, !registered, !matched, active, busy 0, retain
count 5>
   | |       |     |   {
   | |       |     |   }
   | |       |     |
   | |       |     +-o Vendor Interface@0  <class IOUSBInterface,
registered, matched, active, busy 0, retain count 8>
   | |       |       | {
   | |       |       |   "IOUserClientClass" = "IOUSBInterfaceUserClient"
   | |       |       |   "idProduct" = 57347
   | |       |       |   "IOCFPlugInTypes" =
{"2d9786c6-9ef3-11d4-ad51-000a27052861"="IOUSBFamily.kext/Contents/PlugIns/IOUSBLib.bundle"}
   | |       |       |   "iInterface" = 4
   | |       |       |   "bAlternateSetting" = 0
   | |       |       |   "bConfigurationValue" = 1
   | |       |       |   "bInterfaceProtocol" = 0
   | |       |       |   "bInterfaceNumber" = 0
   | |       |       |   "bInterfaceSubClass" = 0
   | |       |       |   "idVendor" = 1254
   | |       |       |   "bInterfaceClass" = 255
   | |       |       |   "locationID" = 152240128
   | |       |       |   "bNumEndpoints" = 3
   | |       |       |   "bcdDevice" = 1287
   | |       |       | }
   | |       |       |
   | |       |       +-o IOService  <class IOService, !registered,
!matched, active, busy 0, retain count 4>
   | |       |       |   {
   | |       |       |     "idProduct" = 57347
   | |       |       |     "bConfigurationValue" = 1
   | |       |       |     "IOProviderMergeProperties" =
{"ClassicMustNotSeize"=Yes}
   | |       |       |     "CFBundleIdentifier" =
"com.scmmicro.kext.kextscr33x"
   | |       |       |     "IOClass" = "IOService"
   | |       |       |     "bDeviceClass" = 0
   | |       |       |     "bInterfaceProtocol" = 0
   | |       |       |     "IOKitDebug" = 65535
   | |       |       |     "bDeviceSubClass" = 0
   | |       |       |     "IOProbeScore" = 100000
   | |       |       |     "IOMatchCategory" = "IODefaultMatchCategory"
   | |       |       |     "bInterfaceNumber" = 0
   | |       |       |     "bInterfaceSubClass" = 0
   | |       |       |     "idVendor" = 1254
   | |       |       |     "bInterfaceClass" = 255
   | |       |       |     "IOProviderClass" = "IOUSBInterface"
   | |       |       |     "bcdDevice" = 1287
   | |       |       |   }
   | |       |       |
   | |       |       +-o IOUSBUserClientInit  <class
IOUSBUserClientInit, !registered, !matched, active, busy 0, retain
count 4>
   | |       |       |   {
   | |       |       |     "IOMatchCategory" = "IOUSBUserClientInit"
   | |       |       |     "IOProbeScore" = 9000
   | |       |       |     "IOClass" = "IOUSBUserClientInit"
   | |       |       |     "IOProviderClass" = "IOUSBInterface"
   | |       |       |     "CFBundleIdentifier" =
"com.apple.iokit.IOUSBUserClient"
   | |       |       |     "IOProviderMergeProperties" =
{"IOUserClientClass"="IOUSBInterfaceUserClient","IOCFPlugInTypes"={"2d9786c6-9ef3-11d4-ad51-000a27052861"="I$
   | |       |       |   }
   | |       |       |
   | |       |       +-o IOUSBInterfaceUserClient  <class
IOUSBInterfaceUserClient, !registered, !matched, active, busy 0,
retain count 5>
   | |       |           {
   | |       |           }
   | |       |

---------------------ioreg_success---------------------
The following is when I connected the device to Port 2 and encountered
the failure.
--------------------ioreg_fail-------------
   | |       |   +-o SPRx32 USB Smart Card Reader@8130000  <class
IOUSBDevice, registered, matched, active, busy 0, retain count 11>
   | |       |     | {
   | |       |     |   "PortNum" = 3
   | |       |     |   "IOUserClientClass" = "IOUSBDeviceUserClient"
   | |       |     |   "Device Speed" = 1
   | |       |     |   "iSerialNumber" = 5
   | |       |     |   "Bus Power Available" = 250
   | |       |     |   "IOGeneralInterest" = "IOCommand is not serializable"
   | |       |     |   "bDeviceClass" = 0
   | |       |     |   "USB Product Name" = "SPRx32 USB Smart Card Reader"
   | |       |     |   "bNumConfigurations" = 1
   | |       |     |   "USB Serial Number" = "60102571"
   | |       |     |   "USB Vendor Name" = "SCM Microsystems Inc."
   | |       |     |   "iManufacturer" = 1
   | |       |     |   "bcdDevice" = 1287
   | |       |     |   "bDeviceSubClass" = 0
   | |       |     |   "IOCFPlugInTypes" =
{"9dc7b780-9ec0-11d4-a54f-000a27052861"="IOUSBFamily.kext/Contents/PlugIns/IOUSBLib.bundle"}
   | |       |     |   "iProduct" = 2
   | |       |     |   "sessionID" = 722713758098
   | |       |     |   "bMaxPacketSize0" = 16
   | |       |     |   "locationID" = 135462912
   | |       |     |   "idProduct" = 57347
   | |       |     |   "USB Address" = 3
   | |       |     |   "bDeviceProtocol" = 0
   | |       |     |   "idVendor" = 1254
   | |       |     | }
   | |       |     |
   | |       |     +-o IOUSBCompositeDriver  <class
IOUSBCompositeDriver, !registered, !matched, active, busy 0, retain
count 4>
   | |       |     |   {
   | |       |     |     "IOMatchCategory" = "IODefaultMatchCategory"
   | |       |     |     "IOClass" = "IOUSBCompositeDriver"
   | |       |     |     "bDeviceClass" = 0
   | |       |     |     "IOProviderClass" = "IOUSBDevice"
   | |       |     |     "bDeviceSubClass" = 0
   | |       |     |     "CFBundleIdentifier" =
"com.apple.driver.AppleUSBComposite"
   | |       |     |     "IOProbeScore" = 50000
   | |       |     |   }
   | |       |     |
   | |       |     +-o Vendor Interface@0  <class IOUSBInterface,
registered, matched, active, busy 0, retain count 6>
   | |       |     | | {
   | |       |     | |   "IOUserClientClass" = "IOUSBInterfaceUserClient"
   | |       |     | |   "idProduct" = 57347
   | |       |     | |   "IOCFPlugInTypes" =
{"2d9786c6-9ef3-11d4-ad51-000a27052861"="IOUSBFamily.kext/Contents/PlugIns/IOUSBLib.bundle"}
   | |       |     | |   "iInterface" = 4
   | |       |     | |   "bAlternateSetting" = 0
   | |       |     | |   "bConfigurationValue" = 1
   | |       |     | |   "bInterfaceProtocol" = 0
   | |       |     | |   "bInterfaceNumber" = 0
   | |       |     | |   "bInterfaceSubClass" = 0
   | |       |     | |   "idVendor" = 1254
   | |       |     | |   "bInterfaceClass" = 255
   | |       |     | |   "locationID" = 135462912
   | |       |     | |   "bNumEndpoints" = 3
   | |       |     | |   "bcdDevice" = 1287
   | |       |     | | }
   | |       |     | |
   | |       |     | +-o IOService  <class IOService, !registered,
!matched, active, busy 0, retain count 4>
   | |       |     | |   {
   | |       |     | |     "idProduct" = 57347
   | |       |     | |     "bConfigurationValue" = 1
   | |       |     | |     "IOProviderMergeProperties" =
{"ClassicMustNotSeize"=Yes}
   | |       |     | |     "CFBundleIdentifier" =
"com.scmmicro.kext.kextscr33x"
   | |       |     | |     "IOClass" = "IOService"
   | |       |     | |     "bDeviceClass" = 0
   | |       |     | |     "bInterfaceProtocol" = 0
   | |       |     | |     "IOKitDebug" = 65535
   | |       |     | |     "bDeviceSubClass" = 0
   | |       |     | |     "IOProbeScore" = 100000
   | |       |     | |     "IOMatchCategory" = "IODefaultMatchCategory"
   | |       |     | |     "bInterfaceNumber" = 0
   | |       |     | |     "bInterfaceSubClass" = 0
   | |       |     | |     "idVendor" = 1254
   | |       |     | |     "bInterfaceClass" = 255
   | |       |     | |     "IOProviderClass" = "IOUSBInterface"
   | |       |     | |     "bcdDevice" = 1287
   | |       |     | |   }
   | |       |     | |
   | |       |     | +-o IOUSBUserClientInit  <class
IOUSBUserClientInit, !registered, !matched, active, busy 0, retain
count 4>
   | |       |     |     {
   | |       |     |       "IOMatchCategory" = "IOUSBUserClientInit"
   | |       |     |       "IOProbeScore" = 9000
   | |       |     |       "IOClass" = "IOUSBUserClientInit"
   | |       |     |       "IOProviderClass" = "IOUSBInterface"
   | |       |     |       "CFBundleIdentifier" =
"com.apple.iokit.IOUSBUserClient"
   | |       |     |       "IOProviderMergeProperties" =
{"IOUserClientClass"="IOUSBInterfaceUserClient","IOCFPlugInTypes"={"2d9786c6-9ef3-11d4-ad51-000a27052861"="I$
   | |       |     |     }
   | |       |     |
   | |       |     +-o IOUSBUserClientInit  <class
IOUSBUserClientInit, !registered, !matched, active, busy 0, retain
count 4>
   | |       |     |   {
   | |       |     |     "IOMatchCategory" = "IOUSBUserClientInit"
   | |       |     |     "IOProbeScore" = 9000
   | |       |     |     "IOClass" = "IOUSBUserClientInit"
   | |       |     |     "IOProviderClass" = "IOUSBDevice"
   | |       |     |     "CFBundleIdentifier" =
"com.apple.iokit.IOUSBUserClient"
   | |       |     |     "IOProviderMergeProperties" =
{"IOUserClientClass"="IOUSBDeviceUserClient","IOCFPlugInTypes"={"9dc7b780-9ec0-11d4-a54f-000a27052861"="IOUSBF$
   | |       |     |   }
   | |       |     |
   | |       |     +-o IOUSBDeviceUserClient  <class
IOUSBDeviceUserClient, !registered, !matched, active, busy 0, retain
count 5>
   | |       |         {
   | |       |         }
   | |       |

--------------------ioreg_fail-------------

Any help/lead in this regard will be of great help to me.

Thx a lot
Joe
 _______________________________________________
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



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.