CN115601029A - NFC function control method, NFC function control device and storage medium - Google Patents

NFC function control method, NFC function control device and storage medium Download PDF

Info

Publication number
CN115601029A
CN115601029A CN202110766887.5A CN202110766887A CN115601029A CN 115601029 A CN115601029 A CN 115601029A CN 202110766887 A CN202110766887 A CN 202110766887A CN 115601029 A CN115601029 A CN 115601029A
Authority
CN
China
Prior art keywords
nfc
card reading
reading event
read
user
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
CN202110766887.5A
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202110766887.5A priority Critical patent/CN115601029A/en
Publication of CN115601029A publication Critical patent/CN115601029A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/34Payment architectures, schemes or protocols characterised by the use of specific devices or networks using cards, e.g. integrated circuit [IC] cards or magnetic cards
    • G06Q20/356Aspects of software for card payments
    • G06Q20/3567Software being in the reader
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10198Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves setting parameters for the interrogator, e.g. programming parameters and operating modes

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Toxicology (AREA)
  • Health & Medical Sciences (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure relates to an NFC function control method, an NFC function control device and a storage medium, wherein the NFC function control method comprises the step of closing an NFC read-write function under the condition that an NFC card reading event is detected and is determined to be a card reading event triggered by non-user active operation. By the method, the NFC read-write function can be closed under the condition that the NFC card reading event is detected and determined to be the card reading event triggered by the non-user active operation, the card reading event triggered by the non-user active operation can be suspended from being processed, the purpose of reducing the power consumption of the terminal can be achieved, and the use experience of a user is improved.

Description

NFC function control method, NFC function control device and storage medium
Technical Field
The present disclosure relates to the field of communications, and in particular, to an NFC function control method, an NFC function control apparatus, and a storage medium.
Background
Near Field Communication (NFC), also called Near Field Communication, is a short-range high-frequency radio technology, which enables two devices supporting NFC function to transmit data in a non-contact manner, thereby realizing secure and simple two-way Communication. In the related art, the terminal may use the NFC read-write function to access the electronic tag supporting the NFC function to read the related information, so as to improve the user experience. However, in life, the phenomenon that the terminal is placed together with or very close to a bank card, a bus card and the like often exists, so that the terminal continuously calls the NFC read-write function to read electronic tag information in the cards such as the bank card, the bus card and the like, and power loss of the terminal is additionally caused.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides an NFC function control method, an NFC function control apparatus, and a storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided an NFC function control method, including:
detecting an NFC card reading event; and if the NFC card reading event is detected and is determined to be a card reading event triggered by non-user active operation, closing the NFC read-write function.
In one embodiment, the NFC function control method further includes:
if the NFC card reading event is detected, displaying a prompt message for a user to confirm the card reading event;
the determining that the NFC card reading event is a card reading event triggered by non-user active operation includes:
and if the user is determined to select to cancel the operation based on the prompt message or the user is determined not to operate the prompt message beyond a first set time length, determining the NFC card reading event to be a card reading event triggered by non-user active operation based on the attribute of the NFC card reading event.
In one embodiment, determining that the NFC card reading event is a card reading event triggered by a non-user active operation based on an attribute of the NFC card reading event includes:
if the card reading event triggered by the same card is continuously detected within a second set time length, determining that the NFC card reading event is a card reading event triggered by non-user active operation; and/or if the number of the card reading events detected within the third set time length exceeds a set number threshold, determining that the NFC card reading event is a card reading event triggered by non-user active operation.
In one embodiment, after the NFC read-write function is turned off, the method for controlling NFC function further includes:
and recovering the NFC read-write function.
In one embodiment, the recovering the NFC read-write function includes:
restoring the NFC read-write function in response to the detected operation for triggering the restoration of the read-write function; the operation for triggering the recovery of the read-write function comprises the following steps: and unlocking operation and/or operation of starting the application for calling the NFC read-write function.
In one embodiment, after the NFC read-write function is turned off, the method for controlling NFC function further includes:
and displaying a notification message, wherein the notification message is used for notifying that the NFC read-write function is closed and/or triggering the operation of recovering the NFC read-write function.
According to a second aspect of the embodiments of the present disclosure, there is provided an NFC function control apparatus including:
the detection unit is used for detecting an NFC card reading event; and the control unit is used for closing the NFC read-write function under the conditions that the NFC card reading event is detected and is determined to be a card reading event triggered by non-user active operation.
In one embodiment, the NFC function control apparatus further includes:
the prompting unit is used for displaying a prompting message for confirming the card reading event by a user under the condition of detecting the NFC card reading event; the control unit is used for determining that the NFC card reading event is the card reading event triggered by the non-user active operation based on the attribute of the NFC card reading event under the condition that the user selects to cancel the operation based on the prompt message or the user is determined not to operate the prompt message for more than a first set time length.
In one embodiment, the control unit is configured to:
if the card reading event triggered by the same card is continuously detected within a second set time length, the control unit determines that the NFC card reading event is the card reading event triggered by the non-user active operation; and/or if the number of the card reading events detected within the third set time length exceeds a set number threshold, the control unit determines that the NFC card reading event is a card reading event triggered by non-user active operation.
In one embodiment, the control unit is further configured to:
and recovering the NFC read-write function after the NFC read-write function is closed.
In one embodiment, in response to a detected operation for triggering recovery of a read-write function, the control unit recovers the NFC read-write function; the operation for triggering the recovery of the read-write function comprises the following steps: and unlocking operation and/or operation of starting an application for calling the NFC read-write function.
In one embodiment, the prompting unit is further configured to:
and displaying a notification message after the control unit closes the NFC read-write function, wherein the notification message is used for notifying that the NFC read-write function is closed and/or triggering the operation of recovering the NFC read-write function.
According to a third aspect of the embodiments of the present disclosure, there is provided an NFC function control apparatus including:
a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the NFC functionality control method described in the first aspect or any implementation manner of the first aspect.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the NFC function control method described in the first aspect or any one of the implementation manners of the first aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: under the condition that the NFC card reading event is detected and is determined to be the card reading event triggered by the non-user active operation, the NFC read-write function is closed, the card reading event triggered by the non-user active operation can be suspended from being processed, the purpose of reducing the power consumption of the terminal can be achieved, and the use experience of a user is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating an NFC functionality control method according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating an NFC functionality control method according to an example embodiment.
Fig. 3a is a flowchart illustrating an NFC functionality control method according to an example embodiment.
Fig. 3b is a flowchart illustrating a method of controlling NFC functionality according to an example embodiment.
Fig. 4 is a flowchart illustrating an NFC functionality control method according to an example embodiment.
Fig. 5 is a block diagram of an NFC-function control apparatus according to an example embodiment.
Fig. 6 is a block diagram illustrating an NFC-function control apparatus in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
NFC is a wireless technology of joint main push of various merchants at present. The technology is developed by integrating a non-contact Radio Frequency Identification (RFID) technology and an interconnection technology, namely, the functions of an induction type card reader, an induction type card and point-to-point are combined on a single chip, and the technology can realize the Identification and data exchange with compatible equipment in a short distance. This technology was originally a simple combination of RFID technology and network technology, and developed rather rapidly as technology iterations have now evolved into a short-range wireless communication technology. The NFC has the characteristics of bidirectional connection and identification, works in the frequency range of 13.56MHz, has the action distance within 10 centimeters, has the transmission speeds of 106Kbit/s, 212Kbit/s or 424Kbit/s, and can realize safe and simple bidirectional communication of two devices at a close distance. The NFC technology is standardized under the frameworks of ISO 18092, ECMA340 and ETSI TS 102 190, and is compatible with the widely applied infrastructures of ISO 14443Type-A, B and Felica standard contactless smart cards. The transmission speed, the codec method, the modulation scheme, and the frame format of the radio frequency interface of the NFC device are specified in the NFCIP-1 standard, and the standard also defines the transmission protocol of NFC, which includes a start protocol, a data exchange method, and the like.
At present, the application modes commonly used for NFC include a card mode, a card reader mode, an ad hoc mode, and the like. The card mode is characterized in that the NFC equipment is used as a data output party and is matched with corresponding NFC reading equipment for application such as local payment, access control, electronic tickets and the like. That is, when the application mode of NFC is the card mode, the terminal with NFC function is simulated as a non-contact card, such as an access card, a bank card, or the like, for identification by another terminal supporting the radio frequency identification function. The card reader mode has the characteristics that the NFC equipment is used as a data acquisition party, has a read-write function and can read related information from the electronic tag. The point-to-point mode is that two NFC devices are connected, and point-to-point data interaction is achieved. Typical applications of this model are to assist in establishing a bluetooth connection quickly, exchanging mobile phone business cards, and data communication.
In addition, the NFC operation mode is divided into a passive mode and an active mode. Wherein in the passive mode, the NFC initiator (also called master) needs a power supply device, the master provides a radio frequency field by using the energy of the power supply device and transmits data to the NFC target (also called slave), and the transmission rate needs to be selected from one of 106kbps, 212kbps and 424 kbps. The slave device does not generate a radio frequency field, so that a power supply device is not needed, the radio frequency field generated by the master device is converted into electric energy, the circuits of the slave device are powered, data sent by the master device are received, and the data of the slave device are transmitted back to the master device at the same speed by using a load modulation technology. In this mode of operation, the slave device does not generate a radio frequency field, and passively receives a radio frequency field generated by the master device, so the slave device is called a passive mode. In the active mode, both the initiator device and the target device must actively generate the radio frequency field when transmitting data to each other, so the mode is called active mode, and both the initiator device and the target device need a power supply device to provide energy for generating the radio frequency field. The communication mode between the initiating device and the target device belongs to the standard mode for communication between peer-to-peer networks, and a very fast connection rate can be obtained.
The card reader mode in the NFC application mode belongs to an active mode, that is, the terminal is required to provide energy for generating a radio frequency field when the terminal invokes the NFC read-write function. However, in life, a user may inadvertently put a card (a transportation card, an access card, a membership card, a bank card, etc.) and a terminal together or at a close distance from each other, so that the terminal may perform a card reading operation uninterruptedly.
In view of this, an embodiment of the present disclosure provides an NFC function control method applied to a terminal, where the NFC function control method detects an NFC card reading event, determines whether the NFC card reading event is triggered by active user operation if the NFC card reading event is detected, turns off an NFC read-write function if the NFC card reading event is not triggered by the active user operation, and executes a card reading process if the NFC card reading event is triggered by the active user operation. Therefore, the power consumption of the terminal can be reduced, and the use experience of a user is improved.
Further, the Terminal according to the embodiment of the present disclosure may also be referred to as a Terminal device, a User Equipment (UE), a Mobile Station (MS), a Mobile Terminal (MT), and the like, and is a device that provides voice and/or data connectivity to a User, for example, the Terminal may be a handheld device having a wireless connection function, a vehicle-mounted device, and the like. Currently, some examples of terminals are: a smart Phone (Mobile Phone), a Pocket Computer (PPC), a palm top Computer, a Personal Digital Assistant (PDA), a notebook Computer, a tablet Computer, a wearable device, or a vehicle-mounted device, etc. It should be understood that the embodiments of the present disclosure do not limit the specific technologies and the specific device forms adopted by the terminal.
Fig. 1 is a flowchart illustrating an NFC function control method according to an exemplary embodiment, where, as shown in fig. 1, the NFC function control method includes the following steps.
In step S11, an NFC card reading event is detected.
In the embodiment of the present disclosure, the NFC-enabled terminal includes three operation modes, i.e., a card reader mode, a card mode, and a point-to-point mode. The terminal has a read-write function in a card reader mode, a card function for another terminal to identify in a card mode, and a data interaction function in a point-to-point mode. Each function corresponding to the three operating modes is called as a full function for short, and the fact that the NFC in the terminal is in the open state is equivalent to the fact that the full function of the NFC is in the open state. And under the condition that the full functions of the NFC are in an open state, the terminal monitors whether an NFC card reading event exists in real time. When label information is close to the terminal, the terminal can detect an NFC card reading event.
In step S12, if the NFC card reading event is detected and determined to be a card reading event triggered by the non-user active operation, the NFC read-write function is turned off.
In the embodiment of the disclosure, when an NFC card reading event is detected, it is further determined whether the NFC card reading event is a card reading event triggered by a user active operation. And if the NFC card reading event is determined not to be the card reading event triggered by the active operation of the user, closing the NFC read-write function in the terminal. And if the NFC card reading event is determined to be the card reading event triggered by the active operation of the user, executing the NFC card reading operation. The NFC read-write function is closed aiming at the card reading event which is not triggered by the active operation of the user, so that the electric quantity of the terminal for actively generating a radio frequency field can be reduced, and the purpose of reducing the power consumption of the terminal is achieved.
In the embodiment of the disclosure, when an NFC card reading event is detected, a prompt message is displayed on the terminal for a user to confirm the card reading event, and whether the NFC card reading event is a card reading event triggered by the user active operation is confirmed according to the operation of the user on the prompt message, so as to further determine whether the user needs to invoke an NFC read-write function in the terminal at present. The display mode of the prompt message can be a text mode or a voice broadcast mode. And if the card reading event is in a text form, displaying a notice of detecting the NFC card reading event on a display screen of the terminal so as to inform a user of detecting the NFC card reading event, and displaying a label for representing that the current card reading event is processed by confirmation and a label for representing that the current card reading event is not processed by non-confirmation, such as 'confirmation' and 'cancellation'. And if the NFC card reading event is in a voice prompt mode, performing voice prompt when the terminal detects the NFC card reading event, and receiving a voice command issued by a user or an input text command. The method provides a plurality of prompting modes of prompting messages, is convenient for more friendly service users, and meets the requirements of different types of users.
Fig. 2 is a flowchart illustrating an NFC function control method according to an exemplary embodiment, and further, as shown in fig. 2, it is determined that an NFC card reading event is a card reading event triggered by a non-user active operation through the following steps.
In step S21, an operation performed by the user based on the prompt message is detected.
In the embodiment of the present disclosure, the prompt message is used for the user to confirm the card reading event, and the operation of the user on the prompt message is detected to confirm whether the user processes the current card reading event. Whether the current card reading event is actively operated by the user is confirmed through the prompt message, and misoperation of triggering the card reading event due to the fact that the read device is located in the reading range of the terminal is prevented.
In step S22, it is determined that the user selects a cancel operation based on the prompt message or that the user does not operate the prompt message for more than a first set time period.
In the embodiment of the disclosure, when it is detected that the operation of the user on the prompt message is cancelled, that is, the execution of the current card reading event is prohibited, it is determined that the NFC card reading event is the card reading event not triggered by the active operation of the user according to the attribute of the NFC card reading event. Or after the terminal displays the prompt message, if the fact that the user processes the prompt message is not detected in the first set time length, it is determined that the current card reading event is possibly misoperation.
In step S23, it is determined that the NFC card reading event is a card reading event triggered by non-user active operation based on the attribute of the NFC card reading event.
Further, according to the attribute of the NFC card reading event, the NFC card reading event is determined to be the card reading event which is not triggered by the active operation of the user. In the embodiment of the present disclosure, after detecting that the user performs a negative operation on the prompt message (i.e., does not process the current card reading event), it continues to determine whether the current NFC card reading event is a non-user active operation according to the attribute of the NFC card reading event, so as to: in order to eliminate the condition that the user is experiencing the NFC read-write function, the NFC read-write function of the terminal is tested through a plurality of cards or the same card.
In the embodiment of the present disclosure, NFC card reading events in various scenarios are card reading events triggered by non-user active operations, and for better clarity of the present application, in the embodiment, an NFC card reading event triggered by the same card is continuously detected within a set time duration, and a card reading event is frequently triggered due to poor signal quality of a communication link between a read card and a terminal is taken as an example for description.
Fig. 3a is a flowchart illustrating an NFC function control method according to an exemplary embodiment, and as shown in fig. 3a, determining that an NFC card-reading event is a card-reading event triggered by non-user active operation based on an attribute of the NFC card-reading event includes the following steps.
In step S231a, a card reading event triggered by the same card is continuously detected for a second set time period.
In step S232a, if the card reading event triggered by the same card is continuously detected within the second set time period, it is determined that the NFC card reading event is the card reading event triggered by the non-user active operation.
And if the NFC card reading event triggered by the same card is continuously detected within a second set time length, the NFC card reading event belongs to the card reading event triggered by the non-user active operation. For example, when a user puts a bus card and a terminal together, the bus card as a tag triggers the terminal to detect a card reading event, and the terminal continuously detects the card reading event triggered by the bus card, but obviously, the card reading event is not the card reading event actively triggered by the user, and more importantly, the user does not know that the terminal is frequently performing power consumption card reading at present. Therefore, in order to avoid the situation from occurring continuously, if the card reading event triggered by the same card is detected continuously within a second set time length (for example, 30 seconds), it is determined that the NFC card reading event is the card reading event triggered by the non-user active operation, and the NFC read-write function is turned off.
Fig. 3b is a flowchart illustrating a method for controlling an NFC function according to an exemplary embodiment, where as shown in fig. 3b, determining that an NFC card-reading event is a card-reading event triggered by non-user active operation based on an attribute of the NFC card-reading event includes the following steps.
In step S231b, the number of card reading events is detected within the third set time period.
In step S232b, if the number of the detected card reading events within the third set time period exceeds the set number threshold, it is determined that the NFC card reading event is a card reading event triggered by the non-user active operation.
And when the number of times of the card reading events is detected within a third set time length and the total number of times of the card reading events detected within the third set time length exceeds a set number threshold, determining that the NFC card reading event is not the card reading event triggered by the active operation of the user. The situation is caused because the signal quality of a communication link between the read card and the terminal does not meet the set signal quality threshold, so that the card reading operation is rapidly and frequently performed in a short time, and the read information is not enough to prompt a user to detect the card reading event although the card reading operation is triggered. For example, the communication link established between the terminal and the card to be read is weak due to distance or insufficient power of the terminal, so that the card reading operation is performed rapidly and frequently (for example, more than 6 times) within the third set time period.
In this embodiment of the present disclosure, after the NFC read-write function is turned off, the NFC function control method further includes recovering the NFC read-write function. The NFC read-write function is temporarily closed after the NFC card reading event is determined to be the card reading event triggered by the non-user active operation, so that the power consumption of the terminal can be reduced, and the NFC read-write function is recovered after the NFC read-write function is closed, so that the use experience of a user can be improved.
Further, if the detected operation for triggering recovery of the read-write function is detected, the NFC read-write function is recovered. In the embodiment of the present disclosure, the operation for triggering recovery of the read-write function may be an unlocking operation, or may be an operation in which an application calling the NFC read-write function is started, for example, when a user opens an APP related to reading card information, the APP may call the NFC read-write function, so as to recover the NFC read-write function of the terminal, or may be an operation in which an application calling the NFC read-write function is started after the unlocking operation.
In this embodiment of the present disclosure, after the NFC read-write function is turned off, the NFC function control method further includes displaying a notification message for notifying that the NFC read-write function is turned off, and may further display an operation of triggering recovery of the NFC read-write function. According to the embodiment of the disclosure, the NFC read-write function of the user is informed to be closed after the NFC read-write function is closed, so that the user is prevented from continuing to perform card reading operation under the condition that the NFC read-write function is not known to be closed. The embodiment of the disclosure also informs the user of the operation of recovering the NFC read-write function through message notification, so that the user can conveniently execute the operation of recovering the NFC read-write function according to the prompt and continue to use the NFC read-write function. The notification message may be in a text form or a voice form, and this embodiment is not limited in particular.
Fig. 4 is a flowchart illustrating an NFC functionality control method according to an exemplary embodiment, which includes the following steps, as shown in fig. 4.
In step S41, it is determined whether or not the NFC full function in the terminal is in an on state. If yes, step S42 is executed, otherwise, the NFC function control is ended.
In step S42, the terminal detects an NFC card reading event.
In step S43, it is determined whether the NFC card reading event is a card reading event triggered by a user active operation. And executing the step S44 if the NFC card reading event is not the card reading event triggered by the active operation of the user, otherwise, ending the NFC function control.
In step S44, it is determined whether the NFC card reading event satisfies a non-user active operation trigger condition. And if the NFC card reading event meets the triggering condition of the non-user active operation, closing the NFC read-write function, and otherwise, ending the NFC function control.
In the embodiment of the present disclosure, the non-user active operation trigger condition includes: if the card reading event triggered by the same card is continuously detected within a second set time length; and/or if the number of the detected card reading events in the third set time length exceeds the set number threshold.
In step S45, the user is notified that the NFC read-write function has been turned off.
In step S46, the NFC read-write function is restored when the terminal is unlocked or an application calling the NFC read-write function is started.
By the NFC function control method provided by the embodiment of the disclosure, the NFC function can be reasonably controlled, and when an NFC card reading event is detected and is determined to be a card reading event triggered by non-user active operation, the NFC read-write function is temporarily closed, so that the purpose of reducing the power consumption of the terminal is achieved.
Based on the same conception, the embodiment of the disclosure also provides an NFC function control device.
It is to be understood that, in order to implement the above functions, the NFC function control apparatus provided in the embodiments of the present disclosure includes a hardware structure and/or a software module corresponding to the execution of each function. The disclosed embodiments can be implemented in hardware or a combination of hardware and computer software, in combination with the exemplary elements and algorithm steps disclosed in the disclosed embodiments. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
Fig. 5 is a block diagram of an NFC-function control apparatus according to an example embodiment. Referring to fig. 5, the NFC function control apparatus 100 includes a detection unit 101, a control unit 102, and a presentation unit 103.
The detection unit 101 is used for detecting an NFC card reading event; the control unit 102 is configured to close the NFC read-write function when the NFC card-reading event is detected and it is determined that the NFC card-reading event is a card-reading event triggered by an active operation of a non-user.
In an embodiment of the present disclosure, the NFC function control apparatus further includes:
the prompting unit 103 is configured to display a prompting message for a user to confirm a card reading event when an NFC card reading event is detected;
the control unit 102 is configured to determine, based on an attribute of the NFC card reading event, that the NFC card reading event is a card reading event triggered by an active operation of a non-user when it is determined that the user selects to cancel the operation based on the prompt message or it is determined that the user does not operate the prompt message for more than a first set time period.
In the embodiment of the present disclosure, if a card reading event triggered by the same card is continuously detected within a second set time period, the control unit 102 determines that the NFC card reading event is a card reading event triggered by non-user active operation; and/or if the number of the detected card reading events in the third set time length exceeds the set number threshold, the control unit 102 determines that the NFC card reading event is a card reading event triggered by the non-user active operation.
In this embodiment of the present disclosure, the control unit 102 is further configured to restore the NFC read-write function after the NFC read-write function is closed.
In the embodiment of the present disclosure, in response to a detected operation for triggering recovery of a read-write function, the control unit 102 recovers the NFC read-write function; the operation for triggering the recovery of the read-write function comprises the following steps: and unlocking operation and/or operation of starting an application for calling the NFC read-write function.
In this embodiment of the present disclosure, the prompting unit 103 is further configured to:
and displaying a notification message after the control unit 102 closes the NFC read-write function, wherein the notification message is used for notifying that the NFC read-write function is closed and/or triggering an operation of recovering the NFC read-write function.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 6 is a block diagram illustrating an apparatus 200 for NFC functionality control according to an example embodiment. For example, the apparatus 200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 6, the apparatus 200 may include one or more of the following components: a processing component 202, a memory 204, a power component 206, a multimedia component 208, an audio component 210, an input/output (I/O) interface 212, a sensor component 214, and a communication component 216.
The processing component 202 generally controls overall operation of the device 200, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 202 may include one or more processors 220 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 202 can include one or more modules that facilitate interaction between the processing component 202 and other components. For example, the processing component 202 can include a multimedia module to facilitate interaction between the multimedia component 208 and the processing component 202.
The memory 204 is configured to store various types of data to support operations at the apparatus 200. Examples of such data include instructions for any application or method operating on device 200, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 204 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 206 provide power to the various components of device 200. The power components 206 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the apparatus 200.
The multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 208 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 200 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 210 is configured to output and/or input audio signals. For example, audio component 210 includes a Microphone (MIC) configured to receive external audio signals when apparatus 200 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 204 or transmitted via the communication component 216. In some embodiments, audio component 210 also includes a speaker for outputting audio signals.
The I/O interface 212 provides an interface between the processing component 202 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 214 includes one or more sensors for providing various aspects of status assessment for the device 200. For example, the sensor assembly 214 may detect an open/closed state of the device 200, the relative positioning of components, such as a display and keypad of the device 200, the sensor assembly 214 may also detect a change in the position of the device 200 or a component of the device 200, the presence or absence of user contact with the device 200, the orientation or acceleration/deceleration of the device 200, and a change in the temperature of the device 200. The sensor assembly 214 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 214 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 214 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 216 is configured to facilitate wired or wireless communication between the apparatus 200 and other devices. The device 200 may access a wireless network based on a communication standard, such as WiFi,4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 216 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 216 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 200 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as memory 204, comprising instructions executable by processor 220 of device 200 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
It is understood that "a plurality" in this disclosure means two or more, and other words are analogous. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. The singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It will be further understood that the terms "first," "second," and the like, are used to describe various information and should not be limited by these terms. These terms are only used to distinguish one type of information from another and do not denote a particular order or importance. Indeed, the terms "first," "second," etc. are used interchangeably throughout. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure.
It will be further understood that, unless otherwise specified, "connected" includes direct connections between the two without the presence of other elements, as well as indirect connections between the two with the presence of other elements.
It will be further appreciated that while operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in serial order, or that all illustrated operations be performed, to achieve desirable results. In certain environments, multitasking and parallel processing may be advantageous.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice in the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the scope of the appended claims.

Claims (14)

1. An NFC function control method, characterized in that the NFC function control method comprises:
detecting an NFC card reading event;
and if the NFC card reading event is detected and is determined to be a card reading event triggered by non-user active operation, closing the NFC read-write function.
2. The NFC function control method according to claim 1, further comprising:
if the NFC card reading event is detected, displaying a prompt message for a user to confirm the card reading event;
the determining that the NFC card reading event is a card reading event triggered by non-user active operation includes:
and if the user is determined to select to cancel the operation based on the prompt message or the user is determined not to operate the prompt message beyond a first set time length, determining the NFC card reading event to be a card reading event triggered by non-user active operation based on the attribute of the NFC card reading event.
3. The NFC function control method of claim 2, wherein determining, based on the attribute of the NFC card reading event, that the NFC card reading event is a card reading event triggered by a non-user active operation comprises:
if the card reading event triggered by the same card is continuously detected within a second set time length, determining that the NFC card reading event is a card reading event triggered by non-user active operation;
and/or
And if the number of the detected card reading events in the third set time length exceeds the set number threshold, determining that the NFC card reading event is a card reading event triggered by non-user active operation.
4. The NFC function control method according to claim 1, wherein after the NFC read-write function is turned off, the NFC function control method further includes:
and recovering the NFC read-write function.
5. The NFC function control method of claim 4, wherein restoring the NFC read-write function comprises:
restoring the NFC read-write function in response to the detected operation for triggering the restoration of the read-write function;
the operation for triggering the recovery of the read-write function comprises the following steps: and unlocking operation and/or operation of starting an application for calling the NFC read-write function.
6. The NFC function control method according to any one of claims 1 to 3, wherein after the NFC read-write function is turned off, the NFC function control method further includes:
and displaying a notification message, wherein the notification message is used for notifying that the NFC read-write function is closed and/or triggering the operation of recovering the NFC read-write function.
7. An NFC function control apparatus, comprising:
the detection unit is used for detecting an NFC card reading event;
and the control unit is used for closing the NFC read-write function under the conditions that the NFC card reading event is detected and is determined to be a card reading event triggered by non-user active operation.
8. The NFC function control apparatus according to claim 7, further comprising:
the prompting unit is used for displaying a prompting message for confirming the card reading event by a user under the condition of detecting the NFC card reading event;
the control unit is used for determining that the NFC card reading event is the card reading event triggered by the non-user active operation based on the attribute of the NFC card reading event under the condition that the user selects to cancel the operation based on the prompt message or the user is determined not to operate the prompt message for more than a first set time length.
9. The NFC functionality control apparatus of claim 8,
if a card reading event triggered by the same card is continuously detected within a second set time length, the control unit determines that the NFC card reading event is a card reading event triggered by non-user active operation;
and/or
If the number of the detected card reading events in the third set duration exceeds a set number threshold, the control unit determines that the NFC card reading event is a card reading event triggered by non-user active operation.
10. The NFC function control apparatus according to claim 7, wherein the control unit is further configured to:
and recovering the NFC read-write function after the NFC read-write function is closed.
11. The NFC function control apparatus of claim 10,
responding to the detected operation for triggering the recovery of the read-write function, and recovering the NFC read-write function by the control unit;
the operation for triggering the recovery of the read-write function comprises the following steps: and unlocking operation and/or operation of starting an application for calling the NFC read-write function.
12. The NFC function control device according to any one of claims 8 to 9, wherein the prompting unit is further configured to:
and displaying a notification message after the control unit closes the NFC read-write function, wherein the notification message is used for notifying that the NFC read-write function is closed and/or triggering the operation of recovering the NFC read-write function.
13. An NFC function control apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the NFC function control method of any one of claims 1 to 6.
14. A non-transitory computer-readable storage medium having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform the NFC functionality control method of any of claims 1 to 6.
CN202110766887.5A 2021-07-07 2021-07-07 NFC function control method, NFC function control device and storage medium Pending CN115601029A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110766887.5A CN115601029A (en) 2021-07-07 2021-07-07 NFC function control method, NFC function control device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110766887.5A CN115601029A (en) 2021-07-07 2021-07-07 NFC function control method, NFC function control device and storage medium

Publications (1)

Publication Number Publication Date
CN115601029A true CN115601029A (en) 2023-01-13

Family

ID=84841357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110766887.5A Pending CN115601029A (en) 2021-07-07 2021-07-07 NFC function control method, NFC function control device and storage medium

Country Status (1)

Country Link
CN (1) CN115601029A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117119566A (en) * 2023-02-07 2023-11-24 荣耀终端有限公司 Interrupt processing method and electronic equipment
CN117135730A (en) * 2023-02-07 2023-11-28 荣耀终端有限公司 Interrupt processing method and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117119566A (en) * 2023-02-07 2023-11-24 荣耀终端有限公司 Interrupt processing method and electronic equipment
CN117135730A (en) * 2023-02-07 2023-11-28 荣耀终端有限公司 Interrupt processing method and electronic equipment

Similar Documents

Publication Publication Date Title
KR101772622B1 (en) method, apparatus, electronic device, program and recording medium for controlling state of terminal screen
EP3200116B1 (en) Method and apparatus for acquiring information via a virtual identity module from lost or stolen terminal
CN106453052B (en) Message interaction method and device
EP3913945A1 (en) Data switching method, data switching apparatus and storage medium
CN115601029A (en) NFC function control method, NFC function control device and storage medium
EP3322227B1 (en) Methods and apparatuses for controlling wireless connection, computer program and recording medium
KR20140091322A (en) Method and apparatus thereof for displaying screen with eye tracking in portable terminal
US20200076485A1 (en) Wireless communication device and method for switching antenna
EP3048508A1 (en) Methods, apparatuses and devices for transmitting data
CN106658754B (en) Method and device for recovering network connection
EP3190561A1 (en) Method and device for sending information
US20220240247A1 (en) A time domain configuration method, device, and storage media
EP3904969A1 (en) Information processing method, wearable electronic device, electronic device and storage medium
CN106550012B (en) Monitoring method of intelligent equipment and intelligent equipment
KR20190067588A (en) Mobile terminal and method for controlling the sagme
CN111566897A (en) Wireless charging authentication method and device, communication equipment and storage medium
CN112423092A (en) Video recording method and video recording device
CN107071859B (en) It is connected to the network processing method, device and terminal
CN106774902B (en) Application locking method and device
KR20140118532A (en) Mobile terminal loss prevention system
CN107708106B (en) User identification card management method and user identification card management device
CN114724196A (en) False touch prevention method and device, electronic equipment and storage medium
CN112130787A (en) Electronic equipment, display signal transmission system, method and device
KR102018657B1 (en) Mobile terminal and Operationg method thereof
KR101984182B1 (en) Mobile terminal and method for controlling of the same

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