JPS5949044A - Data communication method - Google Patents
Data communication methodInfo
- Publication number
- JPS5949044A JPS5949044A JP57158084A JP15808482A JPS5949044A JP S5949044 A JPS5949044 A JP S5949044A JP 57158084 A JP57158084 A JP 57158084A JP 15808482 A JP15808482 A JP 15808482A JP S5949044 A JPS5949044 A JP S5949044A
- Authority
- JP
- Japan
- Prior art keywords
- data
- signal
- sending
- output
- focus
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4204—Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus
- G06F13/4221—Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being an input/output bus, e.g. ISA bus, EISA bus, PCI bus, SCSI bus
- G06F13/423—Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being an input/output bus, e.g. ISA bus, EISA bus, PCI bus, SCSI bus with synchronous protocol
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
- Communication Control (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
求1J号に応じて、自動販売様の販欠データ等のデータ
ン送出するデータ交信方法に関し、特に、データ交信に
要する信号線の本数ケ削減してデータ交信の4ri相性
、耐ノイズ性等の向上ケ図ったものである。DETAILED DESCRIPTION OF THE INVENTION In accordance with Request No. 1J, it relates to a data communication method for transmitting data such as out-of-stock data of vending machines, and in particular reduces the number of signal lines required for data communication to achieve 4RI compatibility of data communication. This is intended to improve noise resistance, etc.
各所に分散配置した自動販売機等の機器から販売データ
等のデータyt ′Plr 尾のフォーマントにより収
集するデータ収集器は,携帯に適するように小型軽量と
する他、振動に耐え、屋外使用時の.耐雨水性もη11
える等の惜造上の性能のみならず、主機能であるデータ
収集に門己,つぎの各種のtl:□能が要求される。The data collector, which collects data such as sales data from devices such as vending machines distributed in various locations, is made small and lightweight to be portable, and is resistant to vibration and can be used outdoors. of. Rainwater resistance is also η11
In addition to basic performance such as data collection, which is the main function, the following various tl:□ abilities are required.
(1)データヶ誤りなく収集し、正確に保持して集計セ
ンタに出力する。(1) Collect data without errors, maintain it accurately, and output it to the aggregation center.
(2)収集データを一週間乃至一ケ月程度長期間正確に
保持する〇
(3)内蔵電池の交換回数乞、例えば年一回等極力少な
くする。(2) Accurately retain the collected data for a long period of time, from one week to one month. (3) Reduce the number of times the built-in battery is replaced, for example, once a year.
(4) データ収集の所要時間ン極力短縮して高速デ
ータ交イdン行う。(4) Shorten the time required for data collection as much as possible and perform high-speed data exchange.
(5) データ収集処理の操作音極力簡単化する。(5) Simplify the operation sounds for data collection processing as much as possible.
(6)正常動作の′mmケン容易する。(6) Easily check normal operation.
(7) サービスマンのlHの収集量7【どDf要量
のデータン収集,記憶し得る。(7) Amount of data collected by service personnel 7 [Df] Required amount of data can be collected and stored.
(8) 販売データにデータ収集時における自動販売
機の状態ン示すデータを追加する等、収集データの追加
、M4詔、修正等の斐史処理ン行い得る。(8) It is possible to perform history processing such as addition of collected data, M4 edict, correction, etc., such as adding data indicating the state of the vending machine at the time of data collection to the sales data.
かかる性能ケ要求されるデータ収象器としては従来、カ
セフトテープを用いた磁気記録装W、等が用いられでい
るが、従来のこの種データ収集装置にはつぎのような欠
点かあった。A magnetic recording device W using a cassette tape has conventionally been used as a data acquisition device requiring such performance, but this type of conventional data acquisition device has the following drawbacks.
(1) 例えばテープ196勤装置等ン要して、重く
、大型となり、 :lji!帯に適し1工い。(1) For example, a 196-hour tape machine is required, making it heavy and large. One piece suitable for obi.
(2) テープ駆!iij電力等を要し、内蔵電池の
容h【重51の増大、屯圧低下ケ来た1−0
(5) フィルムベースの磁気テープの伸び、切断な
ど、データR+2 f:Q媒体の長期使用による障害あ
るいはドロフプアウトの増大、アクセス時間の増大など
の性能低下7来たす。(2) Tape drive! (5) Stretching, cutting, etc. of film-based magnetic tape, data R + 2 f: Long-term use of Q media This results in performance degradation such as increased failure or drop-out, and increased access time.
(4) カセフトから露出した磁気テープの増税によ
る汚損など、による収集データの信頼性の低下を来た丁
。(4) The reliability of the collected data has decreased due to the damage caused by the tax increase on the magnetic tape exposed from the case.
(5)磁気テープに対する磁気ヘッドの保守など記録手
段の定期的保守を要する。(5) Periodic maintenance of recording means, such as maintenance of magnetic heads for magnetic tapes, is required.
(6) カセントテーブの新品交換、モータ、電池等
の交換なと、記1.d装置の点検保守ン比咬的短周期に
て行う必要がある。(6) Replace the cartridge with a new one, replace the motor, battery, etc. as described in 1. Inspection and maintenance of equipment must be carried out at relatively short intervals.
(7) 記憶装置の重賞、形状等に起因する落下、捩
1ijJ等の析獣により障害か発生し易く、テーブル行
むら、磁気ヘッドの位n′cずれ等にょ唇収集データの
信頼性の低下ケ来たす。(7) The storage device is prone to failures due to falling or twisting due to its shape, etc., and the reliability of collected data may be affected by uneven table rows, misalignment of the magnetic head, etc. It will cause a decline.
上述のように、安価であって簡易に使用し得る磁気テー
プ方式等による従来のデータ収集器の運、 用には、
信相性の維持にかなりの努〃欠郷するという欠点があっ
た。As mentioned above, the operation and use of conventional data collectors using magnetic tape, etc., which are inexpensive and easy to use, are as follows.
The drawback was that it took a lot of effort to maintain credibility.
一方、販売データ等の所要データ娶データ収集、 器
に供給して、その機Y1ヒン果さ一壮る自動販売機等の
データ出カ装悄、にも、その方式毎にっぎのようTt
nγ決1−ヘぎb1々の間践乞がかえている。On the other hand, when collecting necessary data such as sales data, supplying it to the device, and outputting data from vending machines, etc., the machine is used for data output, each method is different.
Between nγ determination 1 and hegi b 1, the practices have changed.
(1) データ収集出力機能を有テろアダブタン外付
した方式
各種の自動販売機に接続して出方データの構成や形式ン
統一し得る利点はあるがデータ収集出力451能の重相
があり、取付TV用等により高価イhとなる。(1) A method in which the data collection and output function is externally attached with a digital adapter. Although it has the advantage of being able to connect to various vending machines and unify the configuration and format of the output data, it has the disadvantage of having 451 functions of data collection and output. , it is expensive because it is used for mounting TVs, etc.
(2)装置I′11.内の制償11器にデータtZlえ
て出力する方式
構成が簡単になり安価となるか、制御器内の記1意容量
が限られ、データ出力の複雑な制制を行いイ!1ず、出
力データ形式、描成ン統一し難い。(2) Apparatus I'11. Either the configuration of the system in which the data tZl is sent to 11 controllers and outputted is simple and inexpensive, or the memory capacity in the controller is limited, and the data output is complicatedly restricted. First, it is difficult to standardize the output data format and rendering.
(5) 上述の中間的方式 両者の長所と同時に短所ヶもλにね備女−でいる。(5) The above-mentioned intermediate method Both have their strengths and weaknesses at the same time.
f′なわち、データ出力装随については、データ形式の
統一、データ交信方法の統一、データ収集器との接続線
の削減が要求され、データ収集システムとしては、収集
データの信傾1土の同上、データ収集の高速度化、小型
軽量化、収集データの大量蓄積低価格が要求されている
。In other words, regarding data output equipment, it is required to unify the data format, unify the data communication method, and reduce the number of connection lines with the data collector. Same as above, there is a demand for faster data collection, smaller size and lighter weight, and storage of large amounts of collected data at lower cost.
上述した賭梱の問題の解決に当っては、データ蓄積には
牛導体メモリケ使用し、データ交信にはインテリジェン
トケ有する装置1t−Y用い、データ出力装置自体にデ
ータケ蓄積しておくのが望ましい。In order to solve the above-mentioned problems, it is desirable to use a conductor memory for data storage, use a device 1t-Y with an intelligent memory for data communication, and store the data in the data output device itself.
ま1こ、冒頭に述べた種類のデータ交信方法の開発に当
っては、つぎのよ5な問題がある。However, there are the following five problems in developing the type of data communication method mentioned at the beginning.
(1) 自動i1f<売イ茂等のデータ出方装(ロ)
は、その制御g+内のメモリ茶飯がその装置自体の制御
に専ら用いられているので、データ収集のために使用し
得るメモリ容量の余裕が少ない。したがって、データ収
集のためのデータ交信方法としては、データ出ヵ装飢の
メモリ容Htヲあ丈り必要としな(・方法ン検Mイする
必要がある。(1) How to output data such as automatic i1f
Since most of the memory in the control g+ is used exclusively for controlling the device itself, there is little memory capacity that can be used for data collection. Therefore, as a data communication method for data collection, it is necessary to check the memory capacity of data output.
(2) 自動販児機ケ例とするデータ出カ装栖:は、
l幾1’+’liによって出力データの形式が異なり、
その統一は144 Mlaである。したかって、データ
収集のためのデータ交信方法としては、データ出力装置
がらり出刃データのフォーマントの相違に共通に対処し
得るものとする必要がある。(2) Data output device for vending machine example:
The format of the output data differs depending on l1'+'li,
Its unity is 144 Mla. Therefore, as a data communication method for data collection, it is necessary that the data output devices can commonly handle differences in the formants of the blade data.
(6) 自!l1Il販り゛υ機ン例と1−るデータ
出カ装f吐における■;1[ぜf’ll器の人出カ端子
は、その装置自体のfli制御に多く専用されており、
データ収集に割当て得る入出力端子数は限られている。(6) Self! Example of a machine and a data output device; 1 [The power output terminal of a machine is often dedicated to the control of the device itself;
The number of input/output terminals that can be allocated to data collection is limited.
したがって、データ収集のためのデータ交信方法としで
は、データ交信のための信号線の必要本数ンできるだけ
削減し得るものとする必要がある。Therefore, the data communication method for data collection needs to be able to reduce the number of signal lines required for data communication as much as possible.
しかして、従来、データ収集のために使用していたデー
タ交情方法にはつぎのような間hVAがあった。すなわ
ち、Nil述したように、データ収集器とデータ出力装
置との間の接続信号線は極力その本数を削減すべきこと
、データ交信は極力短時間とすべきことがこの種データ
交信の必要条件であり、かかる条件kmたすデータ交信
方法として、従来調歩同期方式のデータ交信方法が知ら
れているが、かかる従来方法には、つぎのように、交信
データの構成に間居があった。こり調歩同期方式のデー
タ交信においては、l対の信号線により、所定ピント数
のデータ信号を構成していた。例えば・lデータサイク
ルンtピントのデータの、前にlスタートピントχ配し
、後に2バリテイテエンクピントおよびlストン1ビン
トケ配して%12ピント構成とし、低論理レベルのスタ
ートピントから72ピント目の高論理レベルストンブピ
ントを検知してlデークサイクルを児了する。しかして
、データピントのピント数が不足であれば、区切りコー
ドや終了コードを必要とし、そのコードとデータピント
との区別が困難となるので、データピントケ、弘ピント
の一進=!−ドで表わしてtピント構成にし、コf6と
おりのデータケ指足するようにしであるが、実際の交信
データとしては16とおりのみケ用(・、残余の2り0
とおりは他の制御コードに利用するので、ピント利用効
率が著しく低下1−るという問題かあった。さらに、調
歩同期方式のデータ交信にCま、出力データ馨りピント
毎にコード化するだめのプログラムが複雑となり、その
ために使用信号1w数が増大し、制御i++コードの組
込みによりプログラムがざらに複雑化するという問題が
あった。なお、データの並列出力は、制御プログラムが
f’Jif単となり、短時間処理が容易とはなるが、使
用化+i 1hljl数したかって入出力ボート数が増
大1−るので、価格、信頼性の面にて直列出力より劣る
ことになる。Therefore, the data exchange method conventionally used for data collection includes the following hVA. In other words, as mentioned above, the necessary conditions for this type of data communication are that the number of connection signal lines between the data collector and the data output device should be reduced as much as possible, and that the data communication should be as short as possible. As a data communication method that satisfies this condition km, a conventional start-stop synchronization data communication method is known, but such a conventional method has the following drawbacks in the structure of communication data. In data communication using the start-stop synchronization method, a data signal of a predetermined number of focuses is constructed using l pairs of signal lines. For example, for the data of 1 data cycle and t focus, 1 start focus χ is placed before it, 2 variations are placed after 1 bit, and 1 stone is placed after 1 to create a %12 focus configuration, and 72 pins are obtained from the low logic level start focus. A high logic level strike of the eye is detected and the l-dake cycle is terminated. However, if the number of points in the data pinto is insufficient, a delimiter code and an end code are required, and it becomes difficult to distinguish between the code and the data pinto. - It is expressed as a t focus configuration, and f6 types of data are added, but in actual communication data, only 16 types are used (・, the remaining 2 and 0).
Since the focus area is used for other control codes, there is a problem in that the focusing efficiency is significantly reduced. Furthermore, the program required to code each output data focus for start-stop synchronization data communication becomes complicated, which increases the number of signals used per watt, and the program becomes more complicated due to the incorporation of control i++ code. There was a problem of becoming Note that for parallel data output, the control program becomes only f'Jif, which facilitates short-time processing, but the number of input/output ports increases due to the number of usable units, which reduces cost and reliability. In terms of output, it is inferior to serial output.
一方biデータサイクルにて伝送するデータケrピント
に画一化1−るに115う上述の問題を避けて、任意長
のデータケ伝送し得るように1−る場会に、各データサ
イクルの区切り乞示すデータ終了コード7旬加1−る必
要があるか、データコードに制約を与えるのでコード化
は内錐であり、fた、データ送出要求クロンクに対して
無応答とすることによりデータ終了ケ知らせることも考
えられるが、データ送出要求クロックン一時停止しなけ
れば次のデータサイクルを4’+ IjiJ L得1”
、また、低論理レベルが連続したデータコードと誤、1
.dされるという問題があった。On the other hand, in order to avoid the above-mentioned problem of standardization of the data transmitted in the bi data cycle, and to be able to transmit data of arbitrary length, it is necessary to separate each data cycle. It is necessary to indicate the data end code 7, or because it imposes constraints on the data code, the encoding is internal, and the end of data is notified by not responding to the data sending request clock. However, if the data sending request clock is not temporarily stopped, the next data cycle will be 4' +
, Also, the data code with consecutive low logic levels and the error, 1
.. There was a problem of being d.
また、データ伝送用イバ号線とGま別個の信号線により
、データ終rコード等の制fiiil 4g +をン伝
送することも労えられ、信号線は増加1−るが制御プロ
グラムは簡単になる。しかしながら、信号線の増〃口に
伴い接触1dね注が低下し、コストアンプにつながり、
耐ノイズ性も劣化し、生地化の妨げになるなどの聞届が
あっに0
さらに、データ送出要求クロンクに対する応答データの
最終ピントのパルス幅ケ異ならせることによりデータ終
了χ告げることも考えられるが、データ出力装置にパル
ス幅制御回路ンーメし、またデータ収集器にパルス幅判
別回路ケ設ける必りがあり、交信時間の増大ン招き易い
という問題があった。In addition, by using separate signal lines for data transmission and G, it is easier to transmit control signals such as data end r codes, and although the number of signal lines increases, the control program becomes simpler. . However, as the number of signal lines increases, the contact 1d Note decreases, leading to cost increase.
Noise resistance may also deteriorate and there may be problems such as interfering with fabrication.Furthermore, it may be possible to signal the end of data by changing the pulse width of the final focus of the response data to the data transmission request clock. However, since it is necessary to provide a pulse width control circuit in the data output device and a pulse width discrimination circuit in the data collector, there is a problem that communication time tends to be increased.
本発明の目的は”、上述した従来の1ig槙の問題χ悉
く排除し、少ない本数の信号線ン介し、簡単なプログラ
ムにより制御して、短時間に、小型軽承のデータ収集8
Jとデータ出力装置との間にて、データ交信ケ行い得る
ようにしたデータ交信方法ン提供1−るごとにある。The purpose of the present invention is to completely eliminate the problems of the conventional 1ig system described above, and to collect data in a small and light manner in a short time by controlling a simple program through a small number of signal lines.
The present invention provides a data communication method that enables data communication to be carried out between a computer and a data output device.
丁rrわち、本発明データ交情方法(ま、データ収集器
からのデータ送出要求に応じてデータを送出す4)デー
タ交信において、データ送出の終了時にデータ送出用信
号線ン、データ送出要求の待機時とは逆の16甫理レベ
ルに継続して保持する口とにより、データ送出の終了を
辰01−ようにしたことケ特徴と1−るものである。In other words, in the data exchange method of the present invention (4) in which data is transmitted in response to a data transmission request from a data collector, when the data transmission is completed, the data transmission signal line N is connected to the data transmission request. The main feature is that the end of data transmission is set to 01- by continuously holding the 16th control level, which is the opposite of that during standby.
以下に図rujン参照して本発明ン詳#llIに説明す
る。The present invention will be explained in detail below with reference to the figures.
なお、以下の収り」においてGズ、データ収集器により
自動販売機の販売データを収集する場合の例について、
不発ゆ」データ交信方法ケ説明するか。In addition, regarding the example of collecting vending machine sales data using G's data collector in the following section,
Could you please explain the data communication method?
本発明方法の対象とするデータ出力装置th、とじては
この例Oこ限ることなく、あらゆるデータ出力装置一般
に適用しイ)すること勿向である。The method of the present invention is applicable to any data output device in general, without being limited to this example.
しかして、自動販売侠tの販売データケ収集する場合の
構成としては、第7図に示すように、自動販売機l内の
制御器λ目体に販売データケ蓄債しておぎ、データ収集
器3と直接にデータ授受の交イgケ行う場合と、第2図
に示すよ5に、データ収集蓄耐出力機能ン有するアダプ
タケヶ介してデータ持・シの交信ケ行う場合とがあるが
1本発明データ交流方法はその双方の場合に同様に適用
して、データ収集器3からのデータ送出要求信号紛、自
動販売機lからのデータ送出信号線および共通接地線の
3本のイぎ号KlAン介して行うデータ交信に適用する
ものである。Therefore, as shown in FIG. 7, when collecting sales data of vending machine T, sales data is stored in controller λ in vending machine l, and data collector 3 There are cases in which data exchange is carried out directly, and cases in which data exchange is carried out through an adapter having a data collection and storage output function as shown in Fig. 2. The data exchange method is applied in the same way in both cases, and the data transmission request signal from the data collector 3, the data transmission signal line from the vending machine 1, and the three key signals KlA, which are the common ground line, are applied in the same way. This applies to data communication performed via
し力)して、本発明方法によるデータ交信は、第3図(
A)、 (B)にボす信号波形によって行う。−第3
図LA)はデータ収集器からのデータ送出要求クロング
信号波彫であり、データ送出要求マークl鼾に引続いて
所定周期のデータ送出要求クロンクRCン連続的に送出
する。一方%第3図(B、lは自動販売機からの送出デ
ータ信号波形であり、送出要求カウンタRCが高L/ベ
ルLH) カら低レベル(L)に立下るときにデータ信
号線ケ高7ベル()()とすることによりデータパルス
TDの高論理レベル”/”4表オ〕シ、また、凹じ〈送
出要求カウンタItCが高レベル(、H)から低レベル
(、L)に立下るときにデータ信号醜ン低レベル(LJ
と1−ることによりデータパルスTDの低論理レベル1
0”馨表わし、所定ピント数のデータパルスのス巻出が
終了するとデータ信号−を高Vベル(HJに保持して、
データ送出終了信号DFを送出1−る。Data communication according to the method of the present invention is shown in FIG.
This is done using the signal waveforms shown in A) and (B). -Third
Figure LA) shows a data transmission request clock signal waveform from the data collector, and following the data transmission request mark l snoring, the data transmission request clock RC is continuously transmitted at a predetermined period. On the other hand, Figure 3 (B and l are the data signal waveforms sent from the vending machine, and when the sending request counter RC falls from high L/bell LH) to low level (L), the data signal line becomes high. By setting 7 bells () (), the high logic level of the data pulse TD "/" 4 table O] is also depressed (transmission request counter ItC goes from high level (, H) to low level (, L). When the data signal falls to low level (LJ
and 1-, the low logic level 1 of the data pulse TD
0", and when the predetermined number of focused data pulses have finished unwinding, the data signal is held at a high V level (HJ,
A data sending end signal DF is sent out.
上述の態様による販売データ収集のデータ交信は、第φ
図に示すフローチャートに従って行う。The data exchange for collecting sales data in the above manner is as follows.
This is done according to the flowchart shown in the figure.
す1ニオ〕ち、データ収集器からデータ送出ンザ求する
1回のデータサイクル毎に、まず、ステップlにて、メ
インプログラムによる販売過程中にデータ収集器からの
データ送出要求マークILMを少けると、直ちにデータ
出力処理過程に移り、ステップ8.2にてlデータサイ
クルの時間を計測するタイマカランタンセントし、つい
で、ステップS3にてデータ送出要求カウンタltc
Y受ける度毎に、lピントずつデータン送出するが、l
カウンタ入来の都匿、ステップS弘にて、そのデータサ
イクルに送出を予定したピント数のデータビ送出し終え
たか否かを判断し、未了りときには、ステップSSにて
lピントのデータビ送出し、ついで、ステップS6にて
次のlピントのデータケ準備するとともに、ステップS
!rにてタイマカウンタのH1数値乞歩進させ、ステッ
プS9にてセント値に達した力)?!:Iか欠判断し、
セント値に達していなければ、ステップS3にて次のカ
ウンタの入来に応答する。かかるlピントずつのデータ
送出7及復したうえで、ステップSIIにて予定ピント
数のデータ送出終了と判断したときには、ステップS7
に移行して、前述したデータ送出信号としてデータ送出
信号線ン高レベル”■”に保持する。しかる後に、ステ
ップSrにて所定カウンタ周期にてタイマカランタフ歩
進させ、その計数値ンステップS9にて判別してPJ+
足のデータサイクル周期長に達したと判1fLL、たと
きには、ステン71310に移行し、データ送出信号線
を待機時の低レベル“L”に戻したうえで、通常のメイ
ンプログラムによる販売過程に復帰する。なお、ステッ
プS3にてデータ収集器からのデータ送出要求カウンタ
I(Cの入来がなくなったとぎにも、直ちにステンIS
に。First, for each data cycle that requests data transmission from the data collector, first, in step 1, during the sales process by the main program, the data transmission request mark ILM from the data collector is reduced. Then, the process immediately moves to the data output processing process, and in step 8.2, a timer count is set to measure the time of 1 data cycle, and then, in step S3, the data transmission request counter ltc is set.
Every time I receive Y, I send l focus data, but l
When the counter enters the data cycle, it is determined in step S whether or not the transmission of data for the number of focus points scheduled for transmission in that data cycle has been completed, and if it has not been completed, data transmission for one focus is performed in step SS. , Then, in step S6, the data for the next l focus is prepared, and in step S6
! The H1 value of the timer counter is incremented at r, and the force that reaches the cent value at step S9)? ! : Judge whether it is I or not.
If the cent value has not been reached, the counter responds to the next entry in step S3. After transmitting the data for each l focus 7 times and returning, if it is determined in step SII that the data transmission for the planned focus number has been completed, the process proceeds to step S7.
Then, the data sending signal line is held at a high level "■" as the data sending signal mentioned above. After that, the timer counter is incremented at a predetermined counter period in step Sr, and the counted value is determined in step S9 and PJ+
When it determines that the data cycle period length of the bar has been reached at 1fLL, it moves to Sten 71310, returns the data sending signal line to the low level "L" during standby, and returns to the sales process using the normal main program. do. In addition, in step S3, as soon as the data sending request counter I (C) from the data collector is no longer received, the status IS is immediately
To.
Sりに移行して、所定のデータサイクル周期に達するの
ン待って、待機状幅に復帰する。The process shifts to S, waits until a predetermined data cycle period is reached, and then returns to the standby state.
つぎに、データ収集器から送出するデータ送出要求信寸
1テ;よび自動販売機等のデータ出力袋筒、から送出′
1″る販売データ等のデータ信号の信号波形の機略Y
6’H5図の波形lおよび波)1ぢ!にそれぞれ示し、
その詳細w?Jt図の波形/および波形2にそれぞれ示
し、複数データサイクルの繰返しにより一連の販を消デ
ータの収集が児了すると、データ収集器より送出してデ
ータ出力装許に、それまで蓄(γ1していたデータンク
リアして、次回のデータ収集に悴1え、新たなデータの
蓄悄な行わき−JFA:るべきクリア1δ号のイボ号波
形ン第S図1の波形3に示す。Next, the data transmission request signal sent from the data collector is sent out from the data output bag of the vending machine, etc.
1" Signal waveform strategy for data signals such as sales data etc.
6'H5 waveform l and wave) 1ji! are shown respectively,
Details lol? As shown in waveform/waveform 2 of the Jt diagram, when a series of data collection is completed by repeating multiple data cycles, it is sent from the data collector and stored in the data output device (γ1). Clear the previous data, wait for the next data collection, and start accumulating new data.--JFA: The waveform of the 1 δ waveform shown in Figure 1 is waveform 3.
しかして、データ収集器から送出するデータ送出信号は
、データ送出要求マークItMに引続き、PIF定f1
.’a数、例えばq個のデータ退出要求カウンタttc
’v送出した後、嫡切な時間長の休止期間RP ”2
おいて再びデータ送出要求信号ンか゛6返し送出する。Therefore, the data sending signal sent from the data collector is followed by the data sending request mark ItM, and the PIF constant f1
.. 'a number, for example, q data exit request counter ttc
'v After sending, a pause period RP of a legitimate length of time ``2
After that, the data sending request signal is sent out again.
丁7:Cわち、データ収集B7においては、適当11文
のデータケ一旦パンファメモリに受入れた後、ランダム
アクセスメモリに整理して格納するので、その転送期間
ンデータ受入れに対する休止期間とする。D7:C That is, in data collection B7, the data of the appropriate 11 sentences are once accepted into the expansion memory and then organized and stored in the random access memory, so the transfer period is considered as a pause period for data acceptance.
一方、データ出力装置においては、例えば自動販売機に
おける通常の商品販売過程などのメインプログラム過程
R1Pにてデータ退出要求信号を受けると、タイマカウ
ンタにてセットしたデータサイクル周期長のデータ送出
過程DPに移行し%lデータサイクルのデータ送出ン終
γするど再びメインプログラム過程MPに復帰し、以後
、一連のデータ送出を完了するまで1以上の過程ン反復
する。On the other hand, when the data output device receives a data exit request signal in the main program process R1P, such as the normal product sales process in a vending machine, the data output process starts the data output process DP with the data cycle period length set by the timer counter. Once the data transmission of the %l data cycle is completed, the program returns to the main program process MP, and thereafter one or more processes are repeated until the series of data transmission is completed.
しかして、lデータサイクルのデータ送出に際しては、
データ送出要求マークRMの受信に対応してデータ送出
マークDM Y送出し、引続き、第3図につき前述した
ようにして、データ送出要求カウンタ入来の都度、lピ
ントのデータを反復して送出するが、lデータサイクル
に送出するデータ量は、例えば前述したダビツトなどの
所定ピント数以内にて可変長とするので、各データサイ
クル毎にデータ送出終了を告げる必要がある。そのデー
タ送出終了信号として、第3図につき前述したように、
複数カウンタ周期の期間継続して高レベル″H″ン保持
し、 PJr定のlデータサイクル周期長の経j;4を
まって低レベル@L″の待機状卵に復帰する。なt6
、・第6図に示すように、データ送出要求クロンクRC
間の休止期間RPに対応して送出データ収集器にも休止
期間Dr Y設け、一連のデータ送出が完了すると、上
述した高レベル継続によるデータ送出終了信号DF Y
送出する。Therefore, when sending data for l data cycles,
In response to the reception of the data transmission request mark RM, the data transmission mark DM Y is transmitted, and then, as described above with reference to FIG. However, since the amount of data sent in one data cycle is variable within a predetermined number of focuses, such as the aforementioned davit, it is necessary to notify the end of data sending for each data cycle. As the data transmission end signal, as described above with reference to FIG.
It continues to maintain the high level "H" for a period of multiple counter cycles, and returns to the low level @L" waiting state after waiting for one data cycle period length of PJr constant.
,・As shown in FIG. 6, the data transmission request Cronk RC
Corresponding to the pause period RP in between, a pause period Dr Y is also provided in the sending data collector, and when a series of data sending is completed, the data sending end signal DF Y is generated by continuing the high level described above.
Send.
上述のような構成原理による本発明方法のデータ送出の
タイムチャートン第7図に示す。図承りタイムチャート
においては、データ送出マークDMに相当するスタート
ピントSBに引続き、前述した休止期間ン挾み′r、【
がら販売データ等のデータTDY送出し、さらにパリテ
ィピントPR’7送出したうえで、データ117 Q器
からのデータ送出要求カウンタか所定数の送出後、打切
られたカウンタ休止期間にデータ送出信号線ン高レベル
″H”に保持して終止ピントFBと1−る。したがって
、データ送出信号には特別のデータ送出終了フードケ付
〃口することなく、データ送出の終了ぞ表わしイ(tろ
ので、データ出力装置の制御(〕竜能が簡略化され、ピ
ント送出効串も向上する利点が得られる。FIG. 7 shows a time chart for data transmission of the method of the present invention based on the construction principle as described above. In the figure approval time chart, following the start focus SB corresponding to the data transmission mark DM, the above-mentioned pause period 'r', [
After sending out data TDY such as sales data, and further sending out parity pin PR'7, after sending out a predetermined number of data sending request counters from the data 117 Q device, the data sending signal line is turned off during the aborted counter inactive period. It is held at a high level "H" and is 1- with the final focus FB. Therefore, the data transmission signal is equipped with a special data transmission end hood that indicates the end of data transmission without having to enter the data transmission signal, which simplifies the control of the data output device and improves the focus transmission effect. It also has the advantage of improving performance.
なお、本発明データ交信方法によるデータ送出終了の検
知は、データ送出要求カウンタをデータ収集器から送出
したのち低レベル″L″にするまでの期間の時間長を監
視することにより、データ送出要求クロンタ毎にデータ
出力信号線の信号レベルに判1すrして行うこともでき
る。fなゎち、第9図の波形lに示すデータ送出要求信
号におけるデータ送出要求カウンタttCに引続く判断
期間JTにおける波形λが示すデータ送出信号の信号レ
ベル7監醜し、その判断期間JTにてデータ送出信号縁
の信号レベルか低レベルFJであれば、引続きデータ送
出斐刃(カウンタttc y z<出し、その判断期間
JTにおけるデータ送出信号線の(L4号レベルが継続
して高レベルFFであれば、第3図につき前述したデー
タ送出終了信号であると判断゛するものである。The end of data transmission by the data communication method of the present invention can be detected by monitoring the length of time from when the data transmission request counter is sent from the data collector until it is set to a low level "L". It is also possible to perform this by adjusting the signal level of the data output signal line each time. f, the data sending request counter ttC in the data sending request signal shown in waveform 1 in FIG. If the signal level of the data transmission signal edge is low level FJ, the data transmission signal line (counter ttc y z < is output), and the (L4 level of the data transmission signal line in JT continues to be high level FF) during that judgment period. If so, it is determined that it is the data transmission end signal described above with reference to FIG.
以上の説明から明らかなように1本発明によれば、デー
タ交信に際し、データ出刃装置T’(はデータ送出終了
を高レベルの継続によって送出し、これケ受けるデータ
収集器においては、データ送出要求カウンタを送出しな
いとぎにデータ出方信号線が高レベルであることにより
、データ送出終了を判別し得るようにしであるために、
任意のデータ形式、データ長に対して特別の送出終了コ
ードン伺加することl【<、簡単なプログラムの制御に
よって、デ〜り収集のための交信ケ達成することができ
る。As is clear from the above description, according to the present invention, during data communication, the data sending device T' (data sending device T') sends out a data sending end message in a high-level continuation, and the data collector receiving this sends a data sending request. Since the data output signal line is at a high level before the counter is output, it is possible to determine the end of data output.
Communication for data collection can be achieved by adding a special transmission termination coden for any data format and data length.
丈だ、データ収集器において、75r定周期毎に収集デ
ータをパン7アメモリからランダムアクセスメモリに転
送、格納する形態のデータ交信においては、データ収す
15時のメモリアドレス11・理Y f4略化し得ると
ともに、アドレス異常等の判弁か容易となる利点も得ら
れる。In the data collector, in data communication in which collected data is transferred from the pan 7 memory to the random access memory and stored at regular intervals of 75r, the memory address 11 at 15 o'clock where the data is stored is abbreviated as f4. At the same time, it also has the advantage of making it easier to judge problems such as address abnormalities.
T、(お、本発明データ交イ6方法は、自iの販売機の
販売データ成年の例に限られることなく、多数の回01
(様器力)らのデータ収集ケ極力1バj易かつ安価に行
’l jph舎に広く適用′1−ることができる。T, (Oh, the data exchange method 6 of the present invention is not limited to the example of sales data of i's own vending machine for adults, but can be used for a large number of times.
This method of data collection is as easy and inexpensive as possible and can be widely applied to the industry.
第1図および第2図Gゴ不発明方法によるデータ交信時
の機器接続の態様の例欠それぞれ示すブロンク腺図、第
3図(A) 、 (B、)は本発明方法によるデータ
交信時の(g芳性形の例ンそれぞれボす波形図、第を図
は本発明方法によるデータ交信の態様の例乞示す70−
チャート、第j図j6よび第6図は木兄1jiJ方法に
よるデータ交信時の1d号波形の例の概略および詳細に
それぞれ示す波形図、第、7図は同じくそのデータ送出
の態様の4y+1を示すタイムチャート、第g図は同じ
くそのデータ送出終了弁別の態様の+/lJン示す信号
波影図である。
2・・・制仙j汎1X。
3・・・データ収集器、
ダ・・・アダプタ、
RM・・・データ送出要求マーク、
RC・・・データ送出要求クロンク、
TD・・・送出データ。
DF・・・データ送出終了信号、
DM・・・データ送出マーク、
ItP・・・デーク送出要求りロンク休止期間、DP・
・・データ送出休止期間、
SB・・スタートピント、
FL’l・・・終了ピント、
PB・・パリティピント。
特許出願人 冨士電機製造株式会社
第1図
第2図
第3図
/AFIGS. 1 and 2 are Bronk's gland diagrams showing examples of device connection during data communication using the inventive method, and FIGS. (The waveform diagrams for each case of the aromatic form are shown in FIG. 70.
Charts 6 and 6 are waveform diagrams showing the outline and details of an example of the 1d waveform during data communication according to the Kinoe 1jiJ method, and Figures 7 and 7 similarly show the 4y+1 mode of data transmission. FIG. g of the time chart is a signal wave shadow diagram showing the mode of data transmission end discrimination. 2... Seisen j Pan 1X. 3...Data collector, D...Adapter, RM...Data sending request mark, RC...Data sending request clock, TD...Sending data. DF...data sending end signal, DM...data sending mark, ItP...data sending request long idle period, DP...
...Data transmission pause period, SB...Start focus, FL'l...End focus, PB...Parity focus. Patent applicant Fuji Electric Manufacturing Co., Ltd. Figure 1 Figure 2 Figure 3/A
Claims (1)
出するデータ交イδにおいて、データ送出の終了時に、
データ送出用信号NY、データ送出要求の待機時とは逆
のM々坤レベルに継続して保持することにより、データ
送出の終了ン表わ丁ようにしたことン特徴と1−るデー
タ交信方法。In the data exchange δ that sends out data in response to a data sending request from the data collector, at the end of data sending,
By continuously holding the data sending signal NY at the M level, which is the opposite of that when waiting for a data sending request, it is possible to indicate the end of data sending.Characteristics 1- Data communication method .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP57158084A JPS5949044A (en) | 1982-09-13 | 1982-09-13 | Data communication method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP57158084A JPS5949044A (en) | 1982-09-13 | 1982-09-13 | Data communication method |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS5949044A true JPS5949044A (en) | 1984-03-21 |
Family
ID=15663941
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP57158084A Pending JPS5949044A (en) | 1982-09-13 | 1982-09-13 | Data communication method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS5949044A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4704139A (en) * | 1985-09-11 | 1987-11-03 | Hitachi, Ltd. | Method and apparatus for separating gases |
JPH03191633A (en) * | 1989-12-21 | 1991-08-21 | Toshiba Corp | Data transfer system |
US5935433A (en) * | 1990-07-11 | 1999-08-10 | Stefanini; Daniel | Arrangement for and method of treating fluid |
-
1982
- 1982-09-13 JP JP57158084A patent/JPS5949044A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4704139A (en) * | 1985-09-11 | 1987-11-03 | Hitachi, Ltd. | Method and apparatus for separating gases |
JPH03191633A (en) * | 1989-12-21 | 1991-08-21 | Toshiba Corp | Data transfer system |
US5935433A (en) * | 1990-07-11 | 1999-08-10 | Stefanini; Daniel | Arrangement for and method of treating fluid |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS59209374A (en) | Game apparatus | |
US3772649A (en) | Data interface unit for insuring the error free transmission of fixed-length data sets which are transmitted repeatedly | |
WO1992013295A1 (en) | System for the remote monitoring of a reproduction apparatus | |
JPS5949044A (en) | Data communication method | |
US4573141A (en) | Memory interface for communicating between two storage media having incompatible data formats | |
CN113301284B (en) | Law enforcement recorder system and process | |
JP2930771B2 (en) | Wireless data collection method | |
US6697172B2 (en) | Apparatus and method of transmitting performance measurement data to a control center | |
JP3075739B2 (en) | Vending machine management system | |
JPH01307894A (en) | Remote monitor system of device for public use | |
CN1271100A (en) | Radio paging multifunctional watt-hour meter | |
CA1233516A (en) | Memory interface for electronic demand register of an electric meter | |
JP3195826B2 (en) | Disturbance addition device for digital signal | |
US20230213378A1 (en) | Method for adjusting sleep time based on sensing data and electronic device | |
KR930005597B1 (en) | Charging processing method of electronic exchange using computer | |
JPS61270969A (en) | Communicating equipment | |
JPS6331261A (en) | Picture recorder for monitor used in phototelegraphic system | |
KR950000972B1 (en) | Call rate counting method | |
JP2000266568A (en) | Data recorder | |
CN119363022A (en) | A method, device and system for judging the operating status of a photovoltaic inverter | |
CN119225661A (en) | Test data accelerated processing device, method and test machine | |
JP2947224B2 (en) | CSMA / CD frame transmission method and frame transmission device | |
JP2859222B2 (en) | Frame converter | |
JPS6146588A (en) | Data transmission for vending machine | |
CN120199314A (en) | System test method for UFS equipment, test host, equipment and medium |