CN115866134B - Near field communication NFC card determination method and device, electronic equipment and storage medium - Google Patents

Near field communication NFC card determination method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115866134B
CN115866134B CN202310166288.9A CN202310166288A CN115866134B CN 115866134 B CN115866134 B CN 115866134B CN 202310166288 A CN202310166288 A CN 202310166288A CN 115866134 B CN115866134 B CN 115866134B
Authority
CN
China
Prior art keywords
candidate
nfc
nfc card
control information
card
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
CN202310166288.9A
Other languages
Chinese (zh)
Other versions
CN115866134A (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.)
Xiaomi Automobile Technology Co Ltd
Original Assignee
Xiaomi Automobile Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Automobile Technology Co Ltd filed Critical Xiaomi Automobile Technology Co Ltd
Priority to CN202310166288.9A priority Critical patent/CN115866134B/en
Publication of CN115866134A publication Critical patent/CN115866134A/en
Application granted granted Critical
Publication of CN115866134B publication Critical patent/CN115866134B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The disclosure provides a Near Field Communication (NFC) card determining method, a device, electronic equipment and a storage medium, wherein the NFC card determining method comprises the following steps: acquiring screen state and/or control information of the electronic equipment; and determining the target NFC card from the plurality of candidate NFC cards according to the screen state and/or the control information. According to the NFC card and the method, the NFC card which is required at present can be accurately and rapidly determined.

Description

Near field communication NFC card determination method and device, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of electronic equipment, and in particular relates to a Near Field Communication (NFC) card determination method and device, electronic equipment and a storage medium.
Background
The near field communication (NearFieldCommunication, NFC) can enable two electronic devices to perform service exchange through near field communication, such as NFC bus card swiping, NFC access control card and the like. With the development of NFC technology, a plurality of NFC cards can be written into and stored in an electronic device, such as a mobile phone, so as to solve the problem of inconvenience in carrying a plurality of cards, however, for an electronic device using a plurality of NFC cards, it is generally necessary to identify a corresponding scene, so as to select an NFC card corresponding to the scene.
In the related art, the currently required NFC card is generally determined according to a positioning result of the electronic device or a valid time of setting a default card.
In this way, the currently required NFC card cannot be accurately and quickly determined.
Disclosure of Invention
The present disclosure aims to solve, at least to some extent, one of the technical problems in the related art.
To this end, the present disclosure aims to propose a near field communication NFC card determination method, apparatus, electronic device, non-transitory computer readable storage medium storing computer instructions, and computer program product capable of accurately and rapidly determining a currently required NFC card.
The Near Field Communication (NFC) card determining method provided by the embodiment of the first aspect of the disclosure comprises the following steps: acquiring screen state and/or control information of the electronic equipment; and determining a target NFC card from a plurality of candidate NFC cards according to the screen state and/or the control information.
An NFC card determining device according to an embodiment of a second aspect of the present disclosure includes: the acquisition module is used for acquiring screen state and/or control information of the electronic equipment; and the determining module is used for determining the target NFC card from the plurality of candidate NFC cards according to the screen state and/or the control information.
An electronic device according to an embodiment of a third aspect of the present disclosure includes: the NFC card determination method comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes the NFC card determination method according to the embodiment of the first aspect of the present disclosure when executing the program.
An embodiment of a fourth aspect of the present disclosure proposes a non-transitory computer readable storage medium, on which a computer program is stored, which program, when being executed by a processor, implements a near field communication NFC card determination method as proposed by an embodiment of the first aspect of the present disclosure.
A fifth aspect embodiment of the present disclosure proposes a computer program product which, when executed by a processor, performs a near field communication, NFC, card determination method as proposed by the first aspect embodiment of the present disclosure.
According to the near field communication NFC card determining method, device, electronic equipment, non-transitory computer readable storage medium storing computer instructions and computer program product, the target NFC card is determined from a plurality of candidate NFC cards according to screen state and/or control information by acquiring the screen state and/or control information of the electronic equipment, and detection of the screen state and the control information of the electronic equipment generally does not occupy excessive detection resources and detection time, so that the currently required NFC card can be accurately and rapidly determined.
Additional aspects and advantages of the disclosure will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the disclosure.
Drawings
The foregoing and/or additional aspects and advantages of the present disclosure will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
fig. 1 is a flowchart of a near field communication NFC card determination method according to an embodiment of the disclosure;
fig. 2 is a flowchart of a near field communication NFC card determination method according to another embodiment of the disclosure;
FIG. 3a is a schematic diagram illustrating a card swiping configuration in an embodiment of the disclosure;
FIG. 3b is a schematic diagram illustrating another card swiping arrangement according to an embodiment of the disclosure;
fig. 4 is a flowchart of a near field communication NFC card determination method according to another embodiment of the disclosure;
fig. 5 is a flowchart of a near field communication NFC card determination method according to another embodiment of the disclosure;
fig. 6 is a flowchart of an NFC card determination method in an embodiment of the disclosure;
fig. 7 is a schematic structural diagram of a near field communication NFC card determining device according to an embodiment of the disclosure;
fig. 8 illustrates a block diagram of an exemplary electronic device suitable for use in implementing embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are exemplary only for explaining the present disclosure and are not to be construed as limiting the present disclosure. On the contrary, the embodiments of the disclosure include all alternatives, modifications, and equivalents as may be included within the spirit and scope of the appended claims.
Fig. 1 is a flowchart of a near field communication NFC card determination method according to an embodiment of the disclosure.
The present embodiment is exemplified by the near field communication NFC card determining method being configured as a near field communication NFC card determining device, and the near field communication NFC card determining method in the present embodiment may be configured in the near field communication NFC card determining device, and the near field communication NFC card determining device may be disposed in a server, or may also be disposed in an electronic apparatus, which is not limited thereto. The present embodiment takes an example in which the near field communication NFC card determination method is configured in an electronic device. Among them, electronic devices such as smartphones, tablet computers, personal digital assistants, electronic books, and the like have hardware devices of various operating systems.
The execution body of the embodiment of the present disclosure may be, for example, a server or a central processing unit (Central Processing Unit, CPU) in an electronic device in hardware, or may be, for example, a server or a related background service in an electronic device in software, which is not limited.
As shown in fig. 1, the near field communication NFC card determining method includes:
s101: and acquiring screen state and/or control information of the electronic equipment.
The state of the screen of the electronic device at present may be referred to as a screen state, and information for controlling the electronic device may be referred to as control information.
The screen state may be, for example, a bright screen state, a blank screen state, a duration of the bright screen state, a duration of the blank screen state, or the like, which is not limited.
The control information may be, for example, operation information of a preset key of the electronic device, where the preset key is, for example, a power key, and the control information may be operation information generated when the power key is double-clicked, which is not limited.
S102: and determining the target NFC card from the plurality of candidate NFC cards according to the screen state and/or the control information.
Among them, the NFC card currently required may be referred to as a target NFC card.
In the embodiment of the disclosure, when the NFC function of the electronic device is to be used, the screen state of the electronic device may be detected, and the NFC card currently required may be determined based on the screen state; or detecting control information of the electronic equipment, and determining the NFC card required currently based on the control information; alternatively, the screen state and the control information of the electronic device may also be detected, and the NFC card currently required may be determined based on the screen state and the control information, which is not limited.
Therefore, the current required NFC card is determined not depending on the positioning result of the electronic equipment or the effective time of the default card, but the target NFC card is determined from a plurality of candidate NFC cards according to the screen state and/or the control information, and the screen state and the control information of the electronic equipment are detected, so that excessive detection resources and detection time are not occupied, and the current required NFC card can be accurately and rapidly determined.
In some embodiments of the present disclosure, determining a target NFC card from a plurality of candidate NFC cards according to the screen state and/or the control information may include taking a candidate NFC card corresponding to the screen state from the plurality of candidate NFC cards as the target NFC card; or the candidate NFC card corresponding to the control information in the plurality of candidate NFC cards can be used as the target NFC card; or the candidate NFC cards corresponding to the screen state and the control information in the plurality of candidate NFC cards are used as target NFC cards, so that the flexibility of determining the current required NFC cards can be effectively improved, the method and the device are effectively applicable to the use requirements of personalized NFC cards, and the use experience of users is improved.
That is, in the embodiment of the present disclosure, the correspondence between the preset screen state and the candidate NFC card is supported, for example, the corresponding relationship may be set based on the user requirement of the user, or the user setting instruction may be detected, and the corresponding relationship may be set according to the user setting instruction, and then, the target NFC card is determined from the plurality of NFC cards, and the candidate NFC card corresponding to the current screen state may be determined as the target NFC card, which is not limited.
In the embodiment of the present disclosure, a correspondence between preset control information and candidate NFC cards is also supported, for example, the correspondence may be set based on a user's use requirement, or a user control instruction may be detected, and the target NFC card may be determined from multiple NFC cards according to the user control instruction setting, or the target NFC card may be determined based on the correspondence, and the candidate NFC card corresponding to the current control information may be used as the target NFC card, which is not limited.
In the embodiment of the present disclosure, a preset screen state and a correspondence between control information and candidate NFC cards are also supported, for example, the setting may be based on a user's use requirement, or a user setting instruction may be detected, and the setting may be performed according to the user setting instruction, and then, after determining a target NFC card from a plurality of NFC cards, a candidate NFC card corresponding to the current control information and the screen state may be determined based on the correspondence, as the target NFC card, which is not limited.
In this embodiment, by acquiring the screen state and/or control information of the electronic device, and determining the target NFC card from the plurality of candidate NFC cards according to the screen state and/or control information, detection of the screen state and control information of the electronic device generally does not occupy excessive detection resources and detection time, so that the currently required NFC card can be accurately and rapidly determined.
Fig. 2 is a flowchart of a near field communication NFC card determination method according to another embodiment of the disclosure.
As shown in fig. 2, the near field communication NFC card determining method includes:
s201: and acquiring a screen state of the electronic equipment, wherein the screen state is a bright screen state or a screen-off state.
S202: and taking the candidate NFC card corresponding to the bright screen state in the plurality of candidate NFC cards as a target NFC card.
That is, the currently desired target NFC card may be determined from a plurality of candidate NFC cards based on a bright screen state or a off screen state of the electronic device.
The first card identifier corresponding to the screen-on state may be preset, and then, if the electronic device is detected and determined to be in the screen-on state when the NFC function is actually used, the candidate NFC card indicated by the first card identifier corresponding to the screen-on state is directly selected as the target NFC card.
S203: and taking the candidate NFC card corresponding to the screen-off state in the plurality of candidate NFC cards as a target NFC card.
The second card identifier corresponding to the screen-off state can be preset, and then when the NFC function is actually used, if the electronic device is detected and determined to be in the screen-off state, the candidate NFC card indicated by the second card identifier corresponding to the screen-off state is directly selected as the target NFC card.
The description for setting the card of the candidate NFC corresponding to the bright screen state and the off screen state may be as follows:
fig. 3a is a schematic diagram of a card swiping manner according to an embodiment of the disclosure. Fig. 3b is a schematic diagram illustrating another card swiping arrangement according to an embodiment of the disclosure. If the "shortcut card cut" function is enabled in the electronic device, the selection of the NFC card by detecting the screen status is supported. When the "shortcut card-cutting" function for the electronic device is enabled, the electronic device can jump to the interface shown in fig. 3b, so as to support the user to set card identifiers corresponding to different screen states in the interface shown in fig. 3 b. When the screen is off (i.e., the screen state is off), the user can start one NFC card, which indicates that the off state is associated with one NFC card started by the user, and when the screen is on (i.e., the screen state is on), the user can start another NFC card, which indicates that the on state is associated with another NFC card started by the user, without limitation.
The NFC card determining method in this embodiment may be effectively suitable for a scenario with a small number of NFC cards, for example, if two NFC cards are configured in an electronic device, different NFC cards may be supported to be invoked by means of a bright screen state or a screen-off state.
In this embodiment, by acquiring the screen state of the electronic device, where the screen state is a bright screen state or a blank screen state, and using a candidate NFC card corresponding to the bright screen state of the plurality of candidate NFC cards as a target NFC card, or using a candidate NFC card corresponding to the blank screen state of the plurality of candidate NFC cards as a target NFC card, the required target NFC card is flexibly selected according to the current screen state of the electronic device, so that the determination mode of the NFC card is effectively applicable to the personalized screen state, and the practicability of the determination of the NFC card is improved.
Fig. 4 is a flowchart of a near field communication NFC card determination method according to another embodiment of the disclosure.
As shown in fig. 4, the near field communication NFC card determining method includes:
s401: and acquiring control information of the electronic equipment, wherein the control information is first control information or second control information, the first control information is information for controlling a preset key of the electronic equipment, the second control information is control information generated based on identification of a target NFC card indicated by a user selection instruction in response to the user selection instruction, and the user selection instruction is used for determining the target NFC card from a plurality of candidate NFC cards.
The information for controlling the preset key of the electronic device may be referred to as first control information, and the control information generated based on the user selection instruction may be referred to as second control information.
The preset key is a power key, the first control information may be, for example, control information generated by the electronic device in response to a double-click operation of the power key by a user, the second control information may be, for example, control information generated by the electronic device in response to a double-click operation of the power key by a user, displaying a plurality of candidate NFC cards in a display screen of the electronic device, and receiving a user selection instruction, where the user selection instruction is used to select one candidate NFC card from the plurality of candidate NFC cards, and then, based on control information generated by the one candidate NFC card selected by the user selection instruction, the second control information may be used to use the selected one candidate NFC card as a target NFC card.
S402: and taking the candidate NFC card corresponding to the first control information in the plurality of candidate NFC cards as a target NFC card.
The first card identifier corresponding to the first control information may be preset, and then if the first control information of the electronic device is detected when the NFC function is actually used, the candidate NFC card indicated by the first card identifier corresponding to the first control information is directly selected as the target NFC card.
As shown in fig. 3b, the user is supported to set a card identifier corresponding to the first control information in the interface shown in fig. 3b, and the user may enable one NFC card corresponding to the first control information, which indicates that the first control information should be associated with one NFC card enabled by the user, and when the first control information of the electronic device is detected, one NFC card enabled by the user may be directly used as a target NFC card, for example, the card identifier of one NFC card enabled by the user may be determined, and a candidate NFC card corresponding to the card identifier may be used as the target NFC card, which is not limited.
S403: and taking the candidate NFC card indicated by the identification in the second control information as a target NFC card in the plurality of candidate NFC cards.
And if the second control information of the electronic device is detected, directly taking the candidate NFC card indicated by the identification in the second control information in the plurality of candidate NFC cards as the target NFC card.
In some embodiments of the present disclosure, when the candidate NFC card indicated by the identifier in the second control information is executed as the target NFC card, the plurality of candidate NFC cards may be displayed, and in response to receiving the user selection instruction, the identifier of the target NFC card indicated by the user selection instruction is determined, and the indicated candidate NFC card is identified as the target NFC card in the displayed plurality of candidate NFC cards, so that the target NFC card is quickly determined from the plurality of candidate NFC cards, personalized selection of the user is supported, and an application scenario of the NFC card selection manner is enriched.
The embodiment may be effectively suitable for an application scenario of any number of candidate NFC cards, for example, four candidate NFC cards may be displayed, and the target NFC card may be selected from the displayed four candidate NFC cards based on a user selection instruction, which is not limited.
In this embodiment, the control information of the electronic device is obtained, where the control information is first control information or second control information, the first control information is information for controlling a preset key of the electronic device, the second control information is control information generated based on an identification of a target NFC card indicated by a user selection instruction, the user selection instruction is used to determine the target NFC card from a plurality of candidate NFC cards, if the control information is the first control information, a candidate NFC card corresponding to the first control information in the plurality of candidate NFC cards is taken as the target NFC card, and if the control information is the second control information, a candidate NFC card indicated by an identification in the second control information in the plurality of candidate NFC cards is taken as the target NFC card, so that a required target NFC card is flexibly selected according to the control information of the electronic device, so that a determination mode of the NFC card is effectively applicable to a personalized control scene, and the practicability of NFC card determination is improved.
Fig. 5 is a flowchart of a near field communication NFC card determination method according to another embodiment of the disclosure.
As shown in fig. 5, the near field communication NFC card determining method includes:
s501: and acquiring screen state and control information of the electronic equipment.
That is, in this embodiment, the selection of the target NFC card from the plurality of candidate NFC cards by combining the screen state and the control information of the electronic device is supported, so that the flexibility of selecting the target NFC card is further improved, and the method is suitable for personalized application scenarios.
S502: from the plurality of candidate NFC cards, a candidate NFC card corresponding to the screen state is determined.
S503: from the plurality of candidate NFC cards, a candidate NFC card corresponding to the control information is determined.
After the screen state and the control information of the electronic device are acquired, the candidate NFC card corresponding to the screen state may be determined from the plurality of candidate NFC cards, the candidate NFC card corresponding to the control information may be determined, the candidate NFC card corresponding to the screen state and the candidate NFC card corresponding to the control information may have different priorities, and then the step of determining the target NFC card according to the candidate NFC card corresponding to the screen state and the candidate NFC card corresponding to the control information is performed.
S504: and determining the target NFC card according to the candidate NFC card corresponding to the screen state and the candidate NFC card corresponding to the control information.
For example, the candidate NFC card corresponding to the screen state may be set to have a high priority, that is, the candidate NFC card corresponding to the screen state is preferentially determined to be the target NFC card, and the candidate NFC card corresponding to the control information may be set to have a low priority, that is, if it is determined that the user does not have a need to select the candidate NFC card corresponding to the screen state, the NFC card may be switched, and the candidate NFC card corresponding to the control information may be taken as the target NFC card.
In some embodiments of the present disclosure, when the step of determining the target NFC card according to the candidate NFC card corresponding to the screen state and the candidate NFC card corresponding to the control information is performed, the elapsed time after determining the candidate NFC card corresponding to the control information may be acquired, and if the elapsed time reaches the time threshold, or the card switching instruction is not received, the candidate NFC card corresponding to the screen state is taken as the target NFC card; if the elapsed time does not reach the time threshold value and a card switching instruction is received, the candidate NFC card corresponding to the control information is used as the target NFC card, and the application scene of the NFC card determining method of near field communication is effectively expanded.
That is, if it is determined that the elapsed time after the candidate NFC card corresponding to the control information reaches the time threshold, or if a card switching instruction is not received, it indicates that the user does not have a need to switch NFC cards, then the candidate NFC card corresponding to the screen state may be directly used as the target NFC card, if it is determined that the elapsed time after the candidate NFC card corresponding to the control information does not reach the time threshold, and if a card switching instruction is received, it indicates that the user has a need to switch NFC cards, then the NFC card may be switched, and the candidate NFC card corresponding to the control information is used as the target NFC card.
Fig. 6 is a flowchart of an NFC card determination method according to an embodiment of the disclosure, as shown in fig. 6. If the user activates the NFC function of the electronic device, it may be first determined whether the user double-clicks the power key (i.e. whether the first control information of the electronic device is detected), if the user double-clicks the power key, the candidate NFC card corresponding to the first control information is directly used as the target NFC card, if the user does not double-click the power key, the screen state of the electronic device may be detected, if the screen state is a bright screen state, the candidate NFC card corresponding to the bright screen state is used as the target NFC card, and if the screen state is a screen-off state, the candidate NFC card corresponding to the screen-off state is used as the target NFC card, which is not limited.
In this embodiment, by acquiring the screen state and the control information of the electronic device, determining a candidate NFC card corresponding to the screen state from a plurality of candidate NFC cards, determining a candidate NFC card corresponding to the control information from a plurality of candidate NFC cards, and determining a target NFC card according to the candidate NFC card corresponding to the screen state and the candidate NFC card corresponding to the control information, the screen state and the control information of the electronic device are combined to support selection of the target NFC card from the plurality of candidate NFC cards, so that the selection flexibility of the target NFC card is further improved, and the method is applicable to personalized application scenarios.
Fig. 7 is a schematic structural diagram of a near field communication NFC card determining device according to an embodiment of the disclosure.
As shown in fig. 7, the near field communication NFC card determination device 70 includes:
the acquiring module 701 is configured to acquire screen status and/or control information of the electronic device.
The determining module 702 is configured to determine a target NFC card from a plurality of candidate NFC cards according to the screen status and/or the control information.
In some embodiments of the present disclosure, determining a target NFC card from a plurality of candidate NFC cards according to screen status and/or control information includes at least one of:
taking a candidate NFC card corresponding to the screen state in the plurality of candidate NFC cards as a target NFC card;
taking a candidate NFC card corresponding to the control information in the plurality of candidate NFC cards as a target NFC card;
and taking the candidate NFC card corresponding to the screen state and the control information in the plurality of candidate NFC cards as a target NFC card.
In some embodiments of the present disclosure, the screen state is a bright screen state or a off screen state;
the method for selecting the candidate NFC card corresponding to the screen state from the plurality of candidate NFC cards as the target NFC card comprises the following steps: taking a candidate NFC card corresponding to the bright screen state in the plurality of candidate NFC cards as a target NFC card; or the candidate NFC card corresponding to the screen-off state in the plurality of candidate NFC cards is used as the target NFC card.
In some embodiments of the present disclosure, the control information is first control information or second control information, where the first control information is information for controlling a preset key of the electronic device, and the second control information is control information generated based on an identification of a target NFC card indicated by a user selection instruction in response to the user selection instruction, the user selection instruction being used to determine the target NFC card from among the plurality of candidate NFC cards.
In some embodiments of the present disclosure, taking a candidate NFC card corresponding to control information among a plurality of candidate NFC cards as a target NFC card includes: taking a candidate NFC card corresponding to the first control information in the plurality of candidate NFC cards as a target NFC card; or the candidate NFC card indicated by the identification in the second control information is taken as the target NFC card in the plurality of candidate NFC cards.
In some embodiments of the present disclosure, taking, as a target NFC card, a candidate NFC card indicated by an identification in the second control information, from among a plurality of candidate NFC cards, includes: displaying a plurality of candidate NFC cards; in response to receiving the user selection instruction, determining an identification of the target NFC card indicated by the user selection instruction; and identifying the indicated candidate NFC card as a target NFC card in the displayed plurality of candidate NFC cards.
In some embodiments of the present disclosure, the preset key is a power key.
In some embodiments of the present disclosure, taking a candidate NFC card corresponding to screen status and control information among a plurality of candidate NFC cards as a target NFC card includes:
determining a candidate NFC card corresponding to the screen state from a plurality of candidate NFC cards;
determining a candidate NFC card corresponding to the control information from a plurality of candidate NFC cards;
and determining the target NFC card according to the candidate NFC card corresponding to the screen state and the candidate NFC card corresponding to the control information.
In some embodiments of the present disclosure, determining a target NFC card from a candidate NFC card corresponding to a screen state and a candidate NFC card corresponding to control information includes:
acquiring a time length which passes after determining a candidate NFC card corresponding to the control information;
if the elapsed time reaches the time threshold or a card switching instruction is not received, taking the candidate NFC card corresponding to the screen state as a target NFC card;
and if the elapsed time does not reach the time threshold value and a card switching instruction is received, taking the candidate NFC card corresponding to the control information as the target NFC card.
It should be noted that the foregoing explanation of the NFC card determination method is also applicable to the NFC card determination device of the present embodiment, and will not be repeated here.
In this embodiment, by acquiring the screen state and/or control information of the electronic device, and determining the target NFC card from the plurality of candidate NFC cards according to the screen state and/or control information, detection of the screen state and control information of the electronic device generally does not occupy excessive detection resources and detection time, so that the currently required NFC card can be accurately and rapidly determined.
Fig. 8 illustrates a block diagram of an exemplary electronic device suitable for use in implementing embodiments of the present disclosure. The electronic device 12 shown in fig. 8 is merely an example and should not be construed to limit the functionality and scope of use of embodiments of the present disclosure in any way.
As shown in fig. 8, the electronic device 12 is in the form of a general purpose computing device. Components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a memory 28, and a bus 18 that connects the various system components, including the memory 28 and the processing unit 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include industry Standard architecture (Industry Standard Architecture; hereinafter ISA) bus, micro channel architecture (Micro Channel Architecture; hereinafter MAC) bus, enhanced ISA bus, video electronics standards Association (Video Electronics Standards Association; hereinafter VESA) local bus, and peripheral component interconnect (Peripheral Component Interconnection; hereinafter PCI) bus.
Electronic device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (Random Access Memory; hereinafter: RAM) 30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 8, commonly referred to as a "hard disk drive").
Although not shown in fig. 8, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a compact disk read only memory (Compact Disc Read Only Memory; hereinafter CD-ROM), digital versatile read only optical disk (Digital Video Disc Read Only Memory; hereinafter DVD-ROM), or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of the various embodiments of the disclosure.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods in the embodiments described in this disclosure.
The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a person to interact with the electronic device 12, and/or any devices (e.g., network card, modem, etc.) that enable the electronic device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks, such as a local area network (Local Area Network; hereinafter: LAN), a wide area network (Wide Area Network; hereinafter: WAN) and/or a public network, such as the Internet, via the network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 over the bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by running a program stored in the memory 28, for example, implementing the near field communication NFC card determination method mentioned in the foregoing embodiment.
In order to implement the above-described embodiments, the present disclosure also proposes a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a near field communication NFC card determination method as proposed by the foregoing embodiments of the present disclosure.
To achieve the above-mentioned embodiments, the present disclosure also proposes a computer program product which, when executed by a processor, performs a near field communication NFC card determination method as proposed by the foregoing embodiments of the present disclosure.
It should be noted that in the description of the present disclosure, 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. Furthermore, in the description of the present disclosure, unless otherwise indicated, the meaning of "a plurality" is two or more.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and further implementations are included within the scope of the preferred embodiment of the present disclosure in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present disclosure.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
Furthermore, each functional unit in the embodiments of the present disclosure may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present disclosure have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the present disclosure, and that variations, modifications, alternatives, and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the present disclosure.

Claims (10)

1. A near field communication, NFC, card determination method, the method comprising:
acquiring screen state and/or control information of the electronic equipment;
determining a target NFC card from a plurality of candidate NFC cards according to the screen state and/or the control information, wherein the target NFC card comprises:
the method for selecting the candidate NFC card corresponding to the screen state and the control information from the plurality of candidate NFC cards as the target NFC card comprises the following steps:
determining a candidate NFC card corresponding to the screen state from the plurality of candidate NFC cards;
determining a candidate NFC card corresponding to the control information from the plurality of candidate NFC cards;
acquiring and determining the time length of the candidate NFC card corresponding to the control information;
if the elapsed time reaches a time threshold or a card switching instruction is not received, taking the candidate NFC card corresponding to the screen state as the target NFC card;
and if the elapsed time does not reach the time threshold and the card switching instruction is received, taking the candidate NFC card corresponding to the control information as the target NFC card.
2. The method of claim 1, wherein the determining a target NFC card from a plurality of candidate NFC cards according to the screen status and/or control information further comprises at least one of:
taking a candidate NFC card corresponding to the screen state in the plurality of candidate NFC cards as the target NFC card;
and taking the candidate NFC card corresponding to the control information in the plurality of candidate NFC cards as the target NFC card.
3. The method of claim 2, wherein the screen state is a bright screen state or a off screen state;
the step of using the candidate NFC card corresponding to the screen state of the plurality of candidate NFC cards as the target NFC card includes:
taking a candidate NFC card corresponding to the bright screen state in the plurality of candidate NFC cards as the target NFC card; or alternatively
And taking the candidate NFC card corresponding to the screen-extinguishing state in the plurality of candidate NFC cards as the target NFC card.
4. The method of claim 2, wherein the control information is first control information or second control information, wherein the first control information is information controlling a preset key of an electronic device, and the second control information is control information generated based on an identification of a target NFC card indicated by a user selection instruction in response to the user selection instruction, the user selection instruction being used to determine the target NFC card from the plurality of candidate NFC cards.
5. The method of claim 4, wherein the taking a candidate NFC card of the plurality of candidate NFC cards that corresponds to the control information as the target NFC card comprises:
taking a candidate NFC card corresponding to the first control information in the plurality of candidate NFC cards as the target NFC card; or alternatively
And taking the candidate NFC card indicated by the identification in the second control information as the target NFC card in the plurality of candidate NFC cards.
6. The method of claim 5, wherein the regarding the candidate NFC card of the plurality of candidate NFC cards indicated by the identification in the second control information as the target NFC card comprises:
displaying the plurality of candidate NFC cards;
in response to receiving the user selection instruction, determining the identification of the target NFC card indicated by the user selection instruction;
and taking the displayed candidate NFC cards as the target NFC card, wherein the candidate NFC card is indicated by the identification.
7. The method of any of claims 4-6, wherein the predetermined key is a power key.
8. A near field communication, NFC, card determination apparatus, the apparatus comprising:
the acquisition module is used for acquiring screen state and/or control information of the electronic equipment;
the determining module is used for determining a target NFC card from a plurality of candidate NFC cards according to the screen state and/or the control information;
the determining module is specifically configured to:
determining a candidate NFC card corresponding to the screen state from the plurality of candidate NFC cards;
determining a candidate NFC card corresponding to the control information from the plurality of candidate NFC cards;
acquiring and determining the time length of the candidate NFC card corresponding to the control information;
if the elapsed time reaches a time threshold or a card switching instruction is not received, taking the candidate NFC card corresponding to the screen state as the target NFC card;
and if the elapsed time does not reach the time threshold and the card switching instruction is received, taking the candidate NFC card corresponding to the control information as the target NFC card.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
10. A non-transitory computer readable storage medium storing computer instructions, wherein the computer instructions are for causing the computer to perform the method of any one of claims 1-7.
CN202310166288.9A 2023-02-27 2023-02-27 Near field communication NFC card determination method and device, electronic equipment and storage medium Active CN115866134B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310166288.9A CN115866134B (en) 2023-02-27 2023-02-27 Near field communication NFC card determination method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310166288.9A CN115866134B (en) 2023-02-27 2023-02-27 Near field communication NFC card determination method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115866134A CN115866134A (en) 2023-03-28
CN115866134B true CN115866134B (en) 2023-06-06

Family

ID=85658971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310166288.9A Active CN115866134B (en) 2023-02-27 2023-02-27 Near field communication NFC card determination method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115866134B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112069848A (en) * 2020-11-12 2020-12-11 深圳市汇顶科技股份有限公司 Card selection method, chip, terminal and storage medium for NFC card simulation mode
WO2021244118A1 (en) * 2020-06-04 2021-12-09 华为技术有限公司 Smart card sharing method, electronic device, and computer-readable storage medium
CN113902436A (en) * 2020-06-22 2022-01-07 Oppo广东移动通信有限公司 Analog card switching method, terminal device, card reader and storage medium

Family Cites Families (5)

* 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
CN111543041B (en) * 2017-12-29 2021-06-04 华为技术有限公司 Selection method of analog card and mobile device
CN110020569B (en) * 2019-03-11 2022-03-29 华为技术有限公司 Method for automatically selecting NFC analog card, electronic equipment and communication system
CN110807502B (en) * 2019-10-31 2024-04-09 天星数科科技有限公司 NFC intelligent card configuration method and device
CN112511974A (en) * 2020-12-14 2021-03-16 展讯通信(上海)有限公司 NFC card selection method and device and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021244118A1 (en) * 2020-06-04 2021-12-09 华为技术有限公司 Smart card sharing method, electronic device, and computer-readable storage medium
CN113902436A (en) * 2020-06-22 2022-01-07 Oppo广东移动通信有限公司 Analog card switching method, terminal device, card reader and storage medium
CN112069848A (en) * 2020-11-12 2020-12-11 深圳市汇顶科技股份有限公司 Card selection method, chip, terminal and storage medium for NFC card simulation mode

Also Published As

Publication number Publication date
CN115866134A (en) 2023-03-28

Similar Documents

Publication Publication Date Title
WO2019041779A1 (en) Terminal interface switching, moving and gesture processing method and device and terminal
US8302031B1 (en) Systems and methods for configuring information displayed on a screen
CN105335099A (en) Memory cleaning method and terminal
JP2014149825A (en) Method of managing applications and device of managing applications
US9563393B2 (en) Information processing method and electronic device
KR102100458B1 (en) Method for managing memory and an electronic device thereof
CN107291950B (en) Form data updating method and device and computer equipment
KR20130122737A (en) Displaying battery life resulting from setting changes
EP3039556B1 (en) Method, apparatus, and recording medium for interworking with external terminal
US8214550B2 (en) Method for controlling icon display corresponding to a USB mass storage, associated personal computer, and storage medium storing an associated USB mass storage driver
US20160154545A1 (en) Electronic device and method for managing and displaying application icons
CN109358927B (en) Application program display method and device and terminal equipment
CN115866134B (en) Near field communication NFC card determination method and device, electronic equipment and storage medium
JP2017068670A (en) Display control device, display control method, and display control program
CN108984238B (en) Gesture processing method and device of application program and electronic equipment
CN115562735A (en) External storage device mounting method and device, electronic device and storage medium
US10585557B2 (en) Running computer program on video card selected based on video card preferences of the computer program
CN110177225B (en) Method, terminal and storage medium for realizing signal channel multiplexing
US20040230789A1 (en) Multi memory card accessing system and implementation method thereof
CN113438419B (en) Camera starting method and device and electronic equipment
CN111414470A (en) Method and device for processing document, computer storage medium and terminal
KR102101876B1 (en) Method for managing application and device for performing management of application
CN115167926A (en) Multi-display-card configuration system and method based on BIOS
CN117667268A (en) Interface display method and device of application program, electronic equipment and storage medium
CN117472441A (en) Display control method, device, computer equipment 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