完善资料让更多小伙伴认识你,还能领取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. |
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1453 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1502 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3649 浏览 1 评论
3842 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2461 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
727浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
663浏览 5评论
710浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
941浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
745浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 09:38 , Processed in 0.708838 second(s), Total 72, Slave 55 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
8171