Capture The Hci Logs Using Btmon - NXP Semiconductors UM11490 User Manual

Nxp-based wireless modules on i.mx 8m quad evk
Table of Contents

Advertisement

NXP Semiconductors

5.1.2 Capture the HCI Logs using btmon

UM11490
User manual
Feature Configuration Guide for NXP-based Wireless Modules on i.MX 8M Quad EVK
Follow these steps to capture the HCI logs between the i.MX 8M Quad EVK and NXP-
based wireless module using btmon utility.
Use the following command to start the HCI logs and store these in the file. You can use
Wireshark
tool and
Wireshark Software
root@imx8mqevk:~# btmon -w sample_hci.log &
[1] 780
Bluetooth monitor ver 5.50
= Note: Linux version 5.4.24-2.2.0+gd60d1df535b1 (aarch64)
0.926150
= Note: Bluetooth subsystem version 2.22
0.926156
= New Index: 00:50:43:24:34:F7 (Primary,UART,hci0)
[hci0] 0.926159
= Open Index: 00:50:43:24:34:F7
[hci0] 0.926161
= Index Info: 00:50:43:24:34:F7 (Marvell Technology Group Ltd.)
[hci0] 0.926162
@ MGMT Open: bluetoothd (privileged) version 1.14
{0x0001} 0.926164
@ MGMT Open: btmon (privileged) version 1.14
{0x0002} 0.926262
root@imx8mqevk:~#
Start capturing HCI logs and store in text format
root@imx8mqevk:~# btmon | tee sample_hci.txt &
[1] 780
Bluetooth monitor ver 5.50
= Note: Linux version 5.4.24-2.2.0+gd60d1df535b1 (aarch64)
0.926150
= Note: Bluetooth subsystem version 2.22
0.926156
= New Index: 00:50:43:24:34:F7 (Primary,UART,hci0)
[hci0] 0.926159
= Open Index: 00:50:43:24:34:F7
[hci0] 0.926161
= Index Info: 00:50:43:24:34:F7 (Marvell Technology Group Ltd.)
[hci0] 0.926162
@ MGMT Open: bluetoothd (privileged) version 1.14
{0x0001} 0.926164
@ MGMT Open: btmon (privileged) version 1.14
{0x0002} 0.926262
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 btmon
root@imx8mqevk:~#
[1]+
Done
root@imx8mqevk:~#
Copy the sample_hci.log file to the host PC
All information provided in this document is subject to legal disclaimers.
to open the log file:
btmon -w sample_hci.log
Rev. 2 — 29 January 2021
UM11490
© NXP B.V. 2021. All rights reserved.
81 / 88

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the UM11490 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF