JP2010176147A - Bus system for electronic musical instrument - Google Patents

Bus system for electronic musical instrument Download PDF

Info

Publication number
JP2010176147A
JP2010176147A JP2010086869A JP2010086869A JP2010176147A JP 2010176147 A JP2010176147 A JP 2010176147A JP 2010086869 A JP2010086869 A JP 2010086869A JP 2010086869 A JP2010086869 A JP 2010086869A JP 2010176147 A JP2010176147 A JP 2010176147A
Authority
JP
Japan
Prior art keywords
data
address
midi
bus system
host
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2010086869A
Other languages
Japanese (ja)
Other versions
JP4877401B2 (en
Inventor
Shinya Sakurada
信弥 櫻田
Akira Iizuka
朗 飯塚
Harumichi Hotta
晴道 堀田
Masaki Kudo
政樹 工藤
Shizuhiko Kawai
靜彦 川合
孝藏 ▲徳▼田
Kozo Tokuda
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yamaha Corp
Original Assignee
Yamaha Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yamaha Corp filed Critical Yamaha Corp
Priority to JP2010086869A priority Critical patent/JP4877401B2/en
Publication of JP2010176147A publication Critical patent/JP2010176147A/en
Application granted granted Critical
Publication of JP4877401B2 publication Critical patent/JP4877401B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To make a communication among a plurality of kinds of devices constituting an electronic musical instrument through a bus. <P>SOLUTION: When a main controller device 10 communicates with a keyboard device 14, the communication is carried out by a standard protocol. In this case, the main controller device 10 serves as a master to constitute a header part of an address unique to the keyboard device 14 which is a slave address as a transmission destination address and an address for the standard protocol of the main controller device 10 as a transmission source address and sends it to an E bus 11 together with a data part. Since the transmission destination address matches the address of the keyboard device 14, the keyboard device receives the transmission source address and the data part following the transmission destination address. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、電子楽器に内蔵されるに適している電子楽器用バスシステムに関する。   The present invention relates to a bus system for an electronic musical instrument that is suitable for being incorporated in an electronic musical instrument.

従来の電子楽器において、1つのCPU(Central Processing Unit)だけを有している電子楽器においては、鍵盤における各鍵の操作を検出する鍵盤スイッチや音色設定等の各種設定を行うパネルスイッチ等のパネル操作子は、パラレルI/O(Input-output)に接続されている。そして、パラレルI/Oを介して鍵盤スイッチやパネル操作子の操作情報をCPUが取り込んで、取り込まれた操作情報に基づく音源パラメータを生成し、発音タイミングに対応させてその音源パラメータを音源に転送することにより発音するようにしている。   In an electronic musical instrument having only one CPU (Central Processing Unit) in a conventional electronic musical instrument, a panel such as a keyboard switch for detecting operation of each key on the keyboard and a panel switch for performing various settings such as tone settings The operation element is connected to a parallel I / O (Input-output). Then, the CPU captures the operation information of the keyboard switch and the panel operator via the parallel I / O, generates a sound source parameter based on the captured operation information, and transfers the sound source parameter to the sound source in accordance with the sound generation timing. By trying to pronounce it.

また、従来の電子楽器において、複数のCPUを備えている電子楽器も知られている。このように複数のCPUを備えている電子楽器においては、複数のCPUで機能を分担するようにしている。例えば、鍵盤CPUは、鍵盤スイッチのスキャンを行い各鍵の操作情報を検出して出力するようにしており、パネルCPUは、パネル操作子のスキャンを行い各パネル操作子の操作情報を検出して出力したり、パネル表示器の表示制御等を行っている。また、メインCPUは、鍵盤CPUから鍵盤の操作信号を、パネルCPUからパネル操作子の操作情報を受けて、操作情報に基づく音源パラメータを生成し、発音タイミングに対応させてその音源パラメータを音源に転送することにより発音するようにしている。この場合、メインCPUは、鍵盤CPUおよびパネルCPUとそれぞれ独立してシリアル通信路により接続されており、このシリアル通信路を介して相互に通信を行っている。   In addition, a conventional electronic musical instrument that includes a plurality of CPUs is also known. In such an electronic musical instrument having a plurality of CPUs, the functions are shared by the plurality of CPUs. For example, the keyboard CPU scans the keyboard switch to detect and output the operation information of each key, and the panel CPU scans the panel operator to detect the operation information of each panel operator. Output and display control of the panel display. Further, the main CPU receives a keyboard operation signal from the keyboard CPU and a panel controller operation information from the panel CPU, generates a sound source parameter based on the operation information, and uses the sound source parameter as a sound source corresponding to the sound generation timing. It is made to pronounce by transferring. In this case, the main CPU is independently connected to the keyboard CPU and the panel CPU via a serial communication path, and communicates with each other via the serial communication path.

従来のCPUを1つだけ備える電子楽器においては、製品毎に機能や形状が異なることから電子楽器に内蔵される基板をその都度設計して搭載しなければならず、既に開発された製品や他の製品に搭載した基板を流用することができないという問題点があった。   In an electronic musical instrument having only one conventional CPU, the function and shape differ from product to product, so a board built in the electronic musical instrument must be designed and installed each time. There is a problem that the board mounted on the product cannot be diverted.

また、従来の複数のCPUを備える電子楽器においては、各製品毎にメインCPUと鍵盤CPUとの通信仕様、および、メインCPUとパネルCPUとの通信仕様を決定するようにしていたため、既に開発された製品や他の製品に搭載した各種基板間においては相互に接続することができない場合があり、それらの基板を流用することができないという問題点があった。さらに、例えば複数の鍵盤が必要とされる場合は、鍵盤CPUを搭載した新たな鍵盤基板をメインCPUが搭載されたメイン基板に接続しなければならない。すると、新たな接続ハードウェアをメイン基板に追加しなければならず、メイン基板を開発し直さなければならないという問題点があった。   Further, in the conventional electronic musical instrument having a plurality of CPUs, the communication specifications between the main CPU and the keyboard CPU and the communication specifications between the main CPU and the panel CPU are determined for each product. In some cases, the various substrates mounted on the product or other products cannot be connected to each other, and the substrates cannot be used. Furthermore, for example, when a plurality of keyboards are required, a new keyboard board on which the keyboard CPU is mounted must be connected to the main board on which the main CPU is mounted. Then, there was a problem that new connection hardware had to be added to the main board, and the main board had to be re-developed.

そこで、本発明は、電子楽器を構成する複数種類のデバイスの間で行う通信を、バスにデバイスを接続することでバスを通じて通信を行うことのできる電子楽器用バスシステムを提供することを目的としている。   Accordingly, an object of the present invention is to provide an electronic musical instrument bus system capable of performing communication between a plurality of types of devices constituting an electronic musical instrument through the bus by connecting the device to the bus. Yes.

上記目的を達成するために、本発明は、双方向シリアルバスに接続されているホストデバイスと、操作入力デバイスと、MIDIデバイスとを接続して電子楽器を構成することを最も主要な特徴としている。   In order to achieve the above object, the present invention has the main feature that an electronic musical instrument is configured by connecting a host device connected to a bidirectional serial bus, an operation input device, and a MIDI device. .

このような発明によれば、ホストデバイスが接続されているバスに、鍵盤やパネルの操作入力デバイスや、MIDIデバイスを任意に接続して電子楽器を構成することができるようになる。   According to such an invention, an electronic musical instrument can be configured by arbitrarily connecting a keyboard or panel operation input device or a MIDI device to a bus to which a host device is connected.

本発明の電子楽器用バスシステムが適用されている電子楽器の実施例におけるハードウェア構成を示すブロック図である。It is a block diagram which shows the hardware constitutions in the Example of the electronic musical instrument to which the bus system for electronic musical instruments of this invention is applied. 本発明の実施例にかかる電子楽器用バスシステムの結線の概要を示す構成図である。It is a block diagram which shows the outline | summary of the connection of the bus system for electronic musical instruments concerning the Example of this invention. 本発明の実施例にかかるEバスシステムの具体的構成を示す図である。It is a figure which shows the specific structure of the E bus system concerning the Example of this invention. 本発明の実施例にかかるEバスシステムにおけるSCLラインとSDAラインにおけるデータ転送時の波形タイミング図を示す図である。It is a figure which shows the waveform timing diagram at the time of the data transfer in the SCL line and SDA line in the E bus system concerning the Example of this invention. 本発明の実施例にかかるEバスシステムにおけるカテゴリーID、サブアドレス範囲、カテゴリー名および適応される通信プロトコルを示すテーブルである。It is a table which shows category ID, subaddress range, category name, and applicable communication protocol in the E bus system concerning the Example of this invention. 本発明の実施例にかかるEバスシステムにおけるデータフォーマットを示す図である。It is a figure which shows the data format in the E bus system concerning the Example of this invention. 本発明の実施例にかかるEバスシステムにおける共通プロトコルのホスト送信およびホスト受信のコマンドを示す図表である。It is a table | surface which shows the command of host transmission of a common protocol in the E bus system concerning the Example of this invention, and host reception. 本発明の実施例にかかるEバスシステムにおける標準プロトコルのホスト送信およびホスト受信のコマンドを示す図表である。It is a table | surface which shows the command of host transmission and host reception of the standard protocol in the E bus system concerning the Example of this invention. 本発明の実施例にかかるEバスシステムにおけるMIDIプロトコルのホスト送受信のコマンドを示す図表である。It is a table | surface which shows the command of host transmission / reception of the MIDI protocol in the E bus system concerning the Example of this invention. 本発明の実施例にかかるEバスシステムにおけるEバス起動手順を示すフローチャートである。It is a flowchart which shows the E bus starting procedure in the E bus system concerning the Example of this invention. 本発明の実施例にかかるEバスシステムにおけるホスト受信処理のフローチャートである。It is a flowchart of the host reception process in the E bus system concerning the Example of this invention. 本発明の実施例にかかるEバスシステムにおけるホスト送信処理のフローチャートである。It is a flowchart of the host transmission process in the E bus system concerning the Example of this invention. 本発明の実施例にかかるEバスシステムにおける鍵盤送信/受信処理のフローチャートである。It is a flowchart of the keyboard transmission / reception process in the E bus system concerning the Example of this invention. 本発明の実施例にかかるEバスシステムにおけるMIDI送信/受信処理のフローチャートである。It is a flowchart of the MIDI transmission / reception process in the E bus system concerning the Example of this invention.

本発明の電子楽器用バスシステムが適用されている電子楽器における実施例のハードウェア構成をブロック図で図1に示し、本発明の電子楽器用バスシステムの結線の概要を図2に示す。
本発明の電子楽器用バスシステムは、図1に示す電子楽器1に内蔵されているEバス11からなるEバスシステム、および図2に示すEバス11からなるEバスシステムとして示されている。このEバスシステムにおけるEバス11には、メインCPU(Central Processing Unit)やメインROM(Read Only Memory)、メインRAM(Random Access Memory)等が搭載されているメイン基板10aを備えるメインコントローラデバイス10(ホストデバイス)と、パネルCPUやパネルROM、パネルRAM等が搭載されているパネル基板12a、13aをそれぞれ備えるパネルデバイス12,13と、鍵盤CPUや鍵盤ROM、鍵盤RAM等が搭載されている鍵盤基板14a、15aをそれぞれ備える鍵盤デバイス14,15と、MIDICPUやMIDIROM、MIDIRAM等が搭載されているMIDI基板16aを備えるMIDIデバイス16とが接続されている。
FIG. 1 is a block diagram showing a hardware configuration of an embodiment of an electronic musical instrument to which the bus system for an electronic musical instrument of the present invention is applied, and FIG. 2 shows an outline of connection of the bus system for the electronic musical instrument of the present invention.
The bus system for an electronic musical instrument of the present invention is shown as an E bus system comprising an E bus 11 built in the electronic musical instrument 1 shown in FIG. 1 and an E bus system comprising an E bus 11 shown in FIG. The E bus 11 in the E bus system includes a main controller device 10 (including a main board 10a on which a main CPU (Central Processing Unit), a main ROM (Read Only Memory), a main RAM (Random Access Memory), and the like are mounted. Host device), panel devices 12 and 13 having panel CPUs, panel ROMs, panel RAMs, and the like, respectively, and keyboard substrates having keyboard CPUs, keyboard ROMs, keyboard RAMs, and the like. Keyboard devices 14 and 15 having 14a and 15a, respectively, and a MIDI device 16 having a MIDI substrate 16a on which a MIDI CPU, MIDI ROM, MIDI RAM, and the like are mounted are connected.

メインコントローラデバイス10は、電子楽器1の全体の動作を制御することにより、鍵盤デバイス14,15やパネルデバイス12,13から取り込んだ鍵盤スイッチやパネル操作子の操作情報に基づく楽音を発生するための制御処理や、MIDIデバイス16から受信したMIDI(Musical Instrument Digital Interface)メッセージに応じた楽音を発生するための制御処理を行っている。また、メインコントローラデバイス10におけるメイン基板10aに搭載されているメインROMには、メインCPUが実行する制御プログラムや、音色データ、伴奏パターン、楽曲データ等のプリセットデータが格納されている。さらに、メイン基板10aに搭載されているRAMには、メインCPUが制御プログラム等を実行する際に使用するワーキングメモリ領域、音色データや伴奏パターン等のユーザ領域等が設定される。   The main controller device 10 controls the overall operation of the electronic musical instrument 1 to generate musical sounds based on the operation information of the keyboard switches and the panel controls taken from the keyboard devices 14 and 15 and the panel devices 12 and 13. Control processing and control processing for generating musical sounds according to a MIDI (Musical Instrument Digital Interface) message received from the MIDI device 16 are performed. The main ROM mounted on the main board 10a in the main controller device 10 stores a control program executed by the main CPU and preset data such as timbre data, accompaniment patterns, and music data. Further, in the RAM mounted on the main board 10a, a working memory area used when the main CPU executes a control program and the like, a user area such as timbre data and an accompaniment pattern, and the like are set.

また、パネルデバイス12,13には、音色設定やエフェクト設定用のパネルスイッチや、ボリュームやホイール等のコンティニュアスコントローラ、JOGコントローラ等のパネル操作子が設けられており、音色の選択や音色パラメータを変更することができるようにされている。パネルCPUは、パネルデバイス12,13に設けられているパネル操作子をスキャンしてその操作イベントや操作量を検出している。この場合、パネル操作子によっては操作量を相対値で検出するようにする。パネルデバイス12,13におけるパネル基板12a、13aにそれぞれ搭載されているパネルROMには、パネルCPUが実行するスキャンプログラム等が格納されている。さらに、パネル基板12a、13aにそれぞれ搭載されているパネルRAMには、パネルCPUがスキャンプログラム等を実行する際に使用するワーキングメモリ領域等の領域が設定される。   Further, the panel devices 12 and 13 are provided with panel switches for tone setting and effect setting, panel controllers such as a volume controller and a wheel, a continuous controller such as a volume and a wheel, and a JOG controller. Has been able to change. The panel CPU scans the panel operators provided in the panel devices 12 and 13 and detects the operation events and the operation amounts. In this case, the operation amount is detected as a relative value depending on the panel operator. In the panel ROMs mounted on the panel substrates 12a and 13a in the panel devices 12 and 13, respectively, a scan program executed by the panel CPU is stored. Furthermore, areas such as a working memory area used when the panel CPU executes a scan program or the like are set in the panel RAMs respectively mounted on the panel substrates 12a and 13a.

さらにまた、鍵盤デバイス14,15には、複数の鍵と各鍵の操作に応じてオン/オフする鍵盤スイッチが設けられている。鍵盤CPUは、鍵盤デバイス14,15に設けられている鍵盤スイッチをスキャンして、ノートオン/ノートオフのキーイベントやベロシティおよびアフタータッチの値を検出している。鍵盤デバイス14,15における鍵盤基板14a、15aにそれぞれ搭載されている鍵盤ROMには、鍵盤CPUが実行するスキャンプログラム等が格納されている。さらに、鍵盤基板14a、15aにそれぞれ搭載されている鍵盤RAMには、鍵盤CPUがスキャンプログラム等を実行する際に使用するワーキングメモリ領域等が設定される。   Furthermore, the keyboard devices 14 and 15 are provided with a plurality of keys and a keyboard switch that is turned on / off according to the operation of each key. The keyboard CPU scans keyboard switches provided in the keyboard devices 14 and 15 to detect note-on / note-off key events, velocity and aftertouch values. The keyboard ROMs respectively mounted on the keyboard substrates 14a and 15a in the keyboard devices 14 and 15 store scan programs executed by the keyboard CPU. Furthermore, a working memory area used when the keyboard CPU executes a scan program or the like is set in the keyboard RAM mounted on each of the keyboard boards 14a and 15a.

さらにまた、MIDIデバイス16は、MIDI端子やTo Host端子を備えたMIDI入出力デバイス、自動演奏が可能なMIDIシーケンスデバイス、MIDI鍵盤等のMIDI対応のデバイスであり、ホストコンピュータに接続するためのTo Host端子を備えることができる。Eバスシステムにおいては、MIDIデバイス16は、演奏データや演奏関連データをMIDIのフォーマットのままで送受信することができるようにされている。MIDICPUは、MIDIデバイス16の動作を制御しており、MIDIデバイス16におけるMIDI基板16aに搭載されているMIDIROMには、MIDICPUが実行するMIDI制御プログラムやMIDI制御データが格納されている。さらに、MIDI基板16aに搭載されているMIDIRAMには、MIDICPUがMIDI制御プログラム等を実行する際に使用するワーキングメモリ領域等が設定される。なお、MIDIデバイス16にTo Host端子を設けると、電子楽器1をTo Host端子付きモデルとすることができる。   The MIDI device 16 is a MIDI compatible device such as a MIDI input / output device having a MIDI terminal or a To Host terminal, a MIDI sequence device capable of automatic performance, a MIDI keyboard or the like, and is connected to a host computer. A Host terminal can be provided. In the E-bus system, the MIDI device 16 can transmit and receive performance data and performance-related data in the MIDI format. The MIDI CPU controls the operation of the MIDI device 16, and the MIDI ROM mounted on the MIDI board 16a in the MIDI device 16 stores a MIDI control program executed by the MIDI CPU and MIDI control data. Further, a working memory area used when the MIDI CPU executes a MIDI control program or the like is set in the MIDI RAM mounted on the MIDI board 16a. If the MIDI device 16 is provided with a To Host terminal, the electronic musical instrument 1 can be a model with a To Host terminal.

図1および図2に示す電子楽器1において、メインコントローラデバイス10は、メインコントローラデバイス10とパネルデバイス12,13、鍵盤デバイス14,15およびMIDIデバイス16との間を接続しているEバス11を介して、演奏イベントデータや音色等に関する演奏関連データを受け取り、イベント開始時刻に達した際にバス21を介して音源ユニット22,23,24に音源制御データを送り楽音の生成を開始させる。音源ユニット22,23,24で生成された楽音はバス31を介してサウンドシステム32に供給されて、サウンドシステム32から放音されるようになる。バス21には、I/Oユニット25,26を介して他のユニットを接続することができる。   In the electronic musical instrument 1 shown in FIGS. 1 and 2, the main controller device 10 includes an E bus 11 that connects the main controller device 10 and the panel devices 12 and 13, the keyboard devices 14 and 15, and the MIDI device 16. The performance-related data relating to performance event data, tone color, etc. is received via the bus 21. When the event start time is reached, the sound source control data is sent to the sound source units 22, 23, 24 via the bus 21 to start generating musical sounds. The musical sounds generated by the sound source units 22, 23, 24 are supplied to the sound system 32 via the bus 31 and are emitted from the sound system 32. Other units can be connected to the bus 21 via I / O units 25 and 26.

ところで、本発明の実施例にかかるEバスシステムに、メインコントローラデバイス10、パネルデバイス12,13、鍵盤デバイス14,15およびMIDIデバイス16を接続する場合には、図2に示すようにそれぞれのデバイスにおける基板のバス端子に、Eバス11を構成しているワイヤーの一端に設けられているコネクタを装着する。このワイヤーの他端は、分岐基板17におけるEバス11を構成している信号線および電源線にそれぞれ接続されている。このように、それぞれのデバイスの基板にEバス11のコネクタを装着することにより、そのデバイスをEバスシステムに接続することができる。このため、必要に応じてデバイスをEバス11のコネクタから脱着することにより、Eバスシステムからデバイスの追加/取り外しを可能とすることができる。なお、Eバスシステムに接続されたデバイスにはEバス11から電源が供給されるようになる。図2に示す構成の場合は、分岐基板17に図示しない電源部から電源が供給されている。そして、Eバス11のコネクタは例えば7ピンとされ、そのうち3ピンが信号線用として使用され、残る4ピンが電源用として使用される。   By the way, when the main controller device 10, the panel devices 12, 13, the keyboard devices 14, 15 and the MIDI device 16 are connected to the E bus system according to the embodiment of the present invention, as shown in FIG. A connector provided at one end of a wire constituting the E bus 11 is attached to the bus terminal of the board. The other end of the wire is connected to a signal line and a power supply line constituting the E bus 11 in the branch substrate 17. In this way, by attaching the connector of the E bus 11 to the board of each device, the device can be connected to the E bus system. For this reason, it is possible to add / remove devices from / from the E bus system by detaching the devices from the connector of the E bus 11 as necessary. Note that power is supplied from the E bus 11 to devices connected to the E bus system. In the case of the configuration shown in FIG. 2, power is supplied to the branch substrate 17 from a power supply unit (not shown). The connector of the E bus 11 is, for example, 7 pins, of which 3 pins are used for signal lines and the remaining 4 pins are used for power supply.

本発明の実施例にかかるEバスシステムを電子楽器1に用いるようにすると、例えば電子楽器1をオルガン型の2段鍵盤電子楽器モデルとしたい場合には、図2に示すように鍵盤デバイス14と鍵盤デバイス15とをそれぞれメイン基板、パネル基板等の接続されたEバスのコネクタに装着すればよいようになる。また、3段鍵盤電子楽器モデルとしたい場合は、さらに鍵盤デバイスをEバス11のコネクタに装着すればよい。さらに、メイン基板、パネル基板、鍵盤基板をEバスに接続した電子楽器において、鍵盤デバイスのみを交換することにより、例えば61鍵電子楽器モデルから76鍵電子楽器モデルとすることができる。さらにまた、パネルデバイスを交換することにより、パネルスイッチの多いモデルや少ないモデルに対応させることができる。このように、電子楽器を構成する複数基板のうちの一部の基板を、自由に追加、削除、あるいは変更することが可能である。   When the E-bus system according to the embodiment of the present invention is used in the electronic musical instrument 1, for example, when the electronic musical instrument 1 is to be an organ type two-stage keyboard electronic musical instrument model, as shown in FIG. The keyboard device 15 may be attached to a connected E-bus connector such as a main board or a panel board. If it is desired to use a three-stage keyboard electronic musical instrument model, a keyboard device may be further attached to the connector of the E bus 11. Furthermore, in an electronic musical instrument in which a main board, a panel board, and a keyboard board are connected to an E bus, for example, a 61-key electronic musical instrument model can be changed to a 76-key electronic musical instrument model by exchanging only the keyboard device. Furthermore, by replacing the panel device, it is possible to correspond to a model with many or few panel switches. As described above, it is possible to freely add, delete, or change some of the plurality of substrates constituting the electronic musical instrument.

本発明にかかる電子楽器用バスシステムであるEバスシステムについて、以下に詳細に説明する。
Eバスシステムは、双方向シリアルバスとされており、信号線はシリアルクロックライン(以下、「SCLライン」という)と、シリアルデータライン(以下、「SDAライン」という)と、イニシャルクリアラインの3本とされている。この場合、SDAラインにはSCLラインに送出されるクロックに同期したデータ信号が送出される。そして、イニシャルクリアラインには、Eバスシステムの立ち上げ時やリセット時にリセット信号が送出される。Eバスシステムの電源ラインは4本とされており、この電源ラインからEバスシステムに接続されているデバイスに電源が供給されている。Eバスシステムの通信速度は、100kbps、400kbsまたは3.4Mbpsのいずれかとすることができる。
The E bus system which is a bus system for an electronic musical instrument according to the present invention will be described in detail below.
The E bus system is a bi-directional serial bus, and signal lines include a serial clock line (hereinafter referred to as “SCL line”), a serial data line (hereinafter referred to as “SDA line”), and an initial clear line. It is a book. In this case, a data signal synchronized with the clock sent to the SCL line is sent to the SDA line. A reset signal is sent to the initial clear line when the E bus system is started up or reset. The E bus system has four power lines, and power is supplied from the power lines to devices connected to the E bus system. The communication speed of the E-bus system can be either 100 kbps, 400 kbps, or 3.4 Mbps.

また、Eバスシステムには、複数のデバイスを順次接続(バス型接続)することができ、接続されたデバイスは、唯一無二の固有のアドレスを持つようにされている。この固有のアドレスは、例えば7ビットとされる。この固有のアドレスのテーブルを図5に示すが、固有のアドレスは4ビットのカテゴリーIDと3ビットのサブアドレスから構成される。カテゴリーIDは、デバイスのカテゴリーの種類を示しており、サブアドレスは同種のカテゴリーのデバイスの内の自デバイスを示すアドレスである。カテゴリー種類を示す上位アドレスであるカテゴリーIDは、そのデバイスの基板の作成時においてデバイスのカテゴリー種類に応じて予め設定されており、サブアドレスは電子楽器1に組み込まれる際に他の同種のデバイスのサブアドレスと重複しないようにジャンパピンやディップスイッチにより設定される。なお、カテゴリーの種類は、メインコントローラデバイス10が属するホスト系、鍵盤デバイス14,15が属する鍵盤系、パネルデバイス12,13が属するパネル系、MIDIデバイスが属するMIDI系、鍵盤/パネルが複合されている鍵盤/パネル複合系とされる。   In addition, a plurality of devices can be sequentially connected (bus type connection) to the E bus system, and the connected devices have unique and unique addresses. This unique address is, for example, 7 bits. This unique address table is shown in FIG. 5. The unique address is composed of a 4-bit category ID and a 3-bit sub-address. The category ID indicates the category type of the device, and the sub-address is an address indicating the own device among the devices of the same category. The category ID, which is a higher-order address indicating the category type, is set in advance according to the category type of the device when the board of the device is created, and the subaddress is the subaddress of another device of the same type when incorporated in the electronic musical instrument 1. It is set by a jumper pin or a dip switch so that it does not overlap. The types of categories include a host system to which the main controller device 10 belongs, a keyboard system to which keyboard devices 14 and 15 belong, a panel system to which panel devices 12 and 13 belong, a MIDI system to which MIDI devices belong, and a keyboard / panel. Keyboard / panel composite system.

Eバスシステム上のデバイス間の通信は、マスター・スレーブ動作による通信とされ、マルチ・マスター可能とされている。なお、マスターとはEバスシステム上でデータ転送を開始すると共に、転送を可能にするクロックパルスを生成してSCLラインに送出し、さらにデータ転送を終了することのできるデバイスである。また、スレーブはマスターによってアドレス指定される送信先のデバイスである。なお、マルチ・マスターとはメッセージを失うことなく、複数のマスターが同時にEバスシステムをコントロールすることができることをいう。   Communication between devices on the E-bus system is communication by master / slave operation, and multi-master is possible. The master is a device that can start data transfer on the E-bus system, generate a clock pulse that enables transfer, send it to the SCL line, and end the data transfer. A slave is a destination device that is addressed by a master. Multi-master means that a plurality of masters can simultaneously control the E-bus system without losing messages.

さらに、Eバスシステムにおいて、複数のマスターが同時にEバスシステム上にデータを転送しようとした際には、データ破壊を防止するためにデータの衝突検出機能およびアービトレーション(調停)の機能が備えられている。Eバスシステムでは、送信先のデバイスにおけるカテゴリー名の優先順位に従うアービトレーションが行われる。カテゴリー名は、カテゴリーの種類を拡張したものであり、図5に固有のアドレスとカテゴリー名とのテーブルが示されている。その優先順位は、カテゴリー名が全てのデバイスが送信先とされるゼネラルコールの優先順位が最も高くされ、カテゴリー名がホスト系の優先順位が2番目とされ、カテゴリー名が鍵盤系の優先順位が3番目とされ、カテゴリー名が鍵盤/パネル複合系の優先順位が4番目とされ、カテゴリー名がパネル系の優先順位が5番目とされ、カテゴリー名がMIDI系の優先順位が最後とされている。これらの優先順位は、重要度およびリアルタイム性を勘案して決められている。   Further, in the E bus system, when a plurality of masters try to transfer data onto the E bus system at the same time, a data collision detection function and an arbitration function are provided to prevent data destruction. Yes. In the E-bus system, arbitration is performed according to the priority order of category names in the destination device. The category name is an extension of the category type, and FIG. 5 shows a table of unique addresses and category names. As for the priority, the priority of the general call where the category name is the destination of all devices is the highest, the category name is the host system priority, the category name is the keyboard priority. 3rd, category name is 4th in keyboard / panel priority, category is 5th in panel, and category is last in MIDI. . These priorities are determined in consideration of importance and real-time characteristics.

さらにEバスシステムでは、送信元アドレスおよび送信先アドレスにおいて、該アドレスの属するカテゴリー名に対応する通信プロトコルを使用して通信するようにしている。図5に、カテゴリー名と通信プロトコルとのテーブルを示している。図5に示すように、鍵盤デバイス14,15が属する鍵盤系あるいはパネルデバイス12,13が属するパネル系と、メインコントローラデバイス10が属するホスト系との間で通信を行う場合は、マンマシンインタフェース用プロトコルである後述する標準プロトコルを使用して通信が行われる。また、MIDIデバイス16が属するMIDI系とメインコントローラデバイス10が属するホスト系との間で通信を行う場合は、演奏情報伝達用プロトコルである後述するMIDIプロトコルを使用して通信が行われる。また、カテゴリー名がゼネラルコールの場合は、制御用プロトコルである後述する共通プロトコルを使用して、ホスト系は、鍵盤系、パネル系、MIDI系と通信を行う。共通プロトコルは、標準プロトコルおよびMIDIプロトコルの共通部分から構成されている。なお、ゼネラルコールのアドレス「0000 000」に送信を行なえるのはホスト系のみであり、他の鍵盤系、パネル系、MIDI系のデバイスが共通プロトコルによる送信を行ないたい場合は各自の固有のアドレスを使用する。   Further, in the E bus system, communication is performed using a communication protocol corresponding to the category name to which the address belongs at the transmission source address and the transmission destination address. FIG. 5 shows a table of category names and communication protocols. As shown in FIG. 5, when communication is performed between the keyboard system to which the keyboard devices 14 and 15 or the panel system to which the panel devices 12 and 13 belong and the host system to which the main controller device 10 belongs, Communication is performed using a standard protocol, which will be described later. Further, when communication is performed between the MIDI system to which the MIDI device 16 belongs and the host system to which the main controller device 10 belongs, communication is performed using a MIDI protocol, which will be described later, which is a protocol for transmitting performance information. When the category name is general call, the host system communicates with the keyboard system, panel system, and MIDI system using a common protocol, which will be described later, which is a control protocol. The common protocol is composed of common parts of the standard protocol and the MIDI protocol. Note that only the host system can transmit to the general call address “0000 000”. If other keyboard, panel, and MIDI devices want to transmit using a common protocol, their own unique address. Is used.

このように、ホスト系のメインコントローラデバイス10は、カテゴリー名に適応する通信プロトコルで通信を行うことができるようにされている。ホスト系が他のカテゴリー名のデバイスと通信を行う際には、通信プロトコルを決定する必要があるが、通信に先立ってホスト系は送信先アドレスをアドレス指定する。この送信先アドレスは、デバイスにおける固有のアドレスであり、固有のアドレスの上位4ビットはカテゴリーIDとなっている。そこで、ホスト系は送信先アドレスから通信相手であるデバイスのカテゴリー名および使用する通信プロトコルを図5のテーブルを参照して知ることができる。なお、図5に示すようにホストには、ホスト系の2つの通信プロトコルに対応する2つの固有アドレスが与えられており、通信相手とされるデバイスのカテゴリー名に適応する通信プロトコルのアドレスを用いて通信を行うようにしている。それ以外に、ホスト系のデバイスは標準プロトコルによる通信を行うことができるが、そこでは該2つの固有アドレスとゼネラルコールのアドレスの内の何れかを使用する。   In this way, the host main controller device 10 can communicate with the communication protocol adapted to the category name. When the host system communicates with a device of another category name, it is necessary to determine a communication protocol. However, prior to communication, the host system addresses a destination address. This transmission destination address is a unique address in the device, and the upper 4 bits of the unique address are a category ID. Therefore, the host system can know the category name of the communication partner device and the communication protocol to be used from the transmission destination address with reference to the table of FIG. As shown in FIG. 5, the host is given two unique addresses corresponding to two communication protocols of the host system, and uses the address of the communication protocol adapted to the category name of the device that is the communication partner. To communicate. In addition, the host device can perform communication using a standard protocol, in which one of the two unique addresses and the general call address is used.

次に、本発明にかかるEバスシステムの具体的構成を図3に示す。ただし、図3においてはEバスシステムを構成する7本のワイヤーのうちのSCLラインとSDAラインとの2本の信号線だけを示している。なお、図示していない信号線はイニシャルクリアライン(E−IC)であり、残る4本のワイヤーは電源ラインとされている。
図3に示すように、デバイス1(Device1)、デバイス2(Device2)、デバイス3(Device3)はSCLラインおよびSDAラインにそれぞれバス接続されている。それぞれのデバイスとSCLラインおよびSDAラインとの結線構成は同様とされているので、デバイス1についてのみ説明する。デバイス1において、クロックが転送されるSCLラインにはクロック入力部(SCL IN)とされるバッファB2が接続されており、バッファB2を介してクロックパルスがデバイス1に取り込まれる。また、SCLラインにはクロック出力部(SCL OUT)とされるオープンドレインとされた電界効果トランジスタ(以下、「トランジスタ」という)TR2のドレインが接続され、トランジスタTR2をオン/オフすることによりクロックパルスをSCLラインに送出することができる。さらに、データ信号が転送されるSDAラインにはデータ入力部(SDA IN)とされるバッファB1が接続されており、バッファB1を介してデータ信号がデバイス1に取り込まれる。また、SDAラインにはデータ出力部(SDA OUT)とされるオープンドレインとされたトランジスタTR1のドレインが接続され、トランジスタTR1をオン/オフすることによりデータ信号をSDAラインに送出することができる。
Next, a specific configuration of the E bus system according to the present invention is shown in FIG. However, FIG. 3 shows only two signal lines of the SCL line and the SDA line among the seven wires constituting the E bus system. A signal line (not shown) is an initial clear line (E-IC), and the remaining four wires are power lines.
As shown in FIG. 3, device 1 (Device 1), device 2 (Device 2), and device 3 (Device 3) are bus-connected to the SCL line and the SDA line, respectively. Since the connection configuration of each device and the SCL line and SDA line is the same, only the device 1 will be described. In the device 1, a buffer B2 serving as a clock input unit (SCL IN) is connected to an SCL line to which a clock is transferred, and a clock pulse is taken into the device 1 through the buffer B2. The SCL line is connected to the drain of a field effect transistor (hereinafter referred to as “transistor”) TR2 which is an open drain serving as a clock output unit (SCL OUT), and the clock pulse is turned on / off by turning on the transistor TR2. Can be sent to the SCL line. Further, a buffer B1 serving as a data input unit (SDA IN) is connected to the SDA line to which the data signal is transferred, and the data signal is taken into the device 1 through the buffer B1. The SDA line is connected to the drain of the transistor TR1, which is an open drain serving as a data output section (SDA OUT), and a data signal can be sent to the SDA line by turning on / off the transistor TR1.

デバイス2およびデバイス3においても同様の回路構成でSCLラインおよびSDAラインに接続されている。なお、図3に示すデバイス1〜デバイス3においては、トランジスタTR1ないしトランジスタTR6は電界効果トランジスタとしたが、オープンコレクタとされたバイポーラトランジスタとしてもよい。また、SCLラインおよびSDAラインはプルアップ抵抗Rpによりそれぞれプルアップされている。すなわち、SCLラインおよびSDAラインは開放状態ではハイ(H)レベルとなっており、デバイスにおけるデータ出力部のいずれかのトランジスタTR1,TR3,TR5・・・がオンされることによりSDAラインはロー(L)レベルとなる。すなわち、SDAラインにデバイス1〜デバイス3のデータ出力部がワイヤードアンド接続されている。SCLラインも同様に開放状態ではHレベルとなり、デバイスにおけるクロック出力部のいずれかのトランジスタTR2,TR4,TR6・・・がオンすることによりSCLラインはLレベルとなる。すなわち、SCLラインにデバイス1〜デバイス3のクロック出力部がワイヤードアンド接続されている。   The devices 2 and 3 are also connected to the SCL line and the SDA line with the same circuit configuration. In the devices 1 to 3 shown in FIG. 3, the transistors TR1 to TR6 are field-effect transistors, but may be bipolar transistors that are open collectors. Further, the SCL line and the SDA line are each pulled up by a pull-up resistor Rp. That is, the SCL line and the SDA line are at a high (H) level in the open state, and when the transistors TR1, TR3, TR5,. L) Level. That is, the data output units of the devices 1 to 3 are wired and connected to the SDA line. Similarly, the SCL line becomes H level in the open state, and the SCL line becomes L level when any of the transistors TR2, TR4, TR6,. That is, the clock output units of the devices 1 to 3 are wired and connected to the SCL line.

このようなEバスシステムにおけるSCLラインとSDAラインにおけるデータ転送時の波形タイミング図を図4に示す。Eバスシステムにおいては、バスが開放状態(Hレベル)の時のみにデータ転送を開始することができ、データの転送開始時には、マスターはスタートビット(Start Bit)を転送する。この場合、SCLラインがHレベル(開放状態)とされている際に、SDAラインをLレベルに反転することによりスタートビットが図示するように送出される。このスタートビットをEバスシステムに接続されているデバイスが検出することにより、デバイスはデータ転送が開始されることを知る。次いで、データ部に前置して置かれたヘッダ部が転送される。データ部は複数バイト(1バイト=8ビット)で構成されており、ヘッダ部も複数バイトで構成されている。このヘッダ部では、7ビットの送信先アドレス(スレーブアドレス)と、データの読込/書込(R/W)を指示する1ビットとで最初の1バイトが構成され、7ビットの送信元アドレス(マスターアドレス)と“0”のダミービットの1ビットとで次の1バイトが構成されている。ヘッダ部に続いて、1バイト単位のデータが後述するように3バイトあるいは15バイト連続しているデータ部が転送される。また、ヘッダ部およびデータ部の各ビットに同期してSCLラインにクロックパルスが送出される。この場合、ヘッダ部およびデータ部は1バイト単位のデータで構成されていることから、ヘッダ部およびデータ部の1バイト毎に、図示するように各ビットに同期したクロックパルスが1,2,3・・・,8の8発送出される。なお、ヘッダ部およびデータ部における各ビットのレベルを反転できるタイミングは、クロックパルスがLレベルとされている期間とされ、各ビットのデータが有効となるようにクロックパルスがHレベルの期間においては、SDAラインのレベルを安定させて転送しなければならない。   FIG. 4 shows a waveform timing chart at the time of data transfer on the SCL line and the SDA line in such an E bus system. In the E bus system, data transfer can be started only when the bus is in an open state (H level), and at the start of data transfer, the master transfers a start bit. In this case, when the SCL line is at the H level (open state), the start bit is sent as shown by inverting the SDA line to the L level. When the device connected to the E bus system detects this start bit, the device knows that data transfer is started. Next, the header portion placed in front of the data portion is transferred. The data part is composed of a plurality of bytes (1 byte = 8 bits), and the header part is also composed of a plurality of bytes. In this header portion, the first 1 byte is composed of a 7-bit transmission destination address (slave address) and 1 bit for instructing data reading / writing (R / W), and a 7-bit transmission source address ( The next one byte is composed of a master address) and one dummy bit of “0”. Subsequent to the header portion, a data portion in which data of 1 byte unit is continuous for 3 bytes or 15 bytes as described later is transferred. A clock pulse is sent to the SCL line in synchronization with each bit of the header part and the data part. In this case, since the header part and the data part are composed of data in units of 1 byte, the clock pulse synchronized with each bit is 1, 2, 3 for each byte of the header part and the data part as shown in the figure. ... 8 of 8 are sent out. The timing at which the level of each bit in the header portion and the data portion can be inverted is a period in which the clock pulse is at the L level, and in a period in which the clock pulse is at the H level so that the data of each bit is valid. , The level of the SDA line must be stabilized and transferred.

Eバスシステムにおいてはマスターから送出されるクロックパルスやヘッダ部およびデータ部は、SCLラインおよびSDAラインを介して全てのデバイスに到達する。そこで、各デバイスは最初に受信されるヘッダ部におけるスレーブアドレスと自機に固有のアドレスとを1ビットずつ対比していく。そして、7ビットのスレーブアドレスと自機のアドレスとが一致した場合は、自機がスレーブとしてアドレス指定されたと知り以後に続くデータを受信する。また、SDAラインのレベルがL(orH)であるのに、対応する自機のアドレスのビットが“1”(or”0”)であった場合は、自機のアドレスがスレーブアドレスとしてアドレス指定されておらず、自機はデータ転送先でないと判断して以後に続く受信データは捨てるようにする。これにより、アドレス指定したデバイスだけがデータを受信することができる。
なお、ヘッダ部においてはそれぞれのバイトにおける8ビット目が、データの読込/書込を指示するビットとされているが、Eバスシステムにおいてはこのビットは常にL(=“0”)とされて、書き込みしか存在しないデータフォーマットとされている。電子楽器では鍵盤、パネル等の操作に対するリアルタイムな応答が求められているが、このように、鍵盤系、パネル系における操作イベントを書き込みによりホスト系へ送信することによりそのレスポンスを高めている。
In the E bus system, a clock pulse, a header portion, and a data portion transmitted from the master reach all devices via the SCL line and the SDA line. Therefore, each device compares the slave address in the header part received first and the address unique to the device one bit at a time. If the 7-bit slave address matches the address of its own device, it knows that its own device has been addressed as a slave and receives subsequent data. In addition, when the SDA line level is L (or H) and the corresponding address bit of the own device is “1” (or “0”), the address of the own device is addressed as a slave address. It is determined that the device itself is not the data transfer destination, and the subsequent received data is discarded. This allows only the addressed device to receive data.
In the header part, the 8th bit in each byte is a bit for instructing data reading / writing. In the E bus system, this bit is always set to L (= “0”). The data format has only writing. An electronic musical instrument requires a real-time response to an operation of a keyboard, a panel, etc. As described above, the response is enhanced by transmitting an operation event in the keyboard system and the panel system to the host system by writing.

ところで、マスターはSDAラインに送出したヘッダ部あるいはデータ部における1バイト毎の信号が正常に受信されたことを知った後に、次の1バイトの信号を送出するようにしている。そこで、1バイトの信号が送出された後に、1バイトの信号が有効な信号として受信されたか否かを示すアクノリッジ用の9番目のクロックパルス(ACK)を、マスターはSCLラインに送出している。同時に、マスターはSDAラインを開放してHレベルの状態にしている。そして、ヘッダ部のスレーブアドレスでアドレス指定された送信先のデバイスは、1バイトの信号が有効な信号として受信された際に、データ出力部のトランジスタをオンさせて、SDAラインをLレベルに保持する。マスターは、9番目のACK用クロックがHレベルとなった期間においてSDAラインのレベルを取り込んで、アクノリッジがLレベルならば正常に送信先のデバイスが1バイトの信号を受信したことを知る。これにより、マスターは次の1バイトをSDAラインに送出可能となる。この際に、送信先のデバイスは受信準備できるまでSCLラインをLレベルに保持する。マスターは、所定の時間の後に、次の1バイトを最初のビットよりSDAラインに順次送出開始すると共に、同期するクロックパルスをSCLラインに送出開始する。ここで、送信先のデバイスの受信準備ができている場合、SCLラインのクロックパルスが順次立ち上がり、送信先のデバイスではそのクロックパルスに応じて、次の1バイトのデータを取り込むことができる。一方、その時点で送信先のデバイスの準備ができていない場合、該送信先のデバイスによりSCLラインはLレベルに保持されている。従って、マスターが送出しようとしたクロックパルスはSCLラインに現れず、マスターはSCLラインが立ち上がるのを待つ。送信先のデバイスの受信準備が完了すると、SCLラインは解放されるのでクロックパルスがSCLラインにおいて立ち上がり、次の1バイトの送信が行われる。
なお、送信先のデバイスが有効な1バイトの信号を受信することができなかった場合は、Hレベルのアクノリッジが生成されて、このアクノリッジをマスターが受け取るようになる。この場合、マスターはSCLラインをHレベルに保持した状態でSDAラインをHレベルに反転させることによりストップビット(Stop Bit)を送出し、データ転送を中止するようにする。このストップビットは、通信を終了する際においても、マスターによりEバス11上に送信される。
By the way, the master sends out the next 1-byte signal after knowing that the 1-byte signal in the header part or data part sent to the SDA line has been normally received. Therefore, after the 1-byte signal is transmitted, the master transmits the 9th clock pulse (ACK) for acknowledgement indicating whether or not the 1-byte signal is received as a valid signal to the SCL line. . At the same time, the master opens the SDA line to the H level. When the 1-byte signal is received as a valid signal, the destination device addressed by the slave address in the header section turns on the transistor in the data output section and holds the SDA line at the L level. To do. The master captures the level of the SDA line during the period when the ninth ACK clock is at the H level, and if the acknowledge is at the L level, the master knows that the transmission destination device has normally received the 1-byte signal. As a result, the master can send the next 1 byte to the SDA line. At this time, the transmission destination device holds the SCL line at the L level until it is ready for reception. After a predetermined time, the master sequentially starts sending the next 1 byte to the SDA line from the first bit, and starts sending synchronized clock pulses to the SCL line. Here, when the transmission destination device is ready for reception, the clock pulse of the SCL line sequentially rises, and the transmission destination device can capture the next 1-byte data in accordance with the clock pulse. On the other hand, when the destination device is not ready at that time, the SCL line is held at the L level by the destination device. Therefore, the clock pulse that the master tried to send does not appear on the SCL line, and the master waits for the SCL line to rise. When the transmission preparation of the transmission destination device is completed, the SCL line is released, so that the clock pulse rises on the SCL line and the next 1 byte is transmitted.
If the transmission destination device cannot receive a valid 1-byte signal, an H level acknowledge is generated and the master receives the acknowledge. In this case, the master sends a stop bit by inverting the SDA line to the H level while holding the SCL line at the H level, and stops the data transfer. The stop bit is transmitted on the E bus 11 by the master even when the communication is terminated.

次に、アービトレーションについて説明する。Eバスシステムにおいては、バスが開放状態(Hレベル)の時のみにデータ転送を開始することができるが、複数のデバイスがマスターとしてほぼ同時にデータ転送を開始することがある。この場合は、いずれかのマスターに通信を許可するアービトレーションが行われる。このアービトレーションでは、SDAラインに各デバイスのデータ出力部のトランジスタがワイヤードアンド接続されていることを利用している。具体的に説明すると、データ転送開始した際には、図4に示すようにスタートビットに続いてスレーブアドレスがSDAラインに送出されるので、複数のマスターにおいてこのSDAラインから受信したアドレスと自機がアドレス指定したスレーブアドレスとを1ビットずつ対比する。この場合、同時に複数のデバイスからデータがSDAラインに送出された場合には、ワイヤードアンドされていることからいずれかのデバイスがLレベルを送出した際にSDAラインはLレベルに保持されるようになる。   Next, arbitration will be described. In the E bus system, data transfer can be started only when the bus is in an open state (H level), but a plurality of devices may start data transfer almost simultaneously as a master. In this case, arbitration for permitting communication to one of the masters is performed. This arbitration utilizes the fact that the data output transistor of each device is wired and connected to the SDA line. More specifically, when data transfer is started, the slave address is sent to the SDA line following the start bit as shown in FIG. Contrasts the slave address addressed bit by bit. In this case, when data is sent from a plurality of devices to the SDA line at the same time, since any device sends L level, the SDA line is held at L level because it is wired-and. Become.

すると、デバイスによっては自機が指定したスレーブアドレスの対比するビットが“1”であるのに対して、SDAラインから取り込まれたビットが“0”(=Lレベル)となる。このようにアドレスが不一致となった場合は、他のマスターの優先順位が高いと判断してデータ出力部をオフする。この処理を続けると、最終的に優先順位の最も高いマスターに通信が許可されるようになる。この場合の優先順位は、上述したように、SDAラインのレベルはLレベルが優先とされていることから、スレーブアドレスとして最上位ビット(MSB)から多く“0”が続くアドレスの優先順位が高いことになる。アービトレーションにおける優先順位はカテゴリー名により決定されており、前述したようにゼネラルコールの順位が最も高くされ、2番目の順位はホスト系(メインコントローラ)のデバイスが送信先の場合とされ、3番目の順位は鍵盤系のデバイスが送信先の場合とされ、4番目の順位はパネル系のデバイスが送信先の場合とされ、5番目の順位はMIDI系のデバイスが送信先の場合とされている。なお、鍵盤系の順位が高くされているのは、鍵盤ではリアルタイム性が重要となるからである。   Then, depending on the device, the bit compared with the slave address designated by the own device is “1”, whereas the bit fetched from the SDA line is “0” (= L level). If the addresses do not match as described above, it is determined that the priority order of the other masters is high, and the data output unit is turned off. If this process is continued, communication is finally permitted to the master with the highest priority. As described above, the priority order in this case is such that the SDA line level is given priority to the L level, and therefore, the priority order of the address that continues with “0” from the most significant bit (MSB) as the slave address is high. It will be. The priority in the arbitration is determined by the category name. As described above, the general call is the highest, and the second is the host system (main controller) device as the destination. The ranking is when the keyboard device is the transmission destination, the fourth ranking is when the panel device is the transmission destination, and the fifth ranking is when the MIDI device is the transmission destination. The reason why the order of the keyboard system is high is that real-time performance is important for the keyboard.

このような理由から、図5に示すようにカテゴリーIDをカテゴリー名の優先順位に応じて各カテゴリーに付与している。図5は、カテゴリーID、サブアドレス範囲、カテゴリー名および使用される通信プロトコルの種類を示すテーブルである。図5に示すテーブルにおいてカテゴリーIDを参照すると、全てのデバイスに転送するゼネラルコールのカテゴリーIDは”0000”とされ、“0”が最も長く続くようにされている。また、ホスト系(メインコントローラ)のカテゴリーIDは”0001”とされ、鍵盤系のカテゴリーIDは”0010”とされ、パネル系のカテゴリーIDは”0011”とされ、鍵盤/パネル複合系のカテゴリーIDは”0100”とされ、MIDI系のカテゴリーIDは”0101”とされている。これにより、上述した優先順位でアービトレーションを行えるようになる。なお、カテゴリーIDが同一であり、カテゴリーIDだけを対比しただけではマスターが決定されない場合は、サブアドレスも対比してマスターを決定する。これでも決定できない場合は、送信元アドレスも対比してマスターを決定する。送信先アドレスと送信元アドレスの両方が一致することはないので、送信元アドレスまでで必ずアービトレーションが完了する。(特別な通信であるゼネラルコールを除いた中で、最も優先度の高い)ホスト系のデバイスを送信先とした通信では、送信元が鍵盤系、送信元がパネル系、送信元が鍵盤/パネル複合系、MIDI系の順番で通信が優先されるが、これもリアルタイム性の要請により決められている。   For this reason, a category ID is assigned to each category according to the priority order of the category names as shown in FIG. FIG. 5 is a table showing category IDs, subaddress ranges, category names, and types of communication protocols used. Referring to the category ID in the table shown in FIG. 5, the category ID of the general call transferred to all devices is “0000”, and “0” lasts the longest. The category ID of the host system (main controller) is “0001”, the category ID of the keyboard system is “0010”, the category ID of the panel system is “0011”, and the category ID of the keyboard / panel composite system Is “0100” and the MIDI category ID is “0101”. As a result, arbitration can be performed in the above-described priority order. When the category IDs are the same and the master is not determined only by comparing the category IDs, the master is determined by comparing the subaddresses. If this cannot be determined, the master is determined by comparing the source address. Since both the transmission destination address and the transmission source address do not match, arbitration is always completed up to the transmission source address. In communication with the host device as the transmission destination (excluding general calls, which are special communications), the transmission source is the keyboard system, the transmission source is the panel system, and the transmission source is the keyboard / panel. Communication is given priority in the order of the composite system and the MIDI system, but this is also determined by a request for real-time performance.

サブアドレスについて述べると、ホスト系には、通信相手のデバイスのカテゴリー名が鍵盤・パネル系(鍵盤系、パネル系、または鍵盤/パネル複合系)の時に使用するサブアドレス“000”と、MIDI系の時に使用するサブアドレス“001”とが用意されている。すなわち、鍵盤・パネル系のカテゴリー名のデバイスをアドレス指定した際にMIDI系より優先して通信を行えるようになる。なお、サブアドレス“010”〜“111”は異なるバス・フォーマット用あるいは将来の使用に備えて予約されている。さらに、アドレス指定した送信先であるスレーブアドレスが一致してマスターが決定されない場合は、次に送出されるマスターアドレスも対比してマスターを決定するようにする。
また、鍵盤系、パネル系、鍵盤/パネル複合系、MIDI系のサブアドレスには“000”ないし“111”の8つのサブアドレス範囲が与えられている。このため、これらのカテゴリー名のデバイスは、それぞれ8つまでの同種のカテゴリーのデバイスをEバスシステムに接続することができるようになる。
Regarding the sub-address, in the host system, the sub-address “000” used when the category name of the communication partner device is the keyboard / panel system (keyboard system, panel system, or keyboard / panel composite system), and the MIDI system A sub-address “001” to be used is prepared. That is, when a keyboard / panel category name device is addressed, communication can be performed in preference to the MIDI system. The sub-addresses “010” to “111” are reserved for different bus formats or for future use. Further, when the slave address that is the addressed transmission destination matches and the master is not determined, the master is determined by comparing the master address that is transmitted next.
Also, eight sub-address ranges from “000” to “111” are given to the sub address of the keyboard system, the panel system, the keyboard / panel composite system, and the MIDI system. For this reason, each device of these category names can connect up to eight devices of the same category to the E bus system.

ところで、Eバスシステムにおいてはデバイス間で通信を行う際には、デバイスのカテゴリーに適応する通信プロトコルで通信を行うようにしているが、全てのカテゴリーのデバイスと通信するゼネラルコールの通信プロトコルは、共通プロトコルとされている。図5に示すように、具体的には、ホスト系と通信するカテゴリー名が鍵盤系、パネル系、鍵盤/パネル複合系とされている場合は標準プロトコルで通信される。また、ホスト系と通信するカテゴリー名がMIDI系とされている場合はMIDIプロトコルで通信される。この場合、デバイスにはそのカテゴリー名に対応するカテゴリーIDが与えられていることから、アドレス指定されたスレーブアドレスのカテゴリーIDから通信プロトコルを決定することができる。なお、ホスト系(メインコントローラ)は通信相手のデバイスが属するカテゴリー名に適応している通信プロトコルを使用して通信を行う必要があることから、図5に示すように標準プロトコル用のアドレスと、MIDIプロトコル用のアドレスとを備えている。例えば、ホスト系のデバイスとMIDI系のデバイスとが通信する際には、ホスト系のデバイスは自機のアドレスとして“0001 001”を使用し、MIDI系のデバイスがマスターとなった際には、アドレス指定するスレーブアドレスを“0001 001”とする。これにより、ホスト系のデバイスとMIDI系のデバイスとはMIDIプロトコルを使用して通信を行えるようになる。また、ホスト系のデバイスと鍵盤系(パネル系あるいは鍵盤/パネル複合系)のデバイスとが通信する際には、ホスト系のデバイスは自機のアドレスとして“0001 000”を使用し、鍵盤系(パネル系あるいは鍵盤/パネル複合系)のデバイスがマスターとなった際には、アドレス指定するスレーブアドレスを“0001 000”とする。これにより、ホスト系のデバイスと鍵盤系(パネル系あるいは鍵盤/パネル複合系)のデバイスとが標準プロトコルを使用して通信を行えるようになる。   By the way, in the E bus system, when communicating between devices, communication is performed with a communication protocol adapted to the category of the device, but the communication protocol of the general call that communicates with the devices of all categories is as follows. It is a common protocol. As shown in FIG. 5, specifically, when the category name communicated with the host system is a keyboard system, a panel system, or a keyboard / panel composite system, communication is performed using a standard protocol. If the category name to be communicated with the host system is MIDI, communication is performed using the MIDI protocol. In this case, since the category ID corresponding to the category name is given to the device, the communication protocol can be determined from the category ID of the addressed slave address. Since the host system (main controller) needs to perform communication using a communication protocol adapted to the category name to which the communication partner device belongs, as shown in FIG. Address for MIDI protocol. For example, when a host device and a MIDI device communicate with each other, the host device uses “0001 001” as its own address, and when the MIDI device becomes a master, The slave address to be addressed is “0001 001”. As a result, the host device and the MIDI device can communicate with each other using the MIDI protocol. When a host device and a keyboard device (panel system or keyboard / panel composite system) communicate with each other, the host device uses “0001 000” as its own address, and the keyboard system ( When a panel device or a keyboard / panel composite device becomes the master, the slave address to be addressed is “0001 000”. As a result, the host system device and the keyboard system (panel system or keyboard / panel composite system) device can communicate with each other using the standard protocol.

次に、本発明にかかるEバスシステムにおけるパケットのデータフォーマットを図6に示す。
図6に示すように、Eバスシステムにおけるデータフォーマットには全体の長さが5バイト長とされる標準データのデータフォーマットと、全体の長さが17バイト長とされる拡張データのデータフォーマットとが定義されている。標準データのデータフォーマットにおいては、アドレス指定する1バイトの送信先アドレス(スレーブアドレス)と、1バイトの送信元アドレス(マスターアドレス)と、それぞれ1バイトのデータ1,データ2,データ3の合計5バイトで構成されている。また、拡張データのデータフォーマットにおいては、アドレス指定する1バイトの送信先アドレス(スレーブアドレス)と、1バイトの送信元アドレス(マスターアドレス)と、それぞれ1バイトのデータ1〜データ15の合計17バイトから構成されている。この場合の送信元アドレスにはダミービット“0”が1ビット、送信先アドレスにはR/Wの1ビットがそれぞれ含まれている。標準データのデータフォーマットは、共通プロトコル、標準プロトコルおよびMIDIプロトコルにおいて用いられ、拡張データのデータフォーマットはMIDIプロトコルにおいてシステムエクスクルーシブメッセージ等を転送する際に用いられる。なお、送信先アドレスと送信元アドレスとで図4に示すヘッダ部が構成され、続く3バイトのデータあるいは15バイトのデータによりデータ部が構成されている。なお、標準データおよび拡張データにおけるデータ1は、転送されるデータの種別を示すインデックスとされている。具体的にはインデックスは、各通信プロトコルにおけるコマンドを示している。このように、パケットの長さ(あるいは、データバイトの長さ)を2通りに統一することにより、通信を行う各デバイスでの処理を簡略化することができる。電子楽器において、エクスクルーシブを除く通常のコマンドをやりとりするのに、データバイトが3バイトのパケットは最適である。また、その通常のコマンドのパケット長を5バイト程度(10バイト以下)の短い長さにすることにより、一つ一つのパケットのバスにおける占有時間が短縮され、電子楽器の鍵盤やパネルからの入力に対する応答時間を短縮することができる。
Next, FIG. 6 shows a packet data format in the E-bus system according to the present invention.
As shown in FIG. 6, the data format in the E bus system includes a standard data format having a total length of 5 bytes and a data format of extended data having a total length of 17 bytes. Is defined. In the data format of the standard data, a total of 5 of 1-byte transmission destination address (slave address) to be addressed, 1-byte transmission source address (master address), and 1-byte data 1, data 2, and data 3 respectively. Consists of bytes. Moreover, in the data format of the extended data, a total of 17 bytes of 1-byte transmission destination address (slave address), 1-byte transmission source address (master address), and 1-byte data 1 to data 15 are specified. It is composed of In this case, the transmission source address includes 1 bit of the dummy bit “0”, and the transmission destination address includes 1 bit of R / W. The data format of standard data is used in the common protocol, the standard protocol, and the MIDI protocol, and the data format of extended data is used in transferring a system exclusive message or the like in the MIDI protocol. Note that the transmission destination address and the transmission source address constitute the header part shown in FIG. 4, and the subsequent 3 bytes of data or 15 bytes of data constitute the data part. Note that data 1 in the standard data and extension data is an index indicating the type of data to be transferred. Specifically, the index indicates a command in each communication protocol. In this way, by unifying the packet length (or data byte length) in two ways, it is possible to simplify the processing in each device that performs communication. In an electronic musical instrument, a packet with 3 data bytes is optimal for exchanging ordinary commands except for exclusive. Also, by making the packet length of the normal command as short as about 5 bytes (10 bytes or less), the occupancy time of each packet on the bus is shortened, and input from the keyboard or panel of the electronic musical instrument The response time to can be shortened.

次に、共通プロトコルのコマンドについて説明する。共通プロトコルは、通信を行うデバイスのカテゴリーを問わず使用することのできる通信プロトコルとされているため、各デバイスはそれが共通プロトコルであることを判別することなく、自分の属するカテゴリの処理の中で共通プロトコルを扱うことができる。前述したように、本発明の電子楽器用バスシステムにかかるEバスシステムにおいてはメインコントローラデバイス10であるホスト系のデバイスと、他のデバイスとの間で通信を行うことを前提としている。そこで、ホスト受信とホスト送信のコマンドについて図7に示す。共通プロトコルにおけるコマンドはいずれも標準データのデータフォーマットとされており、図示する順と逆になるがホスト送信欄のコマンドにはカテゴリーID・サブアドレスリクエストがある。このコマンドは、ホスト系のデバイスがEバスシステムに接続されているデバイスのアドレスを検出するためのコマンドであり、ゼネラルコールすることができる。このコマンドにおけるインデックスであるデータ1は“00h”(hは16進表記を示す:00h=0000 0000)とされ、データ2およびデータ3も“00h”とされている。   Next, common protocol commands will be described. Since the common protocol is a communication protocol that can be used regardless of the category of the device that communicates with each other, each device does not determine that it is a common protocol, and does not process the category to which it belongs. Can handle common protocols. As described above, in the E bus system according to the electronic musical instrument bus system of the present invention, it is assumed that communication is performed between the host device as the main controller device 10 and another device. FIG. 7 shows the host reception and host transmission commands. The commands in the common protocol are all in the standard data format and are in the reverse order as shown in the figure, but the commands in the host transmission field include a category ID / sub address request. This command is a command for the host device to detect the address of the device connected to the E bus system, and can be called as a general call. Data 1 as an index in this command is “00h” (h indicates hexadecimal notation: 00h = 0000 0000), and data 2 and data 3 are also “00h”.

カテゴリーID・サブアドレスリクエストのコマンドをホスト系のデバイスからゼネラルコールする際には、“0000 000”を送信先アドレス、“0001 000”を送信元アドレス(図5参照)、“00h”とされたデータ1ないしデータ3からなる標準データのコマンドを発行する。ゼネラルコールされたカテゴリーID・サブアドレスリクエストコマンドは、Eバスシステムに接続されている全てのカテゴリのデバイスが受信するようになり、各デバイスはホスト受信欄に示されているカテゴリーID・サブアドレスリプライのコマンドをホストに返す。このカテゴリーID・サブアドレスリプライは、自機に固有のアドレスをホスト系のデバイスに知らせるコマンドである。カテゴリーID・サブアドレスリプライコマンドを発行するには、アドレス指定する送信先アドレスを“0001 000”、送信元アドレスを自機の7ビットのアドレス、インデックスであるデータ1を“00h”、データ2が自機のカテゴリーID、データ3が自機のサブアドレスの標準データを送信する。これにより、ホストはEバスシステムに接続されているデバイスと、そのアドレスを知ることができる。なお、カテゴリーID・サブアドレスリクエストのコマンドはEバスシステムの動作開始時にホスト系のデバイスがゼネラルコールするようにされており、このコマンドによりEバスシステムに接続されているデバイスと、そのアドレスを知り、知ったアドレスからカテゴリー名と使用する通信プロトコルを知ることができる。このようにして、ホスト系のデバイスは図5に示すテーブルを作成でき、以降の通信は作成されたテーブルにおけるアドレスを設定して通信することができる。また、ホスト系以外のデバイスはホスト系のデバイスとの通信を行うことを原則としており、ホスト系に割り当てられている複数のアドレスはEバスシステムで予め定められたアドレスとされている。したがって、ホスト系以外のデバイスは通信する際に設定するアドレスを予め知っているので図5に示すテーブルを作成する必要はない。ゼネラルコールはホスト以外の各デバイスも受信する通信であるので、仮に、各デバイスからのカテゴリーID・サブアドレスリプライ時にゼネラルコールを使用すると、それを受信するホスト以外の各デバイスでそれを無視するための処理が必要になってしまう。そこで、本発明にかかるEバスシステムでは、該リプライ時に、ゼネラルコールではなく送信先をホストの標準アドレスとした通信を行ない、ホスト以外の各デバイスでの処理を簡略化するようになっている。   When a category ID / sub-address request command is called from a host device as a general call, “0000 000” is a destination address, “0001 000” is a source address (see FIG. 5), and data is “00h”. A standard data command consisting of 1 to 3 is issued. General-categoed category ID / sub-address request commands are received by devices in all categories connected to the E-bus system, and each device receives a category ID / sub-address reply command indicated in the host reception column. To the host. This category ID / sub-address reply is a command for notifying a host device of an address unique to the own device. In order to issue the category ID / sub-address reply command, the destination address to be addressed is “0001 000”, the source address is the 7-bit address of the own device, the index data 1 is “00h”, and the data 2 is The machine category ID, data 3, transmits the standard data of its own sub-address. As a result, the host can know the devices connected to the E-bus system and their addresses. The category ID / sub-address request command is such that the host device makes a general call at the start of the operation of the E bus system. By this command, the device connected to the E bus system and its address are known. You can know the category name and communication protocol to use from the address you know. In this way, the host device can create the table shown in FIG. 5, and subsequent communication can be performed by setting an address in the created table. In principle, devices other than the host system communicate with the host system device, and a plurality of addresses assigned to the host system are addresses predetermined by the E bus system. Therefore, since devices other than the host system know in advance the address to be set when communicating, it is not necessary to create the table shown in FIG. Since the general call is a communication that is received by each device other than the host, if the general call is used when the category ID / sub-address is replied from each device, each device other than the host that receives it will ignore it. Processing is required. Therefore, in the E bus system according to the present invention, at the time of the reply, communication is performed using the standard address of the host as the transmission destination instead of the general call, and the processing in each device other than the host is simplified.

また、ホスト送信欄のEバススタートのコマンドは原則的にメインコントローラデバイス10からゼネラルコールされるコマンドであり、Eバスシステムの立ち上げ時にEバスシステムを動作可能にするためのコマンドである。Eバススタートのコマンドをゼネラルコールする際は、“0000 000”が送信先アドレス、“0001 000”が送信元アドレス、インデックスであるデータ1が“01h”、データ2が“00h”、データ3が“00h”の標準データを送信する。   The E bus start command in the host transmission column is a command that is generally called from the main controller device 10 and is a command for enabling the E bus system when the E bus system is started up. When a general call is made to the E bus start command, “0000 000” is the transmission destination address, “0001 000” is the transmission source address, index 1 is “01h”, data 2 is “00h”, and data 3 is The standard data “00h” is transmitted.

次に、図8に示す標準プロトコルのホスト受信およびホスト送信のコマンドについて説明する。標準プロトコルは、ホスト系のデバイス(メインコントローラ)と、鍵盤系、パネル系、鍵盤/パネル複合系のカテゴリーのデバイスとが通信を行う場合に使用することのできる通信プロトコルとされている。標準プロトコルにおけるコマンドはいずれも標準データのデータフォーマットとされている。
標準プロトコルにおけるホスト受信欄のコマンドのうちの共通プロトコルのコマンドは、図7に示す共通プロトコルと同様であるのでその説明は省略するが、この部分が同じになっているために、当該デバイスでは動作を標準プロトコルと共通プロトコルの間で切り換えることなく、共通プロトコルを送受信することができる。次のSW OFFコマンドおよびSW ONコマンドは、パネルデバイスに設けられているパネルスイッチのOFFイベントおよびONイベントをホストに転送するコマンドである。例えば、パネルデバイスにおけるパネルスイッチのスイッチ番号nのスイッチがOFFされた場合は、送信先アドレスがホストを示す“0001 000”とされ、送信元アドレスがそのパネルデバイスのアドレス“0011 aaa”(“aaa”は当該パネルデバイスのサブアドレス)とされ、インデックスであるデータ1が“6xh”、データ2がオフされたスイッチ番号n(8ビット)、データ3がダミーの“00h”とされたSW OFFコマンドが発行される。
Next, host reception and host transmission commands of the standard protocol shown in FIG. 8 will be described. The standard protocol is a communication protocol that can be used when a host device (main controller) communicates with devices in the keyboard system, panel system, and keyboard / panel composite system categories. All commands in the standard protocol have a data format of standard data.
Of the commands in the host reception column in the standard protocol, the common protocol command is the same as the common protocol shown in FIG. 7 and will not be described. However, since this part is the same, the device operates in this device. Can be transmitted and received without switching between the standard protocol and the common protocol. The next SW OFF command and SW ON command are commands for transferring an OFF event and an ON event of a panel switch provided in the panel device to the host. For example, when the switch with the switch number n of the panel switch in the panel device is turned off, the transmission destination address is “0001 000” indicating the host, and the transmission source address is the address “0011 aaa” (“aaa” of the panel device. "Is the sub address of the panel device), and the SW OFF command in which the index data 1 is" 6xh ", the data 2 is switched off n (8 bits), and the data 3 is a dummy" 00h " publish.

また、パネルデバイスにおけるパネルスイッチのスイッチ番号mのスイッチがONされた場合は、送信先アドレスがホストを示す“0001 000”とされ、送信元アドレスがそのパネルデバイスのアドレス“0011 bbb”(“bbb”は当該パネルデバイスのサブアドレス)とされ、インデックスとされるデータ1が”7xh”、データ2がオンされたスイッチ番号m(8ビット)、データ3がダミーの“00h”とされたSW ONコマンドが発行される。なお、いずれのコマンドにおいても“xh”はポート番号を示しており、スイッチ番号が8ビットとされることから、16ポート×256個のパネルスイッチのSW OFFコマンドおよびSW ONコマンドを発行することができる。   When the switch of the panel switch switch number m in the panel device is turned ON, the transmission destination address is “0001 000” indicating the host, and the transmission source address is the address “0011 bbb” (“bbb” of the panel device. "Is the sub address of the panel device), SW 1 command with index 1 as" 7xh ", data 2 as switch number m (8 bits), and data 3 as dummy" 00h " Is issued. In any command, “xh” indicates a port number, and the switch number is 8 bits. Therefore, it is possible to issue SW OFF commands and SW ON commands for 16 ports × 256 panel switches. it can.

標準プロトコルにおけるホスト受信欄の鍵盤 OFFコマンドおよび鍵盤 ONコマンドは、鍵盤デバイスにおける各鍵のノートオンイベントおよびノートオフイベントをホストに転送するコマンドである。ここで、鍵盤デバイスにおけるノート番号nに対応する鍵がノートオフされた場合は、送信先アドレスがホストを示す“0001 000”とされ、送信元アドレスがその鍵盤デバイスのアドレス“0010 aaa”(“aaa”は当該鍵盤デバイスのサブアドレス)とされ、インデックスとされるデータ1が”8vh”、データ2がノートオフされたノート番号n(8ビット)、データ3がベロシティの上位8ビットとされた鍵盤 OFFコマンドが発行される。なお、”vh”はベロシティの下位4ビットとされており、合計12ビットとされたベロシティ情報が転送され、そのうちの上位7ビットはMIDI互換とされている。   The keyboard OFF command and keyboard ON command in the host reception column in the standard protocol are commands for transferring the note-on event and note-off event of each key in the keyboard device to the host. Here, when the key corresponding to the note number n in the keyboard device is note-off, the transmission destination address is “0001 000” indicating the host, and the transmission source address is the address “0010 aaa” (“ “aaa” is the sub address of the keyboard device), the index data 1 is “8vh”, the data 2 is the note-off note number n (8 bits), and the data 3 is the upper 8 bits of the velocity An OFF command is issued. Note that “vh” is the low-order 4 bits of velocity, and the velocity information having a total of 12 bits is transferred, and the high-order 7 bits are MIDI compatible.

また、鍵盤デバイスにおけるノート番号mに対応する鍵がノートオンされた場合は、送信先アドレスがホストを示す“0001 000”とされ、送信元アドレスがその鍵盤デバイスのアドレス“0010 bbb”(“bbb”は当該鍵盤デバイスのサブアドレス)とされ、インデックスとされるデータ1が”9vh”、データ2がノートオンされたノート番号m(8ビット)、データ3がベロシティの上位8ビットとされた鍵盤 ONコマンドが発行される。このコマンドでは、鍵盤 OFFコマンドと同様に合計12ビットとされたベロシティ情報が転送され、そのうちの上位7ビットがMIDI互換とされている。また、いずれのコマンドでもノート番号が8ビットとされることから、256個のノートに対応する鍵盤 OFFコマンドおよび鍵盤 ONコマンドを発行することができる。ここで、鍵盤 OFFコマンド、および鍵盤 ONコマンドにおいて、ポート番号を削ってベロシティ情報を12ビットとしているのは、鍵盤演奏の取り込みにおいては、タッチカーブ等の処理のため、MIDIのベロシティより高分解能の12ビットのベロシティ分解能が必要であるためである。   When the key corresponding to the note number m in the keyboard device is turned on, the transmission destination address is “0001 000” indicating the host, and the transmission source address is the address “0010 bbb” (“bbb” of the keyboard device. “Is the sub address of the keyboard device), the index data 1 is“ 9 vh ”, the data 2 is note-on note number m (8 bits), and the data 3 is the upper 8 bits of velocity ON A command is issued. In this command, velocity information having a total of 12 bits is transferred as in the keyboard OFF command, and the upper 7 bits are MIDI compatible. Further, since the note number is 8 bits in any command, a keyboard OFF command and a keyboard ON command corresponding to 256 notes can be issued. Here, in the keyboard OFF command and the keyboard ON command, the port number is deleted and the velocity information is set to 12 bits. The capture of the keyboard performance has a higher resolution than the MIDI velocity because of processing of touch curves and the like. This is because a 12-bit velocity resolution is required.

標準プロトコルにおけるホスト受信欄の鍵盤デバイスにおけるポリフォニックアフタータッチ(各鍵毎のアフタータッチ)の値を転送するポリフォニックアフタータッチコマンドは、送信先アドレスがホストを示す“0001 000”とされ、送信元アドレスがその鍵盤デバイスのアドレス“0010 aaa”(“aaa”は当該鍵盤デバイスのサブアドレス)とされ、インデックスとされるデータ1が“Axh”、データ2がアフタータッチをかけるノートのノート番号n(8ビット)、データ3が8ビットのアフター値とされている。“xh”はポート番号とされているので、16ポートのポリフォニックアフタータッチコマンドを発行することができる。   The polyphonic aftertouch command for transferring the value of polyphonic aftertouch (aftertouch for each key) on the keyboard device in the host reception column in the standard protocol has the transmission destination address “0001 000” indicating the host, and the transmission source address is The address of the keyboard device is “0010 aaa” (“aaa” is the subaddress of the keyboard device), the index data 1 is “Axh”, and the data 2 is the note number n (8 bits) to which the touch is applied. , Data 3 is an 8-bit after value. Since “xh” is a port number, a 16-port polyphonic aftertouch command can be issued.

また、標準プロトコルにおけるホスト受信欄のパネルデバイスにおけるボリュームやホイール等の操作された操作値を転送するコンティニュアスコントローラコマンドは、送信先アドレスがホストを示す“0001 000”とされ、送信元アドレスがそのパネルデバイスのアドレス“0011 aaa”(“aaa”は当該パネルデバイスのサブアドレス)とされ、インデックスとされるデータ1が“Bxh”、データ2がボリュームやホイール等のコントローラの種別(8ビット)、データ3が8ビットのコントローラの操作値とされている。“xh”はポート番号とされており、種別は8ビットとされているので、16ポート×256個のコンティニュアスコントローラコマンドを発行することができる。   In the standard controller, the continuous controller command for transferring the manipulated value such as the volume or wheel in the panel device of the host reception column in the standard protocol has the transmission destination address “0001 000” indicating the host, and the transmission source address is The address of the panel device is “0011 aaa” (where “aaa” is the sub address of the panel device), the index data 1 is “Bxh”, the data 2 is the type of controller such as volume or wheel (8 bits), Data 3 is an operation value of the 8-bit controller. Since “xh” is a port number and the type is 8 bits, 16 ports × 256 continuous controller commands can be issued.

また、標準プロトコルにおけるホスト受信欄のパネルデバイスにおけるロータリエンコーダ等のジョグコントローラにおける操作された操作値を転送するJOGコントローラコマンドは、送信先アドレスがホストを示す“0001 000”とされ、送信元アドレスがそのパネルデバイスのアドレス“0011 aaa”(“aaa”は当該パネルデバイスのサブアドレス)とされ、インデックスとされるデータ1が“Cxh”、データ2がジョグコントローラの種別(8ビット)、データ3がコントローラにおける操作値の2の補数の相対値(8ビット)とされている。“xh”はポート番号とされており、種別は8ビットとされているので、16ポート×256個のJOGコントローラコマンドを発行することができる。   In the JOG controller command for transferring the operation value operated in the jog controller such as the rotary encoder in the panel device of the host reception column in the standard protocol, the transmission destination address is “0001 000” indicating the host, and the transmission source address is The address of the panel device is “0011 aaa” (“aaa” is the sub-address of the panel device), the index data 1 is “Cxh”, the data 2 is the jog controller type (8 bits), and the data 3 is the controller 2 is a relative value (8 bits) of the two's complement of the operation value. Since “xh” is a port number and the type is 8 bits, 16 ports × 256 JOG controller commands can be issued.

標準プロトコルにおけるホスト受信欄の鍵盤デバイスにおけるアフタータッチ(1つの鍵盤の複数鍵に共通のアフタータッチ)の値を転送するアフタータッチコマンドは、送信先アドレスがホストを示す“0001 000”とされ、送信元アドレスがその鍵盤デバイスのアドレス“0010 aaa”(“aaa”は当該鍵盤デバイスのサブアドレス)とされ、インデックスとされるデータ1が“Dxh”、データ2がタッチ値の上位8ビット、データ3がタッチ値の下位8ビットとされている。“xh”はポート番号とされているので、16ポートのアフタータッチコマンドを発行することができる。このアフタータッチコマンドで転送されるタッチ値は、マスター(送信元)とされている鍵盤デバイスにおいて複数ノートオンされているノートの全てにかけられているタッチ値である。   The after touch command for transferring the value of the after touch on the keyboard device in the host reception field in the standard protocol (the after touch common to a plurality of keys of one key) is set to “0001 000” indicating the host as the transmission destination address. The original address is the address “0010 aaa” of the keyboard device (“aaa” is the sub-address of the keyboard device), the index data 1 is “Dxh”, the data 2 is the upper 8 bits of the touch value, and the data 3 is The lower 8 bits of the touch value. Since “xh” is a port number, a 16-port aftertouch command can be issued. The touch value transferred by the after touch command is a touch value applied to all of the notes that are turned on by a plurality of notes in the keyboard device as the master (sender).

また、標準プロトコルにおけるホスト受信欄のパネルデバイスにおけるボリュームやホイール等の操作された操作値を転送する16ビットのコンティニュアスコントローラコマンドは、送信先アドレスがホストを示す“0001 000”とされ、送信元アドレスがそのパネルデバイスのアドレス“0011 aaa”(“aaa”は当該パネルデバイスのサブアドレス)とされ、インデックスとされるデータ1が“Exh”、データ2がコントローラの操作値の上位8ビット、データ3がコントローラの操作値の下位8ビットとされている。“xh”はポート番号とされているので、16ポートの16ビットのコンティニュアスコントローラコマンドを発行することができる。なお、鍵盤/パネル複合系のデバイスでは、鍵盤デバイスとパネルデバイスの両方のコマンドを送信可能である。また、コンティニュアスコントローラコマンド、ジョグコントローラコマンドについては、鍵盤デバイスから送信できるようにしてもよい。   In addition, a 16-bit continuous controller command for transferring an operation value such as a volume or a wheel in a panel device in the host reception column in the standard protocol has a transmission destination address “0001 000” indicating the host, and is transmitted. The original address is the address “0011 aaa” of the panel device (“aaa” is the sub address of the panel device), the index data 1 is “Exh”, the data 2 is the upper 8 bits of the controller operation value, the data 3 is the lower 8 bits of the operation value of the controller. Since “xh” is a port number, a 16-bit 16-bit continuous controller command can be issued. Note that a keyboard / panel composite device can transmit commands from both the keyboard device and the panel device. Further, the continuous controller command and the jog controller command may be transmitted from the keyboard device.

次に、標準プロトコルにおけるホスト送信欄のコマンドについて説明する。まず、ホスト送信欄の共通プロトコルのコマンドは、図7に示す共通プロトコルと同様であるのでその説明は省略する。
ホスト送信欄のLEDコントロールのコマンドは、パネルデバイスに設けられているLED(Light Emitting Diode)が属するとされたグループの輝度を、ホストがコントロールするコマンドである。LEDコントロールコマンドは、送信先アドレスが輝度コントロールされるパネルデバイスのアドレス“0011 aaa”(“aaa”は当該パネルデバイスのサブアドレス)とされ、送信元アドレスがホストを示す“0001 000”とされ、インデックスとされるデータ1が“6xh”、データ2が輝度をコントロールするグループ番号(8ビット)、データ3が輝度コントロール値である8ビットのLED輝度値とされている。“xh”はポート番号とされているので、16ポートのLEDコントロールコマンドを発行することができる。ただし、グループ“00h”の輝度は最小(オフ相当)とされ、グループ“FFh”の輝度は最大(オン相当)とされているため、そのグループの輝度は変更することができないようにされている。
Next, commands in the host transmission field in the standard protocol will be described. First, the common protocol command in the host transmission column is the same as the common protocol shown in FIG.
The LED control command in the host transmission column is a command for the host to control the luminance of the group to which the LED (Light Emitting Diode) provided in the panel device belongs. The LED control command has an address “0011 aaa” (“aaa” is a subaddress of the panel device) of the panel device whose luminance is controlled as the transmission destination address, “0001 000” indicating the host as the transmission source address, and an index. The data 1 is “6xh”, the data 2 is the group number (8 bits) for controlling the brightness, and the data 3 is the 8-bit LED brightness value that is the brightness control value. Since “xh” is a port number, a 16-port LED control command can be issued. However, since the luminance of the group “00h” is the minimum (corresponding to OFF) and the luminance of the group “FFh” is the maximum (corresponding to ON), the luminance of the group cannot be changed. .

ホスト送信欄のLEDコマンドは、パネルデバイスに設けられているLEDをホストがグループに振り分けるコマンドである。LEDコマンドは、送信先アドレスがコントロールされるパネルデバイスのアドレス“0011 aaa”(“aaa”は当該パネルデバイスのサブアドレス)とされ、送信元アドレスがホストを示す“0001 000”とされ、インデックスとされるデータ1が“7xh”、データ2がグループに振り分ける8ビットのLED番号、データ3が振り分けられる8ビットのグループ番号とされている。“xh”はポート番号とされており、LED番号は8ビットとされているので、16ポート×256個のLEDコマンドを発行することができる。   The LED command in the host transmission column is a command for the host to distribute the LEDs provided in the panel device into groups. The LED command has an address “0011 aaa” (“aaa” is a sub-address of the panel device) of the panel device whose destination address is controlled, an index of “0001 000” indicating the host, and an index. The data 1 is “7xh”, the data 2 is an 8-bit LED number assigned to the group, and the 8-bit group number is assigned the data 3. Since “xh” is a port number and the LED number is 8 bits, 16 port × 256 LED commands can be issued.

ここで、LEDコントロールコマンドとLEDコマンドの使い方を説明すると、ホストがパネルデバイスへLED“i”をグループ“FFh”に振り分けるLEDコマンドを送信すると、このLEDコマンドを受信したパネルデバイスではLED番号“i”のLEDを点灯するようになる。また、LED“j”をグループ“00h”に振り分けるLEDコマンドを送信すると、このLEDコマンドを受信したパネルデバイスではLED番号“j”のLEDを消灯するようになる。
また、ホストからパネルデバイスへ、まず、グループ“01h”の輝度を“00h”(最小値)に設定するLEDコントロールを送信すると共に、所望の複数LEDのLED番号をそれぞれグループ“01h”に振り分ける複数のLEDコマンドを送信し、最後に、グループ“01h”の輝度を“FFh”(最大値)に設定するLEDコントロールを送信することで、該パネルデバイスの該複数LEDを同時に点灯することができるようになる。
Here, the LED control command and how to use the LED command will be described. When the host transmits an LED command for distributing the LED “i” to the group “FFh” to the panel device, the panel device that has received this LED command receives the LED number “i”. "" LED comes on. When an LED command for allocating the LED “j” to the group “00h” is transmitted, the panel device that has received the LED command turns off the LED with the LED number “j”.
In addition, first, an LED control for setting the luminance of the group “01h” to “00h” (minimum value) is transmitted from the host to the panel device, and a plurality of LED numbers for a desired plurality of LEDs are assigned to the group “01h”. This LED command is sent, and finally the LED control for setting the brightness of the group “01h” to “FFh” (maximum value) is sent, so that the plurality of LEDs of the panel device can be turned on simultaneously. become.

ホスト送信欄の鍵盤LEDコントロールのコマンドは、鍵盤デバイスの各鍵に設けられているLED(演奏ガイド用LED)が属するグループの輝度をホストがコントロールするコマンドである。鍵盤LEDコントロールコマンドは、送信先アドレスが輝度コントロールされる鍵盤デバイスのアドレス“0010 aaa”(“aaa”は当該鍵盤デバイスのサブアドレス)とされ、送信元アドレスがホストを示す“0001 000”とされ、インデックスとされるデータ1が“8xh”、データ2が輝度コントロールされるグループ番号(8ビット)、データ3が輝度コントロール値である8ビットのLED輝度値とされている。“xh”はポート番号とされているので、16ポートの鍵盤LEDコントロールコマンドを発行することができる。ただし、グループ“00h”の輝度は最小(オフ相当)とされ、グループ“FFh”の輝度は最大(オン相当)とされているため、その輝度を変更することができないようにされている。   The keyboard LED control command in the host transmission column is a command for the host to control the luminance of the group to which the LED (performance guide LED) provided in each key of the keyboard device belongs. The keyboard LED control command has an address “0010 aaa” (“aaa” is a sub-address of the keyboard device) of the keyboard device whose luminance is controlled as the transmission destination address, and “0001 000” indicating the host as the transmission source address. The index data 1 is “8xh”, the data 2 is the group number (8 bits) whose brightness is controlled, and the data 3 is the 8-bit LED brightness value which is the brightness control value. Since “xh” is a port number, a 16-port keyboard LED control command can be issued. However, since the luminance of the group “00h” is minimum (corresponding to OFF) and the luminance of the group “FFh” is maximum (corresponding to ON), the luminance cannot be changed.

ホスト送信欄の鍵盤LEDコマンドは、鍵盤デバイスに設けられているLEDをホストがグループに振り分けるコマンドである。鍵盤LEDコマンドは、送信先アドレスがコントロールされる鍵盤デバイスのアドレス“0010 aaa”(“aaa”は当該鍵盤デバイスのサブアドレス)とされ、送信元アドレスがホストを示す“0001 000”とされ、インデックスとされるデータ1が“9xh”、データ2がグループに振り分けるLEDが設けられている鍵のノート番号(8ビット)、データ3が振り分けられる8ビットのグループ番号とされている。“xh”はポート番号とされており、ノート番号は8ビットとされているので、16ポート×256個の鍵盤LEDコマンドを発行することができる。鍵盤LEDコントロールコマンドと鍵盤LEDコマンドによる鍵盤LEDの制御の態様は、LEDコントロールコマンドとLEDコマンドによるパネルデバイスのLEDの制御の態様と同様である。なお、鍵盤 OFFコマンド、鍵盤 ONコマンドによれば各鍵盤デバイスの鍵は最大256個とされているので、鍵盤LEDコントロールコマンドと鍵盤LEDコマンドにおけるポート番号は、例えば、各鍵に複数色の複数LEDを用意して色の制御を行うために使用したり、あるいは、各鍵の複数個所にLEDを用意して光る位置の制御を行うために使用することができる。   The keyboard LED command in the host transmission column is a command for the host to distribute the LEDs provided in the keyboard device into groups. The keyboard LED command has an address “0010 aaa” (“aaa” is a subaddress of the keyboard device) of the keyboard device whose transmission destination address is controlled, a source address “0001 000” indicating the host, an index, The data 1 to be assigned is “9xh”, the note number (8 bits) of the key provided with the LED for assigning the data 2 to the group, and the 8-bit group number to which the data 3 is assigned. Since “xh” is a port number and the note number is 8 bits, 16 port × 256 keyboard LED commands can be issued. The manner of controlling the keyboard LED by the keyboard LED control command and the keyboard LED command is the same as the manner of controlling the LED of the panel device by the LED control command and the LED command. According to the keyboard OFF command and the keyboard ON command, the maximum number of keys of each keyboard device is 256. Therefore, the port number in the keyboard LED control command and the keyboard LED command is, for example, a plurality of LEDs of a plurality of colors for each key. Can be used to control the color, or can be used to control the position of the LED by providing LEDs at a plurality of locations of each key.

また、標準プロトコルにおけるホスト送信欄のパネルデバイスにおける電動ボリュームや電動ホイール等の操作値をホストから制御するコンティニュアスコントローラコマンドは、送信先アドレスがコントロールされるパネルデバイスのアドレス“0011 aaa”(“aaa”は当該パネルデバイスのサブアドレス)とされ、送信元アドレスがホストを示す“0001 000”とされ、インデックスとされるデータ1が“Bxh”、データ2が電動ボリュームや電動ホイール等のコントローラの種別(8ビット)、データ3が8ビットの電動コントローラの制御値とされている。“xh”はポート番号とされており、種別は8ビットとされているので、16ポート×256個のコンティニュアスコントローラコマンドを発行することができる。   In addition, the continuous controller command for controlling the operation values of the electric volume, electric wheel, and the like in the panel device in the host transmission column in the standard protocol from the host is the address “0011 aaa” (“ "aaa" is a sub-address of the panel device), the transmission source address is "0001 000" indicating the host, the index data 1 is "Bxh", and the data 2 is the type of controller such as an electric volume or electric wheel (8 bits), data 3 is the control value of the 8-bit electric controller. Since “xh” is a port number and the type is 8 bits, 16 ports × 256 continuous controller commands can be issued.

また、標準プロトコルにおけるホスト送信欄のパネルデバイスにおけるロータリエンコーダ等の電動ジョグコントローラの操作値をホストから制御するJOGコントローラコマンドは、送信先アドレスがコントロールされるパネルデバイスのアドレス“0011 aaa”(“aaa”は当該パネルデバイスのサブアドレス)とされ、送信元アドレスがホストを示す“0001 000”とされ、インデックスとされるデータ1が“Cxh”、データ2が電動ジョグコントローラの種別(8ビット)、データ3が電動コントローラを制御する2の補数の相対値(8ビット)とされている。“xh”はポート番号とされており、種別は8ビットとされているので、16ポート×256個のJOGコントローラコマンドを発行することができる。   Also, the JOG controller command for controlling the operation value of the electric jog controller such as the rotary encoder in the panel device in the host transmission column in the standard protocol from the host is the address “0011 aaa” (“aaa” of the panel device whose transmission destination address is controlled. ”Is the sub address of the panel device), the transmission source address is“ 0001 000 ”indicating the host, the index data 1 is“ Cxh ”, the data 2 is the electric jog controller type (8 bits), the data 3 is a 2's complement relative value (8 bits) for controlling the electric controller. Since “xh” is a port number and the type is 8 bits, 16 ports × 256 JOG controller commands can be issued.

また、標準プロトコルにおけるホスト送信欄のパネルデバイスにおける電動ボリュームや電動ホイール等の操作値をホストから制御する16ビットのコンティニュアスコントローラコマンドは、送信先アドレスがコントロールされるパネルデバイスのアドレス“0011 aaa”(“aaa”は当該パネルデバイスのサブアドレス)とされ、送信元アドレスがホストを示す“0001 000”とされ、インデックスとされるデータ1が“Exh”、データ2が電動コントローラの制御値の上位8ビット、データ3が電動コントローラの制御値の下位8ビットとされている。“xh”はポート番号とされているので、16ポートの16ビットのコンティニュアスコントローラコマンドを発行することができる。   In addition, a 16-bit continuous controller command for controlling the operation values of the electric volume and electric wheel in the panel device in the host transmission column in the standard protocol from the host is the address “0011 aaa” of the panel device whose transmission destination address is controlled. "(Aaa" is the sub-address of the panel device), the transmission source address is "0001 000" indicating the host, the index data 1 is "Exh", and the data 2 is the upper control value of the electric controller 8 bits and data 3 are the lower 8 bits of the control value of the electric controller. Since “xh” is a port number, a 16-bit 16-bit continuous controller command can be issued.

次に、図9に示すMIDIプロトコルのコマンドについて説明する。MIDIプロトコルは、ホスト系のデバイス(メインコントローラ)とMIDI系のデバイスとが通信を行う場合に使用することのできる通信プロトコルとされている。MIDIプロトコルにおけるコマンドは標準データおよび拡張データのデータフォーマットとが用いられる。なお、MIDIプロトコルではホスト送信とホスト受信とのコマンドが共通とされており、ホスト受信とホスト送信では、送信先アドレスと送信元アドレスだけが異なるようになる。すなわち、ホスト受信のコマンドの場合は、送信先アドレスがホストのMIDIプロトコル用のアドレスである”0001 001”とされ、送信元アドレスが送信するMIDIデバイスのアドレスとされる。また、ホスト送信のコマンドの場合は、送信先アドレスがMIDIデバイスのアドレスとされ、送信元アドレスがホストのMIDIプロトコル用のアドレスである”0001 001”とされる。図9に示すMIDIプロトコルの各コマンドでは上述のように、送信先アドレスおよび送信元アドレスが設定され、以下のコマンドの説明では、各コマンドのデータ形式およびデータ部についてだけ説明するものとする。   Next, the MIDI protocol command shown in FIG. 9 will be described. The MIDI protocol is a communication protocol that can be used when a host device (main controller) communicates with a MIDI device. The command in the MIDI protocol uses standard data and extended data formats. Note that in the MIDI protocol, commands for host transmission and host reception are common, and only the transmission destination address and the transmission source address differ between host reception and host transmission. That is, in the case of a host reception command, the transmission destination address is “0001 001” which is an address for the host's MIDI protocol, and the transmission source address is the address of the MIDI device to be transmitted. In the case of a host transmission command, the transmission destination address is the address of the MIDI device, and the transmission source address is “0001 001”, which is the address for the host's MIDI protocol. In each command of the MIDI protocol shown in FIG. 9, the transmission destination address and the transmission source address are set as described above, and in the following description of the command, only the data format and data portion of each command will be described.

MIDIプロトコルにおける共通プロトコルのコマンドは、図7に示す共通プロトコルと同様であるのでその説明は省略する。
システムエクスクルーシブ(Sys EX)の開始および続きコマンドおよびシステムエクスクルーシブ(Sys EX)の終了または1パケットコマンドは、データフォーマットが共に拡張モードとされ17バイト長とされている。システムエクスクルーシブ(Sys EX)の開始および続きコマンドは、システムエクスクルーシブの開始および続きを示すインデックスとされる”4ih”がデータ1とされ、データ2ないしデータ15における1バイトずつのデータにより音色パラメータやシーケンス・データ等が転送される。システムエクスクルーシブ(Sys EX)の終了または1パケットコマンドは、システムエクスクルーシブの終了または1パケットを示すインデックスとされる”5ih”がデータ1とされ、1パケットの場合にデータ2ないしデータ15において1パケットのデータが1バイトずつ転送される。
なお、MIDIにおいてはシステムエクスクルーシブの開始は“F0h”終了は“F7h”で示されるが、Eバスシステムではこれに替えて上記のようにシステムエクスクルーシブの開始は“4ih”終了は“5ih”とし、“F0h”、“F7h”は使用しないこととしている。また、“ih”は、当該システムエクスクルーシブを送信するMIDIのポート番号を示す。
The common protocol commands in the MIDI protocol are the same as those in the common protocol shown in FIG.
The system exclusive (Sys EX) start and continuation command and the system exclusive (Sys EX) end or one packet command both have a data format of the extended mode and are 17 bytes long. In the system exclusive (Sys EX) start and continuation command, “4ih”, which is an index indicating the start and continuation of the system exclusive, is set as data 1, and tone parameters and sequences are determined by data of 1 byte for each of data 2 to data 15.・ Data etc. are transferred. For the system exclusive (Sys EX) end or 1 packet command, “5ih”, which is an index indicating the end of system exclusive or 1 packet, is set as data 1, and in the case of 1 packet, 1 packet of 1 packet Data is transferred byte by byte.
In MIDI, the start of system exclusive is indicated by “F0h” and the end of “F0h”, but in the E bus system, the start of system exclusive is “5ih” instead of “4ih”, as described above. “F0h” and “F7h” are not used. “Ih” indicates a MIDI port number for transmitting the system exclusive.

ソングポジション(Song Pos)コマンドは演奏を開始する位置を知らせるコマンドであり、標準データのデータフォーマットとされている。ソングポジションコマンドは、そのインデックスとされる“6ih”がデータ1とされ、データ2が演奏開始位置のポインターのLSBとされ、データ3が演奏開始位置のポインターのMSBとされる。なお、MIDIではソングポジションポインターのメッセージは“F2h”で示され、データ2およびデータ3はこのメッセージと互換とされている。
MIDIポートセレクトコマンドは、カレントのMIDIポート番号(ノートオンメッセージ、ノートオフメッセージが授受されるMIDIポートの番号)を選択するコマンドであり、標準データのデータフォーマットとされている。MIDIポートセレクトコマンドは、そのインデックスとされる“7ih”がデータ1とされ、データ2が“00h”とされ、データ3が“00h”とされる。例えば、MIDIポートセレクトコマンドがホストからMIDIデバイスに送信された場合、受取ったMIDIデバイスではカレントのMIDIポート番号を上記インデックスに含まれる値“ih”に設定する。なお、MIDIスタンダードではポートセレクトのメッセージは規定されていない(実装では“F5h”が使われる場合もある)。なお、MIDIポートセレクトコマンドはMIDIにおけるMIDIタイムピースメッセージの機能に相当する。
The song position (Song Pos) command is a command for informing the position where performance is started, and is in a standard data format. In the song position command, the index “6ih” is data 1, data 2 is the LSB of the performance start position pointer, and data 3 is the MSB of the performance start position pointer. In MIDI, the message of the song position pointer is indicated by “F2h”, and data 2 and data 3 are compatible with this message.
The MIDI port select command is a command for selecting a current MIDI port number (a MIDI port number to which a note-on message and a note-off message are transmitted / received), and has a data format of standard data. In the MIDI port select command, “7ih” as an index is set as data 1, data 2 is set as “00h”, and data 3 is set as “00h”. For example, when a MIDI port select command is transmitted from the host to the MIDI device, the received MIDI device sets the current MIDI port number to the value “ih” included in the index. Note that the MIDI standard does not define a port select message (“F5h” may be used in implementation). The MIDI port select command corresponds to the MIDI timepiece message function in MIDI.

2つのMIDI互換(note,vel)コマンドは、MIDIにおけるノートオンメッセージおよびノートオフメッセージと互換とされており、標準データのデータフォーマットとされている。これらのコマンドにおいて、データ1がMIDIにおけるノートオフのインデックスとされる“8nh”とされ、データ2がMIDI互換の8ビットのノートオフされたノート番号、データ3がMIDI互換の8ビットのオフベロシティとされると、ノートオフコマンドとなる。また、データ1がMIDIにおけるノートオンのインデックスとされる“9nh”とされ、データ2がMIDI互換の8ビットのノートオンされたノート番号、データ3がMIDI互換の8ビットのベロシティとされると、ノートオンコマンドとなる。なお、データ1がMIDIにおけるノートオンのインデックスとされる“9nh”とされ、データ2がMIDI互換の8ビットのノートオフされたノート番号、データ3が“00h”(ベロシティがゼロ)とされたものをノートオフコマンドとして使用してもよい。なお、“nh”はMIDIチャンネル番号である。   Two MIDI compatible (note, vel) commands are compatible with a note-on message and a note-off message in MIDI, and have a data format of standard data. In these commands, data 1 is “8nh”, which is a MIDI note-off index, data 2 is a MIDI-compatible 8-bit note-off note number, and data 3 is MIDI-compatible 8-bit off-velocity. Is a note-off command. Also, if data 1 is “9nh”, which is a note-on index in MIDI, data 2 is an 8-bit note-on note number compatible with MIDI, and data 3 is an 8-bit velocity compatible with MIDI. This is a note-on command. Note that data 1 is “9 nh”, which is a note-on index in MIDI, data 2 is 8-bit note-off note number compatible with MIDI, and data 3 is “00h” (velocity is zero). Things may be used as note-off commands. “Nh” is a MIDI channel number.

MIDI互換(note,Aft)コマンドは、MIDIにおけるポリフォニック・キー・プレッシャーメッセージと互換とされており、鍵ごとに独立したアフター・タッチ情報を送ることができるコマンドとされている。このコマンドは、標準データのデータフォーマットとされている。このコマンドでは、データ1がMIDIにおけるポリフォニック・キー・プレッシャーのインデックスとされる“Anh”とされ、データ2がMIDI互換の8ビットのアフター・タッチ情報を送るノート番号、データ3がMIDI互換の8ビットのタッチ値とされる。なお、“nh”はMIDIチャンネル番号である。
MIDI互換(CtnNo. ,Value)コマンドは、MIDIにおけるコントロール・チェンジメッセージと互換とされており、ダンパー・ペダル、ボリューム、モジュレーション、ホイールなどのコントローラの情報を送ることのできるコマンドとされている。このコマンドは、標準データのデータフォーマットとされている。このコマンドでは、データ1がMIDIにおけるコントロール・チェンジのインデックスとされる“Bnh”とされ、データ2がコントロール機能を示すMIDI互換の8ビットのコントロール番号、データ3がMIDI互換の8ビットのコントロール値とされる。なお、“nh”はMIDIチャンネル番号である。
The MIDI compatible (note, Aft) command is compatible with a polyphonic key pressure message in MIDI, and is a command that can send independent after-touch information for each key. This command is a standard data format. In this command, data 1 is “Anh”, which is an index of polyphonic key pressure in MIDI, data 2 is a note number for sending MIDI compatible 8-bit after touch information, and data 3 is MIDI compatible 8 It is a bit touch value. “Nh” is a MIDI channel number.
A MIDI compatible (CtnNo., Value) command is compatible with a control change message in MIDI, and is a command capable of sending information on a controller such as a damper pedal, volume, modulation, and wheel. This command is a standard data format. In this command, data 1 is “Bnh” which is an index of MIDI control change, data 2 is a MIDI compatible 8-bit control number indicating the control function, and data 3 is a MIDI compatible 8-bit control value. It is said. “Nh” is a MIDI channel number.

MIDI互換(PrgNo. ,00)コマンドは、MIDIにおけるプログラム・チェンジメッセージと互換とされており、音色を切り替えるコマンドとされている。このコマンドは、標準データのデータフォーマットとされている。このコマンドでは、データ1がMIDIにおけるプログラム・チェンジのインデックスとされる“Cnh”とされ、データ2がMIDI互換の8ビットのプログラム番号、データ3はMIDIにおけるプログラム・チェンジメッセージでは必要とされていないので“00h”とされる。なお、“nh”はMIDIチャンネル番号である。
MIDI互換(Aft,00)コマンドは、MIDIにおけるチャンネル・プレッシャーと互換とされており、音色を切り替えるコマンドとされている。このコマンドは、標準データのデータフォーマットとされている。このコマンドでは、データ1がMIDIにおけるチャンネル・プレッシャーのインデックスとされる“Dnh”とされ、データ2がMIDI互換の8ビットのアフター・タッチ値、データ3はMIDIにおけるプログラム・チェンジメッセージでは必要とされていないので“00h”とされる。なお、“nh”はMIDIチャンネル番号である。このコマンドは、代表とされるアフター・タッチ情報を送るコマンドであるので、複数ノートオンされていた場合は、全てのノートオンのアフター・タッチ情報となる。
The MIDI compatible (PrgNo., 00) command is compatible with a program change message in MIDI, and is a command for switching timbres. This command is a standard data format. In this command, data 1 is “Cnh” which is an index of program change in MIDI, data 2 is an 8-bit program number compatible with MIDI, and data 3 is not required in a program change message in MIDI. Therefore, it is set to “00h”. “Nh” is a MIDI channel number.
The MIDI compatible (Aft, 00) command is compatible with channel pressure in MIDI, and is a command for switching timbres. This command is a standard data format. In this command, data 1 is “Dnh”, which is an index of channel pressure in MIDI, data 2 is an 8-bit after-touch value compatible with MIDI, and data 3 is required for a program change message in MIDI. Because it is not, it is set to “00h”. “Nh” is a MIDI channel number. Since this command is a command for sending representative after-touch information, if a plurality of notes are turned on, all the notes-on after-touch information are used.

MIDI互換(BendL,H)コマンドは、MIDIにおけるピッチ・ベンドメッセージと互換とされており、ホイールやジョイスティックなどから構成されるピッチ・ベンダーの情報を送るコマンドとされている。このコマンドは、標準データのデータフォーマットとされている。このコマンドでは、データ1がMIDIにおけるピッチ・ベンドのインデックスとされる“Enh”とされ、データ2がMIDI互換の8ビットのピッチ・ベンド値のLSB、データ3がMIDI互換の8ビットのピッチ・ベンド値のMSBとされる。なお、“nh”はMIDIチャンネル番号である。   The MIDI compatible (BendL, H) command is compatible with a pitch bend message in MIDI, and is a command for sending information on a pitch bender composed of a wheel, a joystick, and the like. This command is a standard data format. In this command, data 1 is set to “Enh”, which is an index of pitch bend in MIDI, data 2 is LSB of 8-bit pitch bend value compatible with MIDI, and data 3 is 8-bit pitch of MIDI compatible. The MSB of the bend value is used. “Nh” is a MIDI channel number.

MIDIにおいては、ステータス“F0h”〜“F7h”が定義されている。ただし、ステータス“F4h”、“F5h”は未定義である。また、上述したようにMIDIにおけるシステム・エクスクルーシブの開始および終了のステータス“F0h”、“F7h”は、Eバスシステムのインデックス“4ih”、“5ih”に変換して使用しない。同様に、MIDIにおけるステータス“F2h”は、Eバスシステムのインデックス“6xh”に変換し、MIDIにおけるステータス“F5h”がMIDI Time Pieceとして定義されている場合は、Eバスシステムのインデックス“7xh”に変換する。このように、“F0h”〜“F7h”の一部のステータスを変換しているが、これは、標準データのフォーマットの中で、その一部のステータスについてバイト数を1バイト増やすため、あるいは、その増えたバイトでMIDIポート番号を指定できるようにするためである。また、MIDIスタンダードでは、メッセージの各バイトの最上位ビットにより、そのバイトがステータスバイトであるかデータバイトであるかを判定するようになっているが、上述したMIDIプロトコルでは標準データのデータ1が必ずコマンドであるので、同様の目的で最上位ビットを使う必要がない。そこで、上述したMIDIプロトコルでは、MIDIのステータスバイトから外れる“00h”〜“7Fh”を、共通プロトコルのコマンドやMIDIを拡張するコマンドとして使用するようにしている。   In MIDI, statuses “F0h” to “F7h” are defined. However, the statuses “F4h” and “F5h” are undefined. As described above, the system exclusive start and end statuses “F0h” and “F7h” in MIDI are not used after being converted to the indexes “4ih” and “5ih” of the E bus system. Similarly, the status “F2h” in MIDI is converted to the E bus system index “6xh”. If the status “F5h” in MIDI is defined as MIDI Time Piece, the status is changed to the E bus system index “7xh”. Convert. In this way, some statuses of “F0h” to “F7h” are converted. This is because the number of bytes is increased by 1 byte for some statuses in the standard data format, or This is because the MIDI port number can be designated by the increased bytes. In the MIDI standard, the most significant bit of each byte of a message is used to determine whether the byte is a status byte or a data byte. Since it is always a command, it is not necessary to use the most significant bit for the same purpose. Therefore, in the above-described MIDI protocol, “00h” to “7Fh” that are out of the MIDI status byte are used as commands for common protocols and commands for extending MIDI.

さらに、F1(MIDI Timecode Quater Frame)コマンドは、MIDIタイムコードにおける時/分/秒の情報を送るコマンドとされている。このコマンドは、標準データのデータフォーマットとされている。このコマンドでは、データ1がインデックスとされる“Fih”とされ、データ2がMIDIタイムコード・クォーター・フレームのステータスである“F1h”、データ3がMIDI互換の8ビットの時/分/秒の値とされる。
さらにまた、F3(Song Select)コマンドは、ソング・メモリや記憶媒体に記憶されている曲を選択するコマンドとされている。このコマンドは、標準データのデータフォーマットとされている。このコマンドでは、データ1がインデックスとされる“Fih”とされ、データ2がMIDIにおけるソング・セレクトのステータスである“F3h”、データ3がMIDI互換の8ビットのソング番号とされる。
Further, the F1 (MIDI Timecode Quater Frame) command is a command for sending hour / minute / second information in the MIDI time code. This command is a standard data format. In this command, data 1 is “Fih”, which is an index, data 2 is MIDI time code quarter frame status “F1h”, and data 3 is MIDI compatible 8-bit hour / minute / second. Value.
Furthermore, the F3 (Song Select) command is a command for selecting a song stored in a song memory or a storage medium. This command is a standard data format. In this command, data 1 is “Fih” which is an index, data 2 is “F3h” which is a song select status in MIDI, and data 3 is a MIDI compatible 8-bit song number.

さらにまた、F6(Tune Request)コマンドは、オート・チューニング機能のあるMIDIデバイスをチューニングするコマンドとされている。このコマンドは、標準データのデータフォーマットとされている。このコマンドでは、データ1がインデックスとされる“Fih”とされ、データ2がMIDIにおけるチューン・リクエストのステータスである“F6h”、データ3はMIDIにおいて必要とされていないため“00h”とされる。   Furthermore, the F6 (Tune Request) command is a command for tuning a MIDI device having an auto-tuning function. This command is a standard data format. In this command, data 1 is set to “Fih” which is an index, data 2 is set to “F6h” which is a status of a tune request in MIDI, and data 3 is set to “00h” because it is not required in MIDI. .

さらにまた、システムリアルタイムメッセージコマンドは、リアルタイムで処理される必要のあるメッセージを送るコマンドである。このコマンドは、標準データのデータフォーマットとされている。このコマンドでは、データ1がインデックスとされる“Fih”とされ、データ2がMIDIにおけるシステムリアルタイムメッセージのステータスである“F8h”〜“FFh”のいずれか、データ3はMIDIにおいて必要とされていないため“00h”とされる。なお、データ2は次のようになる。
機能がタイミング・クロックとされている場合は、ステータス“F8h”
機能がスタートとされている場合は、ステータス“FAh”
機能がコンティニューとされている場合は、ステータス“FBh”
機能がストップとされている場合は、ステータス“FCh”
機能がシステム・リセットとされている場合は、ステータス“FFh”
なお、ステータス“F9h”“FDh”は未定義であり、ステータス“FEh”はアクティブ・センシングとして定義されているが、本発明にかかるEバスシステムにおいてはアクティブ・センシング(“FEh”)は使用しない。なお、以上のデータ1が“Fih”となっているコマンドでは、“ih”は当該コマンドを送出するMIDIポート番号を示している。
Furthermore, a system real-time message command is a command that sends a message that needs to be processed in real time. This command is a standard data format. In this command, data 1 is set as “Fih”, which is an index, data 2 is one of “F8h” to “FFh” which is the status of a system real-time message in MIDI, and data 3 is not required in MIDI. Therefore, it is set to “00h”. Data 2 is as follows.
If the function is a timing clock, status “F8h”
Status “FAh” if the function is set to start
If the function is set to continue, the status “FBh”
If the function is stopped, the status is “FCh”
Status “FFh” if the function is a system reset
The statuses “F9h” and “FDh” are undefined, and the status “FEh” is defined as active sensing, but the active sensing (“FEh”) is not used in the E-bus system according to the present invention. . Note that in a command in which the above data 1 is “Fih”, “ih” indicates a MIDI port number to which the command is transmitted.

次に、本発明にかかるEバスシステムのEバス起動手順を図10に示すフローチャートに示す。
Eバスシステムにおいて電源を投入する(ステップS1)と、Eバス11の4本の電源ラインを介して、Eバスシステムに接続されているデバイスの全てに電源が供給される。ここで、ホスト(メインコントローラデバイス10)はEバス11におけるイニシャルクリアラインをLレベルにする。これにより、Eバスシステムに接続されているデバイスが機能を停止してリセットされ、デバイスのハードウェア初期化が行われる(ステップS2)。次いで、ホスト(メインコントローラデバイス10)はEバス11におけるイニシャルクリアラインをHレベルにして、Eバスシステムに接続されているデバイスを起動する。これにより、Eバスシステムに接続されているデバイスにおいてソフトウェアが初期化される(ステップS3)。ここで、図7に示す「Eバススタート」コマンドをホスト(メインコントローラデバイス10)がゼネラルコールで送信する(ステップS4)。Eバスシステムに接続されている各デバイスは、この「Eバススタート」コマンドを受信して動作開始し、これにより、Eバスシステムが動作開始するようになる。なお、前述したホスト系におけるカテゴリーID・サブアドレスリクエストのコマンドを使用したテーブルの作成は、この「Eバススタート」コマンドが送出された直後に行われる。
Next, the E bus activation procedure of the E bus system according to the present invention is shown in the flowchart shown in FIG.
When power is turned on in the E bus system (step S1), power is supplied to all devices connected to the E bus system via the four power lines of the E bus 11. Here, the host (main controller device 10) sets the initial clear line in the E bus 11 to the L level. As a result, the device connected to the E bus system stops functioning and is reset, and the hardware of the device is initialized (step S2). Next, the host (main controller device 10) sets the initial clear line in the E bus 11 to the H level and activates the device connected to the E bus system. Thereby, the software is initialized in the device connected to the E bus system (step S3). Here, the host (main controller device 10) transmits the “E bus start” command shown in FIG. 7 by a general call (step S4). Each device connected to the E-bus system receives this “E-bus start” command and starts to operate, whereby the E-bus system starts to operate. The table using the category ID / sub-address request command in the host system is performed immediately after the “E bus start” command is sent.

次に、本発明にかかるEバスシステムにおけるホスト受信処理のフローチャートを図11に示す。
図11に示すホスト受信処理において、ホスト(メインコントローラデバイス10)がEバス11から信号を受信すると、ステップS10において受信した送信先アドレスが“10h”か“12h”かが判定される。この場合の送信先アドレスは、ホスト受信であることからアドレス指定されたホストのアドレスとなる。ただし、ステップS10において判定されるホストのアドレスには、常時“0”とされるR/W用の1ビットが含まれている。そして、受信した送信先アドレスが“10h”(=“0001 0000”)と判定された場合は、標準プロトコルのホストのアドレスが指定されていることから、ステップS11に進み送信元アドレスの受信およびデータ1〜データ3からなるデータ部を受信する標準プロトコル受信処理が行われる。また、有効な信号を受信できた場合は1バイト毎にアクノリッジを返す。この標準プロトコル受信処理では、ホストは、例えば鍵盤デバイスからの鍵盤 OFFや鍵盤 ON等のコマンドを受信したり、パネルデバイスからのSW ONやコンティニュアスコントローラ等のコマンドを受信したりする。
Next, FIG. 11 shows a flowchart of host reception processing in the E-bus system according to the present invention.
In the host reception processing shown in FIG. 11, when the host (main controller device 10) receives a signal from the E bus 11, it is determined whether the destination address received in step S10 is “10h” or “12h”. In this case, the transmission destination address is the address of the host whose address is specified because it is host reception. However, the host address determined in step S10 includes 1 bit for R / W that is always set to “0”. If it is determined that the received transmission destination address is “10h” (= “0001 0000”), the host address of the standard protocol is designated, and the process proceeds to step S11 where the transmission of the transmission source address and the data are performed. A standard protocol reception process for receiving a data portion consisting of 1 to 3 is performed. If a valid signal is received, an acknowledge is returned for each byte. In this standard protocol reception process, for example, the host receives a command such as keyboard OFF or keyboard ON from the keyboard device, or receives a command such as SW ON or continuous controller from the panel device.

さらに、受信した送信先アドレスが“12h”(=“0001 0010”)と判定された場合は、MIDIプロトコルのホストのアドレスが指定されていることから、ステップS12に分岐し送信元アドレスの受信およびデータ1〜データ3、あるいはデータ1〜データ15からなるデータ部を受信するMIDIプロトコル受信処理が行われる。さらにまた、有効な信号を受信できた場合は1バイト毎にアクノリッジを返す。ステップS11あるいはステップS12の受信処理が終了すると、ホスト受信処理も終了する。このMIDIプロトコル受信処理では、ホストは、例えばMIDI入出力デバイスからノートオンやノートオフ等のMIDIメッセージのコマンドを受信する。   Further, when the received transmission destination address is determined to be “12h” (= “0001 0010”), since the host address of the MIDI protocol is designated, the process branches to step S12 to receive the transmission source address. A MIDI protocol reception process for receiving a data portion including data 1 to data 3 or data 1 to data 15 is performed. Furthermore, if a valid signal can be received, an acknowledge is returned for each byte. When the reception process in step S11 or step S12 ends, the host reception process also ends. In this MIDI protocol reception process, the host receives a MIDI message command such as note-on or note-off from a MIDI input / output device, for example.

次に、本発明にかかるEバスシステムにおけるホスト送信処理のフローチャートを図12に示す。
図12に示すホスト送信処理において、ホスト(メインコントローラデバイス10)がEバス11に送信する際には、ステップS20においてアドレス指定した送信する送信先アドレスの上位4ビットが“2h”〜“4h”か“5h”かが判定される。この場合の送信先アドレスの上位4ビットは、ホスト送信であることからホストがアドレス指定した送信先のデバイスのカテゴリーIDとなる。そして、送信する送信先アドレスの上位4ビットが“2h”〜“4h”(=“0001”〜“0100”)と判定された場合は、鍵盤系、パネル系あるいは鍵盤/パネル複合系のデバイスが送信先のデバイスとされていることになる。これらのカテゴリーのデバイスは図5に示すように通信プロトコルが標準プロトコルとされていることから、ステップS21に進み標準プロトコルにおけるホストのアドレスである“0001 000”の送信元アドレスが付加され、次いでデータ1〜データ3からなるデータ部が送信される標準プロトコル送信処理が行われる。この標準プロトコル送信処理では、ホストは、例えばパネルデバイスに対してLED番号iのLEDを点灯させるLEDコマンド(LED“i”をグループ“FFh”に振り分けるコマンド)を送信する。
Next, FIG. 12 shows a flowchart of host transmission processing in the E-bus system according to the present invention.
In the host transmission process shown in FIG. 12, when the host (main controller device 10) transmits to the E bus 11, the upper 4 bits of the transmission destination address specified in step S20 are “2h” to “4h”. Or “5h”. In this case, the upper 4 bits of the destination address are the category ID of the destination device addressed by the host because it is host transmission. If it is determined that the upper 4 bits of the transmission destination address are “2h” to “4h” (= “0001” to “0100”), the keyboard system, the panel system, or the keyboard / panel composite system device This means that it is the destination device. Since the communication protocol of these categories of devices is the standard protocol as shown in FIG. 5, the process proceeds to step S21, and the source address “0001 000” which is the host address in the standard protocol is added, and then the data A standard protocol transmission process is performed in which a data portion consisting of 1 to 3 is transmitted. In this standard protocol transmission processing, the host transmits, for example, an LED command (a command for distributing LED “i” to the group “FFh”) to turn on the LED of LED number i to the panel device.

また、送信する送信先アドレスの上位4ビットが“5h”(=“0101”)と判定された場合は、MIDI系のデバイスが送信先のデバイスとされていることになる。MIDI系のカテゴリーのデバイスは図5に示すように通信プロトコルがMIDIプロトコルとされていることから、ステップS22に分岐しMIDIプロトコルにおけるホストのアドレスである“0001 001”の送信元アドレスが付加され、次いでデータ1〜データ3、あるいはデータ1〜データ15からなるデータ部が送信されるMIDIプロトコル送信処理が行われる。ステップS21あるいはステップS22の送信処理が終了すると、ホスト送信処理も終了する。このMIDIプロトコル送信処理では、ホストは、例えばMIDIシーケンサデバイスに対しノートオンやノートオフ等のMIDIメッセージのコマンドを送信する。   When the upper 4 bits of the transmission destination address to be transmitted are determined to be “5h” (= “0101”), the MIDI device is the transmission destination device. As shown in FIG. 5, the device in the MIDI category has a communication protocol of the MIDI protocol. Therefore, the process branches to step S22 and a source address “0001 001” which is the host address in the MIDI protocol is added. Next, a MIDI protocol transmission process is performed in which a data portion including data 1 to data 3 or data 1 to data 15 is transmitted. When the transmission process in step S21 or step S22 ends, the host transmission process also ends. In this MIDI protocol transmission process, the host transmits a MIDI message command such as note-on or note-off to, for example, a MIDI sequencer device.

次に、本発明にかかるEバスシステムにおける鍵盤デバイスの送信/受信処理のフローチャートを図13に示す。
図13に示す鍵盤送信/受信処理においては、通信プロトコルが標準プロトコルとされていることから、ステップS30において標準プロトコル送信/受信処理が行われる。この標準プロトコル送信処理では、アドレス指定する送信先アドレスとして、ホストにおける標準プロトコルのアドレスである“0001 000”を指定して送信し、送信元アドレスとして自機のアドレスを指定して送信する。自機のアドレスは、カテゴリーIDが“0010”とされサブアドレスは自機に設定されている3ビットのアドレスとなる。これらのアドレスに続いてデータ1〜データ3からなるデータ部を送信する。
また、標準プロトコル受信処理では、アドレス指定された送信先アドレスが自機のアドレスと一致した場合に、後続する送信元アドレスおよびデータ1〜データ3からなるデータ部を受信する。この場合の送信元アドレスには、ホストにおける標準プロトコルのアドレスである“0001 000”が指定されている。
標準プロトコルではパネル系および鍵盤/パネル複合系のデバイスも通信を行うが、この際の送信/受信処理はカテゴリーIDが異なるだけで上記した鍵盤送信/受信処理と同様の処理が行われる。
Next, FIG. 13 shows a flowchart of keyboard device transmission / reception processing in the E-bus system according to the present invention.
In the keyboard transmission / reception process shown in FIG. 13, since the communication protocol is the standard protocol, the standard protocol transmission / reception process is performed in step S30. In this standard protocol transmission processing, “0001 000”, which is the address of the standard protocol in the host, is specified as the destination address to be addressed, and the address of the own device is specified as the source address for transmission. The address of the own device is a 3-bit address set to the own device with the category ID “0010”. Following these addresses, a data part consisting of data 1 to data 3 is transmitted.
Further, in the standard protocol reception process, when the destination address specified by the address matches the address of the own device, the subsequent transmission source address and the data part including data 1 to data 3 are received. In this case, “0001 000”, which is a standard protocol address in the host, is designated as the source address.
In the standard protocol, the panel system and keyboard / panel composite system devices also communicate, but the transmission / reception process at this time is the same as the above-described keyboard transmission / reception process except that the category ID is different.

次に、本発明にかかるEバスシステムにおけるMIDIデバイスの送信/受信処理のフローチャートを図14に示す。
図14に示すMIDI送信/受信処理においては、通信プロトコルがMIDIプロトコルとされていることから、ステップS40においてMIDIプロトコル送信/受信処理が行われる。このMIDIプロトコル送信処理では、アドレス指定する送信先アドレスとして、ホストにおけるMIDIプロトコルのアドレスである“0001 001”を指定して送信し、送信元アドレスとして自機のアドレスを指定して送信する。自機のアドレスは、カテゴリーIDが“0101”とされサブアドレスは自機に設定されている3ビットのアドレスとなる。これらのアドレスに続いてデータ1〜データ3、あるいはデータ1〜データ15からなるデータ部を送信する。
また、MIDIプロトコル受信処理では、アドレス指定された送信先アドレスが自機のアドレスと一致した場合に、後続する送信元アドレスおよびデータ1〜データ3、あるいはデータ1〜データ15からなるデータ部を受信する。この場合の送信元アドレスには、ホストにおけるMIDIプロトコルのアドレスである“0001 001”が指定されている。
Next, FIG. 14 shows a flowchart of MIDI device transmission / reception processing in the E-bus system according to the present invention.
In the MIDI transmission / reception process shown in FIG. 14, since the communication protocol is the MIDI protocol, the MIDI protocol transmission / reception process is performed in step S40. In this MIDI protocol transmission processing, “0001 001”, which is the MIDI protocol address in the host, is specified as the destination address to be specified for transmission, and the own address is specified as the source address for transmission. The address of the own device is a 3-bit address set to the own device with the category ID “0101”. Following these addresses, a data portion consisting of data 1 to data 3 or data 1 to data 15 is transmitted.
Also, in the MIDI protocol reception process, when the addressed destination address matches the address of its own device, the subsequent transmission source address and the data part consisting of data 1 to data 3 or data 1 to data 15 are received. To do. In this case, “0001 001”, which is the address of the MIDI protocol in the host, is designated as the source address.

ところで、ホストは、鍵盤からの鍵盤 ONコマンドに応じて、MIDIのノートオンメッセージを生成し、該ノートオンメッセージに応じて音源ユニットにおける楽音生成を制御したり、Eバスを介して該ノートオンメッセージをMIDIデバイスに送出したりする。また、パネルからのSW ONコマンドを受信した場合、そのSW ONコマンドの種類に応じて、発音用の音色データの選択、音色データの編集、自動演奏用の楽曲データの録音/再生、楽曲データの編集、自デバイスの設定変更、Eバスに接続された各デバイスの設定変更、等の処理を行なう。さらに、音色データの選択時は、例えば、パネルデバイスに対してLEDコマンドを送信して選択された音色データに対応したLEDを点灯させるとともに、MIDIデバイスに当該選択に対応したプログラムチェンジのメッセージを送出する。さらにまた、ホストにおいて楽曲データの再生をしている時(自動演奏時)は、順次再生されるMIDIメッセージに応じて音源ユニットの楽音生成を制御するとともに、Eバスを介して同MIDIメッセージをMIDIデバイスに送出する。   By the way, the host generates a MIDI note-on message in response to a keyboard-on command from the keyboard, controls the tone generation in the tone generator unit in response to the note-on message, and transmits the note-on message via the E bus. To the MIDI device. Also, when a SW ON command is received from the panel, selection of tone data for sound generation, editing of tone data, recording / playback of music data for automatic performance, and recording of music data according to the type of the SW ON command Processing such as editing, setting change of the own device, setting change of each device connected to the E bus is performed. Further, when selecting timbre data, for example, an LED command is transmitted to the panel device to light the LED corresponding to the selected timbre data, and a program change message corresponding to the selection is sent to the MIDI device. To do. Furthermore, when the music data is played back by the host (at the time of automatic performance), the tone generation of the tone generator unit is controlled in accordance with the sequentially played back MIDI messages, and the MIDI message is sent to the MIDI via the E bus. Send to device.

以上説明した本発明によれば、電子楽器を構成するデバイス間の通信をバスシステムを通じて行えるようになる。この場合、マスターから送出されるデータ信号に送信先とされるデバイスに固有のアドレスが付与されており、該アドレスはデバイスのカテゴリーを表すカテゴリー情報と、同種のカテゴリーのデバイスの内のいずれか1つのデバイスを特定するサブアドレスとから構成されている。これにより、バスシステムを通じて種々のカテゴリーのデバイス間で通信を行うことができるようになる。従って、電子楽器において、例えばデバイスとして鍵盤を新たに開発した際には、その鍵盤を電子楽器用バスシステムに接続するだけで新規開発した鍵盤を備える電子楽器を構成することができる。この場合、他のカテゴリーのデバイス、例えばパネル系やホスト系のデバイスはそのまま流用して使用することができるようになる。
さらに、機能の追加に伴ってデバイスを追加する場合には、追加するデバイスを電子楽器用バスシステムに接続するだけで、新たなデバイスを追加した電子楽器を構成できるようになる。これにより、製品開発コストを著しく低下させることができるようになる。また、機能の追加を短時間で行うことができるようになる。
このように本発明においては、各デバイスを他の製品に流用することができると共に、デバイス毎に分けて開発することを可能とすることができる。
According to the present invention described above, communication between devices constituting an electronic musical instrument can be performed through a bus system. In this case, the data signal transmitted from the master is given a unique address to the device as the transmission destination, and this address is one of the category information indicating the category of the device and the device of the same category. It consists of a sub-address that identifies one device. Thereby, it becomes possible to communicate between devices of various categories through the bus system. Therefore, in the electronic musical instrument, for example, when a keyboard is newly developed as a device, an electronic musical instrument having a newly developed keyboard can be configured by simply connecting the keyboard to the electronic musical instrument bus system. In this case, other categories of devices such as panel and host devices can be used as they are.
Furthermore, when a device is added as a function is added, an electronic musical instrument to which a new device is added can be configured simply by connecting the added device to the electronic musical instrument bus system. As a result, the product development cost can be significantly reduced. In addition, the function can be added in a short time.
Thus, in the present invention, each device can be used for other products and can be developed separately for each device.

さらに、鍵盤やパネルの操作入力デバイスとMIDIデバイスとで主要なパケット長を第1所定長に統一することにより、各デバイスにおける受信処理を単純化することができる。さらにまた、バイト長が長くなりがちなシステムエクスクルーシブのみ第1所定長より長い第2所定長で通信を行なうようにすることにより、システムエクスクルーシブの通信効率が落ちないようになる。さらにまた、複数の表示要素を同時に制御することが可能であり、同時に制御すべき表示要素の組に変更があまりない場合は、表示制御のためのコマンドの発行回数を少なくすることができる。さらにまた、MIDIメッセージに影響を与えずに、電子楽器用バスシステムにおいてMIDIメッセージを送受信することができるようになる。   Furthermore, by unifying the main packet length to the first predetermined length between the keyboard or panel operation input device and the MIDI device, the reception process in each device can be simplified. Furthermore, the system exclusive communication efficiency is not lowered by performing communication with the second predetermined length longer than the first predetermined length only for the system exclusive which tends to have a long byte length. Furthermore, it is possible to control a plurality of display elements at the same time, and when there is not much change in the set of display elements to be controlled at the same time, the number of commands for display control can be reduced. Furthermore, the MIDI message can be transmitted and received in the electronic musical instrument bus system without affecting the MIDI message.

上記の説明では、鍵盤デバイスやパネルデバイスに備えられている各LEDはいずれか1つのグループに属するようになっていたが、1つのLEDを複数のグループに所属させることができるようにしてもよい。その場合、そのLEDの制御値は、そのLEDが所属するグループの制御値の最大値、最小値、あるいは合成値とすればよい。また、上記の説明ではEバスに接続されるデバイスとして「ホスト系」「鍵盤系」「パネル系」「MIDI系」を示したが、さらにこれ以外の種類のデバイスを接続するようにしてもよい。さらに、上記の説明ではEバス上のデータのプロトコルとして「共通プロトコル」「標準プロトコル」「MIDIプロトコル」の3つを示したが、さらにこれ以外のプロトコルを使用するようにしてもよい。
以上説明した本発明にかかるEバスシステムは、アイ・スケア・シー(I2C)バスをベースとしている。そして、Eバスシステムにおいて言及しなかった点についてはI2Cバスに準拠している。
In the above description, each LED provided in the keyboard device or the panel device belongs to any one group, but one LED may belong to a plurality of groups. . In that case, the control value of the LED may be the maximum value, the minimum value, or the combined value of the control values of the group to which the LED belongs. In the above description, “host system”, “keyboard system”, “panel system”, and “MIDI system” are shown as devices connected to the E bus, but other types of devices may be connected. . Further, in the above description, three protocols of “common protocol”, “standard protocol”, and “MIDI protocol” are shown as data protocols on the E bus, but other protocols may be used.
The E bus system according to the present invention described above is based on an I-SCA (I 2 C) bus. The points not mentioned in the E bus system conform to the I 2 C bus.

1 電子楽器、10 メインコントローラデバイス、10a メイン基板、11 Eバス、12,13 パネルデバイス、12a パネル基板、14,15 鍵盤デバイス、14a 鍵盤基板、16 MIDIデバイス、16a 基板、17 分岐基板、21 バス、22,23,24 音源ユニット、25,26 I/Oユニット、31 バス、32 サウンドシステム、B1〜B6 バッファ、Rp プルアップ抵抗、TR1〜TR6 トランジスタ 1 electronic musical instrument, 10 main controller device, 10a main board, 11 E bus, 12, 13 panel device, 12a panel board, 14, 15 keyboard device, 14a keyboard board, 16 MIDI device, 16a board, 17 branch board, 21 bus , 22, 23, 24 Sound source unit, 25, 26 I / O unit, 31 bus, 32 sound system, B1-B6 buffer, Rp pull-up resistor, TR1-TR6 transistor

Claims (2)

クロックが転送されるシリアルクロックラインと、該シリアルクロックラインのクロック信号に同期したデータ信号が転送されるシリアルデータラインとを少なくとも備える電子楽器に内蔵されるバスシステムであって、
前記バスシステムに接続されている複数種類のデバイス間においては前記バスシステムを通じてデータの送受信が行われ、
前記デバイスはそれぞれ固有のアドレスを有し、
前記デバイスは、ホストデバイスと、前記バスシステムに対して着脱可能な任意の1ないし複数の鍵盤やパネル等とされる操作入力デバイスと、前記バスシステムに対して着脱可能な任意の1ないし複数のMIDIデバイスとを含み、
前記アドレスは、デバイスのカテゴリーを表すカテゴリー情報と、同種のカテゴリーのデバイスの内のいずれか1つのデバイスを特定するサブアドレスとでなり、
前記データの送受信は、少なくとも送信先アドレスを含むヘッダ部と送信されるデータの種別を示すインデックス情報とがデータに付加された固定長パケットによりなされ、
前記ホストデバイスは、前記アドレスのカテゴリー情報に基づき、前記データの送受信を行う他のデバイスが、前記操作入力デバイスであるか前記MIDIデバイスであるかを識別し、
前記ホストデバイスと前記操作入力デバイスの間においては、第1プロトコルにて、送信しようとする制御・操作内容に対応するコントロールコマンドの種別を示すインデックス情報を含む前記固定長パケットが前記バスシステムに送信され、
前記ホストデバイスとMIDIデバイスとの間においては、第2プロトコルにて、送信しようとするMIDIメッセージのステータスバイトに対応した該MIDIメッセージの種別を示すインデックス情報を含むとともに該MIDIメッセージのデータバイトを前記パケットのデータとし、前記MIDIメッセージが前記固定長パケットに変換されて前記バスシステムに送信されることを特徴とする電子楽器用バスシステム。
A bus system built in an electronic musical instrument comprising at least a serial clock line to which a clock is transferred and a serial data line to which a data signal synchronized with a clock signal of the serial clock line is transferred,
Between a plurality of types of devices connected to the bus system, data is transmitted and received through the bus system,
Each of the devices has a unique address,
The device includes a host device, an arbitrary operation input device that can be attached to and detached from the bus system, and an arbitrary operation input device that can be attached to and detached from the bus system. Including MIDI devices,
The address includes category information indicating a category of the device, and a sub-address that specifies any one of the devices of the same category.
The transmission / reception of the data is performed by a fixed-length packet in which a header part including at least a transmission destination address and index information indicating a type of data to be transmitted are added to the data,
The host device identifies whether the other device that transmits and receives the data is the operation input device or the MIDI device based on the category information of the address,
Between the host device and the operation input device, the fixed-length packet including index information indicating the type of control command corresponding to the control / operation content to be transmitted is transmitted to the bus system using the first protocol. And
Between the host device and the MIDI device, the second protocol includes index information indicating the type of the MIDI message corresponding to the status byte of the MIDI message to be transmitted and the data byte of the MIDI message A bus system for an electronic musical instrument characterized in that the MIDI message is converted into the fixed-length packet and transmitted to the bus system as packet data.
クロックが転送されるシリアルクロックラインと、該シリアルクロックラインのクロック信号に同期したデータ信号が転送されるシリアルデータラインとを少なくとも備える電子楽器に内蔵されるバスシステムであって、
前記バスシステムに接続されている複数種類のデバイス間においては前記バスシステムを通じてデータの送受信が行われ、
前記デバイスはそれぞれ固有のアドレスを有し、
前記デバイスは、ホストデバイスと、前記バスシステムに対して着脱可能な任意の1ないし複数の鍵盤やパネル等とされる操作入力デバイスと、前記バスシステムに対して着脱可能な任意の1ないし複数のMIDIデバイスとを含み、
前記アドレスは、デバイスのカテゴリーを表すカテゴリー情報と、同種のカテゴリーのデバイスの内のいずれか1つのデバイスを特定するサブアドレスとでなり、
前記データの送受信は、少なくとも送信先アドレスを含むヘッダ部と送信されるデータの種別を示すインデックス情報とがデータに付加された固定長パケットによりなされ、
前記ホストデバイスは、前記アドレスのカテゴリー情報に基づき、前記データの送受信を行う他のデバイスが、前記操作入力デバイスであるか前記MIDIデバイスであるかを識別し、
前記ホストデバイスと前記操作入力デバイスの間においては、第1プロトコルにて、制御・操作内容に対応するコントロールコマンドの種別を示すインデックス情報を含む前記固定長パケットが前記バスシステムから受信され、
前記ホストデバイスとMIDIデバイスとの間においては、第2プロトコルにて、MIDIメッセージの種別を示すインデックス情報を含む前記固定長パケットが前記バスシステムから受信され、該受信した固定長パケットを、前記受信した固定長パケットのインデックス情報に対応するステータスバイトとし、前記受信した固定長パケットのデータをデータバイトとしたMIDIメッセージに変換することを特徴とする電子楽器用バスシステム。
A bus system built in an electronic musical instrument comprising at least a serial clock line to which a clock is transferred and a serial data line to which a data signal synchronized with a clock signal of the serial clock line is transferred,
Between a plurality of types of devices connected to the bus system, data is transmitted and received through the bus system,
Each of the devices has a unique address,
The device includes a host device, an arbitrary operation input device that can be attached to and detached from the bus system, and an arbitrary operation input device that can be attached to and detached from the bus system. Including MIDI devices,
The address includes category information indicating a category of the device, and a sub-address that specifies any one of the devices of the same category.
The transmission / reception of the data is performed by a fixed-length packet in which a header part including at least a transmission destination address and index information indicating a type of data to be transmitted are added to the data,
The host device identifies whether the other device that transmits and receives the data is the operation input device or the MIDI device based on the category information of the address,
Between the host device and the operation input device, in the first protocol, the fixed-length packet including index information indicating the type of control command corresponding to the control / operation content is received from the bus system,
Between the host device and the MIDI device, the fixed-length packet including index information indicating the type of the MIDI message is received from the bus system by the second protocol, and the received fixed-length packet is received by the reception device. A bus system for an electronic musical instrument characterized in that a status byte corresponding to the index information of the fixed-length packet is converted into a MIDI message having the received fixed-length packet data as a data byte.
JP2010086869A 2010-04-05 2010-04-05 Electronic musical instrument bus system Expired - Fee Related JP4877401B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010086869A JP4877401B2 (en) 2010-04-05 2010-04-05 Electronic musical instrument bus system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010086869A JP4877401B2 (en) 2010-04-05 2010-04-05 Electronic musical instrument bus system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2005364410A Division JP4650253B2 (en) 2005-12-19 2005-12-19 Electronic musical instrument bus system

Publications (2)

Publication Number Publication Date
JP2010176147A true JP2010176147A (en) 2010-08-12
JP4877401B2 JP4877401B2 (en) 2012-02-15

Family

ID=42707117

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010086869A Expired - Fee Related JP4877401B2 (en) 2010-04-05 2010-04-05 Electronic musical instrument bus system

Country Status (1)

Country Link
JP (1) JP4877401B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012085997A (en) * 2011-02-08 2012-05-10 Sophia Co Ltd Game machine
JP2014221299A (en) * 2014-06-13 2014-11-27 株式会社ソフイア Game machine

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07261756A (en) * 1994-03-18 1995-10-13 Yamaha Corp Electronic musical instrument network system
JPH0997064A (en) * 1995-09-29 1997-04-08 Yamaha Corp Automatic musical performance data processor
JPH09116593A (en) * 1995-08-12 1997-05-02 Sony Corp Data communication method
JPH1031483A (en) * 1996-07-15 1998-02-03 Yamaha Corp Connection equipment for network system
JPH1195750A (en) * 1997-09-19 1999-04-09 Ricoh Co Ltd Digital voice reproducer
JP2000352975A (en) * 1999-06-10 2000-12-19 Yamaha Corp Interface device
JP2003505743A (en) * 1999-07-26 2003-02-12 エラム,カール Method and apparatus for audio program broadcasting using musical instrument digital interface (MIDI) data

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07261756A (en) * 1994-03-18 1995-10-13 Yamaha Corp Electronic musical instrument network system
JPH09116593A (en) * 1995-08-12 1997-05-02 Sony Corp Data communication method
JPH0997064A (en) * 1995-09-29 1997-04-08 Yamaha Corp Automatic musical performance data processor
JPH1031483A (en) * 1996-07-15 1998-02-03 Yamaha Corp Connection equipment for network system
JPH1195750A (en) * 1997-09-19 1999-04-09 Ricoh Co Ltd Digital voice reproducer
JP2000352975A (en) * 1999-06-10 2000-12-19 Yamaha Corp Interface device
JP2003505743A (en) * 1999-07-26 2003-02-12 エラム,カール Method and apparatus for audio program broadcasting using musical instrument digital interface (MIDI) data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012085997A (en) * 2011-02-08 2012-05-10 Sophia Co Ltd Game machine
JP2014221299A (en) * 2014-06-13 2014-11-27 株式会社ソフイア Game machine

Also Published As

Publication number Publication date
JP4877401B2 (en) 2012-02-15

Similar Documents

Publication Publication Date Title
JP4120978B2 (en) Electronic musical instrument bus system
JPH09198043A (en) Keyboard musical instrument
US7684353B2 (en) Method and apparatus for managing transmission and reception of data over a network
JP4877401B2 (en) Electronic musical instrument bus system
JP4650253B2 (en) Electronic musical instrument bus system
JP4591604B2 (en) Electronic musical instruments
JP5082771B2 (en) Performance terminal controller and program
JP2555560B2 (en) Electronic musical instrument
JP2885333B2 (en) Electronic musical instrument
JP2570045B2 (en) Electronic musical instrument
JP3557647B2 (en) Electronic musical instruments and network performance systems
JP2639381B2 (en) Electronic musical instrument
JPS61292691A (en) Keyed instrument for transmitting automatic accompanying information
JPH0417983Y2 (en)
JP2959417B2 (en) Electronic musical instrument data setting device
US5644097A (en) Performance information output device and an automatic performing system provided with the performance information output device
JPH10187148A (en) Midi standardized electronic musical instrument and electronic musical instrument system
JP3249544B2 (en) Electronic music box device
JPH0417985Y2 (en)
JPH08248952A (en) Memory contents revising device for electronic instrument
JPS59131993A (en) Electronic musical instrument
JPH08101682A (en) Musical performance information output device and automatic playing device equipped with the same
JPH03200198A (en) Motif performance device
JP2000010564A (en) Code detector and automatic accompaniment apparatus
JPH1173181A (en) Automatic playing device and automatic playing method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110920

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20111101

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111114

R150 Certificate of patent or registration of utility model

Ref document number: 4877401

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20141209

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees