EasyManua.ls Logo

NXP Semiconductors UM11490 - Capture the HCI Logs Using Btmon

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.1.2 Capture the HCI Logs using btmon
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 to open the log file:
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 btmon -w sample_hci.log
root@imx8mqevk:~#
Copy the sample_hci.log file to the host PC
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
81 / 88

Table of Contents

Related product manuals