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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

1,464件の閲覧回数
pvelayu1
Contributor II

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

ラベル(1)
2 返答(返信)

1,300件の閲覧回数
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);

...

1,300件の閲覧回数
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 件の賞賛
返信