HCI uart cannot recieve any data when recieve bad data which format is not same as WICED HCI UART Control Protocol

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
YaTr_3516311
Level 5
Level 5
25 sign-ins First solution authored 100 replies posted

Hi,

I'm testing HCI uart function which recieve data command. When test use "19 01 01 02 00 01 01"(scan) command. It is fine( Debug trace shown hci_control_process_rx_cmd : Data Length '6). But when I test data which is not done as WICED HCI UART Control Protocol, use "00 01 01 33 55 65", "hci_control_process_rx_cmd : Data Length"  debug trace not shown. And after that I use nomarl command ""19 01 01 02 00 01 01"(scan)", debug trace still not shown and I tried many times. No this trace come even I input normal format command.

1. Debug trace shown the len is not calculated 19 byte. Right? Because I input 7 bytes command(19 01 01 02 00 01 01), and this log shown len is 6.

2. I test abnormal command because I worried that there will be useless data been received by this uart. And I want this uart still can work normal, still can recieve data. But unfortunatelly, it works not fine. And even I send normal format command, it still cannot receive data(Because no debug trace shown). How to fix this problem? Attach is my code. Please have a check

0 Likes
1 Solution

在raw data模式下,设备不会接收HCI UART指令。

在Recover模式下,设备从内部的rom code启动,可以接收烧录的HCI指令。

所以,当需要升级程序的时候,让设备进入recover模式,然后通过HCI口烧录程序。

View solution in original post

0 Likes
19 Replies