AlistairCheeseman / WindTunnelApparatus

MENG Data Acquisition + motion control for Wind Tunnel Apparatus
GNU General Public License v3.0
0 stars 1 forks source link

need to determine pressure transducer flags #7

Open AlistairCheeseman opened 8 years ago

AlistairCheeseman commented 8 years ago

when multiplexing data from each pressure transducer onto the serial tx buffer various flags will be added, they need to be decided upon. current delimeters needed:

note: is it easier to simply tx every value with one delimiter opposed to two (as pressure data not time sensitive)? will make simpler and reduce data overhead.

AlistairCheeseman commented 8 years ago

data efficiency: byte 1 - sensor ID byte 2 - status + (pressure [15:8] byte 3 - rest of pressure data [7:0] byte 4 - Temp [ 10:3] byte 5 - Temp [2:0] --NOTE WASTED DATA SPACE byte 6 - DELIMTER - must be whole byte for serial processor to recognise it 6 byte total, 27 bits data, Comms efficiency = 56.2% does not acct for time stamp

AlistairCheeseman commented 8 years ago

data efficiency(other method): byte 1 - sensor ID byte 2 - status + (pressure [15:8] byte 3 - rest of pressure data [7:0] byte 4 - Temp [ 10:3] byte 5 - Temp [2:0] --NOTE WASTED DATA SPACE byte 6 - DELIMTER - must be whole byte for serial processor to recognise it ..... byte n-1 Temp(sensor10)[2:0] byte n ROW DELIMETER

assuming 10 sensors, (6*10) = 60 bytes data 60 byte total, 270 bits data, Comms efficiency = 56.2% does not acct for time stamp same efficiency as above method HOWEVER if including time stamp this method will be more efficient