[go: up one dir, main page]

JPH07193614A - Data transmission method - Google Patents

Data transmission method

Info

Publication number
JPH07193614A
JPH07193614A JP5330703A JP33070393A JPH07193614A JP H07193614 A JPH07193614 A JP H07193614A JP 5330703 A JP5330703 A JP 5330703A JP 33070393 A JP33070393 A JP 33070393A JP H07193614 A JPH07193614 A JP H07193614A
Authority
JP
Japan
Prior art keywords
data
transmission
frame
reception
antenna
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
JP5330703A
Other languages
Japanese (ja)
Inventor
Narumitsu Morisawa
考光 森澤
Katsuhiko Tachika
雄彦 田近
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.)
Idec Corp
Original Assignee
Idec Izumi Corp
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 Idec Izumi Corp filed Critical Idec Izumi Corp
Priority to JP5330703A priority Critical patent/JPH07193614A/en
Publication of JPH07193614A publication Critical patent/JPH07193614A/en
Pending legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Abstract

PURPOSE:To efficiently attain data transmission without deterioration in the accuracy by presetting a frame length to a subtraction counter in response to a frame length code in transmission data in a predetermined format and checking a data error after the end of reception. CONSTITUTION:Transmission data from a data carrier of a mobile body 12 are made up of command data including a code representing a frame length in succession to a header, data, and a frame check code or the like at the end of the transmission data. The transmission data are received by an antenna 13, the frame length is preset to a counter based on the frame length code, and the counter is decremented by each reception of 1-byte data. When the count reaches 0, an error is checked based on the frame check code and an and response is sent. the succeeding data are sent with a high efficiency by the system using the format above without deterioration in accuracy because no timer is required.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、送信側と受信側間でデ
ータ更新を行う時のデータ伝送方法に関し、特に、非接
触でデータ伝送が行われ、一方の側はバッテリを内蔵せ
ず相手方から送信された信号の受信信号を充電して回路
への供給電力とする非接触データ通信装置への適用が好
ましいデータ伝送方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data transmission method when data is updated between a transmission side and a reception side, and particularly, data transmission is performed in a non-contact manner, and one side does not have a built-in battery and the other side does not. The present invention relates to a data transmission method, which is preferably applied to a non-contact data communication device that charges a received signal of a signal transmitted from a device to supply power to a circuit.

【0002】[0002]

【従来の技術】一般に、送信側から受信側に対してデー
タを送信する場合、送信データフレームの最後にチェッ
クサムコードやCRCチェックコードを付加する。受信
側では、このコードに基づいて送信データフレームのチ
ェックを行う。
2. Description of the Related Art Generally, when transmitting data from a transmitting side to a receiving side, a checksum code or a CRC check code is added to the end of a transmission data frame. The receiving side checks the transmission data frame based on this code.

【0003】また、最近、工場内のコンベアライン等に
配置され、コンベア上を通過する物品に取り付けられた
タグとそのタグに対向するように配置されたアンテナ部
との間でデータ通信を行う装置が提案されているが、こ
のような装置では、タグとアンテナ間の距離が極めて接
近していることからタグ側にバッテリを内蔵させず、ア
ンテナ側からの送信電力をコンデンサに充電することに
よってタグの回路への供給電力とするものがある(特開
昭62−39927号公報)。また、同公報に示される
非接触式データ交信装置では、タグ側の電源をアンテナ
側からの送信電磁波をコンデンサに充電することによっ
て確保していることに加えて、アンテナ側およびタグ側
の送受信タイミングの制御を行うためにタイマを利用し
ている。すなわち、アンテナ側(第1アンテナコイル)
からのデータ伝送の開始と同時に、タグ側(受信側)で
はタイマの計数を開始し、一定時間を計数した後に返信
を行う。さらにその返信(第2アンテナコイルからの送
信)に割り当てられる時間もタイマの計数時間によって
固定になっている。つまり、伝送フレーム長に関係なく
タイマによって送受信の通信タイムが制御されるように
なっている。
Further, recently, a device which is arranged on a conveyor line or the like in a factory and performs data communication between a tag attached to an article passing on the conveyor and an antenna portion arranged so as to face the tag. However, in such a device, since the tag and the antenna are very close to each other, a battery is not built in the tag side, and the tag is charged by charging the capacitor with the transmission power from the antenna side. There is one that supplies power to the circuit (Japanese Patent Laid-Open No. 62-39927). Further, in the non-contact type data communication device disclosed in the publication, in addition to securing the power source on the tag side by charging the capacitor with electromagnetic waves transmitted from the antenna side, transmission / reception timing on the antenna side and tag side A timer is used to control the. That is, the antenna side (first antenna coil)
Simultaneously with the start of the data transmission from (1), the tag side (reception side) starts counting the timer, and after counting a certain period of time, it returns. Further, the time allotted to the reply (transmission from the second antenna coil) is fixed by the counting time of the timer. That is, the communication time of transmission and reception is controlled by the timer regardless of the transmission frame length.

【0004】[0004]

【発明が解決しようとする課題】上記のように、送信デ
ータフレームの最後の位置にセットされているフレーム
チェックコードは受信側においてチェックされるため
に、受信側では受信データの中からフレームチェックコ
ードを抽出する必要がある。この場合、送信データフレ
ームが中断することなく連続して最後まで送られて来る
場合には、受信データ列の最後の部分のデータがフレー
ムチェックコードと判断できるから、このデータ部分を
抽出してチェックすればよいが、送信データフレームが
断続的に送信されてくる可能性のある場合、受信側では
一旦受信した一群の受信データ列の最後の部分のデータ
をフレームチェックコードと判断することができない。
このような場合には、たとえば、一群の送信データを受
信し終えてその後一定時間受信がない場合に全てのデー
タが受信されたものと判断して、その時の受信データ列
の最後の部分をフレームチェックコードとして抽出する
ような工夫が必要になってくる。
As described above, since the frame check code set at the last position of the transmission data frame is checked by the receiving side, the receiving side receives the frame check code from the received data. Need to be extracted. In this case, if the transmission data frame is continuously sent to the end without interruption, the data of the last part of the reception data string can be judged as the frame check code, so this data part is extracted and checked. However, if the transmission data frame may be transmitted intermittently, the receiving side cannot judge the data of the last part of the reception data string of the group once received as the frame check code.
In such a case, for example, when the reception of a group of transmission data has been completed and no reception has been made for a certain period of time, it is determined that all the data has been received, and the last portion of the reception data sequence at that time is framed. It is necessary to devise a method to extract it as a check code.

【0005】さらに、上記特開昭62−39927号公
報に示されるような、タグ側にバッテリを内蔵させず、
アンテナ側からの送信電力を利用してタグ内の回路への
供給電力を確保するとともに、アンテナ側とタグ側の送
受信タイミングをタイマによって制御する方法では、ア
ンテナ側から送信される送信データフレーム、またはタ
グ側から送信される送信データフレームの長さが一定で
なくても、すなわち送信データフレームの長さが短い場
合にも、タイマによる送受信タイミング制御のために非
送信時間帯が必ず形成され、このため、その時間が無駄
な待機時間となり、特に、アンテナ側とタグ側で何回も
送受信をやり取りする場合にはこの無駄な待機時間が累
積されることになり通信効率が非常に低くなる不都合が
あった。
Further, as shown in the above-mentioned Japanese Patent Laid-Open No. 62-39927, the battery is not built in the tag side,
While securing the power supply to the circuit inside the tag by using the transmission power from the antenna side, in the method of controlling the transmission and reception timing of the antenna side and the tag side by the timer, the transmission data frame transmitted from the antenna side, or Even when the length of the transmission data frame transmitted from the tag side is not constant, that is, even when the length of the transmission data frame is short, the non-transmission time zone is always formed for the transmission / reception timing control by the timer. Therefore, that time becomes a wasteful standby time, and particularly when the antenna side and the tag side repeatedly perform transmission / reception, this wasteful standby time is accumulated, and the communication efficiency becomes extremely low. there were.

【0006】また、タイマの精度が悪い場合には、双方
の伝送のタイミングがずれてしまうことがあり、このよ
うな場合にはアンテナ側とタグ側で同時に送信する事態
となって、通信障害を発生する問題もあった。
Further, when the accuracy of the timer is low, the transmission timings of both sides may be deviated. In such a case, the antenna side and the tag side simultaneously transmit, resulting in a communication failure. There was also a problem that occurred.

【0007】本発明の目的は、送信データフレームを受
信し終えた時に直ちに送信側に対し応答信号等の新たな
送信データフレームを送信することができ、通信効率の
改善されたデータ伝送方法を提供することにある。
An object of the present invention is to provide a data transmission method in which a new transmission data frame such as a response signal can be transmitted to the transmitting side immediately after the reception of the transmission data frame, and the communication efficiency is improved. To do.

【0008】本発明の更に他の目的は、送信側からの送
信データフレームを受信し終えた時に直ちに伝送フレー
ムのチェックを行うことができ、伝送フレームデータの
チェックを容易にし且つ伝送フレームデータの信頼性を
向上するデータ伝送方法を提供することにある。
Still another object of the present invention is to make it possible to check the transmission frame immediately after receiving the transmission data frame from the transmitting side, facilitating the check of the transmission frame data and reliability of the transmission frame data. Another object of the present invention is to provide a data transmission method that improves the quality.

【0009】本発明の更に他の目的は、受信側の動作電
源を送信側からの送信電力で確保するようにし、送受信
タイミングをタイマで監視するすることなく確実なデー
タ通信を行うことのできるデータ伝送方法を提供するこ
とにある。
Still another object of the present invention is to secure the operating power source on the receiving side by the transmission power from the transmitting side, and to perform data communication without monitoring the transmission / reception timing with a timer. It is to provide a transmission method.

【0010】[0010]

【課題を解決するための手段】本発明に係るデータ伝送
方法は、送信データフレームの初めの位置にフレーム長
を示すフレーム長データをセットしていることを特徴と
している。そして、受信側で前記フレーム長データを受
信した時に、そのフレーム長データの相当値をカウンタ
にプリセットし、その後のデータの受信にしたがって該
カウンタを減算していき、カウント値がプリセット値を
計数し終えた時送信データフレームを全て受信したもの
と判定して送信データフレーム受信後の次のデータ処理
に移る。送信データフレーム受信後の次のデータ処理と
しては、送信側に対するレスポンス等新たな送信データ
フレームの送信処理や、送信データフレームの最後の位
置にセットされているフレームチェックコードに基づく
伝送データフレームのチェック処理(誤り検出処理)を
含んでいる。
A data transmission method according to the present invention is characterized in that frame length data indicating a frame length is set at a first position of a transmission data frame. Then, when the frame length data is received on the receiving side, the corresponding value of the frame length data is preset in the counter, the counter is decremented as the data is received thereafter, and the count value counts the preset value. When the transmission is completed, it is determined that all the transmission data frames have been received, and the process proceeds to the next data processing after receiving the transmission data frames. The next data processing after receiving the transmission data frame is the transmission processing of a new transmission data frame such as a response to the transmission side and the transmission data frame check based on the frame check code set at the last position of the transmission data frame. It includes processing (error detection processing).

【0011】また、送信側から送られてくる送信データ
フレームの受信信号の電力をコンデンサに充電し、この
充電電力を電源として回路に供給するようにして、受信
側でのバッテリを不要にしている。
Further, the power of the reception signal of the transmission data frame sent from the transmission side is charged in the capacitor, and this charging power is supplied to the circuit as a power source, thereby eliminating the need for a battery on the reception side. .

【0012】[0012]

【作用】送信側から送信される送信データフレームの初
めの位置にフレーム長を示すフレーム長データをセット
することにより、受信側で受信し始めた時に最初にフレ
ーム長データを受信することができる。このフレーム長
データを最初に受信することにより、その段階で送信デ
ータフレームの最終位置、すなわち全ての受信データが
受信し終える時を知ることができる。すなわち、フレー
ム長データを受信した時にそのフレーム長データの相当
値をカウンタにプリセットし、以後そのプリセット値を
受信データを受信していくに従って減算していくことに
より、全ての受信データが受信し終えたかどうかをカウ
ント値にプリセットした値が計数し終えたかどうかで判
定することができる。したがって、送信データフレーム
が途中で途切れた場合、その時点が送信データフレーム
の最終なのかどうかを受信側では知ることかできるか
ら、全てのデータを受信し終えた時に確実に次のデータ
処理に移ることができるようになる。そして、全ての送
信データフレームを受信した直後に行うデータ処理とし
ては、その送信データフレームに対するレスポンス(応
答信号)等の新たな送信データフレームを送信する処理
や、前記送信データフレームの最終位置にセットされて
いるフレームチェックコードに基づく伝送フレームチェ
ック処理(誤り検出処理)が含まれる。
By setting the frame length data indicating the frame length at the beginning of the transmission data frame transmitted from the transmitting side, the frame length data can be received first when the receiving side starts receiving. By receiving this frame length data first, it is possible to know at that stage the final position of the transmission data frame, that is, the time when all the reception data have been received. That is, when the frame length data is received, the corresponding value of the frame length data is preset in the counter, and thereafter, the preset value is subtracted as the received data is received, whereby all the received data have been received. It can be determined whether or not the value preset to the count value has finished counting. Therefore, when the transmission data frame is interrupted in the middle, the receiving side can know whether or not the time point is the end of the transmission data frame, and when all the data has been received, the next data processing is surely performed. Will be able to. Then, as the data processing performed immediately after receiving all the transmission data frames, there are processing for transmitting a new transmission data frame such as a response (response signal) to the transmission data frame, and setting at the final position of the transmission data frame. The transmission frame check process (error detection process) based on the established frame check code is included.

【0013】また、送信側から送られてくる送信データ
フレームの受信信号を整流してコンデンサに充電してお
くことにより、全ての送信データフレームを受信し終え
た時からそのコンデンサの充電電力により、送信側に対
するレスポンス等の新たな送信データフレームの生成を
行い、またフレームチェックコードに基づく伝送データ
チェック(誤り検出)処理を行う制御部に対する電力を
このコンデンサの充電電力によって確保することができ
る。この場合、コンデンサは、送信側に対して送るレス
ポンス等を含む新たな送信データフレームのうち最大長
のフレームを送信するのに必要なエネルギ量を蓄積でき
る容量であればよい。また、送信側から送信する送信デ
ータフレームの長さは、前記コンデンサの充電波形の立
ち上がり時間(充電完了までの所要時間)より少なくと
も長い時間であればよい。なお、フレームチェックコー
ドに基づく伝送データチェック処理をデータ受信中に行
うことも出来る。このようにすると、コンデンサは整流
電圧を平滑し安定化する平滑コンデンサとなる。
Further, by rectifying the received signal of the transmission data frame sent from the transmission side and charging it in the capacitor, the charging power of the capacitor from the time when all the transmission data frames have been received, It is possible to secure power for the control unit that generates a new transmission data frame such as a response to the transmission side and that performs a transmission data check (error detection) process based on the frame check code by the charging power of this capacitor. In this case, the capacitor only needs to have a capacity capable of accumulating the amount of energy required to transmit the maximum length frame of the new transmission data frame including the response to be transmitted to the transmitting side. Further, the length of the transmission data frame transmitted from the transmission side may be at least a time longer than the rising time of the charging waveform of the capacitor (time required until completion of charging). The transmission data check process based on the frame check code can be performed during data reception. By doing so, the capacitor becomes a smoothing capacitor that smoothes and stabilizes the rectified voltage.

【0014】[0014]

【実施例】図1は、本発明に係るデータ伝送方法が実施
される装置の構成図である。この装置は、コンベア10
上を移動する移動体(物品)11の側面に取り付けられ
ているデータキャリア(タグ)12と、このデータキャ
リア12に対して近接対向する位置に配置されるアンテ
ナ13と、このアンテナ13と図外のホストコントロー
ラ(プログラマブルコントローラ等で構成される)とを
接続する伝送ライン14とで構成されている。
1 is a block diagram of an apparatus in which a data transmission method according to the present invention is implemented. This device is a conveyor 10
A data carrier (tag) 12 attached to a side surface of a moving body (article) 11 moving above, an antenna 13 arranged in a position closely facing the data carrier 12, and the antenna 13 and the outside of the drawing. And a transmission line 14 for connecting to a host controller (which is composed of a programmable controller or the like).

【0015】アンテナ13は図に示す通信エリア15を
有し、この通信エリア15内にデータキャリア12が移
動してくると、その存在を検出してデータキャリア12
との間で通信を行う。データキャリア12とアンテナ1
3の構成は、それぞれ図2に示すようになっている。す
なわち、データキャリア12は、アンテナ13側に送信
すべきデータを記憶したり、アンテナ13から受信した
データを格納する領域などが割り当てられているメモリ
12aと、送受信回路12cに対し送信すべきデータを
送ったり、送受信回路12cで受信したデータを取り込
んでメモリ12aに記憶したりする制御を行う制御回路
12bと、アンテナ側の送受信回路と電磁結合によって
通信を行う送受信回路12cと、これらの要素に対して
電源を供給する電源12dとで構成される。なお、後述
するように電源12dはアンテナ側から送られてきた送
信データフレームを電力として蓄積するコンデンサを含
んでおり、このコンデンサの充電電力によって各要素を
駆動するようにしている。
The antenna 13 has a communication area 15 shown in the figure. When the data carrier 12 moves into the communication area 15, its presence is detected and the data carrier 12 is detected.
Communicate with. Data carrier 12 and antenna 1
The configurations of 3 are as shown in FIG. That is, the data carrier 12 stores the data to be transmitted on the side of the antenna 13 and the memory 12a to which the area for storing the data received from the antenna 13 is allocated and the data to be transmitted to the transmission / reception circuit 12c. A control circuit 12b for controlling sending and receiving data received by the transmission / reception circuit 12c and storing it in the memory 12a, a transmission / reception circuit 12c for communicating with the transmission / reception circuit on the antenna side by electromagnetic coupling, and these elements Power supply 12d for supplying power. As will be described later, the power supply 12d includes a capacitor that stores the transmission data frame sent from the antenna side as electric power, and each element is driven by the charging power of this capacitor.

【0016】アンテナ13は、データキャリア12の送
受信回路12cと電磁結合することによって通信を行う
送受信回路13cと、この送受信回路13cに接続さ
れ、データの送信制御または受信制御を行ったりホスト
側との間でデータのやり取りを行うための制御を行う制
御回路13bと、伝送ライン14に接続され、ホスト側
との間でデータの受渡しのためのインターフェイスを行
うインターフェイス13aと、これらの要素に対して電
源電圧を供給する電源13dとで構成される。
The antenna 13 is connected to the transmission / reception circuit 13c for performing communication by electromagnetically coupling with the transmission / reception circuit 12c of the data carrier 12, and is connected to the transmission / reception circuit 13c to control data transmission or reception and to communicate with the host side. A control circuit 13b for performing control for exchanging data with each other, an interface 13a connected to the transmission line 14 for performing an interface for exchanging data with the host side, and a power supply for these elements. It is composed of a power supply 13d for supplying a voltage.

【0017】図3は、データキャリア12の詳細な構成
図を示す。送受信回路12cは、電磁結合用のコイルL
2とコンデンサC1からなり、アンテナ側のコイルL1
を含む送受信回路と共振結合することによりデータ通信
を行うことができるようになっている。電源12dはダ
イオードD1、コンデンサC2および定電圧回路12f
から構成されている。ダイオードD1はコンデンサC1
とコイルL2の送受信回路でアンテナからの送信データ
を受信している時の信号電流を整流し、コンデンサC2
がその電流を充電する。また、定電圧回路12fはコン
デンサC2での充電電圧を定電圧化して制御回路12
b,メモリ12aおよびその他の回路に電源電圧として
出力する。受信信号を増幅するアンプAの出力は制御回
路12bに入力し、また制御回路12bからは送信デー
タがトランジスタTr1に出力されようになっている。
したがって、受信時には波形整形と信号復調を行う復調
回路Aから受信データが制御回路12bに入力し、送信
時には制御回路12bから送信データがトランジスタT
r1に出力されることにより、トランジスタTr1によ
り送信データが変調を受けてL2,C1の共振回路から
電磁波として出力される。このときの電源電圧はコンデ
ンサC2から供給される。
FIG. 3 shows a detailed block diagram of the data carrier 12. The transmitter / receiver circuit 12c includes a coil L for electromagnetic coupling.
2 and capacitor C1 and coil L1 on the antenna side
It is possible to perform data communication by resonantly coupling with a transmission / reception circuit including. The power supply 12d includes a diode D1, a capacitor C2 and a constant voltage circuit 12f.
It consists of Diode D1 is capacitor C1
The signal current when receiving transmission data from the antenna is rectified by the transmission / reception circuit of the coil L2 and the capacitor C2.
Charges that current. In addition, the constant voltage circuit 12f converts the charging voltage of the capacitor C2 into a constant voltage to control the control circuit 12f.
b, output to the memory 12a and other circuits as a power supply voltage. The output of the amplifier A that amplifies the received signal is input to the control circuit 12b, and the transmission data is output from the control circuit 12b to the transistor Tr1.
Therefore, the reception data is input to the control circuit 12b from the demodulation circuit A that performs waveform shaping and signal demodulation during reception, and the transmission data is transmitted from the control circuit 12b to the transistor T during transmission.
By being output to r1, the transmission data is modulated by the transistor Tr1 and is output as an electromagnetic wave from the resonant circuit of L2 and C1. The power supply voltage at this time is supplied from the capacitor C2.

【0018】図4は、上記の回路構成でアンテナ13か
らタグのデータキャリア12に対し、長さの異なる3つ
のデータフレームを送信する時のタイムチャートを示し
ている。
FIG. 4 shows a time chart when three data frames having different lengths are transmitted from the antenna 13 to the data carrier 12 of the tag with the above circuit configuration.

【0019】同図に示すように、アンテナ13からデー
タフレームが送信されるとその受信電流をコンデンサC
2に充電するとともにそのコンデンサC2を電源として
受信データを制御回路12bに送り、且つデータフレー
ムを全て受信し終えた時にアンテナに対してレスポンス
のデータフレームを送信する。この場合、3つのデータ
フレームの長さはそれぞれ異なっているが、データキャ
リア12では、それぞれのデータフレームが終了した段
階で直ちにレスポンスを送っている。このように、デー
タフレームの長短に関わらず、データフレームの受信を
し終わった直後に直ちにレスポンスを送信できるが、こ
の理由は、データフレームの初めの位置にフレーム長を
示すフレーム長データがセットされており、データキャ
リア12側では、データフレームを受信し始めた時にデ
ータフレーム長を予め知ることができるからである。す
なわち、データフレームを受信し始めた時にデータフレ
ームの最終位置を予め知ることができるから、その最終
位置になった時点で該データフレームの最終位置に配置
されているフレームチェックコードから誤り検出を直ち
に行い、且つレスポンスを含む送信データもその時から
直ちにアンテナ13側に対して送信できるからである。
As shown in the figure, when a data frame is transmitted from the antenna 13, the received current is transferred to the capacitor C.
When the capacitor C2 is charged to 2, the received data is sent to the control circuit 12b by using the capacitor C2 as a power source, and a response data frame is transmitted to the antenna when all the data frames have been received. In this case, although the lengths of the three data frames are different from each other, the data carrier 12 immediately sends a response when each data frame is completed. In this way, regardless of the length of the data frame, the response can be sent immediately after the reception of the data frame is finished, but the reason is that the frame length data indicating the frame length is set at the beginning position of the data frame. This is because the data carrier 12 side can know the data frame length in advance when receiving the data frame. That is, since the final position of the data frame can be known in advance when the reception of the data frame is started, error detection is immediately performed from the frame check code arranged at the final position of the data frame when the final position is reached. This is because the transmitted data including the response can be immediately transmitted to the antenna 13 side from that time.

【0020】図5は、送信データフレームのフォーマッ
トを示している。同図に示すように、最初にヘッダ部が
あり、続いてデータフレームの長さを示すフレーム長デ
ータが含まれているコマンドコードが配置され、その後
にデータ本体部が割り当てられ、最後にフレームチェッ
クコード(CRCコード等)が配置されている。データ
はヘッダ部から順次送られていき、フレームチェックコ
ードを送信し終えると送信が終了する。したがってデー
タキャリア側では、ヘッダを受信した直後にコマンドコ
ード、すなわちフレーム長データを獲得できるため、フ
レーム長データを受信した段階でデータ本体部の長さが
どれだけであってもフレームチェックコードの最終位置
を事前に知ることができる。すなわち、データキャリア
側では、フレームチェックコードを受信した直後にアン
テナに対してレスポンスを送ることができるとともにフ
レームチェックコードによる誤り検出も直ぐに行える。
上記の動作につき、図6,図7のフローチャートを参照
して説明する。
FIG. 5 shows the format of the transmission data frame. As shown in the figure, there is a header section first, followed by a command code containing frame length data indicating the length of the data frame, followed by the data body section, and finally the frame check. A code (CRC code or the like) is arranged. The data is sequentially sent from the header part, and the transmission ends when the frame check code is completely transmitted. Therefore, on the data carrier side, the command code, that is, the frame length data, can be acquired immediately after receiving the header, and therefore the last of the frame check code can be obtained regardless of the length of the data body at the stage of receiving the frame length data. You can know the position in advance. That is, on the data carrier side, a response can be sent to the antenna immediately after receiving the frame check code, and error detection by the frame check code can be immediately performed.
The above operation will be described with reference to the flowcharts of FIGS.

【0021】図6はアンテナ13の動作を示し、図7は
データキャリア12の動作を示している。
FIG. 6 shows the operation of the antenna 13, and FIG. 7 shows the operation of the data carrier 12.

【0022】アンテナ13側においてデータキャリア側
に対する送信データを準備すると、図5に示すデータフ
レームを編集し、n1でコマンドデータとしての送信処
理を行う。なお、アンテナ13は通信エリア15内にデ
ータキャリア12が移動してきたかどうかを検出してか
らコマンドの送信を行うものではなく、通信エリア15
に対し一定時間ごとに常にコマンド送信処理を行う。な
お、アンテナ13の上流側に光電センサを配置してお
き、このセンサでデータキャリアの到来を検出してから
コマンド送信処理を開始させることも可能である。そし
て、レスポンスがあれば、すなわち通信エリア15内に
データキャリア12が移動してきて通信可能となれば直
ちにデータ通信が行われ、データキャリア12側から送
信されてくるレスポンスの送信データフレームを受信
し、n3で、そのレスポンスの受信を開始する。
When the antenna 13 side prepares the transmission data for the data carrier side, the data frame shown in FIG. 5 is edited and the transmission processing as command data is performed at n1. It should be noted that the antenna 13 does not transmit the command after detecting whether the data carrier 12 has moved into the communication area 15;
On the other hand, command transmission processing is always performed at regular intervals. It is also possible to dispose a photoelectric sensor on the upstream side of the antenna 13 and start the command transmission process after the arrival of the data carrier is detected by this sensor. Then, if there is a response, that is, if the data carrier 12 moves into the communication area 15 and communication becomes possible, data communication is immediately performed, and a transmission data frame of the response transmitted from the data carrier 12 side is received, At n3, the reception of the response is started.

【0023】一方、データキャリア(タグ)12側で
は、上記アンテナ13側からコマンドが送信されてくる
のを受信すると、n20でその受信を検出し、コマンド
の受信を開始する。図5に示すようにデータフレームは
最初にヘッダ部があり、その後にフレーム長データを含
むコマンドコードが配置されているために、データ本体
部を受信する前に、コマンドコードを受信し終えた段階
で現在送信されてきている送信データフレームのフレー
ム長を確認することができる(n22)。そして、この
フレーム長を確認すると、制御回路12b内に設けられ
ているカウンタにフレーム長をプリセットし、その後1
バイト分のデータ受信ごとにカウンタ値を1バイト分減
らしていく(n23)。そして、カウンタがゼロになっ
たかどうかをn24で判定する。すなわち、ここでは送
信されてきたデータフレームが全て受信されたかどうか
を判定する。全てのデータフレームが受信されたと判定
すると、通信エラー有無の判定を行う。この判定は、デ
ータフレームの最後の位置に配置されているCRCコー
ド等のフレームチェックコードによる誤り検出による。
通信エラーがあれば、n27に進み、エラー処理を行
う。この場合、リトライを行うようにアンテナ13側に
対してNACK信号を送信するようにしてもよい。通信
エラーがなければ、コマンドコードに対応するメモリリ
ードライト処理を行う。すなわち、コマンドコードが書
き込み命令であれば、コマンドコードに続いて送られて
くるデータをメモリに書き込み、続いてレスポンスのみ
アンテナ13側に送信し、読出しコマンドであった場合
には、レスポンスデータとメモリ12aから読み出した
データとをレスポンスとしてアンテナ13側に送信す
る。
On the other hand, when the data carrier (tag) 12 side receives the command transmitted from the antenna 13 side, the reception is detected at n20 and the command reception is started. As shown in FIG. 5, the data frame has a header part first, and a command code including frame length data is arranged after that, so that the command code has been received before the data body part is received. The frame length of the transmission data frame currently transmitted can be confirmed at (n22). Then, when this frame length is confirmed, the frame length is preset in the counter provided in the control circuit 12b, and then 1
The counter value is decremented by 1 byte each time the byte data is received (n23). Then, it is determined in n24 whether the counter has reached zero. That is, it is determined here whether all the transmitted data frames have been received. When it is determined that all data frames have been received, it is determined whether or not there is a communication error. This determination is based on error detection by a frame check code such as a CRC code arranged at the last position of the data frame.
If there is a communication error, the process proceeds to n27 and error processing is performed. In this case, the NACK signal may be transmitted to the antenna 13 side so as to perform the retry. If there is no communication error, memory read / write processing corresponding to the command code is performed. That is, if the command code is a write command, the data sent after the command code is written in the memory, and then only the response is sent to the antenna 13 side. If the command is a read command, the response data and the memory are sent. The data read from 12a is transmitted to the antenna 13 side as a response.

【0024】以上の動作により、データキャリア12
(タグ)では、アンテナ13から送られてくる送信デー
タフレームの初めの部分に位置しているコマンドコード
を受信した段階で直ちにフレームチェックコードの受信
位置が分かるために、このフレームチェックコードを受
信した直後に直ちに誤り検出を行うとともに、レスポン
スの新たな送信データフレームを作成して返信すること
ができる。
By the above operation, the data carrier 12
The (tag) received this frame check code because the reception position of the frame check code was immediately known when the command code located at the beginning of the transmission data frame sent from the antenna 13 was received. Immediately after that, error detection can be performed immediately, and a new transmission data frame of the response can be created and returned.

【0025】また、図3に示すように、データキャリア
12(タグ)はバッテリを備えず、アンテナ13から送
信されてくる送信データフレームの受信信号の電力を充
電したコンデンサC2を電源として回路を駆動し、また
このコンデンサを電源としてアンテナ13aへのレスポ
ンスの送信電力を供給するようにしているが、このコン
デンサC2は、データキャリアがアンテナ側に対して送
信する最大のレスポンスフレーム長に必要なエネルギを
少なくとも供給できる電荷を充電できるものであればよ
い(制御回路12bやメモリ12a等への供給電力は送
信電力に比べて極めて小さい)。図8において、アンテ
ナ13から送られるコマンドの内最長のフレーム長のも
のをC1、最短のフレーム長のものをC2とし、データ
キャリア(タグ)12側からのレスポンスのデータフレ
ームの最長ものをR2とすると、コンデンサC2の充電
電位は図に示すように変化する。ここで、データキャリ
ア12で最長のデータフレーム長を有するレスポンスR
2を送信するのに必要な充電電位がVmin とすると、図
に示すように、コンデンサC2の充電電位は最長のデー
タフレーム長のレスポンスR2が送信し終えた時にその
充電電圧がVmin を越える大きさであればよいことにな
る。今、仮にアンテナ13からの送信データフレーム長
がコマンドによって変動するものとし、また、レスポン
ス長もコマンドによって変動するものとすれば、書き込
みコマンドの場合書き込みデータが付属するためにデー
タフレーム長が長くなり、読み出しコマンドの場合に
は、読み出したデータをつけてレスポンスするために、
その時のレスポンスのデータフレーム長が長くなる。こ
のような場合には、図8のコマンドC2を読み出しコマ
ンドとすれば、それに対するレスポンスR2のデータフ
レーム長が最も長くなるものと考えられるために、コン
デンサC2の容量はデータキャリア12からアンテナ1
3に対して送信する読出しデータの最長のものを基準に
して決めればよい。
As shown in FIG. 3, the data carrier 12 (tag) does not include a battery, and the circuit is driven by using the capacitor C2 charged with the power of the reception signal of the transmission data frame transmitted from the antenna 13 as a power source. In addition, this capacitor is used as a power source to supply the transmission power of the response to the antenna 13a, but this capacitor C2 supplies the energy required for the maximum response frame length transmitted by the data carrier to the antenna side. It is sufficient that at least the charge that can be supplied is charged (the power supplied to the control circuit 12b, the memory 12a, etc. is extremely smaller than the transmission power). In FIG. 8, the longest frame length command sent from the antenna 13 is C1, the shortest frame length command is C2, and the longest data frame of the response from the data carrier (tag) 12 is R2. Then, the charging potential of the capacitor C2 changes as shown in the figure. Here, the response R having the longest data frame length in the data carrier 12
Assuming that the charging potential required to transmit 2 is V min , the charging potential of the capacitor C2 exceeds V min when the response R2 having the longest data frame length has been transmitted, as shown in the figure. Any size is fine. If the transmission data frame length from the antenna 13 fluctuates according to the command and the response length also fluctuates according to the command, the data frame length increases because the write data is attached in the case of the write command. In the case of a read command, in order to respond by attaching the read data,
The data frame length of the response at that time becomes long. In such a case, if the command C2 of FIG. 8 is used as the read command, the data frame length of the response R2 for it is considered to be the longest, and therefore the capacitance of the capacitor C2 is changed from the data carrier 12 to the antenna
It may be determined based on the longest read data to be transmitted to No. 3.

【0026】上記アンテナ13の動作を示すフローチャ
ート図6に戻って、データキャリア(タグ)12からレ
スポンスが返信されてくると、アンテナ13ではそのレ
スポンスの受信をn3で開始する。以下、データキャリ
ア(タグ)12のn22以下の動作と同様に、n4でデ
ータフレーム長を確認し、さらにカウンタに対する処理
を行ってデータフレームを全て受信したかどうかをカウ
ンタの計数値で確認し、その直後に直ちに誤り検出を行
うとともに、ホスト側に対し必要なデータを伝送する。
そして、さらにコマンドが継続する場合には再びn1か
らの動作を行う。
Flowchart showing the operation of the antenna 13 Returning to FIG. 6, when a response is returned from the data carrier (tag) 12, the antenna 13 starts receiving the response at n3. Hereinafter, similar to the operation of n22 and below of the data carrier (tag) 12, the data frame length is confirmed at n4, and further processing is performed on the counter to confirm whether or not all the data frames have been received, by the count value of the counter, Immediately after that, error detection is immediately performed, and necessary data is transmitted to the host side.
Then, when the command is further continued, the operation from n1 is performed again.

【0027】なお、データキャリア(タグ)12の電源
12d内に設けられる定電圧回路12fに、電源安定化
のためのコンデンサを設けるとともに、トランジスタT
r1を放電経路とする放電によって定電圧回路の一次側
の電圧が低下しないように逆流防止回路を設けることに
より、L2,C1の共振回路の電圧変動の影響が定電圧
回路の二次側に及ぶことを防ぐことができる。
A constant voltage circuit 12f provided in the power supply 12d of the data carrier (tag) 12 is provided with a capacitor for stabilizing the power supply and the transistor T
By providing the backflow prevention circuit so that the voltage on the primary side of the constant voltage circuit does not drop due to the discharge using r1 as the discharge path, the influence of the voltage fluctuation of the resonant circuit of L2 and C1 affects the secondary side of the constant voltage circuit. Can be prevented.

【0028】また、上記の実施例では、データキャリア
の電源12dをバッテリを具備しない回路で構成した
が、本発明の方式が適用されるシステムによってはこれ
をバッテリで構成することも可能である。バッテリで構
成する場合には、コンデンサC2、ダイオードD1およ
び定電圧回路12fは不要で、この部分にバッテリが直
接接続される。電源12dをバッテリが構成しても、デ
ータフレームの送受信タイミングに時間的無駄がなく、
効率のよい通信を実現できる本発明の効果を達成するこ
とが可能である。
Further, in the above embodiment, the power supply 12d of the data carrier is constituted by a circuit which does not include a battery, but it may be constituted by a battery depending on the system to which the method of the present invention is applied. When the battery is used, the capacitor C2, the diode D1 and the constant voltage circuit 12f are unnecessary, and the battery is directly connected to this portion. Even if the battery constitutes the power source 12d, there is no waste of time in the transmission / reception timing of the data frame,
It is possible to achieve the effect of the present invention that can realize efficient communication.

【0029】[0029]

【発明の効果】本発明では、送信側から送られてくる送
信データフレームの最初の受信段階でその送信データフ
レームの長さ、すなわちチェックコードのある最終デー
タ部分の位置が分かるために、送信データフレームを全
て受信した直後に直ちにレスポンス等の返信処理(送信
側に対する新たな送信データフレームの送信処理)を行
うことができ、且つ、誤り検出も直ちに行うことができ
る。このため、送受信タイミングに時間的な無駄が全く
なくなり、極めて効率のよいデータ伝送を実現できる効
果がある。また、送受信タイミングに従来のようなタイ
マを使用していないために、タイマを使うことによるそ
の精度に起因する通信障害の発生を未然に防ぐことがで
き、伝送の信頼性が高くなる効果がある。さらに、送信
データフレームが途中で切れ、ある時間をおいて再送さ
れるようなものであっても、最初のフレームを受信した
段階で最後に送られてくるフレームチェックコードの位
置が分かるから、途中のフレーム受信段階で誤り検出を
行うことはなく、最後のフレーム受信段階で正しく誤り
検出を行うことができる。すなわち、フレームチェック
コードによる誤り検出が極めてやりやすく、且つ確実に
行われるために伝送データの信頼性が向上する利点があ
る。
According to the present invention, since the length of the transmission data frame sent from the transmitting side, that is, the position of the last data portion having the check code, is known at the first reception stage, the transmission data Immediately after receiving all the frames, it is possible to immediately perform response processing such as a response (transmission processing of a new transmission data frame to the transmission side), and error detection can be performed immediately. Therefore, there is no waste of time in transmission / reception timing, and there is an effect that extremely efficient data transmission can be realized. Further, since the conventional timer is not used for the transmission / reception timing, it is possible to prevent the occurrence of a communication failure due to the accuracy of the timer, which has the effect of increasing the reliability of the transmission. . Furthermore, even if the transmission data frame is cut off in the middle and retransmitted after a certain period of time, the position of the frame check code sent last when the first frame is received is known. The error detection is not performed in the frame receiving stage, and the error can be correctly detected in the last frame receiving stage. That is, there is an advantage that the reliability of the transmission data is improved because the error detection by the frame check code is extremely easy and surely performed.

【0030】また、本発明の方法を、受信信号を充電し
たコンデンサの充電電力を電源として駆動するものに適
用すれば、通信時間が短くてすむためにコンデンサの充
放電エネルギ量の最適化の設計が可能になり、充電用の
コンデンサの容量を小さくできるなどの利点がある。
Further, if the method of the present invention is applied to the one in which the charging power of the capacitor charged with the received signal is driven as the power source, it is possible to design the optimization of the charge / discharge energy amount of the capacitor in order to shorten the communication time. It is possible, and there is an advantage that the capacity of the charging capacitor can be reduced.

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

【図1】本発明に係るデータ伝送方法が適用される装置
の構成図を示す。
FIG. 1 shows a block diagram of an apparatus to which a data transmission method according to the present invention is applied.

【図2】図1に示す装置のブロック図を示す。FIG. 2 shows a block diagram of the device shown in FIG.

【図3】データキャリア(タグ)のさらに詳細な構成図
を示す。
FIG. 3 shows a more detailed block diagram of a data carrier (tag).

【図4】アンテナとデータキャリア(タグ)間のデータ
伝送タイミングとコンデンサの充電電圧の変化を示す
図。
FIG. 4 is a diagram showing a data transmission timing between an antenna and a data carrier (tag) and changes in a charging voltage of a capacitor.

【図5】送信データフレームのフォーマットを示す。FIG. 5 shows a format of a transmission data frame.

【図6】アンテナの動作を示すフローチャート。FIG. 6 is a flowchart showing the operation of the antenna.

【図7】データキャリア(タグ)の動作を示すフローチ
ャート。
FIG. 7 is a flowchart showing the operation of the data carrier (tag).

【図8】最長のデータフレーム長を持つコマンドおよび
最長のデータフレーム長を持つレスポンスに対するコン
デンサC2の充電電圧の変化を示す図である。
FIG. 8 is a diagram showing changes in the charging voltage of the capacitor C2 with respect to a command having the longest data frame length and a response having the longest data frame length.

─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成6年1月17日[Submission date] January 17, 1994

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】図面[Document name to be corrected] Drawing

【補正対象項目名】図8[Correction target item name] Figure 8

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図8】 ─────────────────────────────────────────────────────
[Figure 8] ─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成6年1月18日[Submission date] January 18, 1994

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】図面[Document name to be corrected] Drawing

【補正対象項目名】図8[Correction target item name] Figure 8

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図8】 [Figure 8]

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】送信側から送信する送信データフレームの
初めの位置にフレーム長を示すフレーム長データをセッ
トし、受信側で前記フレーム長データを受信した時、そ
のフレーム長データの相当値をカウンタにプリセットす
るとともにその後のデータの受信に従って該カウンタを
減算していき、カウント値が前記プリセットした値を計
数し終えた時送信データフレームを全て受信したものと
判定して、送信データフレーム受信後の次のデータ処理
に移ることを特徴とする、データ伝送方法。
1. A frame length data indicating a frame length is set at a first position of a transmission data frame transmitted from a transmission side, and when the reception side receives the frame length data, a counter value corresponding to the frame length data is counted. When the count value has finished counting the preset value, it is determined that all the transmission data frames have been received, and the transmission data frame is received after the transmission data frame is received. A data transmission method, characterized in that the process proceeds to the next data processing.
【請求項2】前記送信データフレーム受信後の次のデー
タ処理は、前記送信側に対する新たな送信データフレー
ムの送信処理である請求項1のデータ伝送方法。
2. The data transmission method according to claim 1, wherein the next data processing after the reception of the transmission data frame is a transmission processing of a new transmission data frame to the transmission side.
【請求項3】前記送信データフレーム受信後の次のデー
タ処理は、前記送信データフレームの最後の位置にセッ
トされているフレームチェックコードに基づく伝送フレ
ームチェック処理である請求項1記載のデータ伝送方
法。
3. The data transmission method according to claim 1, wherein the next data processing after receiving the transmission data frame is a transmission frame check processing based on a frame check code set at the last position of the transmission data frame. .
【請求項4】前記送信データフレームの受信信号の電力
をコンデンサへ充電し、その充電電力を電源として回路
に供給する請求項1記載のデータ伝送方法。
4. The data transmission method according to claim 1, wherein a capacitor is charged with electric power of a reception signal of the transmission data frame, and the charging electric power is supplied to a circuit as a power source.
JP5330703A 1993-12-27 1993-12-27 Data transmission method Pending JPH07193614A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5330703A JPH07193614A (en) 1993-12-27 1993-12-27 Data transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5330703A JPH07193614A (en) 1993-12-27 1993-12-27 Data transmission method

Publications (1)

Publication Number Publication Date
JPH07193614A true JPH07193614A (en) 1995-07-28

Family

ID=18235621

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5330703A Pending JPH07193614A (en) 1993-12-27 1993-12-27 Data transmission method

Country Status (1)

Country Link
JP (1) JPH07193614A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004030561A (en) * 1995-08-04 2004-01-29 Hill Rom Co Inc System of bed state information for hospital bed
WO2017199762A1 (en) * 2016-05-18 2017-11-23 ソニーセミコンダクタソリューションズ株式会社 Communication device, communication method, program, and communication system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004030561A (en) * 1995-08-04 2004-01-29 Hill Rom Co Inc System of bed state information for hospital bed
WO2017199762A1 (en) * 2016-05-18 2017-11-23 ソニーセミコンダクタソリューションズ株式会社 Communication device, communication method, program, and communication system

Similar Documents

Publication Publication Date Title
US9774373B2 (en) Method and apparatus for wirelessly transmitting energy based on frame
US6871078B2 (en) Wireless communication device capable of controlling transmission power and transmission power control method therefor and wireless communication system employing the same
EP2347522B1 (en) Electronic devices and methods that communicate via transferjet and nfc transmitter and receiver pairing
US20060152342A1 (en) Reading protocol for transponders of electronic identification system
US5036308A (en) Identification system
EP1137151A1 (en) Power saving circuit
US9099878B2 (en) Wireless power transmitter and wireless power transceiver
TWI493825B (en) Operating clock synchronization adjusting method and synchronous data transmitting for wireless power system
CN116671027B (en) System and method for distinguishing between active and passive NFC devices based on carrier frequency adjustment
US8583074B2 (en) Wireless security messaging model
JPH07193614A (en) Data transmission method
EP1372270A1 (en) Two-wire power transmitting/receiving device and its method
KR20020010095A (en) Card system, ic card and card reader/writer used for the card system
US20020081991A1 (en) Energy-saving method for the wireless reception of data modulated on a carrier signal
JPH09298486A (en) Non-contact data transmission / reception method and device
US6067626A (en) Method of processing externally supplied data by CPU in non-operating state and portable terminal device for the same
US11171513B2 (en) Wireless power transmitting device, control circuit thereof, and wireless charger
JP4744572B2 (en) Communication equipment, communication system
US7953146B2 (en) Method for wireless data transmission between a base station and a transponder via inductive coupling
JPH01151831A (en) Data communication equipment
KR102448432B1 (en) Magnetic field communication method for wireless charging
KR101103824B1 (en) Low power ETC terminal device and method
JP3624436B2 (en) Information system
JPH07240698A (en) Data communication system
JPH0729083A (en) Measurement processing system