BLE HCI Black Box Quick Start Guide

cancel
Showing results for 
Search instead for 
Did you mean: 

BLE HCI Black Box Quick Start Guide

No ratings

BLE HCI Black Box Quick Start Guide

This document describes a simple process for enabling the user controls the radio through serial commands.


Hardware requirements:
• FRDM-KW41Z/QN902x board or a board programmed with HCI black box application.
Software requirements:
• Test Tool 12 application. It can be downloaded from the NXP web page.
• HCI Black Box binary.

 

Running Demo
1. Load the board with hci_black_box example.
2. Open the Test Tool 12 software
3. Set up the correct Serial Configuration. If there were no changes in the application the default
configuration will correspond to the one showed in the following figure.

pastedImage_1.png

pastedImage_2.png

4. Double click on the active device that you want to test, this will open the COM port in the
command console.

pastedImage_3.png

5. Set the command set to the BLE_HCI.xml. This file has a list of the HCI commands that the user
can send to the device, some of the commands have some options to be configured if necessary
or some data to be filled.

pastedImage_4.png

6. To make easier the use of frequent commands, there is the option to add a shortcut to the
command and the chosen behavior will be added to the panel.

pastedImage_5.png

7. Once you add the shortcut or choose the command or your preference, just double click over it
and the tool will send the command to the device. In this case, we will send a reset on the board,
this command does not receive any extra parameters, data or need any extra configuration.

 

pastedImage_6.png

8. If successful there will be a response or acknowledge of the behavior that will be shown in the
right panel.

pastedImage_7.png

Labels (1)
Comments

Hi,

I'm using the MK22FN512VLL12 as the host MCU and the KW30Z as the bluetooth module on my device. They're connected by UART and I have the hci_app firmware loaded on the KW30Z. In the example above you send a 'Reset' command through the Test Tool software. If I'm sending a message directly over UART to the KW30Z could I send the same command byte for byte (01 03 0C 00)? Or do I need to add/omit data?

Thanks!

Josh

Hi Josh,

Yes, you are right, it is the same command.01 03 0C 00 You could find all of the HCI commands in the Bluetooth Specification.

Regards,

Mario

Mario,

Can you please point me to a link with the Bluetooth Specification? I've looked through the KW30Z documentation and can't find it.

Thanks!

Josh

Hi Josh,

Remember the KW30 supports Bluetooth 4.1

https://www.bluetooth.com/specifications/archived-specifications/ 

7.3.2 Reset Command

Regards,

Mario

I'm having trouble getting a response from the KW30Z (32-pin package) while it's running the hci_app. Here's my setup:

  • KW30Z is powered by 3.3 V and grounded properly
  • I have a logic analyzer connected to the KW30Z by TX (pin 28), RX (pin 27), and GND
  • I'm sending the reset command (0x01, 0x03, 0x0C, 0x00) and not getting a response

Any suggestions would be helpful!

Thanks!

Hi Josh,

Could you please create a new question in the https://community.nxp.com/community/wireless-connectivity?

Regards,

Mario

Version history
Revision #:
2 of 2
Last update:
‎10-07-2020 09:47 AM
Updated by:
 
Contributors