cardreader notes

Fluffy and I got together yesterday and made a flyer for the silicon user’s group.  I fucked around with the cardreader he had bought agess ago.  I finally got the cardreader to recognize cards using the openct software.  Here are some notes with my plight.  I had to compile openct 0.6.6 from source because 0.6.5 didn’t support his cardreader.

Oh yeah, the cards we’re interested in are an  sle4442.

From hotplug script test as recommended by http://www.opensc-project.org/openct/wiki/TroubleShooting:

root@ender:/home/ghing/download/openct-0.6.6# cat /root/testplug.log

...

/root/testplug: usb
declare -x ACTION="add"
declare -x DEVPATH="/devices/pci0000:00/0000:00:07.2/usb1/1-1"
declare -x HOME="/"
declare -x OLDPWD
declare -x PATH="/sbin:/bin:/usr/sbin:/usr/bin"
declare -x PHYSDEVBUS="usb"
declare -x PHYSDEVDRIVER="usb"
declare -x PWD="/"
declare -x SEQNUM="1185"
declare -x SHLVL="1"
declare -x SUBSYSTEM="usb"

/root/testplug: usb
declare -x ACTION="add"
declare -x DEVICE="/proc/bus/usb/001/009"
declare -x DEVPATH="/devices/pci0000:00/0000:00:07.2/usb1/1-1/1-1:1.0"
declare -x HOME="/"
declare -x INTERFACE="0/0/0"
declare -x MODALIAS="usb:v072Fp0001d0200dc00dsc00dp00ic00isc00ip00"
declare -x OLDPWD
declare -x PATH="/sbin:/bin:/usr/sbin:/usr/bin"
declare -x PHYSDEVBUS="usb"
declare -x PRODUCT="72f/1/200"
declare -x PWD="/"
declare -x SEQNUM="1186"
declare -x SHLVL="1"
declare -x SUBSYSTEM="usb"
declare -x TYPE="0/0/0"

Based on this info, I then tried to attach the device manually:

root@ender:/home/ghing/download/openct-0.6.6# openct-control attach /proc/bus/usb/001/009 usb:72f/1/200
No driver for this device

I then took a look at my /etc/openct.conf file and found the entry for the driver was listed as:

driver pertosmart1030 {
ids = {
usb:072f/0001,
usb:072f/8009,
};
};

I modified the entry to read like this:

driver pertosmart1030 {
ids = {
usb:072f/0001,
usb:72f/1/200,
usb:072f/8009,
};
};

And re-ran the above command.  It found the reader!

root@ender:/home/ghing/download/openct-0.6.6# openct-control -f /etc/openct.conf  status
No.   Name                         Info
===================================================
0   PertoSmart (AC1030, USB)     slot0: card present