JP3600444B2 - Data communication method, data communication device, and data communication system - Google Patents

Data communication method, data communication device, and data communication system Download PDF

Info

Publication number
JP3600444B2
JP3600444B2 JP18984098A JP18984098A JP3600444B2 JP 3600444 B2 JP3600444 B2 JP 3600444B2 JP 18984098 A JP18984098 A JP 18984098A JP 18984098 A JP18984098 A JP 18984098A JP 3600444 B2 JP3600444 B2 JP 3600444B2
Authority
JP
Japan
Prior art keywords
data
received
memory
communication device
identification information
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.)
Expired - Fee Related
Application number
JP18984098A
Other languages
Japanese (ja)
Other versions
JP2000013537A (en
Inventor
光治 森谷
規 青木
隆男 山道
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.)
Anritsu Corp
Original Assignee
Anritsu 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 Anritsu Corp filed Critical Anritsu Corp
Priority to JP18984098A priority Critical patent/JP3600444B2/en
Publication of JP2000013537A publication Critical patent/JP2000013537A/en
Application granted granted Critical
Publication of JP3600444B2 publication Critical patent/JP3600444B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Meter Arrangements (AREA)
  • Communication Control (AREA)
  • Telephonic Communication Services (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、回線を介してデータの通信を行うためのデータ通信方法、データ通信装置およびデータ通信システムにおいて、データの重複登録を防止するための技術に関する。
【0002】
【従来の技術】
例えば、電話回線網に接続されている多数の公衆電話機は、その電話回線に接続されているセンタ装置によって集中的に管理されている場合が多い。
【0003】
センタ装置は、管理対象の公衆電話機に例えば料金テーブル用のデータ等をダウンロードし、各公衆電話機は、利用データ(通話先の電話番号、利用されたカード番号、通話料金、通話時間等)を利用データメモリにそれぞれ記憶しておき、例えば記憶件数が所定数に達すると、この利用データをセンタ装置に送信してセンタ装置のメモリに登録させてから、利用データメモリの内容を消去している。
【0004】
この公衆電話機とセンタ装置との間のデータ通信では、データを受け取ったことを示す確認メッセージを互いに送信しており、前記したように、公衆電話機側から利用データをセンタ装置へ送信する場合には、センタ装置側からの確認メッセージが公衆電話機側で受信されたときに、送信した利用データがセンタ装置で確実に受信されたことが判り、センタ装置から確認メッセージが返送されたかった場合には、送信した利用データがセンタ装置に正しく伝達されなかったものとして、その利用データをセンタ装置に再送信していた。
【0005】
【発明が解決しようとする課題】
しかしながら、前記した従来のシステムでは、センタ装置側から確認メッセージが回線へ送信されたにもかかわらず、回線の一時的な障害発生等によって公衆電話機側で受信されなかった場合でも、公衆電話機が同一の利用データをセンタへ再送信してしまうため、センタ装置側ではこの利用データを新たな利用データとしてメモリに重複登録してしまい、公衆電話機に対する管理が正しく行なえなくなってしまう。
【0006】
本発明は、このような通信シスムの問題を解決したデータ通信方法、データ通信装置およびデータ通信システムを提供することを目的としている。
【0007】
【課題を解決するための手段】
前記目的を達成するために、本発明の請求項1のデータ通信方法は、
一方の通信装置の第1のメモリに記憶されたデータを回線を介して接続された他方の通信装置に送信して該他方の通信装置の第2のメモリに登録するためのデータ通信方法において、
前記第1のメモリに記憶されたデータを、該データが新規送信用か再送用かを識別するための識別情報とともに一方の通信装置から他方の通信装置へ送信する段階と、
新規送信用の識別情報とともに他方の通信装置が受信したデータを前記第2のメモリに登録する段階と、
再送用の識別情報とともに他の通信装置が受信したデータと前記第2のメモリに最後に登録されたデータとを比較する段階と、
他方の通信装置が受信したデータと前記第2のメモリに最後に登録されたデータとが一致したときには受信したデータを破棄し、不一致のときには受信したデータを第2のメモリに登録する段階と、
受信したデータを破棄または前記第2のメモリに登録した他方の通信装置が一方の通信装置へ確認メッセージを返送する段階と、
他方の通信装置からの確認メッセージが一方の通信装置で受信できたか否かを判定する段階と、
確認メッセージが一方の通信装置で受信されたときにはその直前に一方の通信装置が送信したデータを第1のメモリから消去し、確認メッセージが一方の通信装置で受信できなかった場合にはその直前に一方の通信装置が送信したデータを再送用のデータとして前記第1のメモリに残すとともに該データが再送されるときに再送用の識別情報とともに送信されるように設定する段階とを含むことを特徴としている。
【0008】
また、本発明の請求項2のデータ通信方法は、
一方の通信装置の第1のメモリに記憶されたデータを回線を介して接続された他方の通信装置に送信して該他方の通信装置の第2のメモリに登録するためのデータ通信方法において、
前記第1のメモリに記憶されたデータを、該データが新規送信用か再送用かを識別するための識別情報および該データに割当てられた送信番号とともに一方の通信装置から他方の通信装置へ送信する段階と、
他方の通信装置が受信した送信番号が、一方の通信装置からのデータの累計受信数を示す受信番号と一致するか否かを判定する段階と、
他方の通信装置が受信した送信番号と前記受信番号とが不一致のとき該送信番号とともに受信したデータを破棄する段階と、
他方の通信装置が受信した送信番号と前記受信番号とが一致し且つ前記識別情報が新規送信用を示しているとき、該識別情報とともに受信したデータを第2のメモリに登録する段階と、
他方の通信装置が受信した送信番号と前記受信番号とが一致し且つ前記識別情報が再送用を示しているとき、該識別情報とともに受信したデータと前記第2のメモリに最後に登録されたデータとを比較する段階と、
他方の通信装置が受信したデータと前記第2のメモリに最後に登録されたデータとが一致するときには受信したデータを破棄し、不一致のときには受信したデータを第2のメモリに登録する段階と、
受信したデータを破棄または前記第2のメモリに登録した他方の通信装置が一方の通信装置へ確認メッセージを返送する段階と、
一方の通信装置で確認メッセージが受信されたときには一方の通信装置がその直前に送信したデータを第1のメモリから消去し、確認メッセージが受信できなかった場合には一方の通信装置がその直前に送信したデータを再送用のデータとして前記第1のメモリに残すとともに該データが再送されるときに再送用の識別情報とともに送信されるように設定する段階とを含むことを特徴としている。
【0009】
また、本発明の請求項3のデータ通信装置は、
回線を介してデータを受信する毎に確認メッセージを送信元に返送するように構成された他装置との間でデータ通信を行うデータ通信装置において、
メモリと、
他装置へ送信するためのデータと、該データが新規送信用か再送用かを識別するための識別情報とを前記メモリに書き込む送信データ書込手段と、
前記メモリに記憶されたデータと該データに対応する識別情報とを所定のタイミングに他装置へ送信するデータ送信手段と、
前記データ送信手段が送信したデータに対して他装置から返送される確認メッセージを受信できたか否かを判定するメッセージ受信判定手段と、
前記メッセージ受信判定手段によって確認メッセージを受信できたと判定された場合にはその直前に送信したデータを前記メモリから消去するデータ消去手段と、
前記メッセージ受信判定手段によって確認メッセージを受信できなかったと判定された場合にはその直前に送信したデータに対応する前記メモリの識別情報を再送用に設定する識別情報設定手段とを備えている。
【0010】
また、本発明の請求項4のデータ通信装置は、
回線を介して送られてくるデータおよび該データが新規送信用か再送用かを識別するための識別情報を受信して、送信元に確認メッセージを返送するデータ通信装置において、
メモリと、
受信した識別情報が新規送信用か再送用かを判定する識別情報判定手段と、
前記識別情報判定手段によって前記受信した識別情報が新規送信用と判定されたとき、該識別情報とともに受信したデータを前記メモリに登録する第1のデータ登録手段と、
前記識別情報判定手段によって前記受信した識別情報が再送用と判定されたとき、該識別情報とともに受信したデータと前記メモリに最後に登録されたデータとが一致するか否かを判定するデータ比較手段と、
受信したデータと前記メモリに最後に登録されたデータとが前記データ比較手段によって一致すると判定されたとき、該受信したデータを破棄するデータ破棄手段と、
受信したデータと前記メモリに最後に登録されたデータとが前記データ比較手段によって不一致と判定されたとき、該受信したデータを前記メモリに登録する第2のデータ登録手段とを備えたことを特徴とする。
【0011】
また、本発明の請求項5のデータ通信システムは、
前記請求項3または請求項4の少なくとも一方のデータ通信装置を備えた公衆電話機と、少なくとも他方のデータ通信装置を備えたセンタ装置との間で、データの授受を行うことを特徴としている。
【0012】
【発明の実施の形態】
以下、図面に基づいて本発明の一実施形態を説明する。図1は、本発明の実施形態の通信装置を備えた公衆電話機とセンタ装置からなる通信システムの構成を示している。
【0013】
図1において、複数Nの公衆電話機20〜20は、電話回線網1の各回線2〜2にそれぞれ接続されており、これらの公衆電話機20〜20を管理するためのセンタ装置35は、モデム3を介して電話回線網1の回線2に接続されている。なお、センタ装置35は複数のモデム3を介して複数回線にそれぞれ接続されていてもよい。
【0014】
各公衆電話機20〜20は、通話料金を徴収するためのカード処理装置21、硬貨処理装置22と、通話利用時に通話先の電話番号を入力するためのダイヤル装置23と、音声による通話を行なうための送受器を含む通話回路24と、回線インタフェース25と、これらの制御を行なう通話制御部26とを有している。
【0015】
通話制御部26は、カード処理装置21に残度数のあるカードが挿入されるか、硬貨処理装置23に硬貨が投入されると、ダイヤル装置23を回線に接続し、キー操作によって入力された通話先の電話番号をダイヤル装置23から回線へ出力させ、電話回線網1にその通話先への発呼を行なわせ、通話先からの応答があると通話回路24を回線に接続して通話可能な状態にするとともに、挿入カードの残度数あるいは投入硬貨から通話料金の徴収を行い、通話が終了したときに、カードあるいは残り硬貨を返却させる。
【0016】
利用データ書込手段27は、通話制御部26の制御情報に基づいて、通話が終了する毎に、その通話先の電話番号、カードによる通話の場合にはそのカード番号、通話時間、通話料金等を1組とする利用データを利用データメモリ28にアドレス順に書き込む。
【0017】
利用データメモリ28は、利用データを例えば100件分記憶できる容量を持っている。また、この利用データメモリ28(他のメモリであってもよい)には、再送する必要のある利用データの数を、そのデータが新規送信用か再送用かを識別するための識別情報Jとして記憶する領域が設けられている。
【0018】
利用データ通信処理部30は、利用データメモリ28に所定数(例えば80件)以上の利用データが記憶されたとき等に、利用データメモリ28に記憶されている利用データを、所定数m(例えば5個)単位で読み出してモデム31を介してセンタ装置35へ送信し、センタ装置35から確認メッセージを受けると、その送信した所定数の利用データを利用データメモリから消去して、次の所定数の利用データを送信するという動作を繰り返す。なお、この利用データの送信の際には、前記した識別情報Jも送信する。
【0019】
一方、センタ装置35は、例えばパーソナルコンピュータによって構成されており、電話回線網1に接続された各公衆電話機との間で通信を行ない、各公衆電話機の情報を管理し、その管理情報を表示あるいは印刷する機能を有しているが、その管理情報の一つである各公衆電話機の利用データを収集するために、図1に示しているように、利用データ通信処理部36と、その利用データ通信処理部36の通信によって得られた各公衆電話機の利用データを記憶しておくためのセンタメモリ37とを有している。
【0020】
次に、各公衆電話機20〜20の利用データ送信処理とセンタ装置35の利用データ登録処理を図2、図3のフローチャートに基づいて説明する。
【0021】
図2は公衆電話機側の利用データの送信処理の手順を示すフローチャートである。図2において、公衆電話機側では、処理S1〜S3に示しているように、通話処理がなされていないときに利用データメモリ28の利用データの数を調べ、例えば図4の(a)に示すように、利用データメモリ28に所定数M(Mは例えば80)以上の利用データD(1)〜D(M)が記憶されていれば、センタ装置35に対して発呼する。
【0022】
この発呼に対してセンタ装置35からの応答が得られない場合には、所定時間(例えば3分)のタイマをスタートさせ、このタイマがタイムアップした後にセンタ装置35へ再発呼し、タイマがタイムアップするまでの間に、通話処理があった場合には、この通話利用を優先させるために処理S1へ戻る(S4〜S7)。
【0023】
また、この発呼に対してセンタ装置35が応答すると、処理S8、S9に示しているように、送信データのシーケンス番号(送信番号)ST、リトライ数RTを0に初期化し、変数Aを、最初に送信する利用データのアドレス(ここでは0に固定)に初期化してから、利用データメモリ28のA+1番目からA+m番目までのm個(例えばm=5)の利用データD(A+1)〜D(A+m)を一組とする送信用のデータを、利用データメモリ28に記憶されている識別情報J、シーケンス番号STとともにセンタ装置35に送信する(データ送信手段)。
【0024】
なお、このm個1組の利用データD(A+1)〜D(A+m)は、例えば図5の(a)のように、発呼した公衆電話機を識別する情報や送信する情報の種類等が挿入されたヘッダ部Hに続くデータ領域Bに挿入されて回線へ出力される。
【0025】
また、このデータ領域BのうちBrは識別情報Jおよびシーケンス番号STのための領域であり、利用データメモリ28に記憶されている全ての利用データが新規送信用の場合には図4の(a)のように識別情報Jの値は0であり、先頭から例えば3個までの利用データD(1)〜D(3)が再送用の場合には識別情報Jの値は3となる。
【0026】
なお、ここでは利用データをm個単位で送信し、しかも、後述するようにその送信したデータに対する確認メッセージが受信できなかった場合に回線を切断し、次の発呼時にはこのデータの送信から開始しているため、利用データメモリ28に記憶されている利用データのうち、再送用の利用データの数、即ち、識別情報Jの値は常にm以下となる。
【0027】
そして、処理S10、11のように、このデータを送信した後に所定時間のタイマをスタートさせ、このタイマがタイムアップするまでにセンタ装置35から確認メッセージACKが受信されるか否かを判定する(メッセージ受信判定手段)。
【0028】
確認メッセージACKの受信が確認されると、処理S12〜S13のように、利用データメモリ28の識別情報Jの値を0にリセットし、シーケンス番号Sを1増加更新し、さらにリトライ数RTを0に初期化してから、センタ装置35に送信したm個の利用データD(A+1)〜D(A+m)を例えば図4の(b)のように利用データメモリ28から消去する(データ消去手段)。
【0029】
以下、利用データメモリ28に残っている利用データの数pがmより少なくなるまで、変数Aをmずつ増加更新して、S9〜S14までの処理を繰り返す(S14、S15)。
【0030】
そして、利用データメモリ28に残っている利用データの数pがmより少なくなり且つpが0でない場合には、そのp個の利用データを一組の送信用のデータとして識別情報J(Mがmより大であればこのときの識別情報Jの値は0である)とシーケンス番号STとともにセンタ装置35へ送信し、センタ装置35からの確認メッセージACKを受信すると、センタ装置35に送信したp個の利用データを利用データメモリ28から削除して、回線を切断する(S16〜S21)。なお、処理S16において残りの利用データの数pが0の場合にも回線を切断する。
【0031】
また、処理S22〜S27に示しているように、利用データをm個単位で送信しているときに、タイマがタイムアップするまでにデータの受信に失敗したことを示す否定確認メッセージNAKが受信されたり、センタ装置側からのメッセージを受信できなかった場合には、リトライ数RTを更新しながらデータの再送信を2回まで行い、それでもセンタ装置35からの確認メッセージACKを受信できない場合には、利用データメモリ28の識別情報Jの値をmに設定する(識別情報設定手段)とともに、利用データメモリ28に残っているデータ全体を、消去されて空いている先頭アドレス側にシフトさせるように記憶し直して、回線を切断する。
【0032】
例えばmが5のときに、利用データD(1)〜D(5)を送信したときにはセンタ装置側からの確認メッセージを受信でき、次の利用データD(6)〜D(10)を送信したときにには、センタ装置側からの確認メッセージを受信できなかった場合、図4の(c)に示すように、利用データメモリ28の識別情報Jをmに設定するとともに、利用データD(1)〜D(5)が消去されて空になっている先頭アドレス側にD(6)以降の利用データD(6)〜D(M)を記憶しなおして、新たな利用データを利用データD(M)の後に記憶させる。
【0033】
同様に、処理S28〜S33に示しているように、最後のp個の利用データを送信したときに、タイマがタイムアップするまでにデータの受信に失敗したことを示す否定確認メッセージNAKが受信されたり、センタ装置側からのメッセージを受信できなかった場合には、リトライ数RTを更新しながらデータの再送信を2回まで行い、それでもセンタ装置35からの確認メッセージACKを受信できない場合には、利用データメモリ28の識別情報Jの値をpに設定する(識別情報設定手段)とともに、利用データメモリ28に残っているデータ全体を、消去されて空いている先頭アドレス側にシフトさせるように記憶しなおして、回線を切断する。
【0034】
この処理によって、次の発呼時には、利用データメモリ28の先頭アドレスに記憶されていて、前回の送信時に確認メッセージを受けることができなかった利用データから順番に送信することができる。
【0035】
これに対し、センタ装置35側では、図3のフローチャートにしたがって利用データの受信登録処理を行なう。
【0036】
即ち、処理S41〜S44に示すように、例えば公衆電話機20からの発呼によってセンタ装置35に着信があるとこれに自動応答し、受信用のシーケンス番号SRを0に初期化し、公衆電話機20側からのデータを受信する。
【0037】
そして、処理S45、S46のように、受信したデータに含まれるシーケンス番号STとシーケンス番号SRとを比較し両者が一致したとき場合には、受信したデータに含まれる識別情報Jの値が0か否か、即ち、この受信した利用データがすべてが新規のものか再送用のものを含むかを判定する(識別情報判定手段)。
【0038】
そして、処理S47〜S49のように、受信した識別情報Jの値が0の場合には、図6の(a)に示すように、センタメモリ37の公衆電話機20の登録領域に既に登録されていたa個の利用データD〜Dの後に、今回受信したm個(またはp個)の利用データD(A+1)〜D(A+m)をセンタメモリ37にa+1番目からa+m番目の利用データDa+1 〜Da+m として登録した後(第1のデータ登録手段)、受信側のシーケンス番号SRを1増加更新して確認メッセージACKを返送する。なお、受信した利用データがどの公衆電話機のものであるかは、ヘッダ部の情報によって識別している。
【0039】
また、受信した識別情報Jの値が0でない場合には、処理S50、S51のように、受信した利用データの先頭からJ個の利用データと、センタメモリ37に既に登録されている利用データの最後に登録されているJ個の利用データ(図6の(a)のように利用データDa+m までが登録されていた場合には利用データDa+m+1−j 〜Da+m )とを比較して、両者が一致するか否かを判定する(データ比較手段)。
【0040】
そして、両者が一致していないときには、今回受信した利用データをすべてセンタメモリ37に登録し(第2のデータ登録手段)、両者が一致しているときには処理S52、S53のように、今回受信した利用データのうちの先頭からJ個は既に登録済として破棄し(データ破棄手段)、残りの利用データがある場合(JがmまたはPより小さい場合)には、その残りの利用データをセンタメモリ37に登録してから、確認メッセージACKを返送する。
【0041】
なお、処理S45でシーケンス番号が一致しない場合には、処理S54のように受信したすべての利用データを破棄して処理S48へ移行し確認メッセージACKを返送する。
【0042】
上記のS44〜S54までの処理は、処理S55で公衆電話機側の切断要求によって回線が切断されるまでなされる。
【0043】
上記処理によって、公衆電話機の利用データメモリ28に記憶されていたすべての利用データD(1)〜D(M)は、図6の(b)のように、センタ装置35のセンタメモリ37にa+1番目からa+M番目までの利用データDa+1 〜Da+M として重複することなく登録される。
【0044】
また、利用データD(1)〜D(M)を送信している間に回線障害等で確認メッセージが公衆電話機側に伝達されず回線が切断された場合でも、そのときセンタ装置が受信登録したデータと次回に送られてきた最初のデータとが一致するので、センタ装置に重複登録されることはない。
【0045】
このため、センタ装置35は、センタメモリ37に登録された利用データに基づいて各公衆電話機の管理を正確に行なうことができる。
【0046】
このように、この実施形態の通信システムでは、データをそのデータが新規送信用か再送用かを識別するための識別情報とともに公衆電話機からセンタ装置へ送信し、これを受信したセンタ装置は、公衆電話機に対して確認メッセージを返送するとともに、識別情報が新規送信用の場合には受信したデータを登録し、再送用の場合には受信したデータと既に登録されている最後のデータとを比較して両者が不一致であればその受信データを登録し、一致していればその受信データを破棄する。そして、公衆電話機は、センタ装置からの確認メッセージを受けなかった送信データについては、再送用の識別情報とともに再送するようにしている。
【0047】
このため、センタ装置側から回線へ出力された確認メッセージが回線の障害発生によって公衆電話機側で受信できなかった場合でも、データの再送時にセンタ装置のメモリにデータが重複登録される恐れがなくなる。
【0048】
また、公衆電話機から送信番号をデータとともに送信し、センタ装置では受信した送信番号と受信番号を比較することによって受信したデータが登録可能なデータか否かを判定している。
【0049】
このため、公衆電話機から送信されたデータが、新規送信用であっても再送用であっても、センタ装置に重複あるいは欠落することなく正しい順序で登録させることができる。
【0050】
なお、この実施形態では、m個の利用データを1組の送信データとしていたがこのmの値は任意である。ただし、例えば送信する利用データの総数が100件のときに、mの値が1や2のように総数に対して少ないと公衆電話機とセンタ装置との間のデータの送受信回数が非常に多くなって効率が低下し、逆にmの値が50等のように大き過ぎると再送時の効率が低下するので、送信する利用データの総数に応じて設定する。
【0051】
また、前記実施形態では、公衆電話機の利用データメモリに記憶された利用データが所定数に達したときに、公衆電話機からセンタ装置を発呼してデータを送信していたが、これは本発明を限定するものではなく、例えば一定時間毎や予め設定された時刻になったときに公衆電話機からセンタ装置を発呼してデータを送信してもよく、また、センタ装置側から公衆電話機を発呼してデータの送信を要求し、この要求を受けた公衆電話機が利用データメモリのデータをセンタ装置へ送信してもよい。
【0052】
また、前記実施形態では、送信したデータに対してセンタ装置から確認メッセージが返送される毎にその送信した利用データを利用データメモリから順次消去していたが、これは本発明を限定するものでなく、利用データメモリの最後の利用データを送信するまで、あるいは回線が切断されるまでは、確認メッセージの返送だけを確認して利用データの消去を行なわず、最後の利用データを送信してから確認メッセージが返送されてきたときに全ての利用データを消去したり、回線切断される直前までに確認メッセージの受信が確認された利用データを一括して消去してもよい。
【0053】
また、前記実施形態では、送信するデータに含まれる再送用の利用データ数を識別情報としていたが、これは本発明を限定するものでなく、送信するデータが単一の場合や1度に送信する利用データの数が常に固定されている場合には、再送する利用データの数とは無関係に再送用であるか否かだけを識別できればよい。
【0054】
なお、1度に送信する利用データの数が常に固定されている場合、1度に送信する利用データの数をLとすると、利用データメモリに記憶されている利用データの数がLの整数倍になったときにセンタ装置への送信を開始すれば、端数を生じさせないで、利用データをすべてセンタ装置へ送信することができる。また、利用データメモリに記憶されている利用データの数がLの整数倍でないときにセンタ装置へ送信を開始する場合には、Lより少ない数の利用データが残ってしまうが、この残った利用データについては、次回の送信時に他の利用データとともに送信すればよい。
【0055】
なお、前記実施形態では、公衆電話機の利用データをセンタ装置に送信する場合について説明したが、送信するデータは利用データに限らず任意であり、プログラムデータやテーブルデータ等であってもよく、センタ装置側から公衆電話機側へデータを送信する場合にも適用できる。
【0056】
また、前記実施形態は、公衆電話機とセンタ装置とからなるデータ通信システムについて説明したが、本発明はこれらの装置に限定されるものでなく、他の機器間のデータ通信にも同様に適用することができる。
【0057】
【発明の効果】
以上説明したように、本発明では、データを、そのデータが新規送信用か再送用かを識別するための識別情報とともに一方の通信装置から他方の通信装置へ送信し、これを受信した他方の通信装置は、一方の通信装置に対して確認メッセージを返送するとともに、識別情報が新規送信用の場合には受信したデータを登録し、再送用の場合には受信したデータと既に登録されている最後のデータとを比較して両者が不一致であればその受信データを登録し、一致していればその受信データを破棄する。そして、一方の通信装置は、他方の通信装置からの確認メッセージを受けなかった送信データについては、再送用の識別情報とともに再送するようにしている。
【0058】
このため、他方の通信装置側から回線へ出力された確認メッセージが回線の障害発生によって一方の通信装置側で受信できなかった場合でも、データの再送時に他方の通信装置のメモリにデータが重複登録される恐れがなくなる。
【0059】
また、一方の通信装置から送信番号をデータとともに送信し、他方の通信装置で受信した送信番号と受信番号を比較することによって受信したデータが登録可能なデータか否かを判定している。
【0060】
このため、一方の通信装置から送信されたデータが、新規送信用であっても再送用であっても、他方の通信装置に重複あるいは欠落することなく正しい順序で登録させることができる。
【図面の簡単な説明】
【図1】本発明の一実施形態の構成を示す図
【図2】一実施形態の公衆電話機側の要部の処理手順を示すフローチャート
【図3】一実施形態のセンタ装置側の要部の処理手順を示すフローチャート
【図4】一実施形態の公衆電話機側のメモリ図
【図5】一実施形態のデータのフォーマットの例を示す図
【図6】一実施形態のセンタ装置側のメモリ図
【符号の説明】
20〜20 公衆電話機
27 利用データ書込手段
28 利用データメモリ
30 利用データ通信処理部
31 モデム
35 センタ装置
36 利用データ通信処理部
37 センタメモリ
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a data communication method for performing data communication via a line, a data communication apparatus, and a technique for preventing data from being repeatedly registered in a data communication system.
[0002]
[Prior art]
For example, many public telephones connected to a telephone line network are often centrally managed by a center device connected to the telephone line.
[0003]
The center device downloads, for example, data for a charge table to the managed public telephone, and each public telephone uses the usage data (the telephone number of the call destination, the card number used, the call charge, the call time, etc.). For example, when the number of storages reaches a predetermined number, the usage data is transmitted to the center device and registered in the memory of the center device, and then the contents of the usage data memory are deleted.
[0004]
In the data communication between the public telephone and the center device, confirmation messages indicating that the data have been received are transmitted to each other. As described above, when transmitting the usage data from the public telephone to the center device, When the confirmation message from the center device is received by the public telephone, it is known that the transmitted usage data has been reliably received by the center device, and if the confirmation message is not returned from the center device, Assuming that the transmitted usage data was not correctly transmitted to the center device, the usage data was retransmitted to the center device.
[0005]
[Problems to be solved by the invention]
However, in the above-described conventional system, even if the confirmation message is transmitted to the line from the center device side, even if the public telephone is not received due to a temporary failure of the line or the like, the public telephone remains the same. The use data is retransmitted to the center, so that the center device duplicately registers this use data as new use data in the memory, and the management of the public telephone cannot be performed correctly.
[0006]
An object of the present invention is to provide a data communication method, a data communication device, and a data communication system that solve such a problem of the communication system.
[0007]
[Means for Solving the Problems]
In order to achieve the above object, a data communication method according to claim 1 of the present invention comprises:
A data communication method for transmitting data stored in a first memory of one communication device to another communication device connected via a line and registering the data in a second memory of the other communication device,
Transmitting the data stored in the first memory from one communication device to the other communication device together with identification information for identifying whether the data is for new transmission or for retransmission;
Registering the data received by the other communication device together with the identification information for new transmission in the second memory;
Comparing the data received by the other communication device with the identification information for retransmission and the data last registered in the second memory;
Discarding the received data when the data received by the other communication device matches the data last registered in the second memory, and registering the received data in the second memory when they do not match,
A step of discarding the received data or returning the other communication device registered in the second memory to the one communication device with a confirmation message;
Determining whether a confirmation message from the other communication device has been received by the one communication device;
When the confirmation message is received by one of the communication devices, the data transmitted by the one communication device immediately before is deleted from the first memory, and when the confirmation message is not received by the one communication device, the data is transmitted immediately before the confirmation message. Leaving the data transmitted by one of the communication devices as data for retransmission in the first memory, and setting the data to be transmitted together with the identification information for retransmission when the data is retransmitted. And
[0008]
Further, the data communication method of claim 2 of the present invention,
A data communication method for transmitting data stored in a first memory of one communication device to another communication device connected via a line and registering the data in a second memory of the other communication device,
The data stored in the first memory is transmitted from one communication device to the other communication device together with identification information for identifying whether the data is for new transmission or retransmission, and a transmission number assigned to the data. Stage to
Determining whether the transmission number received by the other communication device matches the reception number indicating the total number of data received from the one communication device,
Discarding the data received with the transmission number when the transmission number received by the other communication device and the reception number do not match,
When the transmission number received by the other communication device and the reception number match and the identification information indicates a new transmission, registering the data received together with the identification information in the second memory;
When the transmission number received by the other communication device matches the reception number and the identification information indicates retransmission, the data received together with the identification information and the data last registered in the second memory. Comparing with
Discarding the received data when the data received by the other communication device matches the data last registered in the second memory, and registering the received data in the second memory when the data does not match,
A step of discarding the received data or returning the other communication device registered in the second memory to the one communication device with a confirmation message;
When the confirmation message is received by one of the communication devices, the data transmitted immediately before by one of the communication devices is erased from the first memory, and when the confirmation message is not received, the one of the communication devices immediately erases the data. Leaving the transmitted data in the first memory as data for retransmission, and setting the data to be transmitted together with the identification information for retransmission when the data is retransmitted.
[0009]
Also, the data communication device according to claim 3 of the present invention,
A data communication device that performs data communication with another device configured to return a confirmation message to a transmission source every time data is received via a line,
Memory and
Transmission data writing means for writing data for transmission to another device and identification information for identifying whether the data is for new transmission or for retransmission to the memory,
Data transmission means for transmitting the data stored in the memory and identification information corresponding to the data to another device at a predetermined timing,
Message reception determination means for determining whether a confirmation message returned from another device for the data transmitted by the data transmission means has been received,
When it is determined that the confirmation message has been successfully received by the message reception determining means, data erasing means for erasing data transmitted immediately before from the memory,
Identification information setting means for setting identification information of the memory corresponding to data transmitted immediately before when the message reception determination means has failed to receive a confirmation message, for retransmission.
[0010]
Further, the data communication device according to claim 4 of the present invention,
In a data communication device that receives data sent via a line and identification information for identifying whether the data is for new transmission or retransmission, and returns a confirmation message to the transmission source,
Memory and
Identification information determining means for determining whether the received identification information is for new transmission or retransmission,
When the received identification information is determined to be for new transmission by the identification information determination means, first data registration means for registering data received with the identification information in the memory;
A data comparing means for determining whether or not the data received together with the identification information and the data last registered in the memory are coincident when the received identification information is determined to be for retransmission by the identification information determining means; When,
Data discarding means for discarding the received data, when the received data and the data last registered in the memory are determined to match by the data comparing means,
A second data registration unit that registers the received data in the memory when the data comparison unit determines that the received data and the data last registered in the memory do not match. And
[0011]
Further, the data communication system according to claim 5 of the present invention provides:
Data is exchanged between a public telephone having at least one of the data communication devices according to the third and fourth aspects and a center device having at least the other data communication device.
[0012]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 shows a configuration of a communication system including a public telephone equipped with a communication device according to an embodiment of the present invention and a center device.
[0013]
1, a public telephone 20 1 to 20 n of a plurality N, are connected to each line 2 1 to 2 n of the telephone network 1, a center for managing these public telephone 20 1 to 20 n device 35 is connected to the line 2 0 in the telephone network 1 through a modem 3. The center device 35 may be connected to a plurality of lines via a plurality of modems 3, respectively.
[0014]
Each public telephone 20 1 to 20 n, the card processing device for collecting a call charge 21, a coin processing apparatus 22, a dial 23 for inputting a telephone number of the call destination at the time of call activity, the call by voice It has a communication circuit 24 including a handset for performing communication, a line interface 25, and a communication control unit 26 for controlling these.
[0015]
When a card having a residual number is inserted into the card processing device 21 or a coin is inserted into the coin processing device 23, the call control unit 26 connects the dial device 23 to the line, and the call input by key operation. The destination telephone number is output from the dialing device 23 to the line, the telephone line network 1 makes a call to the destination, and when there is a response from the destination, the communication circuit 24 is connected to the line to enable a call. At the same time, a call charge is collected from the remaining number of the inserted card or the inserted coin, and when the call is completed, the card or the remaining coin is returned.
[0016]
Based on the control information of the call control unit 26, the usage data writing unit 27, every time the call is completed, a telephone number of the call destination, or a card number, a call time, a call charge, and the like in the case of a call using a card. Are written into the usage data memory 28 in the order of addresses.
[0017]
The usage data memory 28 has a capacity capable of storing, for example, 100 usage data. The usage data memory 28 (which may be another memory) stores the number of usage data that needs to be retransmitted as identification information J for identifying whether the data is for new transmission or retransmission. A storage area is provided.
[0018]
The usage data communication processing unit 30 stores the usage data stored in the usage data memory 28 into a predetermined number m (eg, 80) when the usage data memory 28 stores a predetermined number (for example, 80) or more of usage data. 5) and transmits the data to the center device 35 via the modem 31. When the confirmation message is received from the center device 35, the transmitted predetermined number of usage data is deleted from the usage data memory, and the next predetermined number of data is deleted. The operation of transmitting the usage data is repeated. In transmitting the usage data, the identification information J is also transmitted.
[0019]
On the other hand, the center device 35 is constituted by, for example, a personal computer, communicates with each public telephone connected to the telephone line network 1, manages information of each public telephone, displays the management information or As shown in FIG. 1, in order to collect usage data of each public telephone, which is one of the management information, the usage data communication processing unit 36 and the usage data It has a center memory 37 for storing usage data of each public telephone obtained by communication of the communication processing unit 36.
[0020]
Next, the usage data registration processing of the usage data transmission process and the center apparatus 35 of the public telephone 20 1 to 20 n 2, will be described with reference to the flowchart of FIG.
[0021]
FIG. 2 is a flowchart showing a procedure of a process of transmitting usage data on the public telephone. In FIG. 2, the public telephone checks the number of usage data in the usage data memory 28 when no call processing is performed, as shown in processes S1 to S3, for example, as shown in FIG. If the usage data memory 28 stores usage data D (1) to D (M) of a predetermined number M (M is, for example, 80) or more, a call is made to the center device 35.
[0022]
If a response from the center device 35 is not obtained for this call, a timer for a predetermined time (for example, 3 minutes) is started, and after the timer expires, a call is re-issued to the center device 35, and the timer is reset. If there is a call process before the time is up, the process returns to step S1 to prioritize the use of the call (S4 to S7).
[0023]
When the center device 35 responds to this call, the sequence number (transmission number) ST and the number of retries RT of the transmission data are initialized to 0, and the variable A is set to 0, as shown in steps S8 and S9. After initializing the address of the use data to be transmitted first (fixed to 0 in this case), m (for example, m = 5) use data D (A + 1) to D from the (A + 1) th to A + mth of the use data memory 28 are used. The transmission data including (A + m) as a set is transmitted to the center device 35 together with the identification information J and the sequence number ST stored in the usage data memory 28 (data transmission means).
[0024]
The set of m pieces of usage data D (A + 1) to D (A + m) includes information for identifying the calling public telephone, the type of information to be transmitted, and the like, for example, as shown in FIG. It is inserted into the data area B following the header section H and output to the line.
[0025]
In the data area B, Br is an area for the identification information J and the sequence number ST. When all the usage data stored in the usage data memory 28 is for new transmission, (a) in FIG. ), The value of the identification information J is 0, and when, for example, up to three pieces of usage data D (1) to D (3) from the top are for retransmission, the value of the identification information J is 3.
[0026]
In this case, the usage data is transmitted in units of m, and if a confirmation message for the transmitted data is not received as described later, the line is disconnected, and transmission of this data is started at the next call. Therefore, among the usage data stored in the usage data memory 28, the number of usage data for retransmission, that is, the value of the identification information J is always m or less.
[0027]
Then, as in processes S10 and S11, a timer for a predetermined time is started after transmitting this data, and it is determined whether or not a confirmation message ACK is received from the center device 35 before the timer expires ( Message reception determination means).
[0028]
When the reception of the confirmation message ACK is confirmed, the values of the identification information J in the usage data memory 28 are reset to 0, the sequence number S is incremented and updated by 1 and the retry count RT is set to 0 as in steps S12 to S13. Then, the m use data D (A + 1) to D (A + m) transmitted to the center device 35 are erased from the use data memory 28 as shown in FIG. 4B (data erasing means).
[0029]
Thereafter, the variable A is incremented by m and updated until the number p of the usage data remaining in the usage data memory 28 becomes smaller than m, and the processing from S9 to S14 is repeated (S14, S15).
[0030]
When the number p of use data remaining in the use data memory 28 is smaller than m and p is not 0, the p pieces of use data are identified as identification data J (M is used as a set of transmission data). If it is greater than m, the value of the identification information J at this time is 0) and transmitted to the center device 35 together with the sequence number ST, and upon receipt of the confirmation message ACK from the center device 35, p transmitted to the center device 35 The usage data is deleted from the usage data memory 28 and the line is disconnected (S16 to S21). Note that the line is disconnected even when the number p of remaining use data is 0 in the processing S16.
[0031]
Further, as shown in steps S22 to S27, when the usage data is transmitted in units of m, a negative acknowledgment message NAK indicating that data reception has failed before the timer times out is received. Or, when the message from the center device cannot be received, retransmission of data is performed up to twice while updating the retry number RT. When the confirmation message ACK from the center device 35 still cannot be received, The value of the identification information J in the usage data memory 28 is set to m (identification information setting means), and the entire data remaining in the usage data memory 28 is stored so as to be shifted to the head address which has been erased and becomes free. And disconnect the line.
[0032]
For example, when m is 5, when the usage data D (1) to D (5) are transmitted, a confirmation message from the center device can be received, and the next usage data D (6) to D (10) are transmitted. At times, when the confirmation message from the center device is not received, the identification information J of the usage data memory 28 is set to m, and the usage data D (1) is set as shown in FIG. ) To D (5) are erased and the use data D (6) to D (M) subsequent to D (6) are stored again at the start address side which is empty and the new use data is used as the use data D It is stored after (M).
[0033]
Similarly, as shown in steps S28 to S33, when the last p pieces of usage data have been transmitted, a negative acknowledgment message NAK indicating that data reception has failed by the time-out of the timer is received. Or, when the message from the center device cannot be received, retransmission of data is performed up to twice while updating the retry number RT. When the confirmation message ACK from the center device 35 still cannot be received, The value of the identification information J in the usage data memory 28 is set to p (identification information setting means), and the entire data remaining in the usage data memory 28 is stored so as to be shifted to the vacant and free top address side. Then, disconnect the line.
[0034]
By this processing, at the time of the next call, the use data stored in the head address of the use data memory 28 and from which the confirmation message could not be received at the previous transmission can be transmitted in order.
[0035]
On the other hand, the center device 35 performs the use data reception registration process according to the flowchart of FIG.
[0036]
That is, as shown in process S41 to S44, for example, automatically responds to this when there is an incoming call to the center device 35 by the call from the public telephone 20 k, and initialize the sequence number SR for receiving the 0, public telephone 20 Receives data from the k- side.
[0037]
Then, as in steps S45 and S46, the sequence number ST and the sequence number SR included in the received data are compared, and when they match, whether the value of the identification information J included in the received data is 0 or not. No, that is, whether or not the received usage data includes all new data or retransmission data (identification information determination means).
[0038]
Then, as processing S47~S49, if the value of the received identification information J is 0, as shown in FIG. 6 (a), previously registered in the registration area of the public telephone 20 k of the center memory 37 After the a use data D 1 to D a , the m (or p) use data D (A + 1) to D (A + m) received this time are stored in the center memory 37 from the (a + 1) th to the (a + m) th use data. After registering as Da + 1 to Da + m (first data registering means), the receiving side updates the sequence number SR on the receiving side by one and returns a confirmation message ACK. It should be noted that which public telephone the received usage data belongs to is identified by the information in the header portion.
[0039]
If the value of the received identification information J is not 0, as in steps S50 and S51, the J usage data from the beginning of the received usage data and the usage data already registered in the center memory 37 are read. The last registered J use data (use data Da + m + 1-j to Da + m when use data Da + m are registered as shown in FIG. 6A) are compared. It is determined whether the two match (data comparison means).
[0040]
If they do not match, all of the usage data received this time is registered in the center memory 37 (second data registration means), and if they match, as received in steps S52 and S53, From the top of the usage data, J data are discarded as already registered (data discarding means), and when there is remaining usage data (when J is smaller than m or P), the remaining usage data is stored in the center memory. After registering at 37, a confirmation message ACK is returned.
[0041]
If the sequence numbers do not match in step S45, all the received usage data is discarded as in step S54, and the process shifts to step S48 to return a confirmation message ACK.
[0042]
The processing from S44 to S54 is performed until the line is disconnected by the disconnection request on the public telephone side in processing S55.
[0043]
By the above processing, all the usage data D (1) to D (M) stored in the usage data memory 28 of the public telephone are stored in the center memory 37 of the center device 35 as a + 1 as shown in FIG. It is registered without overlapping as usage data D a + 1 ~D a + M to a + M-th from th.
[0044]
In addition, even if the confirmation message is not transmitted to the public telephone due to a line failure or the like and the line is disconnected while the usage data D (1) to D (M) is being transmitted, the center device receives and registers at that time. Since the data and the first data transmitted next time match, there is no duplicate registration in the center device.
[0045]
For this reason, the center device 35 can accurately manage each public telephone based on the use data registered in the center memory 37.
[0046]
As described above, in the communication system of this embodiment, the data is transmitted from the public telephone to the center device together with the identification information for identifying whether the data is for new transmission or retransmission, and the center device receiving the data transmits the data to the public device. A confirmation message is returned to the telephone, and if the identification information is for new transmission, the received data is registered.If the identification information is for retransmission, the received data is compared with the last registered data. If they do not match, the received data is registered, and if they do match, the received data is discarded. Then, the public telephone retransmits the transmission data that has not received the confirmation message from the center device together with the retransmission identification information.
[0047]
For this reason, even when the confirmation message output from the center device to the line cannot be received by the public telephone due to a line failure, there is no possibility that the data is repeatedly registered in the memory of the center device when data is retransmitted.
[0048]
The transmission number is transmitted together with the data from the public telephone, and the center device determines whether the received data is registrable data by comparing the received transmission number with the reception number.
[0049]
For this reason, regardless of whether the data transmitted from the public telephone is for new transmission or retransmission, the data can be registered in the center device in the correct order without duplication or omission.
[0050]
In this embodiment, m pieces of use data are used as one set of transmission data, but the value of m is arbitrary. However, for example, when the total number of use data to be transmitted is 100, if the value of m is smaller than the total number, such as 1 or 2, the number of times of data transmission and reception between the public telephone and the center device becomes extremely large. Therefore, if the value of m is too large, such as 50, the efficiency at the time of retransmission is reduced. Therefore, the value is set according to the total number of used data to be transmitted.
[0051]
Further, in the above embodiment, when the usage data stored in the usage data memory of the public telephone reaches a predetermined number, the public telephone calls the center device to transmit the data. For example, the public telephone may call the center device and transmit data at regular time intervals or at a preset time, or the public telephone may be called from the center device. A call may be made to request data transmission, and the public telephone receiving the request may transmit the data in the usage data memory to the center device.
[0052]
Further, in the above embodiment, each time a confirmation message is returned from the center device for the transmitted data, the transmitted usage data is sequentially deleted from the usage data memory. However, this is a limitation of the present invention. Until the last usage data in the usage data memory is transmitted, or until the line is disconnected, only confirm the return of the confirmation message and do not delete the usage data. All the usage data may be deleted when the confirmation message is returned, or the usage data for which the reception of the confirmation message has been confirmed immediately before the line is disconnected may be collectively deleted.
[0053]
Further, in the above-described embodiment, the number of pieces of data to be used for retransmission included in the data to be transmitted is used as the identification information. However, this is not intended to limit the present invention. If the number of pieces of use data to be transmitted is always fixed, it is only necessary to identify whether or not the data is for retransmission regardless of the number of pieces of use data to be retransmitted.
[0054]
If the number of pieces of usage data transmitted at one time is always fixed, and the number of pieces of usage data transmitted at one time is L, the number of usage data stored in the usage data memory is an integer multiple of L. If the transmission to the center device is started when the time becomes, all the usage data can be transmitted to the center device without generating a fraction. Further, if transmission to the center device is started when the number of usage data stored in the usage data memory is not an integral multiple of L, the number of usage data less than L remains. The data may be transmitted together with other usage data at the next transmission.
[0055]
In the above-described embodiment, the case where the usage data of the public telephone is transmitted to the center device has been described. However, the data to be transmitted is not limited to the usage data, and may be arbitrary, and may be program data or table data. The present invention can also be applied to the case where data is transmitted from the device to the public telephone.
[0056]
In the above-described embodiment, the data communication system including the public telephone and the center device has been described. However, the present invention is not limited to these devices, and is similarly applied to data communication between other devices. be able to.
[0057]
【The invention's effect】
As described above, in the present invention, data is transmitted from one communication device to another communication device together with identification information for identifying whether the data is for new transmission or retransmission, and the other The communication device returns a confirmation message to one of the communication devices, and registers the received data when the identification information is for new transmission, and has already registered the received data when the identification information is for retransmission. The data is compared with the last data, and if they do not match, the received data is registered, and if they match, the received data is discarded. Then, one communication device retransmits the transmission data that has not received the confirmation message from the other communication device together with the retransmission identification information.
[0058]
For this reason, even if a confirmation message output to the line from the other communication device cannot be received by one communication device due to a line failure, data is repeatedly registered in the memory of the other communication device when data is retransmitted. There is no fear of being caught.
[0059]
Also, the transmission number is transmitted together with the data from one communication device, and the transmission number received by the other communication device is compared with the reception number to determine whether the received data is registerable data.
[0060]
Therefore, regardless of whether the data transmitted from one communication device is for new transmission or for retransmission, the data can be registered in the other communication device in the correct order without duplication or loss.
[Brief description of the drawings]
FIG. 1 is a diagram showing a configuration of an embodiment of the present invention; FIG. 2 is a flowchart showing a processing procedure of a main part of a public telephone according to an embodiment; FIG. FIG. 4 is a memory diagram of a public telephone according to an embodiment; FIG. 5 is a diagram illustrating an example of a data format according to an embodiment; FIG. 6 is a memory diagram of a center device according to an embodiment; Explanation of reference numerals]
20 1 to 20 n Public telephone 27 Usage data writing unit 28 Usage data memory 30 Usage data communication processing unit 31 Modem 35 Center device 36 Usage data communication processing unit 37 Center memory

Claims (5)

一方の通信装置の第1のメモリに記憶されたデータを回線を介して接続された他方の通信装置に送信して該他方の通信装置の第2のメモリに登録するためのデータ通信方法において、
前記第1のメモリに記憶されたデータを、該データが新規送信用か再送用かを識別するための識別情報とともに一方の通信装置から他方の通信装置へ送信する段階と、
新規送信用の識別情報とともに他方の通信装置が受信したデータを前記第2のメモリに登録する段階と、
再送用の識別情報とともに他の通信装置が受信したデータと前記第2のメモリに最後に登録されたデータとを比較する段階と、
他方の通信装置が受信したデータと前記第2のメモリに最後に登録されたデータとが一致したときには受信したデータを破棄し、不一致のときには受信したデータを第2のメモリに登録する段階と、
受信したデータを破棄または前記第2のメモリに登録した他方の通信装置が一方の通信装置へ確認メッセージを返送する段階と、
他方の通信装置からの確認メッセージが一方の通信装置で受信できたか否かを判定する段階と、
確認メッセージが一方の通信装置で受信されたときにはその直前に一方の通信装置が送信したデータを第1のメモリから消去し、確認メッセージが一方の通信装置で受信できなかった場合にはその直前に一方の通信装置が送信したデータを再送用のデータとして前記第1のメモリに残すとともに該データが再送されるときに再送用の識別情報とともに送信されるように設定する段階とを含むことを特徴とするデータ通信方法。
A data communication method for transmitting data stored in a first memory of one communication device to another communication device connected via a line and registering the data in a second memory of the other communication device,
Transmitting the data stored in the first memory from one communication device to the other communication device together with identification information for identifying whether the data is for new transmission or for retransmission;
Registering the data received by the other communication device together with the identification information for new transmission in the second memory;
Comparing the data received by the other communication device with the identification information for retransmission and the data last registered in the second memory;
Discarding the received data when the data received by the other communication device matches the data last registered in the second memory, and registering the received data in the second memory when they do not match,
A step of discarding the received data or returning the other communication device registered in the second memory to the one communication device with a confirmation message;
Determining whether a confirmation message from the other communication device has been received by the one communication device;
When the confirmation message is received by one of the communication devices, the data transmitted by the one communication device immediately before is deleted from the first memory, and when the confirmation message is not received by the one communication device, the data is transmitted immediately before the confirmation message. Leaving the data transmitted by one of the communication devices as data for retransmission in the first memory, and setting the data to be transmitted together with the identification information for retransmission when the data is retransmitted. Data communication method.
一方の通信装置の第1のメモリに記憶されたデータを回線を介して接続された他方の通信装置に送信して該他方の通信装置の第2のメモリに登録するためのデータ通信方法において、
前記第1のメモリに記憶されたデータを、該データが新規送信用か再送用かを識別するための識別情報および該データに割当てられた送信番号とともに一方の通信装置から他方の通信装置へ送信する段階と、
他方の通信装置が受信した送信番号が、一方の通信装置からのデータの累計受信数を示す受信番号と一致するか否かを判定する段階と、
他方の通信装置が受信した送信番号と前記受信番号とが不一致のとき該送信番号とともに受信したデータを破棄する段階と、
他方の通信装置が受信した送信番号と前記受信番号とが一致し且つ前記識別情報が新規送信用を示しているとき、該識別情報とともに受信したデータを第2のメモリに登録する段階と、
他方の通信装置が受信した送信番号と前記受信番号とが一致し且つ前記識別情報が再送用を示しているとき、該識別情報とともに受信したデータと前記第2のメモリに最後に登録されたデータとを比較する段階と、
他方の通信装置が受信したデータと前記第2のメモリに最後に登録されたデータとが一致するときには受信したデータを破棄し、不一致のときには受信したデータを第2のメモリに登録する段階と、
受信したデータを破棄または前記第2のメモリに登録した他方の通信装置が一方の通信装置へ確認メッセージを返送する段階と、
一方の通信装置で確認メッセージが受信されたときには一方の通信装置がその直前に送信したデータを第1のメモリから消去し、確認メッセージが受信できなかった場合には一方の通信装置がその直前に送信したデータを再送用のデータとして前記第1のメモリに残すとともに該データが再送されるときに再送用の識別情報とともに送信されるように設定する段階とを含むことを特徴とするデータ通信方法。
A data communication method for transmitting data stored in a first memory of one communication device to another communication device connected via a line and registering the data in a second memory of the other communication device,
The data stored in the first memory is transmitted from one communication device to the other communication device together with identification information for identifying whether the data is for new transmission or retransmission, and a transmission number assigned to the data. Stage to
Determining whether the transmission number received by the other communication device matches the reception number indicating the total number of data received from the one communication device,
Discarding the data received with the transmission number when the transmission number received by the other communication device and the reception number do not match,
When the transmission number received by the other communication device and the reception number match and the identification information indicates a new transmission, registering the data received together with the identification information in the second memory;
When the transmission number received by the other communication device matches the reception number and the identification information indicates retransmission, the data received together with the identification information and the data last registered in the second memory. Comparing with
Discarding the received data when the data received by the other communication device matches the data last registered in the second memory, and registering the received data in the second memory when the data does not match,
A step of discarding the received data or returning the other communication device registered in the second memory to the one communication device with a confirmation message;
When the confirmation message is received by one of the communication devices, the data transmitted immediately before by one of the communication devices is erased from the first memory, and when the confirmation message is not received, the one of the communication devices immediately erases the data. Leaving the transmitted data in the first memory as data for retransmission, and setting the data to be transmitted together with the identification information for retransmission when the data is retransmitted. .
回線を介してデータを受信する毎に確認メッセージを送信元に返送するように構成された他装置との間でデータ通信を行うデータ通信装置において、
メモリと、
他装置へ送信するためのデータと、該データが新規送信用か再送用かを識別するための識別情報とを前記メモリに書き込む送信データ書込手段と、
前記メモリに記憶されたデータと該データに対応する識別情報とを所定のタイミングに他装置へ送信するデータ送信手段と、
前記データ送信手段が送信したデータに対して他装置から返送される確認メッセージを受信できたか否かを判定するメッセージ受信判定手段と、
前記メッセージ受信判定手段によって確認メッセージを受信できたと判定された場合にはその直前に送信したデータを前記メモリから消去するデータ消去手段と、
前記メッセージ受信判定手段によって確認メッセージを受信できなかったと判定された場合にはその直前に送信したデータに対応する前記メモリの識別情報を再送用に設定する識別情報設定手段とを備えたことを特徴とするデータ通信装置。
A data communication device that performs data communication with another device configured to return a confirmation message to a transmission source every time data is received via a line,
Memory and
Transmission data writing means for writing data for transmission to another device and identification information for identifying whether the data is for new transmission or for retransmission to the memory,
Data transmission means for transmitting the data stored in the memory and identification information corresponding to the data to another device at a predetermined timing,
Message reception determination means for determining whether a confirmation message returned from another device for the data transmitted by the data transmission means has been received,
When it is determined that the confirmation message has been successfully received by the message reception determining means, data erasing means for erasing data transmitted immediately before from the memory,
Identification information setting means for setting, for retransmission, the identification information of the memory corresponding to the data transmitted immediately before it is determined that the confirmation message has not been received by the message reception determination means. Data communication device.
回線を介して送られてくるデータおよび該データが新規送信用か再送用かを識別するための識別情報を受信して、送信元に確認メッセージを返送するデータ通信装置において、
メモリと、
受信した識別情報が新規送信用か再送用かを判定する識別情報判定手段と、
前記識別情報判定手段によって前記受信した識別情報が新規送信用と判定されたとき、該識別情報とともに受信したデータを前記メモリに登録する第1のデータ登録手段と、
前記識別情報判定手段によって前記受信した識別情報が再送用と判定されたとき、該識別情報とともに受信したデータと前記メモリに最後に登録されたデータとが一致するか否かを判定するデータ比較手段と、
受信したデータと前記メモリに最後に登録されたデータとが前記データ比較手段によって一致すると判定されたとき、該受信したデータを破棄するデータ破棄手段と、
受信したデータと前記メモリに最後に登録されたデータとが前記データ比較手段によって不一致と判定されたとき、該受信したデータを前記メモリに登録する第2のデータ登録手段とを備えたことを特徴とするデータ通信装置。
In a data communication device that receives data sent via a line and identification information for identifying whether the data is for new transmission or retransmission, and returns a confirmation message to the transmission source,
Memory and
Identification information determining means for determining whether the received identification information is for new transmission or retransmission,
When the received identification information is determined to be for new transmission by the identification information determination means, first data registration means for registering data received with the identification information in the memory;
A data comparing means for determining whether or not the data received together with the identification information and the data last registered in the memory are coincident when the received identification information is determined to be for retransmission by the identification information determining means; When,
Data discarding means for discarding the received data, when the received data and the data last registered in the memory are determined to match by the data comparing means,
A second data registration unit that registers the received data in the memory when the data comparison unit determines that the received data and the data last registered in the memory do not match. Data communication device.
前記請求項3または請求項4の少なくとも一方のデータ通信装置を備えた公衆電話機と、少なくとも他方のデータ通信装置を備えたセンタ装置との間で、データの授受を行うことを特徴とするデータ通信システム。Data communication between a public telephone provided with at least one data communication device according to claim 3 and a center device provided with at least another data communication device. system.
JP18984098A 1998-06-18 1998-06-18 Data communication method, data communication device, and data communication system Expired - Fee Related JP3600444B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18984098A JP3600444B2 (en) 1998-06-18 1998-06-18 Data communication method, data communication device, and data communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18984098A JP3600444B2 (en) 1998-06-18 1998-06-18 Data communication method, data communication device, and data communication system

Publications (2)

Publication Number Publication Date
JP2000013537A JP2000013537A (en) 2000-01-14
JP3600444B2 true JP3600444B2 (en) 2004-12-15

Family

ID=16248095

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18984098A Expired - Fee Related JP3600444B2 (en) 1998-06-18 1998-06-18 Data communication method, data communication device, and data communication system

Country Status (1)

Country Link
JP (1) JP3600444B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FI113822B (en) 1999-01-19 2004-06-15 Nokia Corp Controlled recovery for data network errors

Also Published As

Publication number Publication date
JP2000013537A (en) 2000-01-14

Similar Documents

Publication Publication Date Title
EP0433077B1 (en) Data transfer method
US9178661B2 (en) Controlled data network error recovery
CN101321047A (en) System and method for prioritization of retransmission of protocol data units to assist radio-link-control retransmission
US6892244B2 (en) Method of transmitting real-time data from a network element to an application server
CN110134528A (en) Interface message storage call method, device and the terminal device of micro services frame
US6466660B1 (en) Method and apparatus for retroactively updating a communication billing system
CN100538634C (en) The method and apparatus of the firmware on the network element that is installed in communication network of upgrading
US5613065A (en) Information broadcasting system having reception error minimizing facility
JP3600444B2 (en) Data communication method, data communication device, and data communication system
CN115038115A (en) Data transmission method, device, electronic equipment, storage medium and product
US20030139203A1 (en) Computer-readable storage medium containing program instructions for managing data in communication terminal
JP3389315B2 (en) Message transfer method and apparatus in connectionless communication
JP2750923B2 (en) Network connection failure avoidance method
JP3191899B2 (en) Facsimile apparatus and communication history storage method
JP3067539B2 (en) Facsimile system
JP3214434B2 (en) Communication terminal program rewriting device and relay device
JP3346696B2 (en) Call billing method
JPH11298515A (en) Facsimile store and forward exchange
JP2974882B2 (en) Maintenance method of subscriber terminal management data in packet switching system
JPH0715468A (en) Message delivery system
JP2836503B2 (en) Method and apparatus for switching connection of service switching point in intelligent network system
JP2001045189A (en) Public terminal management system
JPH09326911A (en) Image transmitter
JPH09205614A (en) Recording and reproducing device
JPH09181856A (en) Method and device for offering state information of facsimile transmission

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040723

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040907

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040916

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313532

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees