CN113780017B - Near field communication triggering method, device, electronic equipment and storage medium - Google Patents

Near field communication triggering method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113780017B
CN113780017B CN202111036685.1A CN202111036685A CN113780017B CN 113780017 B CN113780017 B CN 113780017B CN 202111036685 A CN202111036685 A CN 202111036685A CN 113780017 B CN113780017 B CN 113780017B
Authority
CN
China
Prior art keywords
time
near field
field communication
writing
communication tag
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.)
Active
Application number
CN202111036685.1A
Other languages
Chinese (zh)
Other versions
CN113780017A (en
Inventor
巫锦辉
陈浩广
刘洪钊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202111036685.1A priority Critical patent/CN113780017B/en
Publication of CN113780017A publication Critical patent/CN113780017A/en
Application granted granted Critical
Publication of CN113780017B publication Critical patent/CN113780017B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods 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/10198Methods 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods 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/10118Methods 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
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a near field communication triggering method, a near field communication triggering device, electronic equipment and a storage medium. When a near field communication tag is sensed, acquiring a first sensing moment when the near field communication tag is sensed; acquiring the writing time of the near field communication tag for completing writing data and the preset delay trigger time; judging whether the difference between the first sensing time and the writing time is larger than the delay triggering time length or not; and when the difference between the first sensing time and the writing time is larger than the delay trigger time, acquiring and executing the instruction in the near field communication tag. The scheme provided by the invention can reduce the sensitivity of near field communication triggering and improve the safety of near field communication triggering.

Description

Near field communication triggering method, device, electronic equipment and storage medium
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, a device, an electronic device, and a storage medium.
Background
Near field communication (Near Field Communication, NFC for short) is an emerging technology, and devices (e.g. mobile phones) using NFC technology can exchange data in close proximity to each other. In practical application, the frequency of NFC operation is 13.56MHz (megahertz), the communication connection establishment time is less than 1 second, and the communication distance is less than 10 cm. Typically, when an NFC tag is close to an NFC inductive device, the NFC tag is triggered and false triggering occurs due to the sensitivity being too high. Particularly, for some NFC labels which can be read once, after writing is completed, the mobile phone can be triggered by mistake when moving nearby the labels, so that the use safety of the NFC labels is reduced.
Disclosure of Invention
In order to solve the technical problem of poor safety caused by high NFC induction sensitivity, the embodiment of the invention provides an NFC triggering method, an NFC triggering device, electronic equipment 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 tag is sensed, acquiring a first sensing moment when the NFC tag is sensed;
acquiring the writing time of the NFC tag for completing writing data and the preset delay trigger time;
judging whether the difference between the first sensing time and the writing time is larger than the delay triggering time length or not;
and when the difference between the first sensing time and the writing time is larger than the delay trigger time, acquiring and executing the instruction in the NFC tag.
In the above scheme, the obtaining the writing time of the NFC tag to complete writing data and the preset delay trigger duration includes:
and reading the writing time of the NFC label for finishing writing the data and the preset delay trigger time from the NFC label.
In the above solution, before the near field communication tag is sensed, the method further includes:
after the data writing operation on the NFC tag is completed, the finishing time of the data writing operation on the NFC tag, the identification information of the NFC tag and the delay trigger time corresponding to the NFC tag are stored in the NFC tag.
In the above scheme, the obtaining the writing time of the NFC tag to complete writing data and the preset delay trigger duration includes:
reading identification information of the NFC tag from the NFC tag;
acquiring writing time and preset delay trigger time corresponding to the identification information from a preset database according to the identification information; the preset database stores the corresponding relation between the identification information and the writing time and the delay trigger time respectively.
In the above solution, before the near field communication tag is sensed, the method further includes:
after the data writing operation of the NFC tag is completed, the finishing time of the data writing operation of the NFC tag, the identification information of the NFC tag and the delay triggering time corresponding to the NFC tag are correspondingly stored in the preset database.
In the above scheme, the obtaining the writing time of the NFC tag to complete writing data and the preset delay trigger duration includes:
reading identification information and tag type of the NFC tag from the NFC tag;
acquiring writing time corresponding to the identification information from a preset database according to the identification information, and acquiring delay trigger time corresponding to the tag type from the preset database according to the tag 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 label type and the delay trigger time.
In the above solution, after determining whether the difference between the first sensing time and the writing time is greater than the delay trigger duration, the method further includes:
when the difference between the first sensing time and the writing time is smaller than or equal to the delay trigger time, reporting errors or prompting the residual waiting time; the residual waiting time is the difference between the current time and a second sensing time, and the second sensing time is the time when the difference between the second sensing time and the writing time is equal to the delay trigger time.
The embodiment of the invention also provides an NFC trigger device, which comprises:
the sensing module is used for acquiring a first sensing moment for sensing the NFC tag when the NFC tag is sensed;
the acquisition module is used for acquiring the writing time of the NFC tag for finishing writing the data and the preset delay trigger time;
the judging module is used for judging whether the difference between the first sensing time and the writing time is larger than the delay triggering time length or not;
and the execution module is used for acquiring and executing the instruction in the NFC tag when the difference between the first sensing time and the writing time is larger than the delay trigger duration.
The embodiment of the invention also provides electronic equipment, which comprises: a processor and a memory for storing a computer program capable of running on the processor; wherein,
the processor is configured to perform the steps of any of the methods described above when the computer program is run.
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 an NFC label is sensed, a first sensing moment for sensing the NFC label is obtained; acquiring the writing time of the NFC tag for completing writing data and the preset delay trigger time; judging whether the difference between the first sensing time and the writing time is larger than the delay triggering time length or not; and when the difference between the first sensing time and the writing time is larger than the delay trigger time, acquiring and executing the instruction in the NFC tag. The scheme provided by the invention can reduce the sensitivity of NFC triggering and improve the safety of NFC triggering.
Drawings
Fig. 1 is a schematic flow chart of an NFC trigger 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.
The embodiment of the invention provides an NFC triggering method, as shown in fig. 1, which comprises the following steps:
step 101: when an NFC tag is sensed, acquiring a first sensing moment when the NFC tag is sensed;
step 102: acquiring the writing time of the NFC tag for completing writing data and the preset delay trigger time;
step 103: judging whether the difference between the first sensing time and the writing time is larger than the delay triggering time length or not;
step 104: and when the difference between the first sensing time and the writing time is larger than the delay trigger time, acquiring and executing the instruction in the NFC tag.
Specifically, NFC (Near Field Communication, abbreviated as NFC) is a fast short-range high-frequency wireless communication technology that operates at a frequency of 13.56MHz (megahertz), the communication connection establishment time is less than 1 second, and the communication distance is generally limited to within 10 cm.
NFC tags, including NFC coil, NFC chip, can communicate with NFC induction device. NFC coils, which are coils around which an NFC antenna is wound in a circular or oval shape or any other shape, are used to capture electrical energy from an electromagnetic field and to carry out transception communications carrying smaller amounts of data by demodulating or modulating the electromagnetic field. The NFC chip is used for storing chips of the circuit module of the information. The NFC sensing device may be an NFC reader-writer, or may be an electronic device supporting NFC communications, such as a mobile phone supporting NFC communications. When the NFC equipment induction equipment is close to the NFC tag, the NFC induction equipment emits electromagnetic energy to the NFC tag, an NFC coil on the NFC tag couples the electromagnetic energy and transmits the electromagnetic energy to an NFC chip connected with the NFC coil, and the NFC chip converts the electromagnetic energy into a power supply required by circuits such as a microcontroller, a modem, a memory and the like in the NFC chip through a rectifying circuit. When circuits such as a microcontroller, a modem, a memory and the like start to work after power is applied, information stored in the NFC chip can be sent to the NFC induction device through the NFC coil.
For example, the NFC tag may communicate with a portable communication device such as a mobile phone with NFC functionality, so that the operating state of the device may be changed or related software and settings may be opened. The NFC label stores data written in advance into the mobile phone (with NFC function), when the mobile phone with NFC function is close to the NFC label, the mobile phone can switch the working state of the mobile phone through mobile phone software after sensing the NFC label and effectively identifying, such as automatically opening navigation, automatically entering a conference mode, automatically connecting a designated Wifi hotspot, automatically listening to music, automatically closing Wifi signals, entering a flight mode and the like.
In practical application, when the NFC device writes data into the NFC tag, the NFC tag starts to work. When the NFC tag after writing data is in the induction range of the NFC device, false triggering instructions can occur when the NFC device moves randomly, and therefore false triggering is caused. In this way, for some disposable effective NFC tags, the NFC tag needs to be reset due to false triggering, which reduces the user experience.
Based on this, the embodiment provides an NFC triggering method, which can reduce sensitivity of NFC triggering, improve security of NFC triggering, and promote user experience.
Specifically, the embodiment may be applied to an NFC device, and when the NFC device senses an NFC tag, obtain a first sensing time when the NFC tag is sensed. Here, the first sensing timing is accurate to seconds or milliseconds, or the like.
Further, in an embodiment, the obtaining the writing time when the NFC tag completes writing the data and the preset delay trigger time includes:
and reading the writing time of the NFC label for finishing writing the data and the preset delay trigger time from the NFC label.
In practical application, after finishing the data writing operation on the NFC tag, the NFC device may store the finishing 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 into the NFC tag. When NFC equipment senses an NFC tag, the writing time and the preset delay trigger time in the NFC tag are obtained.
Here, the preset delay trigger duration may be set according to actual situations. For example, the delay trigger duration is set to 3 seconds.
In addition, the identification information here may be an ID of the NFC tag, which is used to distinguish the NFC tag from other NFC tags. Generally, an NFC tag is provided with an ID.
In addition, in an embodiment, the obtaining the writing time when the NFC tag completes writing the data and the preset delay trigger time includes:
reading identification information of the NFC tag from the NFC tag;
acquiring writing time and preset delay trigger time corresponding to the identification information from a preset database according to the identification information; the preset database stores the corresponding relation between the identification information and the writing time and the delay trigger time respectively.
In practical application, after finishing the data writing operation on the NFC tag, the NFC device may store the finishing 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 in the preset database correspondingly. When NFC equipment senses the NFC tag, the identification information of the NFC tag can be obtained from the NFC tag, and the writing time and the preset delay trigger time corresponding to the identification information are obtained from the preset database according to the identification information.
Here, the preset delay trigger duration may be set according to actual situations. For example, the delay trigger duration is set to 3 seconds.
In addition, the identification information here may be an ID of the NFC tag, which is used to distinguish the NFC tag from other NFC tags. Generally, an NFC tag is provided with an ID.
Here, the preset delay trigger duration 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 duration is 3 seconds; when the label type of the NFC label is B, the corresponding delay triggering time is 5 seconds. Here, the plurality of NFC tags may correspond to the same tag type.
In addition, when the delay trigger time length of the NFC tag is set, the tag type of the NFC tag may be obtained first, and the delay trigger time length corresponding to the tag type is determined according to the tag type of the NFC tag, and the delay trigger time length is used as the delay trigger time length of the NFC tag.
Further, in an embodiment, the obtaining the writing time when the NFC tag completes writing the data and the preset delay trigger time includes:
reading identification information and tag type of the NFC tag from the NFC tag;
acquiring writing time corresponding to the identification information from a preset database according to the identification information, and acquiring delay trigger time corresponding to the tag type from the preset database according to the tag 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 label type and the delay trigger time.
In practical application, after finishing the data writing operation on the NFC tag, the NFC device may store the finishing time of the data writing operation on the NFC tag, the identification information of the NFC tag, the tag type of the NFC tag, and the delay trigger duration corresponding to the NFC tag in the preset database correspondingly. When NFC equipment senses the NFC tag, the identification information and the tag type of the NFC tag can be obtained from the NFC tag, the writing time corresponding to the identification information is obtained from a preset database according to the identification information, and the delay trigger time corresponding to the tag type is obtained from the preset database according to the tag type.
Of course, in actual application, after finishing the writing data operation on the NFC tag, the NFC device may store the finishing time of the writing data operation on the NFC tag, the identification information of the NFC tag, the tag type of the NFC tag, and the delay trigger duration corresponding to the NFC tag in the NFC tag correspondingly. Therefore, when the NFC equipment senses the NFC tag, the finishing moment of the data writing operation of the NFC tag, the identification information of the NFC tag, the tag type of the NFC tag and the delay triggering time corresponding to the NFC tag can be obtained from the NFC tag.
In addition, to further improve the technical effect of the implementation and improve the user experience, in an embodiment, the method further includes:
when the difference between the first sensing time and the writing time is smaller than or equal to the delay trigger time, reporting errors or prompting the residual waiting time; the residual waiting time is the difference between the current time and a second sensing time, and the second sensing time is the time when the difference between the second sensing time and the writing time is equal to the delay trigger time.
Here, the error reporting may be performed by means of voice prompt, or may be performed by means of flashing light. In addition, besides error reporting, the method can also prompt the residual waiting time, so that the user can conveniently wait for a certain time to finish triggering operation.
According to the embodiment, after the NFC tag finishes the data writing operation, the NFC tag can be triggered by delaying a certain time through setting the delay triggering time length, so that the influence on the user experience caused by false triggering of the NFC tag due to movement of the NFC device after the NFC tag finishes the data writing operation is avoided.
Here, in practical application, 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 sensed, a first sensing moment when the NFC label is sensed is obtained; acquiring the writing time of the NFC tag for completing writing data and the preset delay trigger time; judging whether the difference between the first sensing time and the writing time is larger than the delay triggering time length or not; and when the difference between the first sensing time and the writing time is larger than the delay trigger time, acquiring and executing the instruction in the NFC tag. The scheme provided by the invention can reduce the sensitivity of NFC triggering and improve the safety of NFC triggering.
The present invention will be described in further detail with reference to examples of application.
According to the application embodiment, after the NFC tag writes data, the NFC tag can be triggered by delaying a certain time through setting delay triggering time length, so that the influence on the user experience caused by false triggering of the NFC tag due to movement of NFC equipment after the NFC tag finishes writing data is avoided.
Specifically, the embodiment may set a specific case or a specific instruction of the delay circuit application, that is, only under a certain number of instructions or in a specific scene, the delay circuit is turned on. Specifically, when the NFC device completes writing a special instruction (such as a one-time instruction) to the NFC tag, the current network time is obtained as the writing time, the duration of a 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 duration are recorded in the database. (of course, the writing time and the preset duration here may also be recorded in the NFC tag)
Further, the embodiment scheme includes:
step 1: when an NFC tag is sensed, information in the NFC tag is acquired, wherein the information comprises a tag ID, an instruction combination and a trigger time condition (for example, a time delay time length is stored in a database of the NFC device instead of the tag); and recording the reading time;
here, the trigger time condition may be a delay of 5 minutes or, in particular, several minutes.
In practical application, the corresponding delay time length can be searched according to the tag type, 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 sensing moment of local sensing;
step 3: judging whether the difference value between the first sensing time and the read-write time meets the trigger time condition or not;
step 4: and if yes, triggering the instruction combination.
If the difference between the first sensing time and the read-write time does not meet the trigger time condition (i.e. is not longer than the delay time), the error is reported or the remaining time is prompted, so that the user can wait conveniently.
According to the method and the device, whether the first sensing time of the NFC tag reaches the delay time is judged by recording the writing time and the preset interval time, when the difference between the first sensing time of the NFC tag and the writing time is larger than the delay time, triggering is achieved, false triggering caused by the fact that the NFC tag finishes writing operation is avoided, triggering safety of the NFC tag is improved, and user experience is improved.
In order to implement the method of the embodiment of the present invention, the embodiment of the present invention further provides an NFC trigger device, as shown in fig. 2, where the NFC trigger device 200 includes: the device comprises an induction module 201, an acquisition module 202, a judgment module 203 and an execution module 204; wherein,
the sensing module 201 is configured to obtain a first sensing time when the NFC tag is sensed;
an obtaining module 202, configured to obtain a writing time when the NFC tag completes writing data and a preset delay trigger duration;
a judging module 203, configured to judge whether a difference between the first sensing time and the writing time is greater than the delay trigger duration;
and the execution module 204 is configured to acquire 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 NFC label for finishing writing the data and the preset delay trigger time from the NFC label.
In an embodiment, the obtaining module 202 is further configured to:
after the data writing operation on the NFC tag is completed, the finishing moment of the data writing operation on the NFC tag, the identification information of the NFC tag and the delay trigger time corresponding to the NFC tag are correspondingly stored in the NFC tag.
In an embodiment, the obtaining module 202 is further configured to:
reading identification information of the NFC tag from the NFC tag;
acquiring writing time and preset delay trigger time corresponding to the identification information from a preset database according to the identification information; the preset database stores the corresponding relation between the identification information and the writing time and the delay trigger time respectively.
In an embodiment, the obtaining module 202 is further configured to:
after the data writing operation of the NFC tag is completed, the finishing time of the data writing operation of the NFC tag, the identification information of the NFC tag and the delay trigger time corresponding to the NFC tag are stored in the preset database.
In an embodiment, the obtaining module 202 is further configured to:
reading identification information and tag type of the NFC tag from the NFC tag;
acquiring writing time corresponding to the identification information from a preset database according to the identification information, and acquiring delay trigger time corresponding to the tag type from the preset database according to the tag 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 label type and the delay trigger time.
In one embodiment, the execution module 204 is further configured to:
when the difference between the first sensing time and the writing time is smaller than or equal to the delay trigger time, reporting errors or prompting the residual waiting time; the residual waiting time is the difference between the current time and a second sensing time, and the second sensing time is the time when the difference between the second sensing time and the writing time is equal to the delay trigger time.
In practical application, the sensing module 201, the acquiring module 202, the judging 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 process allocation may be performed by different program modules according to needs, i.e. the internal structure of the terminal is divided into different program modules to complete all or part of the above-mentioned processes. In addition, the apparatus provided in the foregoing embodiment and the method embodiment belong to the same concept, and specific implementation processes of the apparatus and the method embodiment are detailed in the method embodiment and are not repeated herein.
Based on the hardware implementation of the program modules, and in order to implement the method of the embodiment of the present invention, the embodiment of the present invention further provides an electronic device (computer device). In particular, in one embodiment, the computer device may be a terminal, the internal structure of which 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) which are connected through a system bus. Wherein the processor a01 of the computer device is adapted to provide computing and control capabilities. The memory of the computer device includes an internal memory a03 and a nonvolatile storage medium a06. 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 a06. The network interface a02 of the computer device is used for communication with an external terminal through a network connection. Which when executed by a processor a01, performs the method of any of the embodiments described above. 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, or may be a key, a track ball or a touch pad arranged on a casing of the computer device, or may be an external keyboard, a touch pad or a mouse.
It will be appreciated by those skilled in the art that the structure shown in fig. 3 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
The device provided by the embodiment of the invention comprises a processor, a memory and a program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the method of any one of the embodiments.
It will be appreciated by those skilled in the art that 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash memory (flashRAM). 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 storage media for a computer 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, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transshipment) 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, and may include both volatile and nonvolatile memory. Wherein the nonvolatile Memory may be Read Only Memory (ROM), programmable Read Only Memory (PROM, programmable Read-Only Memory), erasable programmable Read Only Memory (EPROM, erasable Programmable Read-Only Memory), electrically erasable programmable Read Only Memory (EEPROM, electrically Erasable Programmable Read-Only Memory), magnetic random access Memory (FRAM, ferromagnetic random access Memory), flash Memory (Flash Memory), magnetic surface Memory, optical disk, or compact disk Read Only Memory (CD-ROM, compact Disc Read-Only Memory); the magnetic surface memory may be a disk memory or a tape memory. The volatile memory may be random access memory (RAM, random Access Memory), which acts as external cache memory. By way of example, and not limitation, many forms of RAM are available, such as static random access memory (SRAM, static Random Access Memory), synchronous static random access memory (SSRAM, synchronous Static Random Access Memory), dynamic random access memory (DRAM, dynamic Random Access Memory), synchronous dynamic random access memory (SDRAM, synchronous Dynamic Random Access Memory), double data rate synchronous dynamic random access memory (ddr SDRAM, double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random access memory (ESDRAM, enhanced Synchronous Dynamic Random Access Memory), synchronous link dynamic random access memory (SLDRAM, syncLink Dynamic Random Access Memory), direct memory bus random access memory (DRRAM, direct Rambus Random Access Memory). The memory described by 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 one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (10)

1. A near field communication triggering method, the method comprising:
after the near field communication equipment completes a special instruction on a near field communication tag, when the near field communication tag is sensed, acquiring a first sensing moment when the near field communication tag is sensed; the special instruction comprises a write-once instruction;
acquiring the writing time of the near field communication tag for completing writing data and the preset delay trigger time;
judging whether the difference between the first sensing time and the writing time is larger than the delay triggering time length or not;
and when the difference between the first sensing time and the writing time is larger than the delay trigger time, acquiring and executing the instruction in the near field communication tag.
2. The method of claim 1, wherein the obtaining the writing time when the near field communication tag completes writing data and the preset delay trigger time period includes:
and reading the writing time of the near field communication tag for finishing writing data and the preset delay trigger 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:
after the data writing operation of the near field communication tag is completed, the completion time of the data writing operation of the near field communication tag, the identification information of the near field communication tag and the delay trigger time corresponding to the near field communication tag are stored in the near field communication tag.
4. The method of claim 1, wherein the obtaining the writing time when the near field communication tag completes writing data and the preset delay trigger time period includes:
reading identification information of the near field communication tag from the near field communication tag;
acquiring writing time and preset delay trigger time corresponding to the identification information from a preset database according to the identification information; the preset database stores the corresponding relation between the identification information and the writing time and the delay trigger time respectively.
5. The method of claim 4, wherein prior to sensing the near field communication tag, the method further comprises:
after the data writing operation of the near field communication tag is completed, the completion time of the data writing operation of the near field communication tag, the identification information of the near field communication tag and the delay trigger time corresponding to the near field communication tag are correspondingly stored in the preset database.
6. The method of claim 1, wherein the obtaining the writing time when the near field communication tag completes writing data and the preset delay trigger time period includes:
reading identification information and a tag type of the near field communication tag from the near field communication tag;
acquiring writing time corresponding to the identification information from a preset database according to the identification information, and acquiring delay trigger time corresponding to the tag type from the preset database according to the tag 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 label type and the delay trigger time.
7. The method of claim 1, wherein after determining whether a difference between the first sensing time and the write time is greater than the delay trigger duration, the method further comprises:
when the difference between the first sensing time and the writing time is smaller than or equal to the delay trigger time, reporting errors or prompting the residual waiting time; the residual waiting time is the difference between the current time and a second sensing time, and the second sensing time is the time when the difference between the second sensing time and the writing time is equal to the delay trigger time.
8. A near field communication triggering apparatus, characterized in that the near field communication triggering apparatus comprises:
the sensing module is used for acquiring a first sensing moment for sensing the near field communication tag when the near field communication tag is sensed after the near field communication device finishes a special instruction on the near field communication tag; the special instruction comprises a write-once instruction;
the acquisition module is used for acquiring the writing time of the near field communication tag for completing writing data and the preset delay trigger time;
the judging module is used for judging whether the difference between the first sensing time and the writing time is larger 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 between the first sensing time and the writing time is larger than the delay trigger duration.
9. An electronic device, comprising: a processor and a memory for storing a computer program capable of running on the processor; wherein,
the processor being adapted to perform the steps of the method of any of claims 1 to 7 when the computer program is run.
10. A storage medium having a computer program stored therein, which, when executed by a processor, implements the steps of the method of any one of claims 1 to 7.
CN202111036685.1A 2021-09-03 2021-09-03 Near field communication triggering method, device, electronic equipment and storage medium Active CN113780017B (en)

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 CN113780017A (en) 2021-12-10
CN113780017B true 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)

* Cited by examiner, † Cited by third party
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
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
CN113780017A (en) 2021-12-10

Similar Documents

Publication Publication Date Title
EP3575957B1 (en) Voice function control method and apparatus
US9064247B2 (en) User-configurable activation of card applets
US9338639B2 (en) Systems and methods for interacting with portable electronic devices
EP2696309B1 (en) Universal access device
US20140302819A1 (en) Techniques for selecting a proximity card of a mobile device for access
EP2389023A1 (en) Telecommunications chip card and NFC-enabled mobile telephone device
CN106062763A (en) Method and apparatus for displaying application and picture, and electronic device
CN112926710A (en) NFC analog card switching method, mobile terminal and computer readable storage medium
CN103530034B (en) On mobile phone, method and the system that content editor experiences is strengthened based on NFC technique
CN103686603A (en) Method and system for searching for electronic device
CN113343732A (en) Method, device, terminal, card reader and system for determining near field communication card
US11488141B2 (en) Command-based timer for wireless transactions
CN113780017B (en) Near field communication triggering method, device, electronic equipment and storage medium
CN113962233B (en) Near field communication triggering method, device, electronic equipment and storage medium
US20140201078A1 (en) Payment system, payment terminal, payment method, payment program, and computer-readable recording medium for recording same program
CN113780022B (en) Near field communication triggering method, device, electronic equipment and storage medium
CN107071704A (en) The open method and device of the mode of operation of NFC chip
CN110750162B (en) Input method and device
KR100687202B1 (en) A method for call of mobile phone with rfid
CN111885568B (en) Loading method and device of near field communication configuration parameters and electronic equipment
CN114466337A (en) Near field communication analog card switching method and device, electronic equipment and storage medium
CN104156180A (en) Data reading method and terminal equipment
CN107730780B (en) Information detection method and device based on smart antenna
JP5672850B2 (en) Terminal device, data reading method, data reading program, etc.
US10672007B2 (en) Payment system, payment terminal, payment method, payment program, and computer-readable recording medium for recording same program

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