【发布时间】:2013-04-16 09:23:03
【问题描述】:
我有一个 UHF 无源 RFID 阅读器,阅读器附带 C# SDK.dll,它符合国际 ISO 18000\EPC G2 标准。
问题是当我尝试使用提供的 SDK 作为 TCP 客户端连接到阅读器时,我能够连接到阅读器,但是当我通过 LLRP 接口连接到阅读器时,我无法连接
我正在开发 java RFID 应用程序。但解决方案也可以来自其他语言。
下面是详细代码
import org.llrp.ltk.net.LLRPConnection;
import org.llrp.ltk.net.LLRPConnectionAttemptFailedException;
import org.llrp.ltk.net.LLRPConnector;
import org.llrp.ltk.net.LLRPEndpoint;
import org.llrp.ltk.types.LLRPMessage;
public class LLRPEndPoint implements LLRPEndpoint {
public static void main(String[] args) {
LLRPEndPoint endpoint = new LLRPEndPoint();
}
public LLRPEndPoint() {
LLRPConnection connection = new LLRPConnector(this, "192.168.0.100",5000);
try {
((LLRPConnector) connection).connect();
} catch (LLRPConnectionAttemptFailedException e1) {
e1.printStackTrace();
System.exit(1);
}
}
@Override
public void errorOccured(String message) {
System.out.println(message);
}
@Override
public void messageReceived(LLRPMessage message) {
System.out.println(message.getResponseType());
}
}
当我运行这个程序时,我得到 LLRPConnectionAttemptFailedException。我有阅读器在 IP 192.186.0.100 的端口 5000 上运行。我使用 SDK 提供的阅读器验证了这一点
简而言之,我只是想要一种使用 LLRP 与 reader 一起工作的方法。
提前致谢
【问题讨论】:
-
"紧急:" 太本地化了!将来请考虑离开您的时间限制或聘请顾问。
-
您应该详细说明您所面临的问题以获得答案。
-
为我的语言道歉并感谢您的回复。