Capture RS232 string

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
bercioiu
Posts: 161
Joined: Sun Feb 25, 2007 10:56 am
Location: bucharest, romania
Has thanked: 90 times
Been thanked: 34 times
Contact:

Capture RS232 string

Post 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.

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Capture RS232 string

Post by medelec35 »

Hi,
If it was me, I would use a [urlhttps://www.matrixtsl.com/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.
Martin

Post Reply