CN114828176A - Method, system, storage medium and electronic device for reducing NFC power consumption - Google Patents

Method, system, storage medium and electronic device for reducing NFC power consumption Download PDF

Info

Publication number
CN114828176A
CN114828176A CN202210394242.8A CN202210394242A CN114828176A CN 114828176 A CN114828176 A CN 114828176A CN 202210394242 A CN202210394242 A CN 202210394242A CN 114828176 A CN114828176 A CN 114828176A
Authority
CN
China
Prior art keywords
nfc
label
tag
preset
power consumption
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
Application number
CN202210394242.8A
Other languages
Chinese (zh)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202210394242.8A priority Critical patent/CN114828176A/en
Publication of CN114828176A publication Critical patent/CN114828176A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0241Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where no transmission is received, e.g. out of range of the transmitter
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Sources (AREA)

Abstract

The application relates to a method, a system, a computer readable storage medium and an electronic device for reducing NFC power consumption. The method for reducing the NFC power consumption is applied to electronic equipment and used for scanning an NFC label, and comprises the following steps: scanning the NFC tag; judging whether the NFC label is a preset type label or not; and if the NFC label is a preset type label, scanning the NFC label according to a preset mode so as to monitor whether the NFC label is separated from the NFC working range of the electronic equipment. By means of the method, the problem of power consumption of the electronic equipment placed on the specific label for a long time can be solved, and the normal reading function of the NFC of the electronic equipment in other scenes is not influenced.

Description

Method, system, storage medium and electronic device for reducing NFC power consumption
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to a method and a system for reducing NFC power consumption, a computer-readable storage medium, and an electronic device.
Background
At present, most of electronic devices such as mobile phones have a Near Field Communication (NFC) function, and NFC tags of terminals are also available in the market. In some application scenarios, for example, the mobile phone holder has an NFC tag in a vehicle-mounted mode, and the user puts the mobile phone into the mobile phone holder and enters the vehicle-mounted mode. However, the existing NFC technical solution enables the electronic device to continuously read the content of the NFC tag, so that the mobile phone has large power consumption and generates heat seriously.
Disclosure of Invention
The application provides a method and a system for reducing NFC power consumption, a computer readable storage medium and an electronic device.
The application provides a method for reducing NFC power consumption, which is applied to electronic equipment and used for scanning an NFC label, and comprises the following steps:
scanning the NFC tag;
judging whether the NFC label is a preset type label or not;
and if the NFC label is a preset type label, scanning the NFC label according to a preset mode so as to monitor whether the NFC label is separated from the NFC working range of the electronic equipment.
The embodiment of the present application further provides a system for reducing NFC power consumption, which is applied to an electronic device, and is used for scanning an NFC tag, including:
a scanning module for scanning the NFC tag;
the judgment module is electrically connected with the scanning module and is used for judging whether the NFC label is a preset type label or not;
the processor module is electrically connected with the judgment module and receives the judgment result of the judgment module;
if the judgment module judges that the NFC label is a preset type label, the processor module controls the NFC of the electronic equipment to scan the NFC label according to a preset mode so as to monitor whether the NFC label is separated from the working range of the scanning module.
The embodiment of the present application further provides a storage medium, on which executable codes are stored, and when the executable codes are executed by a processor, the method for reducing NFC power consumption can be implemented.
An embodiment of the present application further provides an electronic device, including:
a processor; and
a memory having executable code stored thereon, the executable code, when executed by the processor, enabling the method of reducing NFC power consumption.
According to the method for reducing the NFC power consumption, whether the NFC label is the preset type label or not is judged, and if the NFC label is the preset type label, the NFC label is scanned according to the preset mode so as to monitor whether the NFC label is separated from the NFC working range of the electronic equipment or not. By means of the mode, the problem of power consumption of the electronic equipment placed on a specific label (namely a preset type label) for a long time can be solved, and meanwhile, the normal reading function of the NFC of the electronic equipment under other scenes is not influenced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic perspective view of an electronic device provided in an embodiment of the present application;
fig. 2 is a flowchart of a method for reducing NFC power consumption according to an embodiment of the present application;
FIG. 3 is a sub-flowchart of one embodiment of step S02 shown in FIG. 2;
FIG. 4 is a sub-flowchart of yet another embodiment of step S02 shown in FIG. 2;
FIG. 5 is a sub-flowchart of one embodiment of step S03 shown in FIG. 2;
FIG. 6 is a sub-flowchart of step S32 shown in FIG. 5;
FIG. 7 is a sub-flowchart of yet another embodiment of step S03 in the flowchart of FIG. 2;
FIG. 8 is a sub-flowchart of step S33 shown in FIG. 5;
fig. 9 is a schematic structural diagram of a system for reducing NFC power consumption according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device to which a method for reducing NFC power consumption is applied according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be noted that the following examples are only illustrative of the present application, and do not limit the scope of the present application. Likewise, the following examples are only some examples but not all examples of the present application, and all other examples obtained by those of ordinary skill in the art without any inventive work are intended to be within the scope of the present application.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
It should be noted that the terms "first", "second" and "third" in the present application are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of indicated technical features. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include at least one of the feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless explicitly specifically limited otherwise.
Referring to fig. 1, fig. 1 is a schematic perspective view of an electronic device according to an embodiment of the present disclosure. The present application provides an electronic device 1000. Specifically, the electronic device 1000 may be any of various types of computer system devices (only one modality shown in fig. 1 by way of example) that are mobile or portable and that perform wireless communications. Specifically, the electronic device 1000 may be a mobile phone or smart phone (e.g., an iPhone (TM) based, Android (TM) based phone), a Portable gaming device (e.g., a Nintendo DS (TM), a PlayStation Portable (TM), a Game Advance (TM), an iPhone (TM)), a laptop, a PDA, a Portable Internet device, a music player and data storage device, other handheld devices and devices such as a headset, and the like, and the electronic device 1000 may also be other wearable devices that require charging (e.g., a Head Mounted Device (HMD) such as an electronic bracelet, an electronic necklace, an electronic device or a smart watch).
The electronic device 1000 may also be any of a number of electronic devices including, but not limited to, cellular phones, smart phones, other wireless communication devices, personal digital assistants, audio players, other media players, music recorders, video recorders, other media recorders, radios, medical devices, vehicle transportation equipment, calculators, programmable remote controllers, pagers, laptop computers, desktop computers, printers, netbook computers, Personal Digital Assistants (PDAs), Portable Multimedia Players (PMPs), moving Picture experts group (MPEG-1 or MPEG-2) Audio layer 3(MP3) players, portable medical devices, and digital cameras and combinations thereof.
In some cases, the electronic device 1000 may perform multiple functions (e.g., playing music, displaying videos, storing pictures, and receiving and sending telephone calls). If desired, the electronic device 1000 may be a device such as a cellular telephone, media player, other handheld device, wrist watch device, pendant device, earpiece device, or other compact portable device.
In the related art, most electronic devices such as mobile phones have an NFC function, and NFC tags of terminals are also available in the market, so that the NFC mobile phones can realize personalized application customization based on the NFC readable NFC tags. For example, the a-tag may be defined as a silent mode NFC tag, and when the NFC of the mobile phone scans the a-tag, the mobile phone enters the silent mode, even if the NFC of the mobile phone is away from the a-tag, the mobile phone is still in the silent mode, and the silent mode is not affected by the NFC of the mobile phone being away from the short-time response NFC tag.
For example, the NFC of the mobile phone is moved after reading the corresponding NFC tag, and the NFC of the mobile phone is restored to a normal functional state after the mobile phone is moved, i.e., the NFC of the mobile phone is temporarily contacted with the entrance guard tag and public transportation, and corresponding response work such as opening a door, payment, and the like can be completed.
For example, the mobile phone holder is provided with a vehicle-mounted mode tag, and the user puts the mobile phone on the mobile phone holder and the mobile phone enters a vehicle-mounted mode. However, if the mobile phone is far from the mobile phone holder, the in-vehicle mode of the mobile phone disappears. In other words, the NFC of the mobile phone needs to continuously read the in-vehicle mode tag to make the mobile phone in the in-vehicle mode.
As can be appreciated, for the car mode tag, the NFC needs to continuously read the car mode tag so that the mobile phone maintains the car mode. However, the mobile phone continuously reads the vehicle mode tag, so that the mobile phone consumes more power and generates heat seriously.
In the related art, the electronic device NFC continuously and periodically reads the content of the NFC tag, and not only periodically sends a class a card inquiry command (such as reqa (Request a command) or WUPA (Wake-UP a command)), but also receives a class a card inquiry response (such as ATQA (Answer To Request, Type a)), but also periodically performs data interaction, especially I-Block data interaction. In the related art, the period for sending the card inquiry command and receiving the card inquiry response is usually 4ms, and correspondingly, the interaction period of the I-Block data is also 4 ms. It will be appreciated that the shorter the command transmission period, the more sensitive the handset will respond, but the greater the corresponding power consumption. In view of this, it is actually necessary to provide a new method for reducing NFC power consumption.
Referring to fig. 2, fig. 2 is a flowchart of a method for reducing NFC power consumption according to an embodiment of the present application. The embodiment of the application provides a method for reducing the power consumption of NFC, which is applied to an electronic device 1000 and used for scanning an NFC tag. The method for reducing the NFC power consumption comprises the following steps:
step S01, the NFC tag is scanned.
Specifically, the electronic device 1000 is close to the NFC tag, so that the electronic device NFC corresponds to the NFC tag, so that the electronic device NFC can scan the NFC tag and identify the NFC tag. Specifically, information such as the encoding, the mode type, and the like of the NFC tag is identified.
Referring to fig. 3 and 4, fig. 3 is a sub-flowchart of an embodiment of step S02 in the flowchart shown in fig. 2, and fig. 4 is a sub-flowchart of another embodiment of step S02 in the flowchart shown in fig. 2. And step S02, judging whether the NFC label is a preset type label.
The preset type tags can be roughly divided into two types, one type is a type of pre-stored special mode tags, the electronic device NFC needs to continuously read the pre-stored special mode tags so that the mobile phone can keep a corresponding special working mode, and once the mobile phone is far away from the pre-stored special mode tags, the mobile phone is immediately separated from the special working mode (such as the vehicle-mounted mode tags mentioned above); the other type is a non-prestored special mode tag, specifically, the electronic device NFC is placed together with a device carrying a chip, such as a bank card, an access card, and the like, of the non-prestored special mode tag, and the electronic device NFC periodically and uninterruptedly scans the non-prestored special mode tag. It can be understood that as the electronic device is continuously updated, more and more new special tags are designed to cope with new and different application scenarios, but the pre-stored special mode tags of the electronic device are limited, and if the preset type tags of the electronic device cannot be updated, it is difficult to meet the increasing new requirements of the user.
Referring to fig. 3, in one embodiment, the predetermined type tag is a pre-stored special mode tag. Step S02 may include the following sub-steps:
step S21, compare the NFC tag with the preset type tag.
Specifically, the preset type tag in this embodiment is one of pre-stored special mode tags stored in a database of the electronic device 1000. Specifically, the factory setting of the electronic device 1000 may be pre-stored with information such as a part of codes and mode types of the pre-stored special mode tags, and a user may also set the information of the part of codes and mode types of the pre-stored special mode tags according to a requirement, so as to complement and perfect database information of the electronic device 1000.
The information of the NFC tag is compared with pre-stored special mode tag information stored in a database of the electronic device 1000. Specifically, the code or the mode type of the NFC tag is queried in the database, and any information of the code or the mode type of the NFC tag can be queried in the database, so that the NFC tag is one of the preset type tags, that is, the NFC tag is a preset type tag that prestores a special mode tag, otherwise, the NFC tag is not a preset type tag that prestores a special mode tag.
In step S22a, if the NFC tag is one of the preset type tags, the NFC tag is a preset type tag.
Referring to fig. 4, in another embodiment, the predetermined type tag is a non-pre-stored special mode tag.
On the basis of the step S21 in the above embodiment, the step S02 may further include the following steps:
step S22b, if the NFC tag is not one of the preset types of tags, determine whether the electronic device NFC scans the NFC tag according to a default mode.
The NFC label is not one of the preset type labels, namely the NFC label is not the preset type label of the pre-stored special mode label, and whether the NFC label is scanned according to a default mode or not is judged.
The default mode, that is, the NFC conventional mode of the electronic device, specifically refers to a mode in which the electronic device NFC periodically and uninterruptedly scans the NFC tag, where a period T of the default mode is usually 4ms, and the electronic device NFC always performs data exchange with the NFC tag once in each period. Specifically, when the electronic device NFC is placed together with the non-prestored special mode tag, the electronic device NFC periodically and uninterruptedly scans the non-prestored special mode tag until the non-prestored special mode tag is out of the working range of the electronic device NFC.
Step S23b, if the NFC tag is scanned by the electronic device NFC according to the default mode, the NFC tag is defined as a preset type tag that is not a pre-stored special mode tag.
It is understood that the preset type tag of the non-pre-stored special mode tag does not exist in the database of the preset type tag of the electronic device. The NFC tag, such as a bank card, enters the working range of the NFC of the electronic device, and the NFC of the electronic device scans the NFC tag according to a default mode until the NFC tag is separated from the NFC tag. It will be understood that it is not necessary for the electronic device NFC to scan it in the default mode, and that with a high probability the user will bring the bank card together with the electronic device, but keeping the electronic device NFC in the continuous operating state causes a lot of power consumption. The high-power consumption of the electronic equipment NFC and other chip carrying devices commonly used in life, such as bank cards, access controls and the like, caused by error contact can be greatly reduced by defining the electronic equipment NFC as a preset type label of a non-prestored special mode label.
Or the NFC tag may also be a special mode tag that is newly made available or a special mode tag that is not recorded for other reasons, and since the special mode tag is not recorded in the database of the electronic device, the NFC of the electronic device performs periodic scanning according to a default mode, so that power consumption is relatively large. The non-prestoring special mode label can be supplemented to the prestoring special mode label according to the user demand, so that the NFC label can be rapidly identified by the electronic equipment NFC conveniently, and the power consumption of the electronic equipment is reduced. Through the mode, the preset type label database of the electronic equipment can be enriched, so that the NFC of the electronic equipment can quickly identify the new special mode label.
Referring to fig. 5 to 8, fig. 5 is a sub-flowchart of an embodiment of step S03 shown in fig. 2, fig. 6 is a sub-flowchart of step S32 shown in fig. 5, fig. 7 is a sub-flowchart of another embodiment of step S03 in the flowchart shown in fig. 2, and fig. 8 is a sub-flowchart of step S33 shown in fig. 5. And step S03, if the NFC label is a preset type label, scanning the NFC label according to a preset mode to monitor whether the NFC label is separated from the NFC working range of the electronic equipment.
Specifically, the scanning the NFC tag according to the preset mode in step S03 may include the following steps:
and step S31, reading the data information in the NFC label.
In the embodiment of the application, considering that the NFC tag is a preset type tag, information (I-Block data) of data interaction at each time is the same, so that the data information of the NFC tag is read by the electronic device NFC, the number of times of data information of the NFC tag is reduced, and the power consumption of the electronic device 1000 can be effectively reduced.
Step S32, scanning the NFC tag according to the first time interval in the first preset time period, and monitoring whether the NFC tag is separated from the NFC operating range of the electronic device in the first preset time period.
The first preset time period refers to a time period (e.g., 5min) from when the NFC tag is determined as the preset type tag to after the NFC tag is delayed, and a duration of the first preset time period may be set by a default (i.e., factory setting) of the system, or may be set autonomously according to a user requirement, which is not limited specifically herein.
The first time interval T1 may be greater than the period T of the default mode, so as to reduce the scanning period of the NFC device, thereby achieving the purpose of reducing power consumption. In this embodiment, the first time interval t1 may be 1s or 2s, and is not limited herein.
Referring to fig. 6, step S32 includes the following steps:
step S321, a card inquiry command is issued to the NFC tag according to the first time interval.
Specifically, each time a polling card command, such as REQA or WUPA, is sent at a cycle of a first time interval to find out whether the NFC tag is out of the NFC operating range of the electronic device.
In step S322, if the card inquiry response of the NFC tag is received, the NFC tag does not depart from the NFC working range of the electronic device within the first preset time period.
Specifically, each first time interval, when the electronic device 1000 always receives the card inquiry response of the NFC tag, such as ATQA, it may be determined that the NFC tag does not leave the NFC operating range of the electronic device within the first preset time period, that is, the electronic device 1000 is never removed from the NFC tag. If the electronic device 1000 does not receive a card inquiry response, such as ATQA, within any first time interval, it is determined that the handset is exiting the default mode. If it is determined that the electronic device 1000 is not removed from the NFC tag, step 33 is entered:
referring to fig. 7 and 8, in step S33, if the NFC tag is not separated from the NFC operating range of the electronic device within the first preset time period, the NFC tag is scanned within the second preset time period at a second time interval.
The second time interval t2 is greater than the first time interval t1, so as to further reduce the scanning period of the NFC electronic device, and further achieve the purpose of reducing power consumption. In this embodiment, the duration t2 of the second time interval may be 3s, 5s, and is not limited herein.
The second preset time period refers to a period of time from the end of the first preset time period to the delay, and the duration of the second preset time period may be set by default (i.e., factory setting) by the system, or may be set autonomously according to the user requirement, which is not limited specifically herein.
Wherein, step S33 includes the following steps:
and step 331, sending a card inquiry command to the NFC tag according to a second time interval.
Specifically, each time a polling card command, such as REQA or WUPA, is sent at a period of a second time interval to find out whether the NFC tag is out of the NFC operating range of the electronic device.
In step S332, if the card inquiry response of the NFC tag is received, the NFC tag does not depart from the NFC working range of the electronic device within the second preset time period.
Specifically, the electronic device 1000 always receives the card inquiry response of the NFC tag, such as ATQA, in each second time interval, and it can be determined that the NFC tag does not leave the NFC operating range of the electronic device within the second preset time period, that is, the electronic device 1000 is never removed from the NFC tag. If the electronic device 1000 does not receive a card inquiry response, such as ATQA, within any second time interval, it is determined that the handset is exiting the default mode.
According to the method for reducing the NFC power consumption, whether the NFC label is the preset type label or not is judged, and if the NFC label is the preset type label, the NFC label is scanned according to the preset mode so as to monitor whether the NFC label is separated from the NFC working range of the electronic equipment or not. By the mode, the problem of power consumption of the electronic device 1000 placed on a specific tag (namely a preset type tag) for a long time can be solved, and meanwhile, the normal reading function of the electronic device NFC in other scenes is not influenced.
Referring to fig. 9, an embodiment of the present application further provides a system 100 for reducing power consumption, which is applied in an electronic device 1000 and used for scanning an NFC tag. The system 100 may include a scanning module 10, a determination module 20, and a processor module 30. The scanning module 10 is used for scanning an NFC tag, the judging module 20 is electrically connected to the scanning module 10 and is used for judging whether the NFC tag is a preset type tag, the processor module 30 is electrically connected to the judging module 20 and receives a judgment result of the judging module 20, and if the judging module judges that the NFC tag is the preset type tag, the processor module 30 controls the scanning module 10 to scan the NFC tag according to a preset mode so as to monitor whether the NFC tag is separated from the working range of the scanning module 10. If the NFC label is separated from the working range of the scanning module 10, the NFC label exits the preset mode; if the NFC tag does not depart from the working range of the scanning module 10, the NFC tag continues to be scanned according to the preset mode.
The scanning module 10 is close to the NFC tag such that the scanning module 10 corresponds to the NFC tag to enable the scanning module 10 to scan the NFC tag.
The judging module 20 may include a storage unit 21 and a judging unit 22. The storage unit 21 may store a plurality of preset type tags. Specifically, the storage unit 21 may be pre-stored with information such as a code and a mode type of a part of the pre-stored special mode tag, and a user may set the information of the code and the mode type of the part of the pre-stored special mode tag by himself or herself to complement and perfect the database information of the electronic device 1000.
In an embodiment, the determining unit 22 is configured to compare the NFC tag with preset type tags, and if the NFC tag is one of the preset type tags, the NFC tag is the preset type tag. Specifically, the determining unit 22 is configured to compare the information of the NFC tag with pre-stored special mode tag information stored in a database of the electronic device 1000. Specifically, the code or the mode type of the NFC tag is queried in the database, and any information in the code or the mode type of the NFC tag can be queried in the database, so that the NFC tag is one of the preset type tags, that is, the NFC tag is a preset type tag in which a special mode tag is prestored, otherwise, the NFC tag is not a preset type tag in which a special mode tag is prestored.
In another embodiment, the code or the mode type of the NFC tag is queried in the database, and if any information in the code or the mode type of the NFC tag cannot be queried in the database, the NFC tag is not one of the preset type tags of the pre-stored special mode tag, and the determining unit 22 continues to determine whether the scanning module 10 scans the NFC tag according to the default mode. If the scanning module 10 scans the NFC tag according to the default mode, it is determined that the NFC tag is a preset type tag that is not a pre-stored special mode tag.
The processor module 30 may comprise a reading unit 31, a timer unit 32, a transmitting unit 33 and a receiving unit 34. The reading unit 31 is configured to read data of the pre-NFC tag, and the timer unit 32 is configured to set a time interval of the preset mode and a duration of the preset time period. The transmitting unit 33 is configured to send a card inquiry command to the NFC tag, and the receiving unit 34 is configured to receive a card inquiry response of the NFC tag. When the receiving unit 34 receives the NFC tag's card response, then the NFC tag does not leave the operating range of the scanning module 10. The processor module 30 can also set the non-pre-stored special mode label or the non-pre-stored special mode label as a pre-stored type label of the pre-stored special mode label, so that the NFC label can be rapidly identified by the electronic equipment NFC conveniently, and the power consumption of the electronic equipment is reduced.
Specifically, the reading unit 31 reads data information in the NFC tag. In the embodiment of the application, considering that the NFC tag is a preset type tag, information (I-Block data) of data interaction at each time is the same, and therefore the scanning module 10 can read the data information of the NFC tag once, so as to reduce the number of times of data information of the NFC tag, and further effectively reduce the power consumption of the electronic device 1000.
The timer unit 32 is used for setting the duration of the first preset time period, the duration of the second preset time period, and the first time interval t1 and the second time interval t 2. The first preset time period refers to a time period (for example, 5min) from the time when the NFC tag is determined as the preset type tag to the time when the NFC tag is delayed, and a duration of the first preset time period may be set by a system default (that is, factory setting), or may be set autonomously according to a user requirement, which is not particularly limited herein. The second preset time period refers to a period of time from the end of the first preset time period to the delay, and the duration of the second preset time period may be default by the system (i.e. factory setting). The second time interval is greater than the first time interval, specifically, the first time interval t1 may be 1s, 2s, and the duration t2 of the second time interval may be 3s, 5s, which is not limited herein.
The transmitting unit 33 is configured to send a card polling instruction to the NFC tag, and the receiving unit 34 is configured to receive a card polling response of the NFC tag, where if the card polling response of the NFC tag is received, the NFC tag does not leave the working range of the scanning module 10 within a first preset time period.
Specifically, the transmitting unit 33 may issue a card inquiry command such as REQA or WUPA to the NFC tag at a first time interval to find out whether the NFC tag is out of the operating range of the scanning module 10. If the receiving unit 34 receives a card inquiry response of the NFC tag, the NFC tag does not depart from the working range of the scanning module 10 within the first preset time period.
Specifically, each first time interval, when the electronic device 1000 always receives the NFC tag response to the card inquiry, such as ATQA, it can be determined that the NFC tag has not been out of the operating range of the scanning module 10 for the first predetermined period of time, i.e., the electronic device 1000 has not been removed from the NFC tag. If the electronic device 1000 does not receive a card inquiry response, such as ATQA, within any first time interval, it is determined that the handset is exiting the default mode.
The system for reducing the power consumption of the NFC tag, provided by the embodiment of the application, judges whether the NFC tag is a preset type tag through the judgment module 20, and if the NFC tag is the preset type tag, the processor module 30 controls the scanning module 10 to scan the NFC tag according to a preset mode so as to monitor whether the NFC tag is separated from the working range of the scanning module 10. By the above manner, the problem of power consumption when the electronic device 1000 is placed on a specific tag (i.e. a preset type tag) for a long time can be solved, and the normal reading function of the scanning module 10 in other scenes is not affected.
The embodiment of the present application further provides a storage medium, where executable codes are stored on the storage medium, and when the executable codes are executed by a processor, the steps of the method for reducing NFC power consumption can be implemented as follows:
step S01, scanning the NFC label;
step S02, judging whether the NFC label is a preset type label;
step S03, if the NFC tag is a preset type tag, scanning the NFC tag according to a preset mode to monitor whether the NFC tag is separated from the NFC operating range of the electronic device.
The processes, functions, methods and/or software described above may be recorded, stored or fixed in one or more 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 the storage medium 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, the 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.
Referring to fig. 10, an embodiment of the present application further provides an electronic device 2000, which includes a processor 2001 and a memory 2002, where the memory 2001 has stored thereon executable codes, and when the executable codes are executed by the processor 2002, the steps of the method for reducing NFC power consumption can be implemented:
step S01, scanning the NFC label;
step S02, judging whether the NFC label is a preset type label;
step S03, if the NFC tag is a preset type tag, scanning the NFC tag according to a preset mode to monitor whether the NFC tag is separated from the NFC operating range of the electronic device.
The above description is only a part of the embodiments of the present application, and not intended to limit the scope of the present application, and all equivalent devices or equivalent processes performed by the content of the present application and the attached drawings, or directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (12)

1. A method for reducing NFC power consumption is applied to electronic equipment and used for scanning NFC labels, and is characterized by comprising the following steps:
scanning the NFC tag;
judging whether the NFC label is a preset type label or not;
and if the NFC label is a preset type label, scanning the NFC label according to a preset mode so as to monitor whether the NFC label is separated from the NFC working range of the electronic equipment.
2. The method for reducing NFC power consumption according to claim 1, wherein the step of scanning the NFC tag according to a preset mode to monitor whether the NFC tag is out of the NFC operating range of the electronic device comprises the steps of:
reading data of the NFC tag;
and scanning the NFC label within a first preset time interval according to a first time interval, and monitoring whether the NFC label is separated from the NFC working range of the electronic equipment within the first preset time interval.
3. The method for reducing NFC power consumption according to claim 2, wherein the step of scanning the NFC tag at first time intervals within a first preset time period and the step of monitoring whether the NFC tag is out of the NFC operating range of the electronic device within the first preset time period comprises the following steps:
sending a card inquiry instruction to the NFC label according to a first time interval;
and if the card inquiry response of the NFC label is received, the NFC label is not separated from the NFC working range of the electronic equipment within a first preset time period.
4. The method for reducing NFC power consumption according to claim 2, wherein the steps of scanning the NFC tag at first time intervals within a first preset time period and monitoring whether the NFC tag is out of the NFC operating range of the electronic device within the first preset time period further comprise:
if the NFC label is not separated from the NFC working range of the electronic equipment within a first preset time period, scanning the NFC label within a second preset time period according to a second time interval;
wherein the second time interval is greater than the first time interval.
5. The method for reducing NFC power consumption according to claim 1, wherein the determining whether the NFC tag is a preset type tag includes:
comparing the NFC tag with a preset type tag;
and if the NFC label is one of the preset type labels, judging that the NFC label is the preset type label.
6. The method for reducing the power consumption of NFC according to claim 1 wherein said determining that the NFC tag is a predetermined type of tag comprises the steps of:
comparing the NFC tag with a preset type tag;
if the NFC label is not one of the preset type labels, judging whether the NFC label is scanned by the electronic equipment according to a default mode or not;
and if so, defining the NFC label as a preset type label.
7. A system for reducing NFC power consumption, which is applied to an electronic device and used for scanning NFC labels, is characterized by comprising:
a scanning module for scanning the NFC tag;
the judgment module is electrically connected with the scanning module and is used for judging whether the NFC label is a preset type label or not;
the processor module is electrically connected with the judgment module and receives the judgment result of the judgment module;
if the disconnection module judges that the NFC label is a preset type label, the processor module controls the NFC of the electronic equipment to scan the NFC label according to a preset mode so as to monitor whether the NFC label is separated from the working range of the scanning module.
8. The system for reducing NFC power consumption of claim 7, wherein the processor module includes:
the reading unit is used for reading data of the NFC tag;
and the timer unit is used for setting the time interval of the preset mode and the duration of the preset time interval.
9. The system for reducing NFC power consumption of claim 7, wherein the processor module includes:
the transmitting unit is used for sending a card inquiring instruction to the NFC label;
the receiving unit is used for receiving a card inquiry response of the NFC label;
when the receiving unit receives the response of the card inquiry of the NFC label, the NFC label is not separated from the working range of the scanning module.
10. The system for reducing NFC power consumption of claim 7, wherein the determining module includes:
the storage unit is used for storing the preset type label;
a judging unit for comparing the NFC tag with the preset type tag,
and if the NFC label is one of the preset type labels, the NFC label is a preset type label.
11. A storage medium having stored thereon executable code which, when executed by a processor, is capable of implementing a method of reducing NFC power consumption as claimed in any one of claims 1 to 6.
12. An electronic device, 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 power consumption according to any of claims 1-6.
CN202210394242.8A 2022-04-14 2022-04-14 Method, system, storage medium and electronic device for reducing NFC power consumption Pending CN114828176A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210394242.8A CN114828176A (en) 2022-04-14 2022-04-14 Method, system, storage medium and electronic device for reducing NFC power consumption

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210394242.8A CN114828176A (en) 2022-04-14 2022-04-14 Method, system, storage medium and electronic device for reducing NFC power consumption

Publications (1)

Publication Number Publication Date
CN114828176A true CN114828176A (en) 2022-07-29

Family

ID=82537372

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210394242.8A Pending CN114828176A (en) 2022-04-14 2022-04-14 Method, system, storage medium and electronic device for reducing NFC power consumption

Country Status (1)

Country Link
CN (1) CN114828176A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105517119A (en) * 2014-09-25 2016-04-20 中国电信股份有限公司 Scheduling method and apparatus for NFC working mode, and terminal
US20160248627A1 (en) * 2015-02-19 2016-08-25 Qualcomm Incorporated Near field communication forum listen mode profiles
CN106851527A (en) * 2015-09-23 2017-06-13 联发科技股份有限公司 Near field communication means and near field communication method
US20180091193A1 (en) * 2016-09-26 2018-03-29 Blackberry Limited Efficient near field communication (nfc) tag detection and related methods
EP3598358A1 (en) * 2018-07-17 2020-01-22 Accenture Global Solutions Limited Managing a plurality of tag reader devices

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105517119A (en) * 2014-09-25 2016-04-20 中国电信股份有限公司 Scheduling method and apparatus for NFC working mode, and terminal
US20160248627A1 (en) * 2015-02-19 2016-08-25 Qualcomm Incorporated Near field communication forum listen mode profiles
CN106851527A (en) * 2015-09-23 2017-06-13 联发科技股份有限公司 Near field communication means and near field communication method
US20180091193A1 (en) * 2016-09-26 2018-03-29 Blackberry Limited Efficient near field communication (nfc) tag detection and related methods
EP3598358A1 (en) * 2018-07-17 2020-01-22 Accenture Global Solutions Limited Managing a plurality of tag reader devices

Similar Documents

Publication Publication Date Title
US7076269B2 (en) Radio communication system for notifying incommunicable state, and device and method used for the system
US20090095804A1 (en) Rfid for connected accessory identification and method
CN111373348B (en) Application switching method and terminal
CN111182595B (en) Network switching method and device, storage medium and electronic equipment
US20060160569A1 (en) Cellular phone and portable storage device using the same
CN102196021A (en) System for remotely erasing data, method, server, and mobile device thereof
TW201520896A (en) A method for operating a program and a device thereof
CN105975063B (en) A kind of method and apparatus controlling intelligent terminal
CN106255033A (en) Information transmitting apparatus, method for sending information, portable terminal device
US20170116841A1 (en) Method and device for monitoring door lock state
US20230289128A1 (en) Electronic device for supporting audio sharing
CN111445331A (en) Transaction matching method and device
CN111338905A (en) Application node data processing method and device
EP1855230B1 (en) System and method for communications establishment
CN114828176A (en) Method, system, storage medium and electronic device for reducing NFC power consumption
CN108280375A (en) A kind of mobile terminal that can prevent illegal brush machine
US7930001B2 (en) Information processing apparatus and cellular phone
KR100670785B1 (en) User authentication system for shopping cart and method thereof
CN116126744A (en) Memory recycling method and device and terminal equipment
CN113438638B (en) Communication control method and electronic equipment
CN112866983B (en) Control method, control device and electronic equipment
CN114339325A (en) Multi-engine dynamic wallpaper playing method and device based on android system
KR101014267B1 (en) Method and system for providing dynamic insurance
CN113282361A (en) Window processing method and electronic equipment
CN107133021B (en) Information processing method and electronic equipment

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