EasyManua.ls Logo

NXP Semiconductors UM11490 - Bluetooth classic;Bluetooth LE features and configurations; Scan, pair and connect to Bluetooth classic;Bluetooth LE

NXP Semiconductors UM11490
88 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
NXP Semiconductors
UM11490
Feature Configuration Guide for NXP-based Wireless Modules on i.MX 8M Quad EVK
4 Bluetooth classic/Bluetooth LE features and configurations
4.1 Scan, pair and connect to Bluetooth classic/Bluetooth LE
This section describes the configuration steps to scan, pair and connect with a
Remote Bluetooth device from NXP-based wireless module. BlueZ Stack provides the
bluetoothctl command line utility to connect with a Remote Bluetooth device.
Use the following steps to scan, pair and connect the remote Bluetooth Classic/Bluetooth
Low Energy device using bluetoothctl utility.
Start bluetoothctl
Start bluetoothctl to interact with the Bluetooth daemon from the command line:
root@imx8mqevk:~# bluetoothctl
Agent registered
[bluetooth]#
Authenticate
Since the pairing procedure will involve authentication by PIN, it is required to register
with an authentication agent. The agent handles the PIN prompt:
[bluetooth]# agent on
Agent is already registered
[bluetooth]# default-agent
Default agent request successful
Start scanning
Run the following command to start scanning for remote Bluetooth Classic/Bluetooth LE
device(s).
[bluetooth]# scan on
Discovery started
[CHG] Controller 00:50:43:24:34:F7 Discovering: yes
[NEW] Device B4:F5:00:31:CB:4E Moto E
Stop scanning
Stop the scanning and check for available remote Bluetooth Classic/Bluetooth LE
device(s) for pairing.
[bluetooth]# scan off
Discovery stopped
[CHG] Controller 00:50:43:24:34:F7 Discovering: no
[bluetooth]# devices
Device B4:F5:00:31:CB:4E Moto E
[bluetooth]#
UM11490 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2021. All rights reserved.
User manual Rev. 2 — 29 January 2021
47 / 88

Table of Contents

Related product manuals