cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Studio Wi-Fi Combo

Anonymous
Not applicable

Hello All,

I am working on wiced SDK3.5.2. I  getting the problem with not receive the packet from the terminal. in this i transmit the data from he docklight terminal. in this when i send the data print on the docklight terminal ok.

my code is:

/*------------------------------------------------------------------------------------------------*/

    ring_buffer_init(&rx_buffer, rx_data, RX_BUFFER_SIZE );

    /* Initialise UART. A ring buffer is used to hold received characters */

    wiced_uart_init( STDIO_UART, &uart_config, &rx_buffer );

    /* Send a test string to the terminal */

    wiced_uart_transmit_bytes( STDIO_UART, TEST_STR, sizeof( TEST_STR ) - 1 );

    /* Wait for user input. If received, echo it back to the terminal */

    while ( wiced_uart_receive_bytes( STDIO_UART, &ch, 1 , WICED_NEVER_TIMEOUT ) == WICED_SUCCESS )

    {

       WPRINT_APP_INFO(("UART Rx\r\n"));

     }

/*--------------------------------------------------------------------------------------------------------*/

i execute code it does not enter in the while loop. check from the hardware site it is ok.

i am stuck here help me...

0 Likes
Reply
1 Solution
AndrewY_86
Employee

It looks like you modified the snip.uart app to print "UART Rx" when data is received. If you look at the makefile,  you should see that WICED_DISABLE_STDIO is defined. This define will disable stdio calls which WPRINT_APP_INFO uses. Try using wiced_uart_transmit_bytes instead of WPRINT_APP_INFO.

View solution in original post

4 Replies
user_2177781
Valued Contributor

I assume this problem is related to UART receive problem?

AxLi_1746341
Honored Contributor

Try testing if snip.uart works for you or not.

0 Likes
Reply
AndrewY_86
Employee

It looks like you modified the snip.uart app to print "UART Rx" when data is received. If you look at the makefile,  you should see that WICED_DISABLE_STDIO is defined. This define will disable stdio calls which WPRINT_APP_INFO uses. Try using wiced_uart_transmit_bytes instead of WPRINT_APP_INFO.

View solution in original post

Anonymous
Not applicable

Hello,

Thanks for your valuable answer.

first of all test with the snip.uart it is working ok, then after testing with my code it is working fine.

0 Likes
Reply