查看: 1411|回复: 0
收起左侧

树莓派连接USB设备,udev什么的搞不懂。。

2014-6-24 23:35:23 | 显示全部楼层 |阅读模式
有台光谱仪在桌面Ubuntu下可以连接,并且能读出数据但是树莓派上连接不上。求助。。。
这台仪器的说明文档里for linux 用户的步骤:
perform the following steps.
- Copy the file 10-oceanoptics.rules from the "drivers" directory into /etc/udev/rules.d
- restart udev. On Fedora and similar linux distros, you can restart
udev with the following commands:
udevcontrol reload_rules
udevstart
If this does not successfully restart udev, you will need to reboot.
- Make certain the "libusb" library has been installed on your system. It should be a relatively recent
version of the library. You can use the "apt" utility to check if it has been installed.

我在Ubuntu上按照上面的步骤复制.rules到rules.d文件夹然后执行重启udev给出的两条指令的时候出错但是重启以后就连接上了。

树莓派上是raspibian,所有的步骤跟在ubuntu上一样。是不是raspibian上udev要设置一下呢?还是下面一步没有libusb库呢?这个该如何查看,本人实在是linux菜鸟,windows上移植java才开始接触linux。


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关注我们,了解更多

官方微信

服务时间:10:00-16:00

13714503811

公司地址:深圳市龙岗区南湾街道东门头路8号

Copyright © 2012-2020 Powered by 树莓派论坛 2019.4  粤ICP备15075382号-1
快速回复 返回列表 返回顶部