Protocole de communication
UART signal of EIA-RS232 C
Format:
9. Serial output: 1200/2400/4800/9600/19200/34800 BPS
10. Data bits: 8 bits
11. Parity bits: None
12. Stop bits: 1 bit
Start bit
Format 1 (232 1 – 3):
HEAD1 (2 BYTES)
OL – Overload
ST – Stable
US – Unstable
Fixed 18 BYTES ASCII
1 2 1 1 2 1 1 2 3 4 5 6 7 8 1 2 1 2
,
HEAD1
HEAD2
Fixed 21 BYTES ASCII
1
2
1
1
4
1
2
,
HEAD1
HEAD2
Fixed 19 BYTES ASCII
1
2
1
1
2
,
HEAD1
HEAD2
1. Exemple +0.876 kg Stable net weight :
S T
, N T
, + 0 0 0
2. Exemple -1.568 lb unstable gross weight :
U S
, G S
,
3. Exemple -20. 5.40 lb oz unstable gross weight :
S T
, G S
,
Data bits
HEAD2 (2 BYTES)
NT – Net weight
GS – Gross weight
(kg g t lb)
,
DATA
(tl.T lboz)
2
1
1
2
,
DATA
(pcs)
1
1
2
3
4
5
,
DATA
. 8 7 6 k g 0D 0A
- 0 0 1
. 5 6 8
- 1 0 ﹒ 0 5 ﹒ 4 0
Stop bits
UNIT CR LF
3
4
5
6
7
UNIT
6
7
8
1
2
3
UNIT
l b 0D 0A
l b o z 0D 0A
8
9
1
CR LF
1
2
CR LF
2
3
28