Network-Manager
is a native Ubuntu Snappy connection manager. The application can be used to configure the Edge Gateway so that it's automatically-detected and connected to the network. The application can be used to configure multiple network devices.
A command-line utility nmcli is included with Network-Manager
to support non-graphical user interface configurations.
Table 1. Operating-mode
values for WLAN and BluetoothProvides the operating-mode values for WLAN and Bluetooth.
Operating mode value
Wi-Fi station
BT/BLE modes supported
softAP
Clients supported by softAP
1
X
N/A
N/A
1
N/A
X
32
13
X
Dual (BT classic and BTLE)
N/A
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
Pre-requirements (for Debian-only, not required on Ubuntu Core OS).
sudo apt-get install bluez bluez-tools
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
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:
[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
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.
Then, create a new instance of terminal to send data, for example, a new instance of ssh.
$ echo "test" > /dev/rfcomm0
NOTE: The rfcomm command is not available in this command. If required, you can copy the binary to the Edge Gateway from an AMD64-based system running Ubuntu 16.04 or above.
Data is not available for the Topic
Please provide ratings (1-5 stars).
Please provide ratings (1-5 stars).
Please provide ratings (1-5 stars).
Please select whether the article was helpful or not.
Comments cannot contain these special characters: <>()\