Communication over UART between CYW20719 and non-Bluetooth MCU

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

cross mob
ChEn_4683226
Level 1
Level 1
First question asked First reply posted

We would like to use the HCI UART port on the CYW20719 to communicate with a second non-Bluetooth MCU. We would like to transmit firmware (for firmware upgrades) and other generic data from this second MCU to the CYW20719.

Can you confirm that we can use the HCI UART port for the functionality described above?

If we can use the HCI UART, are we restricted to the messages and function calls defined in the WICED HCI UART Control Protocol or can we also send/receive raw data over HCI UART?

Thanks.

0 Likes
1 Solution
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi,

Yes, you can use HCI UART for firmware upgrade.

You can send raw data as well through HCI UART by configuring uart transport mode (wiced_transport_uart_mode_t) to "WICED_TRANSPORT_UART_RAW_MODE". Please check wiced_transport.h (wiced_transport_cfg_t) for more info.

NOTE: Please use the latest Modustoolbox IDE and SDK. https://www.cypress.com/products/modustoolbox-software-environment()

Thanks,

-Dheeraj

View solution in original post

0 Likes
3 Replies
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi,

Yes, you can use HCI UART for firmware upgrade.

You can send raw data as well through HCI UART by configuring uart transport mode (wiced_transport_uart_mode_t) to "WICED_TRANSPORT_UART_RAW_MODE". Please check wiced_transport.h (wiced_transport_cfg_t) for more info.

NOTE: Please use the latest Modustoolbox IDE and SDK. https://www.cypress.com/products/modustoolbox-software-environment()

Thanks,

-Dheeraj

0 Likes

Thanks for the answer, Dheeraj.

To clarify, when sending raw data over the HCI UART, the protocol details described in the WICED HCI UART Control Protocol document don't apply. Right? And the raw bytes sent by an attached MCU can be parsed (as received by the CYW20719's low-level UART peripheral) inside the wiced_transport_data_handler_t callback registered by our application?

0 Likes

Yes, you are right.

You need to configure the wiced_transport_cfg_t in your application with data, status callback functions.

0 Likes