1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我的代码:
public STReader LowLevel; LowLevel = new STReader(); boolean res = LowLevel.connect(); java.util.List< byte []> uidList; IEMVCard卡=新的IEMVCard(); 而(真) { 尝试{ uidList = LowLevel.getTransceiveInterface()。inventory(RFReaderInterface.InventoryMode.NFC_TYPE_4A); if(!uidList.isEmpty()){ 的System.out.println( '检测到');打破; catch(Throwable ex){ ex.printStackTrace(); 退卡; } 我用VISA用不同的EMV卡试试。 它适用于某些卡但不适用于其他卡 - 只是没有检测到它们。 否则,轮询选项卡中的ST25R3911B Discovery.exe会看到所有这些卡,它们都是相同的类型 - ISO14443-A! 为什么这样? 附:您可以根据ST25R3911DISCOComm.dll而不是Java ST25 SDK为我提供示例用法 以上来自于谷歌翻译 以下为原文 My code: public STReader LowLevel; LowLevel = new STReader(); boolean res = LowLevel.connect();java.util.List IEMVCard card = new IEMVCard(); while (true) { try { uidList = LowLevel.getTransceiveInterface().inventory(RFReaderInterface.InventoryMode.NFC_TYPE_4A); if (!uidList.isEmpty()) { System.out.println('Detected');break; }} catch (Throwable ex) { ex.printStackTrace(); return card; } }I trying it with different EMV cards by VISA. It works with some cards but not works with another ones - just not detects them. Otherwise, ST25R3911B Discovery.exe in Polling tab sees all these cards and they all are same type - ISO14443-A! Why so? P.S. You can just give me sample usage based on ST25R3911DISCOComm.dll instead of Java ST25 SDK |
|
相关推荐
1个回答
|
|
你好伊万,
谢谢你的提问。 什么版本的 您使用的是ST25R3911B Discovery.exe程序吗? 您是否已经知道要检测并失败的卡的UID?它们是4,7或10字节长吗?你能给我们一个UID格式的例子吗? ST25 SDK包含一个独立于读者的RF库。如您的代码摘录所示,每个读者必须提供RFReaderInterface实现。 ST25 SDK中提供的STReader库包含ST25R3911B-DISCO板的实现。 Java本机接口(JNI)用于库与本机ST25R3911 dll交互。 JNI使用自己的防冲突算法,与原生ST25R3911固件不同。所以这已经是一个区别。 ST25 SDK的1.0.1版专注于ST25系列的标签。它尚未使用EMV卡进行测试,但如果这些标签符合ISO和NFC论坛协议,则基本发现应该起作用。 今天,ST25 SDK和ST Reader实现仅支持ISO15693和ISO14443-A协议。 ISO 14443-B(用于某些EMV卡)尚未涵盖。因此,基于ISO 14443-B的EMV卡不会响应库存请求。 但是,您在邮件中提到所有卡都是Iso14443-A类型。 您可以尝试改变卡与阅读器天线的距离。该 ST25R3911B Discovery.exe程序以最有效的方式调整阅读器。这种调整不是通过ST25 SDK实现完成的,可能导致读取器校准错误。 有关信息,我们正在重写JNI以提供更好的Iso14443-A支持。这可以改善EMV卡检测。 几周后再次检查SDK.Cheers的新版本。 以上来自于谷歌翻译 以下为原文 Hello Ivan, Thanks for your question. What version of the ST25R3911B Discovery.exe program are you using? Do you already know the UIDs of the cards that you are trying to detect and fail? Are they 4, 7 or 10 byte long? Could you please give us an example of UID format? The ST25 SDK contains a RF library that is independent from readers. As shown in your code excerpt, each reader must provide a RFReaderInterface implementation. The STReader library provided in the ST25 SDK contains an implementation for the ST25R3911B-DISCO board. A Java Native Interface (JNI) is used for the library to interact with the native ST25R3911 dll. The JNI uses its own anti-collision algorithm, different from the native ST25R3911 firmware. So this is already one difference. Version 1.0.1 of the ST25 SDK focuses on tags from the ST25 family. It has not been tested with EMV cards but basic discovery should function if those tags follow ISO and NFC Forum protocols. Today, only ISO15693 and ISO14443-A protocols are supported by the ST25 SDK and the ST Reader implementation. ISO 14443-B (used in some EMV cards) is not yet covered. So EMV cards based on ISO 14443-B will not respond to the inventory request. However you mention in your mail that all cards are of type Iso14443-A. You can try varying the distance of the cards to the reader's antenna. The ST25R3911B Discovery.exe programs tunes the reader in the most efficient way. This tuning is not done with the ST25 SDK implementation and may result in a bad reader calibration. For information, we are in the process of rewriting the JNI to provide better Iso14443-A support. This may improve EMV cards detection. Check again in a few weeks for a new version of the SDK.Cheers. |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2733 浏览 1 评论
3241 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1810 浏览 1 评论
3650 浏览 6 评论
6038 浏览 21 评论
1339浏览 4评论
201浏览 3评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
350浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
443浏览 2评论
STM32处理增量式编码器Z信号如何判断中断是正转的还是反向转的?
274浏览 2评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-24 00:05 , Processed in 2.236208 second(s), Total 77, Slave 61 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号