One-Way Protocol Communication Flow; Handshake Protocol Communication Flow - Casio CTK-691 Midi Implementation Manual

Casio ctk-691: user guide
Hide thumbs Also See for CTK-691:
Table of Contents

Advertisement

19.2

One-way Protocol Communication Flow

A session starts with the receiving device sending a request using a BDR, or with the sending device sending
BDS data. The session ends after transfer of all the data in the parameter set being transferred by the sending
device is complete.
Data is divided into multiple packets of 256 bytes or less each, and transfers them at fixed intervals (20 msec).
A final EOD informs the receiving device when the session is ended.
Data Receiver
BDR →
← BDS
(20 msec or greater interval)
← BDS
(20 msec or greater interval)
← BDS
(20 msec or greater interval)
:
:
← EOD
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
HDR →
← HDS
HDA →
← HDS
HDA →
:
:
HDA →
← EOD
The same packet is resent when a checksum mismatch or incompatible data structure error is detected.
Data Sender
Send Request (Optional)
Data Sender
Send Request (Optional)
Operation
Data Transfer
Data Transfer
Data Transfer
Data End
Operation
Data Send
Acknowledge
Data Send
Acknowledge
Acknowledge
Data End
39

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Wk-3000Wk-3500

Table of Contents