[Pcsclite-muscle] CCID_Receive Card absent or mute

Casey Tickes casey
Tue Sep 12 14:17:29 PDT 2017


Thank you for the reply. I have tried running in T=0 protocol and receive a
different set of error messages (logs are pasted below). After the
PowerDown action, my reader becomes unresponsive and no usb commands can
make contact. This reader's product description states that it will work
with the Mifare Plus SE tags.

The Identive AMID2U Multi ISO reader I am using is this reader:
http://pcsclite.alioth.debian.org/ccid/shouldwork.html#0x1FFA0x000C that is
listed on the CCID list of readers.


00003386 configfile.l:245:DBGetReaderListDir() Parsing conf directory:
/etc/reader.conf.d
00002150 configfile.l:298:DBGetReaderList() Parsing conf file:
/etc/reader.conf.d/libccidtwin
00001767 configfile.l:257:DBGetReaderListDir() Skipping non regular file: ..
00001669 configfile.l:257:DBGetReaderListDir() Skipping non regular file: .
00000999 pcscdaemon.c:518:main() pcsc-lite 1.8.4 daemon ready.
00027625 hotplug_libudev.c:260:get_driver() Looking for a driver for VID:
0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00005316 hotplug_libudev.c:260:get_driver() Looking for a driver for VID:
0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
00003972 hotplug_libudev.c:260:get_driver() Looking for a driver for VID:
0x1FC9, PID: 0x0107, path: /dev/bus/usb/001/002
00001861 hotplug_libudev.c:260:get_driver() Looking for a driver for VID:
0x1FC9, PID: 0x0107, path: /dev/bus/usb/001/002
00001284 hotplug_libudev.c:311:HPAddDevice() Adding USB device: NXP Pegoda
2 N
00002228 readerfactory.c:941:RFInitializeReader() Attempting startup of NXP
Pegoda 2 N (1105FF10) 00 00 using /usr/lib/pcsc/drivers/ifd-
ccid.bundle/Contents/Linux/libcc
00004171 readerfactory.c:831:RFBindFunctions() Loading IFD Handler 3.0
00002021 ifdhandler.c:1832:init_driver() Driver version: 1.4.7
00015163 ifdhandler.c:1873:init_driver() LogLevel from LIBCCID_ifdLogLevel:
0x000F
00001794 ifdhandler.c:83:CreateChannelByNameOrChannel() Lun: 0, device:
usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002
00001055 ccid_usb.c:180:OpenUSBByName() Reader index: 0, Device:
usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002
00001190 ccid_usb.c:212:OpenUSBByName() interface_number: 0
00000891 ccid_usb.c:228:OpenUSBByName() Using: /usr/lib/pcsc/drivers/ifd-
ccid.bundle/Contents/Info.plist
00008471 ccid_usb.c:246:OpenUSBByName() ifdManufacturerString: Ludovic
Rousseau (ludovic.rousseau at free.fr)
00001308 ccid_usb.c:247:OpenUSBByName() ifdProductString: Generic CCID
driver
00000545 ccid_usb.c:248:OpenUSBByName() Copyright: This driver is protected
by terms of the GNU Lesser General Public License version 2.1, or (at your
option) any later
00004223 ccid_usb.c:375:OpenUSBByName() Checking device: 1/2
00001165 ccid_usb.c:430:OpenUSBByName() Trying to open USB bus/device: 1/2
00001551 ccid_usb.c:521:OpenUSBByName() Found Vendor/Product: 1FC9/0107
(NXP Pegoda 2 N)
00000903 ccid_usb.c:523:OpenUSBByName() Using USB bus/device: 1/2
00000485 ccid_usb.c:1041:ControlUSB() request: 0x03
00003730 receive: 00 2A 00 00 01 54 00 00 02 A8 00 00 05 50 01 00 0B A0 02
00
00000888 ccid_usb.c:1003:get_data_rates() Got 5 data rates but was
expecting 106
00000572 ccid_usb.c:1021:get_data_rates() declared: 10752 bps
00000475 ccid_usb.c:1021:get_data_rates() declared: 21505 bps
00000331 ccid_usb.c:1021:get_data_rates() declared: 43010 bps
00000290 ccid_usb.c:1021:get_data_rates() declared: 86021 bps
00000901 ccid_usb.c:1021:get_data_rates() declared: 172043 bps
00002715 ccid_usb.c:1090:InterruptRead() before (0)
00101335 ccid_usb.c:1132:InterruptRead() after (0) (2)
00001231 -> 000000 65 00 00 00 00 00 00 00 00 00
00012932 <- 000000 81 00 00 00 00 00 00 02 00 00
00000803 ifdhandler.c:353:IFDHGetCapabilities() tag: 0xFB3,
usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002 (lun: 0)
00000556 readerfactory.c:299:RFAddReader() Using the reader polling thread
00000639 ifdhandler.c:1695:IFDHICCPresence()
usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002
(lun: 0)
00000496 -> 000000 65 00 00 00 00 00 01 00 00 00
00012717 <- 000000 81 00 00 00 00 00 01 02 00 00
00000689 ifdhandler.c:1813:IFDHICCPresence() Card absent
00000936 ifdhandler.c:353:IFDHGetCapabilities() tag: 0xFAE,
usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002 (lun: 0)
00000671 ifdhandler.c:441:IFDHGetCapabilities() Reader supports 1 slot(s)
00000828 readerfactory.c:1267:RFWaitForReaderInit() Waiting init for
reader: NXP Pegoda 2 N (1105FF10) 00 00
00001742 ifdhandler.c:1695:IFDHICCPresence()
usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002
(lun: 0)
00000943 -> 000000 65 00 00 00 00 00 02 00 00 00
00008564 readerfactory.c:1267:RFWaitForReaderInit() Waiting init for
reader: NXP Pegoda 2 N (1105FF10) 00 00
00004465 <- 000000 81 00 00 00 00 00 02 02 00 00
00000696 ifdhandler.c:1813:IFDHICCPresence() Card absent
00000506 ifdhandler.c:1695:IFDHICCPresence()
usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002
(lun: 0)
00000464 -> 000000 65 00 00 00 00 00 03 00 00 00
00012715 <- 000000 81 00 00 00 00 00 03 02 00 00
00000811 ifdhandler.c:1813:IFDHICCPresence() Card absent
00000528 ifdhandler.c:282:IFDHPolling()
usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002
(lun: 0) 600000 ms
00000464 ccid_usb.c:1090:InterruptRead() before (0)
03991881 winscard_msg_srv.c:230:ProcessEventsServer() Common channel packet
arrival
00000158 winscard_msg_srv.c:242:ProcessEventsServer()
ProcessCommonChannelRequest detects: 9
00000030 pcscdaemon.c:93:SVCServiceRunLoop() A new context thread creation
is requested: 9
00001511 winscard_svc.c:297:ContextThread() Thread is started:
dwClientID=9, threadContext @0x121b330
00000869 winscard_svc.c:315:ContextThread() Received command: CMD_VERSION
from client 9
00000687 winscard_svc.c:327:ContextThread() Client is protocol version 4:2
00000507 winscard_svc.c:347:ContextThread() CMD_VERSION rv=0x0 for client 9
00000707 winscard_svc.c:315:ContextThread() Received command:
ESTABLISH_CONTEXT from client 9
00000576 winscard.c:193:SCardEstablishContext() Establishing Context:
0x2103CA62
00000354 winscard_svc.c:408:ContextThread() ESTABLISH_CONTEXT rv=0x0 for
client 9
00000535 winscard_svc.c:315:ContextThread() Received command:
CMD_GET_READERS_STATE from client 9
00000933 winscard_svc.c:315:ContextThread() Received command:
CMD_WAIT_READER_STATE_CHANGE from client 9
00001222 winscard_svc.c:315:ContextThread() Received command:
CMD_STOP_WAITING_READER_STATE_CHANGE from client 9
00000574 winscard_svc.c:389:ContextThread()
CMD_STOP_WAITING_READER_STATE_CHANGE
rv=0x0 for client 9
00000589 winscard_svc.c:315:ContextThread() Received command:
CMD_GET_READERS_STATE from client 9
04410005 winscard_svc.c:315:ContextThread() Received command:
CMD_GET_READERS_STATE from client 9
00001151 winscard_svc.c:315:ContextThread() Received command:
CMD_GET_READERS_STATE from client 9
00000890 winscard_svc.c:315:ContextThread() Received command:
CMD_GET_READERS_STATE from client 9
00000720 winscard_svc.c:315:ContextThread() Received command:
CMD_WAIT_READER_STATE_CHANGE from client 9
00048322 winscard_msg_srv.c:230:ProcessEventsServer() Common channel packet
arrival
00000138 winscard_msg_srv.c:242:ProcessEventsServer()
ProcessCommonChannelRequest detects: 10
00000028 pcscdaemon.c:93:SVCServiceRunLoop() A new context thread creation
is requested: 10
00001418 winscard_svc.c:297:ContextThread() Thread is started:
dwClientID=10, threadContext @0x1210e38
00000754 winscard_svc.c:315:ContextThread() Received command: CMD_VERSION
from client 10
00004125 winscard_svc.c:327:ContextThread() Client is protocol version 4:2
00001036 winscard_svc.c:347:ContextThread() CMD_VERSION rv=0x0 for client 10
00000610 winscard_svc.c:315:ContextThread() Received command:
ESTABLISH_CONTEXT from client 10
00000431 winscard.c:193:SCardEstablishContext() Establishing Context:
0x51454FA9
00000315 winscard_svc.c:408:ContextThread() ESTABLISH_CONTEXT rv=0x0 for
client 10
00000417 winscard_svc.c:315:ContextThread() Received command:
CMD_GET_READERS_STATE from client 10
00000745 winscard_svc.c:315:ContextThread() Received command:
CMD_GET_READERS_STATE from client 10
00000529 winscard_svc.c:315:ContextThread() Received command:
CMD_WAIT_READER_STATE_CHANGE from client 10
19152304 ccid_usb.c:1132:InterruptRead() after (0) (0)
00000169 NotifySlotChange: 50 03
00000077 ifdhandler.c:1695:IFDHICCPresence()
usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002
(lun: 0)
00000089 -> 000000 65 00 00 00 00 00 04 00 00 00
00012610 <- 000000 81 00 00 00 00 00 04 00 00 00
00000149 ifdhandler.c:1813:IFDHICCPresence() Card present
00000075 ifdhandler.c:1695:IFDHICCPresence()
usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002
(lun: 0)
00000085 -> 000000 65 00 00 00 00 00 05 00 00 00
00012076 <- 000000 81 00 00 00 00 00 05 00 00 00
00000781 ifdhandler.c:1813:IFDHICCPresence() Card present
00000195 ifdhandler.c:1114:IFDHPowerICC() action: PowerUp,
usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002 (lun: 0)
00000140 -> 000000 62 00 00 00 00 00 06 01 00 00
00021903 <- 000000 80 0C 00 00 00 00 06 00 00 00 3B 87 80 01 C1 05 21 30 00
77 C1 65
00002562 eventhandler.c:372:EHStatusHandlerThread() powerState:
POWER_STATE_POWERED
00001710 eventhandler.c:387:EHStatusHandlerThread() Card inserted into NXP
Pegoda 2 N (1105FF10) 00 00
00000635 winscard_svc.c:731:MSGSignalClient() Signal client: 9
00001812 winscard_svc.c:734:MSGSignalClient() SIGNAL rv=0x0 for client 9
00000684 winscard_svc.c:315:ContextThread() Received command:
CMD_GET_READERS_STATE from client 9
00000896 winscard_svc.c:315:ContextThread() Received command:
CMD_WAIT_READER_STATE_CHANGE from client 9
00000967 winscard_svc.c:731:MSGSignalClient() Signal client: 10
00000106 winscard_svc.c:734:MSGSignalClient() SIGNAL rv=0x0 for client 10
00000748 winscard_svc.c:315:ContextThread() Received command:
CMD_GET_READERS_STATE from client 10
00005337 winscard_svc.c:315:ContextThread() Received command:
CMD_GET_READERS_STATE from client 10
00003803 Card ATR: 3B 87 80 01 C1 05 21 30 00 77 C1 65
00000137 ifdhandler.c:282:IFDHPolling()
usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002
(lun: 0) 5000 ms
00000059 ccid_usb.c:1090:InterruptRead() before (0)
00006006 winscard_svc.c:315:ContextThread() Received command:
CMD_WAIT_READER_STATE_CHANGE from client 10
00040104 winscard_msg_srv.c:230:ProcessEventsServer() Common channel packet
arrival
00000282 winscard_msg_srv.c:242:ProcessEventsServer()
ProcessCommonChannelRequest detects: 11
00000073 pcscdaemon.c:93:SVCServiceRunLoop() A new context thread creation
is requested: 11
00002887 winscard_svc.c:297:ContextThread() Thread is started:
dwClientID=11, threadContext @0x121a6d0
00001945 winscard_svc.c:315:ContextThread() Received command: CMD_VERSION
from client 11
00001489 winscard_svc.c:327:ContextThread() Client is protocol version 4:2
00001536 winscard_svc.c:347:ContextThread() CMD_VERSION rv=0x0 for client 11
00000944 winscard_svc.c:315:ContextThread() Received command:
ESTABLISH_CONTEXT from client 11
00000165 winscard.c:193:SCardEstablishContext() Establishing Context:
0x65E90921
00002258 winscard_svc.c:408:ContextThread() ESTABLISH_CONTEXT rv=0x0 for
client 11
00001150 winscard_svc.c:315:ContextThread() Received command: CONNECT from
client 11
00001513 winscard.c:235:SCardConnect() Attempting Connect to NXP Pegoda 2 N
(1105FF10) 00 00 using protocol: 1
00000081 winscard.c:328:SCardConnect() powerState: POWER_STATE_INUSE
00000062 prothandler.c:87:PHSetProtocol() Attempting PTS to T=0
00000073 ifdhandler.c:663:IFDHSetProtocolParameters() protocol T=0,
usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002 (lun: 0)
00000113 towitoko/atr.c:329:ATR_GetDefaultProtocol() default protocol: T=0
00000065 ifdhandler.c:1020:IFDHSetProtocolParameters() Communication
timeout: 193444 ms
00000056 commands.c:2115:SetParameters() length: 5 bytes
00000097 -> 000000 61 05 00 00 00 00 07 00 00 00 11 00 00 0A 00
00075355 <- 000000 82 00 00 00 00 00 07 40 05 00
00001591 commands.c:2141:SetParameters Invalid slot number
00001152 winscard.c:402:SCardConnect() Active Protocol: T=0
00000580 winscard.c:422:SCardConnect() hCard Identity: 28c849e
00001080 winscard_svc.c:449:ContextThread() CONNECT rv=0x0 for client 11
00016068 ccid_usb.c:1132:InterruptRead() after (0) (0)
00000075 NotifySlotChange: 50 02
00000040 ifdhandler.c:1695:IFDHICCPresence()
usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002
(lun: 0)
00000046 -> 000000 65 00 00 00 00 00 08 00 00 00
00013196 <- 000000 81 00 00 00 00 00 08 02 00 00
00000118 ifdhandler.c:1813:IFDHICCPresence() Card absent
00000041 eventhandler.c:325:EHStatusHandlerThread() Card Removed From NXP
Pegoda 2 N (1105FF10) 00 00
00000043 winscard_svc.c:731:MSGSignalClient() Signal client: 9
00000027 winscard_svc.c:734:MSGSignalClient() SIGNAL rv=0x0 for client 9
00000118 winscard_svc.c:731:MSGSignalClient() Signal client: 10
00000034 winscard_svc.c:734:MSGSignalClient() SIGNAL rv=0x0 for client 10
00000084 ifdhandler.c:282:IFDHPolling()
usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002
(lun: 0) 600000 ms
00000033 ccid_usb.c:1090:InterruptRead() before (0)
00002104 winscard_svc.c:315:ContextThread() Received command:
CMD_GET_READERS_STATE from client 9
00003670 winscard_svc.c:315:ContextThread() Received command:
CMD_GET_READERS_STATE from client 10
00000254 winscard_svc.c:315:ContextThread() Received command:
CMD_WAIT_READER_STATE_CHANGE from client 9
00001876 winscard_svc.c:315:ContextThread() Received command:
CMD_GET_READERS_STATE from client 10
00003517 winscard_svc.c:315:ContextThread() Received command:
CMD_WAIT_READER_STATE_CHANGE from client 10
00002835 winscard_svc.c:315:ContextThread() Received command: TRANSMIT from
client 11
00003641 winscard_svc.c:604:ContextThread() TRANSMIT rv=0x80100069 for
client 11
00009267 winscard_svc.c:315:ContextThread() Received command: DISCONNECT
from client 11
00001317 winscard.c:812:SCardDisconnect() Active Contexts: 1
00000075 winscard.c:813:SCardDisconnect() dwDisposition: 2
00000052 ifdhandler.c:1695:IFDHICCPresence()
usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002
(lun: 0)
00000050 -> 000000 65 00 00 00 00 00 09 00 00 00
00012655 <- 000000 81 00 00 00 00 00 09 02 00 00
00000106 ifdhandler.c:1813:IFDHICCPresence() Card absent
00000048 ifdhandler.c:1695:IFDHICCPresence()
usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002
(lun: 0)
00000045 -> 000000 65 00 00 00 00 00 0A 00 00 00
00012531 <- 000000 81 00 00 00 00 00 0A 02 00 00
00000098 ifdhandler.c:1813:IFDHICCPresence() Card absent
00000037 winscard.c:887:SCardDisconnect() Error resetting card.
00000043 winscard.c:978:SCardDisconnect() powerState:
POWER_STATE_GRACE_PERIOD
00000034 ifdhandler.c:353:IFDHGetCapabilities() tag: 0xFB2,
usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002 (lun: 0)
00000027 winscard.c:992:SCardDisconnect() Stoping polling thread
00000027 ifdhandler.c:318:IFDHStopPolling()
usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002
(lun: 0)
00001447 winscard_svc.c:486:ContextThread() DISCONNECT rv=0x0 for client 11
00000245 ccid_usb.c:1132:InterruptRead() after (0) (3)
00000094 ccid_usb.c:1147:InterruptRead() InterruptRead (1/2): Success
00400259 eventhandler.c:458:EHStatusHandlerThread() powerState:
POWER_STATE_POWERED
00000196 ifdhandler.c:1695:IFDHICCPresence()
usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002
(lun: 0)
00000105 -> 000000 65 00 00 00 00 00 0B 00 00 00
00012901 <- 000000 81 00 00 00 00 00 0B 02 00 00
00000160 ifdhandler.c:1813:IFDHICCPresence() Card absent
00000074 winscard_svc.c:731:MSGSignalClient() Signal client: 9
00000055 winscard_svc.c:734:MSGSignalClient() SIGNAL rv=0x0 for client 9
00000178 winscard_svc.c:731:MSGSignalClient() Signal client: 10
00000062 winscard_svc.c:734:MSGSignalClient() SIGNAL rv=0x0 for client 10
00000143 ifdhandler.c:282:IFDHPolling()
usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002
(lun: 0) 5000 ms
00000062 ccid_usb.c:1090:InterruptRead() before (0)
00001300 winscard_svc.c:315:ContextThread() Received command:
CMD_GET_READERS_STATE from client 9
00000312 winscard_svc.c:315:ContextThread() Received command:
CMD_GET_READERS_STATE from client 10
00000760 winscard_svc.c:315:ContextThread() Received command:
CMD_WAIT_READER_STATE_CHANGE from client 10
00000239 winscard_svc.c:315:ContextThread() Received command:
CMD_WAIT_READER_STATE_CHANGE from client 9
00001885 ccid_usb.c:1132:InterruptRead() after (0) (0)
00000081 NotifySlotChange: 50 02
00000894 ifdhandler.c:1695:IFDHICCPresence()
usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002
(lun: 0)
00000101 -> 000000 65 00 00 00 00 00 0C 00 00 00
00058728 <- 000000 81 00 00 00 00 00 0C 00 00 00
00000164 ifdhandler.c:1813:IFDHICCPresence() Card present
00000080 ifdhandler.c:1114:IFDHPowerICC() action: PowerDown,
usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002 (lun: 0)
00001267 -> 000000 63 00 00 00 00 00 0D 00 00 00
59959945 winscard_svc.c:315:ContextThread() Received command:
CMD_STOP_WAITING_READER_STATE_CHANGE from client 9
00002407 winscard_svc.c:315:ContextThread() Received command:
CMD_STOP_WAITING_READER_STATE_CHANGE from client 10
00001859 winscard_svc.c:389:ContextThread()
CMD_STOP_WAITING_READER_STATE_CHANGE
rv=0x0 for client 10
00000305 winscard_svc.c:389:ContextThread()
CMD_STOP_WAITING_READER_STATE_CHANGE
rv=0x0 for client 9
00000768 winscard_svc.c:315:ContextThread() Received command:
CMD_GET_READERS_STATE from client 9
00000257 winscard_svc.c:315:ContextThread() Received command:
CMD_GET_READERS_STATE from client 10
00000901 winscard_svc.c:315:ContextThread() Received command:
CMD_WAIT_READER_STATE_CHANGE from client 9
00000230 winscard_svc.c:315:ContextThread() Received command:
CMD_WAIT_READER_STATE_CHANGE from client 10

On Tue, Aug 29, 2017 at 12:57 AM, Ludovic Rousseau <
ludovic.rousseau at gmail.com> wrote:

> Hello,
>
> 2017-08-28 23:13 GMT+02:00 Casey Tickes <casey at gingerbreadshed.com>:
>
>> I am attempting to connect to a Mifare Plus SE 1K chip with a Pegoda N
>> reader, using node-pcsclite. My application runs fine with an Identiv
>> AMID2U Multi ISO reader, but I receive the following error when using the
>> Pegoda reader. Also, this reader is working fine with Mifare ULs and Mifare
>> Classic 1Ks.
>>
>
> Your card is able to use T=0 and T=1 communication protocols.
> http://smartcard-atr.appspot.com/parse?ATR=3B878001C10521300077C165
>
> You can try to force the use of T=0 in your SCardConnect() (or equivalent
> in node-pcsclite) call to see if you get better results.
>
>
> I can't find the "Identiv AMID2U Multi ISO" reader in my list. What is
> the output of lsusb when this reader is connected?
>
> Bye
>
> --
>  Dr. Ludovic Rousseau
>
> _______________________________________________
> Pcsclite-muscle mailing list
> Pcsclite-muscle at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
>



-- 


*Casey Tickes Senior Product Innovation Engineer Gingerbread Shed*
O: 877-886-3314 x737
www.gingerbreadshed.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pcsclite-muscle/attachments/20170912/b47f9d0b/attachment-0001.html>



More information about the pcsclite-muscle mailing list