Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, represent
There may be three kinds of relations, for example, A and/or B, can be represented:Individualism A, while there is A and B, individualism B these three
Situation.In addition, character "/" herein, it is a kind of relation of "or" to typically represent forward-backward correlation object.
Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining " or " in response to detection ".Similarly, depending on linguistic context, phrase " if it is determined that " or " if detection
(condition or event of statement) " can be construed to " when it is determined that when " or " in response to determine " or " when the detection (condition of statement
Or event) when " or " in response to detection (condition or event of statement) ".
Fig. 1 is the flow chart of capacitance determining method embodiment one of the present invention, as shown in figure 1, provided in an embodiment of the present invention
The executive agent of capacitance determining method is capacitance detecting device, and the capacitance detecting device can be with NFC communication function
People's computer, personal digital assistant, radio hand-held equipment, tablet personal computer and mobile phone etc..It is provided with thereon for real with the present invention
Apply application program or software that the capacitance determining method that example provided is engaged.The capacitance determining method bag that then the present embodiment is provided
Include following steps.
Step 101, communicated according to capacitance detecting soft communication agreement with least one NFC smart card.
Step 102, detect whether the electric capacity of at least one NFC smart card is qualified according to capacitance detecting soft communication agreement.
Specifically, in the present embodiment, capacitance detecting software communication can be downloaded by the input interface of capacitance detecting device and assisted
View.The capacitance detecting soft communication agreement can be the form of program.Carry out defined in the capacitance detecting soft communication agreement
The principle and flow of at least one capacitance detecting.Capacitance detecting device can be completed by performing the capacitance detecting soft communication agreement
The whether qualified detection of the electric capacity of at least one NFC smart card.
Illustrated with reference to step 101- steps 102.Specifically, in the present embodiment, according to the capacitance detecting software communication
Agreement, makes capacitance detecting device while being communicated with least one NFC smart card.It is fixed in capacitance detecting soft communication agreement
The duration and opportunity, i.e. capacitance detecting device that justice is communicated are not one when being communicated with least one NFC smart card
Straight row communication is charged for NFC smart cards, but after communication a period of time, can be interrupted and be recovered communication after communication connection again
Connection, makes the existing charging process of the electric capacity in NFC smart cards have discharge process again, to realize the electric capacity to each NFC smart cards
Whether qualified detection.
In the present embodiment, when capacitance detecting device is communicated with least one NFC smart card, capacitance detecting device is to extremely
A few NFC smart card sends carrier signal, NFC smart cards is received the circuit module that carrier signal is whole NFC smart cards
It is powered, and corresponding capacitive sensing parameter is transferred to NFC smart cards.In capacitance detecting device and at least one NFC intelligence
It can block and interrupt after communication, the electric capacity in each NFC smart cards is discharged, to ensure that the voltage in NFC smart cards keeps stable
State.Interrupt after communication a period of time, capacitance detecting device sends carrier auxiliary communication to NFC smart cards again, in electric capacity inspection
Survey device to receive after the carrier signal sent from NFC smart cards, decoding demodulation is carried out to carrier signal, obtained from carrier signal
The corresponding parameter for carrying out capacitance detecting.And then judge correspondence according to the parameter of capacitance detecting is carried out in each NFC smart cards
NFC smart cards electric capacity it is whether qualified.
Step 103, the whether qualified testing result of the electric capacity of at least one NFC smart card is exported.
Specifically, in the present embodiment, the side of the testing result whether qualified to the electric capacity that exports at least one NFC smart card
Formula is not limited, and such as can be display screen, indicator lamp, voice or at least two modes being combined.
The capacitance determining method that the present embodiment is provided, according to capacitance detecting soft communication agreement and at least one NFC intelligence
Card is communicated;Detect whether the electric capacity of at least one NFC smart card is qualified according to capacitance detecting soft communication agreement;Output is extremely
Lack the whether qualified testing result of the electric capacity of a NFC smart card.Due to carrying out communication party using with least one NFC smart card
Whether formula is qualified come the electric capacity for detecting each NFC smart cards, so the mode for avoiding contact charging carries out the detection of electric capacity, letter
Operation is changed.And the electric capacity of multiple NFC smart cards can be detected simultaneously, be adapted to the application for producing detection in enormous quantities.
Fig. 2 is the flow chart of capacitance determining method embodiment two of the present invention, as shown in Fig. 2 the electric capacity that the present embodiment is provided
Detection method, is on the basis of capacitance determining method embodiment one of the present invention, to the further thin of step 101- steps 103
Change, then the capacitance determining method that the present embodiment is provided comprises the following steps.
Step 201, at least one NFC smart card foundation communication connection with searching.
It should be noted that in the present embodiment, step 201- steps 206 are to capacitance determining method embodiment one of the present invention
In step 101-102 further refinement.
In the present embodiment, before being detected at least one NFC smart card, NFC smart cards are placed on capacitance detecting
The vicinity of device, so that capacitance detecting device can search NFC smart cards, setting up NFC communication with it is connected.
Specifically, in the present embodiment, capacitance detecting device includes NFC module for reading and writing, and NFC module for reading and writing includes at least one
NFC read-write cells, each NFC read-write cells include:NFC antenna and NFC read-write control units.In the present embodiment, it can be opened into
NFC read-write control units control NFC antenna in a few NFC read-write cell, at least one NFC read-write cell works in read-write
Device pattern.The search of NFC smart cards is carried out, NFC smart cards corresponding with what is searched set up communication connection.
Step 202, write-in is carried at least one NFC smart card transmission first carrier signal, in first carrier signal quiet
The instruction of state variable, to write static variable at least one NFC smart card.
Specifically, in the present embodiment, first carrier signal, first are sent to corresponding NFC smart cards in each NFC antenna
Carrier signal is the carrier signal after coded modulation, and the instruction of write-in static variable is carried in first carrier signal, so that
NFC smart cards are received in first carrier signal, and decoding demodulation is carried out by the intelligent card control module in NFC smart cards, it is determined that
After instruction of the instruction for write-in static variable in first carrier signal, static variable is written in smart card memory module,
The static variable is stored.
Wherein, static variable is a constant, in the case of the circuit module normal work of NFC smart cards, the static state
The value of variable will not change.
Step 203, the communication connection with least one NFC smart card is interrupted until recovering and at least one after preset time period
The communication connection of individual NFC smart cards.
Specifically, in the present embodiment, the communication connection with least one NFC smart card is interrupted until preset time period, if
Electric capacity in NFC smart cards is qualified, then the circuit module in NFC smart cards is discharged, and makes the circuit module of NFC smart cards
Still in the state of normal work.The value for the static variable being written in smart card memory module will not change, if NFC smart cards
In electric capacity it is unqualified, it is impossible to the circuit module in NFC smart cards is discharged or discharge time is shorter, make NFC intelligence
The circuit module of card can not be in normal operating conditions in preset time period, after NFC smart cards are stopped, recover again
During communication, the static variable can be initialised, and the static variable for reading and writing can be inconsistent.In the present embodiment, recover with
After the communication connection of at least one NFC smart card, NFC smart cards are received after carrier signal, the NFC antenna mould in NFC smart cards
NFC antenna unit in block receives carrier signal, and electric energy capturing unit captures electric energy for whole NFC from the carrier signal of reception
The circuit structure of smart card is powered, if the electric capacity in NFC smart cards is qualified electric capacity, receives electric energy, is electric capacity charging.
Wherein, preset time period is calculated according to the capacitance of electric capacity.It ensure that the NFC intelligence in preset time period
Electric capacity in blocking can provide stable power supply for the circuit module in NFC smart cards.
Step 204, reading is carried at least one NFC smart card the second carrier signal of transmission, in the second carrier signal quiet
The instruction of state variable, so that at least one NFC smart card reads static variable.
Specifically, in the present embodiment, after the communication connection with least one NFC smart card is recovered, at least one NFC
Smart card sends the second carrier signal, and the second carrier signal is that device control module carries out the carrier signal after coded modulation,
The instruction for reading static variable is carried in second carrier signal, so that the NFC antenna module of NFC smart cards receives the second carrier wave
After signal, intelligent card control module carries out decoding demodulation to the second carrier signal, determines the instruction in the second carrier signal to read
Take after the instruction of static variable, static variable is read from memory module, and static variable coded modulation is believed to the 3rd carrier wave
In number, capacitance detecting device is sent to by NFC antenna module.
Step 205, receive the 3rd carrier signal of at least one NFC smart card transmission, carry in the 3rd carrier signal from
The static variable that NFC smart cards are read.
Specifically, the NFC antenna in capacitance detecting device is received after the 3rd carrier signal, by device control module to
Three carrier signals carry out decoding demodulation, obtain the static variable read from NFC smart cards carried in the 3rd carrier signal.
Step 206, judge to be written to the static variable of at least one NFC smart card and read from corresponding NFC smart cards
Static variable it is whether consistent, if so, then perform step 207, otherwise perform step 208.
Step 207, it is determined that the electric capacity of correspondence NFC smart cards is qualified.
Step 208, it is determined that the electric capacity of correspondence NFC smart cards is unqualified.
It should be noted that step 206- steps 208 are to the step 102 in capacitance determining method embodiment one of the present invention
Further refinement.
Further, illustrated with reference to step 206- steps 208.In the present embodiment, the device in capacitance detecting device
First device judging unit in control module judges to be written to the static variable of at least one NFC smart card and from corresponding
Whether the static variable that NFC smart cards are read is consistent, if being written to the static variable of NFC smart cards and intelligent from corresponding NFC
Block the static variable read consistent, then illustrate interrupting the communication connection with least one NFC smart card until preset time period
In, electric capacity in NFC smart cards can regular picture, and the time discharged meet the capacitance of electric capacity, can be in preset time
Guarantee to provide burning voltage for the circuit module in NFC smart cards in section, it is determined that the electric capacity of correspondence NFC smart cards is qualified.
If the static variable for being written to the static variable of NFC smart cards and being read from corresponding NFC smart cards is inconsistent, illustrate NFC
Electric capacity in smart card can not regular picture, or the time of electric discharge be unsatisfactory for the capacitance of electric capacity, it is impossible to ensure when default
Between provide burning voltage for the circuit module in NFC smart cards in section, it is determined that correspondingly the electric capacity of NFC smart cards is unqualified.
Step 209, the whether qualified testing result of the electric capacity of at least one NFC smart card is exported.
Further, in the present embodiment, it is by one or more mode output capacitances of display, indicator lamp and voice
No qualified testing result.
When specifically, by the whether qualified testing result of display output capacitance, electric capacity can be shown respectively by 0 and 1
Detect underproof result and qualified result., can be by red during by the whether qualified testing result of indicator lamp output capacitance
Lamp and green light represent the underproof result of capacitance detecting and qualified result respectively.Pass through the whether qualified inspection of voice output electric capacity
When surveying result, the whether qualified testing result of the output capacitance of loudspeaker broadcasting voice can be passed through.
During by the whether qualified testing result of any various ways output capacitance of display, indicator lamp and voice, together
When the output of the whether qualified testing result of electric capacity is carried out with the various ways that select.
The capacitance determining method that the present embodiment is provided, according to capacitance detecting soft communication agreement, with search at least one
Individual NFC smart cards set up communication connection, send in first carrier signal, first carrier signal and take at least one NFC smart card
Instruction with write-in static variable, so that at least one NFC smart card writes static variable, is interrupted and at least one NFC intelligence
The communication connection of card is until recovering the communication connection with least one NFC smart card after preset time period, at least one NFC intelligence
The instruction for sending and being carried in the second carrier signal, the second carrier signal and reading static variable can be blocked, so that at least one NFC is intelligent
Card reads static variable, receives the 3rd carrier signal of at least one NFC smart card transmission, carry in the 3rd carrier signal from
The static variable that NFC smart cards are read, judges to be written to the static variable of at least one NFC smart card and from corresponding NFC intelligence
The static variable read can be blocked whether consistent, if, it is determined that the electric capacity of correspondence NFC smart cards is qualified, otherwise determines correspondence NFC
The electric capacity of smart card is unqualified, exports the whether qualified testing result of the electric capacity of at least one NFC smart card.It can not only simplify
Operation, can be detected to the electric capacity of multiple NFC smart cards simultaneously, be adapted to the application for producing detection in enormous quantities, and can be right
The whether qualified carry out effective detection of electric capacity, improves the accuracy of detection.
Fig. 3 is the flow chart of capacitance determining method embodiment three of the present invention, and the capacitance determining method that the present embodiment is provided is
On the basis of capacitance determining method embodiment two of the present invention, it further comprises and capacitance detecting process is judged during capacitance detecting
Whether abnormal step is occurred, and user carries out the step of capacitance detecting number is selected by user input interface.Then
The capacitance determining method that the present embodiment is provided comprises the following steps.
Step 301, receive being communicated with least one NFC smart card of being selected by user input interface of user to
A few NFC reading unit.
Specifically, in the present embodiment, user input interface includes:Button, button or virtual key, selection wheel disc or other
Input interface available for operational control.The user input interface includes user's selecting switch, receives user and is selected by user
At least one NFC reading unit communicated with least one NFC smart card of selection is switched, by NFC reading units
Selection realize selection to capacitance detecting number.
Step 302, the enabled instruction that user is switched by user input interface power switch and capacitance detecting is received, is started
Capacitance detecting.
In the present embodiment, user input interface also includes:Power switch and capacitance detecting starting switch.Pass through power switch
Startup power supply module, is that capacitance detecting device is powered.By capacitance detecting starting switch start-up capacitance detection means, electric capacity is performed
Detection method, carries out capacitance detecting.
Step 303, at least one the NFC smart card for judging whether and searching is successfully established communication connection, if so, then holding
Row step 304, otherwise performs step 313.
Step 304, write-in is carried at least one NFC smart card transmission first carrier signal, in first carrier signal quiet
The instruction of state variable, to write static variable at least one NFC smart card.
Further, in the present embodiment, completed in the NFC antenna of at least one NFC reading unit at least one NFC intelligence
After the search that can block, set up and communicate to connect with corresponding NFC smart cards, at least one NFC intelligence for judging whether and searching
Card is successfully established communication connection, if so, then being sent at least one NFC smart card in first carrier signal, first carrier signal
The instruction of write-in static variable is carried, to write static variable at least one NFC smart card, otherwise, output capacitance detection
Abnormal operation.
Step 305, judge whether NFC smart cards write-in static variable succeeds, if so, then performing step 306, otherwise perform
Step 313.
Step 306, the communication connection with least one NFC smart card is interrupted until recovering and at least one after preset time period
The communication connection of individual NFC smart cards.
Further, in the present embodiment, can be in a storage module by the intelligent card control module judgement of NFC smart cards
The no static variable that there is write-in, and send the mode of write-in static variable success or failure message to sentence to capacitance detecting device
Whether disconnected NFC smart cards write-in static variable succeeds, however, it is determined that the write-in static variable success of NFC smart cards, then interrupt with least
The communication connection of one NFC smart card is until recovering the communication connection with least one NFC smart card after preset time period, otherwise
The abnormal operation of output capacitance detection.
Wherein, the write-in static variable success message sent to capacitance detecting device can be by the way of carrying zero in message
Carry out, the write-in static variable failed message sent to capacitance detecting device can be entered by the way of non-zero is carried in the message
OK.
Step 307, reading is carried at least one NFC smart card the second carrier signal of transmission, in the second carrier signal quiet
The instruction of state variable, so that at least one NFC smart card reads static variable.
Step 308, the 3rd carrier signal of at least one NFC smart card transmission is received, judges quiet from the reading of NFC smart cards
Whether state variable succeeds, if so, then performing step 309, otherwise performs step 313
Further, the 3rd carrier signal of at least one NFC smart card transmission is received, device control module is carried to the 3rd
Ripple signal carries out decoding demodulation, if carrying the static variable read from NFC smart cards in the 3rd carrier signal, illustrates from NFC
Smart card reads whether static variable succeeds, and judges to be written to the static variable of at least one NFC smart card and from corresponding NFC
Whether the static variable that smart card is read is consistent.Otherwise, the abnormal operation of output capacitance detection.
Step 309, judge to be written to the static variable of at least one NFC smart card and read from corresponding NFC smart cards
Static variable it is whether consistent, if so, then perform step 310, otherwise perform step 311.
It should be noted that step 303, step 305 and step 308 are that to judge whether capacitance detecting process occurs abnormal
Step, if abnormal, the abnormal operation of output capacitance detection occurs in capacitance detecting process, otherwise output capacitance detection is normal
Working condition.
Step 310, it is determined that the electric capacity of correspondence NFC smart cards is qualified.
Step 311, it is determined that the electric capacity of correspondence NFC smart cards is unqualified.
In the present embodiment, in the implementation of step 309- steps 311 and capacitance determining method embodiment two of the present invention
The implementation of step 206- steps 208 is identical, and this is no longer going to repeat them.
Step 312, whether the normal operating conditions of output capacitance detection and the electric capacity of at least one NFC smart card are qualified
Testing result.
Step 313, the abnormal operation of output capacitance detection.
Further, in the present embodiment, it is by one or more mode output capacitances of display, indicator lamp and voice
The normal or abnormal operation of no qualified testing result and capacitance detecting.
Specifically, in the present embodiment, using the whether qualified testing result of display output capacitance and capacitance detecting just
Often or abnormal operation be specially:If capacitance detecting process is normal, directly show that electric capacity is underproof respectively by 0 and 1
Testing result and the qualified testing result of electric capacity.If there is abnormal, display " fall ", to represent capacitance detecting in capacitance detecting
Abnormal operation.Using the normal or abnormal work shape of the whether qualified testing result of indicator lamp output capacitance and capacitance detecting
State is specially:Can be using one or two indicator lamp come the normal of the whether qualified testing result of output capacitance and capacitance detecting
Or abnormal operation, during using an indicator lamp, if exception occurs in capacitance detecting, use is reminded in the way of blinking red lamp
Family, does not flash, and represent the underproof testing result of electric capacity respectively and qualified by red light and green light if capacitance detecting is normal
Testing result;During using two indicator lamps, then an indicator lamp represents the work of capacitance detecting by red light and green light respectively
State, another indicator lamp represents the underproof testing result of electric capacity and qualified testing result respectively by red light and green light.
Using speech pattern, the working condition of user's capacitance detecting and the detection knot of electric capacity are pointed out by way of loudspeaker plays voice
Really.
The capacitance determining method that the present embodiment is provided, by receiving that user selected by user input interface and at least one
At least one NFC reading unit that individual NFC smart cards are communicated, can independently be selected the detection number of NFC smart cards
Select, by judging that at least one NFC smart card with searching sets up whether communication connection succeeds, and judge NFC smart cards
Whether write-in static variable succeeds, and judges to read whether static variable succeeds from NFC smart cards, if unsuccessful, exports
The normal operating conditions of the abnormal operation of capacitance detecting, otherwise output capacitance detection, can occur abnormal in capacitance detecting
When, to user to point out, and then capacitance detecting device can be safeguarded in time.
Fig. 4 is the flow chart of capacitance determining method example IV of the present invention, as shown in figure 4, the executive agent of the present embodiment
For NFC smart cards, then the capacitance determining method that the present embodiment is provided comprises the following steps.
Step 401, storage read-write communication protocol and the capacitive sensing parameter of write-in.
Specifically, in the present embodiment, read-write communication protocol can be stored in the form of program, the read-write communication protocol
Defined in the principle and flow that are written and read.In device memory module in the read-write communication protocol and capacitance detecting device
Capacitance detecting soft communication agreement is corresponding.
Step 402, communicated according to read-write communication protocol control NFC antenna module with capacitance detecting device.
Specifically, in the present embodiment, by performing the read-write communication protocol, NFC antenna module and capacitance detecting be can control
Device is communicated, and with capacitance detecting device progress communication process, the read-write of the parameter of capacitance detecting being completed, by electric capacity
Detection parameter stored, and the parameter to capacitance detecting transmission so that ginseng of the capacitance detecting device according to capacitance detecting
It is several whether qualified to electric capacity to detect.
The capacitance determining method that the present embodiment is provided, by the capacitive sensing parameter for storing read-write communication protocol and write-in;
Communicated according to read-write communication protocol control NFC antenna module with capacitance detecting device.Due to being carried out using with NFC smart cards
Whether communication mode is qualified come the electric capacity for detecting each NFC smart cards, so the mode for avoiding contact charging carries out electric capacity
Detection, simplifies operation.And the electric capacity of multiple NFC smart cards can be detected simultaneously, be adapted to produce detection in enormous quantities
Using.
Fig. 5 is the flow chart of capacitance determining method embodiment five of the present invention, as shown in figure 5, the electric capacity that the present embodiment is provided
Detection method is on the basis of capacitance determining method example IV of the present invention, the further refinement to step 102, then the present embodiment
The capacitance determining method of offer comprises the following steps.
Step 501, storage read-write communication protocol.
In the present embodiment, the implementation of step 501 and the step 401 in capacitance determining method example IV of the present invention
Implementation is identical, and this is no longer going to repeat them.
Step 502, the communication connection with capacitance detecting device is set up.
It should be noted that in the present embodiment, step 502- steps 508 are to capacitance determining method example IV of the present invention
In step 402 further refinement.
Step 503, the first carrier signal that capacitance detecting device is sent is received, electric energy is captured from first carrier signal,
To be powered to NFC smart cards.
Further, in the present embodiment, after foundation is connected with the NFC communication of capacitance detecting device, capacitance detecting dress is received
The carrier signal that NFC antenna in a certain NFC read-write cells put is sent, receives first carrier signal, NFC antenna module first
Electric energy capturing unit by first carrier signal capture electric energy, be that each circuit module of NFC smart cards is powered, if NFC intelligence
The electric capacity that can block is qualified electric capacity, in each circuit module power supply process to NFC smart cards, it is ensured that at each circuit module
In the state of normal work.
Step 504, decoding demodulation is carried out to first carrier signal, become according to the write-in static state carried in first carrier signal
The instruction of amount, smart card memory module is written to by static variable.
Further, in the present embodiment, first carrier signal is carries out the signal of coded modulation, in the first carrier signal
In carry write-in static variable instruction, so the intelligent card control module of NFC smart cards is solved to first carrier signal
Code demodulation, obtains control instruction, if control instruction is the instruction of write-in static variable, static variable is written into storage mould
Block, is stored to static variable.
Step 505, interrupt and communicate to connect with capacitance detecting device, then electric capacity is put in the preset time period of interruption
Electricity, until recovering to recover to communicate to connect with capacitance detecting device.
Further, in the present embodiment, if monitoring, capacitance detecting device does not retransmit first carrier signal, illustrate with
Capacitance detecting device has interrupted communication connection, in order to ensure the normal work of NFC smart cards, if the electric capacity in NFC smart cards is
Qualified electric capacity, then electric capacity is discharged to ensure as the stable confession of circuit module in the preset time period for interrupting communication connection
Electricity.If monitoring, capacitance detecting device recovers communication connection, again by circuit module of the electric energy capturing unit for NFC smart cards
It is powered.
Wherein, preset time period is to be calculated by the capacitance of electric capacity.
Step 506, the second carrier signal that capacitance detecting device is sent is received, electric energy is captured from the second carrier signal,
To be powered to NFC smart cards.
Step 507, decoding demodulation is carried out to the second carrier signal, become according to the reading static state carried in the second carrier signal
The instruction of amount, reads static variable from smart card memory module.
Step 508, the static variable of reading is carried in the 3rd carrier signal, coding tune is carried out to the 3rd carrier signal
System, is sent to capacitance detecting device.
Further, illustrated with reference to step 506- steps 508.In the present embodiment, recover and electric capacity in NFC smart cards
After the communication connection of detection means, the second carrier signal of capacitance detecting device transmission is received, the second carrier signal is coding
Signal after modulation, the intelligent card control module of NFC smart cards is carried out after decoding demodulation to second carrier signal, obtains second
Control instruction in carrier signal, however, it is determined that control instruction then reads static state to read static variable instruction from memory module
Variable, and the static variable of reading is carried in the 3rd carrier signal, coded modulation is carried out to the 3rd carrier signal, is sent to
The corresponding NFC antenna of the corresponding NFC reading units of capacitance detecting device, so that the device control module in capacitance detecting device will
The static variable for being written to the static variable of at least one NFC smart card and being read from corresponding NFC smart cards is contrasted, and is sentenced
Whether the disconnected static variable for being written to NFC smart cards is consistent with the static variable read from corresponding NFC smart cards to be detected pair
Answer the electric capacity of NFC smart cards whether qualified.
The capacitance determining method that the present embodiment is provided, by storing read-write communication protocol, sets up and capacitance detecting device
Communication connection, receives the first carrier signal that capacitance detecting device is sent, electric energy is captured from first carrier signal, with to NFC
Smart card is powered, and decoding demodulation is carried out to first carrier signal, according to the write-in static variable carried in first carrier signal
Instruction, smart card memory module is written to by static variable, is interrupted and is communicated to connect with capacitance detecting device, then in the default of interruption
Electric capacity is discharged in period, until recovering to communicate to connect with capacitance detecting device, receives capacitance detecting device is sent the
Two-carrier signal, electric energy is captured from the second carrier signal, to be powered to NFC smart cards, and the second carrier signal is decoded
Demodulation, according to the instruction of the reading static variable carried in the second carrier signal, reads static become from smart card memory module
Amount, the static variable of reading is carried in the 3rd carrier signal, is carried out coded modulation to the 3rd carrier signal, is sent to electric capacity
Detection means, can not only simplify operation, the electric capacity of multiple NFC smart cards can be detected simultaneously, be adapted to produce in enormous quantities
The application of detection, and the accuracy of detection can be improved to the whether qualified carry out effective detection of electric capacity.
Fig. 6 is the flow chart of capacitance determining method embodiment six of the present invention, as shown in fig. 6, the electric capacity that the present embodiment is provided
Detection method, on the basis of capacitance determining method embodiment five of the present invention, further comprises to whether write-in static variable succeeds
The step of being judged, the then capacitance determining method that the present embodiment is provided comprises the following steps.
Step 601, storage read-write communication protocol.
Step 602, the communication connection with capacitance detecting device is set up.
Step 603, the first carrier signal that capacitance detecting device is sent is received, electric energy is captured from first carrier signal,
To be powered to NFC smart cards.
Step 604, decoding demodulation is carried out to first carrier signal, become according to the write-in static state carried in first carrier signal
The instruction of amount, memory module is written to by static variable.
In the present embodiment, in the implementation of step 601- steps 604 and capacitance determining method embodiment one of the present invention
The implementation of step 501- steps 504 is identical, and this is no longer going to repeat them.
Step 605, judge whether write-in static variable succeeds, if so, then performing step 606, otherwise perform step 607.
Step 606, the write-in successful message of static variable is sent to capacitance detecting device.
Step 608 is performed after execution of step 606.
Step 607, write-in static variable failure is sent to capacitance detecting device.
Terminate after execution of step 607.
Further, in the present embodiment, judge whether write-in static variable succeeds, however, it is determined that write-in static variable success,
Then the write-in successful message of static variable is sent to capacitance detecting device;If it is determined that write-in static variable failure, then examine to electric capacity
Survey device and send write-in static variable failure, so that capacitance detecting device fails according to the write-in static variable received
Message or write-in the successful message of static variable after, the working condition to capacitance detecting judges.
Step 608, interrupt and communicate to connect with capacitance detecting device, in the preset time period of interruption, electric capacity is discharged,
Until recovering to communicate to connect with capacitance detecting device.
Step 609, the second carrier signal that capacitance detecting device is sent is received, electric energy is captured from the second carrier signal,
To be powered to NFC smart cards.
Step 610, decoding demodulation is carried out to the second carrier signal, become according to the reading static state carried in the second carrier signal
The instruction of amount, reads static variable from memory module.
Step 611, the static variable of reading is carried in the 3rd carrier signal, coding tune is carried out to the 3rd carrier signal
System, is sent to capacitance detecting device.
In the present embodiment, in the implementation of step 609- steps 611 and capacitance determining method embodiment five of the present invention
The implementation of step 505- steps 508 is identical, and this is no longer going to repeat them.
The capacitance determining method that the present embodiment is provided, by judging whether write-in static variable succeeds, if so, then to electric capacity
Detection means sends the write-in successful message of static variable.Otherwise disappearing for write-in static variable failure is sent to capacitance detecting device
Breath.Capacitance detecting device can be made to judge the working condition of capacitance detecting according to the message of write-in static variable success or failure,
And to user to point out, and then capacitance detecting device can be safeguarded in time when capacitance detecting occurs abnormal.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to
The related hardware of programmed instruction is crossed to complete.Foregoing program can be stored in a read/write memory medium.The program is being held
During row, the step of execution includes above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or CD
Etc. it is various can be with the medium of store program codes.
Fig. 7 is the structural representation of capacitance detecting device embodiment one of the present invention, as shown in fig. 7, what the present embodiment was provided
Capacitance detecting device includes:Device control module 71, and the NFC module for reading and writing 72 being connected with device control module 71, and output
Module 73.
Wherein, NFC module for reading and writing 72, for intelligently being sticked into at least one NFC according to capacitance detecting soft communication agreement
Row communication.Device control module 71, for controlling NFC module for reading and writing and at least one according to capacitance detecting soft communication agreement
NFC smart cards are communicated and detect whether the electric capacity of at least one NFC smart card is qualified.Output module 73, for exporting extremely
Lack the whether qualified testing result of the electric capacity of a NFC smart card.
Specifically, in the present embodiment, NFC module for reading and writing 72 and device control module 71 could be arranged to two independent electricity
Road module it can also be provided that the single circuit module of common sparing circuit, its can only with integrated circuit implementation,
It can also be combined using integrated circuit and discrete device and implementation that integrated circuit and single-chip microcomputer are combined is constructed
The function of whole circuit.Output module 73 can include display, indicator lamp, loudspeaker etc..
The capacitance detecting device that the present embodiment is provided can perform the technical scheme of embodiment of the method shown in Fig. 1, and it is realized
Principle is similar with technique effect, and here is omitted.
Fig. 8 is the structural representation of capacitance detecting device embodiment two of the present invention, as shown in figure 8, what the present embodiment was provided
Capacitance detecting device is on the basis of capacitance detecting device embodiment one of the present invention, in addition to input module 81 and power module
82。
Further, power module 82 respectively with input module 81, NFC module for reading and writing 72, device control module 71 and defeated
Go out module 73 to electrically connect.
Wherein, power module 82 is used for input module 81, NFC module for reading and writing 72, device control module 71 and output mould
Block 73 is powered.
Further, NFC module for reading and writing 72 includes:At least one NFC read-write cell 721, each NFC read-write cells 721
Including:NFC antenna 721a and NFC read-write control unit 721b, NFC antenna 721a and NFC read-write control unit 721b are electrically connected.
Wherein, two NFC read-write cells 721 are only illustrated in fig. 8.
Wherein, NFC antenna 721a is used for:Under NFC read-write control units 721b control, with search at least one
NFC smart cards set up communication connection, send in first carrier signal, first carrier signal and carry at least one NFC smart card
The instruction of static variable is write, to write static variable at least one NFC smart card;Interrupt and at least one NFC smart card
Communication connection until recovering and the communication connection of at least one NFC smart card after preset time period;To at least one NFC intelligence
Card sends the instruction for being carried in the second carrier signal, the second carrier signal and reading static variable, so that at least one NFC smart card
Read static variable;Receive and carried in the 3rd carrier signal of at least one NFC smart card transmission, the 3rd carrier signal from NFC
The static variable that smart card is read.NFC read-write control unit 721b, for controlling NFC antenna to be carried out with corresponding NFC smart cards
Communication.
Further, device control module 71, including:Device control units 711, device memory cell 712 and first is filled
Put judging unit 713.
Device control units 711 is electrically connected with device memory cell 712 and first device judging unit 713.
Wherein, device control units 711 is used for:The capacitance detecting soft communication agreement that input module 81 is inputted is received, and
By capacitance detecting soft communication agreement deposit device memory cell 712, and NFC is controlled to read according to capacitance detecting soft communication agreement
Writing module 72 is communicated with least one NFC smart card.Device memory cell 712, for the communication of storage capacitance inspection software
Agreement.First device judging unit 713, for judging to be written to the static variable of at least one NFC smart card and from corresponding
Whether the static variable that NFC smart cards are read is consistent;If being written to the static variable of NFC smart cards and intelligent from corresponding NFC
Block the static variable read consistent, it is determined that the electric capacity of correspondence NFC smart cards is qualified;If being written to the static change of NFC smart cards
Amount and the static variable read from corresponding NFC smart cards are inconsistent, it is determined that the electric capacity of correspondence NFC smart cards is unqualified.
Further, input module 81 includes:Capacitance detecting soft communication agreement interface 811 and user input interface 812.
The user input interface 812 includes user's selecting switch 812a.
Wherein, capacitance detecting soft communication agreement interface 811 is used for:Input capacitance inspection software communication protocol.User selects
Selecting switch 812a is used for:Receive being communicated with least one NFC smart card of being selected by user input interface of user to
A few NFC reading unit 721.
Further, user input interface 812 also includes:Power switch 812b and capacitance detecting starting switch 812c.
Wherein, power switch 812b is electrically connected with power module 81, and capacitance detecting starting switch 812c controls mould with device
Block 71 is electrically connected.
Power switch 812b is used for:Startup power supply module 81, so that power module 81 reads and writes mould to input module 81, NFC
Block 72, device control module 71 and output module 73 are powered.Capacitance detecting starting switch 812c is used for:Start-up capacitance detection dress
Put.
Further, device control module 71 also includes:Second device judging unit 714.
Wherein, second device judging unit 714 is used for:Judge whether capacitance detecting process exception occurs.Correspondingly, export
Module 74, is additionally operable to the normal or abnormal operation of output capacitance detection.
Further, second device judging unit 714 specifically for:At least one the NFC smart card for judging and searching
Set up whether communication connection succeeds;And judge whether NFC smart cards write-in static variable succeeds;And judge from NFC intelligence
Card reads whether static variable succeeds.
Further, output module can include display, indicator lamp, loudspeaker any one or more.
The capacitance detecting device that the present embodiment is provided can perform the technical scheme of embodiment of the method shown in Fig. 2 and Fig. 3, its
Implementing principle and technical effect are similar, and here is omitted.
Fig. 9 is the structural representation of NFC smartcard embodiments one of the present invention, as shown in figure 9, the NFC that the present embodiment is provided
Smart card includes:Intelligent card control module 91, and the memory module 92 and NFC antenna module being connected with intelligent card control module 91
93。
Wherein, memory module 92 is used for:Storage read-write communication protocol and the capacitive sensing parameter of write-in.NFC antenna module
93 are used for:Communicated with capacitance detecting device.Intelligent card control module 91 is used for:Controlled NFC days according to read-write communication protocol
Wire module is communicated with capacitance detecting device.
Specifically, in the present embodiment, NFC antenna module 93 and intelligent card control module 91 could be arranged to independent two
Circuit module it can also be provided that the single circuit module of common sparing circuit, its can only with integrated circuit realization side
Formula, it would however also be possible to employ the implementation that integrated circuit and discrete device are combined and integrated circuit and single-chip microcomputer are combined carrys out structure
Make the function of whole circuit.Memory module 92 can use EEPROM, EPROM, FLASH, ferroelectric memory or phase transition storage
Realized Deng nonvolatile semiconductor memory member, it would however also be possible to employ the volatile storage such as one or more registers, buffer and RAM
The combination of device and at least one nonvolatile memory of the above is realized.
The NFC smart cards that the present embodiment is provided can perform the technical scheme of embodiment of the method shown in Fig. 4, its realization principle
Similar with technique effect, here is omitted.
Figure 10 is the structural representation of NFC smartcard embodiments two of the present invention, as shown in Figure 10, what the present embodiment was provided
NFC smart cards are on the basis of NFC smartcard embodiments one of the present invention, in addition to following characteristics.
Further, NFC antenna module 93 includes:Electric energy capturing unit 931 and NFC antenna unit 932.Intelligent card control
Module 91 includes:Intelligent card control units 911.
NFC antenna unit 932 is used for:Set up the communication connection with capacitance detecting device;Capacitance detecting device is received to send
First carrier signal.Electric energy capturing unit 931 is used for:Electric energy is captured in the first carrier signal received from NFC antenna unit,
To be powered to NFC smart cards.Intelligent card control units 911 are used for:Decoding demodulation is carried out to first carrier signal, carried according to first
The instruction of the write-in static variable carried in ripple signal, memory module 92 is written to by static variable.NFC antenna unit 932 is also
For:Receive the second carrier signal that capacitance detecting device is sent.Electric energy capturing unit 931 is additionally operable to:Connect from NFC antenna unit
Electric energy is captured in the second carrier signal received, to be powered to NFC smart cards.Intelligent card control units 911 are additionally operable to:Carried to second
Ripple signal carries out decoding demodulation, according to the instruction of the reading static variable carried in the second carrier signal, from memory module 92
Read static variable;The static variable of reading is carried in the 3rd carrier signal, coded modulation is carried out to the 3rd carrier signal.
NFC antenna unit 932 is additionally operable to:The 3rd carrier signal after coded modulation is sent to capacitance detecting device.
Further, intelligent card control module 91 also includes:Smart card judging unit 912.
Wherein, smart card judging unit 912 is used for:Judge whether write-in static variable succeeds.NFC antenna unit 932 is also
For:If it is determined that write-in static variable success, then send the write-in successful message of static variable to capacitance detecting device;If it is determined that
Static variable failure is write, then sends write-in static variable failure to capacitance detecting device.
The NFC smart cards that the present embodiment is provided can perform the technical scheme of embodiment of the method shown in Fig. 5 and Fig. 6, in fact
Existing principle is similar with technique effect, and here is omitted.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent
The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to
The technical scheme described in foregoing embodiments can so be modified, or which part or all technical characteristic are entered
Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology
The scope of scheme.