JPS62169550A - Data reception control system - Google Patents

Data reception control system

Info

Publication number
JPS62169550A
JPS62169550A JP61010060A JP1006086A JPS62169550A JP S62169550 A JPS62169550 A JP S62169550A JP 61010060 A JP61010060 A JP 61010060A JP 1006086 A JP1006086 A JP 1006086A JP S62169550 A JPS62169550 A JP S62169550A
Authority
JP
Japan
Prior art keywords
text
data
length
bytes
received
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
JP61010060A
Other languages
Japanese (ja)
Inventor
Noboru Aoki
昇 青木
Yoshinori Okami
吉規 岡見
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP61010060A priority Critical patent/JPS62169550A/en
Publication of JPS62169550A publication Critical patent/JPS62169550A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain transmission of a transmitting text of variable length with us of a DMA control circuit by adding the fixed text length information to a fixing position of a data frame to be transmitted and also adding an end code to the end of the frame. CONSTITUTION:The text length information 2 shows the byte length of a subsequent text 3 and is set at the fixing position of a data frame. The text 3 has the transmission properties that can include an optional bit pattern and the variable length properties for optional length. A serial/parallel converter 7 converts the serial data received from a device at the remote side into a parallel form. This parallel data is transferred automatically to a memory 6 by a DMA control circuit 8. The number of bytes received actually is compared with the number of bytes received finally. If the former bytes are smaller than the latter ones, the receiving action is continued to wait for the report of detection of the next end code. Then the end of reception of a data frame is decided when the coincidence is secured between said two numbers of bytes. Thus it is possible to receive a transmitting text of optional length.

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、データ受信制御方式に関し、任意のテキスト
長でかつテキストが任意のビットパターンを含むことが
可能、すなわち、可変長σ)透過テキストを扱うのに好
適なデータ受信制御方式に関する。
[Detailed Description of the Invention] [Field of Application of the Invention] The present invention relates to a data reception control method, and the present invention relates to a data reception control method, in which the text can have an arbitrary text length and include an arbitrary bit pattern, that is, variable length σ) transparent text. This invention relates to a data reception control method suitable for handling data.

〔発明の背景〕[Background of the invention]

従来のデータ受信制御方式としては、(1)第5図に示
す如く、伝送するフレームのデータ長を常に固定とし、
定められたデータ数の受信をもって受信終了とするもの
、(2)第6図に示す如く、可変長のデータ部に終了コ
ードを定義し、終了コード検出をもって受信終了とする
もの、があった。
As a conventional data reception control method, (1) the data length of the frame to be transmitted is always fixed, as shown in Fig. 5;
There are two methods: (2) as shown in FIG. 6, an end code is defined in the variable length data section, and reception ends when the end code is detected.

しかし、(1)は伝送するフレームのデータ長が常に固
定とされるため、テキスト長が任意に変化する伝送には
適さず、(2)は、終了コードを伝送するテキスト中に
含ませることが出来ないため、終了コードと同一のコー
ドがテキスト中に存在し得シ目号過テキストの伝送が行
なえない欠点がある。
However, (1) is not suitable for transmission where the text length changes arbitrarily because the data length of the transmitted frame is always fixed, and (2) does not allow the end code to be included in the transmitted text. Therefore, there is a drawback that a code identical to the end code may exist in the text, making it impossible to transmit the text over the number of marks.

なお、この糧の装置として関連するものには、例えば特
開昭59−201556号公報に開示されたものがある
Incidentally, a device related to this food is disclosed, for example, in Japanese Patent Application Laid-Open No. 59-201556.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、上述の問題点を解決し、可変長の透過
テキストの伝送が、送信側から受13側に対して1回の
フレームの伝送で終了すること2可能とし、受7処理に
要する処理回路の負担な少なくすることにある。
An object of the present invention is to solve the above-mentioned problems, to enable the transmission of variable-length transparent text to be completed with one frame transmission from the sender to the receiver 13, and to make it possible for the receiver 7 to process The aim is to reduce the burden on the processing circuitry required.

〔発明Q)概要〕[Invention Q) Overview]

本発明てマま、伝送するデータフレームσつ固定位置に
固定長のテキスト長情報を含ませ、フレームの最後尾に
終了コードを付加したものな使用し、終了コードと同じ
コードが検出される毎に先に受信した前記テキスト長情
報と、受信済のデータ長を比較することにより、受イg
の継続/終了の判定を行なうようにしたことを特徴とす
る。
The present invention uses a data frame to be transmitted that includes fixed length text length information in σ fixed positions, and adds an end code to the end of the frame, and whenever the same code as the end code is detected. By comparing the text length information received earlier with the received data length, the received
This feature is characterized in that the continuation/end of the process is determined.

〔発明の実施例〕[Embodiments of the invention]

以下、4発明の一実施例を因により説明する。 Hereinafter, one embodiment of the four inventions will be explained based on the reasons.

第2図は、受信するデータフレームを示す図である。FIG. 2 is a diagram showing a received data frame.

1は、データフレームの先頭に付けられた固定長の長さ
を持つヘッダである。テキスト長情報2は、後続するテ
キスト30バイト長を表わし、データフレームの固定位
!![設けられている。テキスト3は、伝達したい情報
の内容であり、任意のビットパターンを含んでいてもよ
い透過′住と、任意の長さでもよい可変長性ンもつ。終
了コード4は、データフレームの終了を意味する情報で
ある。
1 is a header with a fixed length that is attached to the beginning of the data frame. Text length information 2 represents the 30-byte length of the following text, and the fixed position of the data frame! ! [Provided. The text 3 is the content of the information to be transmitted, and has a transparent character that may include any bit pattern and a variable length character that may have an arbitrary length. End code 4 is information indicating the end of the data frame.

g3図は、本発明に基づく受13裟にの構成乞示す図で
ある。
Figure g3 is a diagram showing the configuration of a receiver according to the present invention.

メモリ6は、受giクツため0)制u−yログラムや種
々のアプリケーションプログラムン、洛納しでおり。
The memory 6 is used to store control programs and various application programs.

また、受信バッファとしても使用されろ。演算制御回路
5は、メモ’J6F’Hのプログラムに従り°C動作を
行なう、例えはマイクロ10セツサの如きものである。
It can also be used as a receive buffer. The arithmetic control circuit 5 is, for example, a micro 10 setter, which performs the °C operation according to the program in the memo 'J6F'H.

相手側装置(図示せず))よ、第21(1)データ形式
に従って、直列データを直列並列変換回路7に伝送する
と、この直列データは並列データに変換される。変換さ
イ′ムた並列データ(よ、ダイレクト・メモリ・アクセ
ス(Direct Memory Access:Di
\4A)制御回路8によりメモリ6内の受信バッファへ
格納される。特定コード伐出回vJ9は終了コードと同
一のコードがメモリ6内の受信バッファに転送されると
、検出信号を演算制御回路5へ報告する。
When the other device (not shown) transmits serial data to the serial/parallel conversion circuit 7 in accordance with the 21st (1) data format, this serial data is converted into parallel data. Converted parallel data (Direct Memory Access: Di
\4A) Stored in the reception buffer in the memory 6 by the control circuit 8. The specific code extraction cycle vJ9 reports a detection signal to the arithmetic control circuit 5 when the same code as the end code is transferred to the reception buffer in the memory 6.

第1図は、本発明に基づく受信動作ン説明するためのフ
ローチャートである。演算制御回路5はメモリ6円の受
信制御プログラムに従ってこの受信動作ン制(gl′f
る。先ず受信を開始する前に、直列並列変換回路7に対
しパリティピット長、ストップビット長など、通信モー
ドの設定を行なう(ステップ10)。次にi)MA制御
回路8に転送先の開始アドレスとしてメモリ6内り受1
8バッファ先頭アドレスをセットし、またそり中の受信
バイトカウンタ81に受信バッファ容量の値を設定する
(ステップ11)。次に特定コード検出回路9内の特定
コードレジスタ91に終了コード(本実施例で(・まキ
ャリッジリターンコードな用いる。以下。
FIG. 1 is a flowchart for explaining the reception operation based on the present invention. The arithmetic control circuit 5 performs this reception operation control (gl'f) according to the reception control program stored in the memory 6.
Ru. First, before starting reception, communication mode settings such as parity pit length and stop bit length are performed for the serial/parallel conversion circuit 7 (step 10). Next, i) MA control circuit 8 sets the transfer destination start address to memory 6 internal reception 1.
8 buffer head address is set, and the value of the receive buffer capacity is set in the received byte counter 81 (step 11). Next, an end code (in this embodiment, a carriage return code is used) is stored in the specific code register 91 in the specific code detection circuit 9.

CRと略す)を設定する(ステップ12)。(abbreviated as CR) (step 12).

以上の初期設定が完了すると、演算制御回路5は、W列
並列′&換回路7に対して、受信動作の起動ン行なう(
ステップ13)。
When the above initial settings are completed, the arithmetic control circuit 5 starts the reception operation for the W column parallel '& conversion circuit 7 (
Step 13).

受信起動後は、相手側装置から送信される直列データ1
¥:直列並列変換回路7が並列データに変換し、DMA
制御回路8がメモリ6へ転送を自動的に行なう。この受
1バデータの転送の間、演算制御回路5は、終了コード
検出の報音な時定コード横出回路9より受けない限りに
おいて、終了コード検出報告侍らり状態と1よる(ステ
ップ14)5また、DMA制#回路8は、受信データを
”、バイトずつ転送する毎に、受信バイトカウンタ81
を一1減する。従って、受信バイト数は、〔受信バッフ
ァ容量−受洒バイトカウンタ81の内容〕(バイト)で
表わすことができる。演算制御回路5は終了(コード)
検出報告時、前記計′疼ン行r’lう(ステップ17)
ことにより、その時点までに受石されたバイトffを知
る。また、最終的に受1gされるべきテキスト3のバイ
ト数は、先行して受信しであるテキスト長情報2をメモ
リ6から参照することによりnLjjする。さらに、こ
れら実際に受1Mしたバイト数と、最終的に受信される
べきバイト数を゛比較し、受信したバイト数が最終的に
受fI!rされるべきバイト数に満たない場合は、受1
Nを続行し、次の終了コード検出報告を待ち、受信した
バイト数が最終的に受信されるバイト数に達した時に、
1データフレームの受註の終了とする(ステップ18)
After starting reception, serial data 1 sent from the other device
¥: The serial/parallel converter circuit 7 converts it into parallel data and converts it to DMA.
Control circuit 8 automatically transfers to memory 6. During the transfer of the reception 1 data, the arithmetic control circuit 5 keeps the end code detection report waiting state (step 14) unless it receives an end code detection alarm from the timed code horizontal output circuit 9 (step 14). In addition, the DMA system # circuit 8 counters the received byte counter 81 every time the received data is transferred byte by byte.
Reduce by 11. Therefore, the number of received bytes can be expressed as [receive buffer capacity - content of popular byte counter 81] (bytes). Arithmetic control circuit 5 is finished (code)
When the detection is reported, the above-mentioned calculation is performed (step 17).
By this, the cutting tool ff that has been cut up to that point is known. Further, the number of bytes of the text 3 to be finally received is determined by referring to the previously received text length information 2 from the memory 6. Furthermore, the number of bytes actually received is compared with the number of bytes that should be finally received, and the number of bytes received is finally received! If the number of bytes to be r is less than the number of bytes to be
Continue N, wait for the next exit code detection report, and when the number of bytes received reaches the number of bytes finally received,
Ending the annotation of one data frame (step 18)
.

以上のデータ受傷制御方式は、任意の長さく可変長) 
a)透過テキストの受t゛が可能である。$4図にこの
ことを示すための図を示す。
The above data injury control method can be of any length (variable length)
a) It is possible to receive transparent text. Figure $4 shows a diagram to show this.

テキスト中に、終了コードと同一のコードであるCRが
含まれる場合は、終了コード検出が演算側で耳部5へ報
告されるが、この時は、受信したバイト数が最終的に受
信されるべきバイト数に満たないため5受信は続行され
る。また終了コード受信時は、受傷したバイト数が最終
的ンこ受傷されるべきバイトaに達しているため、受傷
が終了する。
If the text contains a CR that is the same code as the end code, the end code detection is reported to the ear unit 5 on the calculation side, but at this time, the number of received bytes is finally received. Since the number of bytes is less than the expected number of bytes, 5 reception continues. When the end code is received, the number of damaged bytes has reached the final byte a to be damaged, so the damage ends.

こりように、受信σ)終了/継続の判定を、終了コード
検出時にだけ行なうことによって、演算制御回路5の負
瓜を、経くすることが℃き、演算制御回路5がアプリケ
ージ1ンプログラムを実行できる機会な大@に増やすこ
とができるう 〔発明σ〕効果〕 本発明によれば、D M /、制#回路を使用して可変
長の透過テキストの伝送ケ可能とする受傷装置が実現で
きる。従って、データ転送の処理は/’% −ドウエア
的に行なわれ、オーバーランV)発生を防止し、高速の
通悟速度への対応か可能とをる1゜例えば、通伯速匿9
GOOBPS時、データ0)到1間隔會;約1 m 8
とをり、データの払込処理しよこの時間内に完了する必
矢かあるが、受1aテータを到着毎にプログラム処理す
るプロクラム・インプット・アウトプット(Progr
am 、 Input、0utput:PIO)方式で
は、プロクラムり処理速式が間VC合わなくなり、オー
バーランの発生の危険性が高い。ところが、DMA制御
回路を使用する本発明は、データ転送なハードウェア的
に行なうため、この−ラなプログラム処理速度に対する
制限がなく、通:ぎ速度の尚連化が容易とをる。また、
演算制御回路は、データ受信処理から開放されるンでめ
、受イぎ処理のγこめの時間は、1’MO方式σノ約1
 / 100に短縮される。
In this way, by making the end/continuation judgment of reception only when the end code is detected, the arithmetic control circuit 5 can avoid the negative effect of the arithmetic control circuit 5, and the arithmetic control circuit 5 can program the applicator 1. [Invention σ] Effect] According to the present invention, there is provided a wound device that enables the transmission of transparent text of variable length using a DM/control circuit. realizable. Therefore, data transfer processing is performed in a hardware manner, which prevents overruns and enables high communication speeds.
During GOOBPS, data 0) to 1 interval; approximately 1 m 8
However, it is inevitable that the data payment processing will be completed within this time, but the program input output (Progr.
In the am, input, zero output (PIO) method, the program processing speed method will not be able to keep up with the VC, and there is a high risk of overrun occurring. However, in the present invention, which uses a DMA control circuit, data transfer is performed by hardware, so there is no restriction on the program processing speed, and it is easy to increase the communication speed. Also,
The arithmetic control circuit is released from data reception processing, and the time required for reception processing is approximately 1 of the σ of the 1'MO method.
/ Shortened to 100.

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

i@1図は本発明に基づく受信動作を説明するためのフ
ローチャート、第2図は不発明に基づくデータフレーム
を示す図、第3図は本発明に基づく受信装置の構成な示
す図、琳4図は本発明に基づく覚偏動作Y:貯5明する
ための図、第5及び6図は従来技術を説明するための図
しめる。 1・・・ヘッダー    2・・・テキスト長情報3・
・・テ千スト    4・・・終了コード5・・・演算
制#Lgl給  6・・・メモリ7・・・直列並列変侠
し!回路8・・・1)MA制彌回路9・・・時定コード
検出回路 100・・・データバス ・′り 代理人弁理士 小 川 膀 男゛′・、゛第1 区  
         発4 凹毎ぎ口 第2 凹 (f
i@1 is a flowchart for explaining the receiving operation based on the present invention, FIG. 2 is a diagram showing a data frame based on the present invention, and FIG. 3 is a diagram showing the configuration of the receiving device based on the present invention. The figure is a diagram for explaining the biasing operation Y according to the present invention, and Figures 5 and 6 are diagrams for explaining the prior art. 1... Header 2... Text length information 3.
...Test 1,000 strikes 4...End code 5...Arithmetic system #Lgl supply 6...Memory 7...Series parallel conversion! Circuit 8...1) MA stop circuit 9...Timed code detection circuit 100...Data bus/patent attorney Ogawa ``1st Ward''
4 concave opening 2nd concave (f

Claims (1)

【特許請求の範囲】[Claims] 演算制御部とメモリとDMA制御部と特定コード検出部
とを有し、前記メモリ内の受信制御プログラムの制御に
よりデータを受信するデータ受信制御方式において、デ
ータフレームの固定位置に固定長のテキスト長情報を、
また最後尾に終了コードをそれぞれ付加したデータ形式
とし、前記演算制御部は、前記特定コード検出部が前記
終了コードと同一のコードを検出した時だけ受信済の前
記テキスト長情報と前記DMA制御部に設定される受信
データ数とに基づいてデータフレームの受信の継続、終
了の判定を行なうことを特徴とするデータ受信制御方式
In a data reception control method that includes an arithmetic control section, a memory, a DMA control section, and a specific code detection section, and receives data under the control of a reception control program in the memory, a fixed length text is placed at a fixed position in a data frame. information,
Further, the data format is such that an end code is added to the end of each end code, and the arithmetic control section is configured to combine the received text length information with the DMA control section only when the specific code detection section detects the same code as the end code. A data reception control method characterized by determining whether to continue or terminate data frame reception based on the number of received data set in .
JP61010060A 1986-01-22 1986-01-22 Data reception control system Pending JPS62169550A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61010060A JPS62169550A (en) 1986-01-22 1986-01-22 Data reception control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61010060A JPS62169550A (en) 1986-01-22 1986-01-22 Data reception control system

Publications (1)

Publication Number Publication Date
JPS62169550A true JPS62169550A (en) 1987-07-25

Family

ID=11739842

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61010060A Pending JPS62169550A (en) 1986-01-22 1986-01-22 Data reception control system

Country Status (1)

Country Link
JP (1) JPS62169550A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1996026582A1 (en) * 1995-02-23 1996-08-29 Ntt Mobile Communications Network Inc. Variable rate transmitting method, and transmitter and receiver using it

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1996026582A1 (en) * 1995-02-23 1996-08-29 Ntt Mobile Communications Network Inc. Variable rate transmitting method, and transmitter and receiver using it
US5896374A (en) * 1995-02-23 1999-04-20 Ntt Mobile Communications Network, Inc. Variable rate transmission method, transmitter and receiver using the same

Similar Documents

Publication Publication Date Title
JPS60177888A (en) Combination system of visual sensor processor and robot controller
CN106257434A (en) A kind of data transmission method based on enhancement mode peripheral interconnection protocol bus and device
CN111324567B (en) Method for realizing serial port communication and single chip microcomputer system
JPH03104459A (en) Data communication equipment
JPS62169550A (en) Data reception control system
JPS6359042A (en) Communication interface equipment
JPS6120454A (en) Frame signal transmitting device
JPS6019821B2 (en) Serial data reception method
JPH0433416A (en) Serial transmission p/s converter
JPS5828979B2 (en) Data frame transmission method
JPS634216B2 (en)
JP2937218B2 (en) Buffer memory management method for data link protocol controller
JP2574796B2 (en) Communication control device
JPH10161954A (en) Data communication device
JPH0353736A (en) Reception buffer control system
JPH03261255A (en) Data transfer system
JPH11103330A (en) Infrared ray data transmission method and system therefor
JPH05128049A (en) Input/output controller
JP3431071B2 (en) Serial communication control system and serial communication control method thereof
JP2823625B2 (en) Data processing device
JPH05257865A (en) Descriptor control system
JPS59219051A (en) Data transmission system
JPH04249947A (en) Communication control equipment
JPS62245465A (en) Long packet transmitter receiver
JP2000276422A (en) Method and device for communication protocol processing