JP5345902B2 - Data transmission apparatus, data transmission method, and data transmission program - Google Patents
Data transmission apparatus, data transmission method, and data transmission program Download PDFInfo
- Publication number
- JP5345902B2 JP5345902B2 JP2009150105A JP2009150105A JP5345902B2 JP 5345902 B2 JP5345902 B2 JP 5345902B2 JP 2009150105 A JP2009150105 A JP 2009150105A JP 2009150105 A JP2009150105 A JP 2009150105A JP 5345902 B2 JP5345902 B2 JP 5345902B2
- Authority
- JP
- Japan
- Prior art keywords
- transmission
- data
- priority
- unit
- units
- 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.)
- Expired - Fee Related
Links
- 230000005540 biological transmission Effects 0.000 title claims description 811
- 238000000034 method Methods 0.000 title claims description 40
- 230000008859 change Effects 0.000 claims description 91
- 230000008569 process Effects 0.000 claims description 26
- 238000012544 monitoring process Methods 0.000 claims description 25
- 238000012790 confirmation Methods 0.000 claims description 12
- 238000012545 processing Methods 0.000 description 59
- 230000006854 communication Effects 0.000 description 15
- 238000004891 communication Methods 0.000 description 15
- 230000000694 effects Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 238000007726 management method Methods 0.000 description 8
- 230000003111 delayed effect Effects 0.000 description 4
- 238000011084 recovery Methods 0.000 description 3
- 230000009467 reduction Effects 0.000 description 2
- 230000007175 bidirectional communication Effects 0.000 description 1
- 238000013523 data management Methods 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012913 prioritisation Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000007616 round robin method Methods 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
Images
Landscapes
- Bus Control (AREA)
- Communication Control (AREA)
Description
本発明は、データ送信装置に関し、特に、複数の送信部を備えたデータ送信装置に関する。 The present invention relates to a data transmission device, and more particularly to a data transmission device including a plurality of transmission units.
ネットワークなどを介してのデータ送信を行うデータ送信装置には、複数の送信部を用い、送信データ毎に使用する送信部を切り換えてデータ送信を行うものがある。 Some data transmission apparatuses that perform data transmission via a network or the like use a plurality of transmission units and perform data transmission by switching the transmission unit used for each transmission data.
さらに、このような複数の送信部を用いるデータ送信装置には、送信データの送信優先度を考慮したものも有る。例えば、優先度の高いデータには、早期送信のために多くの送信部を割り当て、逆に、優先度の低いデータには少ない送信部を割り当てるような送信制御を行うようなものである。 Furthermore, some data transmission apparatuses using such a plurality of transmission units consider transmission priority of transmission data. For example, transmission control is performed such that a large number of transmission units are allocated to data with high priority for early transmission, and conversely, a small number of transmission units are allocated to data with low priority.
また、送信部などの電気回路は、動作していないときでも待機電力を消費している。そのため、データ送信装置には、使用していない送信部を省電力待機状態に移行させたり、送信部への電力の供給自体を停止させることにより、消費電力の低減を図っているものもある。 In addition, an electric circuit such as a transmission unit consumes standby power even when it is not operating. For this reason, some data transmission apparatuses attempt to reduce power consumption by shifting unused transmission units to a power saving standby state or by stopping the power supply itself to the transmission units.
なお、ここで言う省電力待機状態とは、送信部の回路の一部に対する電源供給を止めたり、動作速度を遅くすることにより、待機電力を削減した状態のことである。省電力待機状態では、そのままでは送信できず送信開始までに時間を必要とするが、すぐに送信ができるようにしておく待機状態に比較して、消費電力量を少なくすることができる。なお、送信開始までの時間が短いが待機電力が多い省電力待機状態や送信開始までの時間が長いが待機電力が少ない省電力待機状態といったように、送信開始時間と待機電力との組み合わせによる複数の省電力待機状態を備えてたものもある。(例えば、特許文献1および2参照)
このように、複数の送信部を用いるデータ送信装置では、送信部の使用状況に応じた消費電力の制御と送信データの優先度に応じた送信部の割当制御とが行われている。
Note that the power saving standby state referred to here is a state in which standby power is reduced by stopping power supply to a part of the circuit of the transmission unit or slowing down the operation speed. In the power saving standby state, transmission is not possible as it is, and it takes time to start transmission, but the power consumption can be reduced compared to the standby state in which transmission is immediately possible. Multiple combinations of transmission start time and standby power, such as a power saving standby state with a short time to start transmission but a large standby power, and a power saving standby state with a long time to start transmission but low standby power Some have a power-saving standby state. (For example, see
As described above, in a data transmission apparatus using a plurality of transmission units, control of power consumption according to the usage status of the transmission units and transmission unit allocation control according to the priority of transmission data are performed.
しかし、一般に送信データの発生は非同期である。そのため、単純に優先度で送信部の割当を行うと、例えば、優先度が高いデータ送信要求が一時的に重なった場合、優先度が低いデータに対しての送信部の割当が長期間に渡って出来なくなる場合がある。そのため、もし優先度の低いデータに送信期限が設定されていたとしても、優先度の低いデータに送信部の割当が行われず、送信期限を守ることが出来ない事態が発生してしまうこととなる。 However, in general, transmission data is generated asynchronously. For this reason, if the transmission unit is simply assigned with priority, for example, if data transmission requests with high priority are temporarily overlapped, the transmission unit is assigned to data with low priority over a long period of time. May not be possible. For this reason, even if a transmission deadline is set for data with low priority, a transmission unit is not assigned to data with low priority, and a situation in which the transmission deadline cannot be observed will occur. .
このような事態を回避するため、送信期限が設定された送信データに対して時間監視を行い、送信期限に近づいた場合には、一時的に優先度に関係ない送信処理(以下、優先変更送信処理と言う)を行うようしたデータ送信装置もある。このような装置において、時間監視は、例えば、送信期限の設定されたデータ毎に設定される割り込み処理により行われている。(例えば、特許文献3参照) In order to avoid such a situation, time monitoring is performed for transmission data with a transmission time limit set, and when the transmission time limit is approached, transmission processing that is temporarily not related to priority (hereinafter referred to as priority change transmission). There is also a data transmission device that performs processing). In such an apparatus, the time monitoring is performed, for example, by an interrupt process set for each data for which a transmission time limit is set. (For example, see Patent Document 3)
しかしながら、上述したようなデータ優先度に応じた制御を行うデータ送信装置において、優先度の低いデータの送信に割り当てられる送信部の数は、優先度の高いデータの送信に割り当てられる送信部の数より少ない。そのため、優先度の低いデータの優先変更送信処理の処理時間は長くなる。 However, in the data transmission apparatus that performs control according to the data priority as described above, the number of transmission units allocated to transmission of data with low priority is the number of transmission units allocated to transmission of data with high priority. Fewer. For this reason, the processing time of the priority change transmission processing for data with low priority becomes long.
その結果、送信期限が近づいた優先度の低いデータ送信の優先変更送信処理を行うと、後続する優先度の高いデータ送信の待ち時間が増加し、システム性能が低下してしまう。 As a result, if priority change transmission processing is performed for low-priority data transmission whose transmission deadline is approaching, the waiting time for subsequent high-priority data transmission increases, and system performance deteriorates.
これに対処するため、送信期限の監視間隔を短くし、監視回数を増やすことが行われている。すなわち、監視間隔を短くすることにより、各監視において見つかる優先変更送信処理が少なくなり、各監視により処理すべき平均的な優先変更送信処理の時間を短くすることが出来る。 In order to deal with this, the monitoring interval of the transmission deadline is shortened and the number of monitoring is increased. That is, by shortening the monitoring interval, the priority change transmission process found in each monitor is reduced, and the average priority change transmission process time to be processed by each monitor can be shortened.
しかし、この場合、監視処理の回数が多くなり、その監視処理の増加分だけシステム性能が低下してしまうという別の問題を招く。 However, in this case, the number of times of the monitoring process is increased, and another problem that the system performance is deteriorated by the increase of the monitoring process is caused.
本発明の目的は、上述の問題点を解決し、監視処理の回数を増やさずに、優先度の低いデータの優先変更送信処理による待ち時間を少なくできるデータ送信装置、データ送信方法、及び、データ送信プログラムを提供することにある。 SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned problems, and to reduce the waiting time due to priority change transmission processing of low priority data without increasing the number of monitoring processes, a data transmission device, a data transmission method, and data To provide a transmission program.
本発明のデータ送信装置は、データを送信する複数の送信部と、データの送信開始時に、当該データを送信するために前記複数の送信部のうちの少なくとも一つを当該データの送信のために割り当て、データの送信開始後に、所定の条件を満たした場合に、前記送信開始時に当該データの送信のために割り当てられた送信部の個数よりも多くの個数の送信部を当該データの送信のために割り当てる制御部とを備えたことを特徴とする。 A data transmission apparatus according to the present invention includes a plurality of transmission units that transmit data, and at least one of the plurality of transmission units for transmitting the data at the start of data transmission. When a predetermined condition is satisfied after allocation and data transmission start, a larger number of transmission units than the number of transmission units allocated for transmission of the data at the start of transmission are used for transmission of the data. And a control unit to be assigned.
本発明のデータを送信する複数の送信部を備えたデータ送信装置のデータ送信方法は、データの送信開始時に、当該データを送信するために前記複数の送信部のうちの少なくとも一つを当該データの送信のために割り当てるステップと、データの送信開始後に、所定の条件を満たした場合に、前記送信開始時に当該データの送信のために割り当てられた送信部の個数よりも多くの個数の送信部を当該データの送信のために割り当てるステップを備えたことを特徴とする。
本発明のデータを送信する複数の送信部を備えたコンピュータに実行させるデータ送信装置のデータ送信プログラムは、データの送信開始時に、当該データを送信するために前記複数の送信部のうちの少なくとも一つを当該データの送信のために割り当てる処理と、データの送信開始後に、所定の条件を満たした場合に、前記送信開始時に当該データの送信のために割り当てられた送信部の個数よりも多くの個数の送信部を当該データの送信のために割り当てる処理を備えたことを特徴とする。
According to the present invention, there is provided a data transmission method of a data transmission device including a plurality of transmission units for transmitting data, wherein at least one of the plurality of transmission units is transmitted to the data at the start of data transmission And a number of transmitters larger than the number of transmitters allocated for transmitting the data when the transmission is started when a predetermined condition is satisfied after the data transmission is started. Is assigned for transmission of the data.
A data transmission program of a data transmission apparatus to be executed by a computer having a plurality of transmission units for transmitting data according to the present invention is provided at least one of the plurality of transmission units for transmitting the data at the start of data transmission. More than the number of transmitters allocated for transmitting the data at the start of the transmission when the predetermined condition is satisfied after the data transmission is started The present invention is characterized by comprising a process of assigning the number of transmission units for transmission of the data.
本発明によれば、優先度の低いデータの優先変更送信処理において、送信に使用する送信部の数を一時的に増やすことにより、送信時間を短くすることができるため、優先変更送信処理に後続する優先度の高いデータ送信の待ち時間を少なくする効果が得られる。 According to the present invention, in the priority change transmission process of low priority data, the transmission time can be shortened by temporarily increasing the number of transmission units used for transmission, and therefore, the priority change transmission process is followed. The effect of reducing the waiting time for data transmission with high priority is obtained.
さらに、本発明によれは、優先変更送信処理に掛かる送信時間も短くなるため、送信期限に対する、優先変更送信処理を起動するタイミングを遅くすることもできる。その遅くなった時間分だけ通常の送信処理が行われる、その結果として、優先変更送信処理が発生する回数も減り、優先度の高いデータの送信の待ち時間をさらに少なくする効果も得られる。 Furthermore, according to the present invention, since the transmission time required for the priority change transmission process is shortened, the timing for starting the priority change transmission process with respect to the transmission time limit can be delayed. Normal transmission processing is performed for the delayed time. As a result, the number of times of priority change transmission processing is reduced, and the effect of further reducing the waiting time for transmission of high priority data can be obtained.
次に、本発明について図面を参照して詳細に説明する。
(第1の実施形態)
最初に、本発明の第1の実施形態の構成および動作について図1〜図4を用いて説明する。
Next, the present invention will be described in detail with reference to the drawings.
(First embodiment)
First, the configuration and operation of the first embodiment of the present invention will be described with reference to FIGS.
図1は、第1の実施形態に係るデータ送信装置1の構成を示す。
FIG. 1 shows a configuration of a
図1において、データ送信装置1は、データ送信装置1の各部を制御する送信制御部2と、送信データ4を保存する送信記憶部3と、データを送信する送信部51〜53とから構成されている。
In FIG. 1, a
送信制御部2は、3個の送信部(送信部51〜53)を制御して、図2に示すように送信に使用する送信部の数を変更することができる。図2において二点差線は使用しない送信部、つまり省電力待機状態の送信部を示している。
The
図2(a)は3個の送信部(送信部51〜53)を使用する場合、図2(b)は2個の送信部(送信部51〜52)を使用する場合、図2(c)は1個の送信部(送信部51)を使用する場合をそれぞれ示している。
2A shows a case where three transmitters (
ここで、省電力待機状態が複数あり、待機状態である送信部も複数ある場合に、次の送信再開時の再開時間を考慮して、異なった省電力待機状態を設定することもできる。例えば、最初に再開される送信部を待機電力が多いが回復時間の早い待機状態、その他の送信部を回復時間が長いが待機電力が少ない待機状態としてもよい。 Here, when there are a plurality of power saving standby states and there are a plurality of transmission units in the standby state, it is possible to set different power saving standby states in consideration of the restart time when the next transmission is resumed. For example, the transmitter that is restarted first may be in a standby state with a large standby power but a fast recovery time, and the other transmitters may be in a standby state with a long recovery time but a low standby power.
例えば、図2(c)の状態で、送信部52を回復時間が短い待機状態とし、送信部53を待機電力の少ない待機状態としてもよい。
For example, in the state of FIG. 2C, the
なお、本実施形態では。送信部の総数を3個として説明しているが、これには限定されず、送信部の数は2個でも、4個以上でもよい。 In the present embodiment. Although the total number of transmission units has been described as three, the present invention is not limited to this, and the number of transmission units may be two or four or more.
また、説明の便宜上、使用する送信部として、3個の場合に送信部51〜53、2個の場合に送信部51〜52、1個の場合に送信部51と送信部の割当を固定した記載としているが、これは送信部の割当の一例である。2個の場合の割当を送信部52〜53としたり、1個の場合に送信部52又は送信部53としてもよい。さらに、送信部を2個使う場合や1個使う場合の割当を固定的とはせずに、動的に割当てるようにしてもよい。例えば、負荷を分散させるために周知のラウンドロビン方式等に従って、使用する送信部を割当ててもよい。
In addition, for convenience of explanation, as the transmission units to be used, the
送信制御部2は、上述のとおり、送信部51〜53のいずれか1つまたは2つまたは全てを使用して送信記憶部3に保存されている送信データ4を送信する。
As described above, the
図3(a)に示すように、送信記憶部3の所定の記憶領域には、複数の送信データ4a〜4dが保存されている。
As illustrated in FIG. 3A, a plurality of transmission data 4 a to 4 d are stored in a predetermined storage area of the
これらの送信データには、図3(b)に一例を示す管理表に示すように、送信期限、優先度、送信部数が設定されている。 In these transmission data, as shown in the management table shown as an example in FIG. 3B, a transmission deadline, a priority, and the number of transmission units are set.
送信期限とは、送信データの送信を完了すべき時期(時刻等)である。図3(b)の例では、送信データ4dに送信期限が設定され、他の送信データ4a〜4cには送信期限が設定されていない。送信期限が設定されていない送信データは、ベストエフォートなど通常の送信方法で送信されることとなる。送信期限が設定された送信データは、後ほど詳述するが、優先度の低いデータであっても送信期限を守るために優先変更送信処理が行われることとなる。 The transmission deadline is a time (time etc.) at which transmission of transmission data should be completed. In the example of FIG. 3B, a transmission time limit is set for the transmission data 4d, and no transmission time limit is set for the other transmission data 4a to 4c. Transmission data for which no transmission time limit is set is transmitted by a normal transmission method such as best effort. The transmission data in which the transmission time limit is set will be described in detail later. However, priority change transmission processing is performed to protect the transmission time limit even for data with low priority.
優先度は、送信制御部2が送信部に送信データを割当てる優先度を示し、本実施形態では、優先度1が最も高い優先度を示し、優先度3が最も低い優先度を示しいてる。優先度の処理については後述する。なお、本実施形態では優先度が3つのレベルを有する場合について説明するが、レベルの数はこれに限定されるものではない。
The priority indicates the priority with which the
送信部数は、送信データの送信に使用する送信部の数を示している。 The number of transmission units indicates the number of transmission units used for transmission of transmission data.
一般に送信部など通信回路は、通信を行わないときに、省電力待機状態とすることにより、消費電力を削減することができる。 In general, a communication circuit such as a transmission unit can reduce power consumption by setting a power saving standby state when communication is not performed.
本実施形態では、送信速度と消費電力とを考慮して、優先度毎に使用する送信部の数を決めている。優先度1は高速性を考慮して使用する送信部を3つ、優先度2は高速性と消費電力とのバランスを考慮して送信部を2つ、優先度3は速度より消費電力を考慮して送信部は1つ使用するものとしている。
In the present embodiment, the number of transmission units to be used for each priority is determined in consideration of transmission speed and power consumption.
ここで、優先度2のデータと優先度3のデータがある場合、送信時間を考慮し、両データを同時に3つの送信部を使用して送信するようにしてもよく、消費電力を考慮して優先度2のデータを送信後、優先度3のデータを送信するようにしてもよい。
Here, when there is data of
なお、これら送信期限、優先度、及び、送信部数の設定は、例えば、使用者がデータ個別に設定してもよく、送信データを作成したアプリケーションソフトが送信データに合わせて設定しもてよい。また、図示しないホスト装置からデータを受け取る際にデータと合わせて受け取ってもよく、送信データ全体を管理する管理サーバが設定するなど、周知の設定方法を使用して設定すればよく、詳細な説明は省略する。 Note that the transmission deadline, priority, and number of transmissions may be set individually by the user, or may be set by the application software that created the transmission data according to the transmission data. Further, when receiving data from a host device (not shown), it may be received together with the data, or may be set by using a known setting method such as setting by a management server that manages the entire transmission data. Is omitted.
次に、本実施形態の動作についてさらに詳細に説明する。 Next, the operation of this embodiment will be described in more detail.
まずは、優先度処理に関して説明を行う。 First, priority processing will be described.
送信制御部2は、後ほど詳述する優先変更送信処理などの処理が発生しない送信の場合、優先度の高いデータから送信を行う。また本実施形態では、優先度が同じデータの場合は、管理表の番号の若い方から送信を行うこととする。図3の場合は、まず、優先度1の送信データ4a及び送信データ4cを順次送信し、その後、優先度2の送信データ4bを送信し、最後に優先度3の送信データ4dを送信することとなる。
In the case of transmission in which processing such as priority change transmission processing, which will be described in detail later, does not occur, the
図3に記載の状態からデータ送信を開始し、送信データの追加が無い場合は、上記のとおりの順で送信データの送信処理が完了する。しかし、送信が完了する前に、新たな送信データの送信の要求が発生すると、送信制御部2は、優先度による処理を行うこととなる。
When data transmission is started from the state shown in FIG. 3 and no transmission data is added, the transmission data transmission processing is completed in the order described above. However, if a request for transmission of new transmission data is generated before transmission is completed, the
このように、新たな送信データ発生による優先度処理の一例は次のようなものである。送信制御部2は、まず、送信中の送信データと新たに発生した送信データの優先度を比較する。そして、新たに発生した送信データの優先度が現在送信中の送信データの優先度と同じか低い場合は、そのまま送信を継続する。一方、新たに発生した送信データの優先度のほうが高い場合、例えば優先度3の送信データを送信中に優先度2の送信データが発生した場合は、送信中の優先度の低い送信データの送信を中断し、新たなに発生した優先度の高い送信データの送信を行う。新たに発生した優先度の高い送信データの送信が終了後、中断していた優先度の低い送信データの送信を再開する。
As described above, an example of priority processing by generation of new transmission data is as follows. First, the
なお、新たに発生した送信データよりさらに優先度の高い送信データの送信が発生した場合は、同様に最も優先度の高い送信データの送信が優先的に行われる。 Note that when transmission data having a higher priority than newly generated transmission data occurs, transmission data having the highest priority is similarly preferentially transmitted.
このため、既述したとおり、優先度の高い送信データの送信処理が頻発すると、優先度の低い送信データの送信が行えなくなる場合が発生し、これに対処するため、本実施形態では、後述の優先変更送信処理が行われることとなる。 For this reason, as described above, if transmission processing of transmission data with high priority occurs frequently, transmission data with low priority may not be transmitted. The priority change transmission process is performed.
なお、上記の説明では、説明の便宜上、シーケンシャルに1つの送信データが終わってから次の送信データの送信を開始するように記載したが、優先度に従って時分割に送信時間を割り振るようにしてもよい。例えば、図3(b)の3つの優先度の場合に、優先度1は4、優先度2は2、優先度3は1と重みを割当てるとする。優先度1のデータは2つ、優先度2及び優先度3のデータは各1つあるため、全体の重みの合計は11となる。その結果、各データの送信時間の重み付けによる割当比率は、優先度1の送信データ4aと送信データ4cがそれぞれ4/11、優先度2の送信データ4bが2/11、優先度3の送信データ4dが1/11となる。この場合、例えば送信データ4aの送信が終われば、送信データ4aの重み4が無くなり、全体の重みの合計が7となる。その結果各データの比率は、送信データ4cが4/7、送信データ4bが2/7、送信データ4dが1/7となる。新たな送信データが加わった場合も同様に優先度の比率が変更となる。
In the above description, for convenience of explanation, it has been described that transmission of the next transmission data is started after one transmission data is finished sequentially, but transmission time may be allocated in time division according to priority. Good. For example, in the case of the three priorities shown in FIG. 3B, it is assumed that
また、シーケンシャルに切り替えを行う場合でも、不正処理やバグ対策のため、通常ウォッチドックタイマなどにより所定の時間により切り替え処理を行っている。 Even when switching is performed sequentially, the switching process is usually performed for a predetermined time by a watchdog timer or the like for illegal processing or bug countermeasures.
このように切り替え処理を実施した場合、優先度による切り替えのサイクルを所定の時間内に設定しておくことにより、優先度の低い送信データの送信処理も有効な時間範囲で開始することができる。ただし、優先度の低い送信データの送信処理に割当てられる処理時間は、短い場合が多い。そのため、後述する優先変更送信処理の判断部分の処理のような比較的短い処理時間で実行できる論理処理は動作可能であるが、データ送信処理など多くの時間を必要とする処理は、優先度による割当では間に合わず、実行時間を確保できない場合が発生する。 When the switching process is performed in this way, the transmission process of transmission data with a low priority can be started within an effective time range by setting the cycle of switching according to the priority within a predetermined time. However, the processing time allocated to the transmission processing of transmission data with low priority is often short. For this reason, logical processing that can be executed in a relatively short processing time, such as processing in the determination part of priority change transmission processing described later, is operable, but processing that requires a lot of time, such as data transmission processing, depends on priority. There is a case where the execution time cannot be secured because the allocation is not in time.
そこで必要となる優先変更送信処理の本実施形態でのより詳しい動作について、図4を参照して、さらに説明する。優先変更送信処理は、優先度の低い送信データに対して行われるため、以下では、一例として、図3の優先度の低い送信データ4dに対する優先変更送信処理について説明する。 A more detailed operation in the present embodiment of the priority change transmission process required therefor will be further described with reference to FIG. Since the priority change transmission process is performed on transmission data with low priority, the priority change transmission process for transmission data 4d with low priority in FIG. 3 will be described below as an example.
送信処理を開始した優先度の低い送信データの処理では、送信制御部2は、優先度の低い送信データ4dの送信を開始するための初期設定を行う(ステップ401)。本実施形態では、優先度3の場合は、送信部を1つ使用、つまり図2(c)の状態で送信するため、送信部の設定などが行われる。例えば、直前の送信で2つ以上の送信部を使用していたとすると、そのときに使用されていた送信部のうち、優先度3で使用される1つの送信部以外の使用されない送信部を省電力待機状態など送信しない状態とする。この処理は、一度優先度の低い送信処理を開始した後、優先度の高い送信処理に処理が移行し、その後に優先度の低い送信処理を再開した場合にも必要となる。
In the processing of transmission data with low priority that has started transmission processing, the
次に図示しないタイマなどから現在時刻が取得される(ステップ402)。続いて残りの送信データ量が取得される(ステップ403)。次に、残り送信データが有るかどうかが判断される(ステップ404)。ここで残りの送信データが無い、つまり送信が終了しているとの判断されると、終了処理が行われる(ステップ404から408への分岐)。一方、残りの送信データがある場合は、送信データの送信が送信期限までに終わるかどうかが判断される(ステップ405)。この判断は、例えば、次の数式を使用して行うことが出来る。
Next, the current time is acquired from a timer (not shown) or the like (step 402). Subsequently, the remaining transmission data amount is acquired (step 403). Next, it is determined whether there is remaining transmission data (step 404). Here, if it is determined that there is no remaining transmission data, that is, that transmission has ended, end processing is performed (branch from
この数式は、現在割り当てられている送信部の状態で残りの送信データを送信した場合に、送信が送信期限までに終わるかどうかを判断している。 This mathematical expression determines whether or not the transmission ends by the transmission deadline when the remaining transmission data is transmitted in the state of the currently assigned transmission unit.
この不等式が成り立つ場合は、現在割り当てられた送信部で送信可能となる。 When this inequality holds, transmission is possible with the currently assigned transmitter.
現状の送信部の割当状態で送信可能な場合は、そのままデータ送信を継続し(ステップ407)、上記の処理をデータ送信終了まで繰り返す。ここで、判断処理を繰り返すのは、途中で優先度の高いデータ送信の割り込み処理などが入り、状況が変わる可能性があるためである。 If transmission is possible in the current allocation state of the transmission unit, data transmission is continued as it is (step 407), and the above processing is repeated until the data transmission is completed. Here, the reason why the determination process is repeated is that there is a possibility that the situation will change due to an interrupt process of data transmission having a high priority in the middle.
一方、上記不等式が成立しない場合、すなわち、送信期限までに送信データの送信が完了出来ないと判断された場合は、優先変更送信処理が開始される。まず、割り当てられている送信部の数が増やされる(ステップ406)。例えば、1つの送信部を使用してる図2(c)の状態から、3つの送信部を使用する図2(a)の状態への変更がなされる。 On the other hand, when the above inequality is not satisfied, that is, when it is determined that transmission of transmission data cannot be completed by the transmission time limit, priority change transmission processing is started. First, the number of allocated transmission units is increased (step 406). For example, the state of FIG. 2C using one transmission unit is changed to the state of FIG. 2A using three transmission units.
このように、送信部の数を増やすことにより、残りデータの送信時間が短縮される。例えば、ここでの例では、使用する送信部の数が3倍となり、送信時間は3分の1となる。 Thus, the transmission time of the remaining data is shortened by increasing the number of transmission units. For example, in this example, the number of transmission units to be used is tripled, and the transmission time is one third.
その後、送信制御部2は、残りデータを送信し(ステップ407)、送信終了後、終了処理を行う。(ステップ408)
なお、本実施形態では、送信制御部2は、優先変更送信処理を開始した場合、送信期限を守るため、優先度の高い処理を含め他の処理への切り替えを止め、この優先変更送信処理を実行するようにしている。
Thereafter, the
In this embodiment, when the priority change transmission process is started, the
このように、本実施形態では、優先変更送信処理に続く優先度の高いデータ送信を待たせる時間も短くすることが出来るという効果が得られる。 Thus, in this embodiment, the effect that the time which waits for the data transmission with high priority following priority change transmission processing can also be shortened is acquired.
その理由は、本実施形態におけるデータ送信装置1が、優先変更送信処理において送信部の数を優先度により割当てられた数より増やすことにより、送信期限が設定された優先度が低い送信データの優先変更送信処理を短い時間で実施できるようにしたためである。
The reason for this is that the
なお、本実施形態では、送信時間の削減を優先するため、一回の優先変更送信処理で全ての送信部を使用することとしたが、消費電力も考慮し、一部(例えば図2(b))を使用するようにしても構わない。 In this embodiment, in order to give priority to the reduction of the transmission time, all the transmission units are used in one priority change transmission process. However, a part (for example, FIG. )) May be used.
さらに、送信部の数の変更を複数回に分け、例えば初期状態では優先度により設定された少ない送信部を使用し(例えば図2(c))、送信期限までの時間が足りないと判断したら、まず一部の送信部を使用を追加する(例えば図2(b))。そして、一部を増やした後でさらに送信期限までの時間が足りないとの判断がなされたら、さらに送信部を追加して使用するように変更(例えば図2(a))してもよい。 Further, if the change in the number of transmission units is divided into a plurality of times, for example, a small number of transmission units set according to priority are used in the initial state (for example, FIG. 2C), and it is determined that the time until the transmission deadline is insufficient First, use of some transmission units is added (for example, FIG. 2B). Then, if it is determined that there is not enough time until the transmission deadline after a part is increased, a transmission unit may be added and used (for example, FIG. 2A).
このように、本実施形態のデータ送信装置1は、送信制御部2による優先変更送信処理でのきめ細かな送信部の切り替えにより、最低限必要な送信部を使用し、電力消費の増加を抑えつつ、優先変更送信処理を短い時間で実施するといった効果が得られる。
As described above, the
その理由は、本実施形態のデータ送信装置1が、優先変更送信処理において使用する送信部の数を送信期限を守るために必要な数だけ増やし、優先度が低い送信データの優先変更送信処理を短い時間で実施することが出来るようにしたためである。
The reason is that the
本実施形態では、切り替えの判断として、送信データの優先度に応じて割り当てられた送信部による送信が、送信期限までに間に合うかどうかという判断を使用しているが、判断としては、他の条件を使用することも可能である。 In the present embodiment, as the determination of switching, a determination is made as to whether or not transmission by the transmission unit assigned according to the priority of transmission data is in time for the transmission deadline. Can also be used.
例えば、次の数式を使用して判断することもできる。 For example, it can also be determined using the following mathematical formula.
この数式は、現在時刻で優先変更送信処理に変更した場合の終了時間が、設定されている送信期限を越えるかどうかを判断している。 This formula determines whether or not the end time when changing to the priority change transmission process at the current time exceeds the set transmission time limit.
数式1による判断では、変更前の送信状態では間に合わなくなった時点で、優先変更送信処理に切り替えている。変更後の送信は変更前より早いため、早くなった時間分だけ、送信期限に対して早めに送信が終わることとなる。(先の説明した実施形態の一例では、送信期限までの残り時間の1/3で終了する。)それに対して、数式2による判断は、切り替え後の送信状態で送信期限までに終わるかどうかを判断しているため、送信期限を守れる最も遅い時期に切り替えを行うこととなる。
In the determination according to
そのため、数式2の判断による切り替えを採用すると、優先変更送信処理の発生が、数式1の判断による場合に比べて、遅い時間となる。この遅れた時間の間には、通常の送信処理が追加として実行されることとなる。
For this reason, when switching based on the determination of
この追加された送信処理において、優先度の低い送信データの送信も優先度に従って割当られた時間だけ送信処理が行われるため、優先変更送信処理により送信すべきデータ量が減り、優先変更送信処理に必要な時間が短くなる。 In this added transmission process, transmission of low-priority transmission data is performed only for the time allocated according to the priority. Therefore, the amount of data to be transmitted is reduced by the priority change transmission process, and the priority change transmission process is performed. The required time is shortened.
また、この追加した送信処理の中で優先度の高いデータも送信が行われる。優先度の高いデータは割り当て時間が多くなっているため、この追加した送信処理で優先度の高いデータは多く送信される。その結果、データ送信自体が完了するものもある。このため、優先変更送信処理に影響される優先度の高い送信データの数やデータ量が少なくなることとなる。 In addition, data having a high priority is also transmitted in the added transmission process. Since data with high priority has a long allocation time, a lot of data with high priority is transmitted in the added transmission process. As a result, some data transmission itself is completed. For this reason, the number and data amount of transmission data with high priority affected by the priority change transmission process are reduced.
このように、優先変更送信処理の開始タイミングを、送信期限を守るための最も遅い時期として設定することにより、優先変更送信処理に必要な時間がさらに短くなる。また、優先変更送信処理に影響を受ける優先度の高い送信データの量も削減できる効果も実現できる。 In this way, by setting the start timing of the priority change transmission process as the latest time for keeping the transmission deadline, the time required for the priority change transmission process is further shortened. In addition, it is possible to realize an effect of reducing the amount of transmission data with high priority that is affected by the priority change transmission process.
その理由は、データ送信装置1において、数式2を判断条件として使用することにより、数式1を使用する場合に比べ、優先変更送信処理を開始するタイミングが遅くなる。その遅くなった時間の分だけ、優先変更送信処理を開始するまで通常の送信がより多く行われる。その多くなった送信処理で送信された送信データの分だけ、優先度の高いデータは影響を受ける送信データが少なくなり、優先度の低いデータは優先変更送信処理の対象となる送信データが少なくなるためである。
The reason is that, in the
これまでの説明は、便宜上、送信期限がある送信データが1つの場合の実施形態について行ったきたが、送信期限のある送信データが複数ある場合も同様に実現できる。例えば次のような判断および処理を行うことにより実現できる。 The description so far has been made for the embodiment in which there is one transmission data with a transmission time limit for convenience, but the same can be realized when there are a plurality of transmission data with a transmission time limit. For example, it can be realized by performing the following determination and processing.
まず、最も送信期限が近い送信データの優先変更送信処理に必要な時間を求め、現在時刻に加え(この値をT1とする)、T1とこの送信データの送信期限とから優先変更送信処理が必要かどうかの判断を行う。優先変更送信処理が必要なら、その送信データの優先変更送信処理を行う。 First, the time required for the priority change transmission process of the transmission data with the closest transmission time limit is obtained, and in addition to the current time (this value is set to T1), the priority change transmission process is required from T1 and the transmission time limit of this transmission data. Judge whether or not. If priority change transmission processing is necessary, priority change transmission processing of the transmission data is performed.
上記の送信データの優先変更処理が必要ない場合は、次の送信データの判断を行う。 If the above transmission data priority change process is not necessary, the next transmission data is determined.
その判断は、次に送信期限が近い送信データの優先変更送信処理の時間を求めT1に加え(この値をT2とする)、T2とこの送信データの送信期限とから優先変更送信処理が必要であるかどうかの判断を行う。優先変更送信処理が必要なら、最初の送信データとこの送信データの優先変更送信処理を両方とも行う。 For this determination, the time for the priority change transmission process for the transmission data with the next nearest transmission deadline is obtained and added to T1 (this value is set to T2), and the priority change transmission process is required from T2 and the transmission deadline for this transmission data. Judge whether there is. If priority change transmission processing is necessary, both the first transmission data and the priority change transmission processing of this transmission data are performed.
もし、この送信データでも優先変更送信処理が必要ないと判断された場合は、同様の判断処理を繰り返す。 If it is determined that the priority change transmission process is not necessary for this transmission data, the same determination process is repeated.
つまり、次に送信期限が近い送信データを選び、ひとつ前の送信データで計算した時間(T1やT2相当)にその送信データの優先変更送信処理の時間を加えた時間とその送信データの送信期限とから優先変更送信処理が必要かどうかの判断を行う。優先変更送信処理が必要な場合は、最初の送信データからその送信データまでの優先変更送信処理を行う。 In other words, the transmission data with the next transmission deadline is selected, the time calculated by the previous transmission data (equivalent to T1 or T2), and the transmission data prioritization transmission processing time plus the transmission data transmission deadline. To determine whether or not priority change transmission processing is necessary. When priority change transmission processing is necessary, priority change transmission processing from the first transmission data to the transmission data is performed.
この処理を、優先変更送信処理が必要な送信データが見つかるまで繰り返し、見つかれば最初の送信データからその送信データまでの優先変更送信処理を行う。 This process is repeated until transmission data requiring priority change transmission processing is found, and if found, priority change transmission processing from the first transmission data to the transmission data is performed.
そして、優先変更送信処理を行った場合は、新しい状態で最初から上記処理を繰り返す。 When the priority change transmission process is performed, the above process is repeated from the beginning in a new state.
一方、優先変更送信処理の必要な送信データが1つも見つからなかった場合は、現状では優先変更送信処理が必要ないため、通常の処理の継続する。 On the other hand, if no transmission data requiring priority change transmission processing is found, the priority change transmission processing is not necessary at present, and the normal processing is continued.
データ送信装置1において、このような処理に実施することにより、送信期限がある送信データが複数有っても、送信期限を守った送信を実現することができる。
By performing such processing in the
なお、図5に示すように、データ送信装置1として、送信記憶部3を備えず、図示しない上位装置などからデータを受け取って送信するような実施形態も可能である。
(第2の実施形態)
次に、本発明の第2の実施形態について図6を参照して説明する。
As shown in FIG. 5, an embodiment in which the
(Second Embodiment)
Next, a second embodiment of the present invention will be described with reference to FIG.
図6は、第2の実施形態に係るデータ送信装置6の構成を示すブロック図である。
FIG. 6 is a block diagram illustrating a configuration of the
図6のデータ送信装置6において、第1の実施形態に係るデータ送信装置1と同等の部分は同じ符号が付してあり、その詳細な説明は省略する。
In the
本実施形態に係るデータ送信装置6は、3個の送信部(送信部81、送信部82、送信部83)それぞれ独立に電源を供給する送信電源部7を備えた点が第1の実施形態におけるデータ送信装置1と異なる。送信電源部7は、送信制御部2の指示により、送信部81〜83への供給電源を個別に停止・再開することが出来るようになっている。
The
この構成により、送信制御部2は、送信電源部7に指示を出して、送信部81〜83のうちの使用しない送信部の電源供給を止めることができる。また、使用を再開する場合についても、送信制御部2は、送信電源部7に指示を出して、送信部81〜83のなかで使用を再開する送信部への電源の供給を再開させ、使用可能とすることができる。
With this configuration, the
このように送信部に供給される電源を制御する構成により、使用しない送信部での電力消費が無くなり、送信部の送信動作を待機状態とさせる第1の実施形態の場合に比べて、さらなる消費電力の削減効果を実現出来る。 Thus, the configuration for controlling the power supplied to the transmission unit eliminates power consumption in the unused transmission unit, and further consumption compared to the case of the first embodiment in which the transmission operation of the transmission unit is set in a standby state. The power reduction effect can be realized.
その理由は、本実施形態のデータ送信装置6が、送信部の電源供給を停止することにより、使用しない送信部の待機電力をゼロとすることが出来るためである。
The reason is that the
(第3の実施形態)
次に、本発明の第3の実施形態について図7及び図8を参照して説明する。
(Third embodiment)
Next, a third embodiment of the present invention will be described with reference to FIGS.
図7は、第3の実施形態に係るデータ送信装置8及びデータ受信装置9の構成を示すブロック図である。
FIG. 7 is a block diagram illustrating configurations of the
図7のデータ送信装置8において、第2の実施形態に係るデータ送信装置6と同等の部分は同じ符号が付してあり、その詳細な説明は省略する。
In the
データ送信装置8は、送信ホスト18から送信データや優先度情報を受け取り、第1および2の実施形態における処理と同様の処理により、送信データをデータ受信装置9に送る。データ受信装置9は、データ送信装置8から受け取ったデータを受信ホスト19に渡す。
The
本実施形態におけるデータ送信装置8は、送信ホスト18と接続されている点と、データ受信装置9と情報をやり取りする通信部15を備えている点が第2の実施形態におけるデータ送信装置6と異なる。
The
次に、データ受信装置9の構成を説明する。データ受信装置9は、送信部81〜83に対応する3個の受信部(受信部91、受信部92、受信部93)を備える。さらにデータ送信装置9は、データ受信装置9の全体を制御する受信制御部12、受信データを一次保存する受信記憶部17、受信部91〜93に電源を供給する受信電源部14、および、通信部15に対応する通信部16を備えている。受信制御部12は、通信部16を経由してデータ送信装置8から受け取った指示を基に受信電源部14を制御してデータ受信に使用しない受信部91〜93への電源の供給を停止したり、使用を開始する受信部91〜93への電源の供給再開を行う。受信部91〜93で受信したデータは受信記憶部17に一時保存され、その後、受信ホスト19に渡される。
Next, the configuration of the data receiving device 9 will be described. The data reception device 9 includes three reception units (
続いて、本実施形態に係るデータ送信装置8とデータ受信装置9との動作について図8を参照して説明する。
Next, operations of the
以下では、優先変更送信処理を中心に説明する。 Hereinafter, the priority change transmission process will be mainly described.
まず、第1の実施形態に関して説明したように、本実施形態にかかるデータ送信装置8の送信制御部2は、データ送信の処理の中で優先変更送信処理の必要が発生したかどうかを判断する(ステップ701)。優先変更送信処理が必要でなければ、そのままデータ送信を継続する(ステップ705)。
First, as described in relation to the first embodiment, the
一方、使用する送信部を増やす必要がある場合、送信制御部2は、送信部81〜83のうち必要な送信部の使用を再開するため、送信電源部7に指示を出して使用する送信部への電源の供給を再開し、必要な送信部が動作できるようにする(ステップ702)。続いて、送信制御部2は、データ受信装置9に、再開する受信部を指定する情報を通信部15及び通信部16を経由して通知する(ステップ703)。なお、本実施形態では、使用する受信部の情報などのやり取りのために送信部及び受信部とは別に通信部15及び通信部16を設けているが、データの送信に使用している送信部及び受信部を情報のやり取りにも使用するように構成することも可能である。
On the other hand, when it is necessary to increase the number of transmission units to be used, the
データ受信装置9の受信制御部12は、データ送信装置8からの通知が有ったかどうかを判断する(ステップ711)。もし通知が無い場合はデータ受信を継続する(ステップ714)。
The
一方、もし通知があった場合、受信制御部12は、受信電源部14に指示を出して、その通知で指定された受信部への電源の供給を再開して、その受信部によるデータの受信を可能とする(ステップ712)。受信制御部12は、受信部での受信可能を確認後、完了通知を通信部16から通信部15を経由してデータ送信装置8に返し(ステップ713)、データ受信を継続する(ステップ714)。
On the other hand, if there is a notification, the
データ送信装置8の送信制御部2は、データ受信装置9からの完了通知を受け取ると(ステップ704)、新たに使用可能となった送信部も使用してデータ受信装置9へのデータ送信を行う(ステップ705)。
When the
この処理をデータ終了まで繰り返す(ステップ706,715)。
This process is repeated until the end of data (
このように本実施形態は、データ送信装置8からデータ受信装置9に、必要となった受信部を通知して受信部の使用の再開をすることが実現できる構成となっている。この構成により、データ受信装置9においても消費電力を抑えつつ、優先変更送信処理に後続する優先度の高いデータ送信の待ち時間を増やさずに、優先度の低いデータの優先変更送信処理を行うといった効果を実現できる。
As described above, the present embodiment is configured such that the
その理由は、本実施形態のデータ送信装置8が、データ受信装置9に使用しない受信部の指示を行うことにより、データ受信装置9の使用しない受信部の電源供給も停止し、消費電力を削減することが出来るためである。
The reason is that the
さらに、データ送信装置8は、送信ホスト18からの指示により、使用する送信部を設定するように構成してもよい。この場合には、送信ホスト18は、使用する送信部の指定をデータ送信装置8への命令などで行い、その命令に従って、データ送信装置8が動作するように構成すればよい。
Further, the
このように構成することにより、送信ホスト18が送信ホスト18を含めたシステム全体のよりきめ細かな消費電力管理が出来るといった効果も達成できる。
With this configuration, it is possible to achieve an effect that the
その理由は、送信ホスト18が、システム全体の処理状況などを勘案して使用するデータ送信装置8の送信部およびデータ受信装置9の受信部の管理を行うことができるためである。
This is because the
さらに、送信ホスト18は、時間管理、例えば深夜帯など電量費用の安いときは使用する送信部の数を増やすようにし、電力費用が高くネットワークが込みやすい昼間は使用する送信部の数を減らすような管理を行ってもよい。
Further, the
なお、使用する送信部の設定は、上記のように送信ホスト18から設定できるだけでなく、使用者が直接データ送信装置8を操作して設定できるようにしてもよい。
The transmission unit to be used can be set not only from the
また、送信ホスト18からの指示により、データ送信装置8で優先変更送信処理を開始出来るように構成することもできる。このような構成により、送信ホスト18は、データ送信装置8とは別の管理項目により送信期限を管理したり、優先度の高い送信データへの影響管理を行うことができる効果も実現される。
Further, it is also possible to configure so that the priority changing transmission process can be started by the
その理由は、送信ホスト18が、スケジュール管理などの結果、優先変更送信処理の影響を受けたくないような優先度が高い送信データの発生が見込まれる場合などに、前もって優先変更送信処理を実行しておくことができるためである。
The reason is that the
(第4の実施形態)
次に、本発明の第4の実施形態について図9〜図11を参照して説明する。
(Fourth embodiment)
Next, a fourth embodiment of the present invention will be described with reference to FIGS.
図9は、第4の実施形態に係るデータ送信装置20及びデータ受信装置40の構成を示すブロック図である。
FIG. 9 is a block diagram illustrating configurations of the
図9を参照すると、データ送信装置20は、送信制御部21と、送信部251及び送信部252と、送信電源部26から構成されている。
Referring to FIG. 9, the
送信制御部21は、時刻を監視する時間監視部22を備える。さらに送信制御部21は、必要に応じて送信命令制御部24に命令を発行する送信命令割込み部23と、送信命令割込み部23からの命令を受けて送信部251および252ならびに送信電源部26を制御する送信命令制御部24とから構成されている。
The
時間監視部22に設定される監視時間(Twatch)は、例えば次の数式3のように算出することができる。
The monitoring time (Twatch) set in the
ここでの、送信期限(Tout)は、現在の時間と図3に記載の送信期限との差分として求めてもよいし、それに限らず、データ送信装置20が所定の処理によりタイムアウト時間として設定してもよい。
Here, the transmission time limit (Tout) may be obtained as a difference between the current time and the transmission time limit illustrated in FIG. 3, and is not limited thereto, and the
例えば、上位装置などデータ送信に関連する装置の中にタイムアウト時間を設定している装置がある場合は、その装置のタイムアウト時間を参照して決定してもよい。 For example, when there is a device that sets a timeout time among devices related to data transmission such as a host device, the determination may be made with reference to the timeout time of the device.
データ送信に必要な時間(Tsend)は、通常のデータ送信に必要な時間であり、送信データ量をデータの優先度により割当てられた送信部の送信性能(単位時間当たりの送信データ量)で割ることにより求めることが出来る。 The time required for data transmission (Tsend) is the time required for normal data transmission, and the transmission data amount is divided by the transmission performance (transmission data amount per unit time) of the transmitter allocated according to the priority of the data. Can be obtained.
送信設定時間(Tcom)は、データ送信装置20が送信を行うために必要な処理の時間であり、データ送信装置20の単独での処理に加え、データ受信装置40との間で情報のやり取り処理やホスト装置など他の装置とのやり取りに必要な処理の合計時間となる。
The transmission set time (Tcom) is a processing time required for the
送信命令制御部24は、上記の処理に加え、送信命令割込み部23から受け取った命令または命令を受け取った旨の通知(以下、命令通知とする)をデータ受信装置40に送付することにより、データ受信装置40の受信部の状態変更も行う。
In addition to the processing described above, the transmission
送信部251および送信部252は、送信命令制御部24に指示されて送信データの送信を行う。また、本実施形態では、送信部251が常時通電状態とし、送信部252に対して電源供給の停止・再開が行われるよう送信電源部26は電源の供給制御を行うものとする。
The
送信電源部26は、送信電源確認部27と、送信電源制御部28と、送信電源供給部29を備えている。
The transmission
送信電源確認部は27は、送信命令制御部24の指示により送信部252の電源状態を確認し、その結果を送信命令制御部24に報告する。送信電源供給部29は、送信部251および送信部252に電源を供給し、送信電源制御部28の指示により、送信部252の電源の供給を停止したり再開したりする。送信電源制御部28は、送信命令制御部24からの指示により送信電源供給部29から送信部242に供給される電源を制御する。
The transmission power supply confirmation unit 27 confirms the power state of the
なお、ここでは、送信電源確認部27は送信部252の電源の状態を確認しているが、送信電源供給部29の状態や送信電源制御部28の指示状態を確認するようにしてもよい。
Here, although the transmission power supply confirmation unit 27 confirms the power state of the
また、本実施形態の送信部251は常時通電とし電源状態を変更しないため、図8では、その電源供給線を破線で示している。さらに、送信部251は、送信命令制御部24によるデータ受信装置40への命令通知およびデータ受信装置40の受信部の状態(以下、受信通知とする)の受信を行うため、双方向通信が可能となっている。
In addition, since the
一方、データ受信装置40は、受信制御部41と、受信部451および受信部452と、受信電源部46とから構成されている。
On the other hand, the
データ送信装置20からの送信データは、受信部451および受信部452で受信される。また、受信部451は、データ送信装置20からの命令通知を受け取ったり、データ受信装置40の受信通知を報告するため、双方向通信が可能となっている。
Transmission data from the
受信制御部41は、データ送信装置20から送付されてきた命令通知を受信部451が受け取ったデータの中から取り出す受信命令認識部43と、受け取った命令通知を解析して送信部452への電源供給の停止・再開などの制御を行う受信命令制御部44とを備える。
The
受信電源部46は、受信部452の電源状態を確認し結果を報告する受信電源確認部47と、受信電源供給部49に電源供給の停止・再開の指示を行う受信電源制御部48と、受信部451および受信部452に電源を供給する受信電源供給部49とを備えている。これらの動作は、受信命令制御部44からの指示により行われる。なお、受信電源部46における電源の確認は、データ送信装置20の送信電源部26と同様に、受信電源制御部48や電源電源供給部49を確認するように構成してもよい。
The reception power supply unit 46 confirms the power supply state of the
また、受信部451も常時通電としているため、図8では、その電源供給線を破線で示している。
Further, since the receiving
受信命令制御部44は、上記の処理に加え、受信部452の状態を確認し後、データ送信装置20に受信通知を報告する。
In addition to the above processing, the reception
次に、本実施形態における動作について送信命令制御部24および受信命令制御部44を中心に図10及び図11を参照して説明する。
Next, the operation in the present embodiment will be described with reference to FIGS. 10 and 11 focusing on the transmission
まず、図10を用いて優先度の低いデータの送信開始までを説明する。 First, the process up to the start of transmission of low priority data will be described with reference to FIG.
なお、以下では、優先度の低いデータ送信は、最初、送信部251と受信部451との対を使用し、優先変更送信処理では、それに加え送信部252と受信部452の対も使用するものとして説明する。
In the following, low-priority data transmission uses a pair of the
優先度が低い送信データの送信の場合、時間監視部22に監視時間を設定後、送信命令割込み手段23は、低優先命令231を送信命令制御部24に発行する(ステップ901)。低優先命令231を受け取った送信命令制御部24は、送信部251のみを使用する送信であるため、送信部252への電源供給を停止させる。そのため、送信命令制御部24は、送信電源確認部27を使用して送信部252の電源状態を確認する(ステップ902)。もし、送信部252に電源を供給している場合(ステップ903)、送信命令制御部24は、送信電源制御部28に指示して送信電源供給部29から送信部252への電源供給を停止させる(ステップ904)。
In the case of transmission of low-priority transmission data, after setting the monitoring time in the
さらに、送信命令制御部24は、送信部251を経由して、データ受信装置40に優先度が低いデータの送信である旨の命令通知を送付する(ステップ905)。
Further, the transmission
データ受信装置40では、その命令通知を受信部451を介して受信し、受信命令認識部43で命令通知を取出し、受信命令制御部44に渡す(ステップ906)。受信命令制御部44は、命令通知の内容が優先度の低いデータの送信であることから、受信部452を使用しないことを認識し、受信部452への電源供給を停止する。具体的には、まず、受信電源確認部47を使用し受信部452の電源状態を確認し(ステップ907)、電源が供給されているならば(ステップ908)受信電源制御部48に指示して受信電源供給部49から受信部452への電源供給を停止する(ステップ909)。
In the
なお、本実施形態では、優先度の低いデータ送信は、常に電源が供給されている送信部251と受信部451との対を使用して行われるため、データ送信装置20によるデータ送信開始において、データ受信装置40の受信部の確認処理は必要としない。そのため、本実施形態の説明では、データ受信装置40からの受信通知を省略しているが、受信通知を確認してから送信を開始するようにしても、勿論よい。
In the present embodiment, low-priority data transmission is always performed using a pair of the
この後は、時間監視部22で時間が無くなったことを検出するまで、データ送信装置20とデータ受信装置40とは、送信部251と受信部451を使用したデータ送信を行う(ステップ910)。
Thereafter, the
続いて、時間監視部22で送信時間が無くなったことを検出した場合の動作について図11を参照して説明する。
Next, an operation when the
時間監視部22は、時間が無くなったことを検出した場合、その旨を送信命令割込み部23に通知する。時間が無くなった通知を受けた送信命令割込み部23は、送信命令制御部24に優先変更命令232を通知する(ステップ1001)。優先変更命令232を受け取った送信命令制御部24は、優先変更送信処理を開始する。まず、送信命令制御部24は、送信電源確認部27を使用して送信部252の電源状態の確認する(ステップ1002)。もし、送信部252への電源供給が停止している場合は(ステップ1003)、送信電源制御部28に指示して送信電源供給部29から送信部252への電源供給を再開させる(ステップ1004)。その後、送信命令制御部24は、必要ならば送信部252の設定を行う。
When the
さらに、送信命令制御部24は、優先変更送信処理の命令通知をデータ受信装置40に通知する(ステップ1005)。
Further, the transmission
この優先変更送信処理の命令通知を受けたデータ受信装置40の受信命令制御部44は(ステップ1006)、受信電源確認部47を使用して受信部452の電源状態を確認する(ステップ1007)。電源が供給されていない場合は(ステップ1008)、受信電源制御部48に指示を出して、受信電源供給49から受信部452への電源供給を再開させる(ステップ1009)。さらに、受信命令制御部44は必要に応じて、受信部452の設定を行う。(本実施形態ではこの設定を受信命令認識部43経由で行っているが、受信命令制御部44から直接受信部452を設定する構成も可能である。)受信命令制御部44は、受信部452の受信が可能となったら、データ送信装置20に受信可能となったことを示す受信通知を返却する(ステップ1010)。
The reception
データ受信装置40から受信通知を受け取ったデータ送信装置20は、送信部251と受信部451との対に加え、送信部252と受信部452との対も使用した送信データの送信を行う(ステップ1011)。
The
このように、本実施形態では、時間監視と連動した命令および命令通知などを使用するという簡単な構成により優先変更送信処理を実現でき、優先変更送信処理に後続する優先度の高い送信データの送信の待ち時間を抑えるという効果が得られる。 As described above, in this embodiment, the priority change transmission process can be realized by a simple configuration that uses a command and instruction notification linked with time monitoring, and transmission of transmission data with high priority following the priority change transmission process. The effect of suppressing the waiting time is obtained.
その理由は、本実施形態のデータ送信装置20が、命令割込み部23からの命令により命令制御部24が動作を変更でききるためである。さらに、データ送信装置20からの命令通知とデータ受信装置40の受信通知により、データ送信装置20とデータ受信装置40が協調した動作が出来るためである。
This is because the
なお、本説明では、各部を機能ブロックとして説明しているが、これらをデータ送信装置20及びデータ受信装置40に組み込まれたプログラムとして構成することも、もちろん可能である。
In the present description, each unit is described as a functional block. However, it is of course possible to configure these as programs incorporated in the
1、6、8 データ送信装置
2 送信制御部
3 送信記憶部
4 送信データ
51、52、53 送信部
7 送信電源部
81、82、83 送信部
15、16 通信部
9 データ受信装置
91、92、93 受信部
12 受信制御部
14 受信電源部
17 受信記憶部
18 送信ホスト
19 受信ホスト
20 データ送信装置
21 送信制御部
22 時間監視部
23 送信命令割込み部
24 送信命令制御部
251、252 送信部
26 送信電源部
27 送信電源確認部
28 送信電源制御部
29 送信電源供給部
40 データ受信装置
41 受信制御部
43 受信命令認識部
44 受信命令制御部
451、452 受信部
46 受信電源部
47 受信電源確認部
48 受信電源制御部
49 受信電源供給部
1, 6, 8
Claims (22)
データの送信開始時に、当該データを送信するために前記複数の送信部のうちの少なくとも一つを当該データの送信のために割り当て、データの送信開始後に、所定の条件を満たした場合に、前記送信開始時に当該データの送信のために割り当てられた送信部の個数よりも多くの個数の送信部を当該データの送信のために割り当てる制御部とを備え、
前記データには優先度が設定され、該優先度の値に応じて当該データの送信のために割り当てるべき送信部の個数が決定され、
前記データに送信完了期限が設定されている場合に、該送信完了期限までに当該データの送信が完了しないと予測されるときには、当該データに設定された優先度に応じて割り当てられた送信部の個数より多くの個数の送信部を当該データに割り当てることを特徴とするデータ送信装置。 A plurality of transmission units for transmitting data;
When transmitting data, at least one of the plurality of transmitting units is allocated for transmitting the data in order to transmit the data, and when a predetermined condition is satisfied after the data transmission starts, A control unit that allocates a larger number of transmission units for transmission of the data than the number of transmission units allocated for transmission of the data at the start of transmission ,
A priority is set for the data, and the number of transmission units to be allocated for transmission of the data is determined according to the priority value,
When a transmission completion time limit is set for the data, if it is predicted that the transmission of the data will not be completed by the transmission completion time limit, the transmission unit assigned according to the priority set for the data A data transmission apparatus , wherein a larger number of transmission units than the number are allocated to the data.
当該送信データの優先度に応じて割り当てられた送信部の合計の送信速度と、当該データの送信残量とに基づき決定することを特徴とする請求項1に記載のデータ送信装置。 The timing of assigning a larger number of transmission units to the data than the number of transmission units allocated according to the priority,
The data transmission device according to claim 1 , wherein the data transmission device is determined based on a total transmission speed of transmission units allocated in accordance with a priority of the transmission data and a remaining transmission amount of the data.
割り当てる個数を増やした後の送信部の合計の送信速度と、当該データの送信残量とに基づき決定することを特徴とする請求項1に記載のデータ送信装置。 The timing of assigning a larger number of transmission units to the data than the number of transmission units allocated according to the priority,
The data transmission device according to claim 1 , wherein the data transmission device is determined based on a total transmission speed of the transmission unit after increasing the number of allocations and a remaining transmission amount of the data.
前記電源制御部は、該少なくとも一つの送信部にデータの送信が割り当てられていない期間には、当該少なくとも一つの送信部への電源供給を停止することを特徴とする請求項1ないし請求項3のいずれかに記載のデータ送信装置。 A power control unit that controls stop and restart of power supply to at least one of the plurality of transmission units;
The power control unit, said at least one period during which transmission is not assigned the data to the transmission section of claim 1 to claim 3, characterized in that stops the power supply to the at least one transmission unit The data transmission device according to any one of the above.
前記電源制御部による電源供給を制御する電源指示部と、
前記送信部の電源状態を確認する電源確認部と、
を備えることを特徴とする請求項1ないし請求項3のいずれかに記載のデータ送信装置。 A power controller for supplying power to the transmitter;
A power instruction unit for controlling power supply by the power control unit;
A power supply confirmation unit for confirming a power state of the transmission unit;
The data transmission device according to claim 1, further comprising:
時間監視部の監視結果に基づき、データの送信のために割り当てる送信部の個数を増やすことを指示する優先変更命令を発行する命令割込み部と、
前記優先変更命令により前記送信部の割り当て個数を増やす命令制御部と
を備えることを特徴とする請求項1ないし請求項5にいずれかに記載のデータ送信装置。 A time monitoring unit for monitoring time;
Based on the monitoring result of the time monitoring unit, an instruction interrupt unit that issues a priority change command that instructs to increase the number of transmission units allocated for data transmission;
The data transmission device according to claim 1, further comprising: an instruction control unit that increases an allocation number of the transmission units according to the priority change command.
データの送信開始後に、所定の条件を満たした場合に、前記送信開始時に当該データの送信のために割り当てられた送信部の個数よりも多くの個数の送信部を当該データの送信のために割り当てるステップと
を含み、
前記データには優先度が設定され、該優先度の値に応じて当該データの送信のために割り当てるべき送信部の個数が決定され、
前記データに送信完了期限が設定されている場合に、該送信完了期限までに当該データの送信が完了しないことを予測されたときには、当該データに設定された優先度に応じて割り当てられた送信部の個数より多くの個数の送信部を当該データに割り当てることを特徴とするデータ送信方法。 Allocating at least one of the plurality of transmission units for transmission of the data to transmit the data at the start of data transmission of a data transmission device including a plurality of transmission units for transmitting data; ,
When a predetermined condition is satisfied after data transmission starts, a larger number of transmission units are allocated for transmission of the data than the number of transmission units allocated for transmission of the data at the start of the transmission. and a step seen including,
A priority is set for the data, and the number of transmission units to be allocated for transmission of the data is determined according to the priority value,
When a transmission completion time limit is set for the data, when it is predicted that transmission of the data will not be completed by the transmission completion time limit, a transmission unit assigned according to the priority set for the data A data transmission method characterized by assigning a larger number of transmission units to the data .
当該送信データの優先度に応じて割り当てられた送信部の合計の送信速度と、当該データの送信残量とに基づき決定されることを特徴とする請求項9に記載のデータ送信方法。 The timing of assigning a larger number of transmission units to the data than the number of transmission units allocated according to the priority,
The data transmission method according to claim 9 , wherein the data transmission method is determined based on a total transmission speed of the transmission units allocated in accordance with the priority of the transmission data and a remaining transmission amount of the data.
割り当てる個数を増やした後の送信部の合計の送信速度と、当該データの送信残量とに基づき決定されることを特徴とする請求項9に記載のデータ送信方法。 The timing of assigning a larger number of transmission units to the data than the number of transmission units allocated according to the priority,
The data transmission method according to claim 9 , wherein the data transmission method is determined based on a total transmission speed of the transmission unit after increasing the number to be allocated and a remaining transmission amount of the data.
前記優先変更命令により前記送信部の割り当て個数を増やすステップと
を含むことを特徴とする請求項9ないし請求項12のいずれかに記載のデータ送信方法。 Issuing a priority change instruction instructing to increase the number of transmission units allocated for data transmission based on the result of time monitoring;
The data transmission method according to claim 9 , further comprising a step of increasing the number of transmission units allocated by the priority change command.
前記上位装置からの命令に従って当該データの送信に使用する送信部の個数を決定するステップと
を含むことを特徴とする請求項9ないし請求項13のいずれかに記載のデータ送信方法。 Receiving data from the host device;
14. The data transmission method according to claim 9 , further comprising: determining a number of transmission units to be used for transmitting the data in accordance with a command from the host device.
データの送信開始後に、所定の条件を満たした場合に、前記送信開始時に当該データの送信のために割り当てられた送信部の個数よりも多くの個数の送信部を当該データの送信のために割り当てる処理と
をコンピュータに実行させ、
前記データには優先度が設定され、該優先度の値に応じて当該データの送信のために割り当てるべき送信部の個数が決定され、
前記データに送信完了期限が設定されている場合に、該送信完了期限までに当該データの送信が完了しないことを予測されたときには、当該データに設定された優先度に応じて割り当てられた送信部の個数より多くの個数の送信部を当該データに割り当てることを特徴とするデータ送信装置のデータ送信プログラム。 A process of allocating at least one of the plurality of transmission units for transmission of the data at the start of data transmission of a data transmission device including a plurality of transmission units for transmitting data; ,
When a predetermined condition is satisfied after data transmission starts, a larger number of transmission units are allocated for transmission of the data than the number of transmission units allocated for transmission of the data at the start of the transmission. Let the computer execute the process and
A priority is set for the data, and the number of transmission units to be allocated for transmission of the data is determined according to the priority value,
When a transmission completion time limit is set for the data, when it is predicted that transmission of the data will not be completed by the transmission completion time limit, a transmission unit assigned according to the priority set for the data A data transmission program for a data transmission apparatus, wherein a larger number of transmission units than the number of transmission units are allocated to the data.
当該送信データの優先度に応じて割り当てられた送信部の合計の送信速度と、当該データの送信残量とに基づき決定されことを特徴とする請求項16に記載のデータ送信プログラム。 The timing of assigning a larger number of transmission units to the data than the number of transmission units allocated according to the priority,
The data transmission program according to claim 16 , wherein the data transmission program is determined based on a total transmission speed of transmission units allocated in accordance with a priority of the transmission data and a remaining transmission amount of the data.
割り当てる個数を増やした後の送信部の合計の送信速度と、当該データの送信残量とに基づき決定されることを特徴とする請求項16に記載のデータ送信プログラム。 The timing of assigning a larger number of transmission units to the data than the number of transmission units allocated according to the priority,
17. The data transmission program according to claim 16 , wherein the data transmission program is determined based on a total transmission speed of the transmission unit after increasing the number to be allocated and a remaining transmission amount of the data.
前記優先変更命令により前記送信部の割り当て個数を増やす処理と
を含むことを特徴とする請求項16ないし請求項19にいずれかに記載のデータ送信プログラム。 Based on the result of time monitoring, a process of issuing a priority change instruction that instructs to increase the number of transmission units allocated for data transmission;
20. The data transmission program according to claim 16 , further comprising: a process of increasing the number of transmission units allocated by the priority change instruction.
前記上位装置からの命令に従って当該データの送信に使用する送信部の個数を決定する処理と
を含むことを特徴とする請求項16ないし請求項20のいずれかに記載のデータ送信プログラム。 A process of receiving data from the host device;
21. The data transmission program according to claim 16 , further comprising: a process of determining the number of transmission units used for transmission of the data in accordance with a command from the host device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009150105A JP5345902B2 (en) | 2009-06-24 | 2009-06-24 | Data transmission apparatus, data transmission method, and data transmission program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009150105A JP5345902B2 (en) | 2009-06-24 | 2009-06-24 | Data transmission apparatus, data transmission method, and data transmission program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2011009953A JP2011009953A (en) | 2011-01-13 |
JP5345902B2 true JP5345902B2 (en) | 2013-11-20 |
Family
ID=43566116
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009150105A Expired - Fee Related JP5345902B2 (en) | 2009-06-24 | 2009-06-24 | Data transmission apparatus, data transmission method, and data transmission program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5345902B2 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5736818B2 (en) * | 2011-02-14 | 2015-06-17 | 富士通株式会社 | Information processing apparatus, control method, and control program |
JP5681576B2 (en) | 2011-06-29 | 2015-03-11 | ルネサスエレクトロニクス株式会社 | Host controller device, information processing device, and event information output method |
WO2013031219A1 (en) * | 2011-09-02 | 2013-03-07 | 日本電気株式会社 | Node device, and control method and control program thereof |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3079241B2 (en) * | 1992-12-25 | 2000-08-21 | 富士通株式会社 | Communication control device |
JPH08139720A (en) * | 1994-11-14 | 1996-05-31 | Nippon Telegr & Teleph Corp <Ntt> | Fast communication method and device therefor |
JP3436650B2 (en) * | 1997-02-24 | 2003-08-11 | 三菱電機株式会社 | Network control device |
JPH10304170A (en) * | 1997-04-30 | 1998-11-13 | Murata Mach Ltd | Communication terminal equipment accommodating plural lines and communication system adopting the equipment |
JP4141106B2 (en) * | 2001-02-06 | 2008-08-27 | 富士通株式会社 | Bandwidth control device |
JP2008010905A (en) * | 2006-06-27 | 2008-01-17 | Nec Corp | Priority control method and apparatus at packet transmission |
-
2009
- 2009-06-24 JP JP2009150105A patent/JP5345902B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2011009953A (en) | 2011-01-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3922070B2 (en) | Distributed control method and apparatus | |
CN107066332B (en) | Distributed system and scheduling method and scheduling device thereof | |
US9348628B2 (en) | Computer system | |
JP4370336B2 (en) | Low power consumption job management method and computer system | |
EP2388699A1 (en) | Information processing device and information processing method | |
CN106843170B (en) | Token-based task scheduling method | |
JP2008129846A (en) | Data processor, data processing method, and program | |
KR101699770B1 (en) | Virtualization system and method for allocating resource thereof | |
JP2008257578A (en) | Information processor, scheduler, and schedule control method of information processor | |
JP4747307B2 (en) | Network processing control device, program, and method | |
CN102779062A (en) | Method and device for controlling number of threads accessing system resources | |
US6721948B1 (en) | Method for managing shared tasks in a multi-tasking data processing system | |
JP5345902B2 (en) | Data transmission apparatus, data transmission method, and data transmission program | |
AU2007261607B2 (en) | Resource-based scheduler | |
JP4811260B2 (en) | Programmable controller and its support device | |
KR102333391B1 (en) | Electronic apparatus and method for contorolling power thereof | |
JP5585651B2 (en) | Multi-core system, scheduling method and scheduling program | |
JP4363417B2 (en) | Computer apparatus and computer control method | |
EP2164204A1 (en) | Energy efficient inter-subsystem communication | |
US20090187261A1 (en) | Control Apparatus for Process input-Output Device | |
WO2014188642A1 (en) | Scheduling system, scheduling method, and recording medium | |
TWI472910B (en) | System resource conserving method and operating system thereof | |
KR20070012392A (en) | Method and system for transferring budgets in a technique for restrained budget use | |
JP2014078214A (en) | Schedule system, schedule method, schedule program, and operating system | |
CN114115140A (en) | Data synchronization system and method between multi-core main controller and main-auxiliary multi-core controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20110712 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20120518 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130424 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130507 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130701 |
|
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: 20130723 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130815 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5345902 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
LAPS | Cancellation because of no payment of annual fees |