Let's Make Robots!


Error Correction - how can i do it

As part of my "Depron Project", i have made a XBee pro RF transmitter and receiver interface.

(it works very well, however my application will test it to its limits i guess......)

I would like the data to be 100% true. (else my 400gramme areoplane will just be a dot on the horizon - if you know what i mean)

My Question :- I have heard of error correction codes and would like to know what is the best way or method to follow ?.

My system is Arduino based ie Atmega328s.

My data string is so :-

RS232 Communication with MCU

So I am making my own CNC - PCB Miller. It is communicating with the computer using RS232 (UART), but in my testing, I find that I don't always get the correct characters, even at 1200baud. Does anyone have a method to suggest for error-checking an incoming data string over serial? I was thinking of doing something like this:

CPU sends data to MCU 4 times.

MCU checks to make sure the data is repeated exactly 4 times.

--If yes->send "OK" 4 times

--If no->send "NOT OK" 4 times

If CPU receives OK, queue up the next data to send