JPH0870486A - Communication controlling system and electronic equipment - Google Patents

Communication controlling system and electronic equipment

Info

Publication number
JPH0870486A
JPH0870486A JP6225757A JP22575794A JPH0870486A JP H0870486 A JPH0870486 A JP H0870486A JP 6225757 A JP6225757 A JP 6225757A JP 22575794 A JP22575794 A JP 22575794A JP H0870486 A JPH0870486 A JP H0870486A
Authority
JP
Japan
Prior art keywords
information
vtr
write
command
register
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
JP6225757A
Other languages
Japanese (ja)
Other versions
JP3304633B2 (en
Inventor
Yuko Iijima
祐子 飯島
Hisato Shima
久登 嶋
Harumi Kawamura
晴美 川村
Makoto Sato
真 佐藤
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP22575794A priority Critical patent/JP3304633B2/en
Priority to US08/491,076 priority patent/US5689244A/en
Priority to CA002152242A priority patent/CA2152242C/en
Priority to CA002354102A priority patent/CA2354102C/en
Priority to EP95304423A priority patent/EP0689296B1/en
Priority to ES95304423T priority patent/ES2236699T3/en
Priority to DE69534127T priority patent/DE69534127T2/en
Priority to AT95304423T priority patent/ATE292860T1/en
Priority to KR1019950017021A priority patent/KR100504312B1/en
Priority to CN95108453A priority patent/CN1092888C/en
Priority to CNB011339640A priority patent/CN100353723C/en
Publication of JPH0870486A publication Critical patent/JPH0870486A/en
Application granted granted Critical
Publication of JP3304633B2 publication Critical patent/JP3304633B2/en
Priority to KR1020020044772A priority patent/KR100403109B1/en
Priority to KR1020020044771A priority patent/KR100403401B1/en
Priority to KR1020020044773A priority patent/KR100497689B1/en
Priority to CNB021297916A priority patent/CN1205788C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE: To connect plural electronic equipments by a communication control bus, and to make a command transmitted precedently to be executed surely in a communication system among these electronic equipments, and simultaneously, to confirm the success/failure of the command. CONSTITUTION: A write-in side sends a write instruction in which information αread out of a register and the information βdesired to write newly in the register are made a set to the register. The register rewrites the information of the register to P only in the case that the information α sent from the write-in side matches with the information α' written in presently in the register, and further, it transmits the information α' to the write-in side. The write-in side can confirm the success/failure of write-in by comparing α with α'.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、制御信号とデータを混
在させることのできる通信制御バスで複数の電子機器を
接続し、これらの電子機器間でデータの通信を行うシス
テムにおいて、所望の電子機器へ複数の機器からほぼ同
時にコマンドが送信された場合に、最も早く送信された
コマンドの実行を成功させるための技術に関するもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a system in which a plurality of electronic devices are connected by a communication control bus capable of mixing control signals and data and data is communicated between these electronic devices. The present invention relates to a technique for successfully executing the earliest transmitted command when a plurality of devices transmit commands to the devices at substantially the same time.

【0002】[0002]

【従来の技術】従来、ビデオテープレコーダー(以下
「VTR」という。)、テレビ受信機(以下「TV」と
いう。)、カメラ一体型VTR(以下「CAM」とい
う。)、コンピューター等の電子機器を制御信号とデー
タを混在させることのできる通信制御バスで接続し、こ
れらの電子機器間で制御信号及びデータを送受する通信
システムとしては、P1394シリアルバスを用いた通
信システムが考えられている。
2. Description of the Related Art Conventionally, electronic devices such as a video tape recorder (hereinafter referred to as "VTR"), a television receiver (hereinafter referred to as "TV"), a camera-integrated VTR (hereinafter referred to as "CAM"), a computer, etc. A communication system using a P1394 serial bus is considered as a communication system that connects with a communication control bus capable of mixing control signals and data and transmits and receives control signals and data between these electronic devices.

【0003】まず、図5を参照しながらこのような通信
システムの一例を説明する。この通信システムは、電子
機器としてVTR−A、VTR−B、VTR−C及び編
集機を備えている。そして、VTR−Aと編集機の間、
編集機とVTR−Bの間、及びVTR−BとVTR−C
の間は、制御信号及びデータを混在させて伝送できるP
1394シリアルバスで接続されている。各電子機器は
P1394シリアルバス上の制御信号及びデータを中継
する機能を備えているので、このシステムは各電子機器
が共通のP1394シリアルバスに接続されている通信
システムと等価である。
First, an example of such a communication system will be described with reference to FIG. This communication system includes VTR-A, VTR-B, VTR-C, and an editor as electronic devices. And between VTR-A and the editor,
Between editor and VTR-B, and between VTR-B and VTR-C
During this period, control signals and data can be mixed and transmitted.
It is connected by a 1394 serial bus. Since each electronic device has a function of relaying control signals and data on the P1394 serial bus, this system is equivalent to a communication system in which each electronic device is connected to the common P1394 serial bus.

【0004】図5の通信システムでは、図6に示されて
いるように、所定の通信サイクル(例、125μs)で
通信が行われる。そして、デジタルAV信号のようなデ
ータを一定のデータレートで連続的に伝送する同期(I
sochronous)通信と、接続制御コマンドなど
の制御信号を必要に応じて不定期に伝送する非同期(A
synchronous)通信の両方を行うことができ
る。
In the communication system of FIG. 5, as shown in FIG. 6, communication is performed in a predetermined communication cycle (for example, 125 μs). Then, synchronization (I) for continuously transmitting data such as a digital AV signal at a constant data rate.
communication and asynchronous (A) that transmits control signals such as connection control commands irregularly as needed.
Both synchronous communication can be performed.

【0005】通信サイクルの始めにはサイクルスタート
パケットCSPがあり、それに続いて同期通信パケット
を送信する期間が設定される。同期通信パケットそれぞ
れにチャンネル番号1,2,3 ,・・・Nを付けること
により、複数の同期通信を行うことが可能である。そし
て、送信すべき全てのチャンネルの同期通信パケットの
送信が終了した後、次のサイクルスタートパケットCS
Pまでの期間が非同期通信パケットの通信に使用され
る。
There is a cycle start packet CSP at the beginning of the communication cycle, and a period for transmitting the synchronous communication packet is set following the cycle start packet CSP. It is possible to perform a plurality of synchronous communications by assigning channel numbers 1, 2, 3, ... N to the respective synchronous communication packets. Then, after the transmission of the synchronous communication packets of all the channels to be transmitted is completed, the next cycle start packet CS
The period up to P is used for communication of asynchronous communication packets.

【0006】バスに同期通信パケットを送出しようとす
る機器は、使用チャンネルとデータ伝送に必要な帯域を
まず確保する。このため、バスのチャンネルと帯域を管
理する機器であるバスマネージャー(以下「BM」とい
う。)に、チャンネル及び必要とする帯域を申請する。
BMは、図7に示すように、バスの各チャンネルの使用
状態を示すレジスタREG1と、バスの残りの容量を示
すレジスタREG2を備えている。同期通信パケットを
送出しようとする機器は、これらのレジスタREG1,
2に対して、非同期通信パケットを用いて読み出し命令
を送り、REG1,2の内容を読み出す。そして、空き
チャンネルと空き容量があれば、非同期通信パケットを
用いて自分が使用したいチャンネルと帯域をREG1,
2に書き込むための書き込み命令をBMへ送る。レジス
タREG1,2への書き込みに成功すれば、バスへの出
力が可能となる。なお、BMは複数の機器をP1394
シリアルバスに接続して通信システムを構成した時に、
IEEE−P1394で規定する手法により自動的に決
定される。
A device that intends to send a synchronous communication packet to the bus first secures a used channel and a band required for data transmission. Therefore, the channel and required bandwidth are applied to a bus manager (hereinafter referred to as "BM"), which is a device that manages the channel and bandwidth of the bus.
As shown in FIG. 7, the BM includes a register REG1 indicating the usage state of each channel of the bus and a register REG2 indicating the remaining capacity of the bus. The device that intends to send the synchronous communication packet receives these registers REG1,
2, a read command is sent using an asynchronous communication packet to read the contents of REG1 and REG2. Then, if there is a free channel and free space, the channel and band that one wants to use is set to REG1, using the asynchronous communication packet.
2. Send write command to BM to write to 2. If writing to the registers REG1 and REG2 succeeds, output to the bus becomes possible. In addition, BM is a multiple device P139
When connecting to the serial bus and configuring the communication system,
It is automatically determined by the method specified in IEEE-P1394.

【0007】P1394シリアルバスで複数の電子機器
が接続された通信システムにおけるデータ通信の接続制
御は、各電子機器に設けられた仮想的なデジタルプラグ
を用いて行う。図8に仮想的なデジタル入力プラグ及び
出力プラグの一例を示す。これらのデジタルプラグは電
子機器の通信制御マイコン内に設けられた各々4バイト
のレジスタである。
Connection control of data communication in a communication system in which a plurality of electronic devices are connected by a P1394 serial bus is performed using a virtual digital plug provided in each electronic device. FIG. 8 shows an example of virtual digital input plugs and output plugs. Each of these digital plugs is a 4-byte register provided in the communication control microcomputer of the electronic device.

【0008】図8(a)に示すデジタル入力プラグにお
いて、プラグ−イネーブルを1にセットすると、チャン
ネル番号にセットされたチャンネルから同期通信パケッ
トを受信する。入力プラグのプラグ−イネーブルを0ク
リアすると受信を停止する。その際、プラグの他のフィ
ールドも0クリアする。入力プラグのPC(Prote
ct Counter)は、送信機器との信号接続を保
護するときにそのLSBを1にセットし、非保護にする
ときに0クリアする。
When the plug-enable is set to 1 in the digital input plug shown in FIG. 8A, the synchronous communication packet is received from the channel set to the channel number. When the plug-enable of the input plug is cleared to 0, the reception is stopped. At that time, the other fields of the plug are also cleared to zero. Input plug PC (Prote
ct Counter) sets the LSB to 1 when protecting the signal connection with the transmitting device, and clears it to 0 when unprotecting.

【0009】また、図8(b)に示すデジタル出力プラ
グにおいて、プラグ−イネーブルを1にセットすると、
チャンネル番号にセットされたチャンネルに、DR(D
ata Rate)で指定された伝送速度で、Band
widthに示された帯域を使って同期通信パケットを
送信する。出力プラグのプラグ−イネーブルを0クリア
すると、送信を停止する。その際、プラグの他のフィー
ルドも0クリアする。出力プラグのPCは、受信機器と
の信号接続を保護するときに1だけ増やし、非保護にす
るときに1だけ減らすこととし、保護を要求してきた機
器を数える。
Further, in the digital output plug shown in FIG. 8B, when the plug-enable is set to 1,
DR (D
Bandwidth at the transmission rate specified by
The synchronous communication packet is transmitted using the band indicated by the width. When the plug-enable of the output plug is cleared to 0, the transmission is stopped. At that time, the other fields of the plug are also cleared to zero. The PC of the output plug is incremented by 1 when the signal connection with the receiving device is protected and is decremented by 1 when the signal connection with the receiving device is unprotected, and the devices that have requested protection are counted.

【0010】これらのプラグは、P1394のトランザ
クションによって、自分でも他機器からでも書き換える
ことができる。ただし、接続の保護のために、PCが0
になっている時にのみ書き換える。なお、各プラグにお
ける「−」,「−−」,「−−−」は予約ビットであ
る。
These plugs can be rewritten by themselves or from other devices by the transaction of P1394. However, to protect the connection, the PC is 0
Rewrite only when is. Note that "-", "---", "---" in each plug are reserved bits.

【0011】以上のように構成された通信システムにお
いて、各機器間で同期通信が行われていない時に、例え
ばVTR−BとVTR−CからVTR−Aへほぼ同時に
同期通信パケットの出力を要求するコマンドが送信され
た場合、先に到着したコマンドの実行を成功させる処理
を行うために、各機器がP1394の読み出しトランザ
クション(read transaction)と書き
込みトランザクション(write transact
ion)によってVTR−Aのデジタルプラグへ通信す
る方法が考えられる。
In the communication system configured as described above, when the synchronous communication is not performed between the respective devices, for example, the VTR-B and VTR-C request the VTR-A to output the synchronous communication packet almost at the same time. When a command is transmitted, each device performs a P1394 read transaction (write transaction) and a write transaction (write transaction) in order to perform a process for successfully executing the previously arrived command.
Ion) to communicate with the VTR-A digital plug.

【0012】この時、図9に示すように、VTR−Bが
わずかに早くコマンドを送信したとすると、まずVTR
−BがVTR−Aのデジタル出力プラグの内容を読み出
すと、VTR−Aから返事として、既に出力している
か、プロテクトされているか等の出力プラグの情報αが
返ってくる。VTR−Bはその読み出した情報αを見
て、VTR−Aが出力しておらず、プロテクトされてい
ないとわかれば、VTR−Aのデジタル出力プラグへ出
力チャンネル番号等の情報βを書き込み、出力の設定を
完了させる。その後、わずかに遅れてVTR−Cが同じ
コマンドをVTR−Aへ送信したとすると、VTR−C
がVTR−Aのデジタル出力プラグの内容を読み出しに
行った時は既にVTR−Aが出力中であることを示す情
報を含む返事βが返ってくるため、コマンドの実行に失
敗したとわかり、書き込みを行わずに処理が終わる。
At this time, as shown in FIG. 9, if the VTR-B sends a command slightly earlier, first, the VTR
When -B reads the contents of the digital output plug of the VTR-A, the response from the VTR-A is the information .alpha. Of the output plug indicating whether it has already been output or is protected. When the VTR-B sees the read information α and finds that the VTR-A does not output and is not protected, it writes the information β such as the output channel number to the digital output plug of the VTR-A and outputs it. Complete the setting of. After that, if the VTR-C sends the same command to VTR-A with a slight delay, VTR-C
When reading the contents of the digital output plug of VTR-A, a reply β including information indicating that VTR-A is already outputting is returned, so it is understood that the command execution failed, and writing The process ends without performing.

【0013】[0013]

【発明が解決しようとする課題】しかしながら、このよ
うに先に到着したコマンドを実行するために、P139
4の読み出しトランザクション及び書き込みトランザク
ションを用いた処理を行うと、読み出しを行ってから書
き込みを行うまでの間の通信が保護されていないため、
読み出しを行ってから書き込みを行うまでの間に他の機
器が割り込んで通信を行うことができる。
However, in order to execute the command arriving earlier in this way, P139
When the process using the read transaction and the write transaction of 4 is performed, the communication between the read and the write is not protected,
Other devices can interrupt and perform communication between the time of reading and the time of writing.

【0014】例えば、図10のように、VTR−BがV
TR−Aのデジタル出力プラグの内容を読み出してVT
R−Aから返事αを受け取った後に、VTR−CがVT
R−Aのデジタル出力プラグの内容を読み出し、返事α
からプロテクトされていないとわかると、情報γの書き
込みを行うことができる。この場合、図のように、VT
R−Cによる書き込みがVTR−Bによる書き込みより
早いと、まずVTR−CがVTR−Aに出力設定を完了
させる。VTR−Bは割り込まれたことを知らないの
で、VTR−Aのデジタル出力プラグに情報βを上書き
してVTR−Aに出力設定を完了させる。
For example, as shown in FIG. 10, VTR-B is V
Read the contents of the digital output plug of TR-A and VT
After receiving the reply α from RA, VTR-C sends VT
Read the contents of the digital output plug of RA and reply α
When it is determined that the data is not protected, the information γ can be written. In this case, as shown in the figure,
When the writing by the RC is faster than the writing by the VTR-B, the VTR-C first completes the output setting to the VTR-A. Since the VTR-B does not know that it has been interrupted, the information β is overwritten on the digital output plug of the VTR-A to complete the output setting of the VTR-A.

【0015】この場合、後から書き込みトランザクショ
ンを送信したVTR−Bがコマンドの実行に成功し、先
に書き込みトランザクションを送信したVTR−Cは失
敗しているのであるが、VTR−B、VTR−C共に成
功していると思ってしまう。ここで、VTR−B、VT
R−Cが各々異なるチャンネルへの出力要求をしていた
とすると、コマンドの実行に失敗したVTR−Cは受信
チャンネルから何も流れてこないか、あるいは他の機器
の送信データを受け取ってしまう恐れがある。
In this case, the VTR-B that later sent the write transaction succeeded in executing the command, and the VTR-C that sent the write transaction first failed, but VTR-B and VTR-C. I think that both are successful. Here, VTR-B, VT
If the R-Cs make output requests to different channels, the VTR-C that has failed to execute the command may not receive anything from the receiving channel, or may receive the transmission data of another device. is there.

【0016】図11の場合も同様に、VTR−BがVT
R−Aのデジタル出力プラグの内容を読み出して返事α
を受け取った後に、VTR−CがVTR−Aのデジタル
出力プラグの内容を読み出す。その後、VTR−Bは読
み出した結果、プロテクトされていないことがわかった
ため、情報βの書き込みを行う。さらに、VTR−Cも
読み出した時にはプロテクトされていなかったため、情
報γの書き込みを行う。この結果、VTR−Aのデジタ
ル出力プラグは、VTR−Bが書き込みを行って出力設
定を完了させた後、VTR−Cが上書きを行って出力設
定を完了させる。
Similarly in the case of FIG. 11, VTR-B is VT.
Read the contents of the digital output plug of RA and reply α
After receiving, the VTR-C reads the contents of the VTR-A digital output plug. After that, as a result of reading the VTR-B, it was found that the VTR-B was not protected, so the information β is written. Further, since the VTR-C was not protected when it was read, the information γ is written. As a result, in the digital output plug of VTR-A, after VTR-B writes and completes the output setting, VTR-C overwrites and completes the output setting.

【0017】この場合も、後から書き込みトランザクシ
ョンを送信したVTR−Cがコマンドの実行に成功し、
先に書き込みトランザクションを送信したVTR−Bは
失敗しているのであるが、VTR−B、VTR−C共に
成功していると思ってしまう。したがって、ここで、V
TR−B、VTR−Cが各々異なるチャンネルへの出力
要求をしていたとすると、コマンドの実行に失敗したV
TR−Bは受信チャンネルから何も流れてこないか、あ
るいは他の機器の送信データを受け取ってしまう恐れが
ある。
In this case as well, the VTR-C which later sent the write transaction succeeded in executing the command,
The VTR-B that sent the write transaction first fails, but I think that both VTR-B and VTR-C have succeeded. Therefore, here, V
If TR-B and VTR-C are requesting output to different channels, V
TR-B may not flow anything from the reception channel or may receive the transmission data of another device.

【0018】本発明は、このような問題点を解決するた
めになされたものであって、先に送信したコマンドが確
実に実行されるようにすると共に、コマンドの実行の成
功/失敗を確認できるようにした通信制御方式及び電子
機器を提供することを目的とする。
The present invention has been made in order to solve such a problem, and ensures that the previously transmitted command is executed and confirms the success / failure of command execution. It is an object of the present invention to provide a communication control method and electronic device as described above.

【0019】[0019]

【課題を解決するための手段】前記課題を解決するため
に、本発明は、複数の電子機器を通信制御バスで接続
し、これらの子機器間でデータの通信を行う通信システ
ムにおいて、各電子機器は接続制御を行う際に、自分又
は他の電子機器が有する所定の記憶手段に対して接続制
御情報の書き込みを行うことにより接続制御コマンドの
実行を行うようにした通信制御方式であって、接続制御
情報の書き込みを行う電子機器は、所定の記憶手段へ書
き込み命令を送信し、書き込み命令を受信した記憶手段
は最先の書き込み命令のみ実行すると共に書き込み命令
の実行の成功/失敗を示す応答を送信することを特徴と
するものである。
In order to solve the above-mentioned problems, the present invention relates to a communication system in which a plurality of electronic devices are connected by a communication control bus and data communication is performed between these child devices. The device is a communication control method for executing the connection control command by writing the connection control information to a predetermined storage means included in itself or another electronic device when performing the connection control. The electronic device that writes the connection control information transmits a write command to a predetermined storage unit, and the storage unit that receives the write command executes only the earliest write command and a response indicating success / failure of the execution of the write command. Is transmitted.

【0020】例えば、接続制御情報の書き込みを行う電
子機器は、第1の情報と書き込みを行おうとする第2の
情報とを含む書き込み命令を送信し、記憶手段は記憶さ
れている第3の情報と前記第1の情報とが一致する場合
にのみ第3の情報を第1の情報に書き換えると共に、第
3の情報を送信する。ここで、第1の情報は記憶手段か
ら読み出した情報であることが好ましい。
For example, the electronic device for writing the connection control information transmits a write command including the first information and the second information to be written, and the storage means stores the stored third information. And the first information, the third information is rewritten to the first information and the third information is transmitted. Here, the first information is preferably information read from the storage means.

【0021】また、本発明は、複数の電子機器を通信制
御バスで接続し、これらの電子機器間でデータの通信を
行う通信システムに用いる電子機器であって、接続制御
コマンドの実行を行うための接続制御情報を書き込む記
憶手段を有すると共に、この記憶手段は最先の書き込み
命令による接続制御情報のみ記憶し、かつ書き込み命令
の実行の成功/失敗を示す応答を送信することを特徴と
するものである。
Further, the present invention is an electronic device used in a communication system in which a plurality of electronic devices are connected by a communication control bus and data is communicated between these electronic devices, in order to execute a connection control command. And a storage unit for writing the connection control information of the first write command, and the storage unit sends a response indicating success / failure of execution of the write command. Is.

【0022】[0022]

【作用】本発明によれば、最先の書き込み命令による接
続制御情報のみ記憶手段に記憶される。そして、書き込
み命令の実行が成功したか失敗したかを示す応答が送信
される。したがって、電子機器が有する所定の記憶手段
に最も早く到着したコマンドが確実に実行される共に、
コマンドの実行の成功/失敗を確認できる。
According to the present invention, only the connection control information by the earliest write command is stored in the storage means. Then, a response indicating whether the execution of the write command has succeeded or failed is transmitted. Therefore, the command that arrives earliest in the predetermined storage means of the electronic device is surely executed, and
You can check the success / failure of command execution.

【0023】[0023]

【実施例】以下本発明の実施例について図面を参照しな
がら詳細に説明する。本実施例では、図5の通信システ
ムにおいて機器間接続処理を行うものとする。前記した
ように、機器間接続処理を行うためには、デジタルプラ
グへ機器間接続情報を書き込むことが必要である。本実
施例では機器間接続情報を書き込むためにP1394の
ロックトランザクション(lock transact
ion)の一つであるCompare&Swap(以下
「C&S」と略す。)トランザクションを用いる。
Embodiments of the present invention will now be described in detail with reference to the drawings. In this embodiment, it is assumed that inter-device connection processing is performed in the communication system of FIG. As described above, in order to perform the device-to-device connection process, it is necessary to write the device-to-device connection information into the digital plug. In this embodiment, in order to write the connection information between devices, the lock transaction (lock transaction) of P1394 is used.
Compare & Swap (hereinafter abbreviated as "C &S") transaction, which is one of the (ion).

【0024】C&Sトランザクションとは、レジスタか
ら読み出された第1のデータと、レジスタに新しく書き
込もうとする第2のデータとをセットにした書き込み命
令を送り、レジスタでは現在書かれている第3のデータ
と前記第1のデータとを比較し、一致している場合にの
み、第3のデータを第2のデータに書き換える。そし
て、書き込み命令を送った機器に対して第3のデータを
送信する。
The C & S transaction is to send a write command in which the first data read from the register and the second data to be newly written in the register are sent, and the third data currently written in the register is sent. The data is compared with the first data, and the third data is rewritten to the second data only when they match. Then, the third data is transmitted to the device that has transmitted the write command.

【0025】図1を参照しながら説明すると、まず書き
込み側はレジスタの内容を読み出す(read)と、レ
ジスタから返事(read response)として
レジスタの内容情報αが返ってくる。ここまでは従来の
処理手順と同じである。次に書き込み側は、この内容情
報αと新たにレジスタに書きこみたい情報βとをセット
にした書き込み命令(lock request)をレ
ジスタへ送る。レジスタは、書き込み側から送られた内
容情報αが現在レジスタに書かれている内容情報α’と
一致する場合のみ、レジスタの内容情報をβに書き換
え、さらに書き込み側へ内容情報α’を送信する(lo
ck response)。レジスタからの返事(re
ad response)と書き込み命令との間に他の
機器の書き込み命令が成功した場合を除けば、α=α’
となるから、書き込みに成功し、かつ書き込み側では成
功したことが確認できる。
Explaining with reference to FIG. 1, first, when the write side reads the contents of the register (read), the contents information α of the register is returned from the register as a reply (read response). The procedure up to this point is the same as the conventional processing procedure. Next, the writing side sends to the register a write command (lock request) in which the content information α and the information β to be newly written in the register are set. The register rewrites the content information of the register into β and transmits the content information α ′ to the writing side only when the content information α sent from the writing side matches the content information α ′ currently written in the register. (Lo
ck response). Reply from register (re
α = α ', except when the write command of another device succeeds between the ad response) and the write command.
Therefore, it can be confirmed that the writing was successful and the writing side was successful.

【0026】従来の図10及び図11と同じ場合につい
て、図2及び図3に示す。図2において、VTR−Cが
先に書き込み命令を送信すると、VTR−Aではデジタ
ル出力プラグの情報をγに書き換え、VTR−Cに書き
換える前のデジタル出力プラグの情報αを送信する。こ
れによりVTR−Cは書き込みに成功したことが確認で
きる。しかし、VTR−Bが書き込み命令を送信した時
にはデジタル出力プラグの内容はγになっており、読み
出した情報αと一致しないから書き換えは行われない。
そして、VTR−Bにデジタル出力プラグの内容である
γを送信する。VTR−Bはγ≠αであることから、書
き込みに失敗したことが確認できる。同様に、図3の場
合も、先に書き込み命令を送信したVTR−Bが書き込
みに成功し、後から書き込み命令を送信したVTR−C
が失敗している。
The same case as in FIGS. 10 and 11 of the related art is shown in FIGS. In FIG. 2, when the VTR-C first transmits the write command, the VTR-A rewrites the information of the digital output plug into γ, and transmits the information α of the digital output plug before rewriting to the VTR-C. This confirms that the VTR-C has been successfully written. However, when the VTR-B sends a write command, the content of the digital output plug is γ, and it does not match the read information α, so rewriting is not performed.
Then, γ which is the content of the digital output plug is transmitted to the VTR-B. Since VTR-B is γ ≠ α, it can be confirmed that writing has failed. Similarly, in the case of FIG. 3 as well, the VTR-B that has sent the write command first succeeded in writing, and the VTR-C that has sent the write command later.
Has failed.

【0027】このように、本実施例では、先に書き込み
命令を送信した機器は必ず書き込みに成功する。そし
て、書き込みに成功した機器も失敗した機器も、書き込
みに成功したか失敗したかを確認することができる。
As described above, in this embodiment, the device which has transmitted the write command first succeeds in writing. Then, both the device that has succeeded in writing and the device that has failed in writing can confirm whether the writing has succeeded or failed.

【0028】次に、接続制御の一例としてVTR−Aが
ブロードキャスト出力を行う場合について図4のフロー
チャートを参照しながら説明する。まずS1で、ブロー
ドキャストチャンネルを獲得する処理を行う。そして、
獲得に成功した場合にはS2へ移り、失敗した場合には
処理を終える(FAIL)。S2では、ブロードキャス
トのための帯域を獲得する処理を行う。そして、獲得に
成功した場合にはS3へ移り、失敗した場合にはS5へ
移る。
Next, as an example of connection control, a case where the VTR-A performs broadcast output will be described with reference to the flowchart of FIG. First, in S1, a process of acquiring a broadcast channel is performed. And
If the acquisition is successful, the process proceeds to S2, and if the acquisition is unsuccessful, the process ends (FAIL). In S2, a process for acquiring a band for broadcasting is performed. If the acquisition is successful, the process proceeds to S3, and if the acquisition is unsuccessful, the process proceeds to S5.

【0029】ここで、本発明における帯域とチャンネル
の獲得方法について具体的に説明する。前記したよう
に、P1394シリアルバスを用いた通信システムで
は、バスに同期通信パケットを送出しようとする機器
は、BMのレジスタREG1,2へ使用チャンネルと必
要な帯域を書き込むことが必要であり、この書き込みに
成功すれば同期通信パケットの送信が可能となる。そし
て、本発明では、P1394のC&Sトランザクション
を用い使用チャンネルと帯域の書き込みを行う。
Now, a method of acquiring a band and a channel according to the present invention will be specifically described. As described above, in the communication system using the P1394 serial bus, the device that intends to send the synchronous communication packet to the bus needs to write the used channel and the necessary band in the registers REG1 and REG2 of the BM. If the writing is successful, the synchronous communication packet can be transmitted. Then, in the present invention, the used channel and band are written using the C & S transaction of P1394.

【0030】すなわち、S1ではBMのレジスタREG
1を読み出しためのトランザクション(read)を送
信し、その返事(read response)から空
きチャンネルを調べる。そして、ブロードキャストチャ
ンネル(ブロードキャストに使用することがデフォルト
で定められている所定のチャンネル)が使用中であれ
ば、チャンネルの獲得に失敗したことになる。
That is, in S1, the REG of the BM is registered.
A transaction (read) for reading 1 is transmitted, and an empty channel is checked from the reply (read response). If the broadcast channel (a predetermined channel that is defined to be used for broadcasting by default) is in use, it means that acquisition of the channel has failed.

【0031】これに対して、ブロードキャストチャンネ
ルが空いていた場合には、読み出したレジスタREG1
の値にブロードキャストチャンネルに相当するビットを
0に設定した値をセットにした書き込み命令(lock
request)を送信する。その結果、BMからの
返事(lock response)として書き込み命
令に入れたレジスタREG1の値が返ってくれば、ブロ
ードキャストチャンネルの獲得に成功したことになる。
ここで、それ以外の値が返ってきた場合にはチャンネル
の獲得に失敗したことになるので、その返ってきた値を
見てブロードキャストチャンネルが使用中かどうか調べ
る処理からやり直す。
On the other hand, when the broadcast channel is idle, the read register REG1
Write command (lock) with the value corresponding to the broadcast channel set to 0
request) is transmitted. As a result, if the value of the register REG1 included in the write command is returned as a response from the BM (lock response), it means that the acquisition of the broadcast channel has been successful.
Here, if any other value is returned, it means that the acquisition of the channel has failed. Therefore, the process is repeated from the process of checking whether the broadcast channel is in use by looking at the returned value.

【0032】同様に、S2ではBMのレジスタREG2
に対して帯域獲得のための処理を行う。すなわち、BM
のレジスタREG2を読み出すためのトランザクション
を送信し(read)、その返事(read resp
onse)から現在残っている帯域を調べる。そして、
残っている帯域がデータの出力に必要な帯域より少なけ
れば失敗である。逆に、残っている帯域がデータの出力
に必要な帯域より多ければ、書き込み命令(lock
request)を送る。この書き込み命令には、レジ
スタREG2から読み出した値とそこからデータの出力
に必要な帯域を差し引いた値とをセットにして入れる。
その結果、BMから書き込み命令にセットしたREG2
の値と同じ値が返ってくれば(lock respon
se)、帯域の獲得は成功である。それ以外の値が返っ
てきた場合には失敗となり、その返って来た値を見て現
在残っていり帯域とデータの出力に必要な帯域との大小
関係を調べる処理からやり直す。
Similarly, in S2, the register REG2 of the BM is
Then, the process for bandwidth acquisition is performed. That is, BM
Send a transaction to read the register REG2 of the device (read), and reply (read resp)
onse) to check the remaining bandwidth. And
If the remaining bandwidth is less than the bandwidth required for data output, it is a failure. On the other hand, if the remaining bandwidth is larger than the bandwidth required to output the data, the write command (lock
request) is sent. In this write command, the value read from the register REG2 and the value obtained by subtracting the band required for data output from that value are entered as a set.
As a result, REG2 set to write command from BM
If the same value is returned as (lock response
se), acquisition of the band is successful. If any other value is returned, the process fails, and the process returns from the process of checking the returned value and checking the magnitude relationship between the band currently remaining and the band required for data output.

【0033】次に、S3では自分のデジタル出力プラグ
0をオン状態に設定する。ここでデシタル出力プラグ0
はブロードキャスト出力用にデフォルトで定められてい
るものである。そして、設定に成功したら処理を終え
(success)、失敗したらS4へ移る。具体的に
は、まずデジタル出力プラグ0の内容を読み出し(re
ad)、その返事(read response)から
プロテクトされているとわかったら失敗である。また、
プロテクトされていなければ、C&Sトランザクション
によってプラグをオン状態にする。すなわち、書き込み
命令(lockrequest)としてデジタル出力プ
ラグを読み出した返事の値とデジタル出力プラグのプラ
グイネーブル=1/BCN(ブロードキャストチャンネ
ルナンバー)/DR/BWを設定した値を送り、その返
事(lock response)として書き込み命令
に入れたデシタル出力プラグ0の値が返ってくれば成功
である。それ以外の値が返ってきた場合は失敗となり、
その返ってきた値を見てプロテクトされているかどうか
調べる処理からやり直す。
Next, in S3, the digital output plug 0 of its own is set to the ON state. Here, digital output plug 0
Is the default for broadcast output. Then, if the setting is successful, the process ends (success), and if the setting fails, the process proceeds to S4. Specifically, first, the content of the digital output plug 0 is read (re
It is a failure if it turns out that it is protected from the read response. Also,
If not protected, a C & S transaction turns the plug on. That is, as a write command (lock request), a reply value obtained by reading the digital output plug and a plug enable of the digital output plug = 1 / BCN (broadcast channel number) / DR / BW are set, and the reply (lock response) is sent. If the value of the digital output plug 0 entered in the write command is returned, it is successful. If any other value is returned, it will fail,
Start again from the process of checking the value returned to see if it is protected.

【0034】次に、S4ではS2で獲得した帯域を解放
し、S5ではS3で獲得したブロードキャストチャンネ
ルを解放する。これらの解放処理においてもC&Sトラ
ンザクションを用いる。すなわち、S4ではまずBMの
レジスタREG2の内容を読み出し、この読み出した値
とそれにS2で獲得した帯域を加えた値をセットにした
書き込み命令を送り、BMからの返事が書き込み命令に
入れたREG2の値と同じであればチャンネルの解放が
終了する。それ以外の値が返ってきた場合には、その返
ってきた値とS2で獲得した帯域を加えた値をセットに
した書き込み命令を送る処理からやり直す。S5につい
ても同様である。
Next, in S4, the band acquired in S2 is released, and in S5, the broadcast channel acquired in S3 is released. The C & S transaction is also used in these release processes. That is, in S4, first, the contents of the register REG2 of the BM are read, and a write command in which the read value and the value obtained by adding the band acquired in S2 are set is sent, and the response from the BM is the REG2 of the write command. If the value is the same, the channel release is completed. When any other value is returned, the process is repeated from the process of sending the write command in which the value obtained by adding the returned value and the bandwidth acquired in S2 is set. The same applies to S5.

【0035】なお、本発明は前記実施例に限定されるも
のではなく、本発明の趣旨に基づいて種々の変形が可能
である。例えば図1における書き込み命令(resd)
とその返事(read response)のやりとり
を省略し、C&Sトランザクションのみを用いるように
構成することもできる。これにより通信数を削減するこ
とができる。これは、初期状態等のようにレジスタの情
報が推定できる場合に有効である。
The present invention is not limited to the above embodiments, but various modifications can be made based on the spirit of the present invention. For example, the write command (resd) in FIG.
It is also possible to omit the exchange of the read response and the response and to use only the C & S transaction. This can reduce the number of communications. This is effective when the information in the register can be estimated, such as in the initial state.

【0036】また、前記実施例では通信制御バスとして
P1394シリアルバスを用いたが、本発明は制御信号
とデータを混在させて伝送できる通信制御バスであれ
ば、他のバスを用いることもできる。
Further, although the P1394 serial bus is used as the communication control bus in the above-mentioned embodiment, the present invention can use another bus as long as it is a communication control bus capable of transmitting mixed control signals and data.

【0037】[0037]

【発明の効果】以上詳細に説明したように、本発明によ
れば、簡潔かつ確実に早い者勝ちで接続制御コマンドを
実行することができ、かつコマンドの実行の成功/失敗
が確認できる。このため、機器間接続処理部のハードウ
ェア化が容易になるので、処理の高速化及び処理部の低
コスト化が達成できる。
As described above in detail, according to the present invention, the connection control command can be executed simply and surely on a first-come-first-served basis, and the success / failure of command execution can be confirmed. For this reason, the inter-device connection processing unit can be easily implemented as hardware, so that high-speed processing and low cost of the processing unit can be achieved.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明のコマンド処理手順の一例を示す図であ
る。
FIG. 1 is a diagram showing an example of a command processing procedure of the present invention.

【図2】本発明において複数の機器がほぼ同時にコマン
ドを送信した場合の処理手順の一例を示す図である。
FIG. 2 is a diagram showing an example of a processing procedure in the case where a plurality of devices transmit commands almost simultaneously in the present invention.

【図3】本発明において複数の機器がほぼ同時にコマン
ドを送信した場合の処理手順の他の一例を示す図であ
る。
FIG. 3 is a diagram showing another example of a processing procedure in the case where a plurality of devices send commands almost simultaneously in the present invention.

【図4】本発明においてVTR−Aがブロードキャスト
出力を行う場合の処理フローを示す図である。
FIG. 4 is a diagram showing a processing flow when the VTR-A performs broadcast output in the present invention.

【図5】P1394シリアルバスで複数の機器が接続さ
れた通信システムの一例を示す図である。
FIG. 5 is a diagram showing an example of a communication system in which a plurality of devices are connected by a P1394 serial bus.

【図6】P1394シリアルバスで複数の機器が接続さ
れた通信システムにおける通信サイクルの一例を示す図
である。
FIG. 6 is a diagram showing an example of a communication cycle in a communication system in which a plurality of devices are connected by a P1394 serial bus.

【図7】帯域とチャンネルを獲得するための動作を説明
する図である。
FIG. 7 is a diagram illustrating an operation for acquiring a band and a channel.

【図8】デジタルプラグの一例を示す図である。FIG. 8 is a diagram showing an example of a digital plug.

【図9】従来のコマンド処理手順の一例を示す図であ
る。
FIG. 9 is a diagram showing an example of a conventional command processing procedure.

【図10】複数の機器がほぼ同時にコマンドを送信した
場合の従来のコマンド処理手順の一例を示す図である。
FIG. 10 is a diagram showing an example of a conventional command processing procedure in the case where a plurality of devices transmit commands almost simultaneously.

【図11】複数の機器がほぼ同時にコマンドを送信した
場合の従来のコマンド処理手順の他の一例を示す図であ
る。
FIG. 11 is a diagram showing another example of a conventional command processing procedure when a plurality of devices transmit commands almost simultaneously.

【符号の説明】[Explanation of symbols]

BM…バスマネージャー、REG1…使用チャンネルレ
ジスタ、REG2…バス容量レジスタ、PSR…プラグ
ステータスレジスタ
BM ... bus manager, REG1 ... used channel register, REG2 ... bus capacity register, PSR ... plug status register

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04N 5/44 A (72)発明者 佐藤 真 東京都品川区北品川6丁目7番35号 ソニ ー株式会社内─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification number Internal reference number FI Technical indication H04N 5/44 A (72) Inventor Makoto Sato 6-735 Kita-Shinagawa, Shinagawa-ku, Tokyo Soni -Inside the corporation

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 複数の電子機器を通信制御バスで接続
し、該電子機器間でデータの通信を行う通信システムに
おいて、各電子機器は接続制御を行う際に、自分又は他
の電子機器が有する所定の記憶手段に対して接続制御情
報の書き込みを行うことにより接続制御コマンドの実行
を行うようにした通信制御方式であって、 前記接続制御情報の書き込みを行う電子機器は、前記記
憶手段へ書き込み命令を送信し、該書き込み命令を受信
した記憶手段は最先の書き込み命令のみ実行すると共に
書き込み命令の実行の成功/失敗を示す応答を送信する
ことを特徴とする通信制御方式。
1. In a communication system in which a plurality of electronic devices are connected by a communication control bus and data is communicated between the electronic devices, each electronic device has its own or another electronic device when performing connection control. The communication control method is such that the connection control command is executed by writing the connection control information to a predetermined storage means, and the electronic device that writes the connection control information is written to the storage means. A communication control system characterized by transmitting a command, and receiving the write command, the storage means executes only the earliest write command and transmits a response indicating success / failure of execution of the write command.
【請求項2】 接続制御情報の書き込みを行う電子機器
は、第1の情報と書き込みを行おうとする第2の情報と
を含む書き込み命令を送信し、記憶手段は記憶されてい
る第3の情報と前記第1の情報とが一致する場合にのみ
該第3の情報を該第1の情報に書き換えると共に、該第
3の情報を送信することを特徴とする請求項1記載の通
信制御方式。
2. The electronic device for writing the connection control information transmits a write command including the first information and the second information to be written, and the storage means stores the stored third information. 2. The communication control method according to claim 1, wherein the third information is rewritten to the first information and the third information is transmitted only when the first information and the first information match.
【請求項3】 第1の情報は記憶手段から読み出した情
報である請求項2記載の通信制御方式。
3. The communication control system according to claim 2, wherein the first information is information read from the storage means.
【請求項4】 複数の電子機器を通信制御バスで接続
し、該電子機器間でデータの通信を行う通信システムに
用いる電子機器であって、 接続制御コマンドの実行を行うための接続制御情報を書
き込む記憶手段を有すると共に、該記憶手段は最先の書
き込み命令による接続制御情報のみ記憶し、かつ書き込
み命令の実行の成功/失敗を示す応答を送信することを
特徴とする電子機器。
4. An electronic device used in a communication system for connecting a plurality of electronic devices via a communication control bus and performing data communication between the electronic devices, the connection control information for executing a connection control command. An electronic device, comprising: a storage unit for writing, storing only the connection control information by the earliest write command, and transmitting a response indicating success / failure of execution of the write command.
JP22575794A 1994-06-24 1994-08-26 Communication control method and electronic device Expired - Lifetime JP3304633B2 (en)

Priority Applications (15)

Application Number Priority Date Filing Date Title
JP22575794A JP3304633B2 (en) 1994-08-26 1994-08-26 Communication control method and electronic device
US08/491,076 US5689244A (en) 1994-06-24 1995-06-16 Communication system and electronic apparatus
CA002354102A CA2354102C (en) 1994-06-24 1995-06-20 Communication system and electronic apparatus
CA002152242A CA2152242C (en) 1994-06-24 1995-06-20 Communication system and electronic apparatus
ES95304423T ES2236699T3 (en) 1994-06-24 1995-06-23 COMMUNICATION SYSTEM AND ELECTRONIC DEVICE.
DE69534127T DE69534127T2 (en) 1994-06-24 1995-06-23 Communication system for electronic devices
AT95304423T ATE292860T1 (en) 1994-06-24 1995-06-23 COMMUNICATION SYSTEM FOR ELECTRONIC DEVICES
KR1019950017021A KR100504312B1 (en) 1994-06-24 1995-06-23 Communication method and electronic device
EP95304423A EP0689296B1 (en) 1994-06-24 1995-06-23 Communication system and electronic apparatus
CNB011339640A CN100353723C (en) 1994-06-24 1995-06-24 Communication system and electronic device
CN95108453A CN1092888C (en) 1994-06-24 1995-06-24 Communication system and electronic apparatus
KR1020020044772A KR100403109B1 (en) 1994-06-24 2002-07-29 A method of data communication and ellectronic apparatus
KR1020020044771A KR100403401B1 (en) 1994-06-24 2002-07-29 A method of data communication and ellectronic apparatus
KR1020020044773A KR100497689B1 (en) 1994-06-24 2002-07-29 A method of data communication and ellectronic apparatus
CNB021297916A CN1205788C (en) 1994-06-24 2002-08-12 Communication system and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22575794A JP3304633B2 (en) 1994-08-26 1994-08-26 Communication control method and electronic device

Publications (2)

Publication Number Publication Date
JPH0870486A true JPH0870486A (en) 1996-03-12
JP3304633B2 JP3304633B2 (en) 2002-07-22

Family

ID=16834347

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22575794A Expired - Lifetime JP3304633B2 (en) 1994-06-24 1994-08-26 Communication control method and electronic device

Country Status (1)

Country Link
JP (1) JP3304633B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6044436A (en) * 1996-11-15 2000-03-28 Sony Corporation Recording/reproducing apparatus including file management information
US6775714B1 (en) 1999-05-19 2004-08-10 Sony Corporation Communication method, communication apparatus, communication system and providing medium
US7062579B2 (en) 1997-02-14 2006-06-13 Canon Kabushiki Kaisha Data transmission apparatus, system and method, and image processing apparatus
US7213138B2 (en) 1997-02-14 2007-05-01 Canon Kabushiki Kaisha Data transmission apparatus, system and method, and image processing apparatus
JP2012519921A (en) * 2009-03-09 2012-08-30 アルカテル−ルーセント Method and system for remotely configuring a device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6044436A (en) * 1996-11-15 2000-03-28 Sony Corporation Recording/reproducing apparatus including file management information
US7062579B2 (en) 1997-02-14 2006-06-13 Canon Kabushiki Kaisha Data transmission apparatus, system and method, and image processing apparatus
US7213138B2 (en) 1997-02-14 2007-05-01 Canon Kabushiki Kaisha Data transmission apparatus, system and method, and image processing apparatus
US7430660B2 (en) 1997-02-14 2008-09-30 Canon Kabushiki Kaisha Data transmission apparatus, system and method, and image processing apparatus
US6775714B1 (en) 1999-05-19 2004-08-10 Sony Corporation Communication method, communication apparatus, communication system and providing medium
JP2012519921A (en) * 2009-03-09 2012-08-30 アルカテル−ルーセント Method and system for remotely configuring a device
JP2014139802A (en) * 2009-03-09 2014-07-31 Alcatel-Lucent Method and system to perform remote setting for device

Also Published As

Publication number Publication date
JP3304633B2 (en) 2002-07-22

Similar Documents

Publication Publication Date Title
KR100403401B1 (en) A method of data communication and ellectronic apparatus
US5948136A (en) Hardware authentication mechanism for transmission of data between devices on an IEEE 1394-1995 serial bus network
US6108718A (en) Communication method and electronic apparatus thereof
JP3500785B2 (en) Communication control method and electronic device
JP2002112367A (en) Information processing system, and information processing method
JP3194318B2 (en) Bus management method
US5548725A (en) System for transmitting command and/or data in a single packet and automatically reporting status a predetermined time after receiving a command
JP3304633B2 (en) Communication control method and electronic device
JP3291926B2 (en) Electronic device control method
JPH10290238A (en) Electronic device and its information transmission method
JP3348330B2 (en) Communication control method
CA2354102C (en) Communication system and electronic apparatus
JPH0818584A (en) Communication system and electronic device
JP3627726B2 (en) Electronics
JP3678245B2 (en) Manager device and communication control method
JPH07327287A (en) Data transmission equipment
JPH09160869A (en) Electronic equipment and its control method
JP3678242B2 (en) Manager device and communication control method
JP3678243B2 (en) Electronic device and communication control method
JP3731591B2 (en) Manager device and communication control method
JP4129603B2 (en) Information processing apparatus and method, and providing medium
JP3194381B2 (en) Bus management method
JPH10200555A (en) Transmission method, reception method and electronic device
JP3194382B2 (en) Bus management method
JP2004080798A (en) Electronic device and communication control method

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20020409

EXPY Cancellation because of completion of term