Users Guide
Table 13. Operating-mode values for WLAN and Bluetooth (continued)
Operating mode value Wi-Fi station BT/BLE modes
supported
softAP Clients supported by
softAP
14 Dual (BT classic and
BTLE)
X 4
5 X BT Classic N/A
6 BT Classic X 32
Bluetooth Serial Port Profile (SPP)
Assumptions for MAC addresses of each BT adapter:
● BT MAC(MYCLIENT): XX:XX:XX:XX:XX:XX
● BT MAC(MYSERVER): YY:YY:YY:YY:YY:YY
1. Pre-requirements (for Debian-only, not required on Ubuntu Core OS).
sudo apt-get install bluez bluez-tools
2. Prepare to pair MYSERVER and 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. Pair with each other. As of Bluetooth v2.1, Secure Simple Pairing is a requirement, and offers three methods of pairing
devices, which are applicable on the Dell Gateway 3000 series:
● Just Works
● Numeric Comparison
● Passkey Entry
NOTE: For more information about blueetooth pairing, see 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. Configure SPP.
Server Device
$ 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
Then, create a new instance of terminal to screen the data over bluetooth serial.
$ cat /dev/rfcomm0
Client Device
$ bluez.sdptool add --channel=22 SP
$ ./rfcomm -r connect /dev/rfcomm0 YY:YY:YY:YY:YY:YY 22
56
Setting up the operating system