CN113780017A - Near field communication triggering method and device, electronic equipment and storage medium - Google Patents
Near field communication triggering method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113780017A CN113780017A CN202111036685.1A CN202111036685A CN113780017A CN 113780017 A CN113780017 A CN 113780017A CN 202111036685 A CN202111036685 A CN 202111036685A CN 113780017 A CN113780017 A CN 113780017A
- Authority
- CN
- China
- Prior art keywords
- time
- near field
- field communication
- writing
- nfc
- 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
Links
- 238000004891 communication Methods 0.000 title claims abstract description 54
- 238000000034 method Methods 0.000 title claims abstract description 50
- 230000006698 induction Effects 0.000 claims abstract description 26
- 238000004590 computer program Methods 0.000 claims description 18
- 239000000126 substance Substances 0.000 claims description 3
- 230000035945 sensitivity Effects 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 230000001360 synchronised effect Effects 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 3
- 230000003068 static effect Effects 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000005672 electromagnetic field Effects 0.000 description 2
- 230000001976 improved effect Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000008093 supporting effect Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10009—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
- G06K7/10198—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves setting parameters for the interrogator, e.g. programming parameters and operating modes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10009—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
- G06K7/10118—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves the sensing being preceded by at least one preliminary step
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Abstract
The invention discloses a near field communication triggering method and device, electronic equipment and a storage medium. The method comprises the steps of acquiring a first induction moment when a near field communication label is induced; acquiring the write-in time of the near field communication tag for completing the write-in of data and a preset delay trigger time; judging whether the difference value between the first induction time and the writing time is greater than the delay triggering duration or not; and when the difference value between the first induction moment and the writing moment is larger than the delay trigger time length, acquiring and executing the instruction in the near field communication label. The scheme provided by the invention can reduce the sensitivity of the near field communication trigger and improve the safety of the near field communication trigger.
Description
Technical Field
The present invention relates to the field of near field communication sensing technologies, and in particular, to a near field communication triggering method and apparatus, an electronic device, and a storage medium.
Background
Near Field Communication (NFC) is an emerging technology, and devices (such as mobile phones) using NFC technology can exchange data in close proximity to each other. In practical application, the frequency of the NFC during operation is 13.56MHz (megahertz), the time of establishing the communication connection is less than 1 second, and the communication distance is less than 10 centimeters. Generally, when an NFC tag approaches an NFC sensing device, the NFC tag will be triggered, and false triggering occurs due to too high sensitivity. Especially for some NFC tags which can only be read once, after writing is completed, false triggering can be caused due to the fact that a mobile phone moves near the tags, and the use safety of the NFC tags is reduced.
Disclosure of Invention
In order to solve the technical problem of poor security caused by high NFC sensing sensitivity, embodiments of the present invention provide an NFC triggering method and apparatus, an electronic device, and a storage medium.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides an NFC triggering method, which comprises the following steps:
when an NFC label is induced, acquiring a first induction moment when the NFC label is induced;
acquiring the write-in time of the NFC label for completing the write-in of data and preset delay trigger time;
judging whether the difference value between the first induction time and the writing time is greater than the delay triggering duration or not;
and when the difference value between the first induction moment and the writing moment is larger than the delay trigger time length, acquiring and executing the instruction in the NFC label.
In the above scheme, the acquiring the write-in time when the NFC tag completes writing data and the preset delay trigger duration includes:
and reading the writing time of the data written in by the NFC label and the preset time delay triggering duration from the NFC label.
In the foregoing solution, before the near field communication tag is sensed, the method further includes:
and after the data writing operation on the NFC label is completed, storing the completion moment of the data writing operation on the NFC label, the identification information of the NFC label and the time delay triggering duration corresponding to the NFC label into the NFC label.
In the above scheme, the acquiring the write-in time when the NFC tag completes writing data and the preset delay trigger duration includes:
reading identification information of the NFC tag from the NFC tag;
acquiring a writing time corresponding to the identification information and a preset delay triggering time from a preset database according to the identification information; the preset database stores the corresponding relations between the identification information and the writing time and the delay triggering time respectively.
In the foregoing solution, before the near field communication tag is sensed, the method further includes:
and after the data writing operation on the NFC label is completed, correspondingly storing the completion moment of the data writing operation on the NFC label, the identification information of the NFC label and the delay triggering duration corresponding to the NFC label into the preset database.
In the above scheme, the acquiring the write-in time when the NFC tag completes writing data and the preset delay trigger duration includes:
reading identification information and a tag type of the NFC tag from the NFC tag;
acquiring a writing-in moment corresponding to the identification information from a preset database according to the identification information, and acquiring a delay triggering duration corresponding to the label type from the preset database according to the label type; the preset database stores the corresponding relation between the identification information and the writing time, and the preset database also stores the corresponding relation between the tag type and the delay triggering duration.
In the foregoing solution, after determining whether the difference between the first sensing time and the writing time is greater than the delay trigger time, the method further includes:
when the difference value between the first sensing time and the writing time is less than or equal to the delay trigger time length, reporting an error or prompting the remaining waiting time length; the remaining waiting time is a difference between the current time and a second sensing time, and the second sensing time is a time when the difference between the current time and the writing time is equal to the delay triggering time.
An embodiment of the present invention further provides an NFC trigger device, where the NFC trigger device includes:
the NFC tag sensing device comprises a sensing module, a detection module and a control module, wherein the sensing module is used for acquiring a first sensing moment when the NFC tag is sensed;
the acquisition module is used for acquiring the write-in time of the NFC tag for completing write-in of data and preset delay trigger time;
the judging module is used for judging whether the difference value between the first sensing time and the writing time is greater than the delay triggering time length or not;
and the execution module is used for acquiring and executing the instruction in the NFC label when the difference value between the first induction moment and the writing moment is greater than the delay trigger time length.
An embodiment of the present invention further provides an electronic device, including: a processor and a memory for storing a computer program capable of running on the processor; wherein the content of the first and second substances,
the processor is adapted to perform the steps of any of the methods described above when running the computer program.
The embodiment of the invention also provides a storage medium, wherein a computer program is stored in the storage medium, and when the computer program is executed by a processor, the steps of any one of the methods are realized.
According to the NFC triggering method, the NFC triggering device, the electronic equipment and the storage medium, when the NFC label is induced, the first induction time of the NFC label is obtained; acquiring the write-in time of the NFC label for completing the write-in of data and preset delay trigger time; judging whether the difference value between the first induction time and the writing time is greater than the delay triggering duration or not; and when the difference value between the first induction moment and the writing moment is larger than the delay trigger time length, acquiring and executing the instruction in the NFC label. By adopting the scheme provided by the invention, the sensitivity of NFC triggering can be reduced, and the safety of NFC triggering can be improved.
Drawings
Fig. 1 is a flowchart illustrating an NFC triggering method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an NFC trigger device according to an embodiment of the present invention;
fig. 3 is an internal structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
An embodiment of the present invention provides an NFC triggering method, as shown in fig. 1, where the method includes:
step 101: when an NFC label is induced, acquiring a first induction moment when the NFC label is induced;
step 102: acquiring the write-in time of the NFC label for completing the write-in of data and preset delay trigger time;
step 103: judging whether the difference value between the first induction time and the writing time is greater than the delay triggering duration or not;
step 104: and when the difference value between the first induction moment and the writing moment is larger than the delay trigger time length, acquiring and executing the instruction in the NFC label.
In particular, NFC (Near Field Communication, abbreviated as NFC) is a fast short-distance high-frequency wireless Communication technology that operates at a frequency of 13.56MHz (megahertz), and has a Communication connection establishment time of less than 1 second and a Communication distance generally limited to 10 centimeters.
The NFC label comprises an NFC coil and an NFC chip and can be communicated with the NFC induction equipment. The NFC coil is a coil which is formed by surrounding an NFC antenna into a circle or an ellipse or any other shape and is used for capturing electric energy from an electromagnetic field and carrying out transceiving communication with smaller data volume by demodulating or modulating the electromagnetic field. And the NFC chip is used for storing the chip of the circuit module of the information. The NFC sensing device may be an NFC reader, or may also be an electronic device supporting NFC communication, such as a mobile phone supporting NFC communication. When NFC equipment induction equipment is close to the NFC label, NFC induction equipment sends electromagnetic energy to the NFC label, and the NFC coil on the NFC label couples this electromagnetic energy and passes it to the NFC chip that links to each other with the NFC coil in, and the NFC chip passes through rectifier circuit and turns into the required power of circuits such as its inside microcontroller, modem and memory with this electromagnetic energy. When the circuits such as the microcontroller, the modem, and the memory start to operate after power-on, information stored in the NFC chip can be transmitted to the NFC inductive device through the NFC coil.
For example, the NFC tag may communicate with a portable communication device such as a mobile phone with an NFC function, so as to change an operating state of the device or open related software and settings. The NFC label is stored with data written in advance by a mobile phone (with an NFC function), when the mobile phone with the NFC function is close to the NFC label, the mobile phone senses the NFC label and effectively recognizes the NFC label, the working state of the mobile phone can be converted through mobile phone software, if navigation is automatically opened, the mobile phone automatically enters a meeting mode, automatically connects an appointed Wifi hotspot, automatically listens to music, automatically closes a Wifi signal, enters a flight mode and the like.
In practical application, after the NFC device writes data into the NFC tag, the NFC tag starts to operate. When the NFC tag written with data is within the sensing range of the NFC device, the NFC device may generate a false trigger instruction when moving randomly, thereby causing a false trigger. Therefore, for some effective NFC tags which are used for one time, due to the fact that false triggering occurs, the NFC tags need to be reset, and user experience is reduced.
Therefore, the embodiment provides an NFC triggering method, which can reduce the sensitivity of NFC triggering, improve the security of NFC triggering, and improve the user experience.
Specifically, this embodiment may be applied to the NFC device, and when the NFC device senses the NFC tag, the first sensing time at which the NFC tag is sensed is acquired. Here, the first sensing timing is accurate to seconds or milliseconds, etc.
Further, in an embodiment, the acquiring the write time when the NFC tag completes writing data and a preset delay trigger duration includes:
and reading the writing time of the data written in by the NFC label and the preset time delay triggering duration from the NFC label.
In actual application, after the NFC device completes the data writing operation on the NFC tag, the completion time of the data writing operation on the NFC tag, the identification information of the NFC tag, and the time delay trigger duration corresponding to the NFC tag may be correspondingly stored in the NFC tag. Therefore, when the NFC equipment induces the NFC label, the writing-in time in the NFC label and the preset delay triggering time are obtained.
Here, the preset delay triggering time length may be set according to an actual situation. For example, the delay trigger time period is set to 3 seconds.
In addition, the identification information here may be an ID of the NFC tag, and the ID of the NFC tag is used to distinguish the NFC tag from other NFC tags. Generally, one NFC tag is provided with one ID.
In addition, in an embodiment, the acquiring the write time when the NFC tag completes writing data and the preset delay trigger time includes:
reading identification information of the NFC tag from the NFC tag;
acquiring a writing time corresponding to the identification information and a preset delay triggering time from a preset database according to the identification information; the preset database stores the corresponding relations between the identification information and the writing time and the delay triggering time respectively.
In practical application, after the NFC device completes the data writing operation on the NFC tag, the completion time of the data writing operation on the NFC tag, the identification information of the NFC tag, and the delay trigger duration corresponding to the NFC tag may be correspondingly stored in the preset database. Therefore, when the NFC equipment induces the NFC label, the identification information of the NFC label can be obtained from the NFC label, and the writing time corresponding to the identification information and the preset delay triggering duration are obtained from the preset database according to the identification information.
Here, the preset delay triggering time length may be set according to an actual situation. For example, the delay trigger time period is set to 3 seconds.
In addition, the identification information here may be an ID of the NFC tag, and the ID of the NFC tag is used to distinguish the NFC tag from other NFC tags. Generally, one NFC tag is provided with one ID.
Here, the preset delay trigger time may be determined according to the tag type of NFC in addition to the identification information. For example, when the tag type of the NFC tag is a, the corresponding delay trigger time is 3 seconds; and when the type of the NFC label is B, the corresponding delay triggering time is 5 seconds. Here, the multiple NFC tags may correspond to the same tag type.
In addition, when the delay triggering time length of the NFC tag is set, the tag type of the NFC tag may be obtained first, the delay triggering time length corresponding to the tag type is determined according to the tag type of the NFC tag, and the delay triggering time length is used as the delay triggering time length of the NFC tag.
Further, in an embodiment, the acquiring the write time when the NFC tag completes writing data and a preset delay trigger duration includes:
reading identification information and a tag type of the NFC tag from the NFC tag;
acquiring a writing-in moment corresponding to the identification information from a preset database according to the identification information, and acquiring a delay triggering duration corresponding to the label type from the preset database according to the label type; the preset database stores the corresponding relation between the identification information and the writing time, and the preset database also stores the corresponding relation between the tag type and the delay triggering duration.
In actual application, after the NFC device completes the data writing operation on the NFC tag, the time when the data writing operation on the NFC tag is completed, the identification information of the NFC tag, the tag type of the NFC tag, and the delay trigger duration corresponding to the NFC tag may be correspondingly stored in the preset database. Therefore, when the NFC equipment induces the NFC label, the identification information and the label type of the NFC label can be obtained from the NFC label, the writing-in time corresponding to the identification information is obtained from a preset database according to the identification information, and the delay triggering time corresponding to the label type is obtained from the preset database according to the label type.
Certainly, in actual application, after the NFC device completes the data writing operation on the NFC tag, the time when the data writing operation on the NFC tag is completed, the identification information of the NFC tag, the tag type of the NFC tag, and the time delay trigger duration corresponding to the NFC tag may be correspondingly stored in the NFC tag. Therefore, when the NFC equipment induces the NFC label, the completion time of the data writing operation of the NFC label, the identification information of the NFC label, the label type of the NFC label and the time delay triggering duration corresponding to the NFC label can be obtained from the NFC label.
In addition, to further improve the technical effect of the implementation and enhance the user experience, in an embodiment, the method further includes:
when the difference value between the first sensing time and the writing time is less than or equal to the delay trigger time length, reporting an error or prompting the remaining waiting time length; the remaining waiting time is a difference between the current time and a second sensing time, and the second sensing time is a time when the difference between the current time and the writing time is equal to the delay triggering time.
Here, the error may be reported by voice prompt, or may be reported by flashing a light. In addition, besides error reporting, the remaining waiting time can be prompted, and a user can finish triggering operation after waiting for a certain time.
According to the embodiment, after the NFC label finishes the data writing operation, the data writing operation is delayed for a period of time by setting the delay triggering time, and the influence on the user use experience caused by the fact that the NFC label is triggered mistakenly due to the fact that the NFC equipment moves after the NFC label finishes the data writing operation is avoided.
Here, in practical applications, the delay process may be implemented by hardware such as a delay circuit.
According to the NFC triggering method provided by the embodiment of the invention, when an NFC label is induced, a first induction moment when the NFC label is induced is acquired; acquiring the write-in time of the NFC label for completing the write-in of data and preset delay trigger time; judging whether the difference value between the first induction time and the writing time is greater than the delay triggering duration or not; and when the difference value between the first induction moment and the writing moment is larger than the delay trigger time length, acquiring and executing the instruction in the NFC label. By adopting the scheme provided by the invention, the sensitivity of NFC triggering can be reduced, and the safety of NFC triggering can be improved.
The present invention will be described in further detail with reference to the following application examples.
According to the application embodiment, after the NFC label is subjected to data writing operation, the NFC label can be triggered by delaying a period of time by setting the delay triggering time, and the influence on the user experience caused by the false triggering of the NFC label due to the movement of the NFC equipment after the NFC label is subjected to the data writing operation is avoided.
Specifically, the embodiment may set a specific situation or a specific command to which the delay circuit is applied, that is, the delay circuit is turned on only under some commands or in a specific situation. Specifically, when the NFC device completes writing a special instruction (e.g., a one-time instruction) to the NFC tag, the current network time is acquired as the writing time, the time length of the required interval between the writing instruction and the first trigger is set, and the ID of the NFC tag, the corresponding writing time, and the preset time length are recorded in the database. (of course, the writing time and the preset time may be recorded in the NFC tag)
Further, the scheme of the embodiment includes:
step 1: when an NFC tag is induced, acquiring information in the NFC tag, including a tag ID, an instruction combination and a trigger time condition (for example, a delay time length, wherein the delay time length can be not stored in the tag but stored in a database of the NFC equipment); and recording the reading time;
here, the trigger time condition may be a delay of 5 minutes, or may be a few minutes.
In actual application, the corresponding delay time length can be searched according to the type of the tag, and the delay time length can also be searched according to the ID of the NFC tag. Here, one tag type corresponds to one delay time period.
Step 2: acquiring a first induction moment of local induction;
and step 3: judging whether the difference value between the first induction moment and the reading and writing moment meets the trigger moment condition or not;
and 4, step 4: and if so, triggering the instruction combination.
Here, if the difference between the first sensing time and the reading and writing time does not satisfy the trigger time condition (i.e., is not greater than the delay time), an error is reported or the remaining time is prompted, so that the user can wait conveniently.
Whether this embodiment is long when the first response moment of judging the NFC label reaches the time delay through the record write-in moment with predetermine the interval length, when the difference between the first response moment of NFC label and the write-in moment is greater than the time delay length, just realize triggering, avoided the NFC label to accomplish after the write-in operation and take place the spurious triggering, promote the triggering security of NFC label, improve user experience.
In order to implement the method according to the embodiment of the present invention, an embodiment of the present invention further provides an NFC trigger device, and as shown in fig. 2, an NFC trigger device 200 includes: the system comprises a sensing module 201, an obtaining module 202, a judging module 203 and an executing module 204; wherein the content of the first and second substances,
the sensing module 201 is configured to, when an NFC tag is sensed, obtain a first sensing time at which the NFC tag is sensed;
an obtaining module 202, configured to obtain a write time when the NFC tag completes writing data and a preset delay trigger duration;
the judging module 203 is configured to judge whether a difference between the first sensing time and the writing time is greater than the delay trigger duration;
an executing module 204, configured to obtain and execute the instruction in the NFC tag when the difference between the first sensing time and the writing time is greater than the delay trigger duration.
In an embodiment, the obtaining module 202 is further configured to:
and reading the writing time of the data written in by the NFC label and the preset time delay triggering duration from the NFC label.
In an embodiment, the obtaining module 202 is further configured to:
and after the data writing operation on the NFC label is completed, correspondingly storing the completion moment of the data writing operation on the NFC label, the identification information of the NFC label and the delay triggering duration corresponding to the NFC label into the NFC label.
In an embodiment, the obtaining module 202 is further configured to:
reading identification information of the NFC tag from the NFC tag;
acquiring a writing time corresponding to the identification information and a preset delay triggering time from a preset database according to the identification information; the preset database stores the corresponding relations between the identification information and the writing time and the delay triggering time respectively.
In an embodiment, the obtaining module 202 is further configured to:
and after the data writing operation on the NFC label is completed, storing the completion moment of the data writing operation on the NFC label, the identification information of the NFC label and the delay triggering duration corresponding to the NFC label into the preset database.
In an embodiment, the obtaining module 202 is further configured to:
reading identification information and a tag type of the NFC tag from the NFC tag;
acquiring a writing-in moment corresponding to the identification information from a preset database according to the identification information, and acquiring a delay triggering duration corresponding to the label type from the preset database according to the label type; the preset database stores the corresponding relation between the identification information and the writing time, and the preset database also stores the corresponding relation between the tag type and the delay triggering duration.
In an embodiment, the execution module 204 is further configured to:
when the difference value between the first sensing time and the writing time is less than or equal to the delay trigger time length, reporting an error or prompting the remaining waiting time length; the remaining waiting time is a difference between the current time and a second sensing time, and the second sensing time is a time when the difference between the current time and the writing time is equal to the delay triggering time.
In practical applications, the sensing module 201, the obtaining module 202, the determining module 203, and the executing module 204 may be implemented by a processor in the NFC trigger device.
It should be noted that: the above-mentioned apparatus provided in the above-mentioned embodiment is only exemplified by the division of the above-mentioned program modules when executing, and in practical application, the above-mentioned processing may be distributed to be completed by different program modules according to needs, that is, the internal structure of the terminal is divided into different program modules to complete all or part of the above-mentioned processing. In addition, the apparatus provided by the above embodiment and the method embodiment belong to the same concept, and the specific implementation process thereof is described in the method embodiment and is not described herein again.
Based on the hardware implementation of the program module, in order to implement the method according to the embodiment of the present invention, an electronic device (computer device) is also provided in the embodiment of the present invention. Specifically, in one embodiment, the computer device may be a terminal, and its internal structure diagram may be as shown in fig. 3. The computer apparatus includes a processor a01, a network interface a02, a display screen a04, an input device a05, and a memory (not shown in the figure) connected through a system bus. Wherein processor a01 of the computer device is used to provide computing and control capabilities. The memory of the computer device comprises an internal memory a03 and a non-volatile storage medium a 06. The nonvolatile storage medium a06 stores an operating system B01 and a computer program B02. The internal memory a03 provides an environment for the operation of the operating system B01 and the computer program B02 in the nonvolatile storage medium a 06. The network interface a02 of the computer device is used for communication with an external terminal through a network connection. The computer program is executed by the processor a01 to implement the method of any of the above embodiments. The display screen a04 of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device a05 of the computer device may be a touch layer covered on the display screen, a button, a trackball or a touch pad arranged on a casing of the computer device, or an external keyboard, a touch pad or a mouse.
Those skilled in the art will appreciate that the architecture shown in fig. 3 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The device provided by the embodiment of the present invention includes a processor, a memory, and a program stored in the memory and capable of running on the processor, and when the processor executes the program, the method according to any one of the embodiments described above is implemented.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include transitory computer readable media (transmyedia) such as modulated data signals and carrier waves.
It will be appreciated that the memory of embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The described memory for embodiments of the present invention is intended to comprise, without being limited to, these and any other suitable types of memory.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (10)
1. A near field communication triggering method, the method comprising:
when a near field communication label is induced, acquiring a first induction moment when the near field communication label is induced;
acquiring the write-in time of the near field communication tag for completing the write-in of data and a preset delay trigger time;
judging whether the difference value between the first induction time and the writing time is greater than the delay triggering duration or not;
and when the difference value between the first induction moment and the writing moment is larger than the delay trigger time length, acquiring and executing the instruction in the near field communication label.
2. The method according to claim 1, wherein the obtaining of the write time and the preset delay trigger time for the near field communication tag to complete writing data comprises:
and reading the write-in time of the data written in by the near field communication tag and the preset delay triggering time from the near field communication tag.
3. The method of claim 2, wherein prior to sensing the near field communication tag, the method further comprises:
and after the data writing operation of the near field communication tag is finished, storing the finishing time of the data writing operation of the near field communication tag, the identification information of the near field communication tag and the time delay triggering duration corresponding to the near field communication tag into the near field communication tag.
4. The method according to claim 1, wherein the obtaining of the write time and the preset delay trigger time for the near field communication tag to complete writing data comprises:
reading identification information of the near field communication tag from the near field communication tag;
acquiring a writing time corresponding to the identification information and a preset delay triggering time from a preset database according to the identification information; the preset database stores the corresponding relations between the identification information and the writing time and the delay triggering time respectively.
5. The method of claim 4, wherein before the near field communication tag is sensed, the method further comprises:
and after the data writing operation on the near field communication tag is finished, correspondingly storing the finishing time of the data writing operation on the near field communication tag, the identification information of the near field communication tag and the delay triggering time corresponding to the near field communication tag into the preset database.
6. The method according to claim 1, wherein the obtaining of the write time and the preset delay trigger time for the near field communication tag to complete writing data comprises:
reading identification information and a tag type of the near field communication tag from the near field communication tag;
acquiring a writing-in moment corresponding to the identification information from a preset database according to the identification information, and acquiring a delay triggering duration corresponding to the label type from the preset database according to the label type; the preset database stores the corresponding relation between the identification information and the writing time, and the preset database also stores the corresponding relation between the tag type and the delay triggering duration.
7. The method of claim 1, wherein after determining whether the difference between the first sensing time and the writing time is greater than the delay trigger time period, the method further comprises:
when the difference value between the first sensing time and the writing time is less than or equal to the delay trigger time length, reporting an error or prompting the remaining waiting time length; the remaining waiting time is a difference between the current time and a second sensing time, and the second sensing time is a time when the difference between the current time and the writing time is equal to the delay triggering time.
8. A near field communication trigger device, the near field communication trigger device comprising:
the sensing module is used for acquiring a first sensing moment when the near field communication tag is sensed;
the acquisition module is used for acquiring the write-in time when the near field communication tag finishes writing data and preset delay trigger time;
the judging module is used for judging whether the difference value between the first sensing time and the writing time is greater than the delay triggering time length or not;
and the execution module is used for acquiring and executing the instruction in the near field communication tag when the difference value between the first induction moment and the writing moment is greater than the delay trigger time length.
9. An electronic device, comprising: a processor and a memory for storing a computer program capable of running on the processor; wherein the content of the first and second substances,
the processor is adapted to perform the steps of the method of any one of claims 1 to 7 when running the computer program.
10. A storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, performs the steps of the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111036685.1A CN113780017B (en) | 2021-09-03 | 2021-09-03 | Near field communication triggering method, device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111036685.1A CN113780017B (en) | 2021-09-03 | 2021-09-03 | Near field communication triggering method, device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113780017A true CN113780017A (en) | 2021-12-10 |
CN113780017B CN113780017B (en) | 2024-02-09 |
Family
ID=78841146
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111036685.1A Active CN113780017B (en) | 2021-09-03 | 2021-09-03 | Near field communication triggering method, device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113780017B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103544510A (en) * | 2013-09-30 | 2014-01-29 | 小米科技有限责任公司 | Information processing method, information processing device and mobile terminal |
CN104850556A (en) * | 2014-02-17 | 2015-08-19 | 阿里巴巴集团控股有限公司 | Method and device for data processing |
CN107590519A (en) * | 2017-08-04 | 2018-01-16 | 咪咕视讯科技有限公司 | A kind of player method of multimedia file, device and computer-readable recording medium |
CN110032115A (en) * | 2019-04-25 | 2019-07-19 | 上海法诺光电技术有限公司 | A kind of Internet of Things network control system and control method using near field connection real-time, interactive |
CN111654849A (en) * | 2020-05-28 | 2020-09-11 | 惠州Tcl移动通信有限公司 | Quick starting method and system for near field communication, storage medium and terminal equipment |
CN111930581A (en) * | 2020-08-14 | 2020-11-13 | 山东云海国创云计算装备产业创新中心有限公司 | Memory interface testing method, device, equipment and readable storage medium |
CN112333276A (en) * | 2020-11-09 | 2021-02-05 | 珠海格力电器股份有限公司 | Network access method, system, storage medium and electronic device |
-
2021
- 2021-09-03 CN CN202111036685.1A patent/CN113780017B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103544510A (en) * | 2013-09-30 | 2014-01-29 | 小米科技有限责任公司 | Information processing method, information processing device and mobile terminal |
CN104850556A (en) * | 2014-02-17 | 2015-08-19 | 阿里巴巴集团控股有限公司 | Method and device for data processing |
CN107590519A (en) * | 2017-08-04 | 2018-01-16 | 咪咕视讯科技有限公司 | A kind of player method of multimedia file, device and computer-readable recording medium |
CN110032115A (en) * | 2019-04-25 | 2019-07-19 | 上海法诺光电技术有限公司 | A kind of Internet of Things network control system and control method using near field connection real-time, interactive |
CN111654849A (en) * | 2020-05-28 | 2020-09-11 | 惠州Tcl移动通信有限公司 | Quick starting method and system for near field communication, storage medium and terminal equipment |
CN111930581A (en) * | 2020-08-14 | 2020-11-13 | 山东云海国创云计算装备产业创新中心有限公司 | Memory interface testing method, device, equipment and readable storage medium |
CN112333276A (en) * | 2020-11-09 | 2021-02-05 | 珠海格力电器股份有限公司 | Network access method, system, storage medium and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN113780017B (en) | 2024-02-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3575957B1 (en) | Voice function control method and apparatus | |
US9064247B2 (en) | User-configurable activation of card applets | |
US11120424B2 (en) | Systems and methods for providing near field communications | |
KR101221195B1 (en) | Method and apparatus for automatic near field communication application selection in an electronic device | |
US9288107B2 (en) | Method and system for controlling operations in a mobile communication device that is enabled for near field communication (NFC) | |
EP2696309B1 (en) | Universal access device | |
US20140302819A1 (en) | Techniques for selecting a proximity card of a mobile device for access | |
US10117079B2 (en) | Information processing apparatus and recording medium | |
US10963654B2 (en) | Electronic device for transmitting data and method for controlling the same | |
EP3273706B1 (en) | Configuration of near field communication (nfc) settings in a mobile device | |
JP2019504566A (en) | Information image display method and apparatus | |
CN108235767A (en) | A kind of partition method, device and terminal for paying application | |
CN112926710A (en) | NFC analog card switching method, mobile terminal and computer readable storage medium | |
US11488141B2 (en) | Command-based timer for wireless transactions | |
CN113780017B (en) | Near field communication triggering method, device, electronic equipment and storage medium | |
CN104598192A (en) | Information processing method and electronic equipment | |
WO2024067752A1 (en) | Card reader activation method and apparatus, and device and storage medium | |
CN113392661A (en) | Card copying method and device, electronic equipment and readable storage medium | |
CN113962233B (en) | Near field communication triggering method, device, electronic equipment and storage medium | |
CN110750162B (en) | Input method and device | |
CN113780022B (en) | Near field communication triggering method, device, electronic equipment and storage medium | |
CN111885568B (en) | Loading method and device of near field communication configuration parameters and electronic equipment | |
CN110968206A (en) | Method and equipment for pressing extended function key of electromagnetic handwriting pen | |
CN107730780B (en) | Information detection method and device based on smart antenna | |
CN107393106B (en) | Access control data writing method, NFC source device, access control method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |