使用PHP PC/SC读取斯洛伐克eVRC智能卡返回6A82错误求助
斯洛伐克eVRC智能卡PC/SC读取问题:选择AID返回6A82(文件未找到)
我尝试在PHP中通过PC/SC读取斯洛伐克的eVRC车辆技术许可证。已成功连接智能卡,但发送选择AID的指令00A4040C0A0000004564556522D3031(对应斯洛伐克AID:A0000004564556522D3031)时,返回结果6A82(文件未找到)。
执行代码
$context = scard_establish_context(); $readers = scard_list_readers($context); $reader = $readers[0]; echo "Using reader: ", $reader, "\n"; $connection = scard_connect($context, $reader); var_dump($connection); // AID SK: A0000004564556522D3031 $CMD = "00A4040C0A0000004564556522D3031"; $res = scard_transmit($connection, $CMD); var_dump($res);
运行结果
Using reader: Generic Smart Card Reader Interface 0 resource(5) of type (PC/SC Connection) string(4) "6A82" File not found
环境信息
我使用XAMPP环境,PHP版本为7.4,采用php_pcsc.dll库(对应pecl的pcsc 0.5.1版本Windows包)。请问是否是指令有误或存在其他问题?望给予建议,谢谢。
内容的提问来源于stack exchange,提问作者user2095758
相关产品推荐
相关产品推荐

