JP2005346175A - Apparatus and method for command communication - Google Patents

Apparatus and method for command communication Download PDF

Info

Publication number
JP2005346175A
JP2005346175A JP2004161971A JP2004161971A JP2005346175A JP 2005346175 A JP2005346175 A JP 2005346175A JP 2004161971 A JP2004161971 A JP 2004161971A JP 2004161971 A JP2004161971 A JP 2004161971A JP 2005346175 A JP2005346175 A JP 2005346175A
Authority
JP
Japan
Prior art keywords
command
transmission
reception
execution time
receiving
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.)
Pending
Application number
JP2004161971A
Other languages
Japanese (ja)
Inventor
Akihiro Kaneita
晃宏 兼板
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2004161971A priority Critical patent/JP2005346175A/en
Publication of JP2005346175A publication Critical patent/JP2005346175A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Selective Calling Equipment (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an apparatus and a method for command communication, capable of reducing communication traffic by making it unnecessary to send a notification of a command being in execution from a command reception apparatus executing the command to a command transmission apparatus issuing the command, and deciding a retry interval in the command transmission apparatus by means of simple control software. <P>SOLUTION: On receipt of a request command issued by a command transmission apparatus 20, a command reception apparatus 30 returns a maximum execution period of the command concerned to the command transmission apparatus 20. Using the above maximum command execution period to initiate a timer waiting for a reply of the command execution result, the command transmission apparatus 20 realizes the retry interval fitting the processing performance of the command reception apparatus 30 executing the command. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明はコマンド通信装置およびコマンド通信方法に関し、例えば、車載用のオーディオシステムのような操作機器とオーディオ機器とをネットワークで接続するシステムに適用することができるコマンド通信装置およびコマンド通信方法に関する。   The present invention relates to a command communication device and a command communication method, for example, a command communication device and a command communication method that can be applied to a system in which an operation device such as an in-vehicle audio system and an audio device are connected via a network.

車載用のオーディオシステムのような操作機器とオーディオ機器とをネットワークで接続するシステム等にあっては、例えば、送信側の操作機器から受信側のオーディオ機器にコマンドを送信すると、オーディオ機器はこのコマンドを受信して実行し、その結果を操作機器に送信するようにしている。   In a system in which an operating device such as an in-vehicle audio system is connected to an audio device via a network, for example, when a command is transmitted from a transmitting-side operating device to a receiving-side audio device, the audio device Is received and executed, and the result is transmitted to the operating device.

従来のこの種のコマンドの通信方法としては、例えば、図3に示すようなものがある。図3において、通信システムのコマンド送信装置1とコマンド実行側であるコマンド受信装置6は伝送線路10を介して接続されている。   As a conventional communication method of this type of command, for example, there is a method as shown in FIG. In FIG. 3, the command transmitter 1 of the communication system and the command receiver 6 on the command execution side are connected via a transmission line 10.

コマンド送信装置1は、コマンドの制御を実現するコマンド制御部2を備えており、このコマンド制御部2から発行されるコマンドは通信制御部3と送受信部4を介した後、伝送線路10を通してコマンド受信装置6に送信される。   The command transmission device 1 includes a command control unit 2 that realizes command control, and commands issued from the command control unit 2 are transmitted through the communication control unit 3 and the transmission / reception unit 4 and then transmitted through the transmission line 10. It is transmitted to the receiving device 6.

コマンド受信装置6では送受信部7と通信制御部8を通してコマンドを受信した後、コマンド実行部9に受信コマンドを転送する。コマンド実行部9では、受信コマンドを実行し、その実行結果をコマンド送信装置1に送信する。   The command receiving device 6 receives the command through the transmission / reception unit 7 and the communication control unit 8 and then transfers the received command to the command execution unit 9. The command execution unit 9 executes the reception command and transmits the execution result to the command transmission device 1.

ここで、コマンド制御部2はコマンド実行結果を正常に受信できた場合にコマンド処理を終了する。これをシーケンスで示すと図4のように示される。図4において、コマンド送信装置1の要求コマンドに対して、コマンド受信装置6は要求コマンドを実行し、その結果を、コマンド実行結果応答として、コマンド送信装置1に送り返す。   Here, the command control unit 2 ends the command processing when the command execution result is normally received. This is shown as a sequence in FIG. In FIG. 4, in response to the request command of the command transmission device 1, the command reception device 6 executes the request command and sends the result back to the command transmission device 1 as a command execution result response.

ここで、コマンド実行結果がある一定時間待っても戻ってこない場合は、図3のコマンド送信装置1のコマンド制御部2で再度コマンドを発行するリトライ処理を行っている。この一定時間は、コマンド送信装置1内に格納されている、各コマンドのリトライ間隔保存部5から読み出して決定している。   If the command execution result does not return after waiting for a certain period of time, the command control unit 2 of the command transmission device 1 in FIG. 3 performs a retry process for issuing the command again. The predetermined time is determined by reading from the retry interval storage unit 5 of each command stored in the command transmission device 1.

これをシーケンスで示すと図5のように示される。図5において、コマンド送信装置1より要求コマンドが発行されるが、その実行結果であるコマンド実行結果応答がコマンド受信装置6より一定時間待っても戻ってこない場合、コマンド送信装置はコマンドリトライ間隔のタイマー値でタイムアウトし、再度要求コマンドを発行してリトライ処理を行う。   This is shown as a sequence in FIG. In FIG. 5, a request command is issued from the command transmission device 1, but if the command execution result response as the execution result does not return after waiting for a certain time from the command reception device 6, the command transmission device sets the command retry interval. It times out with the timer value and issues a request command again to perform retry processing.

また、コマンド送信装置1でタイムアウトを発生させないためには、コマンド受信装置6よりコマンドの実行中であることの通知を定期的に応答する方法も行われている。   In order to prevent the command transmitter 1 from causing a timeout, a method of periodically responding from the command receiver 6 that a command is being executed is also used.

これを図6に示す。図6において、コマンド送信装置1より要求コマンドを発行し、コマンド受信装置6でそのコマンドを実行する場合、その実行に時間がかかる場合は、実行中であることをコマンド送信装置1に通知する。   This is shown in FIG. In FIG. 6, when a request command is issued from the command transmission apparatus 1 and the command reception apparatus 6 executes the command, if the execution takes time, the command transmission apparatus 1 is notified that the execution is in progress.

コマンド送信装置は、コマンドを発行する時に応答を受信するまでのタイマーをセットする。そのタイマーがタイムアウトすると、コマンドを再送信してリトライを行う。   The command transmission device sets a timer for receiving a response when issuing a command. If the timer times out, the command is retransmitted and a retry is performed.

また、コマンド受信装置6は、コマンド送信装置1のこのタイマーをタイムアウトさせないために、コマンド実行中の通知をコマンド送信装置1に行う。この実行中の通知を受けたコマンド送信装置1は、タイマーのクリアを行い、再度そこからタイマーをセットし直す。   Further, the command receiving device 6 notifies the command transmitting device 1 that the command is being executed so as not to time out the timer of the command transmitting device 1. Receiving this notification during execution, the command transmission device 1 clears the timer and resets the timer again.

そして、コマンド受信装置6はコマンド送信装置1がタイムアウトする前にコマンドの実行ができない場合は、再度実行中の通知を行い、コマンド送信装置1のタイマークリアとタイマー再設定を行う。このように、コマンド受信装置6より定期的にコマンド実行中の通知を定期的に行えば、コマンド送信装置1のタイマーがタイムアウトすることなくコマンドを実行することができる。   If the command receiving device 6 cannot execute the command before the command transmitting device 1 times out, the command receiving device 6 notifies that the command transmitting device 1 is executing again, and clears the timer of the command transmitting device 1 and resets the timer. As described above, if the command reception device 6 periodically notifies that the command is being executed, the command can be executed without the timer of the command transmission device 1 timing out.

このように、従来では、コマンド受信装置6でコマンド実行中に、コマンド送信装置1によりコマンドの再発行を行わせないために、コマンド送信装置1でコマンドの最大実行時間を持ち、その時間以上に待っても、実行結果の応答が無い場合にコマンド再発行(リトライ)を行ったり、コマンド受信装置6より、実行中であることを定期的に通知して、その通知を受信する毎にコマンド送信装置1でタイマーのクリアと再設定を行ったりすることで、コマンド実行中にコマンド再発行させない方法がとられている。   Thus, conventionally, since command re-issuance is not performed by the command transmission device 1 while the command reception device 6 is executing the command, the command transmission device 1 has a maximum command execution time, and more than that time. If there is no response to the execution result even after waiting, a command is reissued (retry), or the command receiving device 6 periodically notifies that it is being executed, and a command is sent each time the notification is received. A method is employed in which the command is not reissued during command execution by clearing and resetting the timer in the device 1.

また、その他のコマンド通信方法としては、特許文献1に示すようなものがあり、例えば、図7のように示される。図7において、コマンドを発行した第1のコマンド送信装置とは別の第2のコマンド送信装置よりコマンド実行中にコマンドの発行を行わせないために、コマンド実行中にコマンド受信装置が要求コマンドを受信した場合にはコマンド実行が終了するまでの待ち時間を第2のコマンド送信装置に通知し、その待ち時間後に第2のコマンド送信装置から再度要求コマンドを発行するようになっている。
特開平8−88846号公報
Further, as another command communication method, there is one as shown in Patent Document 1, for example, as shown in FIG. In FIG. 7, in order not to issue a command during command execution from a second command transmission device different from the first command transmission device that issued the command, the command reception device issues a request command during command execution. When the command is received, the second command transmission device is notified of the waiting time until the command execution is completed, and the request command is issued again from the second command transmission device after the waiting time.
JP-A-8-88846

しかしながら、このような従来の特許文献1に示すコマンドの通信方法にあっては、コマンドを発行したコマンド送信装置とは別のコマンド送信装置のコマンドを実行中に発行させないために、最初にコマンドを発行した第1のコマンド送信装置とは別の第2のコマンド送信装置に対して待ち時間を通知しているため、最初のコマンドを発行した第1のコマンド送信装置に対して、コマンド受信装置から応答がなくなった場合に、コマンドのリトライ間隔を決めることができないという問題があった。   However, in such a conventional command communication method disclosed in Patent Document 1, in order not to issue a command of a command transmission device different from the command transmission device that issued the command during execution, Since the waiting time is notified to the second command transmission device different from the issued first command transmission device, the command reception device sends the first command transmission device that issued the first command to the first command transmission device. When there is no response, there is a problem that the retry interval of the command cannot be determined.

これに対して、図6に示すように、コマンド送信装置1にコマンドのリトライ間隔を保存しておき、コマンド受信装置6から応答がなくなった場合のリトライ用にタイマーをセットする場合には、コマンド送信装置1にコマンドのリトライ間隔を保存していたために、コマンド送信装置1はコマンドを実行するコマンド受信装置6のコマンドの実行時間をあらかじめ知っておく必要があった。また、コマンド毎に実行時間が異なる場合は、コマンド毎にタイマー値を持っている必要があり、そのために保存領域のメモリ使用量を増加させてしまっていた。   On the other hand, as shown in FIG. 6, when a command retry interval is stored in the command transmission device 1 and a timer is set for retry when there is no response from the command reception device 6, Since the command retry interval is stored in the transmission device 1, the command transmission device 1 needs to know in advance the command execution time of the command reception device 6 that executes the command. Also, if the execution time differs for each command, it is necessary to have a timer value for each command, which increases the memory usage of the storage area.

したがって、メモリ使用量を増加させないためには、コマンド毎に異なる実行時間でも、ある固定のタイマー値を使う必要があるため、コマンド受信装置6は、コマンド送信装置1のタイマーをタイムアウトさせないために、定期的に実行中であることを通知し、コマンド送信装置1がコマンド実行中の通知を受けると、起動しているタイマーをクリアし、再度タイマーを起動する方法が取られている。   Therefore, in order not to increase the amount of memory used, it is necessary to use a certain fixed timer value even with different execution times for each command. Therefore, the command receiving device 6 does not time out the timer of the command transmitting device 1. A method is used in which the fact that the command transmission device 1 is regularly executing is notified and the command transmission device 1 receives the notification that the command is being executed, the timer that has been started is cleared and the timer is started again.

このように、コマンド実行中の通知を送信するために、通信のトラフィックを上げてしまう問題が発生してしまう。また、コマンド受信装置6は、コマンド実行中にそのコマンドの実行中を通知する必要があり、制御ソフトウェアが複雑になってしまうという問題が発生してしまう。   As described above, in order to transmit a notification during command execution, a problem of increasing communication traffic occurs. Further, the command receiving device 6 needs to notify that the command is being executed during the execution of the command, which causes a problem that the control software becomes complicated.

本発明は、従来の問題を解決するためになされたもので、コマンドの実行を行うコマンド受信装置からコマンドを発行するコマンド送信装置にコマンド実行中の通知を行うのを不要にして、通信のトラフィックを抑えることができ、簡単な制御ソフトウェアでコマンド送信装置のリトライ間隔を決定することができるコマンド通信装置およびコマンド通信方法を提供することを目的とする。   The present invention has been made in order to solve the conventional problem, and eliminates the need for notifying the command transmitting device that issues a command from the command receiving device that executes the command that the command is being executed. It is an object of the present invention to provide a command communication device and a command communication method capable of determining the retry interval of a command transmission device with simple control software.

本発明のコマンド受信装置は、コマンド送信装置から送信されるコマンドを受信したときに、前記コマンドを実行し、前記コマンドの実行結果を前記コマンド送信装置に応答するようにしたコマンド受信装置であって、コマンドの送受信制御を行う送受信部と、受信した前記コマンドを実行するコマンド実行部と、複数のコマンドの各コマンドに対する最大実行時間を保存するコマンド最大実行時間保存部とを備え、前記コマンドを受信した前記コマンド実行部は、前記コマンドに対する最大実行時間を前記コマンド最大実行時間保存部から読み出し前記送受信部から送信するようになっている。   The command receiving device of the present invention is a command receiving device configured to execute the command when receiving a command transmitted from the command transmitting device, and to respond to the command transmitting device with an execution result of the command. A command transmission / reception unit that performs command transmission / reception control, a command execution unit that executes the received command, and a command maximum execution time storage unit that stores a maximum execution time for each command of a plurality of commands, and receives the command The command execution unit reads the maximum execution time for the command from the command maximum execution time storage unit and transmits it from the transmission / reception unit.

この構成により、コマンドを実行するコマンド受信装置からコマンドの実行中であることをコマンド送信装置に定期的に通知するのを不要にでき、通信のトラフィックを抑えることができる。   With this configuration, it is unnecessary to periodically notify the command transmitting device that the command is being executed from the command receiving device that executes the command, and communication traffic can be suppressed.

また、本発明のコマンド送信装置は、コマンド受信装置にコマンドを送信したとき、前記コマンド受信装置で実行されたコマンドの結果を受信するコマンド送信装置であって、コマンドの送受信制御を行う送受信部と、前記コマンド受信装置に対してコマンドリトライ処理を行うコマンド制御部とを備え、前記コマンド制御部は、前記コマンド制御装置からのコマンドの実行結果が受信できない場合、コマンドリトライ処理を行う間隔を前記コマンド受信装置から通知されるコマンド最大実行時間で決定するようになっている。   The command transmission device of the present invention is a command transmission device that receives a result of a command executed by the command reception device when a command is transmitted to the command reception device, and a transmission / reception unit that performs transmission / reception control of the command; A command control unit that performs command retry processing on the command receiving device, and the command control unit sets an interval for performing command retry processing when the command execution result from the command control device cannot be received. The maximum command execution time notified from the receiving device is determined.

この構成により、コマンド送信装置がコマンド毎のリトライ時間を持つのを不要にして、メモリ使用量が増加してしまうのを防ぐことができる。これに加えて、コマンド実行側では、コマンドの実行中にそのコマンドの実行中であることを通知する必要がないので、制御ソフトを簡単にすることができる。   With this configuration, it is unnecessary for the command transmission apparatus to have a retry time for each command, and it is possible to prevent an increase in memory usage. In addition, the command execution side does not need to notify that the command is being executed during the execution of the command, so that the control software can be simplified.

また、本発明のコマンド通信装置は、コマンド送信装置から送信されるコマンドをコマンド受信装置で受信したときに、前記コマンド受信装置で前記コマンドを実行し、前記コマンドの実行結果を前記コマンド送信装置に応答するコマンド通信装置であって、前記コマンド受信装置は、複数のコマンドの各コマンドに対する最大実行時間を保存するコマンド最大実行時間保存部を備え、前記コマンドを受信すると、前記コマンド最大実行時間保存部から前記コマンドに対する最大実行時間を読み出して前記コマンド送信装置に送信し、前記コマンド送信装置は、前記コマンド受信装置に対してコマンドリトライ処理を行うコマンド制御部を備え、前記コマンド制御装置からのコマンドの実行結果が受信できないとき、コマンドリトライ処理を行う間隔を受信した前記コマンド最大実行時間で決定するようになっている。   The command communication device according to the present invention executes the command by the command receiving device when the command receiving device receives a command transmitted from the command transmitting device, and sends the execution result of the command to the command transmitting device. A command communication device that responds, wherein the command receiving device includes a command maximum execution time storage unit that stores a maximum execution time for each command of a plurality of commands, and upon receiving the command, the command maximum execution time storage unit The command execution unit reads a maximum execution time for the command and transmits the command execution unit to the command transmission unit, and the command transmission unit includes a command control unit that performs a command retry process on the command reception unit. When the execution result cannot be received, command retry processing is performed. Wherein receiving the earthenware pots spacing is adapted to determine a command maximum execution time.

この構成により、コマンド送信装置がコマンド毎のリトライ時間を持つのを不要にして、メモリ使用量が増加してしまうのを防ぐことができる。これに加えて、コマンド受信装置は、コマンドの実行中にそのコマンドの実行中であることを通知する必要がないので、制御ソフトを簡単にすることができる。   With this configuration, it is unnecessary for the command transmission apparatus to have a retry time for each command, and it is possible to prevent an increase in memory usage. In addition, since the command receiving device does not need to notify that the command is being executed during the execution of the command, the control software can be simplified.

また、本発明のコマンド通信方法は、コマンド送信装置から送信されるコマンドをコマンド受信装置で受信し、前記コマンド受信装置で前記コマンドを実行し、
前記コマンドの実行結果を前記コマンド受信装置から前記コマンド送信装置に応答するようにしたコマンド通信方法であって、前記コマンド受信装置は、前記コマンドを受信したときにコマンド最大実行時間を前記コマンド送信装置に通知するようになっている。
Further, in the command communication method of the present invention, the command transmitted from the command transmitting device is received by the command receiving device, and the command is executed by the command receiving device,
A command communication method in which an execution result of the command is returned from the command receiving device to the command transmitting device, wherein the command receiving device sets a command maximum execution time when the command is received to the command transmitting device. To be notified.

この方法により、コマンドを実行するコマンド受信装置からコマンドの実行中であることをコマンド送信装置に定期的に通知するのを不要にでき、通信のトラフィックを抑えることができる。   According to this method, it is unnecessary to periodically notify the command transmitting device that the command is being executed from the command receiving device that executes the command, and communication traffic can be suppressed.

また、本発明のコマンド通信方法は、前記コマンド送信装置から前記コマンドを送信した後、前記コマンド受信装置から送られてくる前記コマンド最大実行時間によって前記コマンド送信装置のコマンド実行結果の応答待ち時間を決定するようになっている。   In the command communication method of the present invention, after the command is transmitted from the command transmission apparatus, the response waiting time of the command execution result of the command transmission apparatus is determined by the command maximum execution time transmitted from the command reception apparatus. It comes to decide.

この方法により、コマンド送信装置がコマンド毎のリトライ時間を持つのを不要にして、メモリ使用量が増加してしまうのを防ぐことができる。これに加えて、コマンド実行側では、コマンドの実行中にそのコマンドの実行中であることを通知する必要がないので、制御ソフトを簡単にすることができる。   This method makes it unnecessary to have a retry time for each command in the command transmission device, and can prevent an increase in memory usage. In addition, the command execution side does not need to notify that the command is being executed during the execution of the command, so that the control software can be simplified.

以上説明したように、本発明は、コマンドの実行を行うコマンド受信装置からコマンドを発行するコマンド送信装置にコマンド実行中の通知を行うのを不要にして、通信のトラフィックを抑えることができ、簡単な制御ソフトウェアでコマンド送信装置のリトライ間隔を決定することができるコマンド通信装置およびコマンド通信方法を提供することができる。   As described above, the present invention eliminates the need to notify the command sending device that issues a command from the command receiving device that executes the command, and can reduce the traffic of communication. It is possible to provide a command communication device and a command communication method capable of determining the retry interval of the command transmission device with simple control software.

以下、本発明の実施の形態について、図面を用いて説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1、図2は本発明に係るコマンド通信装置およびコマンド通信方法の一実施の形態を示す図である。   1 and 2 are diagrams showing an embodiment of a command communication apparatus and a command communication method according to the present invention.

まず、構成を説明する。図1において、コマンド通信装置11はコマンド送信装置20と、コマンド受信装置30と、コマンド送信装置20およびコマンド受信装置30を接続する伝送線路40とで構成されている。本実施の形態では、車載用のオーディオシステムのような操作機器とオーディオ機器とをネットワークで接続するシステムに用いることができ、この場合には、コマンド送信装置20を操作機器から構成し、コマンド受信装置30をオーディオ機器から構成すれば良い。   First, the configuration will be described. In FIG. 1, the command communication device 11 includes a command transmission device 20, a command reception device 30, and a transmission line 40 that connects the command transmission device 20 and the command reception device 30. In the present embodiment, it can be used in a system in which an operation device such as an in-vehicle audio system and an audio device are connected via a network. In this case, the command transmission device 20 is configured from the operation device and receives a command. The device 30 may be configured from an audio device.

コマンド送信装置20からコマンドを送信すると、コマンド受信装置30で受信し、そのコマンドを実行する。また、コマンド受信装置30はそのコマンドを受信したときに、コマンドを受信した旨やそのコマンドを実行するために必要となる最大実行時間、さらに受信したコマンドの実行結果等をコマンド送信装置20に送信し、コマンド送信装置20はそれを受信する。このように、コマンド送信装置20とコマンド受信装置30との間でコマンド等の情報の送受信を行う。   When a command is transmitted from the command transmission device 20, the command reception device 30 receives the command and executes the command. When the command receiving device 30 receives the command, the command receiving device 30 transmits to the command transmitting device 20 that the command has been received, the maximum execution time required to execute the command, and the execution result of the received command. Then, the command transmission device 20 receives it. In this manner, information such as a command is transmitted and received between the command transmission device 20 and the command reception device 30.

さらに詳細すると、コマンド送信装置20は、コマンド制御部21、通信制御部22および送受信部23を備えており、コマンド受信装置30は、コマンド実行部31、通信制御部32、送受信部33および各コマンド最大実行時間保存部(コマンド最大実行時間保存部)34から構成されている。   More specifically, the command transmission device 20 includes a command control unit 21, a communication control unit 22, and a transmission / reception unit 23. The command reception device 30 includes a command execution unit 31, a communication control unit 32, a transmission / reception unit 33, and each command. The maximum execution time storage unit (command maximum execution time storage unit) 34 is configured.

送受信部33はコマンドの送受信を行うインターフェースから構成されており、通信制御部32はコマンド送信装置20との間で通信の制御や通信管理を行うようになっている。   The transmission / reception unit 33 includes an interface that transmits and receives commands, and the communication control unit 32 performs communication control and communication management with the command transmission device 20.

コマンド実行部31は送受信部33および通信制御部32を通してコマンド送信装置20から受信したコマンドを実行するようになっており、各コマンド最大実行時間保存部34は受信した各コマンドの最大実行時間を格納している。   The command execution unit 31 executes a command received from the command transmission device 20 through the transmission / reception unit 33 and the communication control unit 32, and each command maximum execution time storage unit 34 stores the maximum execution time of each received command. doing.

送受信部23はコマンドの送受信を行うインターフェースから構成されており、通信制御部22はコマンド受信装置30との間で通信の制御や通信管理を行うようになっている。   The transmission / reception unit 23 includes an interface that transmits and receives commands, and the communication control unit 22 performs communication control and communication management with the command reception device 30.

コマンド制御部21はコマンドの発行を行ったり、コマンドの実行結果から正常に終了したか、異常が発生したことにより終了したかを判断するようになっている。   The command control unit 21 issues a command, determines from the command execution result whether the command has ended normally, or whether it has ended due to an abnormality.

次に、図2のシーケンス図に基づいてコマンド通信方法を説明する。   Next, a command communication method will be described based on the sequence diagram of FIG.

図2において、コマンド受信装置30はコマンド送信装置20より要求コマンドを受信すると、送受信部33と通信制御部32を通して、実行コマンドをコマンド実行部31に転送する。   In FIG. 2, when receiving a request command from the command transmission device 20, the command reception device 30 transfers the execution command to the command execution unit 31 through the transmission / reception unit 33 and the communication control unit 32.

このとき、受信したコマンドを実行する前に、各コマンド最大実行時間保存部34から該当コマンドの最大実行時間を読み出し、これからコマンドの実行中に移行することを通知するコマンドに、該当コマンドの最大実行時間を付加してコマンド送信装置20に通知する。このように実行するコマンドの最大実行時間をコマンド送信装置20通知するので、コマンドの実行中を定期的にコマンド送信装置20に通知するのを不要にできる。   At this time, before executing the received command, the maximum execution time of the corresponding command is read out from each command maximum execution time storage unit 34, and the command for notifying that the command will be shifted during the execution of the command will be executed. The command transmission apparatus 20 is notified with the time added. Since the command execution device 20 is notified of the maximum execution time of the command to be executed in this way, it is unnecessary to periodically notify the command transmission device 20 that the command is being executed.

このように本実施の形態では、コマンド受信装置30、すなわち、コマンドを実行する装置に、各コマンド最大実行時間保存部34を設けることにより、該当コマンド最大実行時間をコマンド送信装置20に通知することができるので、コマンドの実行中であることを定期的にコマンド送信装置20に送信するのを不要にして、通信のトラフィックを抑えることができる。   As described above, in this embodiment, the command receiving device 30, that is, the device that executes the command is provided with each command maximum execution time storage unit 34 to notify the command transmitting device 20 of the corresponding command maximum execution time. Therefore, it is unnecessary to periodically transmit to the command transmitting device 20 that the command is being executed, and communication traffic can be suppressed.

次に、図2に基づいてコマンド送信装置20でコマンド受信装置30から送信される要求コマンドの最大実行時間を利用する例を説明する。   Next, an example in which the command transmitter 20 uses the maximum execution time of a request command transmitted from the command receiver 30 will be described with reference to FIG.

コマンド送信装置20のコマンド制御部21より要求コマンドを発行すると、その発行された要求コマンドは、コマンド送信装置20の通信制御部22、送受信部23を通して、伝送線路40を伝わりコマンド受信装置30に要求コマンドが伝達される。   When a request command is issued from the command control unit 21 of the command transmission device 20, the issued request command is transmitted to the command reception device 30 through the transmission line 40 through the communication control unit 22 and the transmission / reception unit 23 of the command transmission device 20. The command is transmitted.

コマンド受信装置30よりその要求コマンドを正常に受信し、コマンド実行処理に入ったことをコマンド受信装置30より実行中の通知が送り返されることによって、コマンド送信装置20は正常にコマンドをコマンド受信装置30に送れたものと判断する。   When the command receiving device 30 receives the request command normally and the command receiving device 30 returns a notification that the command is being executed, the command transmitting device 20 sends the command normally. Judge that it was sent to.

例えば、このコマンド実行中の通知の中に要求コマンドの最大実行時間を含めておき、コマンド送信装置20のコマンド制御部21は、このコマンド最大実行時間により、要求コマンドのリトライ間隔のタイマー値として使用する。   For example, the maximum execution time of the request command is included in the notification during the execution of the command, and the command control unit 21 of the command transmission device 20 uses it as a timer value for the retry interval of the request command based on the maximum command execution time. To do.

なお、コマンドの最大実行時間の通知は、コマンド受信装置30がコマンド送信装置20からコマンドを受信したことを通知する応答に含める形でなく、別途通知でも良い。   The notification of the maximum command execution time is not included in the response for notifying that the command receiving device 30 has received the command from the command transmitting device 20, and may be separately notified.

コマンド最大実行時間で設定されたタイマーを起動して、タイムアウトする前にコマンド実行結果応答が戻ってくれば、正常終了と判断し、コマンド最大実行時間で設定されたタイマーがタイムアウトした場合は、コマンド受信装置30からコマンド実行結果の応答無しとして、要求コマンドのリトライを行い、再送処理を実行する。   Start the timer set with the command maximum execution time, and if the command execution result response is returned before the timeout, it is judged as normal termination, and if the timer set with the command maximum execution time times out, the command Assuming that there is no response to the command execution result from the receiving device 30, the request command is retried and the retransmission process is executed.

このように本実施の形態では、コマンド送信装置20のコマンド制御部21のリトライ処理において、コマンド受信装置30から送られてくる要求コマンドの最大実行時間でリトライ間隔のタイマー値を決定することが可能となり、コマンド受信装置30から定期的にコマンド実行中の通知を送るのを不要にすることができる。   Thus, in the present embodiment, the retry interval timer value can be determined by the maximum execution time of the request command sent from the command receiving device 30 in the retry processing of the command control unit 21 of the command transmitting device 20. Thus, it is unnecessary to periodically send a command execution notification from the command receiving device 30.

また、コマンド送信装置20では、コマンド実行中の通知を受けてタイマーのクリアと再起動を行う必要がないので、ソフトウェアによるリトライ制御を簡単にすることができる。また、コマンド送信装置20にコマンド毎のリトライ時間を持つ必要もないので、メモリ使用量の増加を防ぐことができる。   In addition, since the command transmission device 20 does not need to clear and restart the timer upon receiving a notification during command execution, retry control by software can be simplified. In addition, since it is not necessary for the command transmission device 20 to have a retry time for each command, an increase in memory usage can be prevented.

以上のように、本発明に係るコマンド通信装置およびコマンド通信方法は、コマンドの実行を行うコマンド受信装置からコマンドを発行するコマンド送信装置にコマンド実行中の通知を行うのを不要にして、通信のトラフィックを抑えることができ、簡単な制御ソフトウェアでコマンド送信装置のリトライ間隔を決定することができるという効果を有し、車載用のオーディオシステムのような操作機器とオーディオ機器とをネットワークで接続するシステムに適用することができるコマンド通信方法およびそのコマンド送信方法を実行するコマンド通信装置等として有用である。   As described above, the command communication device and the command communication method according to the present invention eliminates the need for notifying the command transmitting device that issues a command from the command receiving device that executes the command, that the communication is being performed. A system that can reduce traffic, determine the retry interval of the command transmission device with simple control software, and connect an operation device such as an in-vehicle audio system to the audio device via a network The present invention is useful as a command communication method that can be applied to and a command communication device that executes the command transmission method.

本発明の一実施の形態のコマンド通信装置のブロック図The block diagram of the command communication apparatus of one embodiment of this invention 一実施の形態のコマンド通信方法のシーケンスを説明する図The figure explaining the sequence of the command communication method of one embodiment 従来の構成におけるコマンド通信装置のブロック図Block diagram of command communication device in conventional configuration 従来のコマンド通信方法の基本シーケンスを説明する図The figure explaining the basic sequence of the conventional command communication method 従来のコマンド通信方法のリトライシーケンスの一例を説明する図The figure explaining an example of the retry sequence of the conventional command communication method 従来の通信方法のリトライシーケンスの一例を説明する図The figure explaining an example of the retry sequence of the conventional communication method 従来の通信方法のリトライシーケンスの一例を説明する図The figure explaining an example of the retry sequence of the conventional communication method

符号の説明Explanation of symbols

11 コマンド通信装置
20 コマンド送信装置
21 コマンド制御部
23 送受信部
30 コマンド受信装置
31 コマンド実行部
33 送受信部
34 各コマンド最大実行時間保存部(コマンド最大実行時間保存部)
DESCRIPTION OF SYMBOLS 11 Command communication apparatus 20 Command transmission apparatus 21 Command control part 23 Transmission / reception part 30 Command reception apparatus 31 Command execution part 33 Transmission / reception part 34 Each command maximum execution time storage part (command maximum execution time storage part)

Claims (5)

コマンド送信装置から送信されるコマンドを受信したときに、前記コマンドを実行し、前記コマンドの実行結果を前記コマンド送信装置に応答するコマンド受信装置であって、
コマンドの送受信制御を行う送受信部と、
受信した前記コマンドを実行するコマンド実行部と、
複数のコマンドの各コマンドに対する最大実行時間を保存するコマンド最大実行時間保存部とを備え、
前記コマンドを受信した前記コマンド実行部は、前記コマンドに対する最大実行時間を前記コマンド最大実行時間保存部から読み出し前記送受信部から送信することを特徴とするコマンド受信装置。
When receiving a command transmitted from a command transmission device, the command is executed, and the command reception device responds to the command transmission device with an execution result of the command,
A transmission / reception unit for performing transmission / reception control of a command;
A command execution unit for executing the received command;
A command maximum execution time storage unit that stores the maximum execution time for each command of a plurality of commands,
The command execution unit that receives the command reads the maximum execution time for the command from the command maximum execution time storage unit and transmits the command from the transmission / reception unit.
コマンド受信装置にコマンドを送信したとき、前記コマンド受信装置で実行されたコマンドの結果を受信するコマンド送信装置であって、
コマンドの送受信制御を行う送受信部と、
前記コマンド受信装置に対してコマンドリトライ処理を行うコマンド制御部とを備え、
前記コマンド制御部は、前記コマンド制御装置からのコマンドの実行結果が受信できない場合、コマンドリトライ処理を行う間隔を前記コマンド受信装置から通知されるコマンド最大実行時間で決定することを特徴とするコマンド送信装置。
A command transmission device for receiving a result of a command executed by the command reception device when a command is transmitted to the command reception device;
A transmission / reception unit for performing transmission / reception control of a command;
A command control unit that performs a command retry process on the command receiving device;
The command control unit determines a command retry processing interval based on a command maximum execution time notified from the command receiving device when the command execution result from the command control device cannot be received. apparatus.
コマンド送信装置から送信されるコマンドをコマンド受信装置で受信したときに、前記コマンド受信装置で前記コマンドを実行し、前記コマンドの実行結果を前記コマンド送信装置に応答するコマンド通信装置であって、
前記コマンド受信装置は、
複数のコマンドの各コマンドに対する最大実行時間を保存するコマンド最大実行時間保存部を備え、
前記コマンドを受信すると、前記コマンド最大実行時間保存部から前記コマンドに対する最大実行時間を読み出して前記コマンド送信装置に送信し、
前記コマンド送信装置は、
前記コマンド受信装置に対してコマンドリトライ処理を行うコマンド制御部を備え、
前記コマンド制御装置からのコマンドの実行結果が受信できないとき、コマンドリトライ処理を行う間隔を受信した前記コマンド最大実行時間で決定することを特徴とするコマンド通信装置。
When receiving a command transmitted from a command transmission device by a command reception device, the command reception device executes the command and responds to the command transmission device with the execution result of the command,
The command receiving device is:
A command maximum execution time storage unit that stores the maximum execution time for each command of multiple commands,
When the command is received, the maximum execution time for the command is read from the command maximum execution time storage unit and transmitted to the command transmission device,
The command transmission device includes:
A command control unit that performs a command retry process on the command receiving device;
The command communication device, wherein when the command execution result from the command control device cannot be received, the command retry processing interval is determined by the received command maximum execution time.
コマンド送信装置から送信されるコマンドをコマンド受信装置で受信し、前記コマンド受信装置で前記コマンドを実行し、
前記コマンドの実行結果を前記コマンド受信装置から前記コマンド送信装置に応答するようにしたコマンド通信方法であって、
前記コマンド受信装置は、前記コマンドを受信したときにコマンド最大実行時間を前記コマンド送信装置に通知することを特徴とするコマンド通信方法。
A command received from a command transmitter is received by a command receiver, the command is executed by the command receiver,
A command communication method in which an execution result of the command is returned from the command receiving device to the command transmitting device,
The command receiving apparatus notifies the command transmitting apparatus of a command maximum execution time when receiving the command.
前記コマンド送信装置から前記コマンドを送信した後、前記コマンド受信装置から送られてくる前記コマンド最大実行時間によって前記コマンド送信装置のコマンド実行結果の応答待ち時間を決定することを特徴とする請求項4に記載のコマンド通信方法。 5. The response waiting time of a command execution result of the command transmission device is determined based on the command maximum execution time transmitted from the command reception device after transmitting the command from the command transmission device. Command communication method described in 1.
JP2004161971A 2004-05-31 2004-05-31 Apparatus and method for command communication Pending JP2005346175A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004161971A JP2005346175A (en) 2004-05-31 2004-05-31 Apparatus and method for command communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004161971A JP2005346175A (en) 2004-05-31 2004-05-31 Apparatus and method for command communication

Publications (1)

Publication Number Publication Date
JP2005346175A true JP2005346175A (en) 2005-12-15

Family

ID=35498528

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004161971A Pending JP2005346175A (en) 2004-05-31 2004-05-31 Apparatus and method for command communication

Country Status (1)

Country Link
JP (1) JP2005346175A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008078769A (en) * 2006-09-19 2008-04-03 Denso Corp Communicating system
JP2009267705A (en) * 2008-04-24 2009-11-12 Canon Inc Communication method and image forming apparatus
JP2012213004A (en) * 2011-03-31 2012-11-01 Nec Corp Network communication system, network communication method, network communication program, and peripheral control processing device
WO2014115293A1 (en) * 2013-01-25 2014-07-31 富士通株式会社 Information processing device, information processing method, and information processing system
JP2017183934A (en) * 2016-03-29 2017-10-05 大阪瓦斯株式会社 Network system
JP2019175222A (en) * 2018-03-29 2019-10-10 日本電気株式会社 Telegram message guarantee system and telegram message guarantee method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008078769A (en) * 2006-09-19 2008-04-03 Denso Corp Communicating system
JP2009267705A (en) * 2008-04-24 2009-11-12 Canon Inc Communication method and image forming apparatus
JP2012213004A (en) * 2011-03-31 2012-11-01 Nec Corp Network communication system, network communication method, network communication program, and peripheral control processing device
WO2014115293A1 (en) * 2013-01-25 2014-07-31 富士通株式会社 Information processing device, information processing method, and information processing system
JP2017183934A (en) * 2016-03-29 2017-10-05 大阪瓦斯株式会社 Network system
JP2019175222A (en) * 2018-03-29 2019-10-10 日本電気株式会社 Telegram message guarantee system and telegram message guarantee method
JP7124384B2 (en) 2018-03-29 2022-08-24 日本電気株式会社 Telegram Assurance System and Telegram Assurance Method

Similar Documents

Publication Publication Date Title
JP4021396B2 (en) Mobile communication system, mobile communication method, base station, and mobile device
CN103650401A (en) Internal communication method for mobile terminal
JP2005346175A (en) Apparatus and method for command communication
CN112395237A (en) Method and system for communication between at least two controllers
JP2015106796A (en) Communication device, communication control method, and program
JP4069125B2 (en) Transmission method, transmission apparatus, and transmission / reception system
CN112187408A (en) Data processing method, system, device, storage medium and processor
CN114765897A (en) Communication method and device
KR20120042745A (en) System and method for establishing reliable communication in a connection-less environment
WO2015196473A1 (en) Method, device, intelligent terminal and system for data sending/receiving
JP2004260562A (en) Method and device for transmitting and receiving packet
CN104185204B (en) A kind of connection status inspection method and device
JP3341276B2 (en) Communication control device
JP2008167487A (en) Csma-based data transmission method and system
JP2006135454A (en) Response validation data communication system, base station control device, response validation data communication method, and its program
JPH0787091A (en) Centralized radio communication system
JP4023264B2 (en) Wireless communication system, wireless communication apparatus, wireless communication method, and computer program
JP3623460B2 (en) Data transmission method using Ethernet between compact control stations
JP3454264B2 (en) Wireless communication system and wireless communication method
KR101436473B1 (en) System and method for data call access control
CN115981860A (en) Task submitting and inspecting method, device, medium and program product
JPH09130382A (en) Polling communication method
JP2004023564A (en) Device and method for controlling radio communication
JP2008118314A (en) Data transmission method and system in csma system
JP2007259458A (en) Network device and method for establishing communication