Page 1 of 1

how to stop receiving of data from UART

Posted: Wed Aug 22, 2018 1:40 pm
by ningappa BS
hi all,
my requirement is to receive some (let say 200 bytes) of UART data and stop receiving then process the received data and then again receive 200 bytes stop receiving, process the received data and so on till the end of data (let say 1000 bytes ). Is there any API's or can we make CTS & RTS pins according to my wish so that receiving data can be controlled. Can we access CTS & RTS pins??


thanks in advance

Re: how to stop receiving of data in UART

Posted: Wed Aug 22, 2018 1:54 pm
by kolban
Howdy,
Let me suggest having a read at this part of the documentation relating to UART.

https://esp-idf.readthedocs.io/en/lates ... /uart.html

Let's see if after we read this how many of the questions still remain.

Re: how to stop receiving of data in UART

Posted: Thu Aug 23, 2018 5:36 am
by ningappa BS
can we make CTS pin high or low according to our wish so that we can stop and start communication manually.If yes, is there any example kindly share.

Re: how to stop receiving of data in UART

Posted: Thu Aug 23, 2018 6:44 am
by ESP_Sprite
You can map whatever pin you want to use as a GPIO, and manually control it that way.

Re: how to stop and resume receiving of data from UART

Posted: Tue Aug 28, 2018 5:47 am
by ningappa BS
am setting and resetting the gpio pin which am using as a CTS pin to start and stop the UART communication but still am not getting any effect on communication, can you please share any UART communication code which is controlling by CTS pin so that i will get some idea. Any suggestions can be appreciated.


thanks in advance

Re: how to stop and resume receiving of data from UART

Posted: Wed Sep 26, 2018 11:07 am
by ningappa BS
ningappa BS wrote:am setting and resetting the gpio pin which am using as a CTS pin to start and stop the UART communication but still am not getting any effect on communication, can you please share any UART communication code which is controlling by CTS pin so that i will get some idea. Any suggestions can be appreciated.


thanks in advance

issue solved....... :)