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

Studio Bluetooth Forum Discussions

PeEr_3832806
Level 1
Level 1

Hello,

Is it possible for the application to some how signal from the wiced_transport_data_handler_t [1] callback to the caller that the data can not be consumed at the moment?  In which case the caller would stop reading data from the UART HW which would cause the RTS to rise?

br, Pekka Ervasti

[1]

/** Wiced transport data handler

* Call back registered by the application to recieve data. Application has to free the

* buffer in which data is received. Use the API wiced_transport_free_buffer to free

* the rx buffer

*

* @param[in] p_data : Pointer to the received data buffer.

* @param[in] data_len : length of the data pointed to by p_data in bytes.

*

* @Return the status in case of UART in HCI mode

*/

typedef uint32_t (*wiced_tranport_data_handler_t)( uint8_t* p_data, uint32_t data_len )

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

Hi peervast_3832806​,

>>Is it possible for the application to some how signal from the wiced_transport_data_handler_t [1] callback to the caller that the data can not be consumed at the moment?<<

Do you mean that the UART Driver should not assert the CTS signal for further receiving the data from Transmitter?

You can not send a signal from call back function wiced_transport_data_handler_t  to the caller function of it. However, you can drive the UART lines from your application.

Or other option is to use PUART and disable interrupts there to stop receiving data.

View solution in original post

1 Reply
SheetalJ
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi peervast_3832806​,

>>Is it possible for the application to some how signal from the wiced_transport_data_handler_t [1] callback to the caller that the data can not be consumed at the moment?<<

Do you mean that the UART Driver should not assert the CTS signal for further receiving the data from Transmitter?

You can not send a signal from call back function wiced_transport_data_handler_t  to the caller function of it. However, you can drive the UART lines from your application.

Or other option is to use PUART and disable interrupts there to stop receiving data.