JPH03273730A - Communication control method - Google Patents

Communication control method

Info

Publication number
JPH03273730A
JPH03273730A JP7485690A JP7485690A JPH03273730A JP H03273730 A JPH03273730 A JP H03273730A JP 7485690 A JP7485690 A JP 7485690A JP 7485690 A JP7485690 A JP 7485690A JP H03273730 A JPH03273730 A JP H03273730A
Authority
JP
Japan
Prior art keywords
line
communication control
control signal
state
communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP7485690A
Other languages
Japanese (ja)
Other versions
JPH06101736B2 (en
Inventor
Toru Taniguchi
徹 谷口
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.)
YUNIUERU KK
Original Assignee
YUNIUERU KK
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 YUNIUERU KK filed Critical YUNIUERU KK
Priority to JP7485690A priority Critical patent/JPH06101736B2/en
Publication of JPH03273730A publication Critical patent/JPH03273730A/en
Publication of JPH06101736B2 publication Critical patent/JPH06101736B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To prevent the inconveniences like confliction of a line, etc., by securing the line by returning a communication control signal to an initial state when the monitoring result of this communication control signal shows the use of the line and changing the communication control signal to line using state when the monitoring result shows the unused state of the line. CONSTITUTION:When the communication control signal is monitored and this monitor result shows the use of the line, the communication control signal is returned to the initial state. On the other hand, when the monitoring result shows the unused state of the linne, the communication control signal is changed from the line unused state to the line using state, and this state is maintained only for a circuit reservation period Tx (Tx-Tx-1< a+b). Afterwards, the communication control signal is returned from the line using state to the line unused state, and the communication control signal is monitored again. When this monitoring result shows the using state of the line, signal is returned to the initial state. On the other hand, When the monitoring result shows the unused state of the line, the communication signal is changed from the line unused state to the line using state, and the line is secured. Thus, the inconveniences like the confliction of the line, etc., is prevented even when more than two equipments secure the circuit for executing data communication in the same timing.

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明は多数の機器を通信線を介して相互にデータ通信
をするにあたりデータ通信前の回線確保についての通信
制御方法に関する。
DETAILED DESCRIPTION OF THE INVENTION <Field of Industrial Application> The present invention relates to a communication control method for securing a line before data communication when a large number of devices communicate data with each other via communication lines.

〈従来の技術〉 最近、多数の機器を互いに通信線で接続し、各機器の有
するデータを共用の通信線を介して他の機器に転送させ
るという利用例が種々報告されている。例えば、商品の
精算部門と引き渡し部門とが別個となっているストア等
では、各部門に設けられたキャッシュレジスタ群と端末
機群とを通信回線で結んでこれらの間でデータ通信を行
い、伝票の受は渡しの必要を無くすというストアオート
メンジョンシステムがある。
<Prior Art> Recently, various usage examples have been reported in which a large number of devices are connected to each other via communication lines and data held by each device is transferred to other devices via a shared communication line. For example, in a store where the product settlement department and delivery department are separate, a communication line connects the cash registers and terminals installed in each department, data is communicated between them, and the check is processed. There is a store automension system that eliminates the need for delivery.

この種のシステムでデータ通信を行うにあたって問題と
なるのは回線の競合であるが、従来、通信回線にトラッ
キングコントロールするための特別なユニットを設けた
り、或いは機器同士の間で親機と子機との関係を作りあ
げ、親機に通信回線を制御するための機能を持たせて、
如何なる場合にも回線の競合が生しないようにしていた
Line contention is a problem when performing data communication in this type of system, but in the past, a special unit for tracking control was installed on the communication line, or a master unit and slave unit were connected between devices. By creating a relationship with
This ensures that line contention does not occur under any circumstances.

〈発明が解決しようとする課題〉 しかしながら、前者例による場合には、キャッシュレジ
スタ及び端末機の他にユニットを別途必要とするので、
一方、後者例による場合には、子機に比べ高い機能を有
する親機が非常に高価であるので、何れの場合もシステ
ム全体に要するコストが非常に高くなるという欠点があ
る。特に、これらはデータ通信を行うべき機器の数が比
較的少ない場合であっても必要不可欠であるので、この
種のシステムの普及を妨げる要因となっている。
<Problem to be solved by the invention> However, in the former case, a separate unit is required in addition to the cash register and terminal, so
On the other hand, in the case of the latter example, since the base unit having higher functionality than the slave unit is very expensive, there is a drawback that the cost required for the entire system becomes very high in either case. In particular, these are indispensable even when the number of devices with which data communication is to be performed is relatively small, and this is a factor that hinders the spread of this type of system.

本発明は上記事情に鑑みて創案されたものであり、その
目的とするところは、この種のシステムの全体に要する
コストを安くすることのできる通信制御方法を提供する
ことにある。
The present invention was devised in view of the above circumstances, and its purpose is to provide a communication control method that can reduce the overall cost of this type of system.

〈課題を解決するための手段〉 本発明にかかる通信制御方法は、通信線を介して互いに
接続されたn台の機器A + 、A 2  ・・Ax−
1、、Ax  ’ ・An  (n :自然数、1≦x
≦n)の中で機器Axが他の機器に向けてデータを伝送
する前に行なう回線確保に関する方法であって、回線の
使用、未使用を示す通信制御信号について、回線を使用
する場合に、実際に回線未使用状態から回線使用状態に
変化するまでに要する時間がaである一方、回線の使用
を解除した場合に、実際に回線使用状態から回線未使用
状態に変化するまでに要する時間がbであるという前提
の下で、まず、通信制御信号をモニタして、このモニタ
結果が回線の使用を示すならば、初期状態に戻す一方、
回線の未使用を示すならば、通信制御信号を回線未使用
状態から回線使用状態に変化させ、この状態を回線予約
期間Tx  (TX  TX−1> a十b)だけ維持
し、その後、通信制御信号を回線使用状態から回線未使
用状態に戻して、再び、通信制御信号をモニタし、この
モニタ結果が回線の使用を示すならば、初期状態に戻す
一方、回線の未使用を示すならば、通信制御信号を回線
未使用状態から回線使用状態に変化させ、回線を確保す
る。
<Means for Solving the Problems> A communication control method according to the present invention provides n devices A + , A 2 . . . Ax- connected to each other via a communication line.
1,,Ax'・An (n: natural number, 1≦x
≦n) is a method for securing a line before the device Ax transmits data to another device, in which a communication control signal indicating whether the line is used or not is used. The time it takes to actually change from the line not in use state to the line in use state is a, while the time required to actually change from the line use state to the line not in use state when the line is released from use is a. Under the premise that b, the communication control signal is first monitored, and if the monitoring result indicates that the line is in use, it is returned to the initial state, while
If it indicates that the line is not in use, change the communication control signal from the line not in use state to the line in use state, maintain this state for the line reservation period Tx (TX TX-1> a to b), and then change the communication control signal to the line in use state. The signal is returned from the line used state to the line unused state, and the communication control signal is monitored again. If the monitoring result indicates that the line is used, the initial state is restored, while if it indicates that the line is not used, The communication control signal is changed from the line unused state to the line used state to secure the line.

〈作用〉 機器A8についての回線予約期間TXをTXTX−、>
a+bの関係を満たすものに設定さえずれば、機器へ〇
、Ax、  ・・・Ax−、、Ax ・・・A2、A1
が同じタイミングでデータ通信を行うべく回線を確保し
ようとしても、回線の競合等の不都合は回避され、この
順番で次々とデータ通信が行われることになる。
<Operation> Set the line reservation period TX for device A8 to TXTX-,>
If you set the song to one that satisfies the relationship a+b, the device will receive 〇, Ax, ...Ax-,, Ax ...A2, A1
Even if two parties try to secure a line to perform data communication at the same timing, inconveniences such as line contention are avoided, and data communication is performed one after another in this order.

〈実施例〉 以下、本発明にかかる通信制御方法の一実施例を図面を
参照して説明する。第1図はシステムの全体を示すブロ
ック図、第2図は各機器に設けられた通信インターフェ
イスの回路図、第3図は通信制御ルーチンのフローチャ
ート、第4図は通信制御ルーチンの基本的な流れを説明
するための通信制御信号17丁の出力変化を示す図、第
5図及び第6図は回線予約期間TX等を定める関係式を
説明するためのa器A。%A11−1等についての通信
制御信号■Tlのタイごングチャートである。
<Embodiment> An embodiment of the communication control method according to the present invention will be described below with reference to the drawings. Figure 1 is a block diagram showing the entire system, Figure 2 is a circuit diagram of the communication interface provided in each device, Figure 3 is a flowchart of the communication control routine, and Figure 4 is the basic flow of the communication control routine. Figures 5 and 6 are diagrams showing changes in the output of 17 communication control signals for explaining the above, and Figures 5 and 6 are diagrams A for explaining the relational expressions that determine the line reservation period TX, etc. It is a timing chart of the communication control signal ■Tl for %A11-1 and the like.

まず、本発明にかかる通信制御方法が適用されているス
トアオートメーションのシステム全体について第1図を
参照して説明する。
First, the entire store automation system to which the communication control method according to the present invention is applied will be explained with reference to FIG.

図中ECR1・・・・ECRmはm台のレジスタである
一方、KPI・・・・KPmはm台のキッチンプリンタ
である。これらの機器は合計してn台あり、通信線Bに
より互いに接続されていて、この通信線Bを介してレジ
スタ同士、プリンタ同士又はレジスタープリンタ間のデ
ータ通信が行われるようになっている。データ通信はこ
こでは比較的長い通信距離に適したR S−485の規
格のものを採用している。
In the figure, ECR1...ECRm are m registers, while KPI...KPm are m kitchen printers. There are a total of n units of these devices, which are connected to each other by a communication line B, through which data communication is performed between registers, between printers, or between register printers. For data communication, the RS-485 standard, which is suitable for relatively long communication distances, is used here.

ECR1、KPIには第2図に示すような通信インター
フェイス回路が装備されており、他の機器についても全
く同しものが装備されている。図中に示されているデー
タ信号としてのTxD、RxD、通信制御信号としての
■下マ、τT下は、RSシリーズの通信規格に基づいて
夫々付された信号名である。
The ECR1 and KPI are equipped with a communication interface circuit as shown in FIG. 2, and the other devices are equipped with exactly the same circuit. The data signals TxD and RxD shown in the figure, and the communication control signals ``lower square'' and τT below are signal names given based on the communication standard of the RS series.

次に、各機器に装備されている通信制御プログラムにつ
いて第3図を参照して説明する。
Next, the communication control program installed in each device will be explained with reference to FIG.

但し、各機器における通信制御プログラムは機器ごとに
決定される定数データ等を除いて全く同様であるため、
合計n台ある機器の中で機器Ax(1≦x≦n、rz自
然数)について説明する。
However, since the communication control programs for each device are exactly the same except for constant data determined for each device,
Among the total n devices, device Ax (1≦x≦n, rz natural number) will be explained.

なお、通信制御信号■T下、てTlはL゛で回線使用状
態、H゛で回線未使用状態を夫々示すものどする。
It should be noted that under the communication control signal ①T, Tl is L to indicate the line is in use and H is to indicate the line is not in use.

機器Axに装備されたコンピュータが通信制御ルーチン
を処理する状態に至ると、まず、通信に必要な初期設定
を行い(Sl) 、その後、通信制御信号−Tlをモニ
タする(S2)。このモニタの結果、通信制御信号rτ
が回線使用中を示ずL゛であるときには初期設定の状態
に戻るが、回線未使用を示すH′であるときには、次の
タイマー処理(S3)に進め、期間Cが経過したタイく
ングで通信制御信号τ下Tを再びモニタする(S4)。
When the computer installed in the device Ax reaches a state where it processes the communication control routine, it first performs initial settings necessary for communication (Sl), and then monitors the communication control signal -Tl (S2). As a result of this monitoring, the communication control signal rτ
When the line is L, indicating that the line is not in use, it returns to the initial setting state, but when it is H', indicating that the line is not in use, the process proceeds to the next timer process (S3), and when the tying period C has elapsed, the process returns to the initial setting state. The communication control signal τ lower T is monitored again (S4).

このモニタの結果、通信制御信号τTSがL゛であると
きには初期設定の状態に戻るが、“H”であるときには
通信制御信号RTSを回線予約期間TXだけL′に保持
する(S5)。この回線予約期間T8が経過して通信制
御信号Tlτの保持を解除すると、通信制御信号T下を
再びモニタする(S6)。
As a result of this monitoring, when the communication control signal τTS is L, the initial setting is returned, but when it is H, the communication control signal RTS is held at L' for the line reservation period TX (S5). When this line reservation period T8 has elapsed and the holding of the communication control signal Tlτ is released, the bottom of the communication control signal T is again monitored (S6).

モニタの結果、通信制御信号rT下がL′であるときに
は初期設定の状態に戻る一方、■]“であるときには通
信制御信号RTSをL“に保持して、データ転送の準備
を行い(S7)、その後、データの転送を行う(S8)
。このデータの転送が終了すると、通信制御信号RTS
の保持を解除して、このルーチンを終了する。
As a result of monitoring, if the communication control signal rT is L', the initial setting is returned, while if it is ■], the communication control signal RTS is held at L and preparations are made for data transfer (S7). , then transfer the data (S8)
. When this data transfer is completed, the communication control signal RTS
The hold is released and this routine ends.

なお、本実施例においては、回線予約期間TXが比較的
長く、他の機器のウェイト時間が長くなることという事
態を避けるために又はハードウェアに負担をかけないた
めに、ステップ2.4にて通信制御信号CTSを2回モ
ニタするようにしているが、このような事態が生しない
場合にはモニタを一回とする形態を採っても構わない。
In addition, in this embodiment, the line reservation period TX is relatively long, and in order to avoid a situation where the wait time of other devices becomes long or to avoid putting a burden on the hardware, in step 2.4, Although the communication control signal CTS is monitored twice, if such a situation does not occur, the communication control signal CTS may be monitored only once.

第4図は上記した通信制御ルーチンが逐次処理される過
程で他の機器からの回線予約等がないと仮定したときの
通信制御信号π1]−の信号変化を示している。
FIG. 4 shows signal changes in the communication control signal π1]- when it is assumed that there is no line reservation from other equipment during the process in which the above-described communication control routine is sequentially processed.

以下、通信制御ルーチンの基本的な流れを通信制御信号
■Tlの信号変化を中心にして詳しく説明する。
The basic flow of the communication control routine will be explained in detail below, focusing on signal changes of the communication control signal -Tl.

まず、機器Axが他の機器に向けてデータを転送するに
あたり、他の機器が回線を使用していなか否かを調べる
ために、時間10で通信制御信号でTSをモニタする。
First, when the device Ax transfers data to another device, it monitors the TS with a communication control signal at time 10 in order to check whether the other device is using the line.

そして、期間C経過後した時間t1で、通信制御信号C
TSを再びモニタする。そして時間t1でのモニタの結
果、回線が開いていることを確認した上で、通信制御信
号π7冨をL゛に保持し時間t2にて回線を予約する。
Then, at time t1 after period C has elapsed, communication control signal C
Monitor TS again. After confirming that the line is open as a result of monitoring at time t1, the communication control signal π7 is held at L and the line is reserved at time t2.

時間t2にて回線が予約され、回線予約期間T8が経過
した時間t3になると、通信制御信号π7冨の゛L′保
持を解除し、時間t4で通信制御信号【Tlをモニタす
る。このモニタの結果、回線が開いているとなれば、通
信制御信号■下下を“L”に保持し時間t5にて回線を
確保する。
At time t2, the line is reserved, and at time t3, when the line reservation period T8 has elapsed, the communication control signal π7 is released from holding 'L', and at time t4, the communication control signal [Tl is monitored. As a result of this monitoring, if the line is open, the communication control signal (2) is held at "L" and the line is secured at time t5.

回線が確保された後は、回線にデータを転送する。そし
てデータの転送が終了した時間L6で通信制御信号RT
SのL“保持を解除すると、これで機器Axについての
通信制御ルーチンが終了する。
After the line is secured, data is transferred to the line. Then, at time L6 when the data transfer is completed, the communication control signal RT
When S is released from holding L, the communication control routine for device Ax ends.

次に、第4図中に示されている期間a、b、c、回線予
約期間TXについて説明する。
Next, the periods a, b, c and line reservation period TX shown in FIG. 4 will be explained.

期間Cは、時間10から時間L1までの時間間隔であっ
て、詳しいことは後述するが、期間b、a!こよって定
められる値を有する。
Period C is a time interval from time 10 to time L1, and the details will be described later, but periods b, a! It has a value determined accordingly.

期間すは、時間L1から時間t2までの時間間隔であっ
て、時間L1でのモニタ結果に応して通信制御信号RT
SをH゛からL゛に変化させ、この結果、通信制御信号
CTSが実際に信号変化するに要する時間である。
The period is a time interval from time L1 to time t2, and the communication control signal RT is transmitted according to the monitoring result at time L1.
This is the time required for the communication control signal CTS to actually change as a result of changing S from H to L.

回線予約期間TXは時間t2から時間t3までの時間間
隔であって、期間す、c、aとは異なり、回線が競合し
た場合の優先順位に基づいて、各機器ごとに定められる
定数である。この値を定める方法については後述する。
The line reservation period TX is a time interval from time t2 to time t3, and unlike the periods A, C, and A, it is a constant determined for each device based on the priority order in the case of line contention. A method for determining this value will be described later.

期間aは、時間t3から時間t4までの時間間隔であっ
て、時間t3で通信制御信号RTSの′L″保持を解除
し、通信制御信号CTSをモニタするまでの時間であり
、通信制御信号−TIが実際に信号変化するに必要な時
間を考慮した時間である。
Period a is a time interval from time t3 to time t4, and is the time from when the communication control signal RTS is released from being held at 'L' at time t3 to when the communication control signal CTS is monitored. This time takes into account the time required for TI to actually change the signal.

なお、説明の都合上、時間10から時間t2までの期間
を第1モニタ領域α8、時間t2から時間t3までの期
間を回線予約領域β8、時間t4から時間t5までの期
間を第2モニタ領域rx、時間t5から時間t6までの
期間をデータ通信領域εゆとする。
For convenience of explanation, the period from time 10 to time t2 is referred to as the first monitor area α8, the period from time t2 to time t3 is referred to as the line reservation area β8, and the period from time t4 to time t5 is referred to as the second monitor area rx. , the period from time t5 to time t6 is defined as a data communication area ε.

次に、機器Axについての回線予約期間TX等ノ値ヲ定
める方法について説明する。
Next, a method of determining values such as the line reservation period TX for the device Ax will be explained.

回線予約期間T8、期間Cについては次式を満足する値
のものを選定する。
For the line reservation period T8 and period C, values that satisfy the following equations are selected.

c>(a+b)       ・・・式■TX  Tx
−+ > (a+b)H・−式■T+>c      
   ・・・式■但し、TX−1は機器Ax−1lこつ
いての回線予約期間である。同様に、T1は機器Axに
ついての回線予約期間であるが、Tゎ>T、、>・・〉
T2〉TIの関係があるので(式■参照)、T、は回線
予約期間の最小値である。
c>(a+b)...Formula ■TX Tx
-+ >(a+b)H・-Formula■T+>c
...Formula ■However, TX-1 is the line reservation period for equipment Ax-1l. Similarly, T1 is the line reservation period for device Ax, but Tゎ>T, >...〉
Since there is a relationship T2>TI (see equation (2)), T is the minimum value of the line reservation period.

以下、回線予約期間Tx−1!JI間Cを定めるにあた
って、これらの式を満足するものを選定しなければなら
ない理由について説明する。
Below is the line reservation period Tx-1! In determining the JI interval C, the reason why it is necessary to select one that satisfies these formulas will be explained.

まず、第5図の上段、中段に示すように、機器Axの第
1モニタ期間αゎと機器A7−1の第2モニタ期間γ、
、−Iとの各始まりのタイミングが一致した場合につい
て考える。
First, as shown in the upper and middle rows of FIG. 5, the first monitoring period αゎ of the device Ax, the second monitoring period γ of the device A7-1,
, -I, the timing of each start coincides.

このとき式■の関係を満たしているならば、機器A0に
ついて時間taで通信制御信号CTSがモニタされると
きには、機器A 、、−、は既にデータ通信領域ε、−
8に進んでいるので、機器Ax、は時■1 間taで初期状態に戻って待ち行列に入ることになる。
At this time, if the relationship of equation (2) is satisfied, when the communication control signal CTS is monitored at time ta for device A0, device A, , -, has already reached the data communication area ε, -.
8, the device Ax returns to the initial state and enters the queue at time 1 ta.

だが、式■の関係を満たしておらず、機器Allについ
て時間tbで通信制御信号CTSがモニタされたとする
と、機器A。−0がデータ通信領域εn−+に進もうと
しているにもかかわらず、機器A□が回線予約領域β□
に入るという不都合が発生ずる。それ故、期間Cを定め
るにあたっては、式■を満足するような値を選定する必
要がある。
However, if the relationship in equation (2) is not satisfied and the communication control signal CTS is monitored at time tb for devices All, then device A. -0 is about to proceed to the data communication area εn-+, but the device A□ is trying to proceed to the line reserved area β□
This creates the inconvenience of entering the room. Therefore, in determining the period C, it is necessary to select a value that satisfies the formula (2).

また、第6図に示すように、機器A。についての第1モ
ニタ期間α7の終わりのタイミングと、II HA 、
、−1についての第1モニタ期間αn−1の2回目のモ
ニタのタイミングとが一致した場合について考える。
Also, as shown in FIG. 6, equipment A. The timing of the end of the first monitoring period α7 for II HA ,
, -1, the timing of the second monitoring of the first monitoring period αn-1 coincides with the timing of the second monitoring.

このときT−Tfi−+ > (a+b)(7)関係を
満たしているならば、機器A。の回線予約期間β7と機
器A7−1の回線予約期間βゎ−1とは一部一致すると
はいえ、機器Ax、−1について時間tcで通信制御信
号C丁マがモニタされるので、データ通信領域ε7−1
 に進むということはない。だが、TTl、−、> (
a+b)の関係を満たしていない2 ならば、機器Afi−,について時間tdで通信制御信
号CTSがモニタされる場合があり、機器A。
At this time, if the relationship T-Tfi-+ > (a+b) (7) is satisfied, it is device A. Although the line reservation period β7 of the device A7-1 and the line reservation period βゎ-1 of the device A7-1 partially match, the communication control signal C is monitored at time tc for the device Ax,-1, so the data communication Area ε7-1
There is no way to proceed to . However, TTL, −, > (
If the relationship a+b) is not satisfied, the communication control signal CTS may be monitored at time td for device Afi-, and device A.

のデータ通信領域εゎとA。−1のデータ通信領域εn
−1とが重なり合うという不都合が生じる。それ故、回
線予約期間TXを定めるにあたっては、式■を満足する
ような値を選定する必要がある。
Data communication area εゎ and A. −1 data communication area εn
-1 overlaps with each other. Therefore, when determining the line reservation period TX, it is necessary to select a value that satisfies the formula (2).

更に、第5図の下段、上段に示すように、機器Axにつ
いての第1モニタ期間α1の終わりのタイミングと、機
器Axlについての第1モニタ期間αゎの始まりのタイ
ミングとが一致した場合について考える。
Furthermore, as shown in the lower and upper rows of FIG. 5, consider the case where the timing of the end of the first monitoring period α1 for the device Ax and the timing of the start of the first monitoring period αゎ for the device Axl match. .

このとき式■の関係の満たしているならば、機器Ax、
については第1モニタ期間α7の2回目のモニタ時1.
には、機器A1については回線予約領域β1に入ってい
るので、機器Axlが回線予約領域β7に進むというこ
とはないが、式■の関係を満たしていないならば、機器
A7が回線予約領域β7を既に終了して第2モニタ領域
γ、に進む場合があるので、機器Axのデータ通信領域
εと機器Ax、の回線予約領域β1とが重なり合うとい
う不都合が生しる。それ故、回線予約期間TXを定める
にあたっては、式■の他に式■を満足するような値を選
定する必要がある。
At this time, if the relationship of formula ■ is satisfied, the device Ax,
Regarding 1. during the second monitoring of the first monitoring period α7.
Since device A1 is in line reservation area β1, device Axl does not proceed to line reservation area β7, but if the relationship in formula (■) is not satisfied, device A7 is in line reservation area β7. Since there is a case where the data communication area ε of the device Ax and the line reservation area β1 of the device Ax overlap, there is a problem that the data communication area ε of the device Ax and the line reservation area β1 of the device Ax overlap. Therefore, in determining the line reservation period TX, it is necessary to select a value that satisfies the equation (2) in addition to the equation (2).

従って、各機器Axにおける通信プログラムに式■■■
を満足する回線予約期間Tx−1期間Cの定数データを
夫々設定すると、各機器穴つについて如何なるタイ多ン
グで通信制御ルーチンが処理されようとも、回線の競合
等の不都合が生しることはない。特に、機器Aゎ、Ax
、−1・・・A2、Axが−斉に同じタイくングで通信
制御ルーチンが処理された場合には、この順番で次々と
データ通信が行われることになる。即ち、回線予約期間
TXの値の大きいものが優先となる。言い換えると、回
線予約期間TXにより優先順位を定めることができ、合
計n台ある機器Axの中でも重要性の高いデータを有す
るものについては、他に比べて一番大きな値の回線予約
期間T。を設定すると良い。
Therefore, in the communication program for each device Ax, the formula
By setting constant data for the line reservation period Tx-1 period C that satisfies the following, no matter how many times the communication control routine is processed for each device hole, inconveniences such as line contention will not occur. do not have. In particular, equipment Aゎ, Ax
, -1 . . . A2, Ax - If the communication control routine is processed at the same timing, data communication will be performed one after another in this order. That is, priority is given to the one with the larger value of the line reservation period TX. In other words, priorities can be determined based on the line reservation period TX, and among the n devices Ax in total, the one that has highly important data has the line reservation period T with the largest value compared to the others. It is good to set .

以上述べたように本発明にかかる通信制御方法を使用し
たストアオートメーションのシステムによる場合には、
通信線Bに特別なユニットを必要とせず、しかも各機器
の間で親機と子機との関係を作る必要がないので、シス
テム全体に要するコストが非常に安いという大きなメリ
ットがある。
As described above, in the case of a store automation system using the communication control method according to the present invention,
Since no special unit is required for the communication line B, and there is no need to create a relationship between the master unit and slave unit between each device, there is a great advantage that the cost required for the entire system is extremely low.

また、既存のキャッシュレジスフが数台ある場合に、各
機器について若干の設計変更を加えるのみで、相互にデ
ータ通信を行うこともでき、この種のデータ通信を推進
する上で非常に大きな意義がある。
In addition, if there are several existing cash registers, it is possible to communicate data with each other by making slight design changes to each device, which is of great significance in promoting this type of data communication. There is.

なお、本発明にかかる通信制御方法はストアオートメー
ションだけの適用に止まらないことは勿論のこと、通信
規格等についても限定されることはない。
Note that the communication control method according to the present invention is not limited to application only to store automation, and is not limited to communication standards.

〈発明の効果〉 以上、本発明にかかる通信制御方法による場合には、通
信線に特別なユニットを必要とせず、しかも各機器の間
で親機と子機との関係を作ることなく、回線の競合等の
不都合が生しないようになっているので、この種のシス
テムの全体に要するコストを安くすることができる。ま
た、数台ある5 既存の機器に若干の設計変更を加えるのみで、相互にデ
ータ通信を行うこともできるので、この種のデータ通信
を推進する上で非常に大きな意義がある。
<Effects of the Invention> As described above, in the case of the communication control method according to the present invention, the communication line does not require a special unit, and moreover, the line can be controlled without creating a relationship between the base unit and slave unit between each device Since inconveniences such as competition between the two systems do not occur, the overall cost of this type of system can be reduced. In addition, it is possible to perform mutual data communication with only a few existing devices by making slight design changes, which is of great significance in promoting this type of data communication.

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

第1図から第6図にかけては本発明にかかる通信制御方
法の一実施例を説明するための図であって、第1図はシ
ステムの全体を示すプロ・ンク図、第2図は各機器に設
けられた通信インターフェイスの回路図、第3図は通信
制御ルーチンのフローチャート、第4図は通信制御ルー
チンの基本的な流れを説明するための通信制御信号τT
Sの出力変化を示す図、第5図及び第6図は回線予約期
間TX等を定める関係式を説明するための機器穴〇、A
n−1等についての通信制御信号RT下のタイミングチ
ャートである。 B・・・通信線 TX ・・・回線予約期間
1 to 6 are diagrams for explaining an embodiment of the communication control method according to the present invention, in which FIG. 1 is a diagram showing the entire system, and FIG. 2 is a diagram showing each device. 3 is a flowchart of the communication control routine, and FIG. 4 is a communication control signal τT for explaining the basic flow of the communication control routine.
Figures 5 and 6, which show changes in the output of
It is a timing chart under the communication control signal RT regarding n-1 etc. B...Communication line TX...Line reservation period

Claims (1)

【特許請求の範囲】[Claims] (1)通信線を介して互いに接続されたn台の機器A_
1,A_2・・A_x_−_1、A_x・・A_n(n
:自然数、1≦x≦n)の中で機器A_xが他の機器に
向けてデータを伝送する前に行なう回線確保に関する通
信制御方法において、 回線の使用、未使用を示す通信制御信号について、回線
を使用する場合に、実際に回線未使用状態から回線使用
状態に変化するまでに要する時間がaである一方、回線
の使用を解除した場合に、実際に回線使用状態から回線
未使用状態に変化するまでに要する時間がbであるとい
う前提の下で、まず、通信制御信号をモニタして、この
モニタ結果が回線の使用を示すならば、初期状態に戻す
一方、回線の未使用を示すならば、通信制御信号を回線
未使用状態から回線使用状態に変化させ、この状態を回
線予約期間T_x(T_x−T_x_−_1>a+b)
だけ維持し、その後、通信制御信号を回線使用状態から
回線未使用状態に戻して、再び、通信制御信号をモニタ
し、このモニタ結果が回線の使用を示すならば、初期状
態に戻す一方、回線の未使用を示すならば、通信制御信
号を回線未使用状態から回線使用状態に変化させ、回線
を確保するようにしたことを特徴とする通信制御方法。
(1) n devices A_ connected to each other via communication lines
1, A_2...A_x_-_1, A_x...A_n(n
: natural number, 1≦x≦n), in a communication control method for securing a line before device A_x transmits data to another device, the communication control signal indicating whether the line is in use or not is When using the line, the time it takes to actually change from the line not in use state to the line in use state is a, and on the other hand, when the line is released from use, the line actually changes from the line in use state to the line not in use state. Under the premise that the time required to complete the line is b, first, the communication control signal is monitored, and if the monitoring result indicates that the line is in use, the initial state is restored, while if it indicates that the line is not in use, then the communication control signal is monitored. For example, change the communication control signal from the line unused state to the line used state, and change this state to the line reservation period T_x (T_x−T_x_−_1>a+b)
After that, the communication control signal is returned from the line in use state to the line unused state, and the communication control signal is monitored again. If the result of this monitoring indicates that the line is in use, the line is returned to the initial state, while the line is If the line is not in use, the communication control signal is changed from the line not in use state to the line in use state to secure the line.
JP7485690A 1990-03-22 1990-03-22 Communication control method Expired - Fee Related JPH06101736B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7485690A JPH06101736B2 (en) 1990-03-22 1990-03-22 Communication control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7485690A JPH06101736B2 (en) 1990-03-22 1990-03-22 Communication control method

Publications (2)

Publication Number Publication Date
JPH03273730A true JPH03273730A (en) 1991-12-04
JPH06101736B2 JPH06101736B2 (en) 1994-12-12

Family

ID=13559379

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7485690A Expired - Fee Related JPH06101736B2 (en) 1990-03-22 1990-03-22 Communication control method

Country Status (1)

Country Link
JP (1) JPH06101736B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07154400A (en) * 1992-12-14 1995-06-16 At & T Corp Digital communication system and data transmission method
JP2011071727A (en) * 2009-09-25 2011-04-07 Denso Corp Communication apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07154400A (en) * 1992-12-14 1995-06-16 At & T Corp Digital communication system and data transmission method
JP2011071727A (en) * 2009-09-25 2011-04-07 Denso Corp Communication apparatus

Also Published As

Publication number Publication date
JPH06101736B2 (en) 1994-12-12

Similar Documents

Publication Publication Date Title
EP0278264B1 (en) Data processing system with overlap bus cycle operations
CN103109478B (en) Apparatus and method for providing global time information in event-controlled bus communication
JPH02180450A (en) Communication device
JPH03273730A (en) Communication control method
JPS586177B2 (en) Interface circuit selection system
JPH04251367A (en) Bus controller
US9477624B2 (en) Controlling bus access in a real-time computer system
JPS5968069A (en) Access priority control system
CN216696640U (en) Gradient power amplifier and magnetic resonance imaging system
CN110178344A (en) Control device and communication device
JPH043239A (en) Bus controller
CN114167332A (en) Gradient power amplifier, control method thereof and magnetic resonance imaging system
JPH04156741A (en) Loop bus transmission mode
JPS61189044A (en) Polling transmission system
JPH0547012B2 (en)
JPS6273358A (en) Control method for microcomputer and its peripheral device
JP2912390B2 (en) IC card
JPH04216237A (en) Serial communication equipment
JPH03210647A (en) Bus control system
JPS6326758A (en) Packet communication equipment by dynamic polling
Seceleanu et al. Segment arbiter as action system
JPH04131957A (en) Data transfer system
JPH04163659A (en) Bus arbitration system
JPH0225963A (en) Inter-processor communication system
JPS6028344A (en) Packet-switching exchange

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20071212

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20081212

Year of fee payment: 14

LAPS Cancellation because of no payment of annual fees