JPH05241995A - Serial data transmission method - Google Patents

Serial data transmission method

Info

Publication number
JPH05241995A
JPH05241995A JP7538692A JP7538692A JPH05241995A JP H05241995 A JPH05241995 A JP H05241995A JP 7538692 A JP7538692 A JP 7538692A JP 7538692 A JP7538692 A JP 7538692A JP H05241995 A JPH05241995 A JP H05241995A
Authority
JP
Japan
Prior art keywords
byte
data
parity
mode
serial transmission
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
JP7538692A
Other languages
Japanese (ja)
Inventor
Yuji Kozasa
小篠裕司
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.)
Pentel Co Ltd
Original Assignee
Pentel 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 Pentel Co Ltd filed Critical Pentel Co Ltd
Priority to JP7538692A priority Critical patent/JPH05241995A/en
Publication of JPH05241995A publication Critical patent/JPH05241995A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Detection And Correction Of Errors (AREA)

Abstract

PURPOSE:To accelerate transmission speed by reducing data quantity when a data group comprised of plural bytes is transmitted by performing transmission by changing the parity mode of only a leading byte in plural bytes. CONSTITUTION:Assuming that the serial transmission formats of a serial transmission part 7 and reception equipment 8 are set by eight bits and are used in a mode of even parity, a central processing unit 6 sets a mode at the one of odd parity only when a data format shows the one of first byte before the serial transmission part 7 performs the data transmission of the first byte. The reception equipment 8 judges a received first byte as a parity error. When the first byte in which the parity error occurs is received, the reception equipment 8 side judges a signal to be transmitted as the position signal of the input panel 2 of a digitizer 1. The serial transmission part 7 returns the mode to an original mode of even parity before a second byte is transmitted successively, and furthermore, transmits second byte data and third and fourth byte data.

Description

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

【0001】[0001]

【産業上の利用分野】シリアルでデータを送受信する場
合に連続して複数回バイトデータを送信するコンピュー
タ機器において送信の時間短縮を目的とする。
BACKGROUND OF THE INVENTION The purpose of this invention is to reduce the transmission time in a computer device that transmits byte data continuously a plurality of times when transmitting and receiving data serially.

【0002】[0002]

【従来の技術】従来、複数バイトで構成されるデータを
送信する入力機器、例えばデジタイザより座標データを
シリアルで連続して出力する場合、その出力データはX
座標,Y座標,ペン状態の情報が複数バイトで構成され
る。例としてX座標1200、Y座標2305、ペンア
ップ/ダウン状態を1とした場合、データ形式は図4
(a)の様に、12バイト構成の文字列をアスキーコー
ドの文字列で構成し、終了コードとしてCRコードを付
加して一つの構成データの受信終了を判別させたり、転
送量を減らすため図4(b)の様に、5バイト構成の1
6進コ−ドをバイナリーデータ形式にし、先頭バイトデ
ータと座標データ部とが判別できる形式にして送信して
いた。
2. Description of the Related Art Conventionally, when serially outputting coordinate data serially from an input device that transmits data composed of a plurality of bytes, for example, a digitizer, the output data is X
Coordinates, Y coordinates, and pen status information are composed of multiple bytes. As an example, when the X coordinate 1200, the Y coordinate 2305, and the pen up / down state are 1, the data format is as shown in FIG.
As shown in (a), a 12-byte character string is composed of ASCII code character strings, and a CR code is added as an end code to determine the end of reception of one component data, or to reduce the transfer amount. As in 4 (b), 1 with 5 bytes
The hexadecimal code is transmitted in a binary data format so that the first byte data and the coordinate data section can be distinguished from each other.

【0003】[0003]

【発明が解決しようとする課題】上記した従来の技術に
よると、デジタイザ上で曲線をトレースして入力するよ
うな場合に、ペンの移動速度に対して座標データ送信速
度が遅いと正確な入力が出来ない場合が生じるので、デ
ータの送信速度の向上が必要であり、その手段としてシ
リアルの転送速度を上げることが考えられるが、送信側
・受信側双方の動作速度を上げ、データの取りこぼしが
発生して逆にデータ量に対しての転送速度を低下させな
いようにしなければならなかった。この場合コストが上
がりまた回路も複雑になっていた。
According to the above-mentioned conventional technique, when a curve is traced on a digitizer and input, if the coordinate data transmission speed is slower than the pen movement speed, accurate input is not possible. Since it may not be possible, it is necessary to improve the data transmission speed, and as a means to increase it, it is possible to increase the serial transfer speed, but increase the operating speed of both the transmission side and the reception side, and data loss occurs On the contrary, it was necessary to prevent the transfer rate from decreasing with respect to the amount of data. In this case, the cost is increased and the circuit is complicated.

【0004】[0004]

【課題を解決するための手段】本発明は、前述した課題
を解決するためになされたものであって、複数バイトで
構成される1つのデータを随時シリアル送信する機器に
おいて、複数バイト中の先頭バイトのみパリティのモ−
ドを変更して送信し、受信側ではパリティチェックによ
り先頭バイトをパリティエラ−として認識し、爾後のデ
−タのパリティモ−ドを回復させて送信するシリアルデ
ータ送信方法を提案するものである。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems, and in a device for serially transmitting one data composed of a plurality of bytes at any time, the head of the plurality of bytes Byte-only parity mode
The present invention proposes a serial data transmission method in which the data is changed and transmitted, and the receiving side recognizes the first byte as a parity error by a parity check, recovers the parity mode of the subsequent data and transmits.

【0005】[0005]

【作用】本発明の送信方法は、区切りのデータ1バイト
が省略でき全体のデータ送信速度を向上することが可能
となるもので、ハードウェア的性能向上をせずに、図3
に示す様にシリアル送信のフォーマットとして8ビット
データと共に送られるパリティビットを用い、先頭バイ
トをシリアル送信するときのみパリティエラーを意図的
に発生させることにより受信側では、パリティチェック
により先頭バイトを認識することを特徴としたシリアル
データ送信方法を提案するものである。
According to the transmission method of the present invention, one byte of delimiter data can be omitted and the overall data transmission speed can be improved. Therefore, without improving the hardware performance, the transmission method shown in FIG.
As shown in, the parity bit sent together with 8-bit data is used as the serial transmission format, and the parity error is intentionally generated only when the first byte is serially transmitted, so that the reception side recognizes the first byte by the parity check. The present invention proposes a serial data transmission method characterized by the above.

【0006】[0006]

【実施例】以下、本発明の一実施例を添付図面を参照し
て説明する。まず、図1は、本発明による送信データ形
式の例であり、図2は本発明の実施例を説明するための
構成を示すブロック図である。デジタイザ1は入力盤面
2上に入力ペン3を当接させた場合、その当接された位
置に対応する信号を受け取る座標検出部4と、この信号
からX座標,Y座標の値を算出するアドレス変換部5、
更にその算出されたアドレス値を受け取りシリアル送信
するためにデータ処理を行う中央処理装置6と、実際に
シリアル送信するためのインターフェースとして、例え
ばインテル社製の8251のような通信インターフェー
スを使用したシリアル送信部7とで構成される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the accompanying drawings. First, FIG. 1 is an example of a transmission data format according to the present invention, and FIG. 2 is a block diagram showing a configuration for explaining an embodiment of the present invention. When the input pen 3 is brought into contact with the input plate surface 2, the digitizer 1 receives a signal corresponding to the contacted position, and a coordinate detection unit 4 and an address for calculating the X coordinate and Y coordinate values from this signal. Converter 5,
Further, a central processing unit 6 that receives the calculated address value and performs data processing for serial transmission, and a serial transmission that uses a communication interface such as Intel's 8251 as an interface for actual serial transmission. And part 7.

【0007】そこで、入力盤面2と入力ペン3により指
定された入力盤面2の座標より検出された位置信号か
ら、座標検出部4とアドレス変換部5が値を算出し、そ
れを中央処理装置6が受け取り図1に示すように、第1
バイトと第2バイトでX座標値、第3バイトと第4バイ
トでY座標値のそれぞれを、バイナリデータ形式に変換
する。更に第4バイトのD7には入力ペン3の、入力盤
面2への当接の状況をフラグとして使用される。そして
各バイトデータをシリアル送信部7に送り、シリアル送
信部7は図3に示すフォーマットで受信機器8に対して
シリアルデータを送信する。
Therefore, the coordinate detection unit 4 and the address conversion unit 5 calculate values from the position signals detected from the coordinates of the input plate surface 2 and the input pen surface 2 designated by the input pen 3, and the central processing unit 6 calculates the values. 1st as shown in Figure 1
The X coordinate value is converted into a binary data format by the byte and the second byte, and the Y coordinate value is converted by the third byte and the fourth byte. Further, in the fourth byte D7, the state of contact of the input pen 3 with the input board surface 2 is used as a flag. Then, each byte data is sent to the serial transmission unit 7, and the serial transmission unit 7 transmits the serial data to the receiving device 8 in the format shown in FIG.

【0008】この時シリアル送信部7と受信機器8のシ
リアル送信フォーマットを、事前に8ビット,偶数パリ
ティのモードで使用すると設定しておいた場合、中央処
理装置6は図1に示す第1バイトのデ−タ形式(D0〜
D7でX座標のバイナリ値)ときのみシリアル送信部7
がこの第1バイトをデータ送信する前に奇数パリティの
モードにする。奇数パリティとされた第1バイトは、受
信機器8のパリテイモ−ドが偶数パリティと設定されて
いることから、この受信した第1バイトをパリテイエラ
−と判断する。
At this time, if the serial transmission format of the serial transmission unit 7 and the reception device 8 is set to be used in advance in the mode of 8 bits and even parity, the central processing unit 6 uses the first byte shown in FIG. Data format (D0-
Serial transmission unit 7 only when D7 is a binary value of X coordinate
Puts the first byte into odd parity mode before transmitting data. Since the parity mode of the receiving device 8 is set to even parity, the received first byte is determined to be parity error.

【0009】パリティエラ−が発生した第1バイトが受
信されたときには、受信機器8側では送信される信号を
デジタイザ1の入力盤面2の位置信号と判断する。続け
て第2バイトを送信する前にシリアル送信部7は元の偶
数パリティのモードに戻し、第2バイトデータ、さらに
第3・第4バイトデータを送信する。これにより受信機
器8側では、パリティチェックを行いエラーの発生した
バイトデータを先頭バイトと判別でき、以後送られる3
バイトのデータよりX座標,Y座標の値を受け取ること
ができる。ここで第4バイトのD7のFは従来と同様に
入力ペン3の入力盤面2への当接の状況のフラグであ
る。
When the first byte in which a parity error has occurred is received, the receiving device 8 side determines that the signal to be transmitted is the position signal of the input board surface 2 of the digitizer 1. Before continuously transmitting the second byte, the serial transmission unit 7 returns to the original mode of even parity and transmits the second byte data and further the third and fourth byte data. As a result, on the receiving device 8 side, the byte data in which an error has occurred can be discriminated as the first byte by performing a parity check, and the data will be sent thereafter.
The X and Y coordinate values can be received from the byte data. Here, F of D7 of the 4th byte is a flag of the state of contact of the input pen 3 with the input board surface 2 as in the conventional case.

【0010】第1バイトのD0から第4バイトのD7迄
の信号が受信されると、入力機器8は、第1バイトから
第4バイトの4バイトにより位置信号を特定する。入力
ペン3を位置信号検出でなく、例えばファンクションキ
−として使用する場合は従来通りの文字列の信号を送信
する。
When the signals from D0 of the first byte to D7 of the fourth byte are received, the input device 8 identifies the position signal by the 4 bytes of the first byte to the fourth byte. When the input pen 3 is used not as a position signal detection but as a function key, for example, a conventional character string signal is transmitted.

【0011】[0011]

【発明の効果】本発明によれば複数バイトで構成される
データ群を送信する場合のデータ量を減らすことがで
き、従って送信速度を上げることが出来る。
According to the present invention, the amount of data when transmitting a data group composed of a plurality of bytes can be reduced, and therefore the transmission speed can be increased.

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

【図1】本発明による送信データ形式FIG. 1 is a transmission data format according to the present invention.

【図2】本発明による送信を実現する場合の構成ブロッ
ク図
FIG. 2 is a block diagram of a configuration for realizing transmission according to the present invention.

【図3】1バイトシリアル送信フォーマット図[Figure 3] 1-byte serial transmission format diagram

【図4】従来送信データ形式FIG. 4 Conventional transmission data format

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

1 デジタイザ 2 入力盤面 3 入力ペン 4 座標検出部 5 アドレス変換部 6 中央処理装置 7 シリアル送信部 8 受信機器 1 digitizer 2 input board surface 3 input pen 4 coordinate detection unit 5 address conversion unit 6 central processing unit 7 serial transmission unit 8 receiving device

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】複数バイトで構成される1つのデータを随
時シリアル送信する機器において、複数バイト中の先頭
バイトのみパリティのモ−ドを変更して送信し、受信側
ではパリティチェックにより先頭バイトをパリティエラ
−として認識し、爾後のデ−タのパリティモ−ドを回復
させて送信することを特徴とするシリアルデータ送信方
法。
1. A device for serially transmitting one data composed of a plurality of bytes at any time, only the first byte of the plurality of bytes is changed in parity mode and transmitted, and the receiving side transmits the first byte by a parity check. A serial data transmission method characterized by recognizing as a parity error, recovering the parity mode of the subsequent data and transmitting.
JP7538692A 1992-02-26 1992-02-26 Serial data transmission method Pending JPH05241995A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7538692A JPH05241995A (en) 1992-02-26 1992-02-26 Serial data transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7538692A JPH05241995A (en) 1992-02-26 1992-02-26 Serial data transmission method

Publications (1)

Publication Number Publication Date
JPH05241995A true JPH05241995A (en) 1993-09-21

Family

ID=13574709

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7538692A Pending JPH05241995A (en) 1992-02-26 1992-02-26 Serial data transmission method

Country Status (1)

Country Link
JP (1) JPH05241995A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112882976A (en) * 2020-12-11 2021-06-01 南京交通职业技术学院 Method for reducing memory occupied by single chip microcomputer communication

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112882976A (en) * 2020-12-11 2021-06-01 南京交通职业技术学院 Method for reducing memory occupied by single chip microcomputer communication
CN112882976B (en) * 2020-12-11 2024-04-26 南京交通职业技术学院 Method for reducing memory occupied by singlechip communication

Similar Documents

Publication Publication Date Title
CA1218436A (en) Data transmitting and receiving apparatus
EP0352028B1 (en) Apparatus for transmitting data between a central processor and remote peripheral devices
US5247138A (en) Cordless digitizer stylus status encoding and transmission scheme
JPS602813B2 (en) Computer-to-computer communication method and system
JPS5810236A (en) Interface circuit
JPH05241995A (en) Serial data transmission method
EP0355988A2 (en) Method and apparatus for transmitting and receiving characters using a balanced weight error correcting code
EP0669738A2 (en) System and method for automatically detecting speed, parity, and character length
CN113094319B (en) System and method for synchronously controlling one-way data transmission between two hosts
JP2001075715A (en) Data transmission method for wireless keyboard equipped with track ball
US4977559A (en) Improper bit combination detection circuit
US5394438A (en) Data transmitting method
JP3132203B2 (en) Wireless input device
JP2581705B2 (en) Serial data transfer system
JPH03209941A (en) Data transmitting method
JP2964817B2 (en) Asynchronous serial data transmission method
JPH0444156A (en) Transfer data generating device
JP2712304B2 (en) Data transmission method, data transmission device, data reception method, and data reception device
JPH06103898B2 (en) Parallel transmission method using functions for serial transmission
JP3853465B2 (en) Infrared wireless communication device
JPH0219946A (en) Semiconductor file memory device
JPS61101142A (en) Data protection circuit
JPS60140960A (en) Data transmission system
JPH0481957A (en) Communication controller
JPS6017186B2 (en) Synchronization establishment method