NXP FRDM KW36 : Is HCI snoop log possible or not?

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

NXP FRDM KW36 : Is HCI snoop log possible or not?

670 Views
pvelayu1
Contributor II

Hi, is it possible to capture HCI snoop log in KW36 ? if yes, can you please share the procedure ?

Labels (1)
2 Replies

506 Views
xing_chang
NXP Employee
NXP Employee

Hi pvelayu1@visteon.com‌,

You can print HCI data through the serial port as follows, but it is not a btsnoop_hci file, the btsnoop_hci file has a specific file format, it should be generated by an Android phone.

Header 1

bleResult_t Ble_HciRecv1
(
hciPacketType_t packetType,
void* pPacket,
uint16_t packetSize
)
{
Serial_PrintHex(0, pPacket, packetSize, gPrtHexNewLine_c);
return Ble_HciRecv(packetType, pPacket,packetSize );
}

bleResult_t Hci_SendPacketToController1( hciPacketType_t packetType, void* pPacket,
uint16_t packetSize)
{
Serial_PrintHex(0, pPacket, packetSize, gPrtHexNewLine_c);
return Hci_SendPacketToController(packetType, pPacket, packetSize);
}

bleResult_t Ble_Initialize
(
gapGenericCallback_t gapGenericCallback
)
{

...

/* BLE Controller Init */
if (osaStatus_Success != Controller_Init(Ble_HciRecv1))
{
return gBleOsError_c;
}

...
/* BLE Host Stack Init */
return Ble_HostInitialize(gapGenericCallback,
(hciHostToControllerInterface_t) Hci_SendPacketToController1);

...

506 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Prakash,

This log should be implemented by the host side, the HCI will send all the process that it is doing and the Host could decide if save the snoop log or not.

Regards,

Mario

0 Kudos