User Manual
TITLE
DRAWING
NO.
Communication Protocol
Specification
For
SCIP2.0
C-42-03320B
6/25
6. Data Encoding and Decoding
Sensor’s data are encoded to reduce the transmission time between host and sensor. These data should be
decoded at the host side before processing them. There are three types of encoding technique applied in the
sensor depending upon the data size.
5.1 Two-Character Encoding
5.2 Three-Character Encoding
5.3 Four-Character Encoding
6.1 Two-Character Encoding
This encoding technique is applied to express data having maximum length of 12 bits. Encoding is
done by separating data into upper and lower 6 bits and then 30H is added to convert them into ASCII
characters. Figure 2 and 3 shows the Two-Character encoding and decoding example.
1,234 mm = 010011010010
2
↓
Separation
010011
2
010010
2
↓
Hexadecimal Equivalent
13H 12H
↓
Add 30H
43H 42H
↓
ASCII Equivalent
C B
C B = C B
↓
Hexadecimal Equivalent
43H 42H
↓
Subtract 30H
13H 12H
↓
Binary Equivalent
010011
2
010010
2
↓
Merge
010011010010
2
↓
Decimal Equivalent
1,234
Figure 2: 2-Character Encoding Example
Figure 3: 2-Character Decoding Example