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

Wi-Fi Combo Forum Discussions

Anonymous
Not applicable

hello all,

I am using wiced sdk3.5.2 and working on the uart.

when i make:

1> i pass the expected_data_size = 1 as a constant in the wiced_uart_receive_bytes()

facing problem:- not enter into the while(wiced_uart_receive_bytes != WICED_SUCCESS)

2> then i add the expected_data_size as veriable in the  wiced_uart_receive_bytes() and add the expected_data_size=1

at the end of the while() it enter in the

while(wiced_uart_receive_bytes != WICED_SUCCESS) ok.

facing problem:- queue become full and the not comeout from the  while(wiced_uart_receive_bytes != WICED_SUCCESS)

i am stuck , need solution emergency...

0 Likes
2 Replies
user_2177781
Level 5
Level 5
25 likes received 10 likes received 5 likes given

I do not think you can set expected_data_size to const. It needs to be a variable, which is reset after the call to wiced_uart_receive_bytes.

What timeout do you use in your wiced_uart_receive_bytes call?

Can you share your uart receive code, it will make it easier to give feedback.

Regards

René Josefsen

Anonymous
Not applicable

Hello,

Thanks for your valuable answer,

i add the variable instead of the constant value and it update at the end of the while().

It is working fine.

once again thank you vary much...

0 Likes