I have a binary serial data stream that contains 3 variables.
I need the code to receive this data stream and using the information update a string variable.
The byte of information is comprised of 8 bits, no parity and 2 stop bit.
00001001 = 0(id bit) 000(position of data in this case the left most char in a 4 char number) and data as binary number 1001=9
So we are using the information to build a 4 digit decimal number. like 1339
The data we would have received to do this is like this:
00001111 (this says it is start of stream, blank the variable and start building new)
00000001
00010011
00100011
00111001
at the end send the variable via software serial.