I am writing code to communicate with a smart card on Windows 7. The sample code that accompanies the card is developed on the linux
environment. I have installed Mingw and Msys the Linux minimal system.
我正在编写代码来与Windows 7上的智能卡进行通信。该卡附带的示例代码是在linux环境下开发的。我已经安装了Mingw和Msys Linux最小系统。
The correct command to get the reader name on the linux environment is pcsc_scan
. But using this command is neither recognised by the Msys command prompt nor the Windows console.
在linux环境中获取读者姓名的正确命令是pcsc_scan。但Msys命令提示符和Windows控制台都不能识别使用此命令。
I know that Winscard can be used to list all readers. But is there a way to get the pcsc_scan
command to work on Windows. Or is there a command for that on the Windows environment? I will appreciate your help.
我知道Winscard可以用来列出所有读者。但有没有办法让pcsc_scan命令在Windows上运行。或者Windows环境中是否有命令?我将非常感谢你的帮助。
2 个解决方案
#1
1
From the Ubuntu man page for pcsc_scan:
从pcsc_scan的Ubuntu手册页:
pcsc_scan is a program that regularly scans every PC/SC readers connected to the host
pcsc_scan是一个定期扫描连接到主机的每个PC / SC读卡器的程序
Key idea: pcsc_scan is a program and is compiled for linux and will therefore not run on Windows. (It's also either not a part of Mingw or Msys min or your path is incorrect. To double check, run a disk search for a file named pcsc_scan.)
关键思想:pcsc_scan是一个程序,是为linux编译的,因此不能在Windows上运行。 (它也不是Mingw或Msys min的一部分,或者你的路径不正确。要仔细检查,请运行磁盘搜索名为pcsc_scan的文件。)
If you can't locate pcsc_scan in Mingw or Msys then you will need either an equivalent of pcsc_scan for Windows or some other utility like this Java Smart Card Explorer which happens to actually be cross-platform.
如果您无法在Mingw或Msys中找到pcsc_scan,那么您将需要相当于用于Windows的pcsc_scan或其他实用程序,例如实际上跨平台的Java Smart Card Explorer。
#2
0
Maybe the package pcsc-sdkxxx can give you some information. Look at www.springcard.com/en/download/sdks
也许包pcsc-sdkxxx可以为您提供一些信息。请访问www.springcard.com/en/download/sdks
In the package the program pcscmon have a similar functionality.
在程序包中,程序pcscmon具有类似的功能。
#1
1
From the Ubuntu man page for pcsc_scan:
从pcsc_scan的Ubuntu手册页:
pcsc_scan is a program that regularly scans every PC/SC readers connected to the host
pcsc_scan是一个定期扫描连接到主机的每个PC / SC读卡器的程序
Key idea: pcsc_scan is a program and is compiled for linux and will therefore not run on Windows. (It's also either not a part of Mingw or Msys min or your path is incorrect. To double check, run a disk search for a file named pcsc_scan.)
关键思想:pcsc_scan是一个程序,是为linux编译的,因此不能在Windows上运行。 (它也不是Mingw或Msys min的一部分,或者你的路径不正确。要仔细检查,请运行磁盘搜索名为pcsc_scan的文件。)
If you can't locate pcsc_scan in Mingw or Msys then you will need either an equivalent of pcsc_scan for Windows or some other utility like this Java Smart Card Explorer which happens to actually be cross-platform.
如果您无法在Mingw或Msys中找到pcsc_scan,那么您将需要相当于用于Windows的pcsc_scan或其他实用程序,例如实际上跨平台的Java Smart Card Explorer。
#2
0
Maybe the package pcsc-sdkxxx can give you some information. Look at www.springcard.com/en/download/sdks
也许包pcsc-sdkxxx可以为您提供一些信息。请访问www.springcard.com/en/download/sdks
In the package the program pcscmon have a similar functionality.
在程序包中,程序pcscmon具有类似的功能。