JPH06314245A - Data communication system - Google Patents

Data communication system

Info

Publication number
JPH06314245A
JPH06314245A JP10221893A JP10221893A JPH06314245A JP H06314245 A JPH06314245 A JP H06314245A JP 10221893 A JP10221893 A JP 10221893A JP 10221893 A JP10221893 A JP 10221893A JP H06314245 A JPH06314245 A JP H06314245A
Authority
JP
Japan
Prior art keywords
data
time width
station
communication
data transfer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP10221893A
Other languages
Japanese (ja)
Inventor
Hiromasa Akita
弘昌 秋田
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.)
Toshiba Tec Corp
Original Assignee
Tokyo Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tokyo Electric Co Ltd filed Critical Tokyo Electric Co Ltd
Priority to JP10221893A priority Critical patent/JPH06314245A/en
Publication of JPH06314245A publication Critical patent/JPH06314245A/en
Pending legal-status Critical Current

Links

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Cash Registers Or Receiving Machines (AREA)
  • Computer And Data Communications (AREA)

Abstract

(57)【要約】 【目的】 POSシステムなどでバージョンアップなど
のために通信データのデータ転送速度が高速化されても
自動的に対応できるようにする。 【構成】 オフライン状態で一次局6の送信する同期デ
ータを二次局19が受信して、同期データの時間幅を検
知する時間幅計測手段25を設け、この時間幅計測手段
25が検知した時間幅に対応してデータ転送速度を可変
自在に設定すると共にオフライン状態をオンライン状態
に切替えるライン切替手段20を設けたデータ通信シス
テム2。
(57) [Summary] [Purpose] To enable automatic correspondence even if the data transfer speed of communication data is increased due to version upgrades in POS systems and the like. [Structure] The secondary station 19 receives the synchronization data transmitted from the primary station 6 in an off-line state, and is provided with a time width measuring means 25 for detecting the time width of the synchronization data, and the time detected by the time width measuring means 25. A data communication system 2 provided with a line switching means 20 for variably setting a data transfer rate according to a width and switching an offline state to an online state.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、一次局と二次局とを通
信回線で接続したデータ通信システムに関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data communication system in which a primary station and a secondary station are connected by a communication line.

【0002】[0002]

【従来の技術】現在、各所に店舗を展開して販売業務を
実行しているチェーン店などでは、POSシステムを利
用することで、各店舗の売上状況などを統括的に把握し
て販売戦略を総合的に立案するなどしている。
2. Description of the Related Art At present, chain stores, etc., which have stores in various locations and carry out sales operations, use a POS system to comprehensively grasp the sales situation of each store and implement sales strategies. We are planning comprehensively.

【0003】ここで、上述のようなPOSシステムは、
例えば、多数の二次局であるPOSターミナルと一個の
ストアコンピュータとを多数の店舗の各々に設置してL
AN(Local Area Network)等の通信回線で接続し、この
ような多数の店舗の各々に設置されたストアコンピュー
タを本部に設置したホストコンピュータにPSTN(Pub
lic Switched Telephone Network)に接続した構造など
となっている。
Here, the above-mentioned POS system is
For example, a large number of POS terminals, which are secondary stations, and a single store computer are installed in each of a large number of stores, and
Connected by a communication line such as AN (Local Area Network), a store computer installed in each of such a large number of stores is connected to a host computer installed in the headquarters at a PSTN (Pub).
lic Switched Telephone Network) is a structure that is connected to.

【0004】そして、このようなPOSシステムのPO
Sターミナルは、例えば、ストアコンピュータや他のP
OSターミナルなどから通信データを二進化データで受
信するようになっており、このようにして受信した通信
データを予め設定されたデータ転送速度で解析すること
で、データ通信を利用した各種作業を実行するようにな
っている。
The PO of such a POS system
The S terminal is, for example, a store computer or another P terminal.
Communication data is received as binary data from an OS terminal, etc., and various kinds of work using data communication are executed by analyzing the communication data thus received at a preset data transfer rate. It is supposed to do.

【0005】そこで、ここでは上述のような構造のPO
Sターミナルを二次局の一従来例として図5ないし図7
に基づいて以下に説明する。まず、この二次局であるP
OSターミナル1は、図5に例示するように、ここでは
データ通信システムであるPOSシステム2の一部とな
っている。そして、このPOSシステム2は、一つの本
部3に設置されたホストコンピュータ4と、多数の店舗
5の各々に設置された一次局であるストアコンピュータ
6とを通信回線であるPSTN7で接続し、さらに、前
記店舗5内で事務所(図示せず)に設置された前記スト
アコンピュータ6と、多数の売場(図示せず)の各々に
設置された二次局であるPOSターミナル1とをループ
型の通信回線であるLAN8で接続した構造などとなっ
ている。
Therefore, here, the PO having the above structure is used.
5 to 7 in which the S terminal is a conventional example of a secondary station.
It will be described below based on. First, P, which is this secondary station
The OS terminal 1 is a part of the POS system 2 which is a data communication system here, as illustrated in FIG. The POS system 2 connects a host computer 4 installed in one head office 3 and a store computer 6 which is a primary station installed in each of a number of stores 5 with a PSTN 7 which is a communication line. The store computer 6 installed in an office (not shown) in the store 5 and the POS terminal 1 which is a secondary station installed in each of a number of sales floors (not shown) are loop type. It has a structure in which it is connected by a LAN 8 which is a communication line.

【0006】そして、このPOSシステム2のPOSタ
ーミナル1は、図6に例示するように、前記LAN8の
極性が相違する入力端子9,10と出力端子11,12
とがデータ受信手段である電磁リレー13に接続されて
おり、この電磁リレー13にはレシーバ14とドライバ
15とを介してSCC(Serial Communication Controll
er)16が接続されている。そして、このSCC16に
は、送受信クロック17とCPU(図示せず)とが接続
されており、このCPUに接続されたリレーコントロー
ラ18が前記電磁リレー13に接続されている。
The POS terminal 1 of the POS system 2 has input terminals 9 and 10 and output terminals 11 and 12 having different polarities of the LAN 8 as illustrated in FIG.
Are connected to an electromagnetic relay 13 which is a data receiving means. The electromagnetic relay 13 is connected to an SCC (Serial Communication Controll) via a receiver 14 and a driver 15.
er) 16 is connected. A transmission / reception clock 17 and a CPU (not shown) are connected to the SCC 16, and a relay controller 18 connected to the CPU is connected to the electromagnetic relay 13.

【0007】そこで、このPOSターミナル1では、二
進化データからなる通信データを前記LAN8から電磁
リレー13を介してSCC16が受信するようになって
おり、このときSCC16は通信データを送受信クロッ
ク17が発生するデータ転送速度で受信するようにして
いる。なお、このPOSターミナル1では、前記CPU
が前記リレーコントローラ18で前記電磁リレー13の
スイッチング動作を制御することで、前記端子9〜12
が前記SCC16に接続されたオンライン状態と、前記
端子9〜12がスルーに直結されたオフライン状態と
が、切替自在に設定されるようになっている。
Therefore, in the POS terminal 1, the SCC 16 receives the communication data consisting of binary data from the LAN 8 through the electromagnetic relay 13, and at this time, the SCC 16 generates the transmission / reception clock 17 for the communication data. I am trying to receive at the data transfer rate. In this POS terminal 1, the CPU
Controls the switching operation of the electromagnetic relay 13 by the relay controller 18, so that the terminals 9 to 12 are
Is connected to the SCC 16, and an offline state in which the terminals 9 to 12 are directly connected to the through is set to be switchable.

【0008】従来、前記データ転送速度の設定には予め
ディップスイッチなどを用いてマニュアルでそのシステ
ムに適合した値に切替える必要があった。
Conventionally, it has been necessary to manually switch the data transfer rate to a value suitable for the system by using a dip switch or the like in advance.

【0009】[0009]

【発明が解決しようとする課題】上述したPOSターミ
ナル1では、外部のストアコンピュータ6や上位に位置
するPOSターミナル1から送信される二進化データを
予め設定されたデータ転送速度で受信することで、各種
のデータ通信を実行するようになっている。
In the POS terminal 1 described above, the binary data transmitted from the external store computer 6 or the POS terminal 1 located at a higher level is received at the preset data transfer rate, It is designed to perform various types of data communication.

【0010】ここで、上述のようなPOSシステム2で
は、例えば、ストアコンピュータ6のバージョンアップ
などのために通信データのデータ転送速度を高速化する
ことがある。そこで、このような場合には同一の店舗5
に設置した全てのPOSターミナル1のデータ転送速度
を設定し直す必要がある。これでは作業が煩雑で多大な
コストも要するので好ましくない。
Here, in the POS system 2 as described above, the data transfer speed of communication data may be increased, for example, to upgrade the version of the store computer 6. Therefore, in such a case, the same store 5
It is necessary to reset the data transfer rates of all the POS terminals 1 installed in. This is not preferable because the work is complicated and requires a large cost.

【0011】また、上述のようなPOSシステム2で
は、同一のデータ転送速度でストアコンピュータ6や多
数のPOSターミナル1などがデータ通信を実行してい
るので、このようなPOSシステム2に新たにPOSタ
ーミナル1を増設する場合には、そのデータ転送速度を
同期させる必要がある。しかし、これでは稼働している
POSシステム2のデータ転送速度を測定して増設する
POSターミナル1に設定するようなことを要するの
で、その作業が煩雑で同様に多大なコストを要するため
望ましくない。
Further, in the above-mentioned POS system 2, since the store computer 6 and a large number of POS terminals 1 and the like are performing data communication at the same data transfer rate, a new POS system is added to such a POS system 2. When adding the terminal 1, it is necessary to synchronize the data transfer rates. However, this requires measuring the data transfer speed of the operating POS system 2 and setting it in the POS terminal 1 to be added, which is not desirable because the work is complicated and the cost is also high.

【0012】[0012]

【課題を解決するための手段】スタート信号として二進
化0データと所定数連続した二進化1データとからなる
同期データを送信する同期データ送信手段を有する一次
局と二次局とを通信回線で接続したデータ通信システム
において、前記二次局はオフライン状態で前記同期デー
タを受信すると連続した二進化1データの時間幅を自局
の発振クロックに基づいて計測する時間幅計測手段と、
前記時間幅計測手段が計測した時間幅に対応してデータ
転送速度を設定すると共に自局をオフライン状態からオ
ンライン状態に切替えるライン切替手段とを有する。
[MEANS FOR SOLVING THE PROBLEMS] A primary station and a secondary station having a synchronous data transmitting means for transmitting synchronous data composed of binary-coded 0 data and a predetermined number of consecutive binary-coded 1 data as a start signal via a communication line. In the connected data communication system, when the secondary station receives the synchronization data in an offline state, a time width measuring means for measuring the time width of continuous binary 1 data based on the oscillation clock of the own station,
It has line switching means for setting the data transfer rate corresponding to the time width measured by the time width measuring means and switching the own station from the offline state to the online state.

【0013】[0013]

【作用】二次局の時間幅計測手段はオフライン状態で同
期データを受信すると連続した二進化1データの時間幅
を自局の発振クロックに基づいて計測し、この二次局の
ライン切替手段は時間幅計測手段が計測した時間幅に対
応してデータ転送速度を設定すると共に自局をオフライ
ン状態からオンライン状態に切替えることにより、例え
ば、データ通信システムのバージョンアップなどのため
に通信データのデータ転送速度が高速化されても、部品
の設定などを必要とすることなく自動的に対応すること
ができ、さらに、稼働中のデータ通信システムに新たに
二次局を付加するような場合でも、そのデータ転送速度
を予め測定して設定し直す必要がない。
When the time width measuring means of the secondary station receives the synchronous data in the off-line state, it measures the time width of continuous binary 1 data based on the oscillation clock of its own station, and the line switching means of this secondary station By setting the data transfer rate corresponding to the time width measured by the time width measuring means and switching the own station from the offline state to the online state, for example, data transfer of communication data for version upgrade of the data communication system, etc. Even if the speed is increased, it is possible to respond automatically without the need for setting parts, and even when a secondary station is newly added to the active data communication system, There is no need to measure and reset the data transfer rate in advance.

【0014】[0014]

【実施例】本発明の一実施例を図1ないし図4に基づい
て説明する。なお、ここで二次局の一実施例として例示
するPOSターミナル19に関しては、一従来例として
前述したPOSターミナル1やPOSシステム2等と同
一の部分は同一の名称と符号とを流用して詳細な説明は
省略する。まず、この二次局であるPOSターミナル1
は、やはりデータ通信システムであるPOSシステム2
の一部として一次局であるストアコンピュータ6や他の
POSターミナル19にループ型のLAN8で接続され
ている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described with reference to FIGS. As for the POS terminal 19 illustrated as an example of the secondary station, the same parts as those of the POS terminal 1 and the POS system 2 described above as a conventional example have the same names and reference numerals. Detailed description is omitted. First, this secondary station, POS Terminal 1
Is a POS system 2 which is also a data communication system
Is connected to the store computer 6 as a primary station and another POS terminal 19 by a loop type LAN 8.

【0015】そして、このPOSターミナル19は、図
1に例示するように、前記LAN8の端子9〜12が接
続された電磁リレー13及びレシーバ14とドライバ1
5とを介してSCC16に接続されており、このSCC
16にCPU(図示せず)とライン切替手段であるクロ
ックユニット20とが接続されている。ここで、このク
ロックユニット20では、予めデータ転送速度が固定的
に設定されたシステムクロック21の出力端子に分周器
22を接続し、この分周器22からSCC16に導通す
る四つの出力端子に設けたデータセレクタ23の制御端
子にバッファ回路24を接続した構造となっている。そ
して、このクロックユニット20のバッファ回路24の
入力端子には、レート検出回路25の出力端子が接続さ
れており、このレート検出回路25の二つの入力端子に
は、予め所定のデータ転送速度が固定的に設定された検
出用クロック26と、LAN8の一方の入力端子9とが
接続されている。
As shown in FIG. 1, the POS terminal 19 includes an electromagnetic relay 13 to which terminals 9 to 12 of the LAN 8 are connected, a receiver 14, and a driver 1.
5 is connected to the SCC 16 via
A CPU (not shown) and a clock unit 20 which is a line switching unit are connected to 16. Here, in the clock unit 20, the frequency divider 22 is connected to the output terminal of the system clock 21 in which the data transfer rate is fixedly set in advance, and the frequency divider 22 is connected to the four output terminals which are conducted to the SCC 16. The structure is such that the buffer circuit 24 is connected to the control terminal of the provided data selector 23. The output terminal of the rate detection circuit 25 is connected to the input terminal of the buffer circuit 24 of the clock unit 20, and a predetermined data transfer rate is fixed in advance to the two input terminals of the rate detection circuit 25. The detection clock 26, which is set to be specific, is connected to one input terminal 9 of the LAN 8.

【0016】より詳細には、このPOSターミナル19
のレート検出回路25では、図2に例示するように、検
出用クロック26と入力端子9とが接続された二つの入
力端子がアンドゲート27を介してカウンタ回路28に
接続されており、このカウンタ回路28の四つの出力端
子はアンドゲート29で合成してラッチ回路30を設け
た一つの出力端子と共にバッファ回路31に接続されて
いる。そして、このバッファ回路31の制御端子に出力
端子が接続されたアンドゲート32の一方の入力端子と
前記カウンタ回路28と前記ラッチ回路30とにはリセ
ット回路33が接続されており、このリセット回路33
にインバータ34を介して接続されたLAN8の一方の
入力端子9が、前記アンドゲート32の他方の入力端子
とバッファ回路35とに接続されている。
More specifically, this POS terminal 19
In the rate detection circuit 25 of FIG. 2, two input terminals to which the detection clock 26 and the input terminal 9 are connected are connected to a counter circuit 28 via an AND gate 27 as illustrated in FIG. The four output terminals of the circuit 28 are combined by the AND gate 29 and are connected to the buffer circuit 31 together with one output terminal provided with the latch circuit 30. A reset circuit 33 is connected to one input terminal of the AND gate 32 whose output terminal is connected to the control terminal of the buffer circuit 31, the counter circuit 28, and the latch circuit 30, and the reset circuit 33.
One input terminal 9 of the LAN 8 connected to the inverter circuit 34 is connected to the other input terminal of the AND gate 32 and the buffer circuit 35.

【0017】そこで、このPOSターミナル19では、
前記レート検出回路25のバッファ回路31の四つの出
力端子が前記クロックユニット20のバッファ回路24
の四つの入力端子にデータバスで接続されている。さら
に、このPOSターミナル19では、前記レート検出回
路25の前記バッファ回路35に接続された割込ポート
と、前記アンドゲート32の一方の入力端子に接続され
たレート検出ポートと、前記クロックユニット20のバ
ッファ回路24の制御端子に接続されたクロック切替ポ
ートとが、前記CPUの制御バスなどに接続されてい
る。
Therefore, in this POS terminal 19,
The four output terminals of the buffer circuit 31 of the rate detection circuit 25 are the buffer circuit 24 of the clock unit 20.
Are connected to the four input terminals by a data bus. Further, in the POS terminal 19, an interrupt port connected to the buffer circuit 35 of the rate detection circuit 25, a rate detection port connected to one input terminal of the AND gate 32, and the clock unit 20. The clock switching port connected to the control terminal of the buffer circuit 24 is connected to the control bus of the CPU.

【0018】なお、このPOSターミナル19では、二
進化データからなる通信データを前記LAN8から電磁
リレー13を介してSCC16が受信するようになって
おり、このときSCC16は通信データを前記クロック
ユニット20が発生するデータ転送速度で受信するよう
にしている。また、このPOSターミナル19では、前
記CPUが前記リレーコントローラ18で前記電磁リレ
ー13のスイッチング動作を制御することで、前記端子
9〜12が前記SCC16に接続されたオンライン状態
と、前記端子9〜12がスルーに直結されたオフライン
状態とが、切替自在に設定されるようになっている。
In the POS terminal 19, the SCC 16 receives communication data composed of binary data from the LAN 8 via the electromagnetic relay 13, and at this time, the SCC 16 receives the communication data by the clock unit 20. It receives at the data transfer rate that occurs. In the POS terminal 19, the CPU controls the switching operation of the electromagnetic relay 13 by the relay controller 18, so that the terminals 9 to 12 are connected to the SCC 16 in an online state and the terminals 9 to 12 are connected. Is set to be switchable between the offline state in which is directly connected to the through.

【0019】そして、このPOSシステム2のストアコ
ンピュータ6は、データ通信の開始時にスタート信号と
して二進化0データと所定数連続した二進化1データと
からなる同期データを送信する同期データ送信手段(図
示せず)をCPU(図示せず)等で有している。
Then, the store computer 6 of the POS system 2 transmits synchronous data composed of binary 0 data and a predetermined number of consecutive binary 1 data as a start signal at the start of data communication. (Not shown) is provided by a CPU (not shown) or the like.

【0020】さらに、このPOSシステム2のPOSタ
ーミナル19は、オフライン状態で同期データを受信す
ると連続した二進化1データの時間幅を自局の発振クロ
ックに基づいて計測する時間幅計測手段が、前記レート
検出回路25と前記CPUとで形成されており、このC
PU等の時間幅計測手段が計測した時間幅に対応してデ
ータ転送速度を設定すると共に自局をオフライン状態か
らオンライン状態に切替えるライン切替手段が、前記S
CC16や前記クロックユニット20や前記CPU等で
形成されている。
Further, in the POS terminal 19 of the POS system 2, when the synchronous data is received in the offline state, the time width measuring means for measuring the time width of continuous binary 1 data based on the oscillation clock of the own station is the above-mentioned. It is formed by the rate detection circuit 25 and the CPU.
The line switching means for setting the data transfer rate corresponding to the time width measured by the time width measuring means such as PU and switching the own station from the offline state to the online state is the S
It is formed of the CC 16, the clock unit 20, the CPU, and the like.

【0021】そして、このPOSターミナル19は、例
えば、起動直後の初期設定で受信した通信データの時間
幅をレート検出回路25が検知し、このレート検出回路
25が検知した時間幅に対応してクロックユニット20
がデータ転送速度を可変自在に設定するようになってい
る。このようにすることで、このPOSターミナル19
は、例えば、バージョンアップなどのためにストアコン
ピュータ6の通信データのデータ転送速度が高速化され
ても、ディップスイッチなどによってマニュアルで設定
することなく自動的に対応することができ、さらに、稼
働中のPOSシステム2に新たにPOSターミナル19
を増設するような場合でも、そのデータ転送速度を予め
測定して設定し直す必要がないので、その生産性の向上
に寄与することができる。
In the POS terminal 19, for example, the rate detection circuit 25 detects the time width of the communication data received by the initial setting immediately after the start-up, and the clock corresponding to the time width detected by the rate detection circuit 25. Unit 20
Is designed to variably set the data transfer rate. By doing this, this POS terminal 19
For example, even if the data transfer speed of the communication data of the store computer 6 is increased due to a version upgrade or the like, it can be automatically coped with without setting manually by a dip switch or the like. New POS terminal 19 in POS system 2
Even in the case of adding more, since it is not necessary to measure and reset the data transfer rate in advance, the productivity can be improved.

【0022】そこで、このようなPOSターミナル19
の処理動作を図3及び図4に基づいて以下に詳述する。
まず、このPOSターミナル19では、図4に例示する
ように、起動直後の初期設定ではCPUがリレーコント
ローラ18で電磁リレー13のスイッチング動作を制御
することで端子9〜12がスルーに直結されたオフライ
ン状態となっている。そこで、この状態でPOSターミ
ナル19がLAN8の一方の入力端子9から受信する通
信データが“H”となると、レート検出回路25では通
信データが“H”となっている最中の検出用クロック2
6のクロックパルスの個数をカウンタ回路28がカウン
トする。そこで、このような状態でLAN8の入力端子
9から受信する通信データが“L”となると、カウンタ
回路28に保持されたカウントデータをCPUが読出す
ことになる。
Therefore, such a POS terminal 19
The processing operation will be described in detail below with reference to FIGS. 3 and 4.
First, in the POS terminal 19, as shown in FIG. 4, the CPU controls the switching operation of the electromagnetic relay 13 by the relay controller 18 in the initial setting immediately after the start-up, so that the terminals 9 to 12 are directly connected to the offline. It is in a state. Therefore, in this state, when the communication data received from the one input terminal 9 of the LAN 8 by the POS terminal 19 becomes "H", the rate detection circuit 25 detects the clock 2 while the communication data is "H".
The counter circuit 28 counts the number of 6 clock pulses. Therefore, when the communication data received from the input terminal 9 of the LAN 8 becomes "L" in such a state, the CPU reads the count data held in the counter circuit 28.

【0023】この時、検出用クロック26のクロックパ
ルスのデータ転送速度は、図3に例示するように、通信
データのデータ転送速度を判定できる数分の一に予め設
定されているので、カウンタ回路28に保持されるカウ
ントデータは(a)に示す場合は“4パルス”となる。
なお、ここではカウンタ回路28に保持されるカウント
データが(b)に示す場合のように“16パルス”など
の基準値を超過すると、これはオーバーフローと判定し
てラッチ回路30が保持するようになっている。
At this time, the data transfer rate of the clock pulse of the detection clock 26 is preset to a fraction of the data transfer rate of the communication data as shown in FIG. The count data held in 28 is "4 pulses" in the case shown in (a).
Here, if the count data held in the counter circuit 28 exceeds a reference value such as "16 pulses" as in the case shown in (b), it is determined that this is an overflow and the latch circuit 30 holds it. Has become.

【0024】そして、上述のような状態でバッファ回路
35に対して予め設定された検出時間だけ入力できるC
PUのiNT割込みにより、CPUはアンドゲート32
に接続されたレート検出ポートをアクティブとしてカウ
ントデータのサンプリングを実行し、このサンプリング
の完了後にカウンタ回路28とラッチ回路30とをリセ
ット回路33でリセットしてパルス数がオーバーフロー
又はアンダーフローである場合は通信データが“H”と
なることに待機する。
In the above-mentioned state, C can be input to the buffer circuit 35 for a preset detection time.
Due to the iNT interrupt of the PU, the CPU causes the AND gate 32
When the rate detection port connected to is activated, sampling of the count data is performed, and after the sampling is completed, the counter circuit 28 and the latch circuit 30 are reset by the reset circuit 33, and when the pulse number overflows or underflows, It waits until the communication data becomes "H".

【0025】そして、上述のようにして時間幅を判定し
たCPUは、判定した時間幅に対応してデータ転送速度
を決定し、このデータ転送速度を実現するようにクロッ
クユニット20のデータセレクタ23をバッファ回路2
4で制御する。このデータセレクタ23はシステムクロ
ック21のクロックパルスを分周器22で四段階に分周
したクロックパルスの一つをSCC16に選択的に伝送
する。このようにすることで、このPOSターミナル1
9では、そのSCC16のデータ転送速度が通信データ
のデータ転送速度に自動的に同期することになるので、
これを上述のように初期設定として完了したPOSター
ミナル19は、CPUがリレーコントローラ18で電磁
リレー13のスイッチング動作を制御することで端子9
〜12をSCC16に接続したオンライン状態として各
種のデータ通信を開始することになる。
Then, the CPU, which has determined the time width as described above, determines the data transfer rate corresponding to the determined time width, and sets the data selector 23 of the clock unit 20 to realize this data transfer rate. Buffer circuit 2
Control with 4. The data selector 23 selectively transmits one of the clock pulses obtained by dividing the clock pulse of the system clock 21 by the frequency divider 22 in four stages to the SCC 16. By doing this, this POS terminal 1
In 9, the data transfer rate of the SCC 16 is automatically synchronized with the data transfer rate of communication data.
The POS terminal 19 which has been completed as the initial setting as described above has the terminal 9 when the CPU controls the switching operation of the electromagnetic relay 13 by the relay controller 18.
Various data communications will be started by setting the above-mentioned elements 12 to 12 connected to the SCC 16 in an online state.

【0026】[0026]

【発明の効果】本発明は上述のように、スタート信号と
して二進化0データと所定数連続した二進化1データと
からなる同期データを送信する同期データ送信手段を有
する一次局と二次局とを通信回線で接続したデータ通信
システムにおいて、前記二次局はオフライン状態で前記
同期データを受信すると連続した二進化1データの時間
幅を自局の発振クロックに基づいて計測する時間幅計測
手段と、前記時間幅計測手段が計測した時間幅に対応し
てデータ転送速度を設定すると共に自局をオフライン状
態からオンライン状態に切替えるライン切替手段とを有
することにより、例えば、データ通信システムのバージ
ョンアップなどのためにデータ転送速度が高速化されて
も、部品の設定などを必要とすることなく自動的に対応
することができ、さらに、稼働中のデータ通信システム
に新たに二次局を増設するような場合でも、そのデータ
転送速度を予め測定して設定する必要がないので、省力
化と省コスト化に寄与することができる等の効果を有す
るものである。
As described above, according to the present invention, a primary station and a secondary station having synchronous data transmitting means for transmitting synchronous data composed of binary 0 data and a predetermined number of continuous binary 1 data as a start signal are provided. In a data communication system in which the secondary station is connected by a communication line, when the secondary station receives the synchronization data in an offline state, a time width measuring means for measuring the time width of continuous binary 1 data based on the oscillation clock of the own station. By having a line switching means for setting the data transfer rate corresponding to the time width measured by the time width measuring means and switching the own station from the offline state to the online state, for example, the version upgrade of the data communication system, etc. Therefore, even if the data transfer speed is increased, it is possible to automatically respond without the need for setting parts, In addition, even when a new secondary station is added to an operating data communication system, it is not necessary to measure and set the data transfer rate in advance, which can contribute to labor saving and cost saving. It has the effect of being able to do so.

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

【図1】本発明の二次局の一実施例であるPOSターミ
ナルの要部を例示する回路図である。
FIG. 1 is a circuit diagram illustrating a main part of a POS terminal which is an embodiment of a secondary station of the present invention.

【図2】時間幅計測手段であるレート検出回路の内部構
造を例示する回路図である。
FIG. 2 is a circuit diagram illustrating an internal structure of a rate detection circuit which is a time width measuring means.

【図3】通信データと検出クロックとの波形を例示する
タイムチャートである。
FIG. 3 is a time chart exemplifying waveforms of communication data and a detection clock.

【図4】データ転送速度を設定する処理動作を例示する
フローチャートである。
FIG. 4 is a flowchart illustrating a processing operation for setting a data transfer rate.

【図5】二次局の一従来例であるPOSターミナルを一
部とするPOSシステムの全体構造を例示する模式図で
ある。
FIG. 5 is a schematic diagram illustrating the overall structure of a POS system including a POS terminal, which is a conventional example of a secondary station.

【図6】POSターミナルの要部を例示する回路図であ
る。
FIG. 6 is a circuit diagram illustrating a main part of a POS terminal.

【図7】通信データの波形を測定するタイムチャートで
ある。
FIG. 7 is a time chart for measuring a waveform of communication data.

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

1 二次局 2 データ通信システム 6 一次局 8 通信回線 20 ライン切替手段 25 時間幅計測手段 1 Secondary station 2 Data communication system 6 Primary station 8 Communication line 20 Line switching means 25 Time width measuring means

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 スタート信号として二進化0データと所
定数連続した二進化1データとからなる同期データを送
信する同期データ送信手段を有する一次局と二次局とを
通信回線で接続したデータ通信システムにおいて、前記
二次局はオフライン状態で前記同期データを受信すると
連続した二進化1データの時間幅を自局の発振クロック
に基づいて計測する時間幅計測手段と、前記時間幅計測
手段が計測した時間幅に対応してデータ転送速度を設定
すると共に自局をオフライン状態からオンライン状態に
切替えるライン切替手段とを有することを特徴とするデ
ータ通信システム。
1. Data communication in which a primary station and a secondary station are connected by a communication line and which has a synchronous data transmitting means for transmitting synchronous data consisting of binary 0 data and a predetermined number of consecutive binary 1 data as a start signal. In the system, when the secondary station receives the synchronous data in an offline state, the time width measuring means for measuring the time width of continuous binary 1 data based on the oscillation clock of the own station, and the time width measuring means measure the time width. A data communication system comprising: a line switching means for setting a data transfer rate corresponding to the time width and switching the own station from an offline state to an online state.
JP10221893A 1993-04-28 1993-04-28 Data communication system Pending JPH06314245A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10221893A JPH06314245A (en) 1993-04-28 1993-04-28 Data communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10221893A JPH06314245A (en) 1993-04-28 1993-04-28 Data communication system

Publications (1)

Publication Number Publication Date
JPH06314245A true JPH06314245A (en) 1994-11-08

Family

ID=14321532

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10221893A Pending JPH06314245A (en) 1993-04-28 1993-04-28 Data communication system

Country Status (1)

Country Link
JP (1) JPH06314245A (en)

Similar Documents

Publication Publication Date Title
JP2019134419A (en) Uart communication-speed automatic-switching method
JPH06314245A (en) Data communication system
JP2601962B2 (en) Bus contention control device
JP3085448B2 (en) Communications system
JP2798329B2 (en) Data communication method
JP2767990B2 (en) Microprocessor control method
EP0216379B1 (en) Communication method and equipment therefor
JPS62171349A (en) Communication control equipment
JPS59161956A (en) Transmission controller
JP2709720B2 (en) Line connection method between the numerical controller and its peripheral devices
JPH012441A (en) Communication control device
JPH0630506B2 (en) Serial communication device
JP3516152B2 (en) Synchronization establishing device
JP2752456B2 (en) Channel device
JP2941266B1 (en) Encoder data output method for bus communication type encoder device
JPH02131652A (en) Communication control equipment
JPH0380728A (en) Frame synchronization transmission timing system
JPH02217039A (en) Poling/selecting control procedure system
JPS60180244A (en) Cyclic data transmission system
JPH08111687A (en) Communications system
JPS61127248A (en) Network system equipped with communication circuit disconnecting location detect function
JPH0237857A (en) Communication channel connection system
JPS5851646A (en) Digital data transmission system
JPH07152682A (en) SCSI bus relay device
JPS6276835A (en) Transmission control method