Background technology
Recently, the industry alliance of NFC forum (http://www.nfc-forum.org) by name promotes the development of NFC technology.The NFC technology comes from radio-frequency (RF) identification (Radio Frequency Identification, hereinafter to be referred as RFID) technology, use has multiple mode of operation, i.e. the NFC reader of " reader " pattern, " card emulation " pattern and " device " pattern (being also referred to as " device is to device " pattern).Under " reader " pattern, the NFC reader is worked as traditional RFID reader, read access or write access RFID chip (chip card or noncontact label).NFC reader emission magnetic field sends data by the modulated magnetic field amplitude, receives data by load-modulate and induction coupling.The applicant illustrates in the EP1327222 patent, and the passive work of NFC reader under " emulation " pattern with another reader dialogue, is considered as RFID chip by other readers as transponder.Reader is not launched any magnetic field, and the magnetic field of being launched by other readers by demodulation receives data, sends data by the impedance of modulating its antenna circuit (load-modulate).Under " device " pattern, reader must mate with other readers that also is under the same mode of operation, and each reader alternately enters passive state (not having an emission) that receives data and the active state (the field emission is arranged) that sends data.
Except above-mentioned three mode of operations (can design other mode of operations in the future), the NFC reader can be carried out some contactless communication agreements, for example can be according to swap datas such as ISO 14443-A agreement, ISO14443-B agreement and ISO 15693 agreements.Each agreement is all determined an emission of magnetic field frequency, the modulator approach of a modulated magnetic field amplitude, and in order under aggressive mode, sending data, and the method by the modulation of induction coupled load, in order under Passive Mode, to send data.Thereby the NFC reader is multimode multi-protocols devices.The applicant is the NFC reader listing of called after " little reading (MicroRead) " for example.
Because the communication capacity of NFC reader expansion, it can be integrated in the portable unit, for example in mobile phone or the personal digital assistant (Personal Digital Assistant is called for short PDA).The NFC chipset product that this just obtains type shown in Figure 1 promptly comprises the chipset of NFC reader (being labeled as NFCR1) and at least one first primary processor HP1.Any integrated circuit that comprises microprocessor or microcontroller of " primary processor " expression, it is connected to the port of NFC reader.In many application, chipset also comprises the second primary processor HP2.The first primary processor HP1 is the Main Processor Unit that is integrated with the device of NFC reader, and the second primary processor HP2 is a safety circuit.Primary processor HP1 for example is the baseband circuit (or radiotelephone circuit) of mobile phone, and primary processor HP2 for example is SIM card (being the microcontroller in the SIM card).Thereby the resource of NFC reader is all available to two processor HP1, makes processor can manage non-contact application.This application represents to be equipped with the phone 30 of the NFC chipset among Fig. 1 as shown in Figure 2.Can be divided into the lower part:
1) the AP1 class is used: the NFC reader of mobile phone 30 reads or writes contactless integrated circuit CLCT with reader mode.Mobile phone uses as the RFID reader in this case.It can be free that this class is used, and for example reads the ad data in the advertisement of inserting the bus waiting booth.This application also can be paid, and for example reads the information of consumer premise.If service is free, preferably preserve and carry out the AP1 application program with processor HP1, if service is paid,, preferably preserve and carry out said procedure with processor HP2 owing to need the identification user.Thereby as shown in Figure 1, AP1 uses and can be handled by processor HP1 or processor HP2.
2) the AP2 class is used: use in (payment machine, subway inlet etc.) in the passage control of paying and can pay, traditional RD reader will read the NFC reader of the phone 30 that is under the card simulation model.At this moment, mobile phone 30 is used as chip card.As shown in Figure 1, the most handy safe processor HP2 preserves and carries out the AP2 application program, because access service need be discerned the user.
3) the AP3 class is used: the NFC reader of phone 30 is under " device " pattern, with other devices, for example is integrated in the reader dialogue in other mobile phones 31 or the computer 32.This application generally is free, can install transfer data packets (particularly point-to-point file transfer) to another from a device.The most handy non-safe processor HP1 preserves and carries out the AP3 application program, and as shown in Figure 1, if safe processor is the SIM card processor, then this non-safe processor is stronger than the computing power of safe processor HP2.
Thereby, NFC produces the route that the chipset product needed provides data stream between each processor HP1, HP2 and the NFC reader (via the data of non-contact data transmission channel transmission), and the route of the input traffic between NFC reader and each processor HP1, the HP2 (via the data of non-contact data transmission channel reception).This has caused some practical problems, just can understand with reference to Fig. 3 A and 3B.
Fig. 3 A schematically shows the structure of NFC reader.This reader comprises the non-contact data transmission/receiving interface CLINT that antenna circuit ACT is housed,, the hardware communication interface INT1 of connecting interface CLINT, INT2, and controller NFCC.Interface INT1 connects primary processor HP1, and interface INT2 connects primary processor HP2, forms NFC chipset (being labeled as " CHIPSET ").
Fig. 3 B represents must guide so that each processor HP1, HP2 can use the data stream of the resource of non-contact data transmission/receiving interface CLINT.For simplicity, suppose that interface CLINT only can send or receive data according to three agreement PT1, PT2 and PT3, for example ISO 14443-A, ISO 14443-B and ISO 15693 have three above-mentioned mode of operation M1, M2 and M3 (reader mode, simulation model and " device " pattern).Thereby can be divided into four kinds of different types of data flows:
1) flows out from the source point P1 that is arranged in processor HP1, send to the point of destination P3 that is arranged in interface CLINT, the output stream DT1out (Mi, PTi) that in the non-contact data transmission channel of creating according to agreement PTi (PT1, PT2 or PT3) and mode of operation Mi (M1, M2 or M3), sends afterwards
2) flow out from the source point P2 that is arranged in processor HP2, be transferred to the point of destination P3 that is arranged in interface CLINT, the output stream DT2out (Mi, PTi) that sends via the non-contact data transmission channel of creating according to agreement PTi and mode of operation Mi afterwards,
3) receive via the non-contact data transmission channel of creating according to agreement PTi and mode of operation Mi by interface CLINT, then by interface CLINT from source point P3 send to the point of destination P1 that is arranged in processor HP1 input traffic DT1in (Mi, PTi),
4) receive via the non-contact data transmission channel of creating according to agreement PTi and mode of operation Mi by interface CLINT, then by interface CLINT from source point P3 send to the point of destination P2 that is arranged in processor HP2 input traffic DT2in (Mi, PTi).
Because the data stream that flows out can send according to three agreements under three mode of operations, the data stream that flows out has 9 kinds of different configurations (combination of supposing every kind of pattern Mi/ agreement PTi is all approved).This just means processor HP1, and one among the HP2 is not enough to interface CLINT transmission data.The data chainning that processor also is necessary for each transmission indicates pattern/agreement Mi/PTi configuration of using for interface CLINT, with the above-mentioned data of transmission in the non-contact data transfer channel.
For the data that can route when allowing that interface CLINT suitably is set flow out, someone proposes " general " type Host Controler Interface (" Host Controller Interface ", be called for short HCI) data transfer protocol, it can make the primary processor of any type provide the data that will send to interface CLINT, indicates the configuration (agreement PTi and mode of operation Mi) that is used for transmitting at the non-contact data transfer channel data simultaneously.This HCI agreement provides Frame, and each Frame is made up of gauge outfit district (header field) and data field (data field).The gauge outfit district comprises and is used for the required information of control interface CLINT, and this district specializes the starting point of data and the agreement that point of destination, mode of operation and interface CLINT adopt.
Summary of the invention
First problem that the present invention will solve is that traditional HCI agreement provides the Frame with long and complicated gauge outfit district, needs the quite long processing time before deal with data itself.This problem is called as " system overhead ", represents long frame head overload data stream, increases data transfer time.These big gauge outfit districts also need big impact damper and high throughput.
Thereby, first purpose of the present invention provide a kind of in the NFC chipset method of route data, it is easy to realize, without any need for long gauge outfit district, the agreement and the mode of operation parameter of non-contact data transmission/receiving interface can be set simultaneously.
Another problem that the present invention will solve is different with first, relates to the route of input data (DTlin and DT2in).After receiving the input data, noncontact transmission/receiving interface CLINT and controller plc NFCC need not necessarily to know which the reception primary processor of above-mentioned data is.Therefore, above-mentioned data send to two processors, do not reply with the processor of data independence.
No. 2004/029860 application of WO has proposed a kind of method for routing as route input data means, it comprises that use is arranged in Application Protocol Data Unit (the Application Protocol DataUnit of instruction, be called for short APDU) district, wherein should instruction receive by the non-contact data transmission channel.But as in the above-mentioned application the 13rd page pointed, this method requires the new agreement of exploitation to realize route, means that the external unit that sends data to the non-contact data transmission channel must indicate the internal element (which primary processor) of accepting above-mentioned data.
In present many application, the external unit that sends data does not provide the route indication, does not indicate which processor and receives above-mentioned data.In fact, route is an external issues, and the fact of sharing same non-contact data transmission/receiving interface with a plurality of processors of same chipset interrelates.Therefore, in the near future, the integrated universal Routing Protocol is extremely impossible in the device that does not reach the NFC standard.For example be used for paying or the conventional reader of control channel sends identifying code and/or cipher inquiry and instructs the noncontact chip card.So in when checking, this reader does not know that to genuine non-contact card addressing still be NFC addressing under the simulation model.Therefore, this reader is not used in application data that transmission can make its transmission and is sent to parameter in the chipset, this parameter.
Thereby another object of the present invention provides a kind of method, and it can determine to receive the primary processor of the data that receive via the non-contact data transmission channel in the NFC chipset, and needn't analyze the content of above-mentioned data.
At least one purpose of the present invention by provide a kind of in chipset the method for route data reach, this chipset comprises at least one primary processor and RFID type non-contact data transmission/receiving interface, may further comprise the steps: response is arranged in the data path of opening that the source point of primary processor sends, and the instruction of specifying the point of destination that is arranged in non-contact data transmission/receiving interface, by distributing the routed channels number to data path, and in routing table, preserve the routed channels number and comprise at least one source point sign and the routing parameter that point of destination identifies, and determine to connect the data path of source point and point of destination; Send the data of passing through its boil down to is had a frame in the gauge outfit district that comprises the routed channels number that source point provides to point of destination; According to receive boil down to one frame, have the data in the gauge outfit district that comprises the routed channels number, utilize the routed channels number as the index of selecting point of destination, the point of destination of data in the search routing table.
According to an embodiment who in chipset, realizes of the present invention, wherein non-contact data transmission/receiving interface can be according to a plurality of mode of operations and a plurality of contactless communication protocol configuration, the method includes the steps of: response is arranged in that the source point of primary processor sends opens data path, and the instruction of specifying the point of destination that is arranged in non-contact data transmission/receiving interface, by distributing the routed channels number to data path, and in routing table, preserve the routed channels number and comprise the mode of operation parameter of non-contact data transmission/receiving interface and the routing parameter of noncontact protocol parameter, and definite data path that connects source point and point of destination, and configuration non-contact data transmission/receiving interface, so that interface utilizes the mode of operation that is used for data path and the noncontact channel agreement parameter that are included in the routing table to send data in the non-contact data transmission channel, wherein this data path will send the data that received.
According to an embodiment who realizes in comprising the chipset of at least two primary processors, routing table also is used to open two data paths between the primary processor.
According to an embodiment, this method comprises provides the step of creating the data path instruction, this data path to comprise the routing parameter and the configuration parameter that is used to dispose non-contact data transmission/receiving interface that will be kept in the routing table.
According to an embodiment, when creating or closing data path, dynamically fill in or empty routing table with the source point that is arranged in primary processor.
According to an embodiment, this method is included in the step of the data path with the source point that is arranged in primary processor of prestoring in the routing table.
According to an embodiment who in comprising the chipset of at least two primary processors, realizes, when non-contact data transmission/receiving interface receives data via the non-contact data transmission channel, at least adopt non-contact data transmission/receiving interface to receive the mode of operation of contactless data communication channel of data and contactless communication agreement as standard in order to create by it, at least one of recognition data receives primary processor.
According to an embodiment, this method is included in the step of the data path with the source point that is arranged in non-contact data transmission/receiving interface of prestoring in the routing table, to each above-mentioned data path, at least one point of destination sign prestores, a mode of operation parameter and a contactless communication protocol parameter of non-contact data transmission/receiving interface, when data are received by the non-contact data transmission channel by non-contact data transmission/receiving interface, by search data path in routing table, mode of operation and contactless communication protocol parameter that the mode of operation parameter of this data path and contactless communication protocol parameter use corresponding to non-contact data transmission/receiving interface, come at least one point of destination of specified data, to create the non-contact data transmission channel, data receive by this channel.
According to an embodiment, source point of preserving in the routing table or point of destination are the services of being carried out by primary processor.
According to an embodiment, the routing parameter that is kept in the routing table also comprises the notice point identification, and it must receive the data trnascription that sends to point of destination.
According to an embodiment, this method is finished in chipset, and the primary processor of chipset is a safety circuit, for example the SIM card integrated circuit
The invention still further relates to the device of a kind of transmission/reception data, it comprises RFID type non-contact data transmission/receiving interface, controller, at least one input/output end port that connects non-contact data transmission/receiving interface and primary processor, its middle controller is arranged to: response is arranged in the data path of opening that the source point of primary processor sends, and the instruction of specifying the point of destination that is positioned at non-contact data transmission/receiving interface, by distributing the routed channels number to data path, and by in routing table, preserving the routed channels number and comprising at least one source point sign and the routing parameter that point of destination identifies, and open data path between source point and point of destination, and, according to receiving boil down to one frame, data with the gauge outfit district that comprises the routed channels number, utilize the routed channels number as the index of selecting point of destination, the point of destination of data in the search routing table.
According to an embodiment, non-contact data transmission/receiving interface can be according to a plurality of mode of operations and a plurality of contactless communication protocol configuration, controller is arranged to, response is arranged in the data path of opening that the source point of primary processor sends, and the instruction of specifying the point of destination that is arranged in non-contact data transmission/receiving interface, by distributing the routed channels number to data path, and by in routing table, preserving the routed channels number and comprising the mode of operation parameter of non-contact data transmission/receiving interface and the routing parameter of contactless communication protocol parameter, and open data path between source point and the point of destination, and configuration non-contact data transmission/receiving interface, so that interface utilizes the data path mode of operation and the noncontact channel agreement parameter that are included in the routing table to send data in the non-contact data transmission channel, wherein this data path will send the data that received.
According to an embodiment, this device comprises at least two input/output end ports, and controller also utilizes routing table to open two data paths between primary processor.
According to an embodiment, controller is arranged to decode and is created the instruction of data path, and this instruction comprises routing parameter and is used to dispose the configuration parameter of non-contact data transmission/receiving interface, and the route and the configuration parameter that occur in holding instruction in routing table.
According to an embodiment, when controller is arranged in establishment or cuts out the data path with the source point that is arranged in primary processor, dynamically fill in or empty routing table.
According to an embodiment, primary processor is arranged to, and prestores to have the data path of the source point that is arranged in primary processor in routing table.
According to an embodiment, controller or non-contact data transmission/receiving interface are arranged to, when data are received via the non-contact data transmission channel by non-contact data transmission/receiving interface, by non-contact data transmission/receiving interface being used to create the employed mode of operation of contactless data communication channel that receives data, contactless communication agreement as settling the standard the point of destination of specified data.
According to an embodiment, controller is arranged to: data path prestores in routing table, this data path has the source point that is arranged in non-contact data transmission/receiving interface, for each above-mentioned data path, at least one point of destination sign prestores, the mode of operation parameter of a non-contact data transmission/receiving interface and a contactless communication protocol parameter, and, when data are received by the non-contact data transmission channel by non-contact data transmission/receiving interface, by search data path in routing table, mode of operation and contactless communication protocol parameter that the mode of operation parameter of this data path and contactless communication protocol parameter use corresponding to data transmission/receiving interface, come at least one point of destination of specified data, to create the non-contact data transmission channel, data receive by this channel.
According to an embodiment, the source point or the point of destination that are kept in the routing table are the services of being carried out by primary processor.
According to an embodiment, the routing parameter that is kept in the routing table also comprises the notice point identification, and it must receive the data trnascription that sends to point of destination.
According to an embodiment, device is connected on the primary processor that is formed by safety circuit, for example SIM card integrated circuit.
Embodiment
A first aspect of the present invention: the use with routing table is the method for basic route data
Fig. 4 schematically shows the embodiment according to method for routing of the present invention.This method is labeled as the NFC chipset and the above-mentioned primary processor HP1 of the NFC reader of " NFCR2 " by containing, HP2 realizes.Reader NFCR2 comprises and above-mentioned reader NFCR1 identical unit, particularly controller NFCC and the non-contact data transmission/receiving interface CLINT that antenna circuit ACT is housed.For simplicity, suppose that interface CLINT only can send or receive data, just agreement PT1 (ISO 14443-A or " ISOA "), agreement PT2 (ISO 14443-B or " ISOB ") and agreement PT3 (ISO 15693 or " IS15A ") according to three agreement PTi.Also have above-mentioned three mode of operation Mi that mention, M1 (" reader " pattern) just, M2 (" card emulation " pattern) and M3 (" device " pattern).
The source point or the point of destination of the data stream in the chipset are appointed as P1 (being arranged in the point of primary processor HP1), P2 (being arranged in the point of primary processor HP2), P3 (being arranged in the point of noncontact interface CLINT).
According to the present invention, the controller NFCC of NFC reader is used as the keeper of HCI (host computer interface) agreement with following feature:
Employing has the routing table RT of data path, and it is definite that each data path is all counted CHANi by a routed channels,
The instruction CMD that employing can make data path (routed channels) obtain managing instructs especially for opening and closing data path, and
Employing comprises the Frame DF of little gauge outfit district and data field (DATA), and the gauge outfit district comprises routed channels and counts CHANi.
The data path that is stored in the routing table is distinguished by in the following parameters at least one:
CHANi;IDsp;IDdp,Mi,PTi
CHANi is the routed channels number that is assigned in the data path, IDsp is the sign of data path source point, IDdp is the sign of data path point of destination, and Mi and PTi are mode of operation and the contactless communication agreements of passing through transmission of non-contact data transmission channel or reception data that interface CLINT adopts.
With instructions appendix 1 in aggregates in the example of route instruction and the example of Frame have been described.For simplicity, all operable instructions are not described at this.Appendix 1 expression produces route, change route and remove the elementary instruction of route, and replying above-mentioned instruction (confirming or error message).Appendix 1 has also illustrated and has advantageously comprised the only form of the Frame DF of 8 bit table Head Sections.
Open, close or the instruction of translation data path is sent by one among primary processor HP1, the HP2 or interface CLINT, handle by controller NFCC.Above-mentioned agreement has indicated the mode of operation Mi and the agreement PTi of interface CLINT of the data path of indication.If data path is opened in one request among primary processor HP1, the HP2, then controller NFCC utilizes pattern Mi and agreement PTi configuration interface CLINT in the instruction according to for transmitting the contactless communication channel that will must produce by the data that data path receives.If data path is opened in interface CLINT request, then mode of operation Mi and the agreement PTi that indicates in the instruction that interface CLINT sends is information, and indicates the mode of operation and the agreement situation of the data that need transmit in data path that interface CLINT received.
The actual foundation of data path is finished by the controller NFCC as HCT keeper (" HCI ADMIN ").When receiving receivable instruction of setting up data path (" setting up the path " instruction), controller NFCC counts CHANi to the path allocation routed channels, in routing table RT, write the parameter I Dsp that points out in this instruction then, IDdp, Mi, PIi, and acknowledge message sent to the entity that sends instruction.
With the table 1 of instructions appendix 2 in aggregates in the example of the routing table that controller NFCC produces has been described.This routing table produces after receiving a series of instructions of opening the path, and this path has one the source point (being source point P1 or P2) that is positioned among processor HP1 or the HP2.Perhaps, controller can determine to be received in the secondary destination of round-robin data trnascription in the data path.Secondary destination utilizes the notification list (not shown) to determine that notification list points out to notify the data path of other primary processors to controller by controller.Although static representations routing table in the table 1, routing table are dynamic, the establishment that receives according to controller NFCC, change or remove the instruction real-time update.
In another optional embodiment, for example in primary processor request and when connecting chipset, routing table is for static and prestored by controller NFCC.The explanation of table 2 in the appendix 2 has and is positioned at primary processor HP1, the example of some P1 among the HP2 or the routing table that prestores of P2 as source point.Also can be in table be each possible routing configuration number of channel CHANi that prestores.In the above-mentioned table that prestores, provide " doing " district at each row (corresponding to the row of routed channels) of showing.When opening corresponding data path, controller NFCC responds the instruction value of writing " 0 " that removes data path in " doing " district value of writing " 1 ".
The data that receive in the transmit data frames also are subjected to the control of controller NFCC, and controller is determined the point of destination of these data with reference to above-mentioned routing table.Advantageously, from the form of the Frame described in the appendix 1 as can be seen, source point does not need to indicate the employed parameter of all routed channels by sending data to processor: the gauge outfit district of Frame only comprises parameter bit T and L, and 6 channel numerical digits (can make and arrange 63 data paths simultaneously) for the HCI consultative management keeps channel " 0 ".
Therefore, according to receiving data frames, controller utilizes the number of channel as the point of destination in the directory search routing table (may be the notice point), data is beamed back the point of destination of appointment in the routing table.If point of destination is a P3 (interface CLINT), controller NFCC is provided with the parameter of interface CLINT so that interface with routing table in noncontact agreement PTi and non-contact data transmission channel that information among the mode of operation Mi conforms in send data.In another optional embodiment, when interface CLINT receives data in the Frame, self parameter (decay part of controller NFCC need be sent to interface CLINT) is set by reading routing table.
Therefore, another advantage of the present invention is that routing table can make the parameter of interface CLINT to be provided with not need to comprise mode of operation Mi and contactless communication agreement PTi parameter in the data frame head.So routing table according to the present invention is not only the simple routing table of traditional letter, it also forms the table of a definite parameter.
The explanation of table 3 in the appendix 2 comprises the example of the dynamic routing table of the data path that the request of answering interface CLINT (with P3 as source point) generates.As pointed in preceding chatting, the problem that route input data (by the data of contactless communication channel reception) cause is that interface CLINT and controller NFCC needn't know which the reception primary processor of above-mentioned data is.Therefore, answer routing table designation data of the request generation of interface CLINT to send at this by controller NFCC and be positioned at two primary processor HP1, two point of destination P1 of HP2, P2, the primary processor that above-mentioned data are not related to is not done and is replied, and makes another primary processor send response data to interface CLINT.
Should be noted that primary processor HP1 at this, one requirement among the HP2 or the data path of answering the requirement of interface CLINT to produce are preferably two-way.Therefore, for example, produce data path in case be arranged in the some P1 of processor HP1, in the contactless communication channel of determining by mode parameter M2 and agreement PT2, to send data, then all data that received under pattern M2 and agreement PT2 by interface CLINT send in this data path, and are received by a P1.The person of ordinary skill in the field should also be noted that provides the bi-directional data path to mean, handles all conflicts by forbidding two bi-directional paths with homologous points not and/or point of destination, is that interface CLINT adopts identical pattern Mi and agreement PTi parameter.The data path that the routing table of explanation is represented not coexist in the table 1 (for example channel 1 and channel 9, the only explanation as an example in same form of these data paths) for example.
A second aspect of the present invention: according to the pattern and the protocol parameter route input data of noncontact interface
The present invention at this based on two parts of observationss:
1) primary processor in the NFC chipset because its characteristic (whether safety, SIM card processor or baseband processor), its processing power and its processing unit that comprises and " special use " in the application of some application or some type,
2) except the multiple application that the NFC chipset may need to handle, the application of each application or every type meets mode of operation and the predetermined contactless communication agreement (PT1 of predetermined non-contact data transmission/receiving interface CLINT generally, PT2, PT3 etc.).
Therefore, the combination of the mode of operation Mi of interface CLINT and agreement PTi can meet a kind of application by specific master processor processes.This can be as seen from Figure 1, can see that wherein the Secure Application AP2 in the competitive mode is generally managed by SIM card (processor HP2), otherwise, the non-Secure Application of AP3 class (for example point-to-point file transfer) is preferentially managed by baseband processor, because baseband processor has high throughput, but lack the security that transmits.In addition, the Secure Application in the competitive mode is generally based on ISOA and ISOB agreement, if processor HP2 is a SIM card, then will provide the ISO13693 mode prioritization of longer communication distance to be used for by primary processor HP1 but not processor HP2 produce non-Secure Application.
Therefore, according to the present invention, input data routing rule preestablishes according to mode of operation Mi and the contactless communication agreement PTi of interface CLINT, and data based above-mentioned agreement receives.Predetermined routing rule such as following example (but being not limited to these examples):
When interface CLINT received data with ISO A reader mode, high priority data sent to primary processor HP1 and gives primary processor HP2 with its circular,
When interface CLINT received data with ISO B reader mode, high priority data was sent to primary processor HP1 and gives primary processor HP2 with its circular,
When interface CLINT received data with the ISO15693 reader mode, high priority data was sent to primary processor HP2, but did not give primary processor HP1 with its circular,
When interface CLINT received data with ISO A card competitive mode, high priority data was sent to primary processor HP2, but did not give primary processor HP1 with its circular,
When interface CLINT received data to primary processor HP1 with ISO B card competitive mode, high priority data was sent to primary processor HP1, but does not give primary processor HP2 with its circular,
When interface CLINT receives data with ISO 15693 card competitive modes, only give primary processor HP2, but do not send or circulate a notice of to primary processor HP1 with data circulation.
When interface CLINT received data with ISO A " device " pattern (by primary processor HP1 matching treatment), high priority data was sent to primary processor HP1, but did not give primary processor HP2 with its circular,
When interface CLINT receives data with ISO B " device " pattern, data blocking-up (inaction),
When interface CLINT received data with ISO 15693 " device " pattern (by primary processor HP1 matching treatment), high priority data was sent to primary processor HP1, but did not give primary processor HP2 with its circular.
This cover rule can be determined to import the data routing table, shown in table 4 in the appendix.This routing table is static, and is for example answered the requirement of safe processor HP2 and prestored under the situation that the NFC chipset is connected by controller NFCC.Should be understood that this table can real-time change.
The person of ordinary skill in the field should know that a second aspect of the present invention is independent of first aspect, in route scope according to the input data of said method, second aspect can be finished with typical HCI agreement, just without routing table and the Frame that has little gauge outfit district.
NFC can realize the hardware and software structure example according to the reader of the inventive method.
Fig. 5 represents the hardware configuration example of reader NFCR2 shown in Figure 4.This reader comprises:
Controller NFCC that has illustrated and interface CLINT,
Memory array, it comprises ROM type (ROM (read-only memory)) program storage MEM1, RAM type (random access memory) data-carrier store MEM2, and the EEPROM type electric erasable programmable memory device MEM3 that has routing table RT.
The checking error correction circuit AUTHCT that comprises DES and ECC algorithm (error correcting code),
Universal asynchronous receiving-transmitting (Universal Asynchronous Receiving Transmitting is called for short UART) type connectivity port INT1, HP1 is connected thereto at this primary processor,
ISO7816 type connectivity port INT2 is connected thereto (supposing that processor HP2 is SIM card at this) at this primary processor HP2,
Single-wire-protocol (SWP) type connectivity port INT3 can connect the 3rd primary processor, another safety card for example,
The data bus DTB of connected storage array, controller NFCC, interface CLINT and port INT1, INT2, INT3 and address bus ADB, and
Control bus CTB, it can make controller NFCC read and/or write control and visit above-mentioned a plurality of element.
Interface CLINT and port INT1, INT2, INT3 have the input buffer BUF1 of the parallel input end of band and the output buffer BUF2 of band parallel output terminal separately, and output terminal can be read and write respectively by data bus and address bus.Form the exchange of Frame between the data of route instruction or primary processor HP1, HP2 and controller NFCC or the interface CLINT, thereby finish, coordinate by controller NFCC by the data block of impact damper BUF1, BUF2 size.
Fig. 6 represents the example of the software configuration of reader NFCR2 and primary processor HP1, HP2.For each element of chipset, this software configuration comprises from some software layers of lowermost layer (data link layer) to top (application layer).Compare with the actual software structure of NFC chipset according to the present invention, the above-mentioned software layer of representing among Fig. 6 is through simplifying, and it is enough that still modes that those hope usefulness have been proposed are finished person of ordinary skill in the field of the present invention.
Each primary processor HP1, HP2 comprise at least four software layers along ascending:
The end level HWML layer (hardware management layer) of hardware management element work, it can make primary processor and controller NFCC swap data.For example be used for the UART interface management layer of processor HP1, and the ISO7816 interface management layer that is used for processor HP2.
Protocol of I NTPL (protocol layer of the interface) layer of supervisory communications port INT1, INT2, INT3.The UART consultative management layer that for example is used for processor HP1 is used for the ISO7816 consultative management layer of processor HP2.
Manage the HCIL layer of HCI agreement according to the present invention, that is, and by above-mentioned instruction that produces expression in the appendix 1 and the response message of handling this instruction, the establishment of managing communication channels.This is placed on INTPL and the HWML layer, in fact this two-layer be transparent to it.
The senior application layer APL of the RFID application of management as Fig. 2 and (read chip card or electronic tag, chip card emulation is talked with swap file with " device-device " pattern and ppu etc.) shown in Figure 4.This layer can comprise a plurality of application programs, and safety or unsafe (according to the internal resource of processor) adopts this mode of operation Mi of this or such agreement PTi and interface CLINT.Thereby according to the present invention, this higher-level layer places on HWML, INTPL layer and the HCIL layer, in fact these three layers transparent to it.Data have caused that advantageously the essence of application layer APL performance increases because HCIL layer according to the present invention transmits rapidly by the data path of creating.
According to another favourable aspect of the present invention, be arranged in the source point of primary processor or point of destination P1 and P2 and be " service " (predetermined application).Above-mentioned service each can require controller NFCC to create data path independently of one another, to use interface CLINT (being subjected to as mentioned above, the influence of pattern and protocol violation) simultaneously.Above-mentioned software configuration can be realized service as the source point of data path and point of destination, and can be between two entities, for example between two primary processors or create several data paths simultaneously between processor and the noncontact transmission/receiving interface.
In similar in fact mode, controller NFCC comprises following software layer:
Two-layer HWML1 and the INTPL identical with the INTPL type with HWML in the primary processor.For simplicity, these layers are illustrated among the processor NFCC, but in fact it is arranged in port INT1, the INT2 of a part that is considered to controller and bus ADB, DTB, CTB.In fact, in port INT1 and INT2, UART and 7816 agreements are handled here, make that DTB and CTB make its input and output impact damper BUF1 and BUF2 can use controller by bus ADB.
Another low-level layers HWML2, it can be by resolving into the data block onesize with impact damper with Frame or instruction, makes the controller can be via bus ADB, DTB and CTB write buffer BUF1, read buffer BUF2.
HCI-ADMIN-L layer or HCI consultative management layer, itself and HCIL layer dialogue as routing management person's primary processor HP1 and HP2.Thereby this layer is carried out above-mentioned data path allocating task, and via low-level layers HWML2 read access and write access routing table RT.
CLINTCL layer (noncontact interface key-course), its management interface CLINT, and to its indication interface self pattern Mi that must be placed in one and the agreement PTi that will be used for sending at the contactless communication channel data.For reaching above-mentioned purpose, the CLINTCL layer adopts parameter PTi and the Mi in the routing table.More particularly, the HCI-ADMIN-L layer responds the requirement of opening data path these parameters is write routing table entry, and the CLINTCL layer is sought these parameters in the table simultaneously, and this parameter is as the catalogue of the Frame number of channel of primary processor HP1 and HP2 transmission.This layer also controlled the interface CLINT in the non-contact data receiving mode, and its execution pattern of periodic request (reader mode, simulation model and device pattern) scanner uni is searched for the input data in each pattern.This expression interface CLINT sends magnetic field with the time interval of rule, to be chosen in any non-contact card or the label (or other are with portable target of noncontact mode work) that may occur in its range of choice.Interface CLINT self also enters listen mode (" emulation " pattern) with the time interval of rule, whether sends selection message with the reader in the monitoring aggressive mode.
With the identical optional layer APL that can self-management uses of primary processor.In fact, though it is not described till now yet in purpose of the present invention, this application can be handled by NFC reader self.In this case, if interface CLINT is provided with the INTPL layer, the situation shown in the embodiment of Fig. 6, then data can be communicated by letter between controller NFCC and interface CLINT by HCI communication channel of the present invention.
At last, interface CLINT comprises following software layer:
In controller NFCC side, be equivalent to the low-level layers HWML of the layer HWML2 of controller NFCC, via bus ABD, DTB and CTB management data impact damper BUF1, BUF2.
HCIL layer (as mentioned above), it makes interface CLINT compatibility according to HCI agreement of the present invention, to the invention provides bigger execution possibility (be that interface CLINT self creates Frame specifically, send the fact of the data that receive through the contactless communication channel to primary processor).
Noncontact protocol layer (Contactless Protocol Layer in antenna circuit ACT side, be called for short CLPTL) and pattern key-course (Mode Control Layer, be called for short MCL), its control or processing are applied to electronic signal on the antenna circuit ACT or its reception, with execution work pattern M1, M2, M3 and agreement PT1, PT2, PT3.
The controller side the layer and the antenna circuit side the layer between high-level service layer HLSL, it can make a plurality of source points and point of destination P3 determine in interface CLINT, to create a plurality of data paths with multiple spot P1, P2 among primary processor HP1, the HP2 application layer APL.What should know is that above-mentioned higher structure is that optionally the multiple spot P3 that is positioned at interface CLINT in fact can be managed by controller NFCC.
The person of ordinary skill in the field should know, and to be that the present invention also has various with only as an example (specifically, can delete bit " T " obtain 124 but not 64 routed channels, and keep the gauge outfit district is 8) order format that illustrate is relevant with the route tableau format, manages other relevant optional embodiments with the dynamic or static management or the sound attitude of routing table again.
The appendix 1 of the part of book as an illustration
The example of A/ route instruction
General format
| The Header head | Parameter |
Size |
| 1 | 1 | 6 | 2 or 3 bytes |
Method or content | T | L | CCMD | According to instruction |
Value |
| 1 | 0-1 | 0-31 | |
The T=type;
Replying of T=1 presentation directives or instruction
The length in L=" parameter " territory: if L=0, it is 2 bytes, if L=1, it is 3 bytes
The code of CCMD=instruction or message
The example of instruction and response message:
" establishment route " instruction:
| Head | Parameter |
Size |
| 1 | 1 | 6 | 1 byte | 1 byte | 4 | 4 |
Method or content | T | L | CCMD | IDsp | IDdp | Mi | PTi |
Value |
| 1 | 1 | VAL1 | 0-255 | 0-255 | 0-15 | 0-15 |
The value of VAL1=instruction code
The sign of IDsp=instruction source point
The sign of IDdp=path point of destination
The mode of operation of Mi=non-contact data transmission/receiving interface (M1, M2 or M3)
PTi=contactless communication agreement (PT1, PT2 or PT3)
" path is created and finished " message
| Head | Parameter |
Size |
| 1 | 1 | 6 | 1 byte | 6 | 2 |
Method or content | T | L | CCMD | IDsp | CHANi | RFU |
Value |
| 1 | 0 | VAL2 | 0-255 | 0-63 | 0-3 |
The code value that VAL2=replys
The source point sign of IDsp=instruction
The number of path (number of channel) that CHANi=distributes
RFU=uses reservation after being
" path is created wrong " message
| Head | Parameter |
Size |
| 1 | 1 | 6 | 1 byte | 1 byte |
Method or content | T | L | CCMD | IDsp | IDdp |
Value |
| 1 | 0 | VAL3 | 0-255 | 0-255 |
The code value of VAL3=message
The source point sign of IDsp=instruction
IDdp=path point of destination sign
The mode of operation (M1, M2 or M3) of Mi=non-contact data transmission/receiving interface Mi
PTi=contactless communication agreement (PT1, PT2 or PT3)
" path change " or " path deletion " instruction
| Gauge outfit | Parameter |
Size |
| 1 | 1 | 6 | 1 byte | 6 | 2 | 4 | 4 |
Method or content | T | L | CCMD | IDsp | CHANi | RFU | Mi | PTi |
Value |
| 1 | 1 | VAL4 or VAL5 | 0-255 | 0-63 | 0-3 | 0-15 | 0-15 |
The code value of VAL4 or each instruction of VAL5=
The source point sign of IDsp=instruction
The number of path (number of channel) that CHANi=will change or delete
RFU=uses reservation after being
The mode of operation of Mi=non-contact data transmission/receiving interface (M1, M2 or M3)
PTi=contactless communication agreement (PT1, PT2 or PT3)
" path change success " or " delete successfully in the path " message
| Gauge outfit | Parameter |
Size |
| 1 | 1 | 6 | 1 byte | 6 | 2 |
Method or content | T | L | CCMD | IDsp | CHANi | RFU |
Value |
| 1 | 0 | VAL6 or VAL7 | 0-255 | 0-63 | 0-3 |
The code value of VAL6 or each message of VAL7=
The source point sign of IDsp=instruction
CHANi=path allocation (number of channel) number
RFU=uses reservation after being
" path change is made mistakes " or " the path deletion makes mistakes " message
| Gauge outfit | Parameter |
Size |
| 1 | 1 | 6 | 1 byte | 6 | 2 |
Method or content | T | L | CCMD | IDsp | CHANi | RFU |
Value |
| 1 | 0 | VAL8 or VAL9 | 0-255 | 0-63 | 0-3 |
The code value of VAL8 or each message of VAL9=
The source point sign of IDsp=instruction
The problematic number of path of CHANi=(number of channel)
RFU=uses reservation after being
B/ Frame example
To replying of Frame or Frame, T=0
If data are frames of 256 bytes, L=0
If data are frames of 64K byte, L=1
The length byte of DL=data
The DATA=application data
CHANi=routed channels number
The Frame of 255 bytes
| Gauge outfit | |
Size |
| 1 | 1 | 6 | 1 byte | 0 to 255 byte |
Method or content | T | L | CHANi | DL | DATA |
Value | 0 | 0 | 0-63 | 255 | |
The Frame of 64K byte
| Gauge outfit | |
Size |
| 1 | 1 | 6 | 2 bytes | 0 to 65535 byte |
Method or content | T | L | CHANi | DL | DATA |
Value | 0 | 1 | 0-63 | 65535 | |
The message that " acknowledges receipt of zero defect "
Size | 1 | 1 | 6 |
Method or content | T | Zero defect | CHANi |
Value | 0 | 0 | 0-63 |
Message that " Receipt error " message " receives mistake "
Size | 1 | 1 | 6 | 1 byte |
Method or content | T | Make mistakes | CHANi | Error code |
Value | 0 | 1 | 0-63 | 0-255 |
Appendix 2 forms the example of the intact part-routing table of instructions
Table 1: the example that the source point dynamic routing table that is arranged in HP1 or HP2 is arranged
| IDdp | |
CH ANi | IDsp | PTi | Mi | Send | Notice | Note |
1 | ID(P1) | PT1 | M1 | ID(P3) | ID(P2) | Primary processor HP1 is to interface CLINT under the ISOA reader mode |
2 | ID(P1) | PT2 | M1 | ID(P3) | - | Primary processor HP1 is to interface CLINT under the ISOB reader mode |
3 | ID(P1) | PT3 | M1 | ID(P3) | - | Primary processor HP1 is to interface CLINT under the ISO15 reader mode |
4 | ID(P1) | PT1 | M3 | ID(P3) | ID(P2) | Primary processor HP1 is to interface CLINT under the ISOA device pattern |
5 | ID(P1) | PT2 | M3 | ID(P3) | - | Primary processor HP1 is to interface CLINT under the ISOB device pattern |
6 | ID(P1) | PT3 | M3 | ID(P3) | - | Primary processor HP1 is to interface CLINT under the ISO15 device pattern |
7 | ID(P1) | - | - | ID(P2) | | Primary processor HP1 is to SIM card (HP2) |
8 | ID(P2) | - | - | ID(P1) | - | SIM card (HP2) is to primary processor HP1 |
9 | ID(P2) | PT1 | M1 | ID(P3) | - | SIM card under the ISOA reader mode (HP2) is to interface CLINT |
10 | ID(P2) | PT2 | M1 | ID(P3) | ID(P2) | SIM card under the ISOB reader mode (HP2) is to interface CLINT |
11 | ID(P2) | PT3 | M1 | ID(P3) | ID(P2) | SIM card under the ISO15 reader mode (HP2) is to interface CLINT |
12 | ID(P2) | PT1 | M3 | ID(P3) | - | SIM card (HP2) is to interface CLINT under the ISOA device mould pattern |
13 | ID(P2) | PT2 | M3 | ID(P3) | ID(P2) | SIM card (HP2) is to interface CLINT under the ISOB device pattern |
14 | ID(P2) | PT3 | M3 | ID(P3) | ID(P2) | SIM card (HP2) is to interface CLINT under the ISO15 device pattern |
Table 2: the example that the routing table that prestores of the source point that is arranged in HP1 or HP2 is arranged
| IDdp | |
CHA Ni | IDsp | PTi | Mi | Send | Notice | Busy | Note |
1 | ID(P1) | PT1 | M1 | ID(P3) | ID(P2) | 1 | Primary processor HP1 is to interface CLINT under the ISOA reader mode |
2 | ID(P1) | PT2 | M1 | ID(P3) | - | 0 | Primary processor HP1 is to interface CLINT under the ISOB reader mode |
3 | ID(P1) | PT3 | M1 | ID(P3) | - | 0 | Primary processor HP1 is to interface CLINT under the ISO15 reader mode |
4 | ID(P1) | PT1 | M3 | ID(P3) | ID(P2) | 0 | Primary processor HP1 is to interface CLINT under the ISOA device pattern |
5 | ID(P1) | PT2 | M3 | ID(P3) | - | 0 | Primary processor HP1 is to interface CLINT under the ISOB device pattern |
6 | ID(P1) | PT3 | M3 | ID(P3) | - | 0 | Primary processor HP1 is to interface CLINT under the ISO15 device pattern |
7 | ID(P1) | - | - | ID(P2) | | 1 | Primary processor HP1 is to SIM card (HP2) |
8 | ID(P2) | - | - | ID(P1) | - | 0 | SIM card (HP2) is to primary processor HP1 |
9 | ID(P2) | PT1 | M1 | ID(P3) | - | 0 | SIM card under the ISOA reader mode (HP2) is to interface CLINT |
10 | ID(P2) | PT2 | M1 | ID(P3) | ID(P2) | 0 | SIM card under the ISOB reader mode (HP2) is to interface CLINT |
11 | ID(P2) | PT3 | M1 | ID(P3) | ID(P2) | 0 | SIM card under the ISO15 reader mode (HP2) is to interface CLINT |
12 | ID(P2) | PT1 | M3 | ID(P3) | - | 1 | SIM card (HP2) is to interface CLINT under the ISOA device pattern |
13 | ID(P2) | PT2 | M3 | ID(P3) | ID(P2) | 0 | SIM card (HP2) is to interface CLINT under the ISOB device pattern |
14 | ID(P2) | PT3 | M3 | ID(P3) | ID(P2) | 0 | SIM card (HP2) is to interface CLINT under the ISO15 device pattern |
Table 3: the source point that is arranged in interface CKINT is arranged, but do not need to realize that the example of the dynamic routing table of a second aspect of the present invention (sends to two primary processor HP1 with all data, HP2)
CHANi | IDsp | PTi | Mi | IDdp | Note |
40 | ID(P3) | PT1 | M1 | ID(P1) | ID(P2) | ISOA reader mode lower interface CLINT is to primary processor HP1, HP2 |
41 | ID(P3) | PT2 | M1 | ID(P1) | ID(P2) | ISOB reader mode lower interface CLINT is to primary processor HP1, HP2 |
42 | ID(P3) | PT3 | M1 | ID(P1) | ID(P2) | ISO15693 reader mode lower interface CLINT is to primary processor HP1, HP2 |
43 | ID(P3) | PT1 | M2 | ID(P2) | ID(P2) | ISOA simulation model lower interface CLINT is to primary processor HP1, HP2 |
44 | ID(P3) | PT2 | M2 | ID(P1) | ID(P2) | ISOB simulation model lower interface CLINT is to primary processor HP1, HP2 |
45 | ID(P3) | PT3 | M2 | ID(P1) | ID(P2) | HP2ISO15693 simulation model lower interface CLINT is to primary processor HP1, HP2 |
46 | ID(P3) | PT1 | M3 | ID(P1) | ID(P2) | ISOA device pattern lower interface CLINT is to primary processor HP1, HP2 |
47 | ID(P3) | PT2 | M3 | ID(P1) | ID(P2) | ISOB device pattern lower interface CLINT is to primary processor HP1, HP2 |
48 | ID(P3) | PT3 | M3 | ID(P1) | ID(P2) | ISO15693 device pattern lower interface CLINT is to primary processor HP1, HP2 |
Table 4: the prestore example (a second aspect of the present invention) of routing table of the source point that is arranged in interface CKINT is arranged
| IDdp | |
CH ANi | IDsp | PTi | Mi | Send | Notice | Use | Note |
40 | ID(P3) | PT1 | M1 | ID(P1) | ID(P2) | | ISOA reader mode lower interface CLINT is to primary processor HP1 |
41 | ID(P3) | PT2 | M1 | ID(P1) | ID(P2) | | ISOB reader mode lower interface CLINT is to primary processor HP1 |
42 | ID(P3) | PT3 | M1 | ID(P2) | | | ISO15693 reader mode lower interface CLINT is to SIM card (HP2) |
43 | ID(P3) | PT1 | M2 | ID(P2) | | | ISOA card simulation model lower interface CLINT is to SIM card (HP2) |
44 | ID(P3) | PT2 | M2 | ID(P1) | - | | ISOB card simulation model lower interface CLINT is to primary processor HP1 |
45 | ID(P3) | PT3 | M2 | - | ID(P2) | | ISO15693 card simulation model lower interface CLINT is to SIM card (HP2) (only circular) |
46 | ID(P3) | PT1 | M3 | ID(P1) | ID(P2) | | ISOA device pattern; The primary processor match management |
47 | ID(P3) | PT2 | M3 | - | - | | Attonity (structure is forbidden) |
48 | ID(P3) | PT3 | M3 | ID(P1) | ID(P2) | | ISO15693 device pattern; The master controller match management |