Git Product home page Git Product logo

Comments (5)

LudovicRousseau avatar LudovicRousseau commented on August 21, 2024

https://pcsclite.apdu.fr/#support

I need, at least, a pcscd trace log.

from pcsc-tools.

AbbassFaytaroony avatar AbbassFaytaroony commented on August 21, 2024

Sure! Here is the trace of :

  • reset command,
  • then one of the apdus causing the problem: A0 A4 00 00 02 3F 00
00000008 winscard.c:431:SCardConnect() Active Protocol: T=0
00000009 winscard.c:456:SCardConnect() hCard Identity: 4d390b76
00000007 winscard.c:518:SCardConnect() UnrefReader() count was: 2
00000009 winscard_svc.c:510:ContextThread() CONNECT rv=0x0 for client 14
09410248 winscard_svc.c:362:ContextThread() Received command: RECONNECT from client 14
00000032 winscard.c:532:SCardReconnect() Attempting reconnect to token.
00000009 readerfactory.c:848:RFReaderInfoById() RefReader() count was: 1
00000011 ifdhandler.c:2658:IFDHICCPresence() usb:072f/90cc:libudev:0:/dev/bus/usb/002/011 (lun: 0)
00000011 -> 000000 65 00 00 00 00 00 0C 00 00 00 
00000605 <- 000000 81 00 00 00 00 00 0C 00 00 00 
00000026 ifdhandler.c:2868:IFDHICCPresence() Card present
00000010 ifdhandler.c:1391:IFDHPowerICC() action: Reset, usb:072f/90cc:libudev:0:/dev/bus/usb/002/011 (lun: 0)
00000010 -> 000000 62 00 00 00 00 00 0D 01 00 00 
00150444 <- 000000 80 06 00 00 00 00 0D 00 00 00 3B 04 A2 13 10 91 
00000036 winscard.c:612:SCardReconnect() Reset complete.
00000008 Card ATR: 3B 04 A2 13 10 91 
00000007 prothandler.c:108:PHSetProtocol() Attempting PTS to T=0
00000007 ifdhandler.c:846:IFDHSetProtocolParameters() protocol T=0, usb:072f/90cc:libudev:0:/dev/bus/usb/002/011 (lun: 0)
00000007 ifdhandler.c:933:IFDHSetProtocolParameters() Specific mode
00000009 ifdhandler.c:1271:IFDHSetProtocolParameters() Communication timeout: 232133 ms
00000006 commands.c:2353:SetParameters() length: 5 bytes
00000011 -> 000000 61 05 00 00 00 00 0E 00 00 00 11 00 00 0A 00 
00000553 <- 000000 82 00 00 00 00 00 0E 40 00 00 
00000023 commands.c:2379:SetParameters Command not supported or not allowed
00000008 winscard.c:731:SCardReconnect() Active Protocol: T=0
00000006 winscard.c:821:SCardReconnect() UnrefReader() count was: 2
00000007 winscard_svc.c:529:ContextThread() RECONNECT rv=0x0 for client 14
00000150 winscard_svc.c:362:ContextThread() Received command: CMD_GET_READERS_STATE from client 14
00000148 winscard_svc.c:362:ContextThread() Received command: STATUS from client 14
00000035 readerfactory.c:848:RFReaderInfoById() RefReader() count was: 1
00000007 winscard.c:1300:SCardStatus() UnrefReader() count was: 2
00000009 winscard_svc.c:629:ContextThread() STATUS rv=0x0 for client 14
00000099 winscard_svc.c:362:ContextThread() Received command: CMD_GET_READERS_STATE from client 14
00000073 winscard_svc.c:362:ContextThread() Received command: STATUS from client 14
00000022 readerfactory.c:848:RFReaderInfoById() RefReader() count was: 1
00000005 winscard.c:1300:SCardStatus() UnrefReader() count was: 2
00000006 winscard_svc.c:629:ContextThread() STATUS rv=0x0 for client 14
07487762 winscard_svc.c:362:ContextThread() Received command: TRANSMIT from client 14
00000048 readerfactory.c:848:RFReaderInfoById() RefReader() count was: 1
00000011 winscard.c:1595:SCardTransmit() Send Protocol: T=0
00000013 APDU: A0 A4 00 00 02 3F 00 
00000011 ifdhandler.c:1622:IFDHTransmitToICC() usb:072f/90cc:libudev:0:/dev/bus/usb/002/011 (lun: 0)
00000009 commands.c:1854:CmdXfrBlockTPDU_T0() T=0: 7 bytes
00000020 -> 000000 6F 07 00 00 00 00 0F 00 00 00 A0 A4 00 00 02 3F 00 
01072103 <- 000000 80 00 00 00 00 00 0F 40 FE 00 
00000035 commands.c:1604:CCID_Receive Card absent or mute
00000008 SW: 
00000006 ifdwrapper.c:543:IFDTransmit() Card not transacted: 612
00000006 winscard.c:1620:SCardTransmit() Card not transacted: 0x80100016
00000005 winscard.c:1640:SCardTransmit() UnrefReader() count was: 2
00000008 winscard_svc.c:682:ContextThread() TRANSMIT rv=0x80100016 for client 14
00000243 winscard_svc.c:362:ContextThread() Received command: DISCONNECT from client 14
00000041 readerfactory.c:848:RFReaderInfoById() RefReader() count was: 1
00000011 winscard.c:878:SCardDisconnect() Active Contexts: 1
00000008 winscard.c:879:SCardDisconnect() dwDisposition: 0
00000009 winscard.c:1014:SCardDisconnect() powerState: POWER_STATE_GRACE_PERIOD
00000011 ifdhandler.c:511:IFDHGetCapabilities() tag: 0xFB2, usb:072f/90cc:libudev:0:/dev/bus/usb/002/011 (lun: 0)
00000008 winscard.c:1027:SCardDisconnect() Stopping polling thread
00000007 ifdhandler.c:476:IFDHStopPolling() usb:072f/90cc:libudev:0:/dev/bus/usb/002/011 (lun: 0)
00000065 winscard.c:1040:SCardDisconnect() UnrefReader() count was: 2
00000018 winscard_svc.c:547:ContextThread() DISCONNECT rv=0x0 for client 14

from pcsc-tools.

LudovicRousseau avatar LudovicRousseau commented on August 21, 2024

The reader reported "Card absent or mute".
It looks like you are using a memory card https://smartcard-atr.apdu.fr/parse?ATR=3B+04+A2+13+10+91, and not a smart card. I am not surprised it does not work.

from pcsc-tools.

AbbassFaytaroony avatar AbbassFaytaroony commented on August 21, 2024

Thank you for your response! The thing keeping me thinking about it is that the link you sent indicated the cards might be PM2P Chipkarte SLE 4442, Code FFFFFF exactly as the supplier indicated. Any other thought or hint?

from pcsc-tools.

LudovicRousseau avatar LudovicRousseau commented on August 21, 2024

Try to find documentation about using MEMORY cards with your reader.
Maybe your reader can use it.

from pcsc-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.