Sending APDU with winscard.dll (PC/SC) without a smart card connected

后端 未结 4 952
盖世英雄少女心
盖世英雄少女心 2021-01-26 16:38

I\'m trying to send APDU commands to the card reader itself instead of the Smart Card. The test command I\'m using turns the RF field on and off.

This commands sends ove

4条回答
  •  Happy的楠姐
    2021-01-26 16:59

    I was able to do so using perl binding with those parameters :

    #connect witouth card in
    $hCard = new Chipcard::PCSC::Card($hContext, $ReadersList[0], $Chipcard::PCSC::SCARD_SHARE_DIRECT, $Chipcard::PCSC::SCARD_PROTOCOL_RAW);  
    
    #send any adpu
    $cmd = Chipcard::PCSC::ascii_to_array("FF 00 40 F0 04 05 05 03 03");
    $hCard->Transmit($cmd);
    

提交回复
热议问题