Page 1 of 1

Capture RS232 string

Posted: Thu Dec 03, 2020 10:25 pm
by bercioiu
Hello everyone!

I need your help again. I've been working on a project for a while and I can't finish it. The project is a watch that will have no buttons. I have an ESP8266 that connects to the wifi network in the house and transmits RS232 serially a phrase that looks like this: "$HHMMSS". The problem is that I can't capture exactly this string. I use UART RXINT0 interrupt on CHANNEL 1, on pin RC7 of my 18F26K20 pic. I don't think I've worked with anything like this before and I have no idea how to do this ... I would be grateful if you could help me with an example from which to understand how I can capture the whole string.

Thank you!

Puiu Bercioiu.

Re: Capture RS232 string

Posted: Fri Dec 04, 2020 7:52 am
by medelec35
Hi,
If it was me, I would use a [urlhttps://www.flowcode.co.uk/wiki/index.php?title= ... _(Storage)]Circular buffer[/url] component.
There is an example on on the Wiki page.
If you get stuck then post your flowchart and I will help you further.