Users Guide
注: 有关蓝牙配对的更多信息,请参阅 https://blog.bluetooth.com/bluetooth-pairing-part-4。
[bluetooth]# agent on
[bluetooth]# default-agent
[bluetooth]# pairable on
[bluetooth]# pair XX:XX:XX:XX:XX:XX <MAC Address of Device to Pair>
[bluetooth]# connect XX:XX:XX:XX:XX:XX [CHG] Device XX:XX:XX:XX:XX:XX Connected: yes
[bluetooth]# exit
4. 配置 SPP。
服务器设备
$ bluez.sdptool add --channel=22 SP
$ ./rfcomm -r listen /dev/rfcomm0 22
Waiting for connection on channel 22
Connection from XX:XX:XX:XX:XX:XX to /dev/rfcomm0 <These lines will be seen when client
comes>
Press CTRL-C for hangup
然后,创建新的终端实例,以屏蔽蓝牙串行上的数据。
$ cat /dev/rfcomm0
客户端设备
$ bluez.sdptool add --channel=22 SP
$ ./rfcomm -r connect /dev/rfcomm0 YY:YY:YY:YY:YY:YY 22
然后,创建新的终端实例以发送数据,例如,新的 ssh 实例。
$ echo "test" > /dev/rfcomm0
注: rfcomm 命令在此命令中不可用。如果需要,您可以将二进制文件从运行 Ubuntu 16.04 或更高版本且基于 AMD64 的系统
复制到 Edge Gateway。
安全性
可信平台模块 (TPM)
注: 有关 TPM 的更多信息,请参阅 https://developer.ubuntu.com/en/snappy/guides/security-whitepaper/。
TPM 仅在安装了 TPM 硬件的产品上以及那些提供 Snappy 增强型安全支持的设备上受支持。可在 BIOS 中配置 TPM 开/关设置,并
且可在操作系统中管理。
如果 TPM 处于关闭状态,设备节点 (/dev/tpm0) 不存在。
(plano)ubuntu@localhost:~$ ls /dev/tpm0
ls: cannot access /dev/tpm0: No such file or directory
如果 TPM 处于打开状态,那么设备节点 (/dev/tpm0) 存在。
(plano)ubuntu@localhost:~$ ls /dev/tpm0
/dev/tpm0
Watchdog Timer (WDT)
注: 有关 Watchdog Timer (WDT) 命令的更多信息,请参阅 www.sat.dundee.ac.uk/~psc/watchdog/Linux-Watchdog.html。
Dell 建议您默认启用 WDT,以激活故障保险电路。Snappy 是一个兼容 WDT 的操作系统,提供检测并从故障或意外崩溃中恢复的功
能。
设置操作系统
55