CCID_Receive Card absent or mute

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

CCID_Receive Card absent or mute

Casey Tickes
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.

CCID driver version: 1.4.7-1

pcsc-lite version 1.8.4.
Copyright (C) 1999-2002 by David Corcoran <[hidden email]>.
Copyright (C) 2001-2011 by Ludovic Rousseau <[hidden email]>.
Copyright (C) 2003-2004 by Damien Sauveron <[hidden email]>.
Report bugs to <[hidden email]>.
Enabled features: Linux arm-unknown-linux-gnueabihf serial usb libudev usbdropdir=/usr/lib/pcsc/drivers ipcdir=/var/run/pcscd configdir=/etc/reader.conf.d

Reader Name: NXP Pegoda 2 N (1105FF10)
OS: Debian GNU/Linux 7
Hardware: BeagleBone Black
Middleware: node-pcsclite 0.4.4
Smartcard: Mifare Plus SE 1K

Here is the pcscd log:

44953625 ccid_usb.c:1132:InterruptRead() after (0) (0)
00000164 NotifySlotChange: 50 03
00000078 ifdhandler.c:1695:IFDHICCPresence() usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002 (lun: 0)
00003472 -> 000000 65 00 00 00 00 00 13 00 00 00
00012248 <- 000000 81 00 00 00 00 00 13 00 00 00
00000149 ifdhandler.c:1813:IFDHICCPresence() Card present
00000078 ifdhandler.c:1695:IFDHICCPresence() usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002 (lun: 0)
00000086 -> 000000 65 00 00 00 00 00 14 00 00 00
00011853 <- 000000 81 00 00 00 00 00 14 00 00 00
00001754 ifdhandler.c:1813:IFDHICCPresence() Card present
00000151 ifdhandler.c:1114:IFDHPowerICC() action: PowerUp, usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002 (lun: 0)
00000099 -> 000000 62 00 00 00 00 00 15 01 00 00
00020451 <- 000000 80 0C 00 00 00 00 15 00 00 00 3B 87 80 01 C1 05 21 30 00 77 C1 65
00001760 eventhandler.c:372:EHStatusHandlerThread() powerState: POWER_STATE_POWERED
00001563 eventhandler.c:387:EHStatusHandlerThread() Card inserted into NXP Pegoda 2 N (1105FF10) 00 00
00000846 winscard_svc.c:731:MSGSignalClient() Signal client: 9
00000499 winscard_svc.c:734:MSGSignalClient() SIGNAL rv=0x0 for client 9
00000541 winscard_svc.c:315:ContextThread() Received command: CMD_GET_READERS_STATE from client 9
00000493 winscard_svc.c:315:ContextThread() Received command: CMD_WAIT_READER_STATE_CHANGE from client 9
00001970 winscard_svc.c:731:MSGSignalClient() Signal client: 10
00000138 winscard_svc.c:734:MSGSignalClient() SIGNAL rv=0x0 for client 10
00000479 winscard_svc.c:315:ContextThread() Received command: CMD_GET_READERS_STATE from client 10
00006148 winscard_svc.c:315:ContextThread() Received command: CMD_GET_READERS_STATE from client 10
00002759 Card ATR: 3B 87 80 01 C1 05 21 30 00 77 C1 65
00000127 ifdhandler.c:282:IFDHPolling() usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002 (lun: 0) 5000 ms
00000061 ccid_usb.c:1090:InterruptRead() before (0)
00003206 winscard_svc.c:315:ContextThread() Received command: CMD_WAIT_READER_STATE_CHANGE from client 10
00015388 winscard_msg_srv.c:230:ProcessEventsServer() Common channel packet arrival
00000345 winscard_msg_srv.c:242:ProcessEventsServer() ProcessCommonChannelRequest detects: 11
00000073 pcscdaemon.c:93:SVCServiceRunLoop() A new context thread creation is requested: 11
00007584 winscard_svc.c:297:ContextThread() Thread is started: dwClientID=11, threadContext @0xcb6d0
00001872 winscard_svc.c:315:ContextThread() Received command: CMD_VERSION from client 11
00000724 winscard_svc.c:327:ContextThread() Client is protocol version 4:2
00000924 winscard_svc.c:347:ContextThread() CMD_VERSION rv=0x0 for client 11
00000574 winscard_svc.c:315:ContextThread() Received command: ESTABLISH_CONTEXT from client 11
00000503 winscard.c:193:SCardEstablishContext() Establishing Context: 0x33A66535
00000058 winscard_svc.c:408:ContextThread() ESTABLISH_CONTEXT rv=0x0 for client 11
00001530 winscard_svc.c:315:ContextThread() Received command: CONNECT from client 11
00000170 winscard.c:235:SCardConnect() Attempting Connect to NXP Pegoda 2 N (1105FF10) 00 00 using protocol: 3
00000043 winscard.c:328:SCardConnect() powerState: POWER_STATE_INUSE
00000034 prothandler.c:87:PHSetProtocol() Attempting PTS to T=1
00000042 ifdhandler.c:663:IFDHSetProtocolParameters() protocol T=1, usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002 (lun: 0)
00000072 towitoko/atr.c:329:ATR_GetDefaultProtocol() default protocol: T=0
00000036 PPS: Sending request: FF 01 FE
00000047 -> 000000 6F 03 00 00 00 00 16 00 00 00 FF 01 FE
00806672 <- 000000 80 00 00 00 00 00 16 40 FE 00
00002169 commands.c:1393:CCID_Receive Card absent or mute
00002055 ifdhandler.c:887:IFDHSetProtocolParameters() PPS_Exchange Failed
00000625 prothandler.c:103:PHSetProtocol() PTS failed (605), using T=0
00000109 winscard_svc.c:449:ContextThread() CONNECT rv=0x80100066 for client 11
00020293 ccid_usb.c:1132:InterruptRead() after (0) (0)
00000186 NotifySlotChange: 50 02
00000081 ifdhandler.c:1695:IFDHICCPresence() usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002 (lun: 0)
00000087 -> 000000 65 00 00 00 00 00 17 00 00 00
00013515 <- 000000 81 00 00 00 00 00 17 02 00 00
00000161 ifdhandler.c:1813:IFDHICCPresence() Card absent
00000069 eventhandler.c:325:EHStatusHandlerThread() Card Removed From NXP Pegoda 2 N (1105FF10) 00 00
00000066 winscard_svc.c:731:MSGSignalClient() Signal client: 9
00000052 winscard_svc.c:734:MSGSignalClient() SIGNAL rv=0x0 for client 9
00000173 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) 600000 ms
00000061 ccid_usb.c:1090:InterruptRead() before (0)
00000831 winscard_svc.c:315:ContextThread() Received command: CMD_GET_READERS_STATE from client 9
00000564 winscard_svc.c:315:ContextThread() Received command: CMD_GET_READERS_STATE from client 10
00001546 winscard_svc.c:315:ContextThread() Received command: CMD_GET_READERS_STATE from client 10
00000344 winscard_svc.c:315:ContextThread() Received command: CMD_WAIT_READER_STATE_CHANGE from client 9
00005804 winscard_svc.c:315:ContextThread() Received command: CMD_WAIT_READER_STATE_CHANGE from client 10
00160101 ccid_usb.c:1132:InterruptRead() after (0) (0)
00000169 NotifySlotChange: 50 03
00000076 ifdhandler.c:1695:IFDHICCPresence() usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002 (lun: 0)
00000087 -> 000000 65 00 00 00 00 00 18 00 00 00
00012658 <- 000000 81 00 00 00 00 00 18 00 00 00
00000152 ifdhandler.c:1813:IFDHICCPresence() Card present
00000074 ifdhandler.c:1695:IFDHICCPresence() usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002 (lun: 0)
00000085 -> 000000 65 00 00 00 00 00 19 00 00 00
00012103 <- 000000 81 00 00 00 00 00 19 00 00 00
00000162 ifdhandler.c:1813:IFDHICCPresence() Card present
00000079 ifdhandler.c:1114:IFDHPowerICC() action: PowerUp, usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002 (lun: 0)
00000089 -> 000000 62 00 00 00 00 00 1A 01 00 00
00020201 <- 000000 80 0C 00 00 00 00 1A 00 00 00 3B 87 80 01 C1 05 21 30 00 77 C1 65
00000169 eventhandler.c:372:EHStatusHandlerThread() powerState: POWER_STATE_POWERED
00000063 eventhandler.c:387:EHStatusHandlerThread() Card inserted into NXP Pegoda 2 N (1105FF10) 00 00
00000057 winscard_svc.c:731:MSGSignalClient() Signal client: 9
00000051 winscard_svc.c:734:MSGSignalClient() SIGNAL rv=0x0 for client 9
00000505 winscard_svc.c:315:ContextThread() Received command: CMD_GET_READERS_STATE from client 9
00000481 winscard_svc.c:315:ContextThread() Received command: CMD_WAIT_READER_STATE_CHANGE from client 9
00001944 winscard_svc.c:731:MSGSignalClient() Signal client: 10
00000115 winscard_svc.c:734:MSGSignalClient() SIGNAL rv=0x0 for client 10
00000691 winscard_svc.c:315:ContextThread() Received command: CMD_GET_READERS_STATE from client 10
00003856 winscard_svc.c:315:ContextThread() Received command: CMD_GET_READERS_STATE from client 10
00003806 winscard_svc.c:315:ContextThread() Received command: CMD_WAIT_READER_STATE_CHANGE from client 10
00000879 Card ATR: 3B 87 80 01 C1 05 21 30 00 77 C1 65
00000099 ifdhandler.c:282:IFDHPolling() usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002 (lun: 0) 5000 ms
00000058 ccid_usb.c:1090:InterruptRead() before (0)
00003742 winscard_svc.c:315:ContextThread() Received command: CONNECT from client 11
00000155 winscard.c:235:SCardConnect() Attempting Connect to NXP Pegoda 2 N (1105FF10) 00 00 using protocol: 3
00000068 winscard.c:328:SCardConnect() powerState: POWER_STATE_INUSE
00000061 prothandler.c:87:PHSetProtocol() Attempting PTS to T=1
00000074 ifdhandler.c:663:IFDHSetProtocolParameters() protocol T=1, usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002 (lun: 0)
00000070 towitoko/atr.c:329:ATR_GetDefaultProtocol() default protocol: T=0
00000060 PPS: Sending request: FF 01 FE
00000088 -> 000000 6F 03 00 00 00 00 1B 00 00 00 FF 01 FE
00806487 <- 000000 80 00 00 00 00 00 1B 40 FE 00
00000159 commands.c:1393:CCID_Receive Card absent or mute
00000076 ifdhandler.c:887:IFDHSetProtocolParameters() PPS_Exchange Failed
00000069 prothandler.c:103:PHSetProtocol() PTS failed (605), using T=0
00000064 winscard_svc.c:449:ContextThread() CONNECT rv=0x80100066 for client 11
00030148 ccid_usb.c:1132:InterruptRead() after (0) (0)
00000161 NotifySlotChange: 50 02
00000077 ifdhandler.c:1695:IFDHICCPresence() usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002 (lun: 0)
00000086 -> 000000 65 00 00 00 00 00 1C 00 00 00
00013661 <- 000000 81 00 00 00 00 00 1C 02 00 00
00000162 ifdhandler.c:1813:IFDHICCPresence() Card absent
00000073 eventhandler.c:325:EHStatusHandlerThread() Card Removed From NXP Pegoda 2 N (1105FF10) 00 00
00000065 winscard_svc.c:731:MSGSignalClient() Signal client: 9
00000050 winscard_svc.c:734:MSGSignalClient() SIGNAL rv=0x0 for client 9
00000185 winscard_svc.c:731:MSGSignalClient() Signal client: 10
00000059 winscard_svc.c:734:MSGSignalClient() SIGNAL rv=0x0 for client 10
00000145 ifdhandler.c:282:IFDHPolling() usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002 (lun: 0) 600000 ms
00000061 ccid_usb.c:1090:InterruptRead() before (0)

Thank you, any help would be greatly appreciated.

--
Casey Tickes
Senior Product Innovation Engineer
Gingerbread Shed

O: 877-886-3314 x737
www.gingerbreadshed.com

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: CCID_Receive Card absent or mute

Ludovic Rousseau
Hello,

2017-08-28 23:13 GMT+02:00 Casey Tickes <[hidden email]>:
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.

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
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: CCID_Receive Card absent or mute

Casey Tickes
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 ([hidden email])
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 <[hidden email]> wrote:
Hello,

2017-08-28 23:13 GMT+02:00 Casey Tickes <[hidden email]>:
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.

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
[hidden email]
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

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: CCID_Receive Card absent or mute

Ludovic Rousseau
Hello,

2017-09-12 23:17 GMT+02:00 Casey Tickes <[hidden email]>:
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.

In the logs you sent you are using a different reader: a NXP Pegoda 2 N reader

I can't find issues in the logs with this reader.

Bye

--
 Dr. Ludovic Rousseau

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: CCID_Receive Card absent or mute

Casey Tickes
Correct, I am using the NXP Pegoda reader. In my first message I stated that these same Mifare Plus SE tags are working with the Identiv reader, but not the Pegoda either in T=0 or T=1 protocols. I am also receiving this message when running scriptor:

Can't allocate Chipcard::PCSC::Card object: Card is unresponsive.

Are there some config options I need to check for the reader? The Pegoda reader currently works for Mifare UL and Classics.

Thank you,

Casey


On Wed, Sep 13, 2017 at 1:06 AM, Ludovic Rousseau <[hidden email]> wrote:
Hello,

2017-09-12 23:17 GMT+02:00 Casey Tickes <[hidden email]>:
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.

In the logs you sent you are using a different reader: a NXP Pegoda 2 N reader

I can't find issues in the logs with this reader.

Bye

--
 Dr. Ludovic Rousseau

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
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

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle
Reply | Threaded
Open this post in threaded view
|

Re: CCID_Receive Card absent or mute

Ludovic Rousseau
Hello,

2017-09-13 19:52 GMT+02:00 Casey Tickes <[hidden email]>:
Correct, I am using the NXP Pegoda reader. In my first message I stated that these same Mifare Plus SE tags are working with the Identiv reader, but not the Pegoda either in T=0 or T=1 protocols. I am also receiving this message when running scriptor:

Can't allocate Chipcard::PCSC::Card object: Card is unresponsive.


In your first log you use T=1 and get the error:
0000034 prothandler.c:87:PHSetProtocol() Attempting PTS to T=1
00000042 ifdhandler.c:663:IFDHSetProtocolParameters() protocol T=1, usb:1fc9/0107:libudev:0:/dev/bus/usb/001/002 (lun: 0)
00000072 towitoko/atr.c:329:ATR_GetDefaultProtocol() default protocol: T=0
00000036 PPS: Sending request: FF 01 FE
00000047 -> 000000 6F 03 00 00 00 00 16 00 00 00 FF 01 FE
00806672 <- 000000 80 00 00 00 00 00 16 40 FE 00
00002169 commands.c:1393:CCID_Receive Card absent or mute

In your second log you use T=0 (as I suggested) and get the error (I missed it):
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

It looks like the reader does not like the Mifare Plus SE tags.

Are there some config options I need to check for the reader? The Pegoda reader currently works for Mifare UL and Classics.

You can try to use the reader with a driver from NXP (like on Winwdows) to check it the Mifare Plus SE tags are working.

Bye

--
 Dr. Ludovic Rousseau

_______________________________________________
Pcsclite-muscle mailing list
[hidden email]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle