Casio WK3800 Instruction Manual - Page 41

Handshake Protocol Communication Flow

Page 41 highlights

19.3 Handshake Protocol Communication Flow A session starts with the receiving device sending a request using an HDR or with the sending device sending HDS data. The sending device does not send the next packet until it receives an ACK from the receiving device. The maximum wait time of at least 2000 msec is reserved. Failure of a response to arrive within the wait time (at least 2000 msec) is treated as a timeout error, and data communication is terminated. The sending device resends the last data if the receiving device returns an HDE (error) due to checksum mismatch, incompatible data structure, or some other reason. If an error repeats a number of times (undefined), either the sending device or the receiving device sends an HDJ to terminate the session. A session ends after the sending device sends all the parameter sets, and sends a final EOD in response to an HAD (ACK) from the sending device. Data Receiver Data Sender HDR → ← HDS HDA → ← HDS HDA → : : HDA → ← EOD : Other subsessions : ← EOS Operation Send Request (Optional) Data Send Acknowledge Data Send Acknowledge Acknowledge Data End End of session The same packet is resent when a checksum mismatch or incompatible data structure error is detected. Data Receiver Data Sender HDR → ← HDS HDA → ← HDS HDE → ← HDS : : HDE → ← EOD : Other subsessions : ← EOS Operation Send Request (Optional) Data Send Acknowledge Data Send Error Data Resend Error Data End End of session Data send is canceled when no acknowledgement (ACK) is received. 41

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84

41
19.3
Handshake Protocol Communication Flow
A session starts with the receiving device sending a request using an HDR or with the sending device sending
HDS data.
The sending device does not send the next packet until it receives an ACK from the receiving device. The
maximum wait time of at least 2000 msec is reserved. Failure of a response to arrive within the wait time (at
least 2000 msec) is treated as a timeout error, and data communication is terminated.
The sending device resends the last data if the receiving device returns an HDE (error) due to checksum mismatch,
incompatible data structure, or some other reason. If an error repeats a number of times (undefined), either the
sending device or the receiving device sends an HDJ to terminate the session.
A session ends after the sending device sends all the parameter sets, and sends a final EOD in response to an
HAD (ACK) from the sending device.
The same packet is resent when a checksum mismatch or incompatible data structure error is detected.
Data send is canceled when no acknowledgement (ACK) is received.
Data Receiver
Data Sender
Operation
HDR
Send Request (Optional)
HDS
Data Send
HDA
Acknowledge
HDS
Data Send
HDA
Acknowledge
:
:
HDA
Acknowledge
EOD
Data End
:
Other subsessions
:
EOS
End of session
Data Receiver
Data Sender
Operation
HDR
Send Request (Optional)
HDS
Data Send
HDA
Acknowledge
HDS
Data Send
HDE
Error
HDS
Data Resend
:
:
HDE
Error
EOD
Data End
:
Other subsessions
:
EOS
End of session