JPH06224970A - Communication speed adaptive variable device - Google Patents
Communication speed adaptive variable deviceInfo
- Publication number
- JPH06224970A JPH06224970A JP50A JP957693A JPH06224970A JP H06224970 A JPH06224970 A JP H06224970A JP 50 A JP50 A JP 50A JP 957693 A JP957693 A JP 957693A JP H06224970 A JPH06224970 A JP H06224970A
- Authority
- JP
- Japan
- Prior art keywords
- communication
- communication speed
- internal processing
- time
- real
- 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
Links
Landscapes
- Communication Control (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、通信速度適応可変装置
に関するものであり、通信対象となるシステムと通信す
る機能を有するリアルタイムシステムに利用されるもの
である。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication speed adaptive variable device, and is used for a real-time system having a function of communicating with a system to be communicated.
【0002】[0002]
【従来の技術】従来、CPUの制御対象として通信手段
と画面制御手段を含むリアルタイムシステムが広く用い
られている。リアルタイムシステムの場合、通信する要
求に対して、リアルタイムに対応する必要がある。ま
た、例えば画面制御等の他の要求に対しても、リアルタ
イムに応答する必要があるため、通信が頻繁に行われる
等の理由で、CPUの処理能力が限界を越えたときに、
画面制御等の遅れや通信の取りこぼし等が発生する。そ
こで、通信速度は、CPUの負担にならないような一定
の速度に保たれていた。2. Description of the Related Art Conventionally, a real-time system including a communication means and a screen control means has been widely used as a control target of a CPU. In the case of a real-time system, it is necessary to respond to the request for communication in real time. Also, since it is necessary to respond to other requests such as screen control in real time, when the processing capacity of the CPU exceeds the limit due to frequent communication,
Delays such as screen control and missed communications occur. Therefore, the communication speed is kept constant so as not to burden the CPU.
【0003】[0003]
【発明が解決しようとする課題】上述のように、通信速
度の制限が存在するために、現状のリアルタイムシステ
ムでは、システムの内部処理の状況がどうであろうと、
同じ通信速度で通信している。そこで、システムが内部
処理にあまり時間を費やしていないときには、通信速度
を上げて内部処理に多くの時間を費やしているときには
通信速度を下げてやるような通信速度適応可変装置を実
現できれば、効率良く通信を行うことが可能になるはず
である。As described above, because of the limitation of the communication speed, in the current real time system, no matter how the internal processing of the system is,
Communicating at the same communication speed. Therefore, if it is possible to realize a communication speed adaptive variable device that increases the communication speed when the system does not spend much time in the internal processing and decreases the communication speed when spending a lot of time in the internal processing, it would be efficient. It should be possible to communicate.
【0004】本発明は、このような点に鑑みてなされた
ものであり、その目的とするところは、システムの処理
の空き時間を有効に利用することにより、リアルタイム
システムの通信効率を向上させることが可能な通信速度
適応可変装置を提供することにある。The present invention has been made in view of the above circumstances, and an object thereof is to improve the communication efficiency of a real-time system by effectively utilizing the idle time of the processing of the system. It is to provide a communication speed adaptive variable device capable of performing the above.
【0005】[0005]
【課題を解決するための手段】本発明の通信速度適応可
変装置にあっては、上記の課題を解決するために、図2
に示すように、通信対象1と通信する機能を持つリアル
タイムシステム2において、図1に示すように、内部処
理に要するCPU専有時間を測定する手段(#1)と、
その測定結果から内部処理が負担になっているかどうか
を判断する手段(#2)と、その判断結果に応じて通信
速度を変更する手段(#4、#7)と、通信対象1に対
して変更した通信速度を知らせる手段(#3、#6)と
を有することを特徴とするものである。In order to solve the above-mentioned problems, the communication speed adaptive variable apparatus of the present invention has the configuration shown in FIG.
In the real-time system 2 having the function of communicating with the communication target 1, as shown in FIG. 1, means (# 1) for measuring the CPU monopolization time required for internal processing,
A means (# 2) for judging whether or not the internal processing is burdened from the measurement result, a means (# 4, # 7) for changing the communication speed according to the judgment result, and a communication target 1 And a means (# 3, # 6) for notifying the changed communication speed.
【0006】[0006]
【作用】本発明の作用を図1のフローチャートにより説
明する。#1の処理では、リアルタイムシステムにおい
て内部処理に要するCPU専有時間を測定することによ
り、内部処理が負担になっている度合を調べる。次に、
#2の処理では、CPU専有時間の測定結果からその内
部処理が負担になっているかどうかを判断する手段によ
り、内部処理が負担になっているかどうかを判断する。
もし、内部処理が負担になっているならば、#4の処理
で、通信速度を下げることにより、CPUの負担を減少
させる。また、それに先立って、#3の処理で、通信速
度を下げることを通信対象に対して通知する。また、#
2の処理で、内部処理が負担になっていないと判断され
た場合には、#5の処理で、CPU空き時間が多いかど
うかを判断し、CPU空き時間が少ないと判断されれ
ば、#8の処理に移行し、通信速度の変更は行わない。
しかし、#5の処理で、CPU空き時間が多いと判断さ
れた場合には、通信速度を上げることにより、効率的な
通信ができるので、#7の処理で、通信速度を上げる。
また、それに先立って、#6の処理で、通信速度を上げ
ることを通信対象に対して通知する。これにより、リア
ルタイムシステムの処理の空き時間を有効に利用して、
通信効率を向上させることが可能となる。The operation of the present invention will be described with reference to the flowchart of FIG. In the process of # 1, by measuring the CPU monopolization time required for the internal processing in the real-time system, the degree to which the internal processing is burdened is checked. next,
In the process of # 2, it is determined whether or not the internal processing is burdened by the means for determining whether or not the internal processing is burdened from the measurement result of the CPU exclusive time.
If the internal processing is burdensome, the burden on the CPU is reduced by lowering the communication speed in the processing of # 4. In addition, prior to that, the communication target is notified that the communication speed will be reduced in the process of # 3. Also,#
If it is determined that the internal processing does not become a burden in the processing of No. 2, it is determined whether or not the CPU idle time is large in the processing of # 5. The process shifts to the process of 8 and the communication speed is not changed.
However, if it is determined in the process of # 5 that the CPU idle time is large, efficient communication can be performed by increasing the communication speed. Therefore, the communication speed is increased in the process of # 7.
In addition, prior to that, the communication target is notified that the communication speed will be increased in the process of # 6. This makes effective use of the free time of the processing of the real-time system,
It is possible to improve communication efficiency.
【0007】[0007]
【実施例】図1は本発明の通信速度適応可変装置の動作
を示しており、図2は通信速度変更時におけるリアルタ
イムシステムと通信対象の交信状況を示している。本実
施例では、内部処理に要するCPU専有時間を測定する
手段として、リアルタイムシステムの優先度の最も低い
タスクを用いて、そのタスクに制御が移行する頻度を計
測することによりCPU専有時間を測定している。内部
処理が負担になっているかどうかを判断する手段として
は、優先度の最も低いタスクを用いてそのタスクに一定
時間に制御が移行する回数に、上限と下限の2種類のし
きい値を設けておき、上限を越えた場合には、CPU空
き時間が多いと判断し、下限を越えた場合には、CPU
空き時間が少なく、内部処理が負担になっていると判断
する。DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows the operation of a communication speed adaptive variable device of the present invention, and FIG. 2 shows the communication status between a real-time system and a communication target when the communication speed is changed. In this embodiment, as the means for measuring the CPU monopolization time required for internal processing, the task with the lowest priority of the real-time system is used, and the CPU monopolization time is measured by measuring the frequency of control transfer to the task. ing. As a means to determine whether the internal processing is overloaded, two kinds of thresholds, an upper limit and a lower limit, are set for the number of times the control is transferred to the task with the lowest priority using the task with the lowest priority. If the upper limit is exceeded, it is determined that the CPU has a lot of free time, and if the lower limit is exceeded, the CPU is idle.
Judging that the free time is low and internal processing is a burden.
【0008】また、通信速度を変更する手段としては、
通信用LSIのボーレートを変更することで実現してい
る。さらに、変更する通信速度を通信対象に知らせる手
段としては、通信速度変更コマンドを送信することによ
り、変更する通信速度を通信対象1に伝え、その確認用
のコマンドACKの返信を待つことによって実現してい
る。すなわち、図2に示すように、リアルタイムシステ
ム2と通信対象1の間で所定の通信速度で通常通信を行
っている状態において、通信速度を変更しようとする場
合には、リアルタイムシステム2から通信対象1に対し
て通信速度変更コマンドを送信する。このコマンドに応
答して、通信対象1からリアルタイムシステム2に対し
て確認用のコマンドACKを返信することにより、リア
ルタイムシステム2では、通信対象が通信速度の変更を
確認したことを知ることができ、その後、以前とは異な
る通信速度でリアルタイムシステム2と通信対象1の間
で通常通信が行われるものである。As means for changing the communication speed,
This is achieved by changing the baud rate of the communication LSI. Further, as a means for notifying the communication target of the communication speed to be changed, it is realized by transmitting the communication speed change command to the communication target 1 and waiting for the reply of the confirmation command ACK. ing. That is, as shown in FIG. 2, when the communication speed is to be changed while normal communication is being performed between the real-time system 2 and the communication target 1 at a predetermined communication speed, The communication speed change command is transmitted to 1. In response to this command, the communication target 1 sends back a confirmation command ACK to the real-time system 2, whereby the real-time system 2 can know that the communication target has confirmed the change in the communication speed. After that, normal communication is performed between the real-time system 2 and the communication target 1 at a communication speed different from before.
【0009】[0009]
【発明の効果】本発明によれば、通信対象と通信する機
能を持つリアルタイムシステムにおいて、内部処理に要
するCPU専有時間を測定し、その測定結果から内部処
理が負担になっているかどうかを判断して、その判断結
果に応じて通信速度を変更し、通信対象に対して変更し
た通信速度を知らせるようにしたので、リアルタイムシ
ステムが内部処理にあまり時間を費やしていないときに
は通信対象に対する通信速度を上げると共に、内部処理
に多くの時間を費やしているときには通信対象に対する
通信速度を下げることにより、効率良く通信を行うこと
ができるという効果がある。According to the present invention, in a real-time system having a function of communicating with a communication object, the CPU monopolization time required for internal processing is measured, and it is judged from the measurement result whether the internal processing is a burden. The communication speed is changed according to the judgment result, and the changed communication speed is notified to the communication target. Therefore, when the real-time system does not spend much time on internal processing, the communication speed to the communication target is increased. At the same time, when a large amount of time is spent on internal processing, there is an effect that communication can be efficiently performed by reducing the communication speed for the communication target.
【図1】本発明の動作を説明するためのフローチャート
である。FIG. 1 is a flow chart for explaining the operation of the present invention.
【図2】通信速度を通信対象に伝える手段の実施例を示
すブロック図である。FIG. 2 is a block diagram showing an embodiment of means for transmitting a communication speed to a communication target.
#1 CPU専有時間測定手段 #2 内部処理負担判定手段 #3 通信速度通知手段 #4 通信速度低減手段 #5 CPU空き時間判定手段 #6 通信速度通知手段 #7 通信速度増加手段 # 1 CPU exclusive time measurement means # 2 Internal processing load determination means # 3 Communication speed notification means # 4 Communication speed reduction means # 5 CPU idle time determination means # 6 Communication speed notification means # 7 Communication speed increase means
Claims (1)
タイムシステムにおいて、内部処理に要するCPU専有
時間を測定する手段と、その測定結果から内部処理が負
担になっているかどうかを判断する手段と、その判断結
果に応じて通信速度を変更する手段と、通信対象に対し
て変更した通信速度を知らせる手段とを有することを特
徴とする通信速度適応可変装置。1. In a real-time system having a function of communicating with a communication target, means for measuring a CPU monopolization time required for internal processing, means for judging whether or not the internal processing is burdened from the measurement result, A communication speed adaptive variable device comprising: means for changing a communication speed according to a result of determination; and means for notifying a communication target of the changed communication speed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP50A JPH06224970A (en) | 1993-01-22 | 1993-01-22 | Communication speed adaptive variable device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP50A JPH06224970A (en) | 1993-01-22 | 1993-01-22 | Communication speed adaptive variable device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH06224970A true JPH06224970A (en) | 1994-08-12 |
Family
ID=11724145
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP50A Pending JPH06224970A (en) | 1993-01-22 | 1993-01-22 | Communication speed adaptive variable device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH06224970A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11331943A (en) * | 1998-05-15 | 1999-11-30 | Toshiba Corp | Mobile communication system, mobile terminal and base station equipment to be used for the sam |
-
1993
- 1993-01-22 JP JP50A patent/JPH06224970A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11331943A (en) * | 1998-05-15 | 1999-11-30 | Toshiba Corp | Mobile communication system, mobile terminal and base station equipment to be used for the sam |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH088970A (en) | Transmission throughput control device and method therefor | |
JP4195368B2 (en) | Sender / receiver request re-enforcement method and apparatus | |
JPH04211855A (en) | Apparatus and method for controlling communication bus in data processing system | |
JPH06224970A (en) | Communication speed adaptive variable device | |
US6477584B1 (en) | Message FIFO empty early warning method | |
JP2001092798A (en) | Load distribution multi-processor system and method | |
JPH0749822A (en) | Load decentralizing method for data processing system | |
JPH0340150A (en) | Swap area security control system in accordance with job priority | |
JPH0448336A (en) | Interruption control system | |
JP3452656B2 (en) | DMA controller | |
JP3225585B2 (en) | Private branch exchange | |
JPS5860333A (en) | Priority controlling method for plural terminal devices | |
JP2618128B2 (en) | Congestion control method and apparatus | |
JPH04329443A (en) | Task control system | |
JPH04355861A (en) | Peripheral control processing device | |
KR20010084392A (en) | apparatus for controlling direct memory access | |
JP2657544B2 (en) | Congestion control method | |
CN116471232A (en) | Distributed current limiting method, device, apparatus, storage medium and program product | |
JPH05210613A (en) | Peripheral equipment connecting system | |
JPH05151123A (en) | Transmission data processor | |
JPH02310657A (en) | Bus connecting device | |
JPH03113664A (en) | Serial transmission controller | |
JPH05314057A (en) | Information processor | |
JPH1155351A (en) | Method for transmitting data | |
JPS61189048A (en) | Communication control overload adjusting system |