DB-2.doc

(923 KB) Pobierz
TP-2 Source 분석

CAS                                           DB-II Serial Communication Protocol                                                           

 

 

 

 

 

 

 

 

 

DB-II Serial Communication Protocol

Revision 0.2(English)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Final Revision: 2005. 4. 25


 

< Table of Contents >

 

1.              The Serial Interface              3

1.1.              Transmission Control Character              3

1.2.              Synchronization              3

1.3.              The Wire Connection              4

1.4.              PC to Scale (Client to Server)              5

1.4.1.              Command Format              5

1.4.2.              Key Command              5

1.4.3.              Download Command              6

1.4.4.              Data Request Command              7

1.5.              Scale to PC (Server to Client)              8

1.5.1.              Acknowledge              8

1.5.2.              No Acknowledge              8

1.5.3.              Data Format              8

1.5.4.              Examples              9

2.              Scheme              10

2.1.              Normal Operation              10

2.2.              Key Command Operation              11


1.     The Serial Interface

 

  Definition of Scale and PC serial interface protocol communication

 

1.1.   Transmission Control Character

 

Command

Value(HEX)

Description

SOH

01h

Start of heading

STX

02h

Start of text

ETX

03h

End of text

EOT

04h

End of transmission

ENQ

05h

Enquiry

ACK

06h

Acknowledge

NAK

15h

No Acknowledge

LF

0ah

Changing line

CR

0dh

Move to first curser column

SP

20h

Space

[Table 1.1] Transmission Control Character

 

[Table 1.1] control character

 

Synchronization

 

[Figure 1.1] Synchronization Packet

 

First and end Packet is like following [Figure 1.1]

Prefix 2 byte reads first Packet, and Suffix 3 byte reads the last part of Packet.

[LEN]Suffix is 1byte which counts [SOH] to [EOT] byte

 

 


1.2.   The Wire Connection

 

[Figure 1.2] Arrangement connector pin of Scale (DSUB)

 

As [Figure 1.2] shown DB-II is wire connected with D-SUB connector and Main board.

TX, RX is connected to communicate with other RX, TX.

Connecting DB-II, PC, and DEP printer needs to make a cable which connected with DB-IIs 7th ground cable, and PC, DEP printer’s 5th cable.

 


1.3.   PC to Scale (Client to Server)

1.3.1.    Command Format

 

 

[Figure 1.3] Command Format (PC to Scale)

 

As [Figure 1.3] shows PC to Scale Packet format.

This command format organized with; Start notice Prefix 2 byte, Scale ID and Key command 1byte, general command 2byte, and Date (0) or (4) or (8) byte.

Scale setting data becomes a parameter value.

 

...

Zgłoś jeśli naruszono regulamin