2014年2月21日 星期五

Software Elements

PC side: draw data in HTML5
Features:
1. Left/Right scrolling
2. Zoom in/out
3. Preview
4. Visible/Hide channels

Packet definition:
<< Sync Bytes >>
Timestamp
channel 1 value (if have)
channel 2 value (if have)
channel 3 value (if have)
channel 4 value (if have)
channel 5 value (if have)
<< Checksum >>

Logger statistic
1. Total packets
2. Channel definition

Logger ===>> PC
a. Send each channel properties (1 to 5)
1. Provide total packets
2. Send total packets
3. Clean buffer

PC <== logger
a. Loop 5 times to ask each channel property
1. Ask how many packets
2. Start receive
3. Save to disk

RPM sample: http://playground.arduino.cc/Main/ReadingRPM#.Uwcj2fmSxC4

沒有留言:

張貼留言