PT630 Programming Reference Guide
Page 62 of 59
------------------------------------------------------------------------------------------------------------------
2.2 Data Communication in MULTIPOINT Protocol
2.2.1 Host Send Data to PT630 (ESC 0)
Format :
Æ
STX ESC ‘0’ <data> CS1 CS2 ADDR
Å
ACK or NAK
Description: PT630 will put the received data in the buffer. The application on PT630 can:
Use system call INT 21H/AH=5CH to get data.
Use system call INT 21H/AH=5EH to check the buffer status.
2.2.2 Host Requests Data from the PT630 ( Polling )
Format
Æ
STX
ADDR
;
polling
Å
EOT
; if PT630 has no data to send
Or
Å
STX <data> CS1 CS2 ETX ; if there is data in PT630 buffer
Description: The application on PT630 uses system call INT 21H/AH= 5DH to put data in
buffer. Once polled by host computer, PT630 system will send data out.
2.3 File Communication in MULTIPOINT Protocol
2.3.1 Host Send File to PT630 ( Download )
Format :
⇒
STX ESC ‘L’
<filename>
CS1 CS2 ADDR
⇐
ACK or NAK
; if NAK, retry or abort the command
⇒
STX ESC ‘Y’ <data> CS1 CS2 ADDR ; if ACK, loops until file is transmitted
⇐
ACK or NAK
; if NAK, send the packet again
⇒
STX ESC ‘Z’ CS1 CS2 ADDR
; end of file transfer
⇐
ACK or NAK
Description: The download command is used to send binary executable program (*.exe file)
or data file from host system to the PT630. When the PT630 receives the
download command it sends an ACK response back to the host and immediately
put itself into file receiving state. The host system may start transmission of the
file as soon as the ACK response has arrived.