CN115623118B - Near field communication control method and electronic equipment - Google Patents

Near field communication control method and electronic equipment Download PDF

Info

Publication number
CN115623118B
CN115623118B CN202211463187.XA CN202211463187A CN115623118B CN 115623118 B CN115623118 B CN 115623118B CN 202211463187 A CN202211463187 A CN 202211463187A CN 115623118 B CN115623118 B CN 115623118B
Authority
CN
China
Prior art keywords
nfc
electronic device
function
electronic equipment
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.)
Active
Application number
CN202211463187.XA
Other languages
Chinese (zh)
Other versions
CN115623118A (en
Inventor
姬国娟
王子
孟宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211463187.XA priority Critical patent/CN115623118B/en
Publication of CN115623118A publication Critical patent/CN115623118A/en
Application granted granted Critical
Publication of CN115623118B publication Critical patent/CN115623118B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • H04B5/70
    • H04B5/77
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Abstract

The embodiment of the application discloses a near field communication control method and electronic equipment, relates to the field of electronic equipment, and can avoid that the electronic equipment still displays a corresponding card swiping interface when a user does not need to use the electronic equipment to swipe cards, thereby improving the experience of the user. The specific scheme is as follows: the electronic equipment displays a first interface, wherein the first interface comprises an NFC opening control; the method comprises the steps that the electronic equipment receives a first operation of a user on an NFC opening control; in response to a first operation, the electronic device starts an NFC function, wherein the NFC function comprises a card simulation function and a reader-writer function; the electronic equipment displays a second interface, wherein the second interface comprises an NFC non-disturbing control; the electronic equipment receives a second operation of the NFC non-disturbing control by the user; and responding to the second operation, and starting the NFC non-disturbing function by the electronic equipment, wherein the electronic equipment starts the NFC non-disturbing function and comprises an electronic equipment closing card simulation function.

Description

Near field communication control method and electronic equipment
Technical Field
The present application relates to the field of electronic devices, and in particular, to a near field communication control method and an electronic device.
Background
With the development of communication technology, electronic devices such as mobile phones use near field communication (Near Field Communication, NFC) functions in a wider and wider range of scenarios. For example, an electronic device having an NFC function turned on may be used as a wallet, a traffic card, an access card, or the like.
In general, after the electronic device turns on the NFC function, when a user needs to use the electronic device, for example, when the user takes a bus, in a case that the user uses the electronic device to approach the card swiping device, the electronic device receives a radio frequency signal emitted by the card swiping device, so that the electronic device displays a corresponding card swiping interface, and thus, a bus fee is paid through the corresponding card swiping interface.
Based on the above mode, the electronic equipment displays the corresponding card swiping interface as long as the electronic equipment is in the radio frequency field. This results in the electronic device still displaying a corresponding swipe interface when the electronic device is in the rf field and the user does not need to swipe the card using the electronic device.
Disclosure of Invention
The embodiment of the application provides a near field communication control method and electronic equipment, which can avoid that the electronic equipment still displays a corresponding card swiping interface when a user does not need to use the electronic equipment to swipe cards.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical scheme:
in a first aspect, an embodiment of the present application provides a near field communication control method, which is applied to an electronic device having a near field communication NFC function, where the near field communication control method may include: the electronic equipment displays a first interface, wherein the first interface comprises an NFC opening control; the method comprises the steps that the electronic equipment receives a first operation of a user on an NFC opening control; in response to a first operation, the electronic device starts an NFC function, wherein the NFC function comprises a card simulation function and a reader-writer function; the electronic equipment displays a second interface, wherein the second interface comprises an NFC non-disturbing control; the electronic equipment receives a second operation of the NFC non-disturbing control by the user; and responding to the second operation, and starting the NFC non-disturbing function by the electronic equipment, wherein the electronic equipment starts the NFC non-disturbing function and comprises an electronic equipment closing card simulation function.
Based on the near field communication control method of the first aspect, an NFC non-disturbing mode is added on the basis of NFC opening. After the electronic device turns on the NFC no-disturb mode, the electronic device may turn off the card emulation function. After the electronic equipment closes the card simulation function, the electronic equipment cannot be used as a virtual card to rewrite data by other equipment, so that the situation that when a user does not need to use the electronic equipment to swipe the card, but the electronic equipment is in a radio frequency field, the electronic equipment still displays a corresponding card swiping interface is avoided, and the user experience is improved. And because the electronic equipment closes the card simulation function after the NFC non-disturbing mode is started, the electronic equipment cannot swipe the card, so that a user can know that the electronic equipment cannot swipe the card after the NFC non-disturbing mode is started, and the user experience is further improved.
With reference to the first aspect, in one possible implementation manner, the enabling, by the electronic device, the NFC non-disturbing function may include: the electronic equipment displays a third interface, wherein the third interface comprises a first time setting control, and the first time setting control is used for triggering the electronic equipment to close the card simulation function in a preset time period; the electronic equipment receives a third operation of the first time setting control by a user; in response to the third operation, the electronic device turns off the card simulation function for a preset period of time.
Based on the possible implementation manner, when the electronic device starts the NFC do not disturb function, the user can select to close the card simulation function within a preset time period, and the electronic device can close the card simulation function within the preset time period, so that the user can avoid swiping a card without using the electronic device within the preset time period, and the electronic device still displays a corresponding card swiping interface when the electronic device is in a radio frequency field.
With reference to the first aspect, in a possible implementation manner, the third interface may further include a second time setting control, where the second time setting control is used to trigger a user of the electronic device to set a no-disturbance time period, and the near field communication control method may further include: the electronic equipment receives a fourth operation of the second time setting control by the user; in response to the fourth operation, the electronic device displays a fourth interface, wherein the fourth interface comprises a first option and a second option, the first option is used for setting the starting time of the no-disturbance time period, and the second option is used for setting the closing time of the no-disturbance time period; the electronic equipment receives a first setting operation of a user on the first option and the second option; in response to the first setting operation, the electronic device turns off the card simulation function for a no-disturbance time period.
Based on the possible implementation manner, when the electronic device starts the NFC do not disturb function, the user can select to close the card simulation function in the user-defined time period, and the electronic device can close the card simulation function in the user-defined time period, so that the user can avoid swiping a card in the user-defined time period without using the electronic device, and the electronic device still displays a corresponding card swiping interface when the electronic device is in a radio frequency field.
With reference to the first aspect, in one possible implementation manner, the electronic device may start an NFC function, which may include: the electronic equipment realizes the card simulation function and the reader-writer function in one radio frequency period; the electronic device may start the NFC no-disturb function, and may include: the electronic device realizes the function of a reader-writer in a radio frequency period.
Based on the possible implementation manner, when the electronic equipment starts the NFC function, the electronic equipment can start the card simulation function and the reader-writer function in a radio frequency period, so that the NFC function is realized, when the electronic equipment starts the NFC disturbance-free function, the electronic equipment can close the card simulation function and keep the reader-writer function to be started, so that the situation that a user does not need to use the electronic equipment to swipe a card is avoided, but when the electronic equipment is in a radio frequency field, the electronic equipment still displays a corresponding card swiping interface, and the user experience is improved.
With reference to the first aspect, in one possible implementation manner, after the electronic device turns on the NFC non-disturbing function, the near field communication control method may further include: the electronic equipment receives a fifth operation of a user on an NFC closing control, wherein the NFC closing control is arranged on the first interface or the second interface; in response to the fifth operation, the electronic device turns off the NFC functionality.
Based on the possible implementation manner, after the electronic device starts the NFC function or starts the NFC non-disturbing function, the user can select to close the NFC function or start the NFC non-disturbing function, so that the use experience of the user can be improved.
With reference to the first aspect, in one possible implementation manner, the electronic device may turn off an NFC function, and the method may include: the electronic device turns off the card emulation function and the reader/writer function.
Based on the possible implementation manner, when the user selects to close the NFC function of the electronic device, the electronic device may close the card emulation function and the reader/writer function, so that the electronic device may close the NFC function.
With reference to the first aspect, in one possible implementation manner, the electronic device may include a first application program, and before the electronic device displays the first interface, the near field communication control method may further include: the electronic equipment receives a second setting operation of the user on the first application program; and responding to the second setting operation, and setting the first application program as a default application program corresponding to the NFC function by the electronic equipment.
Based on the possible implementation manner, when the electronic device sets the first application program as the default application program corresponding to the NFC function, the electronic device can be triggered to display the first interface, so that an NFC non-disturbing mode is added on the basis of opening NFC, and the situation that a user does not need to use the electronic device to swipe cards is avoided, but the electronic device still displays the corresponding card swiping interface when the electronic device is in a radio frequency field is avoided, and the experience of the user is improved.
With reference to the first aspect, in one possible implementation manner, the first application may include a bank card application, a bus card application, or an access card application.
Based on the possible implementation manner, when the electronic device sets the bank card application program, the bus card application program or the entrance guard card application program as the default application program corresponding to the NFC function, namely, when the virtual card corresponding to the bank card, the bus card or the entrance guard card is set as the default virtual card corresponding to the NFC function, the electronic device can be triggered to display the first interface, so that the NFC interference-free mode is increased on the basis of opening NFC, and therefore, the situation that a user does not need to use the electronic device to swipe cards is avoided, but the electronic device still displays the corresponding card-swiping interface when the electronic device is in a radio frequency field, and the experience of the user is improved.
In a second aspect, an embodiment of the present application provides a near field communication control device, where the near field communication control device may be applied to an electronic apparatus, for implementing the method in the first aspect. The function of the near field communication control device can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions, for example, a display module, an opening module, a receiving module, and the like.
The display module can be used for displaying a first interface, and the first interface comprises an NFC opening control.
And an opening module, which is used for responding to the first operation and opening the NFC function, wherein the NFC function comprises a card simulation function and a reader-writer function.
And the receiving module can be used for receiving a second operation of the NFC non-disturbing control by the user.
The display module is further configured to display a second interface, where the second interface includes an NFC no-disturb control.
The receiving module is further configured to receive a second operation of the NFC non-disturbing control by the user.
The starting module is further configured to start an NFC non-disturbing function in response to the second operation, where the starting of the NFC non-disturbing function includes the electronic device closing card simulation function.
With reference to the second aspect, in one possible implementation manner, the display module may be further configured to display a third interface, where the third interface includes a first time setting control, and the first time setting control is configured to trigger the electronic device to close the card simulation function within a preset period of time.
The receiving module is further configured to receive a third operation of the first time setting control by the user.
The near field communication control device may further include a closing module.
And a closing module for closing the card simulation function for a preset period of time in response to the third operation.
With reference to the second aspect, in a possible implementation manner, the receiving module may be further configured to receive a fourth operation of the second time setting control by a user.
The display module is further configured to respond to a fourth operation, display a fourth interface, where the fourth interface includes a first option and a second option, the first option is used to set an on time of the no-disturbance time period, and the second option is used to set an off time of the no-disturbance time period.
The receiving module is further configured to receive a first setting operation of the first option and the second option by the user.
The closing module is further configured to close the card simulation function during the no-disturbance time period in response to the first setting operation.
With reference to the second aspect, in one possible implementation manner, the starting module may be used to implement a card analog function and a reader function in one radio frequency period. The starting module can also be used for realizing the function of a reader-writer in a radio frequency period.
With reference to the second aspect, in one possible implementation manner, the receiving module may be further configured to receive a fifth operation of the NFC close control by a user, where the NFC close control is disposed on the first interface or the second interface.
The closing module may be further configured to close the NFC function in response to a fifth operation.
With reference to the second aspect, in one possible implementation manner, the shutdown module may also be used to shut down the card analog function and the reader/writer function.
With reference to the second aspect, in one possible implementation manner, the receiving module may be further configured to receive a second setting operation of the first application by the user.
The near field communication control device may further include a setting module.
The setting module may be configured to set the first application program as a default application program corresponding to the NFC function in response to the second setting operation.
With reference to the second aspect, in one possible implementation manner, the first application may include a bank card application, a bus card application, or an access card application.
In a third aspect, a near field communication control device is provided, which has the functionality to implement the method of the first aspect described above. The functions can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above.
In a fourth aspect, there is provided a near field communication control device comprising: a processor and a memory; the memory is configured to store computer-executable instructions that, when executed by the near field communication control device, cause the near field communication control device to perform the near field communication control method according to any one of the first aspects.
In a fifth aspect, there is provided a near field communication control device comprising: a processor; the processor is configured to couple with the memory and execute the near field communication control method according to any one of the first aspect according to the instruction after reading the instruction in the memory.
In a sixth aspect, embodiments of the present application provide a computer readable storage medium having computer program instructions stored thereon. The computer program instructions, when executed by an electronic device, cause the electronic device to implement the near field communication control method as described in the first aspect or any one of the possible implementation manners of the first aspect.
In a seventh aspect, embodiments of the present application provide a computer program product comprising computer readable code which, when run in an electronic device, causes the electronic device to implement the near field communication control method according to the first aspect or any of the possible implementations of the first aspect.
In an eighth aspect, there is provided an apparatus (e.g. the apparatus may be a system-on-a-chip) comprising a processor for supporting an electronic device to implement the functions referred to in the first aspect above. In one possible design, the apparatus further includes a memory for storing program instructions and data necessary for the electronic device. When the device is a chip system, the device can be formed by a chip, and can also comprise the chip and other discrete devices.
It should be appreciated that the advantages of the second to eighth aspects may be referred to in the description of the first aspect, and are not described herein.
Drawings
Fig. 1 is a schematic diagram of a radio frequency discovery period according to an embodiment of the present application;
fig. 2 is a schematic diagram of an application scenario of near field communication according to an embodiment of the present application;
fig. 3 is a schematic diagram of a near field communication control according to an embodiment of the present application;
Fig. 4 is a schematic hardware structure of an electronic device according to an embodiment of the present application;
fig. 5 is a schematic software structure of an electronic device according to an embodiment of the present application;
fig. 6 is a schematic flow chart of a near field communication control method according to an embodiment of the present application;
fig. 7 is a schematic diagram of a display interface of an electronic device according to an embodiment of the present application;
fig. 8 is a second schematic flow chart of a near field communication control method according to an embodiment of the present application;
fig. 9 is a schematic diagram of a near field communication control setting time period according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a near field communication control device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present application, unless otherwise indicated, the meaning of "a plurality" is two or more.
With the development of communication technology, electronic devices such as mobile phones use near field communication (Near Field Communication, NFC) functions in a wider and wider range of scenarios. After the NFC function is turned on, the NFC function of the electronic device may include a reader/writer function and a card emulation function.
The reader-writer function of the electronic device, namely, the electronic device (such as a mobile phone with an NFC function and the like) is used as a reader-writer, and can read and write a non-contact card or an NFC label and the like. For example, the electronic device can be used as a reader-writer to read and write the bus card, so as to inquire or recharge the balance of the bus card. The card simulation function of the electronic equipment is to simulate the electronic equipment into a virtual card for use, for example, the electronic equipment can simulate a bus card to punch cards for riding.
That is, after the NFC function is turned on, the NFC mode corresponding to the NFC function of the electronic device may include a reader/writer mode (i.e., an active mode) and a card emulation mode (i.e., a passive mode). When the NFC mode of the electronic equipment is a reader-writer mode, the electronic equipment can be used as a main equipment for reading and writing data of cards such as bus cards. When the NFC mode of the electronic device is the card emulation mode, the electronic device may be used as a virtual card to rewrite data by other devices (e.g., a card swiping device).
Currently, the NFC functionality of electronic devices only supports NFC on or NFC off states. After the electronic device turns on the NFC functionality, the electronic device polls the reader mode and the card emulation mode for a period of radio frequency discovery (radiofrequency discover). For example, as shown in connection with fig. 1, one radio frequency discovery period may include a polling mode (i.e., poll mode) and a listening mode (i.e., listen mode). In the polling mode, the NFC mode of the electronic device is a reader-writer mode, that is, the electronic device may implement a reader-writer function. The electronic device may query remote NFC devices corresponding to different virtual cards (e.g., virtual card NFC-se:Sub>A, virtual card NFC-B, and virtual card NFC-C) in the polling mode. If the electronic device does not query the remote NFC device corresponding to the He Xuni card in the polling mode, the electronic device may enter the listening mode. If the electronic device queries the far-end NFC device corresponding to any virtual card in the polling mode, the electronic device can be used as a master device for reading and writing data of the virtual card.
In the listening mode, the NFC mode of the electronic device is a card emulation mode (CE), i.e. the electronic device can implement a card emulation function. In the listening mode, the electronic device can rewrite data as a card by other devices when the electronic device is queried by the other devices (card swiping devices). When the monitoring mode is not queried by any device, the electronic device can enter the next radio frequency discovery period, and the polling mode and the monitoring mode are repeated.
That is, when the NFC of the electronic device is turned on, the polling mode of the electronic device is turned on, and the listening mode is also turned on. When the NFC of the electronic equipment is closed, the polling mode of the electronic equipment is closed, and the monitoring mode is also closed.
Generally, after the electronic device turns on the NFC function, when a user needs to use the electronic device, for example, when the user takes a bus, in a case that the electronic device approaches to the card swiping device, the electronic device may receive a radio frequency signal transmitted by the card swiping device (such as an NFC card reader) in a listening mode of a radio frequency transmission period, so that the electronic device may display a corresponding card swiping page, thereby paying a bus fee through the corresponding card swiping page.
For example, after the NFC function is started, the user may set the bus card as a default card through the mobile phone, so that when the user approaches the mobile phone to an NFC card reader (e.g., a point of sale (POS) machine) on the bus, that is, a card swiping device, data exchange is performed with the NFC card reader, thereby implementing various NFC functions, such as card swiping, data transmission, and the like. As shown in fig. 2 (a), the mobile phone 201 has an NFC function, and when a user takes a bus with a default card on the mobile phone, the user can bring the mobile phone 201 close to the NFC reader 202 on the bus. When the user brings the mobile phone 201 close to the NFC reader 202 on the bus, the mobile phone 201 receives a radio frequency signal emitted by the NFC reader 202. As shown in fig. 1 (b), the mobile phone 201 may display a card swiping interface corresponding to a bus card, so that the mobile phone 201 may exchange data with the NFC card reader 202 on the bus, that is, the mobile phone 201 finishes payment of the bus taking fee.
Based on the above manner, as long as the electronic device is in the rf field (e.g., the electronic device is within the range of the rf signal emitted by the card swiping device, which may also be referred to as a strong magnetic field), the electronic device will display the corresponding card swiping page (i.e., the electronic device performs card swiping). This results in the electronic device still displaying a corresponding swipe interface when the electronic device is in the rf field and the user does not need to swipe the card using the electronic device. Or, when a plurality of electronic devices touch by mistake, the electronic devices display corresponding card swiping interfaces.
For example, as shown in fig. 2 (c), the user does not need to swipe the card through the mobile phone 201, but when the mobile phone 201 is closer to the NFC reader 202 on the bus card, as shown in fig. 2 (d), the mobile phone still displays the card swipe interface corresponding to the bus card. This results in a situation that when the mobile phone 201 is in the radio frequency field of the NFC reader 202, no accident card ejection occurs, i.e. the user does not need to use the mobile phone 201 to swipe the card, but the mobile phone 201 displays a corresponding card swiping interface, resulting in poor user experience.
In order to avoid that the electronic device still displays a corresponding card swiping interface when the user does not use the electronic device to swipe cards, a card swiping do not disturb mode can be added in the electronic device in the related art. After the user starts the card swiping no-disturb mode in the electronic equipment, when the electronic equipment is in the radio frequency field, the electronic equipment can not display the corresponding card swiping interface, so that the display of the corresponding card swiping interface during card swiping can be avoided, and the use of the electronic equipment by the user is influenced. In the related art, a compact card swiping mode can be added in the electronic equipment. After a user starts a concise card swiping mode in the electronic equipment, when the electronic equipment is in a radio frequency field, the electronic equipment can not display a corresponding card swiping interface and only provide a label prompt, so that the display of the corresponding card swiping interface during card swiping can be avoided, and the user is prevented from using the electronic equipment. In the related art, a silent card swiping mode may also be added to the electronic device. After the user opens the silent card swiping mode in the electronic equipment, when the electronic equipment is in the radio frequency field, the electronic equipment can not display the corresponding card swiping interface, and the electronic equipment does not provide feedback during card swiping, so that the display of the corresponding card swiping interface during card swiping can be avoided, and the user is prevented from being influenced to use the electronic equipment.
However, according to the related technical scheme, by adding the corresponding card swiping mode, when the electronic device starts the corresponding card swiping mode, although the corresponding card swiping interface is prevented from being displayed when the electronic device swipes the card, so that the user is influenced to use the electronic device, the related technical scheme cannot enable the user to know whether the card swiping is performed or not, and the user experience is still poor.
In view of the above problems, an embodiment of the present application provides a near field communication control method, which should be applied to an electronic device, where when a default card corresponding to an NFC function of the electronic device is a wallet application, an NFC no-disturb mode is added on the basis of NFC start. After the electronic equipment starts the NFC non-disturbing mode, the electronic equipment can close a monitoring mode in the radio frequency discovery period, and after the electronic equipment closes the monitoring mode in the radio frequency discovery period, the electronic equipment cannot be used as a virtual card to rewrite data by other equipment, namely, the electronic equipment can close a card simulation function, so that the situation that a user does not need to use the electronic equipment to punch cards is avoided, but the electronic equipment still displays a corresponding card punching interface when the electronic equipment is in a radio frequency field, and the experience of the user is improved.
And because the electronic equipment closes the card simulation function after the NFC non-disturbing mode is started, the electronic equipment cannot swipe cards, so that a user can know that the electronic equipment cannot swipe cards after the NFC non-disturbing mode is started, and the user experience is further improved.
According to the scheme, after the electronic equipment starts the NFC non-disturbing mode, the electronic equipment can not close the polling mode in the radio frequency discovery period, and when the electronic equipment is in the polling mode in the radio frequency discovery period, the electronic equipment can serve as the main equipment to read and write data of the virtual card, namely the electronic equipment can realize the function of a reader-writer, so that the use experience of a user is further improved.
For example, in conjunction with the scheme of the present application shown in fig. 3, after the NFC function of the electronic device is turned on, the NFC function of the electronic device may include three modes, namely NFC off, NFC on, and NFC no-disturb.
When the NFC is turned off, the electronic device may turn off the polling mode in the radio frequency discovery period and turn off the listening mode in the radio frequency discovery period, and the electronic device may not implement the reader-writer function and the card simulation function.
When the NFC is started, the electronic equipment starts a polling mode in the radio frequency discovery period and starts a monitoring mode in the radio frequency discovery period, and the electronic equipment can realize a reader-writer function and a card simulation function.
When the NFC is free from disturbance, the electronic equipment can start a polling mode in the radio frequency discovery period and close a monitoring mode in the radio frequency discovery period, and can realize a reader-writer function but not a card simulation function.
The near field communication control method provided by the embodiment of the application is described below.
In some examples, the electronic device may be a cell phone, tablet computer, handheld computer, personal computer (personal computer, PC), cellular phone, personal digital assistant (personal digital assistant, PDA), wearable device, or the like, having NFC functionality. The embodiment of the application does not limit the specific form of the electronic equipment.
By way of example, taking an electronic device as a mobile phone, fig. 4 shows a schematic structural diagram of an electronic device according to an embodiment of the present application.
As shown in fig. 4, the electronic device may include a processor 410, an external memory interface 420, an internal memory 421, a universal serial bus (universal serial bus, USB) interface 430, a charge management module 440, a power management module 441, a battery 442, an antenna 1, an antenna 2, a mobile communication module 450, a wireless communication module 460, an audio module 470, a speaker 470A, a receiver 470B, a microphone 470C, an earphone interface 470D, a sensor module 480, keys 490, a motor 491, an indicator 492, a camera 493, a display screen 494, and a subscriber identity module (subscriber identification module, SIM) card interface 495, etc. Among other things, the sensor module 480 may include a pressure sensor 480A, a gyroscope sensor 480B, an air pressure sensor 480C, a magnetic sensor 480D, an acceleration sensor 480E, a distance sensor 480F, a proximity light sensor 480G, a fingerprint sensor 480H, a temperature sensor 480J, a touch sensor 480K, an ambient light sensor 480L, a bone conduction sensor 480M, and the like.
It is to be understood that the configuration illustrated in this embodiment does not constitute a specific limitation on the electronic apparatus. In other embodiments, the electronic device may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 410 may include one or more processing units, such as: the processor 410 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
In an embodiment of the present application, the processor 410 may further include an NFC chip. The NFC chip may be configured to manage a radio frequency discovery period corresponding to the NFC function. For example, the NFC chip may be used to turn on or off a polling mode or a listening mode included in the radio frequency discovery period.
In some examples, the NFC chip may be configured to turn on or off a polling mode or a listening mode included in the radio frequency discovery period for a preset period of time.
The controller may be a neural hub and command center of the electronic device. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 410 for storing instructions and data. In some embodiments, the memory in the processor 410 is a cache memory. The memory may hold instructions or data that the processor 410 has just used or recycled. If the processor 410 needs to reuse the instruction or data, it may be called directly from the memory. Repeated accesses are avoided and the latency of the processor 310 is reduced, thereby improving the efficiency of the system.
In some embodiments, processor 410 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The wireless communication function of the electronic device may be implemented by the antenna 1, the antenna 2, the mobile communication module 450, the wireless communication module 460, the modem processor, the baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 450 may provide a solution for wireless communication including 2G/3G/4G/5G, etc. applied on an electronic device. The mobile communication module 450 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 450 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 450 may amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate the electromagnetic waves. In some embodiments, at least some of the functional modules of the mobile communication module 450 may be disposed in the processor 410. In some embodiments, at least some of the functional modules of the mobile communication module 450 may be disposed in the same device as at least some of the modules of the processor 410.
The wireless communication module 460 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc. for application on an electronic device. The wireless communication module 460 may be one or more devices that integrate at least one communication processing module. The wireless communication module 460 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and transmits the processed signals to the processor 410. The wireless communication module 460 may also receive a signal to be transmitted from the processor 410, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 450 of the electronic device are coupled, and antenna 2 and wireless communication module 460 are coupled, such that the electronic device may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others.
The electronic device implements display functions through the GPU, the display screen 494, and the application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display screen 494 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 410 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 494 is used to display images, videos, and the like. The display screen 494 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (flex), a mini, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device may include 1 or N display screens 494, N being a positive integer greater than 1.
In embodiments of the present application, the display screen 494 may be used to display an interface of an electronic device.
The electronic device may implement shooting functions through the ISP, the camera 493, the video codec, the GPU, the display screen 494, the application processor, and the like. In some embodiments, the electronic device may include 1 or N cameras 493, N being a positive integer greater than 1.
The internal memory 421 may be used to store computer-executable program code that includes instructions. The processor 410 executes various functional applications of the electronic device and data processing by executing instructions stored in the internal memory 421. The internal memory 421 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data (e.g., audio data, phonebook, etc.) and the like established during use of the electronic device. In addition, the internal memory 421 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The acceleration sensor 480E may periodically collect acceleration data of the electronic device at a certain frequency. For example, the magnitude of acceleration of the electronic device in various directions (typically XYZ three axes) may be collected.
It will be understood, of course, that the above illustration of fig. 4 is merely exemplary of the case where the electronic device is in the form of a cellular phone. If the electronic device is a tablet computer, a handheld computer, a PC, a PDA, a wearable device (e.g., a smart watch, a smart bracelet), etc., the electronic device may include fewer structures than those shown in fig. 4, or may include more structures than those shown in fig. 4, which is not limited herein.
It will be appreciated that in general, implementation of electronic device functions requires software in addition to hardware support.
The software system of the electronic device may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the application, an Android system with a layered architecture is taken as an example, and the software structure of the electronic equipment is illustrated by an example.
Fig. 5 is a software structural block diagram of an electronic device according to an embodiment of the present application.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer (also referred to as a system framework java layer), an Zhuo runtime (also referred to as a Native layer), and a system library (also referred to as a kernel layer).
The application layer may include a series of application packages. As shown in fig. 5, the application package may include applications for cameras, gallery, calendar, phone, map, navigation, WLAN, bluetooth, music, video, short message, etc. In some examples, the application layer may also include an NFC enabled application, such as a wallet application, or the like.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in fig. 5, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is for providing communication functions of the electronic device. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
As shown in fig. 5, the application framework layer may also include NFC services.
The NFC service can be used for issuing an opening task list to an NFC chip of the electronic device when the NFC function of the electronic device is NFC opening, so that the NFC chip of the electronic device can open the NFC function according to the opening task list, namely, a polling mode in a radio frequency discovery period is opened and a monitoring mode in the radio frequency discovery period is opened, and the electronic device can realize a reader-writer function and a card simulation function.
The NFC service may be further configured to issue a closing task list to an NFC chip of the electronic device when the NFC function of the electronic device is NFC closing, so that the NFC chip of the electronic device may close the NFC function according to the closing task list, that is, close a polling mode in a radio frequency discovery period and close a listening mode in the radio frequency discovery period, and the electronic device may not implement a reader function and a card simulation function.
The NFC service can also be used for issuing a closing task list to an NFC chip of the electronic device when the NFC function of the electronic device is NFC non-disturbing, so that the NFC chip of the electronic device can close the NFC function according to the closing task list, a polling mode in a radio frequency discovery period is started, a monitoring mode in the radio frequency discovery period is closed, and the electronic device can realize a reader-writer function and can not realize a card simulation function.
An Zhuo runtime Android run includes core libraries and virtual machines. An Zhuo Android run time is responsible for scheduling and management of An Zhuo systems.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of An Zhuo.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), two-dimensional graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of two-dimensional and three-dimensional layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
A two-dimensional graphics engine is a drawing engine that draws two-dimensional drawings.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The methods in the following embodiments may be implemented in an electronic device having the above-described hardware structure or software structure.
The following describes a near field communication control method according to an embodiment of the present application in detail with reference to fig. 6. As shown in fig. 6, the near field communication control method may include S601 to S608 described below.
S601, the electronic device receives a second setting operation of a user, wherein the second setting operation is used for setting the first application program to be a default application program corresponding to the NFC function.
The first application may be an application preset in the electronic device. For example, the first application may be a wallet-type application included with the electronic device. The wallet can be an application program corresponding to a bank card, a public transport card or an access control card, and the like.
When the user needs to use the NFC function corresponding to the first application, the user may set the first application as a default virtual card on the electronic device.
It should be noted that, when the electronic device is in the radio frequency field, the electronic device may receive NFC field strength information (i.e., the electronic device approaches an NFC reader, and the electronic device may receive a radio frequency signal emitted by the NFC reader), the electronic device defaults to perform data interaction (i.e., complete a transaction) between the activated virtual card and the approaching NFC reader. The virtual cards that are activated are often pre-configured default cards. And when the NFC card reader is matched with the default virtual card, the NFC card reader and the electronic equipment can successfully interact data. However, when the NFC reader does not match the default virtual card, a data interaction failure occurs. When the NFC reader is not matched with the default virtual card, the user is required to manually select the correct virtual card to achieve successful interaction with the NFC reader.
Therefore, when the user needs to use the NFC function corresponding to the first application, the user may perform an operation on the electronic device, so that the first application is set as a default application corresponding to the NFC function. That is, the electronic device may receive a second setting operation of the user, where the second setting operation is used to set the first application program as an application program corresponding to a default virtual card corresponding to the NFC function.
S602, responding to a second setting operation, and setting the first application program as a default application program corresponding to the NFC function by the electronic equipment.
When the electronic device receives a first operation that the user sets the first application program as a default application program corresponding to the NFC function, the electronic device may set the first application program as the default application program corresponding to the NFC function in response, that is, the electronic device may set the first application program as an application program corresponding to a default virtual card corresponding to the NFC function.
For example, a user may set a first application, such as a bank card, as a default virtual card through the card Bao Xuanxiang in the setting of an electronic device, such as a cell phone. When the electronic device receives that a user operates a default card option in the card package options in the setting for operating the electronic device, the electronic device can set the bank card as a default virtual card. That is, when the electronic device receives an operation of setting the bank card as a default virtual card by the user, the electronic device may set the bank card as a default virtual card as shown in (a) of fig. 7 in response. Therefore, when the electronic equipment receives NFC field intensity information corresponding to the bank card (namely, the electronic equipment is close to the NFC card reader), the electronic equipment can display a card swiping interface corresponding to the bank card, and data interaction, such as card swiping, can be performed between the NFC card reader and the electronic equipment.
S603, the electronic equipment displays a first interface, wherein the first interface comprises an NFC opening control.
After the electronic device sets the first application program as an application program corresponding to a default virtual card corresponding to the NFC function, the electronic device may display the first interface. The first interface may include an NFC start control. The NFC start control may be used to start an NFC function of the electronic device. After the NFC functionality of the electronic device is turned on, the electronic device may use the first application to interact data with the NFC reader, such as swiping a card using a bank card.
For example, continuing to refer to (a) in fig. 7, after the electronic device sets the bank card as the default virtual card, the electronic device may display the first interface 701 as shown in (b) in fig. 7. The first interface 701 may include an NFC start control 702. When the user needs to start the NFC function corresponding to the first application of the electronic device, the user may perform a triggering operation, such as a clicking operation, on the NFC start control 702.
S604, the electronic equipment receives a first operation of the NFC opening control by a user.
After the electronic device displays the first interface, where the first interface includes the NFC start control, the user may perform an operation, such as a triggering operation, on the NFC start control, so as to start an NFC function of the electronic device. That is, the electronic device may receive a first operation of the NFC start control by the user, so that the electronic device may start the NFC function.
For example, continuing to refer to (a) in fig. 7, after the electronic device sets the bank card as the default virtual card, the electronic device displays a first interface 701 as shown in (b) in fig. 7. The first interface 701 includes an NFC start control 702. When the user needs to start the NFC function corresponding to the first application of the electronic device, the user may perform a triggering operation, such as a clicking operation, on the NFC start control 702. That is, when the electronic device receives a triggering operation, such as a clicking operation, of the NFC start control 702 by the user, the electronic device may start the NFC function in response, that is, the electronic device may start the NFC function corresponding to the first application.
S605, in response to the first operation, the electronic device turns on the NFC function.
When the electronic device receives the second operation of the NFC start control by the user, the electronic device can start the NFC function as a response, namely the electronic device can start the NFC function corresponding to the first application program.
For example, continuing to refer to (b) in fig. 7, after the electronic device sets the bank card as the application corresponding to the default virtual card corresponding to the NFC function, the electronic device displays a first interface 701, where the first interface 701 may include an NFC start control 702. When the user needs to start the NFC function corresponding to the first application of the electronic device, the user may perform a triggering operation, such as a clicking operation, on the NFC start control 702. That is, when the electronic device receives a second operation of the NFC start control by the user, the electronic device may start the NFC function in response.
In some examples, the electronic device turning on NFC functionality may include: the electronic device sets the first application program as an application program corresponding to a default virtual card corresponding to the NFC function, and when the electronic device receives the operation of the NFC starting control by the user, the first application program can send an NFC starting notification to NFC service of the electronic device. After receiving the start notification, the NFC service may issue a start task to the task list, i.e., the NFC service may add the start task to the task list. The start task may be used to instruct the NFC chip to start the NFC function. The task list may include parameters corresponding to the NFC chip starting the NFC function.
After the NFC service adds the start task in the task list, the NFC service may send the task list to the NFC chip of the electronic device.
After the NFC chip receives the task list including the start task, the NFC chip may perform a corresponding initialization operation (such as NFC chip initialization and peer-to-peer (P2P) related initialization). After the NFC chip performs the corresponding initialization operation, the NFC chip may perform corresponding configuration on the listening mode and the polling mode in the radio frequency discovery period according to the relevant parameters in the task list. After the NFC chip performs corresponding configuration on the listening mode and the polling mode in the radio frequency discovery period, the NFC chip may repeat the polling mode and the listening mode in the radio frequency discovery period, that is, the electronic device may turn on the polling mode and the listening mode. Because the electronic device can realize the reader-writer function in the polling mode and realize the card simulation function in the monitoring mode, the electronic device can realize the reader-writer function and the card simulation function in the polling mode and the monitoring mode, namely the electronic device starts the NFC function, and the NFC function of the electronic device is in an NFC starting state.
In some examples, the first interface may also include an NFC close control. The NFC closing control can be used for closing the NFC function of the electronic equipment, namely, the NFC function of the electronic equipment is adjusted from an NFC opening state to an NFC closing state, and the NFC closing control can also be used for adjusting the NFC function of the electronic equipment from an NFC non-disturbing state to an NFC closing state.
It should be noted that the NFC closed control and the NFC open control may be one control or may be different controls. This is not limiting in the embodiments of the present application. When the NFC closing control and the NFC opening control are one control, after the NFC function of the electronic equipment is opened, if the NFC function of the electronic equipment needs to be closed by a user, the NFC function of the electronic equipment can be closed by the user through the NFC opening control. For example, after the electronic device receives a triggering operation of the NFC start control by a user, the electronic device may start the NFC function. After the electronic device starts the NFC function, when the electronic device receives a triggering operation of the NFC start control by the user again, the electronic device may close the NFC function in response.
S606, the electronic device displays a second interface, wherein the second interface comprises an NFC non-disturbing control.
After the electronic device turns on the NFC functionality, the electronic device may display a second interface. The second interface may include an NFC do-not-disturb control. The NFC non-disturbing control can be used for adjusting the NFC function of the electronic device from an NFC on state to an NFC non-disturbing state.
When the NFC function of the electronic equipment is in an NFC on state, the electronic equipment starts a polling mode and a monitoring mode, and the electronic equipment can realize a reader-writer function and a card simulation function. When the NFC function of the electronic equipment is in an NFC interference-free state, the electronic equipment starts a polling mode and closes a monitoring mode, the electronic equipment can realize a reader-writer function, but the electronic equipment cannot realize a card simulation function.
For example, continuing to refer to (b) in fig. 7, after the electronic device sets the bank card as the default virtual card, the electronic device displays a first interface 701, which first interface 701 may include an NFC start control 702. When the user needs to start the NFC function corresponding to the first application of the electronic device, the user may perform a triggering operation, such as a clicking operation, on the NFC start control 702. When the electronic device receives a second operation of the NFC activation control by the user, the electronic device may activate the NFC function in response. After the electronic device turns on the NFC functionality, as shown in (c) of fig. 7, the electronic device may display a second interface 703, which may include an NFC no-disturb control 704.NFC do not disturb control 704 may be used to adjust the NFC functionality of the electronic device from an NFC on state to an NFC do not disturb state.
It should be noted that S605 and S606 may be performed simultaneously, and S605 may also be performed before S606, which is not limited in the embodiment of the present application. That is, the electronic device may display the second interface while the NFC functionality is turned on. The electronic device may also display the second interface after the NFC functionality is turned on.
In some examples, the second interface may also include an NFC close control. The NFC closing control can be used for closing the NFC function of the electronic equipment, namely, the NFC function of the electronic equipment is adjusted from an NFC opening state to an NFC closing state, and the NFC closing control can also be used for adjusting the NFC function of the electronic equipment from an NFC non-disturbing state to an NFC closing state. That is, when the electronic device receives the fifth operation of the NFC close control by the user, the electronic device may close the NFC function in response, that is, adjust the NFC function of the electronic device from the NFC on state to the NFC off state.
When the NFC function of the electronic device is in an NFC off state, the electronic device is in a polling mode and a monitoring mode, and the electronic device cannot realize a reader-writer function and a card simulation function.
For example, continuing to refer to (b) in fig. 7, after the electronic device sets the bank card as the default virtual card, the electronic device displays a first interface 701, which first interface 701 may include an NFC start control 702. When the user needs to start the NFC function corresponding to the first application of the electronic device, the user may perform a triggering operation, such as a clicking operation, on the NFC start control 702. When the electronic device receives a first operation of the NFC activation control by a user, the electronic device can activate an NFC function in response. After the electronic device turns on the NFC functionality, as shown in (c) of fig. 7, the electronic device may display a second interface 703, which may include an NFC do not disturb control 704 and an NFC close control 705.NFC do not disturb control 704 may be used to adjust the NFC functionality of the electronic device from an NFC on state to an NFC do not disturb state. NFC close control 705 may be used to adjust the NFC functionality of an electronic device from an NFC on state to an NFC off state.
In some examples, the electronic device turning off NFC functionality may include: when the electronic device receives the operation of the NFC closing control by the user, the first application program can send an NFC closing notification to an NFC service of the electronic device. After receiving the NFC close notification, the NFC service may issue a close task to the task list, i.e., the NFC service may add the close task to the task list. The off task may be used to instruct the NFC chip to turn on the NFC functionality. The task list may include routing information that the NFC chip needs to clear, that is, information that the NFC chip needs to delete an application program that has already opened an NFC function.
After the NFC service adds the shutdown task in the task list, the NFC service may send the task list to the NFC chip of the electronic device.
After the NFC chip receives the task list including the shutdown task, the NFC chip may shut down the listening mode in the radio frequency discovery period and the polling mode. After the NFC chip turns off the listening mode and the polling mode in the radio frequency discovery period, the electronic device turns off the NFC function, that is, the NFC function of the electronic device is adjusted from the NFC on state to the NFC off state, and the NFC chip may enter a hard power off state (i.e., hardPowerDown).
S607, the electronic equipment receives a second operation of the NFC non-disturbing control by the user.
After the electronic device displays the second interface, where the second interface includes the NFC non-disturbing control, the user may operate the NFC non-disturbing control, for example, trigger operation, so that starting the electronic device may adjust the NFC function from the NFC start state to the NFC non-disturbing state. That is, the electronic device may receive the second operation of the NFC non-disturbing control by the user, so that the electronic device may adjust the NFC function from the NFC on state to the NFC non-disturbing state.
For example, continuing to refer to (c) in fig. 7, after the electronic device turns on the NFC functionality, the electronic device displays a second interface 703 that includes an NFC tamper-free control 704.NFC do not disturb control 704 may be used to adjust the NFC functionality of the electronic device from an NFC on state to an NFC do not disturb state. When the user needs to adjust the NFC function of the electronic device from the NFC on state to the NFC no-disturb state, the user may trigger the NFC no-disturb control 704, so that the electronic device may adjust the NFC function from the NFC on state to the NFC no-disturb state.
And S608, responding to the second operation, and starting the NFC non-disturbing function by the electronic equipment.
When the electronic device receives the third operation of the NFC non-disturbing control by the user, the electronic device can start the NFC non-disturbing function in response, namely, the electronic device can adjust the NFC function from the NFC starting state to the NFC non-disturbing state.
For example, continuing to refer to (c) in fig. 7, after the electronic device turns on the NFC functionality, the electronic device displays a second interface 703 that includes an NFC tamper-free control 704.NFC do not disturb control 704 may be used to adjust the NFC functionality of the electronic device from an NFC on state to an NFC do not disturb state. When the user needs to adjust the NFC function of the electronic device from the NFC on state to the NFC no-disturb state, the user may trigger the NFC no-disturb control 704. When the electronic device receives the second operation of the NFC non-disturbing control by the user, the electronic device can start the NFC non-disturbing function in response, namely, the electronic device can adjust the NFC function from the NFC starting state to the NFC non-disturbing state.
In some examples, the electronic device turning on the NFC non-disturbing function, i.e. the electronic device adjusting the NFC function from the NFC on state to the NFC non-disturbing state, may include: when the electronic device receives the third operation of the NFC non-disturbing control by the user, the first application program can send an NFC non-disturbing starting notification to NFC service of the electronic device. After receiving the NFC tamper-free start notification, the NFC service may send an NFC tamper-free corresponding parameter to the NFC chip. The parameters corresponding to NFC immunity may include a time of opening corresponding to NFC immunity and a time of closing corresponding to NFC immunity.
Because the electronic device can realize the reader-writer function when the NFC function of the electronic device is in the NFC non-disturbing state, but the electronic device cannot realize the card simulation function, when the NFC function of the electronic device is in the NFC non-disturbing state, the NFC chip can close the monitoring mode included in the radio frequency discovery period so as to close the card simulation function, and simultaneously, the NFC chip can open the polling mode included in the radio frequency discovery period so as to realize the reader-writer function. That is, the NFC immunity corresponding to the parameters includes the time of opening corresponding to the NFC immunity, which may be the time of closing the listening mode included in the radio frequency discovery period of the NFC chip. The NFC immunity corresponding parameters include the time of closing the NFC immunity corresponding parameters, and may be the time of opening the listening mode included in the radio frequency discovery period for the NFC chip.
After the NFC chip receives the parameters corresponding to the NFC non-interference sent by the NFC service, the NFC chip may perform corresponding configuration on the listening mode and the polling mode in the radio frequency discovery period according to the parameters corresponding to the NFC non-interference. That is, the NFC chip may close or open the listening mode included in the radio frequency discovery period according to the time of opening corresponding to the NFC tamper-free parameter and the time of closing corresponding to the NFC tamper-free parameter.
In some examples, the time of opening corresponding to the NFC immunity and the time of closing corresponding to the NFC immunity may be a preset NFC immunity opening time and a preset NFC immunity closing time (i.e., the NFC immunity function is opened in a preset period of time), or may be a user-defined NFC immunity opening time and a user-defined NFC immunity closing time (i.e., the NFC immunity function is opened in a user-defined period of time), i.e., the user may perform user-defined settings on the time of opening corresponding to the NFC immunity and the time of closing corresponding to the NFC immunity.
In some examples, the electronic device may also display a third interface after the electronic device turns on the NFC do not disturb function. The third interface may include a preset time period to open the no-disturb control (which may be referred to as a first time setting control in the embodiment of the present application), and the third interface may further include a custom time period to open the no-disturb control (which may be referred to as a second time setting control in the embodiment of the present application). The preset time period starting non-disturbing control can be used for triggering the electronic equipment to start the NFC non-disturbing function in the preset time period, namely the first time setting control can be used for triggering the electronic equipment to close the card simulation function in the preset time period. The user-defined time period opening non-disturbing control can be used for triggering the electronic equipment to start the NFC non-disturbing function in the time period set by the user, namely the second time setting control is used for triggering the user of the electronic equipment to set the non-disturbing time period.
For example, when the electronic device receives a triggering operation, such as a clicking operation, of a user to turn on the no-disturb control for a preset period of time, the electronic device may turn on the NFC no-disturb function for the preset period of time in response. The preset time period may be 24 hours, or may be other preset time periods, which is not limited in this embodiment of the present application.
The electronic device starts the NFC non-disturbing function within a preset time, which may include: when the electronic device receives the triggering operation of opening the non-disturbing control in the preset time period by the user, the first application program can start the NFC non-disturbing opening notification in the preset time period sent by the NFC service of the electronic device. After receiving the NFC tamper-free start notification, the NFC service may send an NFC tamper-free corresponding parameter to the NFC chip. The parameters corresponding to the NFC tamper-free may include a time of opening corresponding to the NFC tamper-free and a time of closing corresponding to the NFC tamper-free, that is, a preset NFC tamper-free opening time and a preset NFC tamper-free closing time.
Because the electronic device can realize the reader-writer function when the NFC function of the electronic device is in the NFC non-disturbing state, but the electronic device cannot realize the card simulation function, when the NFC function of the electronic device is in the NFC non-disturbing state, the NFC chip can close the monitoring mode included in the radio frequency discovery period so as to close the card simulation function, and simultaneously, the NFC chip can open the polling mode included in the radio frequency discovery period so as to realize the reader-writer function. The preset NFC no-disturbance start time may be a time when the NFC chip turns off a listening mode included in the radio frequency discovery period. The preset closing time of the NFC without disturbing can be the time of starting a monitoring mode included in the radio frequency discovery period for the NFC chip.
After the NFC chip receives parameters corresponding to the NFC non-disturbing (i.e. the preset NFC non-disturbing on time and the preset NFC non-disturbing off time) sent by the NFC service, the NFC chip may perform corresponding configuration on the listening mode and the polling mode in the radio frequency discovery period according to the parameters corresponding to the NFC non-disturbing. That is, the NFC chip may start the listening mode included in the radio frequency discovery period at a preset NFC tamper-free on time included in the parameter corresponding to the NFC tamper-free, and the NFC chip may start the listening mode included in the radio frequency discovery period at a preset NFC tamper-free off time.
For example, continuing to refer to (c) in fig. 7, after the electronic device turns on the NFC functionality, the electronic device displays a second interface 703 that includes an NFC tamper-free control 704.NFC do not disturb control 704 may be used to adjust the NFC functionality of the electronic device from an NFC on state to an NFC do not disturb state. When the user needs to adjust the NFC function of the electronic device from the NFC on state to the NFC no-disturb state, the user may trigger the NFC no-disturb control 704. That is, when the electronic device receives a third operation of the NFC no-disturb control by the user, as shown in (d) of fig. 7, the electronic device may display a third interface 706. The third interface 706 may include a preset time period to open the do not disturb control 707, which may be 24 hours, i.e., the preset time period to open the do not disturb control 707 may be 24 hours of the do not disturb control 707. When the electronic device receives a trigger operation of opening the no-disturb control 707 by a user for a preset time period, the electronic device may open the NFC no-disturb function in the preset time period. I.e. the NFC chip of the electronic device may always switch off the listening mode comprised by the radio frequency discovery period for 24 hours.
After the electronic device starts the NFC non-disturbing function in the preset time, if the user needs to close the electronic device to start the NFC non-disturbing function in the preset time, the user may also close the electronic device to start the NFC non-disturbing function in the preset time by starting the non-disturbing control in the preset time. For example, after the electronic device receives a trigger operation of opening the no-disturb control for a preset time period by a user, the electronic device may open the NFC no-disturb function for the preset time period. After the electronic device starts the NFC non-disturbing function in the preset time period, the electronic device can close to start the NFC non-disturbing function in the preset time when receiving the triggering operation of the user on the non-disturbing control in the preset time period again.
For another example, when the electronic device receives a triggering operation (that is, may be referred to as a fourth operation in the embodiment of the present application) of opening the no-disturb control (i.e., the second time setting control) for the user-defined period of time by the user, such as a clicking operation, the electronic device may, in response, open the NFC no-disturb function in the period of time set by the user.
The electronic device starts the NFC no-disturb function in a period of time set by user definition, which may include: when the electronic device receives the triggering operation of the user to open the non-disturbing control in the self-defined time period, the first application program can open the NFC non-disturbing opening notification in the self-defined time period, which is sent to the NFC service of the electronic device. After receiving the NFC tamper-free start notification, the NFC service may send an NFC tamper-free corresponding parameter to the NFC chip. The parameters corresponding to the NFC tamper-free may include an on time corresponding to the NFC tamper-free and an off time corresponding to the NFC tamper-free, that is, an NFC tamper-free on time and an NFC tamper-free off time set by a user in a user-defined manner.
Because the electronic device can realize the reader-writer function when the NFC function of the electronic device is in the NFC non-disturbing state, but the electronic device cannot realize the card simulation function, when the NFC function of the electronic device is in the NFC non-disturbing state, the NFC chip can close the monitoring mode included in the radio frequency discovery period so as to close the card simulation function, and simultaneously, the NFC chip can open the polling mode included in the radio frequency discovery period so as to realize the reader-writer function. The user-defined NFC no-disturbance start time may be a time for closing a listening mode included in the radio frequency discovery period of the NFC chip. The user can define the set NFC non-disturbing closing time, and the time for starting the monitoring mode included in the radio frequency discovery period for the NFC chip.
After the NFC chip receives the parameters corresponding to the NFC immunity interference (i.e., the NFC immunity interference start time set by the user and the NFC immunity interference close time set by the user) sent by the NFC service, the NFC chip may perform corresponding configuration on the listening mode and the polling mode in the radio frequency discovery period according to the parameters corresponding to the NFC immunity interference. That is, the NFC chip may start the listening mode included in the radio frequency discovery period at the NFC non-disturbance-free start time set by the user and included in the parameter corresponding to the NFC non-disturbance, and the NFC chip may start the listening mode included in the radio frequency discovery period at the NFC non-disturbance-free turn-off time set by the user and included in the parameter.
In some examples, when the electronic device receives a triggering operation, such as a clicking operation, of opening the do-not-disturb control for a user-defined time period, the electronic device may further display, in response, a fourth interface, where the fourth interface may include a user-defined do-not-disturb time setting option, such as an on-time setting option (which may be referred to as a first option in the embodiment of the present application) corresponding to the user-defined do-not-disturb time, and an off-time setting option (which may be referred to as a second option in the embodiment of the present application) corresponding to the user-defined do-not-disturb time. The opening time setting option corresponding to the self-defined non-disturbing time can be used for setting the opening time corresponding to the self-defined non-disturbing time, and the closing time setting option corresponding to the self-defined non-disturbing time can be used for setting the closing time corresponding to the self-defined non-disturbing time. That is, the electronic device may receive a first setting operation of the first option and the second option by the user, and in response, the electronic device may turn off the card simulation function for the no-disturbance time period.
For example, continuing to refer to (c) in fig. 7, after the electronic device turns on the NFC functionality, the electronic device displays a second interface 703 that includes an NFC tamper-free control 704.NFC do not disturb control 704 may be used to adjust the NFC functionality of the electronic device from an NFC on state to an NFC do not disturb state. When the user needs to adjust the NFC function of the electronic device from the NFC on state to the NFC no-disturb state, the user may trigger the NFC no-disturb control 704. That is, when the electronic device receives the third operation of the NFC non-disturbing control by the user, as shown in (d) in fig. 7, the electronic device may display a third interface 706, and the third interface 706 may further include opening the non-disturbing control 708 in a custom time period, that is, the custom non-disturbing control. When the electronic device receives a trigger operation of opening the do not disturb control 708 for a user-defined period of time, the electronic device may also display a fourth interface 709 in response, as shown in (e) of fig. 7. The fourth interface 709 may include a custom no-disturb time setting option, i.e., an on time setting option corresponding to the custom no-disturb time and an off time setting option corresponding to the custom no-disturb time. The user can set the opening time corresponding to the self-defined non-disturbing time through the opening time setting option corresponding to the self-defined non-disturbing time, and can set the closing time corresponding to the self-defined non-disturbing time through the closing time setting option corresponding to the self-defined non-disturbing time.
After the electronic device starts the NFC immunity function in the user-defined period of time, if the user needs to close the electronic device to start the NFC immunity function in the user-defined period of time, the user may also close the electronic device to start the NFC immunity function in the user-defined period of time through the user-defined period of time start immunity control. For example, after the electronic device receives a triggering operation of opening the no-disturb control for a user-defined period, the electronic device may open the NFC no-disturb function in a period set by the user. After the electronic device starts the NFC no-disturb function in the user-defined set time period, the electronic device can close to start the NFC no-disturb function in the user-defined set time period when receiving the triggering operation of the user on the no-disturb control in the user-defined time period again.
By adopting the scheme of the application, when the electronic equipment sets the first application program as the default application program corresponding to the NFC function, the NFC non-disturbing mode is added on the basis of NFC starting. After the electronic equipment starts the NFC non-disturbing mode, the electronic equipment can close a monitoring mode in the radio frequency discovery period, and after the electronic equipment closes the monitoring mode in the radio frequency discovery period, the electronic equipment cannot be used as a virtual card to rewrite data by other equipment, namely, the electronic equipment can close a card simulation function, so that the situation that a user does not need to use the electronic equipment to punch cards is avoided, but the electronic equipment still displays a corresponding card punching interface when the electronic equipment is in a radio frequency field, and the experience of the user is improved.
And because the electronic equipment closes the card simulation function after the NFC non-disturbing mode is started, the electronic equipment cannot swipe cards, so that a user can know that the electronic equipment cannot swipe cards after the NFC non-disturbing mode is started, and the user experience is further improved.
According to the scheme, after the electronic equipment starts the NFC non-disturbing mode, the electronic equipment can not close the polling mode in the radio frequency discovery period, and when the electronic equipment is in the polling mode in the radio frequency discovery period, the electronic equipment can serve as the main equipment to read and write data of the virtual card, namely the electronic equipment can realize the function of a reader-writer, so that the use experience of a user is further improved.
For easy understanding, a near field communication control method provided by an embodiment of the present application is described below with reference to fig. 8. As shown in fig. 8, the near field communication control method provided by the embodiment of the present application may include the following procedures.
When it is desired to use the NFC functionality of a wallet application in an electronic device (e.g., a cell phone), a user may set the wallet application (e.g., a bank card) as a default virtual card through the card Bao Xuanxiang in the settings of the electronic device.
When the electronic device receives a user operation on a default card option of the card package options in the setting for operating the electronic device, the electronic device may set the wallet application as a default virtual card. That is, when the electronic device receives a user's operation to set the wallet application as a default virtual card, the electronic device may set the bank card as the default virtual card in response.
After the electronic device may set the bank card as the default virtual card, the electronic device may display the first interface. The first interface may include an NFC start control. When the electronic device receives a triggering operation of the NFC activation control by a user, the NFC service of the electronic device can issue an activation task to a task list in response. The NFC service may then send the task list to the NFC chip of the electronic device.
After the NFC chip receives the task list including the start task, the NFC chip may perform chip initialization and P2P related initialization. And then, the NFC chip can perform relevant configuration on the monitoring mode and the polling mode included in the radio frequency discovery period according to the task list, namely starting the monitoring mode and the polling mode included in the radio frequency discovery period. After the configuration is completed, the NFC functionality of the electronic device is turned on.
After the NFC functionality of the electronic device is turned on, the electronic device may display the second interface. The second interface may include an NFC do-not-disturb control. When the electronic device receives triggering operation of the NFC non-disturbing control by the user, the NFC service of the electronic device can send opening time and closing time corresponding to the NFC non-disturbing control to the NFC chip of the electronic device as a response.
After the NFC chip receives the on time and the off time corresponding to the NFC tamper-free period sent by the NFC service, the NFC chip may perform relevant configuration on the listening mode and the polling mode included in the radio frequency discovery period, that is, the NFC chip may close the listening mode included in the radio frequency discovery period at the on time corresponding to the NFC tamper-free period, and the NFC chip may open the listening mode included in the radio frequency discovery period at the off time corresponding to the NFC tamper-free period. After the configuration is completed, the NFC non-disturbing function of the electronic device is started, namely, the card simulation mode of the electronic device is kept closed within a set time.
When the electronic device displays the second interface, the second interface may further include an NFC close control. When the electronic device receives a triggering operation of the NFC closing control by a user, the NFC service of the electronic device can send a closing task to a task list in response. The NFC service may then send the task list to the NFC chip of the electronic device.
After the NFC chip receives the task list including the close task, the NFC chip may clear the routing information, i.e., delete the information of the application program that has started the NFC function. And then, the NFC chip can perform relevant configuration on the monitoring mode and the polling mode included in the radio frequency discovery period according to the task list, namely closing the monitoring mode and the polling mode included in the radio frequency discovery period. After the configuration is completed, the NFC function of the electronic device is turned off, and the NFC chip of the electronic device can enter a hard power-off state, so that the power consumption of the electronic device is reduced.
The opening time and the closing time corresponding to the NFC non-disturbing can be preset opening time and closing time, and can also be preset opening time and closing time by user definition. The following describes schematically a setting procedure of the on time and the off time corresponding to the NFC tamper-free according to the embodiment of the present application with reference to fig. 9.
After the NFC functionality of the electronic device is turned on, the electronic device may display a second interface. The second interface may include an NFC do-not-disturb control. When the electronic device receives a triggering operation of the NFC no-disturb control by the user, the electronic device can display a third interface as a response. The third interface may include a preset time period to open the do-not-disturb control and a custom time period to open the do-not-disturb control.
When the electronic equipment receives the triggering operation of opening the non-disturbing control for the preset time period by the user, the electronic equipment can immediately start the NFC non-disturbing function as a response, and the NFC non-disturbing function is started within 24 hours when the preset time period is 24 hours.
After the electronic equipment starts the NFC non-disturbing function, when the electronic equipment receives triggering operation of starting the non-disturbing control for a preset time period again by a user, the electronic equipment can close the NFC non-disturbing function as a response, namely, the user can manually close the NFC non-disturbing function in 24 hours.
When the electronic device receives a triggering operation of opening the no-disturbance control for the user-defined time period included in the third interface, the electronic device can display the fourth interface as a response. The fourth interface may include a custom no-disturb time setting option, i.e., an on time setting option corresponding to the custom no-disturb time and an off time setting option corresponding to the custom no-disturb time. The user can set the opening time corresponding to the self-defined non-disturbing time through the opening time setting option corresponding to the self-defined non-disturbing time, namely the NFC non-disturbing function can be started at regular time, and the user can self-define the starting time of the NFC non-disturbing function. The user can set the closing time corresponding to the self-defined non-disturbing time through the closing time setting option corresponding to the self-defined non-disturbing time, namely the user can start the NFC non-disturbing function in the self-defined set time period.
And in the non-user-defined time period, the electronic equipment can close the NFC non-disturbing function, namely the electronic equipment takes a defined time to close the non-disturbing mode.
For example, fig. 10 shows a schematic structural diagram of a near field communication control device 10, and as shown in fig. 10, the near field communication control device 10 may include: a display module 1001, an opening module 1002, a receiving module 1003, and the like.
The display module 1001 may be configured to display a first interface, where the first interface includes an NFC start control.
The activation module 1002 may be configured to activate an NFC function in response to the first operation, where the NFC function includes a card emulation function and a reader function.
The receiving module 1003 may be configured to receive a second operation of the NFC non-disturbing control by the user.
The display module 1001 may be further configured to display a second interface, where the second interface includes an NFC do not disturb control.
The receiving module 1003 may be further configured to receive a second operation of the NFC non-disturbing control by a user.
The opening module 1002 may be further configured to, in response to a second operation, open the NFC non-disturbing function, where the opening the NFC non-disturbing function includes closing the card simulation function by the electronic device.
In one possible implementation, the display module 1001 may be further configured to display a third interface, where the third interface includes a first time setting control, and the first time setting control is configured to trigger the electronic device to turn off the card simulation function within a preset period of time.
The receiving module 1003 may be further configured to receive a third operation of the first time setting control by the user.
The near field communication control device 10 may further include a closing module 1004.
The closing module 1004 may be configured to close the card simulation function for a preset period of time in response to the third operation.
In one possible implementation, the receiving module 1003 may be further configured to receive a fourth operation of the second time setting control by the user.
The display module 1001 may be further configured to display a fourth interface in response to a fourth operation, where the fourth interface includes a first option and a second option, the first option is used to set an on time of the no-disturbance time period, and the second option is used to set an off time of the no-disturbance time period.
The receiving module 1003 may be further configured to receive a first setting operation of the first option and the second option by the user.
The shutdown module 1004 may be further configured to shut down the card emulation function for a no-disturbance time period in response to the first setup operation.
In one possible implementation, the unlock module 1002 may be used to implement a card emulation function as well as a reader function in one radio frequency cycle.
The start module 1002 may be further configured to implement a reader function during a radio frequency period.
In a possible implementation manner, the receiving module 1003 may be further configured to receive a fifth operation of the NFC close control by the user, where the NFC close control is disposed on the first interface or the second interface.
The closing module 1004 may be further configured to close the NFC function in response to a fifth operation.
In one possible implementation, the shutdown module 1004 may also be used to shut down the card emulation function and the reader function.
In one possible implementation, the receiving module 1003 may be further configured to receive a second setting operation of the first application by the user.
The near field communication control device 10 may further include a setting module 1005.
The setting module 1005 may be configured to set the first application program to a default application program corresponding to the NFC function in response to the second setting operation.
In one possible implementation, the first application may include a bank card application, a bus card application, or an access card application.
It should be understood that the division of units or modules (hereinafter referred to as units) in the above apparatus is merely a division of logic functions, and may be fully or partially integrated into one physical entity or may be physically separated. And the units in the device can be all realized in the form of software calls through the processing element; or can be realized in hardware; it is also possible that part of the units are implemented in the form of software, which is called by the processing element, and part of the units are implemented in the form of hardware.
For example, each unit may be a processing element that is set up separately, may be implemented as integrated in a certain chip of the apparatus, or may be stored in a memory in the form of a program, and the functions of the unit may be called and executed by a certain processing element of the apparatus. Furthermore, all or part of these units may be integrated together or may be implemented independently. The processing element described herein, which may also be referred to as a processor, may be an integrated circuit with signal processing capabilities. In implementation, each step of the above method or each unit above may be implemented by an integrated logic circuit of hardware in a processor element or in the form of software called by a processing element.
In one example, the units in the above apparatus may be one or more integrated circuits configured to implement the above method, for example: one or more ASICs, or one or more DSPs, or one or more FPGAs, or a combination of at least two of these integrated circuit forms.
For another example, when the units in the apparatus may be implemented in the form of a scheduler of processing elements, the processing elements may be general-purpose processors, such as CPUs or other processors that may invoke programs. For another example, the units may be integrated together and implemented in the form of a system-on-a-chip (SOC).
In one implementation, the above means for implementing each corresponding step in the above method may be implemented in the form of a processing element scheduler. For example, the apparatus may comprise a processing element and a storage element, the processing element invoking a program stored in the storage element to perform the method described in the above method embodiments. The memory element may be a memory element on the same chip as the processing element, i.e. an on-chip memory element.
In another implementation, the program for performing the above method may be on a memory element on a different chip than the processing element, i.e. an off-chip memory element. At this point, the processing element invokes or loads a program from the off-chip storage element onto the on-chip storage element to invoke and execute the method described in the method embodiments above.
For example, embodiments of the present application may also provide an apparatus, such as: an electronic device may include: a processor, a memory for storing instructions executable by the processor. The processor is configured to execute the above instructions, to cause the electronic device to implement the near field communication control method as described in the previous embodiment. The memory may be located within the electronic device or may be located external to the electronic device. And the processor includes one or more.
In yet another implementation, the unit implementing each step in the above method may be configured as one or more processing elements, where the processing elements may be disposed on the electronic device corresponding to the above, and the processing elements may be integrated circuits, for example: one or more ASICs, or one or more DSPs, or one or more FPGAs, or a combination of these types of integrated circuits. These integrated circuits may be integrated together to form a chip.
For example, the embodiment of the application also provides a chip, which can be applied to the electronic equipment. The chip includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through a circuit; the processor receives and executes computer instructions from the memory of the electronic device through the interface circuit to implement the methods described in the method embodiments above.
The embodiment of the application also provides a computer program product, which comprises the computer instructions for the electronic equipment to operate.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be implemented by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be embodied in the form of a software product, such as: and (5) program. The software product is stored in a program product, such as a computer readable storage medium, comprising instructions for causing a device (which may be a single-chip microcomputer, chip or the like) or processor (processor) to perform all or part of the steps of the methods described in the various embodiments of the application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
For example, embodiments of the present application may also provide a computer readable storage medium having computer program instructions stored thereon. The computer program instructions, when executed by an electronic device, cause the electronic device to implement the near field communication control method as described in the foregoing method embodiments.
The foregoing is merely illustrative of specific embodiments of the present application, and the scope of the present application is not limited thereto, but any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (7)

1. A near field communication control method, characterized by being applied to an electronic device having a near field communication NFC function, the method comprising:
the electronic equipment displays a first interface, wherein the first interface comprises an NFC opening control;
the electronic equipment receives a first operation of the NFC opening control by a user;
in response to the first operation, the electronic device starts an NFC function, wherein the NFC function comprises a card simulation function and a reader-writer function;
the electronic equipment displays a second interface, wherein the second interface comprises an NFC non-disturbing control;
the electronic equipment receives a second operation of the NFC non-disturbing control by a user;
responding to the second operation, enabling the electronic equipment to start an NFC non-disturbing function, wherein the electronic equipment starts the NFC non-disturbing function and comprises the electronic equipment closing the card simulation function, and enabling the reader function to be in an on state under the condition that the electronic equipment starts the NFC non-disturbing function;
the electronic device starts an NFC function, including:
the method comprises the steps that a first application program of the electronic device sends an NFC starting notification to an NFC service of the electronic device;
the NFC service adds an opening task in a task list based on the NFC opening notification, wherein the opening task is used for indicating an NFC chip of the electronic equipment to open an NFC function;
The NFC service sends the task list to the NFC chip;
the NFC chip starts a polling mode in a radio frequency period and a monitoring mode in the radio frequency period based on the task list so as to start the NFC function; in the polling mode, the electronic equipment has a reader-writer function, and in the monitoring mode, the electronic equipment has a card simulation function;
the electronic device starts an NFC non-disturbing function, and the electronic device comprises:
the first application program sends an NFC non-disturbing starting notification to the NFC service;
the NFC service sends parameters corresponding to NFC non-disturbing to the NFC chip based on the NFC non-disturbing start notification; the parameters corresponding to the NFC non-disturbing comprise opening time corresponding to the NFC non-disturbing and closing time corresponding to the NFC non-disturbing;
the NFC chip closes a monitoring mode in the radio frequency period according to the opening time and the closing time, and a polling mode in the radio frequency period is in an opening state so as to open the NFC disturbance-free function;
the electronic device starts an NFC non-disturbing function, and the electronic device comprises:
the electronic equipment displays a third interface, wherein the third interface comprises a first time setting control, and the first time setting control is used for triggering the electronic equipment to close the card simulation function in a preset time period;
The electronic equipment receives a third operation of the first time setting control by a user;
in response to the third operation, the electronic device turns off the card simulation function for the preset time period;
the third interface further includes a second time setting control, where the second time setting control is configured to trigger a user of the electronic device to set a no-disturbance time period, and the method further includes:
the electronic equipment receives a fourth operation of the second time setting control by a user;
responding to the fourth operation, the electronic equipment displays a fourth interface, wherein the fourth interface comprises a first option and a second option, the first option is used for setting the opening time of the no-disturbance time period, and the second option is used for setting the closing time of the no-disturbance time period;
the electronic equipment receives a first setting operation of a user on the first option and the second option;
in response to the first setting operation, the electronic device turns off the card simulation function during the no-disturbance time period.
2. The method of claim 1, wherein after the electronic device turns on NFC do not disturb function, the method further comprises:
The electronic equipment receives a fifth operation of a user on an NFC closing control, wherein the NFC closing control is arranged on the first interface or the second interface;
in response to the fifth operation, the electronic device turns off the NFC functionality.
3. The method of claim 2, wherein the electronic device turns off the NFC functionality, comprising:
the electronic device turns off the card emulation function and the reader/writer function.
4. The method of claim 1, wherein prior to the electronic device displaying the first interface, the method further comprises:
the electronic equipment receives a second setting operation of a user on the first application program;
and responding to the second setting operation, and setting the first application program as a default application program corresponding to the NFC function by the electronic equipment.
5. The method of claim 4, wherein the first application comprises a bank card application, a bus card application, or an access card application.
6. An electronic device comprising a processor, a memory for storing instructions executable by the processor; the processor is configured to, when executing the instructions, cause the electronic device to implement the method of any one of claims 1 to 5.
7. A computer readable storage medium having stored thereon computer program instructions; it is characterized in that the method comprises the steps of,
the computer program instructions, when executed by an electronic device, cause the electronic device to implement the method of any one of claims 1 to 5.
CN202211463187.XA 2022-11-22 2022-11-22 Near field communication control method and electronic equipment Active CN115623118B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211463187.XA CN115623118B (en) 2022-11-22 2022-11-22 Near field communication control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211463187.XA CN115623118B (en) 2022-11-22 2022-11-22 Near field communication control method and electronic equipment

Publications (2)

Publication Number Publication Date
CN115623118A CN115623118A (en) 2023-01-17
CN115623118B true CN115623118B (en) 2023-10-20

Family

ID=84878047

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211463187.XA Active CN115623118B (en) 2022-11-22 2022-11-22 Near field communication control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN115623118B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116402075B (en) * 2023-04-03 2023-12-12 众虎物联网(广州)有限公司 Medical data acquisition method and system based on Internet of things
CN117749936A (en) * 2024-02-19 2024-03-22 花瓣支付(深圳)有限公司 Display method, electronic device and computer storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106650541A (en) * 2016-12-30 2017-05-10 维沃移动通信有限公司 Control method and mobile terminal
CN111913773A (en) * 2020-07-31 2020-11-10 维沃移动通信有限公司 NFC card control method, NFC card control device and electronic equipment
CN112188461A (en) * 2020-10-20 2021-01-05 Oppo广东移动通信有限公司 Control method and device for near field communication device, medium and electronic equipment
CN113312934A (en) * 2021-05-26 2021-08-27 维沃移动通信有限公司 NFC analog card selection method and device, electronic equipment and storage medium
CN114462560A (en) * 2020-10-21 2022-05-10 华为技术有限公司 Analog card switching method, electronic equipment and communication system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9603090B2 (en) * 2013-08-08 2017-03-21 Apple Inc. Management of near field communications using low power modes of an electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106650541A (en) * 2016-12-30 2017-05-10 维沃移动通信有限公司 Control method and mobile terminal
CN111913773A (en) * 2020-07-31 2020-11-10 维沃移动通信有限公司 NFC card control method, NFC card control device and electronic equipment
CN112188461A (en) * 2020-10-20 2021-01-05 Oppo广东移动通信有限公司 Control method and device for near field communication device, medium and electronic equipment
CN114462560A (en) * 2020-10-21 2022-05-10 华为技术有限公司 Analog card switching method, electronic equipment and communication system
CN113312934A (en) * 2021-05-26 2021-08-27 维沃移动通信有限公司 NFC analog card selection method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115623118A (en) 2023-01-17

Similar Documents

Publication Publication Date Title
CN115623118B (en) Near field communication control method and electronic equipment
CN113596810B (en) Network system switching method based on double cards and terminal equipment
CN114554005B (en) Notification message management method and electronic equipment
CN115328358B (en) Display method and related device
CN114745468B (en) Electronic equipment and theme setting method, system and medium thereof
CN114610419B (en) Method and device for adding widget and computer readable storage medium
CN110609650B (en) Application state switching method and terminal equipment
CN116033342B (en) Geofence processing method, equipment and storage medium
CN116315667B (en) Data transmission method, device, equipment and storage medium
CN116722881A (en) Antenna tuning method and electronic equipment
CN116156044A (en) Equipment cooperation method and related device
CN115278642A (en) Method for acquiring information of SIM card, electronic equipment and terminal equipment
CN114896097B (en) Application program non-response processing method and electronic equipment
CN115828227B (en) Method for identifying advertisement popup, electronic equipment and storage medium
CN116055623B (en) Power consumption control method, electronic equipment and storage medium
CN115391771B (en) Popup window intercepting method and device, electronic equipment and readable storage medium
CN116055619B (en) Method for reminding bill based on short message, electronic equipment and readable storage medium
CN116339562B (en) Shortcut input method and electronic device
WO2023160217A1 (en) Method for detecting embedded subscriber identity module (esim) card, and terminal device
CN117435097A (en) Display method and electronic equipment
CN117119566A (en) Interrupt processing method and electronic equipment
CN117667229A (en) Display method, electronic device and storage medium
CN116069224A (en) Input control method and electronic equipment
CN116700855A (en) Interface display method and electronic equipment
CN117729561A (en) System upgrading method, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant