我一直试图通过 wammu 将我的 Nokia E65 手机连接到我的 Ubuntu 12.04。我尝试了“自动搜索手机”选项。但我在屏幕上收到如下错误消息:
Wammu is now searching for phone:
You don't have permissions for /dev/ttyS0 device!
You don't have permissions for /dev/ttyS1 device!
You don't have permissions for /dev/ttyS2 device!
You don't have permissions for /dev/ttyS3 device!
You don't have permissions for /dev/ttyS4 device!
You don't have permissions for /dev/ttyS5 device!
You don't have permissions for /dev/ttyS6 device!
You don't have permissions for /dev/ttyS7 device!
You don't have permissions for /dev/ttyS8 device!
You don't have permissions for /dev/ttyS9 device!
You don't have permissions for /dev/ttyS10 device!
You don't have permissions for /dev/ttyS11 device!
You don't have permissions for /dev/ttyS12 device!
You don't have permissions for /dev/ttyS13 device!
You don't have permissions for /dev/ttyS14 device!
You don't have permissions for /dev/ttyS15 device!
You don't have permissions for /dev/ttyS16 device!
You don't have permissions for /dev/ttyS17 device!
You don't have permissions for /dev/ttyS18 device!
You don't have permissions for /dev/ttyS19 device!
You don't have permissions for /dev/ttyACM0 device!
You don't have permissions for /dev/ttyACM1 device!
Discovering Bluetooth devices using PyBluez
Could not access Bluetooth subsystem (error accessing bluetooth device)
All finished, found 0 phones
No phone has been found!
这是什么意思?如何解决此错误?
提前致谢。
答案1
这意味着您的用户没有权限访问 /dev(设备)。
尝试:sudo wammu
获取访问设备的权限
您可以做的另一件事是将您的用户放入蓝牙组系统中
答案2
在 ubuntu 12.04 中,所有串行设备都属于 dialout 组。您可以通过以下方式快速验证
ls -a /dev/ttyS*
你应该看到类似
crw-rw---- 1 root dialout 4, 64 May 30 18:22 /dev/ttyS0
crw-rw---- 1 root dialout 4, 65 May 30 18:22 /dev/ttyS1
crw-rw---- 1 root dialout 4, 74 May 30 18:22 /dev/ttyS10
crw-rw---- 1 root dialout 4, 75 May 30 18:22 /dev/ttyS11
crw-rw---- 1 root dialout 4, 76 May 30 18:22 /dev/ttyS12
crw-rw---- 1 root dialout 4, 77 May 30 18:22 /dev/ttyS13
crw-rw---- 1 root dialout 4, 78 May 30 18:22 /dev/ttyS14
crw-rw---- 1 root dialout 4, 79 May 30 18:22 /dev/ttyS15
crw-rw---- 1 root dialout 4, 80 May 30 18:22 /dev/ttyS16
crw-rw---- 1 root dialout 4, 81 May 30 18:22 /dev/ttyS17
假设你的用户名是,keith
你可以通过执行以下命令将自己添加到该组
sudo adduser keith dialout
重新启动并重试。一切都应该正常工作。
答案3
将设备端口权限更改为:
chmod a+rw /dev/ttyXXX