CN104298152A - Near-field communication modulation depth adaptive method and device - Google Patents

Near-field communication modulation depth adaptive method and device Download PDF

Info

Publication number
CN104298152A
CN104298152A CN201410512906.1A CN201410512906A CN104298152A CN 104298152 A CN104298152 A CN 104298152A CN 201410512906 A CN201410512906 A CN 201410512906A CN 104298152 A CN104298152 A CN 104298152A
Authority
CN
China
Prior art keywords
value
register
data
tables
numerical value
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.)
Granted
Application number
CN201410512906.1A
Other languages
Chinese (zh)
Other versions
CN104298152B (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.)
Feitian Technologies Co Ltd
Original Assignee
Feitian Technologies 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 Feitian Technologies Co Ltd filed Critical Feitian Technologies Co Ltd
Priority to CN201410512906.1A priority Critical patent/CN104298152B/en
Publication of CN104298152A publication Critical patent/CN104298152A/en
Application granted granted Critical
Publication of CN104298152B publication Critical patent/CN104298152B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Near-Field Transmission Systems (AREA)

Abstract

The invention discloses a near-field communication modulation depth adaptive method and device and relates to the field of communication. The device comprises a master control chip, a non-contact chip and a first storage zone. The master control chip can control the non-contact chip to output the modulation-free amplitude according to a value of a first register; a numerical value is acquired from a data table or through calculation and written in a second register according to the data table stored in the first storage zone in advance and the measured value of the modulation-free amplitude, the non-contact chip is controlled to output the modulated amplitude according to the value of the second register, and the modulation depth is adaptively adjusted through control over the modulated amplitude. By the adoption of the technical scheme, the modulation depth can be kept within a reasonable range and the stability of data transmission in non-contact communication is improved.

Description

Near-field communication depth of modulation adaptive approach and device
Technical field
The present invention relates to the communications field, particularly relate to a kind of near-field communication depth of modulation adaptive approach and device.
Background technology
Along with the development of near field communication (NFC), non-contact communication technology receives increasing concern, especially in mobile payment field.In contactless communication, depth of modulation is an important measurement index of the stability of data communication, and so-called depth of modulation is generally the unmodulated amplitude of communication field with the difference of brewed amplitude to the ratio of unmodulated amplitude with brewed amplitude sum, represents with percentage.In contactless communication, the modulator approach generally used at present is the modulator approach of fixed antenna impedance, and namely the non-equipment such as read write line that connects exports fixing peak swing and minimum amplitude according to fixing antenna impedance.But depth of modulation can present larger difference because the distance of distance is different when read write line and card-to-card communication, in order to when ensureing read write line and card communication, this index of depth of modulation reaches a rational numerical value, finding a kind of adaptive method of depth of modulation becomes current urgent problem.
Summary of the invention
For solving problems of the prior art, the present invention proposes a kind of near-field communication depth of modulation adaptive approach and device.
The technical solution used in the present invention is: near-field communication depth of modulation adaptive approach provided by the invention, comprising:
Step S1: the value of the first register on contactless chip is written as the first preset value by the main control chip of device, described contactless chip exports amplitude according to the value of the first register;
Step S2: the main control chip of device sends to contactless chip measures amplitude order, and described contactless chip measures current amplitude value;
Step S3: the main control chip of device obtains current amplitude value from contactless chip;
Step S4: the main control chip of device obtains tables of data from the first memory block;
Step S5: the main control chip of device searches tables of data, judging whether be positioned at the border row of tables of data with the immediate numerical value of described current amplitude value in tables of data, is perform step S6, otherwise performs step S7;
Step S6: the main control chip of device obtains described and the go together numerical value of the immediate numerical value of described current amplitude value in tables of data, and this colleague's numerical value is written to the second register on contactless chip, then performs step S8;
Step S7: the main control chip of device obtains and immediate two numerical value of described current amplitude value from tables of data, and obtain these two numerical value colleague's numerical value separately, according to preset formula, get four numerical value and described current amplitude value are calculated, and the second register result of calculation is written on contactless chip, perform step S8;
Step S8: the contactless chip of device exports amplitude according to the value of the second register, and sends data with this amplitude.
Near-field communication depth of modulation self-reacting device provided by the invention, comprises main control chip, contactless chip and the first memory block;
Described main control chip comprises control module, judge module, acquisition module, computing module, searches module and writing module;
Described control module is used for sending the order of measurement amplitude to described contactless chip and controls described contactless chip measurement current amplitude value, amplitude is exported according to the value of the first register, for controlling described contactless chip according to the value output amplitude of the second register and with this amplitude transmission data for controlling described contactless chip;
Described judge module for search described in judging module searches to whether be positioned at the border row of tables of data with the immediate numerical value of current amplitude value;
Described acquisition module is used for obtaining current amplitude value from contactless chip; For obtaining tables of data from described first memory block; For when described judge module judgement is described and the immediate numerical value of current amplitude value is positioned at the border row of tables of data, obtain the colleague numerical value of described immediate numerical value in tables of data; For when described judge module judgement is described and the immediate numerical value of current amplitude value is not the border row being positioned at tables of data, obtains and immediate two numerical value of described current amplitude value from tables of data, and obtain these two numerical value colleague's numerical value separately;
Described computing module be used for getting described acquisition module according to preset formula with immediate two numerical value of described current amplitude value and these two numerical value numerical value of going together separately, and these five numerical value of described current amplitude value carry out calculating result of calculation;
Described module of searching for searching and the immediate numerical value of described current amplitude value in tables of data;
Said write module is for being written as the first preset value by the value of the first register on contactless chip; For when described judge module judgement is described and the immediate numerical value of current amplitude value is positioned at the border row of tables of data, the colleague numerical value of the described immediate numerical value got by described acquisition module in tables of data writes the second register; For when described judge module judgement is described and the immediate numerical value of current amplitude value is not the border row being positioned at tables of data, the result of calculation that described computing module calculates is write the second register;
Described contactless chip comprises the first register and the second register;
Described first register is for depositing first preset value corresponding with unmodulated amplitude, and described second register is for depositing and the numerical value corresponding to brewed amplitude;
Described first memory block, for data table memory.
The beneficial effect adopting technique scheme to reach is as follows: use this scheme that the antenna part circuit design of read write line can be made simpler and easy, depth of modulation can be made to maintain in rational scope by technical scheme provided by the invention, improve data transmission stability in non-switched letter, use technology provided by the invention in research and development of products, the production debugging time can be shortened, accelerate the research and development process of product.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the near-field communication depth of modulation adaptive approach that the embodiment of the present invention 1 provides;
Fig. 2 is the process flow diagram of the near-field communication depth of modulation adaptive approach that the embodiment of the present invention 2 provides;
Fig. 3 is the structured flowchart of the near-field communication depth of modulation self-reacting device that the embodiment of the present invention 3 provides;
Fig. 4 is the composition structured flowchart of the control module shown in Fig. 3;
Fig. 5 is the composition structured flowchart of the judge module shown in Fig. 3.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described in further detail.
Embodiment 1
As shown in Figure 1, a kind of near-field communication depth of modulation adaptive approach that the present embodiment provides, comprising:
Step S1: the value of the first register on contactless chip is written as the first preset value by the main control chip of device, described contactless chip exports amplitude according to the value of the first register;
Concrete in the present embodiment, described device comprises main control chip, contactless chip and the first memory block.
Preferably, the first preset value is taken as 0x50 or 0x00.
Concrete in the present embodiment, the difference of depth of modulation=unmodulated amplitude and brewed amplitude is to the ratio of unmodulated amplitude with brewed amplitude sum, and the amplitude that this step exports is unmodulated amplitude.
Step S2: the main control chip of device sends to contactless chip measures amplitude order, and described contactless chip measures current amplitude value;
Preferably, the main control chip of device controls its measurement current amplitude by sending order to contactless chip.
Step S3: the main control chip of device obtains current amplitude value from contactless chip;
Preferably, the value of the 5th register that the main control chip of device reads on contactless chip gets current amplitude value.
Step S4: the main control chip of device obtains tables of data from the first memory block;
In the present embodiment, described tables of data is made up of two column datas.
Further, can also store multiple tables of data in the first memory block, the main control chip of device chooses the tables of data corresponding with it according to the configuration information of present apparatus.
Step S5: the main control chip of device searches tables of data, judging whether be positioned at the border row of tables of data with the immediate numerical value of described current amplitude value in tables of data, is perform step S6, otherwise performs step S7;
Concrete in the present embodiment, whether be positioned at the first row or last column of tables of data with the immediate numerical value of described current amplitude value in the middle of the numerical value judging wherein row of tables of data, be perform step S6, otherwise perform step S7.
Step S6: the main control chip of device obtains the colleague numerical value of this immediate numerical value in tables of data, and is written into the second register on contactless chip, then performs step S8;
Step S7: the main control chip of device obtains and immediate two numerical value of described current amplitude value from tables of data, and obtain these two numerical value colleague's numerical value separately, according to preset formula, get four numerical value and current amplitude value are calculated, and the second register result of calculation is written on contactless chip, perform step S8;
Concrete, preset formula described in this step is: y1+ ((y1-y2) * (current amplitude value-x2))/(x1-x2), wherein, x2 represents the number being more than or equal to current amplitude value in described immediate two numerical value, x1 represents that described immediate two numerical value are medium and small in the number of current amplitude value, y2 is colleague's numerical value of x2, and y1 is colleague's numerical value of x1.
Step S8: the contactless chip of device exports amplitude according to the value of the second register, and sends data with this amplitude.
Concrete in the present embodiment, be brewed amplitude corresponding in the computing formula of depth of modulation according to the amplitude that the value of the second register exports.
Further, can also comprise before step S1:
Step s0: device power-up initializing;
Described device also comprises initialization module.This step is realized by described initialization module.
Step s1: the main control chip of device judges whether outwards to send data by contactless chip, is perform step S1, otherwise continue to perform this step;
Accordingly, execute above-mentioned steps S8 after return perform step s1.
The near-field communication depth of modulation adaptive approach provided by the present embodiment, is controlled by the brewed amplitude exported contactless chip, the value of depth of modulation can be made to reach and be the most reasonably worth, thus ensures the stability of data transmission.
Embodiment 2
As shown in Figure 2, a kind of near-field communication depth of modulation adaptive approach that the present embodiment provides, in this way on read write line be applied as example introduce, its application scenarios is that read write line sends data to card, the operating main body of the adaptive approach that the present embodiment provides is read write line, and this read write line comprises main control chip, contactless chip, the first memory block and initialization module.Contactless chip in the present embodiment preferably adopts 3911 chips, this chip includes the first register, the second register, the 3rd register, the 4th register and the 5th register; The method comprises the following steps:
Step 101: read write line power-up initializing;
This step realizes especially by the initialization module of read write line.
Concrete in the present embodiment, the operating main body from step 102 is specially the main control chip of read write line.
Step 102: judging whether to send data by 3911 chips to card, is perform step 103, otherwise continue to perform step 102;
Step 103: control 3911 chips export unmodulated amplitude by the value of the first register being written as the first preset value, open field by the value of the 3rd register is written as the second preset value;
In the present embodiment, the first preset value is 0x00, and the first register is AM Modulation Depth Control Register, and the 3rd register is AS3911_REG_OP_CONTROL.The scope of the value of the second preset value is 0x 00-0x FF, and in the present embodiment, the second preset value is preferably taken as 0x50, by the second preset value write the 3rd register is opened field.
Step 104: judge modulation system according to default zone bit, if modulation system of tabling look-up then performs step 105, if automatic Modulation mode then performs step 119;
Step 105: open event triggered interrupts by the value of the 4th register is written as the 3rd preset value, initial value is set to counter;
In the present embodiment, the 4th register is AS3911_IRQ_MASK_DCT, and the value of the 3rd preset value is preferably 0x8000, and what this step was concrete opens event triggered interrupts by the 3rd preset value is write the 4th register.
Main control chip is preferably set in the present embodiment and mostly is 3 times most to the sending times that 3911 send order.The initial value of counter is set to 3 by preferred employing, carrys out stat commands sending times by the successively decreasing of count value of counter.In like manner, the initial value of counter can also be 0 or other numerical value, carrys out stat commands sending times by the increasing progressively of count value of counter.
Step 106: send the order of measurement amplitude to 3911 chips and control 3911 chips measurement current amplitude values, the value of refresh counter;
In the present embodiment, the measurement amplitude order that main control chip sends to 3911 chips is CMD_MEASURE_AMPLITUDE, and bid value is taken as 0x13, and the value of counter is preferably subtracted 1 by the value of described refresh counter.In like manner, when the initial value of counter is 0, the value of described refresh counter is specially and the value of counter is added 1.
In the present embodiment, depth of modulation=(a-b)/(a+b), wherein, a and b represents unmodulated amplitude and brewed amplitude respectively, and the current amplitude that in this step, 3911 chips measure is unmodulated amplitude.
Step 107: receive the response byte that 3911 chips return, by removing the value close event triggered interrupts of the 4th register;
Concrete in the present embodiment, the response byte that 3911 chips that main control chip receives return is the status word of 2 bytes, such as 0,x00 00 or 0x 90 00.
Step 108: judge whether order runs succeeded, and is perform step 110 according to described response byte, otherwise perform step 109;
Concrete, main control chip judges whether described response byte is default byte, is, represents that main control chip successfully controls 3911 chips and measures current amplitude and be written with in the 5th register by the current amplitude value Xi measured, and continues to perform step 110; Otherwise perform step 109.
Such as, the value presetting byte is 0,x90 00.The current amplitude value 0x6E measured is written to the 5th register by 3911 chips.
Step 109: judge whether the value of counter equals pre-set count values, is then by counter O reset, reports an error, exit, otherwise return execution step 106;
Preferably, described pre-set count values is 0.
Step 110: read current amplitude value Xi by the value reading the 5th register;
In the present embodiment, the 5th register is AS3911_REG_AD_RESULT, and the current amplitude value Xi that main control chip reads from this register is 0x6E.
Step 111: obtain the tables of data prestored, to the first variable set up initial value;
Concrete in the present embodiment, the tables of data that this step obtains to be a tables of data total length be 5 two column data tables, namely tables of data is made up of 5 row data, and every data line comprises one group of x and y value, x value in following tables of data arranges from small to large, shown in table specific as follows:
x y
0x66 0x71
0x9A 0x7D
0xBF 0x85
0xCC 0x8B
0xD3 0x8B
Described first variable is used in reference to the x value in tables of data, and such as the first variable index represents, its initial value is 1, then the x value in tables of data pointed by the first variable is 0x66.
Step 112: judging the x value in the tables of data whether Xi is greater than pointed by the first variable, is perform step 113, otherwise performs step 115;
Step 113: judge whether the first variable equals the total length of tables of data, is, performs step 116, otherwise perform step 114;
Concrete in the present embodiment, the total length of tables of data is 5, judges whether the first current variable equals 5.
Step 114: upgrade the first variable, return step 112;
Concrete in the present embodiment, by the first variable from adding 1.
Step 115: judge whether the first variable equals initial value, is, performs step 116, otherwise perform step 117;
Step 116: by y value write second register of going together with the x value in the tables of data pointed by the first variable, then performs step 118;
Concrete in the present embodiment, when the value of the first variable reaches the total length 5 of tables of data, the y value in last column of tables of data and 0x8B are write the second register.When the first variable is initial value 1,0x71 is write the second register.
In the present embodiment, the second register is AS3911_REG_RFO_AM_ON_LEVEL.
Step 117: obtain the x value in tables of data pointed by the first variable and y value x1 and y1 that go together with it represents, obtain the first variable and subtract the x value in tables of data pointed by 1 and y value x2 and y2 that go together with it represents, calculate according to y1+ ((y1-y2) * (Xi-x2))/(x1-x2), and result of calculation is write the second register, perform step 118;
Concrete in the present embodiment, Xi=0x6E, corresponding first variable is 2, the x1=0x9A got, y1=0x7D, x2=0x66, y2=0x71, be 0x72 according to the formula y1+ result of calculation that ((y1-y2) * (Xi-x2))/(x1-x2) carries out calculating, this result of calculation is write the second register.
Step 118: control 3911 chips and export brewed amplitude, and send data with this amplitude to card, then return step 102.
Step 119: open event triggered interrupts by the value of the 4th register is written as the 3rd preset value, initial value is set to counter;
In the present embodiment, the 4th register is AS3911_IRQ_MASK_DCT, and the value of the 3rd preset value is preferably 0x8000, and what this step was concrete opens event triggered interrupts by the 3rd preset value is write the 4th register.
Main control chip is preferably set in the present embodiment and mostly is 3 times most to the sending times that 3911 send order, preferably adopt and the initial value of counter is set to 3, carry out stat commands sending times by the successively decreasing of counting of counter.In like manner, the initial value of counter can also be 0 or other numerical value, carrys out stat commands sending times by the increasing progressively of counting of counter.
Step 120: send depth modulation order to 3911 chips and control 3911 chips execution automatic depth modulation, the value of refresh counter;
In the present embodiment, main control chip is CMD_CALIBRATE_MODULATION to the depth modulation order that 3911 chips send, and order value is 0x17.The value of counter is preferably subtracted 1 by the value of described refresh counter.In like manner, when the value initial value of counter is 0, the value of described refresh counter is specially and the value of counter is added 1.
Step 121: receive the response byte that 3911 chips return, by removing the value close event triggered interrupts of the 4th register;
Concrete in the present embodiment, the response byte that 3911 chips that main control chip receives return is the status word of 2 bytes, such as 0,x00 00 or 0,x90 00.
Step 122: judge whether order runs succeeded, and is perform step 124 according to described response byte, otherwise perform step 123;
Concrete, main control chip judges whether described response byte is default byte, is, represents that main control chip successfully controls 3911 chips and completes automatic depth modulation, performs step 124; Otherwise perform step 123.
Such as, the value presetting byte is 0,x90 00.
Step 123: judge whether the value of counter equals pre-set count values, is then by counter O reset, reports an error, exit, otherwise return execution step 120;
Preferably, described pre-set count values is 0.
Step 124: send data to card by 3911 chips, then returns and performs step 102;
Concrete in the present embodiment, main control chip, by sending depth modulation order to 3911 chips, can control 3911 chips and export brewed amplitude, thus improves the stability of read write line and card-to-card communication.
Embodiment 3
As shown in Figure 3, a kind of near-field communication depth of modulation self-reacting device that the present embodiment provides, comprising: main control chip 1, contactless chip 2 and the first memory block 3;
Described main control chip 1 comprises judge module 101, control module 102, searches module 103, acquisition module 104, writing module 105 and computing module 106;
Described control module 102 controls described contactless chip measurement current amplitude value for sending the order of measurement amplitude to described contactless chip 2, amplitude is exported according to the value of the first register 201, for controlling described contactless chip 2 according to the value output amplitude of the second register 202 and with this amplitude transmission data for controlling described contactless chip 2;
For judging to search, module 103 finds described judge module 101 with the immediate numerical value of current amplitude value whether is positioned at the border row of tables of data;
Described acquisition module 104 is for obtaining current amplitude value from contactless chip 2; For obtaining tables of data from the first memory block 3; For judge when judge module 101 described be positioned at the border row of tables of data with the immediate numerical value of current amplitude value time, obtain the colleague numerical value of described immediate numerical value in tables of data; For judge when judge module 101 described be not the border row being positioned at tables of data with the immediate numerical value of current amplitude value time, obtain and immediate two numerical value of described current amplitude value from tables of data, and obtain described immediate two numerical value colleague's numerical value separately;
With described current amplitude value immediate two numerical value of described computing module 106 for getting acquisition module 104 according to preset formula, described immediate two numerical value colleague's numerical value separately got, and these five numerical value of described current amplitude value carry out calculating result of calculation;
Described module 103 of searching for searching and the immediate numerical value of described current amplitude value in tables of data;
Said write module 105 is for being written as the first preset value by the value of the first register 201 on contactless chip 2; For when being positioned at the border row of tables of data with the immediate numerical value of described current amplitude value, the colleague numerical value of the described immediate numerical value got by acquisition module 104 in tables of data writes the second register 202; For when not being the border row being positioned at tables of data with the immediate numerical value of described current amplitude value, the result of calculation that computing module 106 computing obtains is write the second register 202;
Described contactless chip 2 comprises the first register 201 and the second register 202;
Described first register 201 is for depositing first preset value corresponding with unmodulated amplitude, and described second register 202 is for depositing and the numerical value corresponding to brewed amplitude;
First memory block 3, for data table memory;
Further, said apparatus also comprises initialization module 4, for carrying out initialization operation when device powers on to device.Whether above-mentioned judge module 101 can also be used for judgment means outwards will send data by described contactless chip 2.
Described contactless chip 2 also comprises the 3rd register 203, and said write module 105 is also for being written as the second preset value by the value of the 3rd register 203 on described contactless chip 2.
Described contactless chip 2 also comprises the 4th register 204, and said write module 105 is also for being written as the 3rd preset value by the value of the 4th register 204 on described contactless chip 2.
As shown in Figure 4, control module 102 in the present embodiment comprises transmitting element 1021, receiving element 1022 and clearing cell 1023, described transmitting element 1021 measures amplitude order for sending to contactless chip 2, the response byte that described receiving element 1022 returns for receiving described contactless chip 2, described clearing cell 1023, for when described receiving element 1022 receives described response byte, removes the value of the 4th register 204 on described contactless chip 2.
Described control module 102 also comprises the first judging unit 1024, and the described response byte for receiving according to described receiving element 1022 judges whether order runs succeeded.
Described control module 102 also comprises the first setting unit 1025, before sending order at described transmitting element 1021, initial value is set to counter, for the value of refresh counter after described transmitting element 1021 transmission order, described first judging unit 1024 is also for judging whether the value of counter equals pre-set count values, described clearing cell 1023 also for when described first judging unit 1024 judges that the value of described counter equals pre-set count values, by counter O reset.
Described contactless chip 2 also comprises the 5th register 205, the current amplitude value that described 5th register 205 measures for depositing described contactless chip 2; Described acquisition module 104 comprises reading unit, and described reading unit is used for reading described current amplitude value from described 5th register 205.
Further, described control module 102 also comprises the second setting unit 1026, and described judge module 101 comprises the second judging unit 1011, the 3rd judging unit 1012 and the 4th judging unit 1013 as shown in Figure 5.
Described second setting unit 1026 for give the first variable set up initial value, for judging that the first variable upgrades the first variable when being not equal to the total length of tables of data when the 3rd judging unit 1012;
Described second judging unit 1011 is for judging the x value in the tables of data whether described current amplitude value is greater than pointed by the first variable;
When the judged result of the second judging unit 1011 is and is, described 3rd judging unit 1012 is for judging whether the first variable equals the total length of tables of data;
When the judged result of the second judging unit 1011 is no, described 4th judging unit 1013 is for judging whether the first variable equals initial value;
Accordingly, y value write second register 202 of said write module 105 specifically for going together with the x value in the tables of data pointed by the first variable when the judged result of described 3rd judging unit 1012 and the 4th judging unit 1013 is for being, for writing second register 202 by described computing module 106 according to the result of calculation that preset formula calculates when the judged result of described 4th judging unit 1013 is no.
Preset formula described in the present embodiment is y1+ ((y1-y2) * (current amplitude value-x2))/(x1-x2), wherein, x1 represents number larger in immediate two numerical value compared with described current amplitude value, x2 represents number less in immediate two numerical value compared with described current amplitude value, y2 is colleague's numerical value of x2, and y1 is colleague's numerical value of x1.
In the present embodiment further, the modulation system of described judge module 101 also for performing according to default zone bit judgment means, described control module 102 also for when the modulation system judging to perform as table look-up modulation system time control described contactless chip 2 and measure current amplitude value, perform automatic depth modulation for controlling described contactless chip 2 when the modulation system judging to perform is automatic Modulation mode.
What adopt in the design of traditional read write line is fixing depth of modulation, in order to adapt to the impact of various extraneous factor in near-field communication, therefore higher requirement is also had to the antenna part circuit design of read write line, also degree of precision requirement is had selecting of circuit components, implementation provided by the invention is used to carry out the Automatic adjusument of depth of modulation, can overcome the impact of extraneous factor in near-field communication to a great extent, making so all can be comparatively simple in the antenna part circuit design of read write line and components and parts selection.
The above; be only the present invention's preferably embodiment, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in technical scope disclosed by the invention; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.

Claims (22)

1. near-field communication depth of modulation adaptive approach, is characterized in that, described method comprises:
Step S1: the value of the first register on contactless chip is written as the first preset value by the main control chip of device, described contactless chip exports amplitude according to the value of the first register;
Step S2: the main control chip of device sends to contactless chip measures amplitude order, and described contactless chip measures current amplitude value;
Step S3: the main control chip of device obtains current amplitude value from contactless chip;
Step S4: the main control chip of device obtains tables of data from the first memory block;
Step S5: the main control chip of device searches tables of data, judging whether be positioned at the border row of tables of data with the immediate numerical value of described current amplitude value in tables of data, is perform step S6, otherwise performs step S7;
Step S6: the main control chip of device obtains described and the go together numerical value of the immediate numerical value of described current amplitude value in tables of data, and this colleague's numerical value is written to the second register on contactless chip, then performs step S8;
Step S7: the main control chip of device obtains and immediate two numerical value of described current amplitude value from tables of data, and obtain these two numerical value colleague's numerical value separately, according to preset formula, get four numerical value and described current amplitude value are calculated, and the second register result of calculation is written on contactless chip, perform step S8;
Step S8: the contactless chip of device exports amplitude according to the value of the second register, and sends data with this amplitude.
2. the method for claim 1, is characterized in that: the main control chip that described step S1 also comprises device opens field by the value of the 3rd register is written as the second preset value.
3. the method for claim 1, is characterized in that: the main control chip that described step S2 also comprises device opens event triggered interrupts by the value of the 4th register is written as the 3rd preset value.
4. method as claimed in claim 3, it is characterized in that: the main control chip that described step S2 is specially device sends measurement amplitude order control contactless chip measurement current amplitude value to contactless chip, and receive the response byte that contactless chip returns, and by the value close event triggered interrupts of removing the 4th register.
5. method as claimed in claim 4, is characterized in that: according to described response byte, the main control chip that described step S2 also comprises device judges that whether measure amplitude order runs succeeded, and is perform step S3, otherwise reports an error, exit.
6. method as claimed in claim 4, it is characterized in that: the main control chip of described device to contactless chip send measure amplitude order before also comprise initial value be set to counter, the value of refresh counter is also comprised after sending the order of described measurement amplitude, when judging that the order of measurement amplitude also comprises the value judging described counter when performing unsuccessfully and whether equals pre-set count values, then by counter O reset, report an error, exit; Otherwise again send to contactless chip and measure amplitude order.
7. the method for claim 1, is characterized in that: the main control chip that described step S3 is specially device reads current amplitude value by the value reading the 5th register on contactless chip.
8. the method for claim 1, is characterized in that: described step S5 is specially to step S7:
Step a1: to the first variable set up initial value;
Step a2: judging the x value in the tables of data whether described current amplitude value is greater than pointed by the first variable, is perform step a3, otherwise performs step a5;
Step a3: judge whether the first variable equals the total length of tables of data, is, performs step a6, otherwise perform step a4;
Step a4: upgrade the first variable, then return step a2;
Step a5: judge whether the first variable equals described initial value, is, performs step a6, otherwise perform step a7;
Step a6: the y value of going together with the x value in the tables of data pointed by the first variable is write described second register, then performs step S8;
Step a7: the y value obtaining the x value in the tables of data pointed by the first variable and go together with it, represent with x1 and y1 respectively, the y value obtaining the x value in the tables of data that the first variable subtracts pointed by 1 and go together with it, represent with x2 and y2 respectively, calculate according to preset formula, and result of calculation is write the second register, then perform step S8.
9. method as claimed in claim 8, is characterized in that: described preset formula is y1+ ((y1-y2) * (current amplitude value-x2))/(x1-x2).
10. the method for claim 1, it is characterized in that: the main control chip also comprising device before described step S2 judges modulation system according to default zone bit, if table look-up, modulation system then performs step S2, if automatic Modulation mode then device main control chip control contactless chip perform automatic depth modulation.
11. the method for claim 1, is characterized in that: also comprise before described step S1,
Step s0: device power-up initializing;
Step s1: the main control chip of device judges whether outwards to send data by contactless chip, is perform step S1, otherwise continue to perform this step;
Accordingly, execute described step S8 after return perform step s1.
12. near-field communication depth of modulation self-reacting devices, is characterized in that: described device comprises main control chip, contactless chip and the first memory block;
Described main control chip comprises control module, judge module, acquisition module, computing module, searches module and writing module;
Described control module is used for sending the order of measurement amplitude to described contactless chip and controls described contactless chip measurement current amplitude value, amplitude is exported according to the value of the first register, for controlling described contactless chip according to the value output amplitude of the second register and with this amplitude transmission data for controlling described contactless chip;
Described judge module for search described in judging module searches to whether be positioned at the border row of tables of data with the immediate numerical value of current amplitude value;
Described acquisition module is used for obtaining current amplitude value from contactless chip; For obtaining tables of data from described first memory block; For when described judge module judgement is described and the immediate numerical value of current amplitude value is positioned at the border row of tables of data, obtain the colleague numerical value of described immediate numerical value in tables of data; For when described judge module judgement is described and the immediate numerical value of current amplitude value is not the border row being positioned at tables of data, obtains and immediate two numerical value of described current amplitude value from tables of data, and obtain these two numerical value colleague's numerical value separately;
Described computing module be used for getting described acquisition module according to preset formula with immediate two numerical value of described current amplitude value and these two numerical value numerical value of going together separately, and these five numerical value of described current amplitude value carry out calculating result of calculation;
Described module of searching for searching and the immediate numerical value of described current amplitude value in tables of data;
Said write module is for being written as the first preset value by the value of the first register on contactless chip; For when described judge module judgement is described and the immediate numerical value of current amplitude value is positioned at the border row of tables of data, the colleague numerical value of the described immediate numerical value got by described acquisition module in tables of data writes the second register; For when described judge module judgement is described and the immediate numerical value of current amplitude value is not the border row being positioned at tables of data, the result of calculation that described computing module calculates is write the second register;
Described contactless chip comprises the first register and the second register;
Described first register is for depositing first preset value corresponding with unmodulated amplitude, and described second register is for depositing and the numerical value corresponding to brewed amplitude;
Described first memory block, for data table memory.
13. devices as claimed in claim 12, it is characterized in that: described contactless chip also comprises the 3rd register, said write module is also for being written as the second preset value by the value of the 3rd register on described contactless chip.
14. devices as claimed in claim 12, it is characterized in that: described contactless chip also comprises the 4th register, said write module is also for being written as the 3rd preset value by the value of the 4th register on described contactless chip.
15. devices as claimed in claim 14, it is characterized in that: described control module comprises transmitting element, receiving element and clearing cell, described transmitting element is used for sending to contactless chip measuring amplitude order, the response byte that described receiving element returns for receiving described contactless chip, described clearing cell is used for when described receiving element receives described response byte, removes the value of the 4th register on described contactless chip.
16. devices as claimed in claim 15, is characterized in that: described control module also comprises the first judging unit, and the described response byte that described first judging unit is used for receiving according to described receiving element judges whether the order of measurement amplitude runs succeeded.
17. devices as claimed in claim 15, it is characterized in that: described control module also comprises the first setting unit, described first setting unit is used for arranging initial value to counter before described transmitting element sends the order of measurement amplitude, for the value of refresh counter after the order of described transmitting element transmission measurement amplitude, described first judging unit is also for judging whether the value of counter equals pre-set count values, described clearing cell also for when described first judging unit judges that the value of described counter equals pre-set count values, by counter O reset.
18. devices as claimed in claim 12, is characterized in that: described contactless chip also comprises the 5th register, the current amplitude value that described 5th register measures for depositing described contactless chip; Described acquisition module comprises reading unit, and described reading unit is used for from current amplitude value described in described 5th register read.
19. devices as claimed in claim 12, it is characterized in that: described control module comprises the second setting unit, described judge module comprises the second judging unit, the 3rd judging unit and the 4th judging unit, described second setting unit is used for the first variable set up initial value, for judging that the first variable upgrades the first variable when being not equal to the total length of tables of data when the 3rd judging unit; Described second judging unit is for judging the x value in the tables of data whether described current amplitude value is greater than pointed by the first variable; Described 3rd judging unit is used for judging whether the first variable equals the total length of tables of data when the judged result of described second judging unit is and is, described 4th judging unit is used for judging whether the first variable equals initial value when the judged result of described second judging unit is no;
Y value write second register of said write module specifically for going together with the x value in tables of data pointed by the first variable when the judged result of described 3rd judging unit and the 4th judging unit is for being, for writing second register by described computing module according to the result of calculation that preset formula calculates when the judged result of described 4th judging unit is no.
20. methods as claimed in claim 12, it is characterized in that: described preset formula is y1+ ((y1-y2) * (current amplitude value-x2))/(x1-x2), wherein, x1 represents the number larger in immediate two numerical value with described current amplitude value, x2 represents the number less in immediate two numerical value with described current amplitude value, y2 is colleague's numerical value of x2, and y1 is colleague's numerical value of x1.
21. methods as claimed in claim 12, it is characterized in that: the modulation system of described judge module also for performing according to default zone bit judgment means, described control module be used for when described judge module judge the modulation system that will perform as table look-up modulation system time control described contactless chip and measure current amplitude value, control described contactless chip execution automatic depth when the modulation system for judging to perform when described judge module is automatic Modulation mode and modulate.
22. methods as claimed in claim 12, it is characterized in that: described device also comprises initialization module, described initialization module is used for carrying out initialization operation when device powers on to device, and described judge module also outwards will send data by described contactless chip for judging whether.
CN201410512906.1A 2014-09-29 2014-09-29 Near-field communication modulation depth adaptive method and device Active CN104298152B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410512906.1A CN104298152B (en) 2014-09-29 2014-09-29 Near-field communication modulation depth adaptive method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410512906.1A CN104298152B (en) 2014-09-29 2014-09-29 Near-field communication modulation depth adaptive method and device

Publications (2)

Publication Number Publication Date
CN104298152A true CN104298152A (en) 2015-01-21
CN104298152B CN104298152B (en) 2017-01-25

Family

ID=52317931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410512906.1A Active CN104298152B (en) 2014-09-29 2014-09-29 Near-field communication modulation depth adaptive method and device

Country Status (1)

Country Link
CN (1) CN104298152B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104899623A (en) * 2015-05-29 2015-09-09 福建联迪商用设备有限公司 Method, system and device for controlling modulation depth of non-contact type card reader
CN108446576A (en) * 2018-01-17 2018-08-24 艾体威尔电子技术(北京)有限公司 A kind of method of end modification depth adaptive

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070026825A1 (en) * 2005-02-24 2007-02-01 Innovision Research & Technology Plc NFC device and apparatus
CN101753267A (en) * 2008-12-02 2010-06-23 索尼株式会社 Communication device, communication method, computer program and computer system
CN101909336A (en) * 2009-06-03 2010-12-08 卡西欧计算机株式会社 Use different communication modes to communicate the wireless communication system of handing-over
US20120134444A1 (en) * 2010-11-26 2012-05-31 Renesas Electronics Corporation Semiconductor Device Having First and Second Demodulation Circuits for Wireless Communication
US20130109304A1 (en) * 2011-10-26 2013-05-02 Qualcomm Incorporated Adaptive signal scaling in nfc transceivers
AT512804A2 (en) * 2012-05-15 2013-11-15 Stefan Ing Ponsold NFC card with low pressure profile

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070026825A1 (en) * 2005-02-24 2007-02-01 Innovision Research & Technology Plc NFC device and apparatus
CN101753267A (en) * 2008-12-02 2010-06-23 索尼株式会社 Communication device, communication method, computer program and computer system
CN101909336A (en) * 2009-06-03 2010-12-08 卡西欧计算机株式会社 Use different communication modes to communicate the wireless communication system of handing-over
US20120134444A1 (en) * 2010-11-26 2012-05-31 Renesas Electronics Corporation Semiconductor Device Having First and Second Demodulation Circuits for Wireless Communication
US20130109304A1 (en) * 2011-10-26 2013-05-02 Qualcomm Incorporated Adaptive signal scaling in nfc transceivers
AT512804A2 (en) * 2012-05-15 2013-11-15 Stefan Ing Ponsold NFC card with low pressure profile

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104899623A (en) * 2015-05-29 2015-09-09 福建联迪商用设备有限公司 Method, system and device for controlling modulation depth of non-contact type card reader
CN104899623B (en) * 2015-05-29 2017-09-29 福建联迪商用设备有限公司 A kind of method, system and the equipment of control Non-contact Media Reader modulation depth
CN108446576A (en) * 2018-01-17 2018-08-24 艾体威尔电子技术(北京)有限公司 A kind of method of end modification depth adaptive

Also Published As

Publication number Publication date
CN104298152B (en) 2017-01-25

Similar Documents

Publication Publication Date Title
CN104217768B (en) A kind of detection method and device of eMMC embedded memories
CN104142892B (en) A kind of data read-write method, apparatus and system
CN101454746A (en) Method for communication with a multi-function memory card
US9448926B2 (en) Bidirectional counter in a flash memory
WO2021217536A1 (en) Systems and methods for health evaluation of storage medium
CN103810521A (en) Digital baseband processor for passive RFID (radio frequency identification) electronic tag
CN104298152A (en) Near-field communication modulation depth adaptive method and device
KR101570374B1 (en) Dual interface near field communication tag apparatus, and method for sharing an information of payment using a dual interface near field communication tag
CN108717665A (en) Electronic device, major class fund asset configuration strategy analysis method and storage medium
CN103365815B (en) The SD memory card interface that under support SD pattern, IP realizes
CN103902298B (en) Method to set up and the device of status information write with a brush dipped in Chinese ink by a kind of instruction set firmware
TWI610246B (en) Radio frequency identification (rfid) based defect detection in ssds
CN108345429A (en) A kind of Nand flash elements
CN111798235A (en) Method and device for storing wind control information
CN114415947B (en) Dummy read control method, device and medium
CN103324295A (en) Method, device and system for realizing computer peripheral equipment wireless communication identity ID identifying code
CN107808685A (en) Program fail self-detection circuit and self-sensing method for non-contact card class chip
CN204706044U (en) Based on the Supermarket shopping guide system of RFID
CN109783395A (en) Memory pool access method, exchange chip, memory modules and electronic equipment
CN109885509B (en) Nonvolatile memory access method and device
CN101923631A (en) Low-frequency ID card real time simulator based on CPLD
CN203616760U (en) Non-contact IC tag issue device
CN103577774A (en) Non-contact IC tag issue device
CN208888809U (en) A kind of smart card electronic equipment of band storage
CN204833312U (en) Campus card convenient to carry

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