Application download to CYBT-343026 module with host processor

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

cross mob
CoreyW_81
Employee
Employee
50 sign-ins 50 replies posted 25 replies posted

We wish to use standard (rather than WICED) HCI commands.  I have created a do-nothing app for the module and am implementing the UART protocol to download it.  I am following section 2.6 in the WICED HCI UART Control Protocol specification.

I send the HCI_RESET command and receive the expected 7 byte response.

I am leaving the UART at the default speed of 115200, so I am not sending the UPDATE_BAUDRATE command or trying to read a response.

I send the DOWNLOAD_MINIDRIVER command, but don't receive the expected response.  That is, I send:

                01 2E FC 00

and receive:

                04 0E 04 01 2E FC 0C

According to the information in the document, the last byte should be 00.

Unfortunately, the document doesn't indicate what the fields in the response indicate.  Do you have any information on that?  Assuming that the last byte is a status or error code, do you know what 0x0C means?

Also, my goal here is to verify that I can download apps from the connected CPU.  That will be verified in this case by the BT module responding to normal HCI commands. 

0 Likes
1 Solution
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hi Corey,

The last byte refers to the status (HCI  error code). 00 means success.

0X0C refers to 'Command Disallowed ' according to the spec. You can refer to HCI command error codes in BT Core Spec

You may put the device in recovery mode and try sending the command.

Thanks,
Anjana

View solution in original post

2 Replies
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hi Corey,

The last byte refers to the status (HCI  error code). 00 means success.

0X0C refers to 'Command Disallowed ' according to the spec. You can refer to HCI command error codes in BT Core Spec

You may put the device in recovery mode and try sending the command.

Thanks,
Anjana

Thank you Anjana, My customer was able to work through the UART communication and does have it responding with the "00" now.