JPH03214289A - Data transfer device for ic card - Google Patents

Data transfer device for ic card

Info

Publication number
JPH03214289A
JPH03214289A JP908490A JP849090A JPH03214289A JP H03214289 A JPH03214289 A JP H03214289A JP 908490 A JP908490 A JP 908490A JP 849090 A JP849090 A JP 849090A JP H03214289 A JPH03214289 A JP H03214289A
Authority
JP
Japan
Prior art keywords
data
card
sector
page
transfer unit
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
JP908490A
Other languages
Japanese (ja)
Inventor
Hideyuki Fujikawa
藤川 秀幸
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.)
Amada Co Ltd
Original Assignee
Amada Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Amada Co Ltd filed Critical Amada Co Ltd
Priority to JP908490A priority Critical patent/JPH03214289A/en
Publication of JPH03214289A publication Critical patent/JPH03214289A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To minimize the number of defective files by transmitting and receiving the data on a single transfer unit, fractionizing these data, and applying the check sum to the parts where the data are registered for each of fractionized blocks. CONSTITUTION:A data transmission/reception means 2 fractionizes the data on the transfer unit and performing the sum check for each of fractionized blocks to collectively transmit the data on each transfer unit. The sum check means 1a and 1b perform the sum check for the data on each transfer unit to be transmitted and received in each block and only in the registered sectors. Then the data on a single transfer unit is transmitted/received and at the same time fractionized, and the sum check is performed for each of fractionized blocks. At the same time, the sum check is performed only in the registered sectors. At a result, the transmission/reception response is improve and the number of defective files can be minimized.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、ICカードと、このICカードに対し非接触
で結合され前記ICカードとの間でデータの送受信を行
うドライバー装置とを備え、両者の間でデータの送受信
を行うICカードのデータ転送装置に関する。
Detailed Description of the Invention [Object of the Invention] (Industrial Application Field) The present invention relates to an IC card and a driver that is connected to the IC card in a contactless manner and that transmits and receives data between the IC card and the IC card. The present invention relates to a data transfer device for an IC card, which includes a device and transmits and receives data between the two.

(従来の技術) 近年、ICカードの普及が進み、各種分野において利用
されるようになってきた。
(Prior Art) In recent years, IC cards have become widespread and are being used in various fields.

例えば、工作機械の分野では、該工作機械のサーボ制御
軸及び各種アクチュエータを制御するNC装置にICカ
ード用のドライバー装置を接続し、ICカードに記憶さ
せたNCプログラムや図形データなどのデータを前記N
C装菫に転送することにより、前記NC装置を稼動させ
ることが行われるようになってきた。
For example, in the field of machine tools, an IC card driver device is connected to an NC device that controls the servo control axes and various actuators of the machine tool, and data such as NC programs and graphic data stored in the IC card is transferred to the NC device. N
It has become common practice to operate the NC device by transferring the information to the C-system.

ここに、ICカードは、携帯可能でンリーズ化し易く、
かつ守秘的事項を記憶できるので、さらなる発展が望ま
れるところである。
Here, IC cards are portable, easy to make and sell,
Moreover, it is possible to memorize confidential matters, so further development is desired.

ところで、従来のICカードとドライバー装置間でのデ
ータ転送は、一転送単位(例えば3KB)のデータをシ
リアル信号で送受信するものであるそして、データの信
頼性の向上を計るため、■ 一転送単位でサムコードを
生成し、サムチェックを行っている。
By the way, in the conventional data transfer between an IC card and a driver device, one transfer unit (for example, 3 KB) of data is sent and received using a serial signal.In order to improve data reliability, A sum code is generated and a sum check is performed.

■ または、転送後のデータを再び読み取りし転送前後
のデータを照合(ベリファイ)するようになっている。
■Alternatively, the data after the transfer is read again and the data before and after the transfer is verified.

(発明が解決しようとする課題) しかしながら、上記のごとき従来よりのICカードのデ
ータ転送装置にあっては、■の手法にあっては、転送単
位が大きいため、その中に含まれるファイル数が多く、
1バイトでも欠けたりすると、転送データに含まれる全
てのファイルが不良と解釈せざるを得ない。
(Problem to be Solved by the Invention) However, in the conventional IC card data transfer device as described above, the number of files included in the method (2) is large because the unit of transfer is large. many,
If even one byte is missing, all files included in the transferred data must be interpreted as defective.

また、■の手法にあっては、例えば1バイト毎の照合を
行なうため、処理時間が多くがかり、レスポンスが悪い
という問題がある。
Further, in the method (2), since the verification is performed for each byte, for example, there is a problem that it takes a lot of processing time and the response is poor.

そこで、本発明は、送受信のレスポンスを良《し、かつ
ファイルを極力最小限にくい止めることができるICカ
ードのデータ転送装置を提供することを目的とする。
SUMMARY OF THE INVENTION Therefore, it is an object of the present invention to provide an IC card data transfer device that improves transmission and reception responses and can minimize file size.

[発明の構成] (課題を解決するための手段) 上記課題を解決する本発明は、ICカードと、このIC
カードに対し非接触で結合され前記ICカードとの間で
データの送受信を行うドライバー装置とを備え、両者の
間でデータの送受信を行うICカードのデータ転送装置
において、転送単位のデータを細分化し、細分化された
各ブロック毎でサムチェックを行うこととして一転送単
位のデータをまとめて送信するデータ送受信手段と、 送受信される一転送単位のデータにつき、前記ブロック
単位で、登録セクタのみについてサムチェックを行うサ
ムチェック手段とを備えたことを特徴とする。
[Structure of the Invention] (Means for Solving the Problems) The present invention for solving the above problems includes an IC card and an IC card.
A data transfer device for an IC card that includes a driver device that is connected to the card in a non-contact manner and that sends and receives data to and from the IC card, and that sends and receives data between the two. , a data transmitting/receiving means that performs a sum check on each subdivided block and transmits data in one transfer unit at once; The present invention is characterized by comprising a sum check means for performing the check.

(作用) 本発明のICカードのデータ転送装置では、一転送単位
のデータを送受信すると共に、該一転送単位のデータを
細分化し、細分化された各ブロック毎にサムチェックを
行う。また、このサムチェックは、登録セクタのみにつ
いて行うので、送受信のレスポンスが高く、不良ファイ
ルを極力最小限にくい止めることができる。
(Operation) The IC card data transfer device of the present invention transmits and receives one transfer unit of data, subdivides the one transfer unit of data, and performs a sum check for each subdivided block. Furthermore, since this sum check is performed only on registered sectors, the transmission/reception response is high and the number of defective files can be minimized as much as possible.

(実施例) 以下、本発明の実施例を説明する。(Example) Examples of the present invention will be described below.

第1図は、本発明を工作機械を制御するNC装置に適用
した実施例の全体構成を示すブロック図である。
FIG. 1 is a block diagram showing the overall configuration of an embodiment in which the present invention is applied to an NC device for controlling a machine tool.

本発明は、非接触型のICカード1と、このICカ一ド
1の挿入状態において磁気結合され、ICカード1との
間でデータの送・受を行うドライバ一部(カード・リー
ダ/ライタ)2と、このドライバ一部2と接続されIC
カード1及びNC装f[(図示せず)との間でNCデー
タなどのデータの受渡しをするCPUボード3と、CP
Uボード3に読込まれたディレクトリデータ等を表示す
る液晶表示器4a及び各種の指令キーK1〜K6を配置
した指令出力部4から構成されている。ここでは、ドラ
イバ一部2と、CPUボード3と、指令出力部4を合わ
せてドライバー装置と呼ぶ。
The present invention relates to a non-contact type IC card 1 and a part of a driver (card reader/writer) that is magnetically coupled to the IC card 1 when the IC card 1 is inserted, and that transmits and receives data to and from the IC card 1. ) 2 and this driver part 2 is connected to the IC
A CPU board 3 that exchanges data such as NC data between the card 1 and the NC device f [(not shown);
It is comprised of a liquid crystal display 4a that displays directory data etc. read into the U-board 3, and a command output section 4 in which various command keys K1 to K6 are arranged. Here, the driver part 2, CPU board 3, and command output section 4 are collectively referred to as a driver device.

ICカード1は、その内部にメモリ1aと、サムチェッ
ク部1bとを備えている。ドライバ一部2は、RAMバ
ッフ72aと、サムチェック部2bを備えている。CP
Uボード3は、ディレクトリ(DIR)用のバッファ3
aと、読み書き用のバッファ3bと、図示しないNC装
置との間で用いるデータ転送用のバッファ3cを備えて
いる。
The IC card 1 internally includes a memory 1a and a sum check section 1b. The driver part 2 includes a RAM buffer 72a and a sum check section 2b. C.P.
U board 3 is buffer 3 for directory (DIR)
a, a read/write buffer 3b, and a data transfer buffer 3c used between an NC device (not shown).

第2図に各部1.2.3の記憶装置の詳細を示した。ド
ライバ一部2のRAMバッファ2aは、ベージ0 (D
i R部)読み書きエリアM1と、べ−ジ0 (DI 
R部)サムチェック用読み出しエリアM2と、データ部
(ベージn)読み書きエリアM3と、データ部(ベージ
n)サムチェック用読み出しエリアM4を備えている。
FIG. 2 shows details of the storage devices of each section 1.2.3. The RAM buffer 2a of the driver part 2 has a page of 0 (D
i R section) Read/write area M1 and page 0 (DI
R section) comprises a sum check readout area M2, a data section (page n) read/write area M3, and a data section (page n) readout area M4 for sum check.

ICカードのメモリ1aは、例えば32KB(128セ
クタ)の記憶エリアを備え、Oベージ〜3ページの全4
ページの記憶エリアのうち、ベージ0のセクタ0はシス
テム用、セクタ1はFAT(カードサイズ)部、セクタ
2,3はPCB(ファイル名ブロック)部、以下のセク
タはデータ部として使用されるものである。
The memory 1a of the IC card has a storage area of, for example, 32 KB (128 sectors), and has a total of 4 pages from O page to 3 pages.
Of the page storage areas, sector 0 of page 0 is used for the system, sector 1 is used as the FAT (card size) section, sectors 2 and 3 are used as the PCB (file name block) section, and the following sectors are used as the data section. It is.

メモリ1aの各ページは、第2図(B)に詳細に示され
るように32セクタ(0セクタ〜31セクタ)に分割さ
れ、1セクタ当たり256バイトの記憶エリアを持つ。
Each page of the memory 1a is divided into 32 sectors (sectors 0 to 31), as shown in detail in FIG. 2(B), and has a storage area of 256 bytes per sector.

各ページのOセクタはダミーセクタとされ、第2図(C
)に示されるように、斜線部5で示す4バイト分のエリ
アはシステム不定領域とされ、CPUボード3からのデ
ータ転送終了の遅れ分の余裕を見るための領域とされて
いる。また、斜線部6で示す3バイト分のエリアは、デ
ータ転送の際のバイトずれを検出するための領域とされ
ている。
The O sector of each page is a dummy sector, as shown in Figure 2 (C
), the 4-byte area indicated by the shaded area 5 is a system undefined area, and is an area for allowing for a delay in the completion of data transfer from the CPU board 3. Furthermore, an area of 3 bytes indicated by a hatched portion 6 is an area for detecting byte shift during data transfer.

さらに、0セクタの128バイト目からは、各セクタ0
〜31のチェックサムコードが格納されている。すなわ
ち、128バイト目には0セクタのチェックサムコード
が、また図中番号7で囲む129バイト〜131バイト
には1セクタから3セクタのチェックサムコード、つま
り、ディレクトリデータのチェックサムコードが格納さ
れている。
Furthermore, from the 128th byte of sector 0, each sector 0
~31 checksum codes are stored. That is, the checksum code of sector 0 is stored in the 128th byte, and the checksum code of sectors 1 to 3, that is, the checksum code of the directory data, is stored in bytes 129 to 131 surrounded by number 7 in the figure. ing.

なお、各ページの0セクタには、前述したように先頭4
バイトの不定領域5及びバイトずれ検出領域6があるの
で、0セクタのチェックサム値は、0バイトから数えて
8バイト目から256バイト目までの合計の値としてい
る。
Note that the 0 sector of each page includes the first 4
Since there is a byte indeterminate area 5 and a byte shift detection area 6, the checksum value of the 0 sector is the total value from the 8th byte to the 256th byte counting from the 0 byte.

第4図(a)は書き込み手順の説明図である。FIG. 4(a) is an explanatory diagram of the writing procedure.

図において、■〜[株]の順で書込み処理が実行される
In the figure, the write process is executed in the order of ■ to [stock].

■ まず、IC,/17−ド1のページ0をRAMバッ
フy2aのOOOH−IFFFHへ読込む。
(2) First, page 0 of IC,/17-dore 1 is read into OOOH-IFFFH of RAM buffer y2a.

■ 0ベージのサムチェックと、0〜31のセクタの計
算したチェックサムとの照合を行う。
■ Check the sum of 0 pages and check the calculated check sum of sectors 0 to 31.

チェックサム照合が不一致の場合、FAT部が不一致の
ときはカード不良のメッセージを出力し、1セクタ用の
FAT部のそれぞれにFF}Iを書込む。また、有効デ
ータセクタが不一致のときは、該当するFCB部の所定
エリアをFF(H)に書き換える。
If the checksum verification does not match, and if the FAT sections do not match, a message indicating that the card is defective is output, and FF}I is written in each of the FAT sections for one sector. Further, when the valid data sectors do not match, a predetermined area of the corresponding FCB section is rewritten to FF (H).

■ 一方、チェックサム照合が一致のときは、RAMバ
ッファ2a上のページ0データより、DIR部をDiR
用バッファ3aへ読込み、アプリケーションで使用する
ためのエリアに格納する。
■ On the other hand, when the checksum comparison is a match, the DIR part is DiR from the page 0 data on the RAM buffer 2a.
The data is read into the buffer 3a and stored in an area for use by the application.

■ DiR用バッファ3aより、カード1へ書込むセク
タの存在するベージn (例えばn−3)をRAMバッ
ファ2aのエリアM3へ読込む。
(2) Read page n (for example, n-3) in which the sector to be written to card 1 exists from DiR buffer 3a into area M3 of RAM buffer 2a.

■ ページn内のセクタにおけるチェックサムを照合す
るベージnのセクタO内のチェックサムと0〜31セク
タの計算したチェックサムとの照合を行う。チェックサ
ム照合が不一致の場合は、■から同様の動作をくりかえ
す。3回チェソクしても不一致の場合は、有効データセ
クタが不一致のとき、該当するFCB部(ファイル名ブ
ロック)のファイルタイプの次の20HをFFHに書き
換える。該当するセクタが空データのとき、DiR部よ
り次に空いているセクタを捜し出す。ページが代わる場
合は、■からの処理をくり返す。ベジnがベージ0の場
合は、カード不良のメッセジを出力し、1セクタ用のF
AT部にFFH,FFHを書込む。
(2) Verifying the checksum in sector O of page n Verify the checksum in sector O of page n with the calculated checksum of sectors 0 to 31. If the checksum verification does not match, repeat the same operation from ■. If the valid data sectors do not match even after checking three times, the next 20H of the file type in the corresponding FCB section (file name block) is rewritten to FFH. When the corresponding sector is empty data, the next empty sector is searched from the DiR section. If the page changes, repeat the process from ■. If veg n is 0, a card defect message is output and the F for 1 sector is output.
Write FFH and FFH to the AT section.

■ RS−232Cを通じて転送バッファ3Cから読み
書き用バッファ3bへデータを受信する。
(2) Receive data from the transfer buffer 3C to the read/write buffer 3b via RS-232C.

2 5 6 byteもしくは1プログラムのENDま
で受信したならば、コード変換をし、1セクタ分のデタ
としてチェックサムを生成する。RS−2320からデ
ータ受信する際に、1 byteごとのRTSのオフは
しない。
When 2 5 6 bytes or up to the END of one program is received, code conversion is performed and a checksum is generated as data for one sector. When receiving data from RS-2320, RTS is not turned off for each byte.

■ RAMバッフy2a上の該当部へ、256byte
のデータを書込む。次の書込みセクタが同一ぺ−ジに存
在する時は、■からの処理をくり返す。
■ To the corresponding part on RAM buffer y2a, 256 bytes
Write the data. When the next write sector exists on the same page, repeat the process from ①.

■ ページnのRAMバッファ2a上に空セクタ(デー
タ書込みセクタ)がなくなったか、1プログラムのEN
Dが来たならば、RAMバ,,ファ2a上のベージnの
データをカード1の該当一に書き込む。各セクタのチェ
ックサムは0セクタの指定位置へ書き込む。
■ There are no more empty sectors (data write sectors) on the RAM buffer 2a of page n, or the EN of one program
When D arrives, the data of page n on RAM buffer 2a is written to the corresponding one of card 1. The checksum of each sector is written to the specified position of the 0 sector.

■ カードlへ書き込んだベージnのデータを、RAM
バッフy2aの6000H〜7FFFH″Fに読込む。
■ The page n data written to card l is transferred to RAM.
Read into buffer y2a from 6000H to 7FFFH″F.

■ 読み込んだデータ(ページn)の0〜31セクタの
チェックサムを照合する。チェックサム照合が不一致の
場合は、■から同様の動作をくり返す。3回チェックし
ても不一致の場合は、現在受信、書込み中のセクタが不
一致のとき、“力一ド書込み エラー′のメッセージを
出力し、該当するFAT部にFF (H) 、FF (
H)を書込み、ディレクトリ一部の更新はしない。また
、有効データセクタ(現在書込みセクタ外で)が不一致
のとき、該当するFCB部のファイルタイプの次の20
HをFFHに書き換える。ページnがベージ0の場合は
、■と同じ処理も入れる。1プログラムの終了でない場
合は、■からの処理をくり返す。
■ Verify the checksum of sectors 0 to 31 of the read data (page n). If the checksum comparison does not match, repeat the same operation from ■. If there is a mismatch even after checking three times, if the sector currently being received or written is mismatched, a "Force write error" message is output and FF (H), FF (
H), but do not update part of the directory. Also, when the valid data sector (outside the currently written sector) does not match, the next 20
Rewrite H to FFH. If page n is page 0, the same process as ■ is also included. If it is not the end of one program, repeat the process from ①.

QDIR用バッファ3aのデータを更新し、チェックサ
ムを生成する。
The data in the QDIR buffer 3a is updated and a checksum is generated.

QDIR用バッフy3aのデータを、RAMバッファ2
aのエリアM1の指定位置に戻す。該当セクタのチェッ
クサムも指定位置へ戻す。
The data in QDIR buffer y3a is transferred to RAM buffer 2.
Return to the specified position in area M1 of a. The checksum of the corresponding sector is also returned to the specified position.

■ RAMバッファ2aエリアM1のデータを、カード
のベージOへ書込む。
■ Write data in RAM buffer 2a area M1 to page O of the card.

■ カードへ書込んだベージ0のデータを、RAMバッ
ファ2aのエリアM2に読込む。
(2) Read the page 0 data written to the card into area M2 of the RAM buffer 2a.

[株] 読込んだページ(ページ0)の0〜31セクタ
のチェックサムを照合する。チェックサム照合が不一致
の場合は、■から同様の動作をくり返す。3回チェック
しても不一致の場合は、データ部が不一致のとは■の不
一致の場合の処理を実行し、DIR用バッファ3aが不
一致のとき■の不一致の場合の処理と同様とする。
[Stock] Verify the checksum of sectors 0 to 31 of the read page (page 0). If the checksum comparison does not match, repeat the same operation from ■. If there is no mismatch even after checking three times, the processing for the case of mismatch (2) is executed when the data portions do not match, and when the DIR buffer 3a is mismatched, the same processing as for the case of no match (2) is performed.

第4図(a)に書込み処理の具体例をフローチャートで
示した。
FIG. 4(a) shows a flow chart of a specific example of the write process.

第5図(a)は読込み手順の説明図である。図において
、■〜■の順で読込み処理が実行される。
FIG. 5(a) is an explanatory diagram of the reading procedure. In the figure, the reading process is executed in the order of ■ to ■.

■ ベージ0より、DiR部を含む8KBをカド1から
、RAMバッファ2a (0000H〜1. F F 
H )へ読込む。
■ From page 0, transfer 8KB including the DiR section from card 1 to RAM buffer 2a (0000H~1.F F
H).

■ ページO内のセクタにおけるチェソクサムを照合す
る。0セクタ内のサムチェック(θ〜31セクタ分)と
、0〜31セクタの計算したチェックサムとの照合を行
う。
■ Verify the check sum in the sector in page O. The sum check in sector 0 (for θ to 31 sectors) is compared with the calculated checksum of sectors 0 to 31.

チェックサム照合が不一致の場合は、■から同様動作を
くり返す。3回チェックしても不一致であった場合、F
AT部,DiR部が不一致のとき、カード不良のメッセ
ージを出力し、1セクタ目の00H〜OIHにFFHS
FFHを書込む。また、有効データセクタが不一致のと
き、該当するFCB部(ファイル名ブロック)の該当す
るエリアにFF(H)に書き換える。
If the checksum comparison does not match, repeat the same operation from ■. If there is no match after checking three times, F
When the AT part and the DiR part do not match, a card defect message is output and FFHS is written in the first sector 00H to OIH.
Write FFH. Furthermore, when the valid data sectors do not match, the corresponding area of the corresponding FCB part (file name block) is rewritten to FF (H).

■ RAMバッファ2a上のペード0のデータより、D
IR部(FAT及びPCB)を読込み、アプリケーショ
ンで使用するためのエリアに格納する。
■ From the data of PADE 0 on RAM buffer 2a, D
Reads the IR section (FAT and PCB) and stores it in an area for use by the application.

■ DiR部より送出しようとするプログラムのPCB
から、そのプログラムデータが不良かどうかをチェック
する。所定エリアに書かれた内容がFF(H)ならば不
良である。この場合不良のメッセージを出力する。
■ PCB of the program to be sent from the DiR section
Check whether the program data is defective. If the content written in the predetermined area is FF (H), it is defective. In this case, a defective message will be output.

■ DiR部より、送出しようとするセクタの存在する
ベージn (例えばn−3)をRAMバッファ2a (
4000H〜5FFFH)へ読込む。
■ The DiR unit transfers the page n (for example, n-3) in which the sector to be sent exists to the RAM buffer 2a (
4000H to 5FFFH).

■ 該当セクタのチェックサムを照合する。チエツクサ
ムとの照合が不一致の場合は、■からの動作をくり返す
。3回チェックしても不一致の場合は、不良のメッセー
ジを出力し、該当するFCB部(ファイル名ブロック)
のファイルタイプの次の20HをFFHに書き換える。
■ Verify the checksum of the sector. If the checksum does not match, repeat the operation from ■. If there is a mismatch even after checking three times, a defective message will be output and the corresponding FCB section (file name block)
Rewrite the next 20H of the file type to FFH.

■ 変換バッファへデータを抽出する。■ Extract data to the conversion buffer.

■ コード変換をし、RS−232Cよりデータの送出
をする。次送出データが同一ページに存在する場合は■
からの処理をくり返し、次セクタが他ページに存在する
場合は■からの処理をくり返す。
■ Converts code and sends data via RS-232C. If the next sending data exists on the same page, ■
Repeat the process from step 2, and if the next sector exists on another page, repeat the process from step 1.

第5図(b ) ,  (c ) ,  (d )に具
体的な読込み中順のフローチャートを示した。
FIGS. 5(b), 5(c), and 5(d) show specific flowcharts of the order during reading.

以上の通り、本例では、転送単位である8KBを256
バイト単位で区分し、その単位でチェックサムを行なう
。かつ、登録セクター(256バイト)のみチェックを
行なう。
As mentioned above, in this example, the transfer unit of 8KB is 256
Divide into bytes and perform checksum on each byte. In addition, only the registered sector (256 bytes) is checked.

したがって、不良ファイルを最小限にくい止めることが
でき、登録セクターのみを行なうため、処理時間が速く
、さらに登録セクターのチェックを行なっている関係で
、実際に読込みを行なう前にファイルの不良も検出でき
る。
Therefore, it is possible to minimize the occurrence of bad files, and since only the registered sectors are checked, the processing time is fast, and since the registered sectors are checked, it is possible to detect file defects before actually reading them. .

また、テーブル(表)計算をするときに小計をうまく利
用して誤計算を早目に検出する手法と類似の方式で誤り
検出を行うので、ページが満杯でないショートページに
対して特に有効である。
In addition, error detection is performed using a method similar to the method used to quickly detect miscalculations by making good use of subtotals when performing table calculations, so it is particularly effective for short pages that are not full. .

上記実施例ではICカードのメモリを8KBの例で示し
たが、1 28KBなどであっても同様である。またブ
ロックサイズを256バイトとしたか、この単位もこれ
に限定されるものではない。
In the above embodiment, the memory of the IC card is 8 KB, but the same applies even if the memory is 128 KB. Furthermore, although the block size is set to 256 bytes, this unit is not limited to this.

[発明の効果] 以上の通り、本発明のICカードのデータ転送装置では
、一転送単位のデータを送受信すると共に、該一単位の
データを細分化し、細分化された各ブロック毎にデータ
登録されている部分についてのみチェックサムを行うの
で、送受信のレスポンスが高く、不良ファイルを極力最
小限にくい止めることができる。
[Effects of the Invention] As described above, the IC card data transfer device of the present invention transmits and receives one transfer unit of data, subdivides the one unit of data, and registers data for each subdivided block. Since the checksum is performed only on the portions that have been deleted, the response of sending and receiving is high, and the number of bad files can be minimized as much as possible.

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

第1図は本発明の一実施例を示すICカードのデータ転
送装置のブロック図、第2図はその記憶装置の構成方式
を示すブロック図、第3図はICカードのメモリの構成
方式を示す説明図、第4図(a ) ,  (b ) 
,  (c )は書き込み処理の説明図、第5図(a 
) ,  (b ) ,  (.C ) ,  (d 
)は読込み処理の説明図である。 1・・・ICカード 2・・・ドライバ一部 3・・・CPUボード ].b,2b・・・チェックサム部
FIG. 1 is a block diagram of an IC card data transfer device showing an embodiment of the present invention, FIG. 2 is a block diagram showing the configuration of the storage device, and FIG. 3 is a block diagram of the IC card memory configuration. Explanatory diagram, Figure 4 (a), (b)
, (c) is an explanatory diagram of the writing process, and Fig. 5 (a) is an explanatory diagram of the writing process.
), (b), (.C), (d
) is an explanatory diagram of the reading process. 1...IC card 2...part of the driver 3...CPU board]. b, 2b...Checksum section

Claims (1)

【特許請求の範囲】[Claims] (1)ICカードと、このICカードに対し非接触で結
合され前記ICカードとの間でデータの送受信を行うド
ライバー装置とを備え、両者の間でデータの送受信を行
うICカードのデータ転送装置において、 転送単位のデータを細分化し、細分化された各ブロック
毎でサムチェックを行うこととして一転送単位のデータ
をまとめて送信するデータ送受信手段と、 送受信される一転送単位のデータにつき、前記ブロック
単位で、登録セクタのみについてサムチェックを行うサ
ムチェック手段とを備えたことを特徴とするICカード
のデータ転送装置。
(1) An IC card data transfer device that includes an IC card and a driver device that is connected to the IC card in a non-contact manner and that transmits and receives data between the two. , a data transmitting/receiving means for dividing data in a transfer unit into pieces and transmitting data in one transfer unit at once by performing a sum check for each subdivided block; 1. A data transfer device for an IC card, comprising a sum check means for performing a sum check only on registered sectors in block units.
JP908490A 1990-01-19 1990-01-19 Data transfer device for ic card Pending JPH03214289A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP908490A JPH03214289A (en) 1990-01-19 1990-01-19 Data transfer device for ic card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP908490A JPH03214289A (en) 1990-01-19 1990-01-19 Data transfer device for ic card

Publications (1)

Publication Number Publication Date
JPH03214289A true JPH03214289A (en) 1991-09-19

Family

ID=11694560

Family Applications (1)

Application Number Title Priority Date Filing Date
JP908490A Pending JPH03214289A (en) 1990-01-19 1990-01-19 Data transfer device for ic card

Country Status (1)

Country Link
JP (1) JPH03214289A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000269936A (en) * 1999-03-15 2000-09-29 Nohmi Bosai Ltd Data transmission system and method for detecting data error

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000269936A (en) * 1999-03-15 2000-09-29 Nohmi Bosai Ltd Data transmission system and method for detecting data error

Similar Documents

Publication Publication Date Title
US5784595A (en) DMA emulation for non-DMA capable interface cards
CN101162445A (en) Method and system promoting the input/output process for processing surroundings
US6128670A (en) Image input device employing a personal computercard/interface or generic interface
US5968156A (en) Programmable peripheral component interconnect (PCI) bridge for interfacing a PCI bus and a local bus having reconstructable interface logic circuit therein
JPH03214289A (en) Data transfer device for ic card
US7076636B1 (en) Data storage system having an improved memory circuit board configured to run scripts
US5335340A (en) Byte-swap hardware simulator for a sixteen bit microprocessor coupled to an eight bit peripheral unit
US7020600B2 (en) Apparatus and method for improvement of communication between an emulator unit and a host device
JPH0394322A (en) Method for discriminating identity of noncontact ic card
JP3227819B2 (en) Gate system using contactless card
KR100259585B1 (en) Dma controller
US20030120862A1 (en) Controlling method of storage apparatus, and storage apparatus, disk array device, and disk controller used in the method thereof
JP2852304B2 (en) Communication system comprising data storage device and data reading or writing device
JP2735112B2 (en) Data read / write method of numerical controller
RU1803916C (en) Device for mating with object to be monitored
JPH02272955A (en) Interruption system for arbitrary received data
JPH0376507B2 (en)
JPH09223203A (en) Non-contact ic card
JPH10247157A (en) Transaction processing system and its recovering method
GB2234098A (en) Disk drive/host computer interfacing
JPH0337220B2 (en)
JPH0221340A (en) Debugging system for firmware
JP2000284981A (en) Computer system
JPH0574047U (en) Pseudo communication control device
JPH02287783A (en) Ic card processing system