How to use Bluetooth and WiFi#
overlay-extra-smarc-pins.dtb
is required
For Bluetooth and/or Wifi, overlay-extra-smarc-pins.dtb
needs to
be configured through uEnv.txt.
See Configure base board and external hardware
for more details
Bluetooth#
You can connect to a device by issuing the commands below:
bluetoothctl power on
bluetoothctl --timeout 30 scan on
[NEW] Device AA:BB:CC:DD:EE:FF MyDevice
[NEW] Device 11:22:33:44:55:66 AnotherDevice
# select the MAC address of the bluetooth device you want to pair with
# e.g.
DEVICE_MAC_ADDRESS=AA:BB:CC:DD:EE:FF
bluetoothctl pair $DEVICE_MAC_ADDRESS
bluetoothctl connect $DEVICE_MAC_ADDRESS
If, later on, you want to reproduce an audio file (.mp3):
mpg123 audio_file.mp3
Audio#
The audio playback feature is implemented via PipeWire, along with its session manager WirePlumber. PipeWire replaces PulseAudio, and provides a CLI as well.
You can use pw-cli, to get information about devices and other PipeWire objects, run:
pw-cli info all
Or, for a shorter list of sinks and sources:
wpctl status
This lists provides the sinks/sources respective IDs, which can be used by pw-cli info to get specific device’s info:
pw-cli info DEVICE-ID
WiFi#
Run the following command, providing the network name (SSID) and passphrase:
wpa_passphrase "network-name" "network-passphrase" > /etc/wpa_network.conf
Then, connect to the network:
wpa_supplicant -B -i mlan0 -c /etc/wpa_network.conf