CN111046687A - Method for reducing NFC scanning power consumption, storage medium and application equipment - Google Patents
Method for reducing NFC scanning power consumption, storage medium and application equipment Download PDFInfo
- Publication number
- CN111046687A CN111046687A CN201911342631.0A CN201911342631A CN111046687A CN 111046687 A CN111046687 A CN 111046687A CN 201911342631 A CN201911342631 A CN 201911342631A CN 111046687 A CN111046687 A CN 111046687A
- Authority
- CN
- China
- Prior art keywords
- nfc
- period
- card
- unlocking
- sub
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 230000005672 electromagnetic field Effects 0.000 claims description 33
- 238000001514 detection method Methods 0.000 claims description 21
- 230000006870 function Effects 0.000 claims description 10
- 230000000694 effects Effects 0.000 description 4
- 230000035945 sensitivity Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 230000002035 prolonged effect Effects 0.000 description 2
- 238000009825 accumulation Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 230000005855 radiation Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C9/00—Individual registration on entry or exit
- G07C9/00174—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
- G07C9/00309—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
-
- 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
- G06K7/10207—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 parameter settings related to power consumption of the interrogator
-
- 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/10297—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 arrangements for handling protocols designed for non-contact record carriers such as RFIDs NFCs, e.g. ISO/IEC 14443 and 18092
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Computer Networks & Wireless Communication (AREA)
- General Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- General Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Signal Processing (AREA)
- Lock And Its Accessories (AREA)
Abstract
The invention relates to a method for reducing NFC scanning power consumption, a storage medium, an NFC card reader and an intelligent door lock, wherein the method is applied to electronic equipment and comprises the following steps: for each sub-period within a preset period, performing the following steps: determining the number of card reading times or the number of unlocking times of the sub-time period, wherein the number of card reading times is the number of successful card reading times; judging whether the card reading times or the unlocking times of the sub-time period are smaller than a preset threshold value or not; when the card reading times or the unlocking times are judged to be smaller than a preset time threshold value, resetting the NFC scanning period of the sub-time period to be larger than the original NFC scanning period; and scanning according to the reset NFC scanning period.
Description
Technical Field
The invention relates to the technical field of smart homes, in particular to a method for reducing NFC scanning power consumption, a storage medium, an NFC card reader and a smart door lock.
Background
Today, how to make an intelligent door lock have a better user experience is a current thought-requiring problem when the intelligent door lock is popularized in high-class houses. The NFC card is one of the mainstream unlocking modes of the existing intelligent door lock, has the advantages of fast authentication and high safety performance, and is combined with fingerprints, passwords and the like to form a common unlocking system of the intelligent door lock. However, most of the intelligent door locks supply power to the battery, so the power consumption of the intelligent door lock is also a major key point for designing the door lock.
The NFC card scanning cycle of traditional intelligence lock or NFC card reader is fixed, is about 300ms, has guaranteed user experience and duration to a certain extent, nevertheless because its scanning cycle is fixed, leads to having following technical problem: (1) the NFC card scanning is too solidified, the NFC scanning cannot be adjusted according to personal habits of users, and the intelligentization is lacked; (2) since the RF part of the card reader or the smart door lock is opened when the card is searched, especially the antenna radiates an electromagnetic field outwards, and the current consumed by the radiation of the electromagnetic field is usually relatively large. In actual use, most of the time is that no card is arranged near the antenna of the card reader or the intelligent door lock, so that the periodic open-field communication causes waste of power consumption.
Disclosure of Invention
In order to solve the technical problems that the NFC scanning period cannot be adjusted according to personal habits of users and scanning power consumption is seriously wasted in the existing intelligent door lock and NFC card reader, the invention provides a method for reducing NFC scanning power consumption, a storage medium, the NFC card reader and the intelligent door lock.
According to a first aspect of the present invention, there is provided a method for reducing NFC scanning power consumption, which is applied to an electronic device, and includes the following steps for each sub-period within a preset time period:
determining the number of card reading times or the number of unlocking times of the sub-time period, wherein the number of card reading times is the number of successful card reading times;
judging whether the card reading times or the unlocking times of the sub-time period are smaller than a preset threshold value or not;
when the card reading times or the unlocking times are judged to be smaller than a preset time threshold value, resetting the NFC scanning period of the sub-time period to be larger than the original NFC scanning period;
and scanning according to the reset NFC scanning period.
Preferably, the method further comprises:
and resetting the NFC scanning period of each sub-time period in the preset time period to be less than or equal to the original NFC scanning period when the card reading times or the unlocking times are judged to be greater than or equal to the preset time threshold value.
Preferably, the determining the number of card reading or unlocking times of the sub-period includes:
obtaining historical card reading data or historical unlocking data of the electronic equipment;
and determining the card reading times or the unlocking times of the sub-time period according to the historical card reading data or the historical unlocking data.
Preferably, the historical card reading data comprises the time of each successful card reading, and the historical unlocking data comprises the time of each unlocking.
Preferably, resetting the NFC scan cycle for the sub-period comprises:
accessing a function for configuring an NCF scan through a software interface;
and resetting parameters used for characterizing the NFC scanning period in the function.
Preferably, the electronic device comprises an NFC card reader or a smart door lock.
Preferably, the NFC scanning cycle includes a time period of a standby state, a time period of an open field preparation state, and a time period of a detection state;
when the electronic device is an NFC card reader, the method further includes:
in the standby state, the NFC card reader is controlled to stop generating an electromagnetic field, only a low-frequency clock for timing works, and when the preset duration is reached, the NFC card reader is switched to the open-field preparation state;
in the open-field preparation state, controlling an NFC card reader to generate an electromagnetic field and switching to the detection state;
in the detection state, whether a magnetic card is in the electromagnetic field or not is detected, when the magnetic card is detected to be in the electromagnetic field, the information in the magnetic card is read and detected,
when the information in the magnetic card is detected to be consistent with the pre-stored information, the card reading is judged to be successful, the time when the card reading is successful is recorded,
and when the magnetic card is not detected in the electromagnetic field or the information in the magnetic card is inconsistent with the pre-stored information, returning to the standby state.
Preferably, the NFC scanning cycle includes a time period of a standby state, a time period of an open field preparation state, and a time period of a detection state;
when the electronic device is an intelligent door lock, the method further comprises:
in the standby state, the intelligent door lock is controlled to stop generating an electromagnetic field, only a low-frequency clock for timing works, and when the preset time length is reached, the intelligent door lock is switched to the open preparation state;
in the open preparation state, controlling the intelligent door lock to generate an electromagnetic field and switching to the detection state;
in the detection state, whether a magnetic card is in the electromagnetic field or not is detected, when the magnetic card is detected to be in the electromagnetic field, the information in the magnetic card is read and detected,
when the information in the magnetic card is detected to be consistent with the pre-stored information, the unlocking operation is carried out, the unlocking time is recorded,
and when the magnetic card is not detected in the electromagnetic field or the information in the magnetic card is inconsistent with the pre-stored information, returning to the standby state.
According to a second aspect of the present invention, there is provided a storage medium having stored thereon executable code, which when executed by a processor, is capable of implementing the above-described method of reducing NFC scan power consumption.
According to a third aspect of the invention, there is provided an NFC reader comprising:
a processor; and
a memory having executable code stored thereon, the executable code, when executed by the processor, being capable of implementing the above-described method of reducing NFC scan power consumption.
According to a fourth aspect of the present invention, there is provided an intelligent door lock comprising:
a processor; and
a memory having executable code stored thereon, the executable code, when executed by the processor, being capable of implementing the above-described method of reducing NFC scan power consumption.
Compared with the prior art, one or more embodiments in the above scheme can have the following advantages or beneficial effects:
by applying the method for reducing the NFC scanning power consumption, the storage medium, the NFC card reader and the intelligent door lock provided by the embodiment of the invention, the NFC scanning period is optimized through software design under the condition that no hardware is added, so that the cost is saved, the user experience is improved, and the NFC scanning power consumption is reduced.
Specifically, the card reading times or the unlocking times of each sub-time period are determined according to the habit of using the NFC card by the user; the NFC scanning period of each sub-time period is adjusted through analysis of the card reading times or the unlocking times of each sub-time period, for example, the NFC scanning period of the sub-time period with low use times is prolonged, and accordingly NFC scanning power consumption is reduced.
Furthermore, for the sub-time period with high use times, the NFC scanning period is shortened, the magnetic card can be quickly detected, information in the magnetic card can be quickly identified, the scanning sensitivity is improved, and meanwhile, the user experience is improved.
Furthermore, the invention records the time of successful card reading each time or records the time of unlocking each time for subsequent adjustment and optimization of the NFC scanning period again, and can achieve the effect of changing the NFC scanning period along with the personal habit change of the user.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a flowchart of a method for reducing NFC scanning power consumption according to an embodiment of the present invention.
Detailed Description
The following detailed description of the embodiments of the present invention will be provided with reference to the drawings and examples, so that how to apply the technical means to solve the technical problems and achieve the technical effects can be fully understood and implemented. It should be noted that, as long as there is no conflict, the embodiments and the features of the embodiments of the present invention may be combined with each other, and the technical solutions formed are within the scope of the present invention.
In order to solve the technical problems that the NFC scanning period cannot be adjusted according to personal habits of users and scanning power consumption is seriously wasted in the conventional intelligent door lock and NFC card reader, the invention provides a method for reducing NFC scanning power consumption, a storage medium, an NFC card reader and an intelligent door lock.
Fig. 1 is a flowchart of a method for reducing NFC scanning power consumption according to an embodiment of the present invention. As shown in fig. 1, the method includes:
for each sub-period within a preset period, performing the following steps:
step S11: determining the number of card reading times or the number of unlocking times of the sub-time period, wherein the number of card reading times is the number of successful card reading times;
step S12: judging whether the card reading times or the unlocking times of the sub-time period are smaller than a preset threshold value or not;
step S13: when the card reading times or the unlocking times are judged to be smaller than a preset time threshold value, resetting the NFC scanning period of the sub-time period to be larger than the original NFC scanning period;
step S14: and scanning according to the reset NFC scanning period.
In step S11, the preset time period is, for example, 0 to 24 points, and the preset time period is divided into 24 sub-time periods at equal time intervals, for example, including 0 to 1 point, 1 to 2 points, 2 to 3 points, … …, 23 to 24 points. Of course, the time interval may be divided into different time intervals, for example, one half hour in the daytime and one half hour in the evening, and the time interval may be flexibly adjusted according to the actual situation, which is not limited in the present invention. Also, the preset time period may be flexibly adjusted according to actual situations, for example, 5 to 24 points, but the invention is not limited thereto.
Preferably, in the embodiment of the present invention, the historical card reading data or the historical unlocking data of the electronic device is obtained, and the number of card reading times or the number of unlocking times of each sub-time period in the preset time period is determined according to the historical card reading data or the historical unlocking data.
Taking the electronic device as an intelligent door lock as an example, for example, the number of card reading or unlocking times in each sub-period in a month is determined according to historical unlocking data of the month before the current day recorded in the intelligent door lock. For example, in the month, the sub-period of 17:00 to 18:00 is unlocked 25 times in total, the sub-period of 13:00 to 14:00 is unlocked 10 times in total, and the remaining sub-periods are 1 to 2 times.
In one embodiment, the historical card reading data includes, for example, the time when each card reading succeeds, and the historical unlocking data includes, for example, the time when each unlocking occurs. And determining the number of times of reading the card or the number of times of unlocking in each sub-time period in the preset time period according to the time of successfully reading the card or the time of unlocking in each time.
Taking the smart door lock as an example, historical unlocking data of a month before the day includes 100 times of unlocking, for example, the first time of unlocking is 17 o ' clock 02 minutes, the second time of unlocking is 17 o ' clock 10 minutes, and the third time of unlocking is 13 o ' clock 05 minutes, … …. Then, according to the time of each unlocking, the sub-time period in which each unlocking falls can be determined. And for each sub-period, the unlocking times of the sub-period can be obtained through accumulation calculation.
After the number of card reading times or the number of unlocking times of each sub-period is obtained, in step S12, it is determined whether the number of card reading times or the number of unlocking times of the sub-period is smaller than a preset threshold value for each sub-period. The preset threshold may be flexibly set according to actual conditions, but the present invention is not limited thereto.
In step S13, when it is determined that the number of times of card reading or the number of times of unlocking is smaller than the preset number threshold, the NFC scan cycle of the sub-period is reset to be larger than the original NFC scan cycle.
For example, the original NFC scan period is 300 ms. Taking the preset threshold value as 5 as an example, the judgment in step S12 shows that the unlocking times of the sub-time periods are less than 5 times, except for the two sub-time periods 17:00 to 18:00 and 13:00 to 14: 00. According to the judgment result, the NFC scanning period of the other sub-time periods is reset, so that the NFC scanning period after the setting of the other sub-time periods is greater than the original NFC scanning period, for example, 600ms, and may be flexibly set according to the actual situation, which is not limited in the present invention.
Therefore, the NFC scanning period of other sub-time periods is changed from original 300ms to 600ms, the field is opened once in 300ms (electromagnetic field is started) to 600ms, the number of open fields in the same time is reduced, and the NFC scanning power consumption is further reduced.
Further, for a sub-period in which the number of card reading times or the number of unlocking times is greater than or equal to the preset number threshold, the sub-period may be kept in the original NFC scanning period, for example, 300 ms.
Preferably, in order to meet personal habits of users, improve user experience, and improve scanning sensitivity, in the embodiment of the present invention, the NFC scanning period of the sub-period in which the number of times of reading or unlocking is greater than or equal to the preset number threshold is preferably reset to be smaller than the original NFC scanning period.
For example, for two sub-time periods of 17:00 to 18:00 and 13:00 to 14:00, the NFC scanning period of the two sub-time periods is set to 200ms, so that the smart door lock or the NFC card reader can quickly detect the magnetic card in the two sub-time periods, and can quickly identify information in the magnetic card, thereby improving the scanning sensitivity and improving the user experience.
How to reset the NFC scan cycle for each sub-period is explained below.
A first step, accessing a function for configuring NCF scanning through a software interface.
In the embodiment of the present invention, in order to facilitate the use of NCF scanning, the following software interfaces are configured: ipcd _ cfg _ tlpcd _ cfg interface, for accessing and configuring functions of global variables for NCF scanning.
The function or structure used to configure the NCF scan is as follows:
typedef struct
{
unsigned char t1;
unsigned char phase;
char phase_offset;
……
}lpcd_cfg_t;
and a second step of resetting parameters used for characterizing the NFC scanning period in the function.
In the above function, t1 is a parameter used for characterizing an NFC scanning period, specifically, t1 is used for adjusting a time interval between two field openings, and when t1 is increased, the time interval between two field openings is increased, and the NFC scanning power consumption is reduced.
In the embodiment of the present invention, the time interval between two field openings or the actual time of one NFC scanning period is: t ═ T1+1 × 16 ms. By adjusting t1, the NFC scan cycle for each sub-period may be adjusted.
Preferably, in the embodiment of the present invention, the NFC scan cycle includes a period of time in a standby state, a period of time in an on-state and a period of time in a detection state.
Preferably, the embodiment of the present invention records the time when each card reading succeeds, and records the time when each card unlocking succeeds, so as to subsequently adjust and optimize the NFC scanning period again. The specific scanning process is as follows:
for the NFC card reader, in a STANDBY state (STANDBY state), the NFC card reader is controlled to stop generating an electromagnetic field, only a low-frequency clock for timing works, and when a preset time length is reached, the NFC card reader is switched to an open field preparation state.
In the open field ready state (STARTUP state), the NFC reader is controlled to generate an electromagnetic field, ready for detection, and switched to the detection state.
In a DETECTION state (DETECTION state), whether a magnetic card is in the electromagnetic field is detected, when the magnetic card is detected to be in the electromagnetic field, information in the magnetic card is read and detected,
when the information in the magnetic card is detected to be consistent with the pre-stored information, the card reading is judged to be successful, the time when the card reading is successful is recorded,
and when the magnetic card is not detected to be in the electromagnetic field or the information in the magnetic card is inconsistent with the pre-stored information, returning to the standby state.
For the intelligent door lock, in a STANDBY state (STANDBY state), the NFC card reader is controlled to stop generating an electromagnetic field, only a low-frequency clock for timing works, and when a preset time length is reached, the state is switched to an open field preparation state.
In the open field ready state (STARTUP state), the NFC reader is controlled to generate an electromagnetic field, ready for detection, and switched to the detection state.
In a DETECTION state (DETECTION state), whether a magnetic card is in the electromagnetic field is detected, when the magnetic card is detected to be in the electromagnetic field, information in the magnetic card is read and detected,
when the information in the magnetic card is detected to be consistent with the pre-stored information, the unlocking operation is carried out, the unlocking time is recorded,
and when the magnetic card is not detected to be in the electromagnetic field or the information in the magnetic card is inconsistent with the pre-stored information, returning to the standby state.
In step S14, scanning is performed in accordance with the reset NFC scanning cycle. Preferably, in the subsequent process, for example, when a preset time length (for example, 24 hours) is reached, the NFC scanning period is continuously adjusted and optimized according to the recorded time when the card reading is successful or the recorded time when the card is unlocked, so as to achieve the effect of changing the NFC scanning period along with the personal habit change of the user.
Accordingly, an embodiment of the present invention further provides a storage medium, where executable codes are stored, and when the executable codes are executed by a processor, the method for reducing NFC scanning power consumption can be implemented.
Correspondingly, an embodiment of the present invention further provides an NFC card reader, including:
a processor; and
a memory having executable code stored thereon, the executable code, when executed by the processor, being capable of implementing the above-described method of reducing NFC scan power consumption.
Correspondingly, the embodiment of the invention also provides an intelligent door lock, which comprises:
a processor; and
a memory having executable code stored thereon, the executable code, when executed by the processor, being capable of implementing the above-described method of reducing NFC scan power consumption.
In summary, according to the method for reducing NFC scanning power consumption, the storage medium, the NFC card reader and the smart door lock provided by the embodiments of the present invention, the NFC scanning period is optimized through software design without adding any hardware, so that the cost is saved, the user experience is improved, and the NFC scanning power consumption is reduced.
Specifically, the card reading times or the unlocking times of each sub-time period are determined according to the habit of using the NFC card by the user; the NFC scanning period of each sub-time period is adjusted through analysis of the card reading times or the unlocking times of each sub-time period, for example, the NFC scanning period of the sub-time period with low use times is prolonged, and accordingly NFC scanning power consumption is reduced.
Furthermore, for the sub-time period with high use times, the NFC scanning period is shortened, the magnetic card can be quickly detected, information in the magnetic card can be quickly identified, the scanning sensitivity is improved, and meanwhile, the user experience is improved.
Furthermore, the invention records the time of successful card reading each time or records the time of unlocking each time for subsequent adjustment and optimization of the NFC scanning period again, and can achieve the effect of changing the NFC scanning period along with the personal habit change of the user.
Those skilled in the art will appreciate that the modules or steps of the invention described above can be implemented in a general purpose computing device, centralized on a single computing device or distributed across a network of computing devices, and optionally implemented in program code that is executable by a computing device, such that the modules or steps are stored in a memory device and executed by a computing device, fabricated separately into integrated circuit modules, or fabricated as a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The processes, functions, methods, and/or software described above may be recorded, stored, or fixed in one or more computer-readable storage media that include program instructions to be implemented by a computer to cause a processor to execute the program instructions. The media may also include program instructions, data files, data structures, etc., alone or in combination. The media or program instructions may be those specially designed and constructed for the purposes of the computer software industry, or they may be of the kind well known and available to those having skill in the computer software arts. Examples of computer readable media include: magnetic media such as hard disks, floppy disks, and magnetic tape; optical media, such as CDROM disks and DVDs; magneto-optical media, e.g., optical disks; and hardware devices specifically configured to store and execute program instructions, such as Read Only Memory (ROM), Random Access Memory (RAM), flash memory, and the like. Examples of program instructions include both machine code, such as produced by a compiler, and files containing higher level code that may be executed by the computer using an interpreter. The described hardware devices may be configured to act as one or more software modules to perform the operations and methods described above, and vice versa. In addition, computer readable storage media may be distributed over network coupled computer systems and may store and execute computer readable code or program instructions in a distributed fashion.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (11)
1. A method for reducing NFC scanning power consumption is applied to an electronic device and comprises the following steps of aiming at each sub-time period in a preset time period:
determining the number of card reading times or the number of unlocking times of the sub-time period, wherein the number of card reading times is the number of successful card reading times;
judging whether the card reading times or the unlocking times of the sub-time period are smaller than a preset threshold value or not;
when the card reading times or the unlocking times are judged to be smaller than a preset time threshold value, resetting the NFC scanning period of the sub-time period to be larger than the original NFC scanning period;
and scanning according to the reset NFC scanning period.
2. The method of claim 1, further comprising:
and resetting the NFC scanning period of each sub-time period in the preset time period to be less than or equal to the original NFC scanning period when the card reading times or the unlocking times are judged to be greater than or equal to the preset time threshold value.
3. The method of claim 1, wherein determining the number of reads or unlocks for the sub-period of time comprises:
obtaining historical card reading data or historical unlocking data of the electronic equipment;
and determining the card reading times or the unlocking times of the sub-time period according to the historical card reading data or the historical unlocking data.
4. The method of claim 3, wherein the historical card reading data comprises a time of each successful card reading and the historical unlocking data comprises a time of each unlocking.
5. The method of claim 1, wherein resetting the NFC scan cycle for the sub-period comprises:
accessing a function for configuring an NCF scan through a software interface;
and resetting parameters used for characterizing the NFC scanning period in the function.
6. The method of claim 1, wherein the electronic device comprises an NFC reader or a smart door lock.
7. The method of claim 6, wherein the NFC scan cycle comprises a time period for a standby state, a time period for an open field ready state, and a time period for a detection state;
when the electronic device is an NFC card reader, the method further includes:
in the standby state, the NFC card reader is controlled to stop generating an electromagnetic field, only a low-frequency clock for timing works, and when the preset duration is reached, the NFC card reader is switched to the open-field preparation state;
in the open-field preparation state, controlling an NFC card reader to generate an electromagnetic field and switching to the detection state;
in the detection state, whether a magnetic card is in the electromagnetic field or not is detected, when the magnetic card is detected to be in the electromagnetic field, the information in the magnetic card is read and detected,
when the information in the magnetic card is detected to be consistent with the pre-stored information, the card reading is judged to be successful, the time when the card reading is successful is recorded,
and when the magnetic card is not detected in the electromagnetic field or the information in the magnetic card is inconsistent with the pre-stored information, returning to the standby state.
8. The method of claim 6, wherein the NFC scan cycle comprises a time period for a standby state, a time period for an open field ready state, and a time period for a detection state;
when the electronic device is an intelligent door lock, the method further comprises:
in the standby state, the intelligent door lock is controlled to stop generating an electromagnetic field, only a low-frequency clock for timing works, and when the preset time length is reached, the intelligent door lock is switched to the open preparation state;
in the open preparation state, controlling the intelligent door lock to generate an electromagnetic field and switching to the detection state;
in the detection state, whether a magnetic card is in the electromagnetic field or not is detected, when the magnetic card is detected to be in the electromagnetic field, the information in the magnetic card is read and detected,
when the information in the magnetic card is detected to be consistent with the pre-stored information, the unlocking operation is carried out, the unlocking time is recorded,
and when the magnetic card is not detected in the electromagnetic field or the information in the magnetic card is inconsistent with the pre-stored information, returning to the standby state.
9. A storage medium having stored thereon executable code which, when executed by a processor, is capable of implementing a method of reducing NFC scan power consumption as claimed in any one of claims 1 to 8.
10. An NFC reader comprising:
a processor; and
memory having stored thereon executable code which, when executed by the processor, is capable of implementing a method of reducing NFC scan power consumption as claimed in any one of claims 1 to 8.
11. An intelligent door lock comprising:
a processor; and
memory having stored thereon executable code which, when executed by the processor, is capable of implementing a method of reducing NFC scan power consumption as claimed in any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911342631.0A CN111046687A (en) | 2019-12-23 | 2019-12-23 | Method for reducing NFC scanning power consumption, storage medium and application equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911342631.0A CN111046687A (en) | 2019-12-23 | 2019-12-23 | Method for reducing NFC scanning power consumption, storage medium and application equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111046687A true CN111046687A (en) | 2020-04-21 |
Family
ID=70238411
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911342631.0A Pending CN111046687A (en) | 2019-12-23 | 2019-12-23 | Method for reducing NFC scanning power consumption, storage medium and application equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111046687A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112135274A (en) * | 2020-09-24 | 2020-12-25 | Oppo广东移动通信有限公司 | Bluetooth scanning method and device, electronic equipment and readable storage medium |
CN113888805A (en) * | 2021-08-27 | 2022-01-04 | 金卡智能集团股份有限公司 | Near field and remote communication metering device and system |
CN113920621A (en) * | 2021-09-30 | 2022-01-11 | 北京维普无限智能技术有限公司 | NFC-based Internet of things access control and setting method thereof |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2725823A1 (en) * | 2012-10-26 | 2014-04-30 | Irevo Inc. | Method for performing user authentication between secured element and door lock through NFC |
CN104123644A (en) * | 2014-06-11 | 2014-10-29 | 赵飞 | IC (Integrated Circuit) card capable of communicating with capacitive touch screen as well as system and method thereof |
EP2711870B1 (en) * | 2012-03-01 | 2017-09-06 | NTT DoCoMo, Inc. | Mobile terminal and information reading prevention method |
CN109038703A (en) * | 2018-06-20 | 2018-12-18 | 南京云家物联网研究院有限公司 | Low-power consumption long standby battery management system and its working method for smart lock |
-
2019
- 2019-12-23 CN CN201911342631.0A patent/CN111046687A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2711870B1 (en) * | 2012-03-01 | 2017-09-06 | NTT DoCoMo, Inc. | Mobile terminal and information reading prevention method |
EP2725823A1 (en) * | 2012-10-26 | 2014-04-30 | Irevo Inc. | Method for performing user authentication between secured element and door lock through NFC |
CN104123644A (en) * | 2014-06-11 | 2014-10-29 | 赵飞 | IC (Integrated Circuit) card capable of communicating with capacitive touch screen as well as system and method thereof |
CN109038703A (en) * | 2018-06-20 | 2018-12-18 | 南京云家物联网研究院有限公司 | Low-power consumption long standby battery management system and its working method for smart lock |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112135274A (en) * | 2020-09-24 | 2020-12-25 | Oppo广东移动通信有限公司 | Bluetooth scanning method and device, electronic equipment and readable storage medium |
CN112135274B (en) * | 2020-09-24 | 2023-08-29 | Oppo广东移动通信有限公司 | Bluetooth scanning method, device, electronic equipment and readable storage medium |
CN113888805A (en) * | 2021-08-27 | 2022-01-04 | 金卡智能集团股份有限公司 | Near field and remote communication metering device and system |
CN113920621A (en) * | 2021-09-30 | 2022-01-11 | 北京维普无限智能技术有限公司 | NFC-based Internet of things access control and setting method thereof |
CN113920621B (en) * | 2021-09-30 | 2024-04-26 | 北京维普无限智能技术有限公司 | NFC-based access control of Internet of things and setting method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111046687A (en) | Method for reducing NFC scanning power consumption, storage medium and application equipment | |
CN110424831B (en) | Low-power consumption intelligence lock | |
CN102695999B (en) | Domain specific language, compiler and JIT for dynamic power management | |
US20200034557A1 (en) | System Function Invoking Method and Apparatus, and Terminal | |
CN106055077A (en) | Wake-up lock-based processing method and device | |
WO2008117133A1 (en) | Anticipation of power on of a mobile device | |
CN104375836A (en) | Method and device for showing lock screen window | |
US20120149357A1 (en) | Remote control method and system for smart card | |
KR101748462B1 (en) | Method and device of managing mtc devices in a mtc network environment | |
SG173004A1 (en) | Portable mobile communication device and method of controlling near field communication | |
WO2017039950A1 (en) | Systems and methods for dynamically adjusting memory state transition timers | |
US20200322760A1 (en) | Method for acquiring location information, terminal, storage medium, and electronic device | |
CN110535950A (en) | Smart lock control method, equipment, system and storage medium | |
CN110311720A (en) | A kind of antenna, control method and storage medium | |
CN104317611A (en) | Application rousing setting device and method and mobile terminal | |
US20180181187A1 (en) | Method for dynamically updating financial data and processing system using the same, and method for dynamically adjusting power configuration and processing system using the same | |
CN111443792B (en) | Power consumption control method and device of processor and electronic and storage device | |
US20200026523A1 (en) | System and method for limiting maximum run time for an application | |
CN105978899A (en) | SIM card binding method for preventing malicious mobile phone flash | |
CN109194834B (en) | Mobile phone power saving method, device, equipment and storage medium | |
CN105787312A (en) | Control method and device of intelligent equipment | |
CN109547506B (en) | Information interaction method, Internet of things equipment and computer readable storage medium | |
CN114999033A (en) | Door lock control method and device, intelligent door lock and storage medium | |
CN109840097A (en) | Channel information management method and device of mobile terminal, terminal and storage medium | |
CN109993261B (en) | Smart card, application realization method and device and computer readable storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200421 |