METHOD OF POWER NEGOCIATION BETWEEN TWO CONTACTLESS
DEVICES
(Field of the invention)
The present invention relates to methods of power negotiation between two contactless devices. It relates particularly to methods for selecting a power level at the reader device side according to requirements of a contactless device which uses an electromagnetic field as energy source.
(Prior art)
The NFC (Near Field Communication) technology is based on the exchanging of data via a magnetic field. A NFC reader has an antenna which is able to modulate the electromagnetic field and to provide energy to NFC devices. The NFC reader is usually named a PCD (Proximity Coupling Device) . The NFC device may be a PICC (Proximity Integrated Circuit Card or Proximity Card) or may embed components which act as logical PICC. The PICC and the PCD communicate thanks to an inductive coupling in a field frequency equal to 13.56 MHz. In particular, the IS014443 and ISO18092 standards provide modulation technologies and communication protocols which may be used in NFC domain.
The reader may set the electromagnetic field to a plurality of power level. According to the standards of the contactless technology, contactless cards shall be able work in an electromagnetic field having a power level equal to 1.5 Ampere/meter.
Flash memories allow storing very large amounts of data. Unfortunately, the "power-on" phase of flash memory requires at least a power level of 2.5 Ampere/meter in an ID1 card. Thus a contactless card may not have enough energy to start a flash memory. In a passive mode, the contactless card cannot manage a flash memory because the card must be compliant with contactless readers which are limited to 1.5 A/m.
There is a need for allowing a contactless card to manage a flash memory.
(Summary of the Invention)
An object of the invention is to solve the above mentioned technical problem.
The object of the present invention is a method of power negotiation between a first contactless device and a second contactless device. The second contactless device provides an electromagnetic field which is set to a first power level. The method comprises the steps of:
a) sending a request from the first device to the second device, said request targeting a second power level and a duration,
b) sending a response to the first device, said response reflecting a decision of the second device corresponding to the request,
c) switching the electromagnetic field to said second power level if the decision is positive.
Advantageously, the method may comprise the step of switching the electromagnetic field to said first power level at the end of the duration.
The second power level may be higher than the first power level.
The second power level may be lower than the first power level.
In a preferred embodiment, the first device is contactless card and the second device is a contactless reader .
Advantageously, the first device may comprise a flash memory.
In another embodiment, the second device may have power capabilities and the response may comprise data related to the power capabilities.
Advantageously, the response may comprise data related to the first power level.
The request may comprise data corresponding to the difference between first and second power levels.
In one embodiment, the step of switching to the second power level may be carried out when a further command is exchanged between said first and second devices.
Another object of the invention is a contactless device which is intended to be in an electromagnetic field set to a first power level. The device comprises a first means a second means and a third means. The first means is capable of identifying the first power level. The second means is capable of identifying a second power level and an associated duration. The third means is capable of building a request that targets the second power level and the duration.
Advantageously, the contactless device may be a contactless card comprising a flash memory.
Another object of the invention is a contactless device comprising a communication means capable of providing an electromagnetic field which can be set to first and second power levels. The contactless device comprises a negotiation means capable of analyzing a request coming from a second contactless device of the type of the first object of the invention. The request asks for a switching to a second power level for a specific duration. The negotiation means is capable of making a decision corresponding to the request and to switch the electromagnetic field to the second power level if the decision is positive.
Advantageously, the negotiation means may be able to automatically switch the electromagnetic field to the first power level at the end of the specific duration .
In one embodiment, the negotiation means may be able to send a response which reflects the decision to the second contactless device.
In another embodiment, the contactless device has power capabilities and the response may comprise data related to the power capabilities.
(Brief description of the drawings)
Other characteristics and advantages of the present invention will emerge more clearly from a reading of the following description of a number of preferred embodiments of the invention with reference to the corresponding accompanying drawings in which:
Figure 1 depicts schematically an example of communication exchanges between a contactless card and a contactless reader according to the invention;
Figure 2 is an example of INF field of a request according to the invention;
Figure 3 is an example of INF field of a response according to the invention;
- Figure 4 is a diagram showing a first example of several modifications of the power level of the electromagnetic field generated by a reader device according to the invention;
- Figure 5 is a diagram showing a second example of several modifications of the power level of the electromagnetic field generated by a reader device according to the invention;
- Figure 6 is another example of INF field of a request according to the invention; and
- Figure 7 is an example of power change request coding according to the invention. (Detailed description of the preferred embodiments )
The invention may apply to any types of contactless device. In particular, the invention may apply to devices complying with the Very High Data Rate (VHDR) protocol as defined by the WG8N865 document or the TF2 N461 proposal. The invention may apply to contactless devices complying with the ISO/IEC14443, ISO/IEC21481 or ISO/IEC 18092 or ISO/IEC 15693 standards. The invention may apply to contactless devices in many
domains, like e-Passport, e-Health, e-Access, e-payment and so on.
The contactless device that provides an electromagnetic field may be a contactless reader or any device able to act as a contactless reader. For example this contactless device may be a portable device like a mobile phone or an Electronic Funds Transfer Terminal for payment. The reader may also be a fixed device like an access reader or a border Control for e-passport.
The invention relies on the fact that a first contactless device may dynamically ask another contactless device to temporary modify its electromagnetic field power level. Thus a contactless card may get more energy when required for specific internal treatments.
An advantage of the invention is to allow a contactless device to ask a reader to decrease the electromagnetic field power level. Thus power consumption of the contactless reader may be saved, especially when low energy level is required by the contactless device that uses the electromagnetic field as energy source. This power saving is particularly useful for NFC devices.
Moreover the reader may accept or reject the request of power level change. Thus the reader remains master. In addition, the reader device may manage power change requests coming from a plurality of contactless cards, by keeping the highest requested value.
Another advantage of the invention is to inform a contactless device that uses an electromagnetic field
as energy source of the power capabilities of the device that generates the electromagnetic field. Thus the contactless card may adapt its further power change requests and the sequence of its internal treatments according to the reader capabilities.
The invention may apply to any types of contactless devices intended to use an electromagnetic field provided by another device. In particular, such contactless devices may be cards or passport booklet. For example the invention may apply to ID1 and ID3 cards, as defined by ICAO 9303 standard.
Figure 1 shows an example of communication exchanges between a contactless card CC and a contactless reader CR. According to one embodiment of the invention, the reader device CR is a mobile phone.
The device CR has contactless reader features and comprises an antenna (not drawn) and a contactless controller (not drawn) . The device CR comprises a communication means CM which is capable of generating an electromagnetic field. The electromagnetic field may be set to at least first and second power levels. By default the device CR generates an electromagnetic field at the first power level L0. The power level L0 is equal to 1.5 A/m. The device CR comprises a negotiation means NM able to analyze a request RE1 which asks for a switching to another power level LI for duration Dl . The negotiation means NM is also able to accept or reject the power change request and to switch the electromagnetic field to the power level LI if the power change request is accepted.
The negotiation means NM is able to automatically switch the electromagnetic field to the default power level LO after the power level LI has been provided during the period Dl . Alternatively, another means may trigger the switching step to power level LO .
The negotiation means NM may also be able to send a response AK1 corresponding to the request RE1. The response AK1 comprises data which reflects the decision related to the power change request (i.e. acceptance or rej ection) .
In a preferred embodiment, the device CR has its own power capabilities CA. For example, the power capabilities may be defined by the minimum and maximum power values of the electromagnetic field generated by the device CR. The response AK1 may comprise data related to the power capabilities CA.
The contactless card CC comprises a means Ml able to measure the current power level LO of the electromagnetic field. The contactless card CC comprises a means M2 able to identify a power level LI and a duration Dl associated to the power level LI. The identification of the power level LI and duration Dl is made by taking into account the future power requirements of the contactless card CC . In particular, these future power requirements may depend on planned treatments which must be performed into the card CC .
The contactless card CC comprises a means M3 able to build a request RE1 which requests a power change to the power level LI during the period Dl . The request RE1 is intended to be sent to the contactless device that produces the electromagnetic field.
In a preferred embodiment, the contactless device CC comprises a flash memory FM.
Thus the couple request REl/response AK1 allows the contactless card CC and the device CR to negotiate the power level that will be applied.
Figure 2 shows an example of a field contained in the request REl according to the invention.
The ISO/IEC 14443-4 standard defines S()block request and S()block response. In a preferred embodiment, the request REl is a S() block request that contains a one byte-long INF field. In particular, the request REl may be done thanks to a S (PWX) request, where PWX stands for "PoWer extension".
Figure 2 shows an example of INF field of the request REl: R-INF.
The field R-INF comprises two parts: PWXM and PWDI . The part PWXM contains the value of the requested power extension. In the example of Figure 2, the PWXM value is coded on the four most significant bits (i.e. B8 to B5) in the range from 0 up to 15. Assuming that REl aims at setting the electromagnetic field to the level LI, the requested power extension is equal to the difference between levels LO and LI. In other words, PWXM is equal to LI - LO .
The part PWDI contains a value related to the targeted duration Dl associated to the power level LI. In the example of Figure 2, the PWDI value is coded on the four least significant bits (i.e. B4 to Bl) in the range from 0 up to 14. The value 15 is not used. The duration Dl may be computed according to the formula:
Dl = ( 256 x (16 / fc) ) x 2PWDI
where fc is the carrier frequency expressed in
MHz .
In this case, the computed duration Dl is expressed in microseconds.
In particular, the carrier frequency fc may be equal to 13.56 MHz.
For example, if PWDI is equal to 7, the duration Dl is equal to around 38.6 milliseconds.
The default value of PWDI may be 4. This value corresponds to a duration Dl equal to around 4.8 milliseconds .
Figure 3 shows an example of a field contained in the response AKl according to the invention.
In a preferred embodiment, the response AKl is a S()block response that contains a one byte-long INF field. In particular, the response AKl may be done thanks to a S (PWX) response.
Figure 3 shows an example of INF field of the request RE1: A- INF .
The field A-INF comprises two parts: CAP and POW.
The part CAP contains a value related to the power capabilities CA of the device CR. In the example of Figure 3, the CAP value is coded on the four most significant bits (i.e. B8 to B5) in the range from 0 up to 15. For example, when CAP is equal to 11, the reader device CR has a minimum power level equal to 1.5 A/m maximum power level equal to 3 A/m. In another example, when CAP is equal to 15, the reader device CR has a minimum power level equal to 1.5 A/m maximum power level equal to 7.5 A/m.
The part POW contains a value related to the current power level which is used by the device CR. This data allows the device CC to get the power level LO currently used. Thus knowing the current level LO and the requested extension, the device CC is able to compute the next power level LI . In the example of Figure 3, the POW value is coded on the four least significant bits (i.e. B4 to Bl) in the range from 0 up to 15.
Advantageously, the field A-INF may be set to zero (i.e. CAP = 0 and POW = 0) when the device CR rejects the power extension request.
In the above-described examples, the duration Dl is expressed as a time duration. Alternatively, the duration Dl may be expressed as a number preset events. For example, the duration Dl may be defined by a threshold of executed commands or exchanged requests.
Advantageously, the device CC may request several successive power extensions. In particular, an additional power change request may be sent when the previous power change is still active.
In a preferred embodiment, the later power extension is computed from the previous power level.
Alternatively, the later power extension is computed from the default power level.
Figure 4 shows a first diagram where the power level of the electromagnetic field is modified according to the invention.
The electromagnetic field is generated by the device CR with a default value equal to L0.
When the device CC needs additional energy, the device CC sends the request RE1 in order to reach the power level LI during a period Dl . The device CR accepts the power change request and sends the response AK1. Although the couple REl/AKl is drawn as a unique arrow, the building and sending of these two messages require a short time duration. In other words the sending of REl/AKl is not instantaneous.
Then the power level of the electromagnetic field is set to LI. This level is kept during a period equal to Dl . Then the device CR set the power level of the electromagnetic field to LO . When the power level is set to LI, the device CC may perform internal treatments which need a high level of energy. For example, a contactless card may start its flash memory during the duration Dl .
Then the device CC may need another additional energy during a limited period. The device CC sends a request RE2 in order to reach the power level L2 during a period D2. The device CR accepts the power change request and sends a corresponding response AK2. Then the power level of the electromagnetic field is set to L2. This level is kept during a period equal to D2. At the end of the duration D2, the device CR set the power level of the electromagnetic field to LO .
Then the device CC may have no energy need for a duration D3. Thus the device CC may send a request RE3 in order to reach the power level L3 during a period D3. The device CR accepts the power change request and sends a corresponding response AK3. Thus the power level of the electromagnetic field is set to L3. This
level is kept during a period equal to D3. When the end of the duration D3 is reached, the device CR set the power level of the electromagnetic field to LO . In the example of Figure 4, LO may be equal to 1.5 Ampere/meter, LI may be equal to 2.5 Ampere/meter and L3 may be equal to 1.0 Ampere/meter.
Each time, the new power level is activated just after the sending of the Sblock response.
Advantageously, the device CC may manage a timer allowing to check if a response has been received in a preset period. Such a case may happen when the device which generates the electromagnetic field is not able to treat a change power request. For example, the preset period may be set to one or five milliseconds.
Figure 5 shows a second diagram where the power level of the electromagnetic field is modified according to the invention.
The electromagnetic field is generated by the device CR with a default value equal to L0.
When the device CC needs additional energy, the device CC sends the request RE4 in order to reach the power level L4 during a period D4. The device CR accepts the power change request and sends the corresponding response AK4. Then the power level of the electromagnetic field is set to L4 by the device CR. If the internal treatments of the device CC require an additional time for the level L4, the device CC may send another request RE5 before the end of the duration D4. The additional request RE5 will aim at keeping the current power level L4 during an additional period D5. The device CR accepts the power change request and
sends a corresponding response AK5. Then the power level of the electromagnetic field is kept to L4 during a period equal to D4 + D5.
For example LO may be equal to 1.5 Ampere/meter, L4 may be equal to 4.5 Ampere/meter, D4 may be equal to 12 milliseconds and D5 may be equal to 8 milliseconds.
In one embodiment, the PWXM value as shown at Figure 2 may be coded with the four most significant bits (i.e. B8 to B5) set to zero. Thus the value 0 for PWXM means a time extension is requested for the current power level.
An advantage of the invention is to allow storing a large volume of data thanks to the use of flash memory in contactless devices which get its energy source from an electromagnetic field.
In another embodiment, the device CR which generates the electromagnetic field may send a specific message in response to a power change request. The specific message may contain a request asking the user of the device CC to approach the device CR.
Figure 6 shows a second example of a field R-INF contained in the request RE1 according to the invention .
The field R-INF comprises three parts: DIR, PWM and RP . The part DIR is coded on a single bit (b8) and corresponds to the type of power change: either increase or decrease. For example, b8=0 may mean that a power decrease is requested and b8=l may mean that a power increase is requested.
The part RP is made by the last five bits (b5 to bl) and remains reserved for a future use. In other
words, the value of the part RP is not used for the power change request. Preferably RP may be set to zero.
The part PWM is coded on two bits (b7b6) and corresponds to the targeted power level. The targeted power level may be the highest or the lowest power level which may be generated by the device CR. The targeted power level may also be the level just below/above the current power level.
Figure 7 shows an example of power change request coding. In particular, Figure 7 provides an example of coding for the part PWM.
For example, the combination b7=0 and b6=0 may mean that the targeted power level is the lowest power level supported by the device CR. The combination b7=l and b6=l may mean that the targeted power level is the highest power level supported by the device CR. The combination b7=l and b6=0 may mean that the targeted power level is one step higher than the power level currently provided by the device CR. The combination b7=0 and b6=l may mean that the targeted power level is one step lower than the current power level generated by the device CR. In other words, this last combination requests an increment in the level just below the current power level.
In the example of Figure 6, the field R-INF does not comprise an explicit value related to the duration associated to the targeted power level. In this case, the duration is implicitly defined by the command currently in progress. For instance, the sequence may be as follow. First, the reader CR sends a first I block as defined in the ISO 14443 standard. Then the
device CC sends a S (PWX) request comprising an INF field according to the Figure 6. Then the reader CR accepts the power change request and sends a S (PWX) response to the device CC . The reader CR switches the electromagnetic field to the power level targeted by the S (PWX) request. Then the device CC sends an I_block response. On receipt of the I_block response, the reader CR switches the electromagnetic field to the default power level.
In other words, the duration may start with the sending of the S (PWX) response and may end with the end of the command currently treated by the device CC .
The precise value of the duration may be unknown at the time of the S (PWX) request sending. The duration may be implicitly linked to an event related to the end of a treatment in the requesting device CC .