text stringlengths 0 99.6k |
|---|
S_Get_DLE Wait for <DLE> from Responder. |
S_DLE_Seen Get character following the <DLE>. |
S_DLE_B_Seen Receive Packet Sequence Number. |
S_Get_Data Receive data portion of packet. |
S_Get_Check Receive check value. |
S_Get_CRC Receive CRC-16. |
S_Verify_CRC Compare received to calculated CRC-16. |
S_Verify_CKS Compare received to calculated checksum. |
S_Verify_Packet Check for failure packet; verify packet |
sequence number. |
S_Send_NAK Count error; send <NAK> to Responder. |
S_Send_ACK Send ACK sequence to Responder. |
S_Send_ENQs Count error; Send two <ENQ> characters to |
Responder. |
S_Resend_Packets Retransmit packet(s) to Responder. |
The State Transition table follows: |
State Event Action Next State |
---------------- ------------ ----------------- ----------- |
S_Get_DLE <DLE> ... S_DLE_Seen |
<NAK> ... S_Send_ENQ |
<ENQ> ... S_Send_ACK |
<ETX> ... S_Send_NAK |
timeout ... S_Send_ENQ |
other ... S_Get_DLE |
S_DLE_Seen <digit> Release Packet return success |
-or- |
If <ENQ> sent S_Resend_Packets |
else S_Get_DLE |
<B> ... S_DLE_B_Seen |
<;> ... S_Get_DLE |
<ENQ> ... S_Send_ACK |
timeout ... S_Send_ENQ |
other ... S_Get_DLE |
S_DLE_B_Seen <ENQ> ... S_Send_ACK |
<char> Save <char> |
Intit Check Value S_Get_Data |
timeout ... S_Send_NAK |
21 |
S_Get_Data <ETX> ... S_Get_Check |
timeout ... S_Send_NAK |
<ENQ> ... S_Send_ACK |
<char> Add <char> to |
check value |
Store <char> in |
buffer S_Get_Data |
S_Get_Check <char> If Check Method is |
CRC_16 S_Get_CRC |
Checksum S_Verify_CKS |
timeout ... S_Send_NAK |
S_Get_CRC <char> Add <char> to |
Received CRC-16 S_Verify_CRC |
timeout ... S_Send_NAK |
S_Verify_CRC ... If Received CRC-16 |
= Calc. CRC-16 S_Verify_Packet |
else S_Send_NAK |
S_Verify_CKS ... If Received CKS |
= Calc. CKS S_Verify_Packet |
else S_Send_NAK |
S_Verify_Packet ... If Saved <char> |
= expected Seq |
number Return size |
-or- |
If Packet Type |
= `F' Return size |
If duplicate |
packet S_Send_ACK |
else S_Send_NAK |
S_Send_NAK ... Count Receive |
Error |
If too many errors Return failure |
If not Aborting |
then Send <NAK> |
S_Get_DLE |
S_Send_ACK ... IF not Aborting |
then Send ACK sequence |
S_Get_DLE |
S_Send_ENQ ... Send <ENQ><ENQ> S_Get_DLE |
S_Resend_Packets ... Send all un-ACKed |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.