使用raspberry pi usb与其他设备进行通信

时间:2014-11-25 00:15:22

标签: java linux arm raspberry-pi raspbian

我正在尝试使用raspberry pi usb与其他设备进行通信,但是在尝试打开端口时遇到了问题。来自控制台的跟踪日志如下:

11/24/14 13:56:48.641 + DLSUSBScale: Scale claim
11/24/14 13:56:48.641 + DLSUSBScale: Device claim
11/24/14 13:56:48.641 + DLSObjectFactory: createPort()
11/24/14 13:56:48.642 - DLSObjectFactory: createPort() - LinuxUSB
11/24/14 13:56:48.642 + DLSUsbJavax: openPort
11/24/14 13:56:48.642 + DLSUsbQuery: findDevice
11/24/14 13:56:48.642 = DLSUsbQuery: gettingUsbServices
11/24/14 13:56:48.643 *ERR* DLSUsbJavax: 0x80000001, Error while loading shared library libJavaxUsb.so: /home/pi/Desktop/dls/javaPOS/SupportJars/libJavaxUsb.so: /home/pi/Desktop/dls/JavaPOS/SupportJars/libJavaxUsb.so: cannot open shared object file: No such file or directory (Possible cause: can't load IA 32-bit .so on a ARM-bit platform)
11/24/14 13:56:48.643 - DLSUsbJavax: openPort: false
11/24/14 13:56:48.643 *ERR* DLSUSBScale: Error opening port
11/24/14 13:56:48.643 *ERR* DLSScaleService: claim: 1110x80000004, Port open error
11/24/14 13:56:53.949 + DLSScaleService: getDataEventEnabled: false
11/24/14 13:56:53.949 - DLSScaleService: getDataEventEnabled
11/24/14 13:56:53.950 + DLSScaleService: getAsyncMode: false
11/24/14 13:56:53.950 - DLSScaleService: getAsyncMode

我不知道问题是什么,我怎么能搞清楚。

有人建议我在Linux系统中加载USB-HID驱动程序(在我的情况下,它是raspbian)。但我不知道在哪里下载USB-HID驱动程序以及如何加载它。

顺便说一句,我通过以下方式在raspberry pi上安装Java:

sudo apt-get update && sudo apt-get install oracle-java7-jdk

谢谢你的帮助!

0 个答案:

没有答案