Sharp ER-A440 (serv.man6) Service Manual ▷ View online
CHAPTER 5. RS-232 PROTOCOL
1. Basic protocol specification
1) Data transmission from the host to a satellite
ACK
EOT
( 1 ) Inquines of the satellite.
( 4 ) Receives ACK.
( 5 ) Sends the text.block.
( 7 ) Resends the text block if NAK is received.
Resends the text block up to two times.
Sends EOT and terminates the operation
with error if NAK is still received after the
second resending of text block.
Resends the text block up to two times.
Sends EOT and terminates the operation
with error if NAK is still received after the
second resending of text block.
( 9 ) Sends the next text if ACK is received and
sends EOT and waits for ENQ.
sends EOT and waits for ENQ.
( 2 ) Receives ENQ.
Checks the terminal No.
to see if it is its own.
Checks the terminal No.
to see if it is its own.
( 3 ) Sends ACK.
( 6 ) Receives text.
Checks the check sum,text
data,etc. And goes to (8)
if there is no error in them.
Checks the check sum,text
data,etc. And goes to (8)
if there is no error in them.
( 8 ) Sends ACK.
( 10 ) Terminates the operation if EOT
is received.
is received.
ENQ
Host
Satellite
Dummy
(3bytes)
(3bytes)
Terminal No.
(6bytes)
(6bytes)
Start code
Text (parameter)
End code
Text (DATA)
NAK
ACK
( 8 )' Sends NAK if any error
occurs.
occurs.
ENQ
ACK
Continued on the
next page
next page
– 4 –
2) Data transmission from satellite to the host
ACK
EOT
( 1 ) Inquines of the satellite.
( 4 ) Receives ACK.
( 5 ) Sends the text.block.
( 7 ) Resends the text block if NAK is received.
Resends the text block up to two times.
Sends EOT and terminates the operation
with error if NAK is still received after the
second resending of text block.
Resends the text block up to two times.
Sends EOT and terminates the operation
with error if NAK is still received after the
second resending of text block.
( 9 ) Sends the next text if ACK is received and
sends EOT and terminates the operation if
data transfer is finaiized.
sends EOT and terminates the operation if
data transfer is finaiized.
( 2 ) Receives ENQ.
Check the terminal No.
to see if it is its own.
Check the terminal No.
to see if it is its own.
( 3 ) Sends ACK.
( 6 ) Receives text.
Checks the check sum,text
data,etc. And goes to (8)
if there is no error in them.
Checks the check sum,text
data,etc. And goes to (8)
if there is no error in them.
( 8 ) Sends ACK.
( 10 ) Terminates the operation if EOT
is received.
is received.
ENQ
Host
Satellite
Dummy
(3bytes)
(3bytes)
Terminal No.
(6bytes)
(6bytes)
Start code
Text (parameter)
End code
Text (FDS)
Text (DATA)
Three types of
text block formats
are available
text block formats
are available
NCK
ACK
( 8 )' Sends NAK if any error
occurs.
occurs.
– 5 –
( 13 ) Receives text.
Checks the check sum, text lingth, text data, etc.
And goes to (15) if there is no error in them.
Sends NAK if any error occurs.
Checks the check sum, text lingth, text data, etc.
And goes to (15) if there is no error in them.
Sends NAK if any error occurs.
( 15 ) Sends ACK.
( 17 ) Terminates the operation if EOT is received.
( 12 ) Sends text corresponding
to the job code.
to the job code.
( 14 ) Resends text block if NAK is received.
Resends text up to two times,and
performs error handling if NAK is still
received after the second resending
of text block.
Resends text up to two times,and
performs error handling if NAK is still
received after the second resending
of text block.
( 16 ) Sinds the next text if ACK is received,
and sends EOT and terminates the
operation if data transfer is finalized.
and sends EOT and terminates the
operation if data transfer is finalized.
Host
Satellite
EOT
Continued from the
preceding page.
preceding page.
Start code
Text (FDS)
End code
Text (DATA)
Two types of
text block
formats are
available.
text block
formats are
available.
NAK
(When an error
occurs)
occurs)
ACK
Note : For the description of
each data block see section
4 (Text block formats)
each data block see section
4 (Text block formats)
– 6 –
2. Transmission control procedure matrix
1) Down-loading matrix for the host
STATE
Initial
After sending ID ENQ
After sending text
EVENT
0
1
2
ENQ
—
—
—
ACK
—
Sends text and goes to 2.
Sends text and goes to 2.
Sends EOT and then goes to 0.
(Normal end)
Sends EOT and then goes to 0.
(Normal end)
NAK
—
—
Resends the text and then goes to 2.
If the host has resent the text two times, it sends EOT and
goes to 0.
(ERROR END)
If the host has resent the text two times, it sends EOT and
goes to 0.
(ERROR END)
EOT
—
—
The host goes to 0.
(ERROR END)
(ERROR END)
TEXT
—
—
—
TIME-UP
—
Resends ID ENQ and then goes to 1.
If the host has resent ID ENQ two times,it sends EOT and
goes to 0.
(ERROR END)
If the host has resent ID ENQ two times,it sends EOT and
goes to 0.
(ERROR END)
Resends the text and then goes to 2.
If the host has resent the text two times,it sends EOT and
goes to 0.
(ERROR END)
If the host has resent the text two times,it sends EOT and
goes to 0.
(ERROR END)
KEY ENTRY
Sends ID ENQ and goes to 1.
—
—
Time-up: One second after sending of ID ENQ.
Four seconds after sending of text.
– 7 –
Click on the first or last page to see other ER-A440 (serv.man6) service manuals if exist.