CN100437456C - Electronic device, control method thereof, host device, and control method thereof - Google Patents

Electronic device, control method thereof, host device, and control method thereof Download PDF

Info

Publication number
CN100437456C
CN100437456C CNB2004800366493A CN200480036649A CN100437456C CN 100437456 C CN100437456 C CN 100437456C CN B2004800366493 A CNB2004800366493 A CN B2004800366493A CN 200480036649 A CN200480036649 A CN 200480036649A CN 100437456 C CN100437456 C CN 100437456C
Authority
CN
China
Prior art keywords
data
block size
block
instruction
host apparatus
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
CNB2004800366493A
Other languages
Chinese (zh)
Other versions
CN1890624A (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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Publication of CN1890624A publication Critical patent/CN1890624A/en
Application granted granted Critical
Publication of CN100437456C publication Critical patent/CN100437456C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0656Data buffering arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • G06F3/0613Improving I/O performance in relation to throughput
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)
  • Computer And Data Communications (AREA)
  • Communication Control (AREA)
  • Credit Cards Or The Like (AREA)

Abstract

There is provided an electronic device for transmitting error information on block size setting to a host device without complicating design of the host device. A control method of the electronic device is also disclosed. The electronic device includes: an interface unit for transmitting/receiving a command, a response, and data to/from the host device and performing multi-block transfer if the data has length greater than a predetermined value; a data buffer; and a storage unit for storing the block size information. The interface unit receives the block size setting command transmitted from the host device. When the block size data is greater than the data buffer capacity, the interface unit transmits a response containing error information indicating that the block size cannot be accepted at a moment which is in a predetermined relationship with the block size setting command.

Description

Electronic installation and control method thereof, host apparatus and control method thereof
Technical field
[0001]
The present invention relates to electronic installation and control method thereof, host apparatus (main device) and control method thereof.
Background technology
[0002]
In recent years, developed the IC-card (being comprised) that carries nonvolatile memory and other function, and put on market in a large number by electronic installation.For example: the IC-card of progressively realizing to carry short-access storage and wireless communication machine, be installed to PDA (Personal Digital Assistants, host apparatus) in, give PDA with pictorial data and data transmission in network telephony that IC-card receives, by the technology of display and loudspeaker output image data and the voice data of PDA.
In addition, in the prior art, transfer data to IC-card, store the function practicability in the short-access storage of IC-card into.
[0003]
In general, the data transmission of carrying out between host apparatus and IC-card adopts the master/slave mode based on host apparatus to communicate.Host apparatus sends instruction to IC-card, this IC-card is answered to host apparatus reply.Transmitting-receiving instruction and reply after, host apparatus that has and IC-card can carry out data transmission as required again.The size of the moment of host apparatus determination data transmission and the data of transmission, IC-card receive or send data according to it.
[0004]
In the data transmission of between host apparatus and IC-card, carrying out, there is a kind of method to be known as " multiword district (multi-block) transmission ".So-called " transmission of multiword district ", be when data have length more than specifying when being length more than the block size (block size) with appointment (representational), (1) these data are divided into a plurality of data block of given block size, (2) are the method in a plurality of data of discontinuous transmission block then.
[0005]
Host apparatus determines the block size in 1 data block, before the beginning data transmission, sends the information of block size to IC-card.Specifically, host apparatus sends the setting data of the block size comprise 1 byte in interior instruction (being called " the 1st block size setting command ") to IC-card, and IC-card is with in the data setting of the block size that the receives register in the IC-card.
[0006]
Usually, host apparatus is read the capacity of data buffer of the transmitting-receiving usefulness of IC-card from IC-card, set the block size for this below capacity.
, general IC-card can be installed on the various host apparatus.Host apparatus can be installed various general IC-cards (all IC-cards all meet same standard).Therefore, the capacity of the data buffer of IC-card be not read out or the value of readout error after, just tend to set the block size greater than the capacity of the data buffer of IC-card.
[0007]
When IC-card sends data block greater than the capacity of the data buffer of IC-card, overflowing will appear in the data buffer of IC-card by host apparatus.In addition, when host apparatus requirement IC-card sent greater than the data block of the capacity of the data buffer of IC-card, IC-card just can not send this data block.Therefore, when IC-card receives greater than the setting command of the block size of the capacity of data buffer, need send error message to host apparatus.
Host apparatus is as to the replying of the setting command of block size, and when receiving error message, need resend the setting command of the block size of the following size of the capacity of data buffer.
[0008]
IC-card receives the 1st block size setting command of the setting data that comprises the block size.At the setting data of block size during greater than buffer capacity, IC-card just comprising error message in the replying of the 1st block size setting command, sends to host apparatus.Like this, the data buffer that can prevent IC-card occurs overflowing when the transmitting-receiving of block size.
[0009]
By host apparatus (host apparatus is when IC-card sends data and writes instruction) when IC-card sends data, host apparatus at first use fixed block size cut apart the data of transmission, generate a plurality of data block.Then, host apparatus sends a plurality of data block to IC-card successively.
[0010]
By IC-card (when host apparatus sends the data sense order to IC-card) when host apparatus sends data, the block size that IC-card is at first set with host apparatus is cut apart the data of transmission, generates a plurality of data block.Then, IC-card sends a plurality of data block to host apparatus successively.
The transmission of multiword district, owing to send a plurality of data block spasmodically, so when the high-speed transfer lot of data, very effective.
[0011]
Open in the flat 11-298450 communique the spy, announced when in serial data transmission, overflowing, error signal is sent to the IC-card of the prior art example of host apparatus.The IC-card of prior art example not by built-in CPU, sends error signal to host apparatus.The IC-card of prior art example when built-in receive data buffer overflows, sends error message to host apparatus.
[0012]
Patent documentation 1: the spy opens flat 11-298450 communique
[0013]
The setting of the block size of prior art in the transmission of multiword district is only carried out in the size setting command of the 1st block of the data that comprise the block size.The block size setting data that the 1st block size setting command can comprise according to agreement, for example can be decided to be 1 byte.
[0014]
The memory span of IC-card increases, and transmits lot of data between IC-card and the host apparatus, and the setting data of block size will be not enough with 1 byte., in instruction, use the 1st block size setting command of the data area only distribute 1 byte after, host apparatus can not send the data of the block size of 2 bytes to IC-card.
[0015]
Therefore, the someone has proposed following scheme: on size setting command basis, the 1st block of prior art, use host apparatus can send the instruction (being called " the 2nd block size setting command ") of the data of the block size more than 2 bytes to IC-card.
[0016]
The 2nd block size setting command, the setting data that in instruction, does not have the block size.The 2nd block size setting command sends the instruction that makes host apparatus send the setting data of block size according to (1), and (2) reception is replied from IC-card, and this agreement of setting data that (3) send the block size then sends.
[0017]
Host apparatus and IC-card according to instruct-reply-data this exchange in proper order.Therefore, IC-card can not comprise the excessive error message of setting data in replying when the setting data of block size is bigger than data buffer capacity.
[0018]
When using the 2nd block size setting command, exist IC-card when the setting data of block size is big than its data buffer, can not be with error message as the problem of replying to the host apparatus transmission.
[0019]
In order to set the block size, after can using both of the 1st block size setting command and the 2nd block size setting command, because the difference of the instruction of using, two kinds of situations of being replied and not replying to host apparatus by IC-card will appear in the error message about the setting of block size.Therefore, exist the design that the makes host apparatus complicated problems that becomes.
[0020]
Therefore, consider the moment that will send data be decided to be reply before, adopt instruction-data-reply this in proper order.According to agreement, when host apparatus sends block size setting command to IC-card, IC-card make reply before, receive the setting data of block size.Therefore, when the block size is excessive, can be with error message as replying answer.
, in the data transmission according to this agreement, for example instruction has when makeing mistakes (for example instruction is when sending the instruction of the data that IC-card can not handle by host apparatus), IC-card can not be immediately with error message as replying answer.Therefore, exist the problem of vainly transmitting lot of data.
[0021]
The IC-card of the prior art example that patent documentation 1 is recorded and narrated after the reception data, when receive data buffer overflows, sends to host apparatus with error signal.Therefore, the transmission from the data of host apparatus just becomes useless.Host apparatus must send the data that IC-card fails to receive once more.If IC-card can send the error message that occurs overflowing to host apparatus before the transmission data, just can prevent the problem of the transmission (data transmission that IC-card can not receive) of the data of above-mentioned futile effort.
Summary of the invention
[0022]
The present invention is intended to solve the problems referred to above of prior art.Its purpose is to provide host apparatus and electronic installation (for example IC-card) to instruct-reply according to sending successively-agreement of data, send at host apparatus under the situation of setting data of block size, when electronic installation can not receive the setting data of this block size, send electronic installation and the control method and host apparatus and the control method thereof corresponding of error message to host apparatus with it.
The object of the present invention is to provide with the kind of the setting command of block size irrelevant, the electronic installation and control method and host apparatus and the control method thereof corresponding that send to host apparatus in the moment of the appointment error message that the setting of block size is relevant with it.
The electronic installation and control method and host apparatus and the control method thereof that the object of the present invention is to provide complicatedly that the setting of block size is the relevant error message of design that do not make host apparatus to send to host apparatus.
The object of the present invention is to provide electronic installation and control method and the host apparatus and the control method thereof that prevents trouble before it happens of overflowing of the transceive data impact damper that makes electronic installation.
The object of the present invention is to provide electronic installation and control method and the host apparatus and the control method thereof of the general host apparatus that can have interchangeability ground combination and general electronic installation.
[0023]
In order to solve above-mentioned problem, the present invention has following structure.
Adopt the electronic installation of a viewpoint of the present invention, have: interface portion, this interface portion sends the instruction/acknowledge lines of replying with reception from the instruction of host apparatus, to described host apparatus, and described host apparatus between, by described instruction/acknowledge lines transmitting-receiving instruction and reply the back, the data line of receiving and dispatching the data of and instruction correspondence as required connects, described data have during length more than deciding, these data are cut apart are received and dispatched behind the data block of the block size of described host apparatus appointment; Storage part, this storage part is deposited the data buffer of described data, in described interface portion, when described host apparatus receives the instruction of block size in specific data block, stores the information of this block size; Described interface portion, receive this instruction of data (below be called " the big or small setting command in block ") that sends the information of the block size that comprises described data block with described data line from described host apparatus, this block size is during greater than the capacity of described data buffer, with described block size setting command be in 1 moment of fixed relation, send and comprise replying of this error message that can not tackle this block size.
[0024]
Adopt the control method of the electronic installation of a viewpoint of the present invention, have: receiving step, the data of the length more than this step is decided having are divided into a plurality of data block laggard when transmitting-receiving row, receive " data that send the information of the block size that comprises each data block with data line " this block size setting command by instruction/acknowledge lines there from host apparatus, reply it by described instruction/acknowledge lines transmission, receive this data then; Determining step, this step judge that described block size is whether greater than the capacity of built-in data buffer; The error message forwarding step, this step with described block size setting command be in 1 moment of fixed relation, send comprise can not with the replying of described block corresponding this error message of size.
[0025]
Here, so-called " block size setting command " is " the 2nd block size setting command " of embodiment.
These inventions, send successively according to host apparatus and electronic installation (for example IC-card) and to instruct-to reply-agreement of data, sent at host apparatus under the situation of setting data of block size, also have in the time of to be implemented in electronic installation and can not to receive the setting data of this block size, send the electronic installation and this effect of control method thereof of error message to host apparatus.
These inventions, the design that can realize not making host apparatus complicatedly fixed moment, send the electronic installation and the control method thereof of error message of the setting of relevant block size to host apparatus.
[0026]
In the above-mentioned electronic installation that adopts other viewpoint of the present invention, be in 1 moment of described fixed relation, be from described host apparatus received " actual send or receive cut apart have the data block of the described block size that generates after the data of the length more than deciding " moment of instruction, in the replying of described instruction, send after comprising described error message, and when having sent the data block of being cut apart by described host apparatus, will not receive.
[0027]
In the control method of the above-mentioned electronic installation that adopts other viewpoint of the present invention, be in 1 moment of described fixed relation, be from described host apparatus received " actual send or receive cut apart have the data block of the described block size that generates after the data of the length more than deciding " moment of instruction, in the replying of described instruction, send after comprising described error message, and when having sent the data block of being cut apart by described host apparatus, will not receive.
[0028]
After adopting these inventions, host apparatus receives after the replying of " the actual instruction that sends or receive the data block ", and can confirm the error message of the setting of relevant block size.Like this, can not make the design of host apparatus receive error message from electronic installation complicatedly.
[0029]
In the above-mentioned electronic installation that adopts other viewpoint of the present invention, be in 1 moment of described fixed relation, be after the size setting command of described block, received the moment of the instruction that sends by described host apparatus, in corresponding with described instruction replying, additional comprise described error message reply the back transmission.
[0030]
In the control method of the above-mentioned electronic installation that adopts other viewpoint of the present invention, be in 1 moment of described fixed relation, be after the size setting command of described block, received the moment of the instruction that sends by described host apparatus, in corresponding with described instruction replying, additional comprise described error message reply the back transmission.
[0031]
After adopting these inventions, host apparatus receives after the replying of the instruction after the size setting command of block, and can confirm the error message of the setting of relevant block size.Like this, can not make the design of host apparatus receive error message from electronic installation complicatedly.
[0032]
In the above-mentioned electronic installation that adopts another other viewpoint of the present invention, described interface portion, by described instruction/acknowledge lines, receive the information instruction of the block size that comprises described data block from described host apparatus, this size of data is during greater than the capacity of described impact damper, then, received from described host apparatus actual transmission or reception cut apart have moment of instruction in data block of the described block size that generates after the data of the length more than deciding, to this instruction send comprise can not with the corresponding error message of block size, and when having sent the data block of being cut apart by described host apparatus, will not receive, perhaps in corresponding with the next instruction that sends of described host apparatus replying, additional is to send after the information of makeing mistakes to replying of the instruction of specifying the block size.
[0033]
In the control method of the above-mentioned electronic installation that adopts another other viewpoint of the present invention, also have by described instruction/acknowledge lines, receive the step of the information instruction of the block size that comprises described data block from described host apparatus; In described determining step, when judging this size of data greater than the capacity of described impact damper, then, received from described host apparatus actual transmission or reception cut apart have moment of instruction in data block of the described block size that generates after the data of the length more than deciding, to this instruction send comprise can not with the corresponding error message of block size, and when sending the data block of being cut apart by described host apparatus, will not receive, perhaps in corresponding with the next instruction that sends of described host apparatus replying, additional is to send after the information of makeing mistakes to replying of the instruction of specifying the block size.
[0034]
Here, electronic installation is done the what is called " information instruction that comprises the block size in data block " that media receives by instruction/acknowledge lines, is " the 1st block size setting command " of embodiment.
After adopting the present invention, even to the 1st block size setting command, also can be the same with the 2nd block size setting command, in the replying of later fixed instruction, whether respond block size setting command.Host apparatus can be irrelevant with the kind of the setting command of the block size that sends, and receives the error message of relevant block size in certain moment.
These inventions, the design that can realize not making host apparatus send the electronic installation and the control method thereof of error message of the setting of relevant block size complicatedly to host apparatus.
[0035]
Adopting the above-mentioned electronic installation of another other viewpoint of the present invention, is IC-card.
[0036]
In the control method of the above-mentioned electronic installation that adopts another other viewpoint of the present invention, described electronic installation is an IC-card.
[0037]
These inventions have versatility, are of great use in having the IC-card of diversified product.
[0038]
Adopt the host apparatus of a viewpoint of the present invention, have: interface portion, this interface portion with send instruction to electronic installation, receive the instruction/acknowledge lines of replying from described electronic installation, and described electronic installation between, by described instruction/acknowledge lines transmitting-receiving instruction and reply the back, the data line of receiving and dispatching the data of and instruction correspondence as required connects, described data have during length more than deciding, transmitting-receiving with these data cut apart that the back generates the data block of fixed block size, send the instruction of specifying this block size to described electronic installation; Described interface portion, send " data that send the information of the block size that comprises described data block with described data line " this block size setting command to described electronic installation, after sending these data, with described block size setting command be in 1 moment of fixed relation, when having sent the replying of error message of the designated value that comprises the block size that to tackle described data block by described electronic installation, send the instruction of the data capacity of its data buffer of inquiry to described electronic installation, according to replying to it, determine new block size, so that make it below the capacity of the data buffer of described electronic installation, send the instruction of specifying new block size to described electronic installation.
[0039]
Adopt the control method of the host apparatus of a viewpoint of the present invention, have: forwarding step, the data of the length more than this step is decided having are divided into a plurality of data block laggard when transmitting-receiving row, send " data that send the information of the block size that comprises each data block with data line " this block size setting command by instruction/acknowledge lines to electronic installation, reply it by described instruction/acknowledge lines reception, send this data then; Forwarding step, this step with described block size setting command be in moment of fixed relation, received comprise can not tackle this block size the replying of error message the time, to described electronic installation send its data buffer of inquiry the instruction of data capacity; Forwarding step, this step basis is replied it, determines new block size, makes it below the capacity of the data buffer of described electronic installation, sends the instruction of specifying new block size to described electronic installation.
[0040]
These inventions, has following effects: the setting data that can realize the host apparatus transmission block size that (1) is connected with described electronic installation (for example IC-card), when (2) electronic installation sends the error message of the setting data that can not receive this block size, host apparatus suitably changes the setting data of block size, carries out the host apparatus and the control method thereof of the simple structure of multiword district transmission.
[0041]
In the above-mentioned host apparatus that adopts other viewpoint of the present invention, be in 1 moment of described fixed relation, be to described electronic installation sent will have the data of the length more than deciding cut apart generate described block size after moment of the actual instruction that sends or receive.
[0042]
In the control method of the above-mentioned host apparatus that adopts other viewpoint of the present invention, be in 1 moment of described fixed relation, be to described electronic installation sent will have the data of the length more than deciding be divided into described block size after moment of the actual instruction that sends or receive.
[0043]
After adopting these inventions, host apparatus receives for after the replying of " will have the instruction that data that institute decide above length are divided into actual transmission after the size of block or reception ", and can confirm the error message of the setting of relevant block size.Like this, can not make the design of host apparatus receive error message from electronic installation complicatedly.
[0044]
In adopting the above-mentioned host apparatus of other viewpoint of the present invention, be in 1 moment of described fixed relation, be after the size setting command of described block, sent the moment of instruction to described electronic installation.
[0045]
In the control method of the above-mentioned host apparatus that adopts other viewpoint of the present invention, be in 1 moment of described fixed relation, be after the size setting command of described block, sent the moment of instruction to described electronic installation.
[0046]
After adopting these inventions, host apparatus receives for after the replying of the next instruction of block size setting command, and can confirm the error message of the setting of relevant block size.Like this, can not make the design of host apparatus receive error message from electronic installation complicatedly.
[0047]
After adopting the present invention, can obtain following favourable effect: send successively according to host apparatus and electronic installation (for example IC-card) and instruct-reply-agreement of data, sent at host apparatus under the situation of setting data of block size, when electronic installation can not receive the setting data of this block size, also can realize sending the electronic installation and the control method thereof of error message to host apparatus.
After adopting the present invention, can obtain following favourable effect: can realize with the kind of the setting command of block size irrelevant, fixed moment with the error message of the setting of relevant block size electronic installation and control method and host apparatus and the control method thereof corresponding with it to the host apparatus transmission.
[0048]
After adopting the present invention, can obtain following favourable effect: the kind that can realize the setting command of block size is not limited to a kind of, and does not make the host apparatus design realize sending the electronic installation of error message and control method thereof, host apparatus and the control method thereof corresponding with it to host apparatus complicatedly.
After adopting the present invention, can obtain following favourable effect: can realize preventing electronic installation and control method and host apparatus and the control method thereof corresponding that the transmitting-receiving of IC-card is overflowed with data buffer with it.
After adopting the present invention, can obtain following favourable effect: electronic installation and control method and the host apparatus and the control method thereof that can realize having the general host apparatus and the general electronic installation of the combination of interchangeability ground.
[0049]
The brand-new feature of invention, completely in " claims ", recording and narrating, but about constituting and both of content, the present invention and other purpose and feature are together, can obtain further to understand and estimate by common following detailed the telling about of understanding of accompanying drawing.
Description of drawings
[0050]
Fig. 1 is the block scheme of structure of the IC-card of expression the 1st embodiment of the present invention.
Fig. 2 be expression the 1st embodiment of the present invention instruction, reply and the figure of data transmission.
Fig. 3 is the process flow diagram of the 1st block size establishing method of expression the 1st embodiment of the present invention.
Fig. 4 is the process flow diagram of the 2nd block size establishing method of expression the 1st embodiment of the present invention.
Fig. 5 is the process flow diagram of the multiword district transmission method of expression the 1st embodiment of the present invention.
Fig. 6 is the process flow diagram of the 1st block size establishing method of expression the 2nd embodiment of the present invention.
Fig. 7 is the process flow diagram of the 2nd block size establishing method of expression the 2nd embodiment of the present invention.
Fig. 8 is the figure of the structure of replying of expression the 2nd embodiment of the present invention.
Among the figure:
[0051]
101 host apparatus
The 102IC card
111 interface portion
112 error message generating units
113 data buffers
114 functional modules
121 blocks size storage part
122 buffer capacity storage parts
123 comparing sections
124 reply generating unit
Among the figure partly or entirely, draw the relative size and the position of the key element reality shown in may not depicting truly briefly for diagram.To this, please be noted.
Embodiment
[0052]
Below, with reference to accompanying drawing, tell about and specifically illustrate in order to implement embodiments of the present invention.
[0053]
" the 1st embodiment "
With reference to Fig. 1~Fig. 5, tell about electronic installation (being IC-card in the present invention) and control method, host apparatus and the control method thereof of the 1st embodiment of the present invention.Fig. 1 is the block scheme of structure of the IC-card of expression the 1st embodiment of the present invention.
In the 1st embodiment, host apparatus 101 is the PDA (Personal Digital Assistants) with insertion groove of IC-card 102.
[0054]
Host apparatus 101 and IC-card 102 are used 131,1 of instruction/acknowledge lines or many data lines 132, are sent clock line 133 connections of communication with the block by host apparatus 101 to interface portion 111.In addition, also use by power lead and the ground wire connection (not shown) of host apparatus 101 to IC-card 102 supply capabilities.
Instruction/acknowledge lines 131, data line 132, clock line 133 except rigid line, can also comprise the electric wave transmission, the ultrasonic transmission that adopt mutually different frequency to carry out.
Host apparatus 101 and IC-card 102 carry out host apparatus 101 as main frame, with the communication of IC-card 102 as the master/slave mode of slave.
[0055]
Host apparatus 101 has and utilizes instruction/acknowledge lines 131, data line 132, clock line 133, and IC-card 102 between instruct, reply and the interface portion (not shown) of the transmitting-receiving of data.
[0056]
IC-card 102 have and host apparatus 101 between instruct, reply and the interface portion 111 of the transmitting-receiving of data, generate the error message generating unit 112 about the error message of block size, temporary transient store data data buffer 113, have the functional module 114 of memory function and/or radio communication function.
Error message generating unit 112 has buffer capacity storage part 122, the comparing section 123 of block size and buffer capacity relatively of size of block size storage part 121, the store data buffer 113 of the block size of storage host device 101 decision.
Interface portion 111, have generate send to host apparatus 101 reply reply generating unit 124.
[0057]
The interface portion 111 of IC-card 102 is done media by instruction/acknowledge lines 131, receives the instruction that host apparatus 101 sends, and will send to host apparatus 101 to replying of this instruction.
The interface portion 111 of IC-card 102 is done media by data line 132, receives the data that host apparatus 101 sends, and perhaps the data in the IC-card 102 is sent to host apparatus 101.
Do media by instruction/acknowledge lines 131 and data line 132, when host apparatus 101 and IC-card 102 communicate, do media, send the block to IC-card 102 by host apparatus 101 by clock line 133.
[0058]
When carrying out the transmission of multiword district, host apparatus 101 determined the block size in 1 data block before the exchange of carrying out the data block, write the block size storage part 121 of IC-card.Block size storage part 121 is that host apparatus 101 is in order to write the register in block.
Buffer capacity storage part 122 is registers of the capacity of store data buffer 113.
[0059]
Comparing section 123 relatively writes the capacity of the data buffer 113 of the block size of block size storage part 121 and write buffer capacity storage portion 122.Comparing section 123 is transmitted comparative result to replying generating unit 124.
Reply generating unit 124 according to comparative result, in the block size that writes block size storage part 121 during, in sending to the replying of host apparatus 101, comprise error message greater than the capacity of the data buffer 113 of write buffer capacity storage portion 122.
[0060]
After the block size that IC-card 102 is done media transmission with host apparatus 101 by data line 132 temporarily deposits data buffer 113 in, be transferred to functional module 114.IC-card 102 will be transferred to host apparatus 101 after will temporarily depositing data buffer 113 in from the block size that functional module 114 is taken out.
Data buffer 113 is the registers in temporary transient store data block.
Functional module 114 for example is the functional module of having carried short-access storage and radio communication function.
[0061]
In Fig. 1, interface portion 111-block size storage part 121, interface portion 111-buffer capacity storage part 122, block size storage part 121-comparing section 123, buffer capacity storage part 122-comparing section 123, comparing section 123-reply each line of generating unit 124, interface portion 111-data buffer 113, data buffer 113-functional module 114, though can be rigid line, but more generally, be the circuit of the instruction of the function that constitutes by software.
[0062]
Fig. 2 be according to time series represent between host apparatus 101 and the IC-card 102 instruction, reply and the figure of the exchange of data.Employing as main frame, when IC-card 102 is carried out the transmission of multiword district as the communication of the master/slave mode of slave, hockets host apparatus 101 to be replied to the host apparatus transmission to IC-card transmission instruction with by IC-card by host apparatus.Then, transmit a plurality of data block spasmodically.Fig. 2 be host apparatus 101 read IC-card 102 data the time situation.
[0063]
The setting data 203 of instruction 201, instruction 204 and block size is sent to IC-card 102 by host apparatus 101.Reply 202, reply 205 and data block 206, then by sending to host apparatus 101 to IC-card 102.
But when instruction 201 was the 1st block size setting command, the setting data 203 of the block size that dots just can not send (details aftermentioned) to IC-card by host apparatus.Only when instruction 201 was the 2nd block size setting command, the setting data 203 of block size could be sent to IC-card by host apparatus.
[0064]
Fig. 3 and Fig. 4 are in this embodiment, the process flow diagram of the 2 kind situations of host apparatus 101 when IC-card 102 carries out the setting of block size.The instruction that host apparatus 101 uses when carrying out the setting of block size, when Fig. 3 is arranged and during Fig. 42 kinds.During Fig. 3 and the difference during Fig. 4, be the setting data that in instruction, whether comprises the block size.
[0065]
Say from the situation of Fig. 3.Fig. 3 is to use the 1st block size setting command that comprises setting data in instruction, the situation when setting the block size.
After host apparatus 101 determines the block size in 1 data block, just send the 1st block size setting command (step 301, Fig. 2 201) of the setting data that comprises the block size.
[0066]
The interface portion 111 of IC-card receives the 1st block size setting command (step 302).The block size storage part 121 of IC-card 102 is deposited the block size (step 303) that host apparatus 101 is set.IC-card 102 sends to host apparatus 101 and to reply (step 304, Fig. 2 202).
Host apparatus 101 receives and replys 202 (steps 305).
[0067]
During Fig. 3, owing in the 1st block size setting command (Fig. 2 201), comprise the setting data of block size, so the setting data 203 of block size shown in Figure 2 can not send to IC-card 102 by host apparatus 101.
[0068]
In the 1st embodiment, whether the block size that comparing section 123 output receives judged result below buffer capacity.In step 304, the interface portion 111 of IC-card can be imported the judged result of comparing section 123, according to it, sends reply (AcK information or the error message) for the 1st block size setting command.Perhaps, the interface portion 111 of IC-card, can be not yet with reference to the judged result of comparing section 123, with AcK information as replying transmission.
[0069]
Tell about Fig. 4.Fig. 4 is to use the 2nd block size setting command of the setting data that comprises block group size in the instruction, the situation when setting the block size.
Host apparatus 101, determine the setting data of the 1st block size after, just send the 2nd block size setting command (step 401, Fig. 2 201).
[0070]
The interface portion 111 of IC-card receives the 2nd block size setting command (step S402).IC-card 102 will be replied and be sent to host apparatus 101 (step 403, Fig. 2 202)
[0071]
Host apparatus 101 receives replys 202 (steps 404).Host apparatus 101 is done media by data line 132, sends the setting data (step 405, Fig. 2 203) of block size.
[0072]
IC-card receives the setting data 203 (step 406) of block size.The block size storage part 121 of IC-card 102 is deposited the block size (step 407) that host apparatus 101 is set.
[0073]
Host apparatus 101 uses the some instructions in the 1st block size setting command (Fig. 3) or the 2nd block size setting command (Fig. 4), IC-card 102 is carried out the setting of block size after, then carry out the processing of Fig. 5.
[0074]
Fig. 5 is the process flow diagram that carries out the transmission of multiword district between host apparatus 101 and IC-card 102.The transmission of the multiword district of Fig. 5, be host apparatus 101 read IC-card 02 data the time situation.
[0075]
Host apparatus 101 sends implementation (implementation of the sense order in n (the integer number of n 〉=1) the individual data block) instruction (step 501, Fig. 2 204) of multiword district transmission.IC-card 102 receives the imperative instruction (step 502) of multiword district transmission.
[0076]
The comparing section 123 of IC-card, the size (step 503) of the data buffer 113 that block size that comparison block size storage part 121 is deposited and impact damper capacity storage portion 122 deposit.
The size of data buffer 113 is less than block when size, replys generating unit 124 and comprises to generate after the error message and reply.Interface portion 111 sends and comprises the replying of this error message (step 504, Fig. 2 205).At this moment, IC-card 102 does not send n data block 206 to host apparatus 101.
The size of data buffer 113 is greater than block when size, and just generating does not have replying of error message, sends (step 505, Fig. 2 205) to host apparatus.At this moment, IC-card sends the data block to host apparatus 101.
[0077]
Host apparatus 101 receives and replys (step 506).Host apparatus 101 judges whether reply 205 comprises error message (step 507).Do not comprise error message if reply, host apparatus just receives data block (step 509).
[0078]
IC-card 102 has judged whether to send n all data block (step 510).IC-card 102 carries out the transmission in the data block of step 508 repeatedly, till n data block all sent.After sending n all data blocks, with regard to end process.
[0079]
In step 507, if comprise error message in replying, host apparatus 101 just sends the instruction (step 511) of the data buffer capacity that requires the transmission IC-card to IC-card 102.
After IC-card 102 received the instruction (step 512) of the data buffer capacity that requires the transmission IC-card, just the capacity of the data buffer 113 that buffer capacity storage part 122 is deposited sent to host apparatus 101 (step 513).
[0080]
Behind the data buffer capacity of host apparatus 101 reception IC-cards (step 514), just determine new block size, make it below the data buffer capacity (step 515).Host apparatus 101 sends block size (step 516) according to the method for Fig. 3 to IC-card.Return step 501, carry out the transmission of multiword district again.
[0081]
In addition, in step 516, can replace the processing of Fig. 3, send the block size to IC-card according to the method for Fig. 4.
[0082]
IC-card of the present invention can be installed in the various host apparatus 101 with interchangeability.After host apparatus 101 is correctly read the capacity of data buffer 113 of IC-card, decision block size, the just phenomenon that can not make IC-card 102 occur overflowing., if the host apparatus that has 101 do not read IC-card data buffer capacity or do not have the capacity of sense data impact damper correctly, just set the block size, just often the block size is set for value greater than the data buffer capacity.
Even in this case, IC-card 102 also can be before reality sends the data block, and notice host apparatus block size is greater than this transaction information of capacity of data buffer.IC-card 102 of the present invention can prevent that overflowing from appearring in data buffer 113.
[0083]
IC-card 102 of the present invention, even the some instructions in using the 1st block size setting command (Fig. 3) or the 2nd block size setting command (Fig. 4), when setting the block size, also can the identical moment transaction information is included in reply in, send to host apparatus 101 (step 504 of Fig. 5).Like this, host apparatus is as long as judge whether to comprise the transaction information of block size in step 507.The control method of electronic installation of the present invention can make the design of host apparatus be more prone to.
[0084]
In addition, in the 1st embodiment, the multiword district transmission the when data of having told about IC-card are read.But in the transmission of the multiword district when host apparatus 101 writes IC-card 102 with data, also can use the present invention.
At this moment, when the block size that IC-card is set at host apparatus is bigger than the capacity of built-in data buffer, after comprising transaction information in the replying of the implementation order of multiword district transmission, sending to host apparatus.IC-card will not receive when being sent by host apparatus in the data block.
When host apparatus comprises transaction information in the replying of the implementation order of multiword district transmission, just the data block is not sent to IC-card.Host apparatus is set new block size according to the data buffer capacity of IC-card.
[0085]
" the 2nd embodiment "
Below, use Fig. 6~9, tell about electronic installation (being IC-card in the present invention) and control method, host apparatus and the control method thereof of the 2nd embodiment.The difference of the 2nd embodiment and the 1st embodiment is: with the block size greater than this error message of capacity of data buffer 113 to moment that host apparatus sends.In addition, all the same with the 1st embodiment.
Host apparatus 101, the instruction of in the setting of block size, using, the same with the 1st embodiment, 2 kinds (" the 1st block size setting command " reaches " the 2nd block size setting command ") are arranged.
[0086]
In the 1st embodiment, when no matter host apparatus 101 used which instruction decision block size in the 1st block size setting command or the 2nd block size setting command, IC-card 102 was also sending after comprising the error message about the block size in the replying of multiword district transfer instruction.Therefore, exist the problem that IC-card sends the moment postponement of error message.
[0087]
In the 2nd embodiment, provide the electronic installation and control method, host apparatus and the control method thereof that send at once about the error message of block size.The electronic installation of the 2nd embodiment and control method thereof, host apparatus and control method thereof, the kind according to the setting command of block size makes the moment difference that comprises error message.
[0088]
Fig. 6 is the 1st block size setting command that the setting data that comprises the block size in instruction is used in expression, and host apparatus is set the process flow diagram of the method for block size to IC-card.In Fig. 6,, give identical numbering to the step identical with Fig. 3 and Fig. 5.
[0089]
Host apparatus 101 sends the 1st block size setting command (step 301, Fig. 2 201) of the setting data comprise the block size.
The interface portion 111 of IC-card 102 receives the 1st block size setting command (step 302).The block size storage part 121 of IC-card 102 is deposited the block size (step 303) that host apparatus 101 is set.
[0090]
The comparing section 123 of IC-card 102, the size (step 503) of the data buffer capacity 113 that block size that comparison block size storage part 121 is deposited and impact damper storage part 122 are deposited.
The size of data buffer capacity 113 is less than block when size, replys generating unit 124 and comprises to generate after the error message and reply.Interface portion 111 sends and replys (step 504, Fig. 2 202).The size of data buffer capacity 113 is when the block size is above, and generating does not have replying of error message, sends to host apparatus (step 505, Fig. 2 202)
[0091]
During Fig. 6,, comprise the setting data of block size, so the setting data 203 of block size shown in Figure 2 is not sent to IC-card 102 by host apparatus 101 because in the 1st block size setting command (Fig. 2 201).
[0092]
Host apparatus 101 receives replys 202 (steps 506).Whether host apparatus 101 judgements comprise error message (step 507) in replying.If do not comprise error message, with regard to end process.If comprise error message in replying, host apparatus 101 just sends the instruction (step 511) that requires IC-card 102 to send the data buffer capacity.
[0093]
After IC-card 102 received the instruction (step 512) of the data buffer capacity that requires the transmission IC-card, just the capacity of the data buffer 113 that buffer capacity storage part 122 is deposited sent (step 513) to host apparatus 101.
[0094]
Behind the data buffer capacity of host apparatus 101 reception IC-cards (step 514), determine new block size, make it below the data buffer capacity (step 515).Return step 301, send new block size, reset the block size to IC-card.
[0095]
Use Fig. 7 and Fig. 8, tell about the situation when using the 2nd block size setting command.Fig. 7 is that the 2nd block setting command that does not comprise the setting data of block size in the instruction is used in expression, and host apparatus is set the process flow diagram of the method for block size in IC-card.In Fig. 7,, give identical numbering to the step identical with Fig. 4 and Fig. 5.
[0096]
Fig. 8 is the figure of expression IC-card 102 to the structure of replying of host apparatus 101 transmissions.Fig. 8 (a) is common replying, and what comprise present instruction that host apparatus 101 is sent replys 801.
Fig. 8 (b) is replying the instruction of being sent by host apparatus after the size setting command of the 2nd block in the 2nd embodiment.Replying of the next instruction of Fig. 8 (b), comprise next instruction (instruction of after the 2nd block size setting command, sending) relevant reply 801 with before instruction (the big or small setting command in the 2nd block) relevant reply 802 both.Replying in 802 of former instruction comprises ACk information or error message for the setting of block size.
[0097]
Host apparatus 101 sends the 2nd block size setting command (step 401, Fig. 2 201).
The interface portion 111 of IC-card receives the 2nd block size setting command (step 402).IC-card 102 sends and replys (step 403, Fig. 2 201) to host apparatus 101.
[0098]
Host apparatus 101 receives replys 202 (steps 404).Host apparatus 101 is done media by data line 132, sends the setting data (step 405, Fig. 2 203) of block size.
IC-card receives the setting data 203 (step 406) of block size.The block size storage part 121 of IC-card 102 is deposited the block size (step 407) that host apparatus 101 is set.
[0099]
The comparing section 123 of IC-card 102, the size (step 503) of the data buffer 113 that the block size that comparison block size storage part 121 is deposited and the storage part 122 of buffer capacity are deposited.
If the size of data buffer 113 when the block size is above, is replied generating unit 124 and is generated ACk information (step 701).The size of digit buffer 113 then generates error message (step 702) when the block size is following.
[0100]
Host apparatus 101 sends next instruction (step 703).IC-card 102 receives next instruction (step 704).IC-card 102 is to the replying in 801 of next instruction, the instruction before additional reply 802---Ack information or error message send to host apparatus (step 705, Fig. 2 205)
[0101]
Host apparatus 101 is judged and is replied the error message (step 707) that whether comprises relevant block size in 205 after sending and replying (step 706).If do not comprise the error message (if comprising Ack information) of relevant block size, just carry out (step 708) handled in the reception of replying of next instruction.
[0102]
If comprise the error message about the block size in replying, host apparatus 101 just sends the instruction (step 511) of the data buffer capacity that requires transmission IC-card 102.
After IC-card 102 received the instruction (step 512) of the data buffer capacity that requires transmission IC-card 102, just the capacity of the data buffer 113 that buffer capacity storage part 122 is deposited sent (step 513) to host apparatus 101.
[0103]
Behind the data buffer capacity of host apparatus 101 reception IC-cards (step 514), determine new block size, make it below the data buffer capacity (step 515).Return step 401, send the 2nd block size setting command, reset the block size to IC-card.
[0104]
The IC-card of the 2nd embodiment of the present invention can be notified host apparatus with the error message of relevant block size immediately behind the setting data that receives the block size.Like this, even in the setting of block size when wrong, also can take corresponding measure immediately.
[0105]
In addition, in the 1st embodiment, host apparatus 101 and IC-card 102 can also replace Fig. 3, use the method for Fig. 6, set the block size in IC-card.At this moment, the block size that IC-card is set at host apparatus 101 is during greater than the capacity of built-in data buffer 113, in the replying of the 1st block size setting command, sends after comprising error message.
[0106]
In addition, in the 2nd embodiment, host apparatus 101 and IC-card 102 can also replace Fig. 6, use the method for Fig. 3.When host apparatus 101 sends some in the 1st block size setting command and the 2nd block size setting command, IC-card 102 is also in the replying of next instruction, additional replying to former instruction (the 1st or the 2nd block size setting command)---after Ack information or the error message, send to host apparatus.
[0107]
More than, to have told about suitable embodiment of the present invention to a certain degree in detail.But the content of the embodiment that these are suitable can change on the details that constitutes to some extent, and the variation of the combination of each key element and order can be accomplished under the prerequisite of scope of invention and thought.
[0108]
The present invention is of great use as carry out multiword district electrons transmitted device and control method, host apparatus and control method thereof between host apparatus and electronic installation

Claims (16)

1, a kind of electronic installation has:
Interface portion, this interface portion and instruction/acknowledge lines is connected with data line, described instruction/acknowledge lines is used to receive instruction from host apparatus, sends to described host apparatus and reply, described data line be used for described host apparatus between by described instruction/acknowledge lines transmitting-receiving instruction and reply the back, receive and dispatch the corresponding data of and instruction as required, when described data had length more than given, described interface portion was received and dispatched after described data are divided into data block by the block size of described host apparatus appointment;
Data buffer, this data buffer is deposited described data; And
Storage part, this storage part are stored the information of specified block size by the block in described host apparatus specific data block size the time,
Described interface portion,
Receive block size setting command from described host apparatus, this block size setting command is used to inform the data that send the information of the block size that comprises the data block with described data line, after the size setting command of described block, receive the information of block size by described data line by described host apparatus
When the capacity of the block size shown in the information of the described block size that receives during greater than the capacity of described data buffer, after the size setting command of described block, when the data movement instruction of actual transmission or reception is carried out in the data block of receiving the described block size that generates after the data that handle had given above length are cut apart from described host apparatus, at described data movement instruction, transmission comprises replying of " can not tackle described block size " this error message, and, when when described host apparatus sends the divided data block, do not accept this data block.
2, electronic installation as claimed in claim 1 is characterized in that:
Described interface portion receives another block size setting command of the information of the block size that comprises described data block from described host apparatus by described instruction/acknowledge lines,
Under the situation of capacity greater than the capacity of described data buffer of the block size shown in the information of the described block size that comprises in described another block size setting command,
After described another block size setting command, when having received the data movement instruction of " actual send or receive the data block of the data with given above length being cut apart the described block size of back generation " from described host apparatus, described data movement instruction sent replying of the error message that comprises " can not tackle " by the specified described block size of described another block size setting command, and when receiving the data block of cutting apart from described host apparatus, do not accept the described data block of receiving, perhaps
Corresponding with the instruction of and then described another block size setting command that receives from described host apparatus replying, the information that additional the transmission " made mistakes to described another block replying of setting command of size ".
3, electronic installation as claimed in claim 1 is characterized in that: electronic installation is an IC-card.
4, a kind of electronic installation has:
Interface portion, this interface portion and instruction/acknowledge lines is connected with data line, described instruction/acknowledge lines is used to receive instruction from host apparatus, sends to described host apparatus and reply, described data line be used for described host apparatus between by described instruction/acknowledge lines transmitting-receiving instruction and reply the back, receive and dispatch the corresponding data of and instruction as required, when described data had length more than given, described interface portion was received and dispatched after described data are divided into data block by the block size of described host apparatus appointment;
Data buffer, this data buffer is deposited described data; And
Storage part, this storage part are stored the information of specified block size by the block in described host apparatus specific data block size the time,
Described interface portion,
Receive block size setting command from described host apparatus, this block size setting command is used to inform the data that send the information of the block size that comprises described data block with described data line, after the size setting command of described block, receive the information of block size by described data line by described host apparatus
When the capacity of the block size shown in the information of the described block size that receives during greater than the capacity of described data buffer, and then described block size setting command, at the replying of the instruction of sending from described host apparatus, the information that additional the transmission " made mistakes to described block replying of setting command of size ".
5, electronic installation as claimed in claim 4 is characterized in that:
Described interface portion receives another block size setting command of the information of the block size that comprises described data block from described host apparatus by described instruction/acknowledge lines,
Under the situation of capacity greater than the capacity of described data buffer of the block size shown in the information of the described block size that comprises in described another block size setting command,
After described another block size setting command, when having received the data movement instruction of " actual send or receive the data block of the data with given above length being cut apart the described block size of back generation " from described host apparatus, described data movement instruction sent replying of the error message that comprises " can not tackle " by the specified described block size of described another block size setting command, and when receiving the data block of cutting apart from described host apparatus, do not accept the described data block of receiving, perhaps
Corresponding with the instruction of and then described another block size setting command that receives from described host apparatus replying, the information that additional the transmission " made mistakes to described another block replying of setting command of size ".
6, electronic installation as claimed in claim 4 is characterized in that: electronic installation is an IC-card.
7, a kind of host apparatus, have: interface portion, this interface portion and instruction/acknowledge lines is connected with data line, described instruction/acknowledge lines is used for sending instruction to electronic installation, reply from described electronic installation reception, described data line be used for and described electronic installation between by after described instruction/acknowledge lines transmitting-receiving instruction and replying, receive and dispatch the data of and instruction correspondence as required, when described data have length more than given, these data are divided into the data block of given block size, after described electronic installation specified described block size, receive and dispatch the data block of described block size;
Described interface portion,
After described electronic installation transmission is used for notifying " data that send the information of the block size that comprises described data block with described data line " this block size setting command, send the data of the information of the block size that has comprised described data block to described data line
After transmission has comprised the data of information of described data block size, send the data movement instruction of " data that will have given above length are carried out actual transmission or reception after being divided into described block size " to described electronic installation,
Receiving from described electronic installation at the replying of described data movement instruction, if when comprising the error message of " the block size that can not tackle described data block ", to described electronic installation transmission capacity inquiry instruction, inquire the data capacity of the data buffer of described electronic installation, and receive at replying that described capacity inquiry is instructed
According to replying of instructing at described capacity inquiry, the new block size of decision below the capacity of the data buffer of described electronic installation by send block size setting command to described electronic installation, specified the block size of decision newly.
8, a kind of host apparatus, have: interface portion, this interface portion and instruction/acknowledge lines is connected with data line, described instruction/acknowledge lines is used for sending instruction to electronic installation, reply from described electronic installation reception, described data line be used for and described electronic installation between by after described instruction/acknowledge lines transmitting-receiving instruction and replying, receive and dispatch the data of and instruction correspondence as required, when described data have length more than given, these data are divided into the data block of given block size, after described electronic installation specified described block size, receive and dispatch the data block of described block size;
Described interface portion, after described electronic installation transmission is used for notifying " data that send the information of the block size that comprises described data block with described data line " this block size setting command, send the information of the block size in described data block to described data line
Following described block size setting command when described electronic installation sends instruction, at following in the replying of instruction that described block size setting command sends, during the error message that " can't tackle designated value " if comprise from the block size in the described data block of described electronic installation, to described electronic installation transmission capacity inquiry instruction, inquire the data capacity of the data buffer of described electronic installation
According to replying of instructing at described capacity inquiry, the new block size of decision below the capacity of the data buffer of described electronic installation by send block size setting command to described electronic installation, specified the block size of decision newly.
9, a kind of control method of electronic installation has:
Receiving step, this receiving step receives by instruction/acknowledge lines and is used for notice " when the data that will have given above length to host apparatus are divided into the laggard row transmitting-receiving in a plurality of data block; send the data of the information of the block size that comprises each data block with data line " big or small setting command in this block, reply the big or small setting command in described block by described instruction/acknowledge lines transmission, receive the data of the information that comprises described block size then;
Whether determining step, this determining step are judged by the capacity of the block size of the information appointment of the described block size that receives greater than the capacity of data buffer built-in in the described electronic installation; And
The error message forwarding step, this error message forwarding step is after the reception of described block size setting command, when receiving the data movement instruction of " actual send or receive the data block of the data with given above length being cut apart the described block size of back generation " from described host apparatus, at in the replying of described data movement instruction, transmission comprises the error message of " can not tackle the block size by the information appointment of described block size ", and when the data block of sending from described host apparatus, do not accept this data block through cutting apart.
10, the control method of electronic installation as claimed in claim 9 is characterized in that:
Also have:, receive the step of another block size setting command of the information of the block size that comprises described data block from described host apparatus by described instruction/acknowledge lines; The capacity of the block size of the information appointment of the block size that comprises in drawing by described another block size setting command in described determining step is during greater than the judgement of the capacity of described impact damper,
After the reception of described another block size setting command, when having received the data movement instruction of " actual send or receive the data block of the data with given above length being cut apart the described block size of back generation " from described host apparatus, at in the replying of described data movement instruction, transmission comprises the error message of " can not tackle the block size by the information appointment of the block size that comprises in described another block size setting command ", and when receiving the data block of cutting apart from described host apparatus, do not accept this data block, perhaps
With follow corresponding the replying of instruction that described another block size setting command sends from described host apparatus, additional and send the error message of " can not tackle block size " by the information appointment of the block size that comprises in described another block size setting command.
11, the control method of electronic installation as claimed in claim 9 is characterized in that: electronic installation is an IC-card.
12, a kind of control method of electronic installation has:
Receiving step, this receiving step receives " when the data that will have given above length to host apparatus are divided into the laggard row transmitting-receiving in a plurality of data block; send the data of the information of the block size that comprises each data block with data line " big or small setting command in this block by instruction/acknowledge lines, reply the big or small setting command in described block by described instruction/acknowledge lines transmission, receive the data of the information that comprises described block size then;
Whether determining step, this determining step are judged by the capacity of the block size shown in the information of described block size greater than the capacity of data buffer built-in in the described electronic installation; And
The error message forwarding step, this error message forwarding step is when the instruction that then receives from described host apparatus after the size setting command of described block, at in the replying of the instruction after the described described block size setting command that then receives, transmission comprises the error message of " can not tackle the block size by the information appointment of described block size ".
13, the control method of electronic installation as claimed in claim 12 is characterized in that:
Also have:, receive the step of another block size setting command of the information of the block size that comprises described data block from described host apparatus by described instruction/acknowledge lines; The capacity of the block size of the information appointment of the block size that comprises in drawing by described another block size setting command in described determining step is during greater than the judgement of the capacity of described impact damper,
After the reception of described another block size setting command, when having received the data movement instruction of " actual send or receive the data block of the data with given above length being cut apart the described block size of back generation " from described host apparatus, at in the replying of described data movement instruction, transmission comprises the error message of " can not tackle the block size by the information appointment of the block size that comprises in described another block size setting command ", and when receiving the data block of cutting apart from described host apparatus, do not accept this data block, perhaps
With follow corresponding the replying of instruction that described another block size setting command sends from described host apparatus, additional and send the error message of " can not tackle block size " by the information appointment of the block size that comprises in described another block size setting command.
14, the control method of electronic installation as claimed in claim 12 is characterized in that: electronic installation is an IC-card.
15, a kind of control method of host apparatus has:
The 1st step, the 1st step sends " when the data that will have given above length are divided into the laggard row transmitting-receiving in a plurality of data block; send the data of the information of the block size that comprises each data block with data line " big or small setting command in this block by instruction/acknowledge lines to electronic installation, reply the big or small setting command in described block by described instruction/acknowledge lines reception, send the data of the information that comprises described block size then;
The 2nd step, the 2nd step is after the size setting command of described block, send the data movement instruction of " actual send or receive the data block of the data with given above length being cut apart the described block size of back generation " to described electronic installation, at described data movement instruction from the replying of described electronic installation, if when comprising the error message of " can not tackle " by the specified block size of the information of described block size, to described electronic installation transmission capacity inquiry instruction, inquire the data capacity of the data buffer of described electronic installation; And
The 3rd step, the 3rd this step are according to replying that described capacity inquiry is instructed, and the new block size of decision below the capacity of the data buffer of described electronic installation specified new block size by sending block size setting command at described electronic installation.
16, a kind of control method of host apparatus is characterized in that: have:
The 1st step, the 1st step sends " when the data that will have given above length are divided into the laggard row transmitting-receiving in a plurality of data block; send the data of the information of the block size that comprises each data block with data line " big or small setting command in this block by instruction/acknowledge lines to electronic installation, reply the big or small setting command in described block by described instruction/acknowledge lines reception, send the data of the information that comprises described block size then;
The 2nd step, the 2nd step sends when instructing to described electronic installation after following described block size setting command, at in the replying of the instruction of following described block size setting command, if when comprising the error message of " can not tackle " by the specified block size of the information of described block size, to described electronic installation transmission capacity inquiry instruction, inquire the data capacity of the data buffer of described electronic installation; And
The 3rd step, the 3rd step are according to replying that described capacity inquiry is instructed, and the new block size of decision below the capacity of the data buffer of described electronic installation specified new block size by sending block size setting command at described electronic installation.
CNB2004800366493A 2003-12-09 2004-11-29 Electronic device, control method thereof, host device, and control method thereof Expired - Fee Related CN100437456C (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2003410840 2003-12-09
JP410840/2003 2003-12-09

Publications (2)

Publication Number Publication Date
CN1890624A CN1890624A (en) 2007-01-03
CN100437456C true CN100437456C (en) 2008-11-26

Family

ID=34674957

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004800366493A Expired - Fee Related CN100437456C (en) 2003-12-09 2004-11-29 Electronic device, control method thereof, host device, and control method thereof

Country Status (6)

Country Link
US (1) US7774508B2 (en)
EP (1) EP1701244B1 (en)
JP (1) JP4452690B2 (en)
CN (1) CN100437456C (en)
TW (1) TW200529244A (en)
WO (1) WO2005057400A1 (en)

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100470585C (en) * 2004-03-31 2009-03-18 松下电器产业株式会社 Memory card and memory card system
US7644239B2 (en) 2004-05-03 2010-01-05 Microsoft Corporation Non-volatile memory cache performance improvement
US7490197B2 (en) 2004-10-21 2009-02-10 Microsoft Corporation Using external memory devices to improve system performance
JP4896450B2 (en) 2005-06-30 2012-03-14 株式会社東芝 Storage device
CN101203867B (en) * 2005-07-05 2010-05-19 松下电器产业株式会社 Readout data length specification method
US8914557B2 (en) 2005-12-16 2014-12-16 Microsoft Corporation Optimizing write and wear performance for a memory
KR100884239B1 (en) * 2007-01-02 2009-02-17 삼성전자주식회사 Memory Card System and Method transmitting background Information thereof
JP2009110609A (en) * 2007-10-31 2009-05-21 Hitachi Ltd Stream data transfer control mechanism
US8631203B2 (en) 2007-12-10 2014-01-14 Microsoft Corporation Management of external memory functioning as virtual cache
US8032707B2 (en) 2008-09-15 2011-10-04 Microsoft Corporation Managing cache data and metadata
US9032151B2 (en) 2008-09-15 2015-05-12 Microsoft Technology Licensing, Llc Method and system for ensuring reliability of cache data and metadata subsequent to a reboot
US7953774B2 (en) 2008-09-19 2011-05-31 Microsoft Corporation Aggregation of write traffic to a data store
US9740485B2 (en) 2012-10-26 2017-08-22 Micron Technology, Inc. Apparatuses and methods for memory operations having variable latencies
US9754648B2 (en) 2012-10-26 2017-09-05 Micron Technology, Inc. Apparatuses and methods for memory operations having variable latencies
US9734097B2 (en) 2013-03-15 2017-08-15 Micron Technology, Inc. Apparatuses and methods for variable latency memory operations
US9727493B2 (en) 2013-08-14 2017-08-08 Micron Technology, Inc. Apparatuses and methods for providing data to a configurable storage area
US9563565B2 (en) 2013-08-14 2017-02-07 Micron Technology, Inc. Apparatuses and methods for providing data from a buffer
US10365835B2 (en) 2014-05-28 2019-07-30 Micron Technology, Inc. Apparatuses and methods for performing write count threshold wear leveling operations
JP6833364B2 (en) 2016-07-01 2021-02-24 株式会社東芝 IC card and IC card processing device
US10795836B2 (en) 2017-04-17 2020-10-06 Microsoft Technology Licensing, Llc Data processing performance enhancement for neural networks using a virtualized data iterator
GB2612658B (en) * 2022-03-10 2023-12-13 Nordic Semiconductor Asa Method and apparatus for radio communications

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61228549A (en) * 1985-04-02 1986-10-11 Ricoh Co Ltd Data transfer method
JPH0337540U (en) * 1989-08-16 1991-04-11
JPH11298450A (en) * 1998-04-08 1999-10-29 Nec Corp Serial data transfer controller
JP2002342256A (en) * 2001-05-14 2002-11-29 Hitachi Ltd Data processor and method for updating data table
JP2003345674A (en) * 2002-05-29 2003-12-05 Matsushita Electric Ind Co Ltd Input/output device

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0337540A (en) 1989-07-04 1991-02-18 Toshiba Corp Apparatus for detecting leaking of sodium
JPH09171545A (en) * 1995-12-20 1997-06-30 Fujitsu Ltd Ic card, ic card reader/writer, host device for ic card reader/writer, ic card system and multivender dealing method in ic card system
JP3565967B2 (en) * 1995-12-21 2004-09-15 富士通株式会社 IC card reading / writing device and IC card system
JPH1027231A (en) 1996-07-10 1998-01-27 Matsushita Electric Ind Co Ltd Ic card
US6006289A (en) * 1996-11-12 1999-12-21 Apple Computer, Inc. System for transferring data specified in a transaction request as a plurality of move transactions responsive to receipt of a target availability signal
JP3728366B2 (en) * 1997-05-13 2005-12-21 株式会社ルネサステクノロジ IC card
FR2772535B1 (en) * 1997-12-11 2000-12-15 Micropross COMMUNICATION INTERFACE WITH A SYNCHRONOUS CHIP CARD AND DEVICE PROVIDED WITH SUCH AN INTERFACE
JP3190895B2 (en) 1998-10-02 2001-07-23 エヌイーシーマイクロシステム株式会社 Automatic communication error recovery system
JP3914398B2 (en) * 2001-05-22 2007-05-16 日本電産サンキョー株式会社 IC card reader / writer communication method
EP1324207B1 (en) * 2001-12-11 2007-02-14 Matsushita Electric Industrial Co., Ltd. Ic card and data processing method therefor
KR100887901B1 (en) * 2002-06-26 2009-03-12 주식회사 히타치엘지 데이터 스토리지 코리아 Method for changing a writting velocity in optical disc driver

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61228549A (en) * 1985-04-02 1986-10-11 Ricoh Co Ltd Data transfer method
JPH0337540U (en) * 1989-08-16 1991-04-11
JPH11298450A (en) * 1998-04-08 1999-10-29 Nec Corp Serial data transfer controller
JP2002342256A (en) * 2001-05-14 2002-11-29 Hitachi Ltd Data processor and method for updating data table
JP2003345674A (en) * 2002-05-29 2003-12-05 Matsushita Electric Ind Co Ltd Input/output device

Also Published As

Publication number Publication date
US20070145151A1 (en) 2007-06-28
JPWO2005057400A1 (en) 2007-12-13
EP1701244A1 (en) 2006-09-13
WO2005057400A1 (en) 2005-06-23
EP1701244A4 (en) 2008-12-24
TW200529244A (en) 2005-09-01
JP4452690B2 (en) 2010-04-21
EP1701244B1 (en) 2015-04-01
CN1890624A (en) 2007-01-03
US7774508B2 (en) 2010-08-10

Similar Documents

Publication Publication Date Title
CN100437456C (en) Electronic device, control method thereof, host device, and control method thereof
US7376435B2 (en) Transferring multiple data units over a wireless communication link
CN100366029C (en) Communication controller, host-side controller, communication equipment, communication system and method
US3427585A (en) Data receiving and transmitting system
CN100428210C (en) IC card, data transfer device, data transfer method, and data transfer method program
US8542582B2 (en) Confirmation of delivery of content to an HTTP/TCP device
CN100566346C (en) Wireless Telecom Equipment and information processing method
CN1326057C (en) Bus system and bus interface for connection to a bus
CN104615558B (en) A kind of data transferring method and electronic device
CN101304362B (en) Retransmission buffering apparatus and data transmission method
US6496487B2 (en) Efficient full duplex simultaneous message transfer
US7822040B2 (en) Method for increasing network transmission efficiency by increasing a data updating rate of a memory
CN101887403B (en) Data transmission method and device for saving space of memory used for accessing packet in universal serial bus protocol
CN100385970C (en) System and method for transmitting units of messages in a mobile communication system
CN104185169B (en) State synchronization method, the apparatus and system of air card-writing
CN114337942A (en) Message retransmission method and device and electronic equipment
CN101179303A (en) Wireless communication system, information and communication terminal, portable telephone, reader/writer
CN100531189C (en) method for implementing communication protocol replacement and host interface device
CN109450517A (en) RDSS communications control method and system
EP0569512A1 (en) Packet transmission system and method utilizing both a data bus and dedicated control lines
CN107483306A (en) A kind of communication means, communication system and storage medium
US8031675B2 (en) System and method for detecting wireless base stations
JP2006338306A (en) Mass data transfer system by using non-contact ic chip and method
US6519661B1 (en) Method for recording data in a telecommunications switching center
KR100629555B1 (en) Data transmission method between Service Management System and Wireless Information Service Center in intelligence network system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20081126

Termination date: 20091229