在嵌入的Linux设备上运行librextxserial.so
我目前正在尝试连接一个RFID读取器单元。 提供的SDK在Java提供了一个测试项目。 在我的Windows系统上它确实有效。 但是,目标设备是嵌入式Linux设备。 我在Beaglebone Black(32位,Buster IoT Debian)和Raspberry Pi 3(64位,Manjaro和RaspberryPios)上进行了测试。 在这两种情况下,我都可以安装JDK(JDK8_U131),但无法启动测试项目。 在下图中,您可以看到错误消息。 raspberrypios上的错误,64位
是否有技巧?
谢谢!
I am currently trying to interface a RFID reader unit.
The provided SDK offers a test project in Java.
On my windows system it does work.
The target device, however, is an embedded Linux device.
I tested it on a BeagleBone Black (32 Bit, Buster IoT Debian) and a Raspberry Pi 3 (64 Bit, Manjaro and RaspberryPiOS).
In both cases, I am able to install the JDK (JDK8_u131) but cannot start the test project.
In the picture below you can see the error message.
error on raspberryPiOS, 64 Bit
Any tips?
Thx!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了Java中Windows的librextxserial方便,但是对于Linux,我为避免本机代码,为什么不只是使用
file> fileinputStream
/fileOutputstream
直接打开设备文件。在此之前,您必须初始化/bin/stty -f/dev/ttys1 Raw -echo 115200
I found libRXTXSerial convenient for Windows in Java, but for Linux to avoid native code, why not just opening the device file directly using
FileInputStream
/FileOutputStream
. Before doing that, you'd have to initialize with/bin/stty -F /dev/ttyS1 raw -echo 115200