Linux provides alternative ways to support and use network devices. Bluetooth is one of them. Personal Area Network Daemon or simply pand is popular daemon used to manage Bluetooth. Below is we will look at some usage of pand . Keep in mind that all of these commands requires access rights to the Bluetooth device or simply root privileges.
Linux提供了支持和使用网络设备的替代方法。 蓝牙就是其中之一。 Personal Area Network守护程序或简单地pand是用于管理蓝牙的流行守护程序。 下面是我们看一下pand的一些用法。 请记住,所有这些命令都需要对Bluetooth设备的访问权限或仅具有root用户特权。
列出活动的PAN连接 (List Active PAN Connections)
Currently, available PAN connections can be listed with the -l
parameter like below.
当前,可用的PAN连接可以使用-l
参数列出,如下所示。
$ pand -l
OR
要么
$ pand --show
OR
要么
$ pand --list
收听PAN连接 (Listen For PAN Connections)
To create a PAN the Bluetooth should listen for PAN connections. The following command will listen for PAN connections.
要创建PAN,蓝牙应侦听PAN连接。 以下命令将监听PAN连接。
$ pand -s
OR
要么
$ pand --listen
搜索并连接到PAN (Search And Connect To A PAN)
While using client mode Bluetooth devices should search the existing PAN’s and connect to the PAN. --search
options can be used to search and connect to a PAN
在使用客户端模式时,蓝牙设备应搜索现有的PAN并连接到PAN。 --search
选项可用于搜索并连接到PAN
$ pand --search
OR
要么
$ pand -Q
杀死PAN连接 (Kill PAN Connection)
To quit PAN connection the connections should be killed by specifying the base address.
要退出PAN连接,应通过指定基地址来终止连接。
$ pand --kill aaaaaabbbbbb
OR
要么
$ pand -k aaaaaabbbbbb
杀死所有PAN连接 (Kill All PAN Connections)
PAN connection can be stopped without specifying base addresses one by one. This will kill and stop all existing PAN connections.
无需一一指定基地址就可以停止PAN连接。 这将杀死并停止所有现有的PAN连接。
$ pand -K
OR
要么
$ pand --killall