cyw20706 transport uart receive delay

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

cross mob
maze_1672671
Level 4
Level 4
First like received 25 replies posted 25 sign-ins

Hello all,

 

we are using the transport uart in WICED_TRANSPORT_UART_RAW_MODE

 

This happens when sending a custom echo command:

 

maze_1672671_0-1653651744208.png

Between the end of the rx (2nd row, A1) and the call to p_data_handler (3rd row, A2) there are 15.6 ms

B1 marks the end of the echo (1st row), so it takes 19.4 ms to send the command and receive the echo but 15.6/19.4=80% of the time is spent doing nothing!

How can we reduce that delay?

 

0 Likes
1 Solution
maze_1672671
Level 4
Level 4
First like received 25 replies posted 25 sign-ins

my fault: I forgot to add wiced_transport_free_buffer

View solution in original post

0 Likes
6 Replies
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

Is there any other active events during the test? The receive event may be delayed by other events such as BLT/BT events.

0 Likes
maze_1672671
Level 4
Level 4
First like received 25 replies posted 25 sign-ins

no, it is a central but it is not connected and it is not searching

0 Likes

Could you test the HCI Mode instead of the HCI RAW Mode? 

The raw mode is rarely used and I am not sure if there is some bugs with it.

0 Likes
maze_1672671
Level 4
Level 4
First like received 25 replies posted 25 sign-ins

how can I do this with the minimal effort?

0 Likes
maze_1672671
Level 4
Level 4
First like received 25 replies posted 25 sign-ins

now it is fast but in less than 100 echoes it stops working

maze_1672671_0-1653921583786.png

 

I must power off the eva board and program it again

0 Likes
maze_1672671
Level 4
Level 4
First like received 25 replies posted 25 sign-ins

my fault: I forgot to add wiced_transport_free_buffer

0 Likes