Question regarding the DTM API

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

Question regarding the DTM API

171 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
3 Replies

21 Views
Takuya_Tanaka
Contributor I

Hello,

When I open NXP Test Tool 12 while the KW47-LOC is connected to the PC via USB, the following error occurs and the application crashes. Could you please advise on the cause?

Takuya_Tanaka_0-1789016520286.pngTakuya_Tanaka_0-1789016520286.png

Thank you.

0 Kudos
Reply

4 Views
sofiaurueta
NXP Employee
NXP Employee

Hi @Takuya_Tanaka ,

this sometimes happens when the board is already connected when Test Tool 12 opens, or if another application is holding the COM port. Could you try closing any serial terminals or debuggers and unplugging the board before reopening the tool?

Best regards,
Sofia.

0 Kudos
Reply

36 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%3CLINGO-SUB%20id%3D%22lingo-sub-2412482%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Question%20regarding%20the%20DTM%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2412482%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%20hope%20you%20are%20doing%20well.%3C%2FP%3E%0A%3CP%3EBoth%20Hci_LeEnhancedReceiverTest%20and%20Hci_LeEnhancedTransmitterTest%20are%20supported%20in%20the%20SDK.%20These%20functions%20are%20gated%20behind%20the%20gHciCompleteHciCmdSupport_d%20guard%20and%20need%20to%20be%20enabled%20in%20the%20app_preinclude.h%20file%20from%20your%20project%3A%3C%2FP%3E%0A%3CP%3E%23define%20gHciCompleteHciCmdSupport_d%26nbsp%3B%20TRUE%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EI%20would%20recommend%20using%20the%20hci_bb_bm_cm33_core0%20project%20for%20testing%2C%20this%20example%20runs%20on%20the%20main%20CM33%20core%20and%20acts%20as%20a%20transparent%20HCI%20bridge.%3C%2FP%3E%0A%3CP%3EAre%20you%20currently%20testing%20with%20any%20example%20from%20the%20SDK%3F%20How%20were%20you%20enabling%20the%20gHciCompleteHciCmdSupport_d%20macro%20previously%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EOnce%20the%20hci_bb%20example%20is%20flashed%20with%20the%20macro%20enabled%2C%20you%20can%20use%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdesign-center%2Fdevelopment-boards-and-designs%2Ffrdm-development-boards%2Fconnectivity-tool-suite%3ACONNECTIVITY-TOOL-SUITE%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ENXP%20Test%20Tool%2012%3C%2FA%3E%20to%20send%20HCI%20commands%20to%20the%20device.%20To%20access%20the%20full%20set%20of%20HCI%20DTM%20commands%2C%20load%20the%20latest%20BLE%20HCI%20command%20set%20file%20(BLE%20HCI%205.0%20x.x.x.xml).%3C%2FP%3E%0A%3CP%3EAlso%2C%20these%20posts%20could%20be%20helpful%20for%20navigating%20the%20NXP%20Test%20Tool%20and%20DTM%20commands%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FWireless-Connectivity-Knowledge%2FBLE-HCI-Application-to-set-transmitter-receiver-test-commands%2Fta-p%2F1126093%22%20target%3D%22_blank%22%3EBLE%20HCI%20Application%20to%20set%20transmitter%2Freceiver%20test%20commands%3C%2FA%3E%3CBR%20%2F%3EThis%20article%20provides%20the%20steps%20to%20show%20how%20user%20could%20send%20serial%20commands%20to%20the%20device.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FWireless-Connectivity-Knowledge%2FBluetooth-LE-HCI-Black-Box-Quick-Start-Guide%2Fta-p%2F1099874%22%20target%3D%22_blank%22%3EBluetooth%20LE%20HCI%20Black%20Box%20Quick%20Start%20Guide%3C%2FA%3E%3CBR%20%2F%3EThis%20article%20describes%20a%20simple%20process%20for%20enabling%20the%20user%20controls%20the%20radio%20through%20serial%20commands.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20regards%2C%3CBR%20%2F%3ESofia.%3C%2FP%3E%3C%2FLINGO-BODY%3E