The purpose of this is to simulate NMEA 0183 format heading information that would normally be provided from an electronic compass used on a boat.
What I'm trying to achieve is,
output from the serial out a single, fixed data string. Then after a short delay, loop back to repeat.
The format for the data string needs to be as follows;
$KMHDM,0.0,M*00<CR><LF>
I have it all working okay apart from the <CR><LF> at end of the data string.
These represent <Carriage Return> and <Line Feed>. These are crucial to making it work.
Any ideas how I get the 08 to output <CR><LF> at the end of the string?
All help greatly appreciated.
kev
What I'm trying to achieve is,
output from the serial out a single, fixed data string. Then after a short delay, loop back to repeat.
The format for the data string needs to be as follows;
$KMHDM,0.0,M*00<CR><LF>
I have it all working okay apart from the <CR><LF> at end of the data string.
These represent <Carriage Return> and <Line Feed>. These are crucial to making it work.
Any ideas how I get the 08 to output <CR><LF> at the end of the string?
All help greatly appreciated.
kev