The question of using UART in CYW920719Q40EVB-01

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

cross mob
AlGo_4347736
Level 3
Level 3
10 replies posted 10 questions asked 5 replies posted

Hello!

I have some troubles with UART. I'm trying to send message using wiced transport, but I don't recive expected message from another side.

I used different modes of operation for UART:

    WICED_TRANSPORT_UART_HCI_MODE,

    WICED_TRANSPORT_UART_RAW_MODE,

Code:

uint8_t data[] = "\x01\x00\x21\x02\x11\x01\xBD\x67";

wiced_result_t res = wiced_transport_send_data( HCI_CONTROL_COMMAND_UNBOND, data, sizeof(data));

if (res != WICED_SUCCESS)

{

  WICED_BT_TRACE ( "Cannot send maja message \n");

}

Expected result: 01 00 21 02 11 01 BD 67 00

Current result: 19 0A 00 09 00 01 00 21 02 11 01 BD 67 00

How to avoid the appearance of a header '19 0A 00 09 00' in a message received through UART.

Thank you.

0 Likes
1 Solution
4 Replies
SheetalJ
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 500 likes received

Hi AlGo_4347736​,

As per my understanding, 19 stands for HCI WICED Packet. 0A is the operating code for Unbond command as you are using code HCI_CONTROL_COMMAND_UNBOND. 00 is the group code suggesting group HCI_CONTROL_GROUP_DEVICE. Next bytes are the packet length.

Please check WICED HCI UART Control Protocol document Page 16 for more details (/20719-B1_Bluetooth/doc/WICED-HCI-Control-Protocol.pdf).

0 Likes

Hi SheetalJ_96​!

What it is and how it is formed I understand.

The question is, how do I disable sending the header when sending data to UART?

What if I just want to send my bytes buffer without any additional automatically generated bytes?

0 Likes

Hello!
The question is still relevant. Can you please help me sort it out?

0 Likes

This issue will be further tracked here: How can I send data without a header via UART?

0 Likes