EasyManua.ls Logo

NXP Semiconductors UM11490 - Bluetooth Debugging; Bluetooth protocol debugging

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
5 Bluetooth debugging
This section details the Bluetooth Protocol and Driver Debugging using hcidump, btmon
and dmesg logs.
5.1 Bluetooth protocol debugging
5.1.1 Capture the HCI logs using hcidump
Follow these steps to capture the HCI logs between the i.MX 8M Quad EVK and NXP-
based module using hcidump utility.
Start capturing HCI logs
Use the following command to start the HCI logs and store these in the file. Use Frontline
Bluetooth Software tool to open the log file:
root@imx8mqevk:~# hcidump -i hci0 -w sample_hci.log &
[1] 770
HCI sniffer - Bluetooth packet analyzer ver 5.50
btsnoop version: 1 datalink type: 1002
device: hci0 snap_len: 1500 filter: 0x0
root@imx8mqevk:~#
Start capturing HCI logs and store in text format
root@imx8mqevk:~# hcidump -i hci0 -Xt | tee sample_hci.txt &
[3] 825
root@imx8mqevk:~#
Connect with a Bluetooth Classic/LE device
Refer to Section 4.1 "Scan, pair and connect to Bluetooth classic/Bluetooth LE"
Stop capturing HCI logs
root@imx8mqevk:~# killall hcidump
[1]+ Terminated hcidump -i hci0 -w sample_hci.log
root@imx8mqevk:~#
Copy the sample_hci.log file to the host PC
Note: hcidump utility may crash during testing. If this occurs, use btmon utility.
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
80 / 88

Table of Contents

Related product manuals