How to get actually transferred data size in case wiced_uart_receive_bytes() timeout ?

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

cross mob
Anonymous
Not applicable

Hi All,

We want to implement more efficient uart transferring.

In case wiced_uart_receive_bytes() timeout   (  ex. we expect 128 bytes input in 100 ms but only 64 bytes received)

How can we get that actually received number with current API ?

Thanks,

Sam

0 Likes
4 Replies
SeyhanA_31
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

Hi,

Yes, it is possible to return amount of data read within a given amount of time. I am look into it.

Seyhan

0 Likes
SeyhanA_31
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

Hi,

Here is updated UART receive functions to receive all data until the specified timeout, Getting Actually Transferred Data and Size of Data in Case of UART Timeout.

These changes are for STM32F2xx and STM32F4xx MCU platforms, do you have a specific platform other than those?

Seyhan

Anonymous
Not applicable

Hi Seyhan,

Will this improvement merge into SDK 3.3.0 release?

Thanks.

0 Likes
Anonymous
Not applicable

Hi Seyhan,

These changes are not in SDK-3.3.0.

Any chance to merge it in new sdk release?

Btw, we also need similar change for BCM4390.

Thanks.

0 Likes