Serial transmission of floating point over RS232???

rjenkins

Joined Nov 6, 2005
1,013
Different systems and compilers use different internal storage formats for floating point values.

The simplest way is send it as a text number.

eg. use sprintf to convert it to an ascii text string with formatting for the correct number of significant digits, then send that string a character at a time.

You could add some simple framing data to make it easier to track at the receiving end, like sending '#' first and ':' after, and a new line \n.

That makes is easy to check in hyperterminal or whatever as it's readable, and it's very obvious to your software when one string of digits ends and the next starts.
 

t06afre

Joined May 11, 2009
5,934
In order to give you more help. You have to tell us what you have done so far. Also why and how you struggle. This will take very long time if we have to drag every bit of information out of you.
 
Top