yagna said:
i would be sending/controlling the variables randomly. Its not sequential.
its like controlling the pressure, volume and flow.
hope u understood.
You simply need to send more bytes, presumably this isn't speed critical at all - or you wouldn't be allowing random intervals. The main problem with sending 8 bit binary data, is that the value can be anything from 0-255, obviously!. This means you can't send a start of data and end of data byte, before and after the data, because the data itself may have the same value as the control bytes.
There are a great many different ways you could do it, one simple one would be two split each data byte into two 4 bit nibbles, shifting the upper nibble down into the lower half of the second data byte. Then in the upper half of the nibbles add a code to signify which half of which data input it is.
For example:
Pressure 1000LLLL - low half of pressure
Pressure 1001HHH - high half of pressure
Volume 1010LLLL - low half of volume
Volume 1011HHH - high half of volume
And so on.
This allows 8 different data bytes to be sent as double bytes of data, with each one being individually identified. Simply reassemble the bytes in the receiver software.