Casio LK-270 MIDI Implementation - Page 34

Handshake Mode Communication Flow

Page 34 highlights

21.3 Handshake Mode Communication Flow A session starts with the receiving device sending a request using a HBR, or with the sending device sending HBS 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 is treated as a timeout error, and data communication is terminated. The receiving devices returns ERR (error) when there is mismatch in the received data checksum or when an incompatible data format is discovered. When the sending device receives ERR (error) from the receiving device, it resends the last data sent. If an error repeats a number of times (three times or more for this Instrument), either the sending device or the receiving device sends an RJC to terminate the session. A session ends after the sending device transfers the volume of data determined by the number of parameter sets being transferred, and sends EOD and EOS in response to an ACK from the sending device. Data Receiver Data Sender HBR → ← HBS ACK → ← HBS ACK → : : ACK → ← EOD : Other subsessions : ← EOS Operation Send Request (Optional) Data Send Acknowledge Data Send Acknowledge Acknowledge End of Data End of Session 34

  • 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

34
21.3
Handshake Mode Communication Flow
A session starts with the receiving device sending a request using a HBR, or with the sending device sending HBS 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 is treated as a timeout error,
and data communication is terminated.
The receiving devices returns ERR (error) when there is mismatch in the received data checksum or when an incompatible
data format is discovered. When the sending device receives ERR (error) from the receiving device, it resends the last data
sent. If an error repeats a number of times (three times or more for this Instrument), either the sending device or the receiving
device sends an RJC to terminate the session.
A session ends after the sending device transfers the volume of data determined by the number of parameter sets being
transferred, and sends EOD and EOS in response to an ACK from the sending device.
Data Receiver
Data Sender
Operation
HBR
Send Request (Optional)
HBS
Data Send
ACK
Acknowledge
HBS
Data Send
ACK
Acknowledge
:
:
ACK
Acknowledge
EOD
End of Data
:
Other subsessions
:
EOS
End of Session