在嵌入的Linux设备上运行librextxserial.so

发布于 2025-01-22 04:40:08 字数 377 浏览 2 评论 0原文

我目前正在尝试连接一个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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

舟遥客 2025-01-29 04:40:08

我找到了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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文