Users Guide
4. 验证操作模式。请参阅操作模式值表。
$ cat /sys/module/ven_rsi_sdio/parameters/dev_oper_mode
表. 9: WLAN 和蓝牙的操作模式值
操作模式值
Wi-Fi 站 BT/BLE 模式支持 softAP softAP 支持的客户端
1 X
不适用 不适用
1
不适用
X 32
13 X 双(BT classic 和
BTLE)
不适用
14 双(BT classic 和
BTLE)
X 4
5 X BT Classic
不适用
6 BT Classic X 32
蓝牙串行端口配置文件 (SPP)
每个 BT 适配器的 MAC 地址的假设条件:
● BT MAC(MYCLIENT):XX:XX:XX:XX:XX:XX
● BT MAC(MYSERVER):YY:YY:YY:YY:YY:YY
1. 前提条件(仅适用于 Debian,在 Ubuntu Core OS 上不需要)。
sudo apt-get install bluez bluez-tools
2. 准备配对 MYSERVER 和 MYCLIENT
$ sudo bluez.bluetoothctl -a
[bluetoothctl]# power on
[bluetooth]# discoverable on
[bluetooth]# scan on
[NEW] Device XX:XX:XX:XX:XX:XX MYCLIENT
[bluetooth]# scan off
3. 相互配对。对于 Bluetooth v2.1 和更低版本,安全简单配对是要求,并且提供三种设备配对方法,适用于 Dell Gateway 3000 系
列:
● 直接连接
● 数字比较
● 密钥条目
注: 有关蓝牙配对的更多信息,请参阅 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
设置操作系统
53