Question regarding the DTM API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Question regarding the DTM API

140 Views
Takuya_Tanaka
Contributor I

Hello,

I would like to use the Hci_LeEnhancedReceiverTest and Hci_LeEnhancedTransmitterTest functions declared in SDK_26_03_00_KW47-EVK\mcuxsdk\middleware\wireless\bluetooth\host\interface\hci_interface.h from MCUXpresso SDK v26.03.00 on a KW47 MCU. Are these commands supported?

Additional information:

  • The declarations for these two functions are guarded by: #if defined(gHciCompleteHciCmdSupport_d) && (gHciCompleteHciCmdSupport_d == TRUE) When I enabled that macro, the project failed to build with errors.
  • I searched the SDK for Hci_LeEnhancedReceiverTest and Hci_LeEnhancedTransmitterTest and only found the declarations in hci_interface.h; I could not find any implementation or other references.

Could someone please confirm whether these DTM commands are supported for KW47 in this SDK release, and advise how to enable or obtain the required implementation (or point me to any necessary firmware/library/configuration)? Any guidance would be greatly appreciated.

Thank you.

0 Kudos
Reply
1 Reply

5 Views
sofiaurueta
NXP Employee
NXP Employee

Hello, hope you are doing well.

Both Hci_LeEnhancedReceiverTest and Hci_LeEnhancedTransmitterTest are supported in the SDK. These functions are gated behind the gHciCompleteHciCmdSupport_d guard and need to be enabled in the app_preinclude.h file from your project:

#define gHciCompleteHciCmdSupport_d  TRUE

 

I would recommend using the hci_bb_bm_cm33_core0 project for testing, this example runs on the main CM33 core and acts as a transparent HCI bridge.

Are you currently testing with any example from the SDK? How were you enabling the gHciCompleteHciCmdSupport_d macro previously?

 

Once the hci_bb example is flashed with the macro enabled, you can use NXP Test Tool 12 to send HCI commands to the device. To access the full set of HCI DTM commands, load the latest BLE HCI command set file (BLE HCI 5.0 x.x.x.xml).

Also, these posts could be helpful for navigating the NXP Test Tool and DTM commands:

BLE HCI Application to set transmitter/receiver test commands
This article provides the steps to show how user could send serial commands to the device.

Bluetooth LE HCI Black Box Quick Start Guide
This article describes a simple process for enabling the user controls the radio through serial commands.

 

Best regards,
Sofia.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2410276%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EQuestion%20regarding%20the%20DTM%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2410276%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20class%3D%22%22%3EHello%2C%3C%2FP%3E%3CP%20class%3D%22%22%3EI%20would%20like%20to%20use%20the%20Hci_LeEnhancedReceiverTest%20and%20Hci_LeEnhancedTransmitterTest%20functions%20declared%20in%20SDK_26_03_00_KW47-EVK%5Cmcuxsdk%5Cmiddleware%5Cwireless%5Cbluetooth%5Chost%5Cinterface%5Chci_interface.h%20from%20MCUXpresso%20SDK%20v26.03.00%20on%20a%20KW47%20MCU.%20Are%20these%20commands%20supported%3F%3C%2FP%3E%3CP%20class%3D%22%22%3EAdditional%20information%3A%3C%2FP%3E%3CUL%3E%3CLI%3EThe%20declarations%20for%20these%20two%20functions%20are%20guarded%20by%3A%20%23if%20defined(gHciCompleteHciCmdSupport_d)%20%26amp%3B%26amp%3B%20(gHciCompleteHciCmdSupport_d%20%3D%3D%20TRUE)%20When%20I%20enabled%20that%20macro%2C%20the%20project%20failed%20to%20build%20with%20errors.%3C%2FLI%3E%3CLI%3EI%20searched%20the%20SDK%20for%20Hci_LeEnhancedReceiverTest%20and%20Hci_LeEnhancedTransmitterTest%20and%20only%20found%20the%20declarations%20in%20hci_interface.h%3B%20I%20could%20not%20find%20any%20implementation%20or%20other%20references.%3C%2FLI%3E%3C%2FUL%3E%3CP%20class%3D%22%22%3ECould%20someone%20please%20confirm%20whether%20these%20DTM%20commands%20are%20supported%20for%20KW47%20in%20this%20SDK%20release%2C%20and%20advise%20how%20to%20enable%20or%20obtain%20the%20required%20implementation%20(or%20point%20me%20to%20any%20necessary%20firmware%2Flibrary%2Fconfiguration)%3F%20Any%20guidance%20would%20be%20greatly%20appreciated.%3C%2FP%3E%3CP%20class%3D%22%22%3EThank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E