Determination Method, Device, Electronic Device and Storage Medium for NFC Card

By receiving wireless communication signals from the NFC card reader, determining the relative position information between the electronic device and the card reader, and automatically selecting the target NFC card, solving the problem of inefficient card swiping caused by the user's manual selection of cards, and realizing a more efficient NFC card determination and card swiping process.

CN115002659BActive Publication Date: 2025-07-11GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210583396.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-25
Publication Date
2025-07-11
Estimated Expiration
2042-05-25

AI Technical Summary

Technical Problem

When using NFC cards in existing electronic devices, users need to manually select cards on the display interface, resulting in inefficient card swiping.

Method used

The wireless communication signal transmitted by the NFC card reader is received through the short-range wireless communication module of the electronic device, and the relative position information between the device and the card reader is determined, thereby automatically selecting the target NFC card and sending the card information.

Benefits of technology

No need for users to manually select cards, which significantly improves the efficiency of determining NFC cards and the convenience of swiping cards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115002659B_ABST
    Figure CN115002659B_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose a method, apparatus, electronic device, and storage medium for determining an NFC card. The method for determining the NFC card includes: receiving a wireless communication signal transmitted by an NFC card reader through a near-field wireless communication module of the electronic device; determining relative pose information between the electronic device and the NFC card reader according to the wireless communication signal received by the near-field wireless communication module; determining a target NFC card corresponding to the relative pose information from multiple NFC cards; and sending the card information of the target NFC card to the NFC card reader. By implementing this method, the determination efficiency of the NFC card can be greatly improved, and the convenience of the user for swiping the card can be further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of electronic devices, and particularly to a method, apparatus, electronic device and storage medium for determining an NFC card. Background Art

[0002] Currently, most electronic devices (such as smart phones, smart watches, and tablets) support Near Field Communication (NFC). Usually, an electronic device installs multiple NFC cards. When using the corresponding card, the user usually needs to manually select the card on the display interface of the electronic device, which takes a long time and affects the card swiping efficiency of the electronic device. Summary of the Invention

[0003] Embodiments of this application provide a method, apparatus, electronic device and storage medium for determining an NFC card, which can quickly determine the NFC card and is beneficial to improving the card swiping efficiency of the electronic device.

[0004] In a first aspect of the embodiments of this application, a method for determining a Near Field Communication (NFC) card is provided, which may include:

[0005] Receiving a wireless communication signal emitted by an NFC card reader through a short-range wireless communication module of the electronic device;

[0006] Determining relative pose information between the electronic device and the NFC card reader according to the wireless communication signal received by the short-range wireless communication module;

[0007] Determining a target NFC card corresponding to the relative pose information from multiple NFC cards;

[0008] Sending the card information of the target NFC card to the NFC card reader.

[0009] In a second aspect of the embodiments of this application, a device for determining a Near Field Communication (NFC) card is provided, including:

[0010] A signal receiving unit, configured to receive a wireless communication signal emitted by an NFC card reader through a short-range wireless communication module of the electronic device;

[0011] A pose determination unit, configured to determine relative pose information between the electronic device and the NFC card reader according to the wireless communication signal received by the short-range wireless communication module;

[0012] A card determination unit, configured to determine a target NFC card corresponding to the relative pose information from multiple NFC cards;

[0013] An information sending unit, configured to send the card information of the target NFC card to the NFC card reader.

[0014] A third aspect of the embodiments of the present application provides an electronic device, which may include:

[0015] A memory storing executable program code;

[0016] And a processor coupled to the memory;

[0017] The processor calls the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method described in the first aspect of the embodiments of the present application.

[0018] A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, on which executable program code is stored, and when the executable program code is executed by a processor, the method described in the first aspect of the embodiments of the present application is implemented.

[0019] A fifth aspect of the embodiments of the present application discloses a computer program product, and when the computer program product runs on a computer, the computer is caused to execute any one of the methods disclosed in the first aspect of the embodiments of the present application.

[0020] A sixth aspect of the embodiments of the present application discloses an application publishing platform, which is used to publish a computer program product, wherein when the computer program product runs on a computer, the computer is caused to execute any one of the methods disclosed in the first aspect of the embodiments of the present application.

[0021] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0022] In the embodiments of the present application, a wireless communication signal emitted by an NFC card reader is received through a short-range wireless communication module of an electronic device; relative pose information between the electronic device and the NFC card reader is determined according to the wireless communication signal received by the short-range wireless communication module; a target NFC card corresponding to the relative pose information is determined from multiple NFC cards; and the card information of the target NFC card is sent to the NFC card reader.

[0023] By implementing this method, the relative pose information between the electronic device and the NFC card reader can be determined according to the wireless communication signal transmitted by the NFC card reader received by the short-range wireless communication module of the electronic device. Then, according to the relative pose information, the target NFC card can be determined from multiple NFC cards. Finally, the card information of the target NFC card is sent to the NFC card reader. It can be seen that this method of determining the NFC card based on the relative pose information does not require the user to manually select the card on the display interface of the electronic device, greatly improving the determination efficiency of the NFC card and further enhancing the convenience of the user's card swiping. Brief Description of the Drawings

[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments and the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can also be obtained according to these drawings.

[0025] Figure 1 is a schematic diagram of a scenario of the method for determining an NFC card disclosed in the embodiments of the present application;

[0026] Figure 2 is a schematic flowchart of a method for determining an NFC card disclosed in the embodiments of the present application;

[0027] Figure 3 is another schematic flowchart of the method for determining an NFC card disclosed in the embodiments of the present application;

[0028] Figure 4A is an illustration of the pitch angle of the electronic device 10 relative to the NFC card reader 20 disclosed in the embodiments of the present application;

[0029] Figure 4B is an illustration of the roll angle of the electronic device 10 relative to the NFC card reader 20 disclosed in the embodiments of the present application;

[0030] Figure 4C is an illustration of the displacement of the electronic device in the vertical direction relative to the NFC card reader;

[0031] Figure 4D is an illustration of the displacement of the electronic device in the vertical direction relative to the NFC card reader;

[0032] Figure 5 is a structural block diagram of a device for determining an NFC card disclosed in the embodiments of the present application;

[0033] Figure 6 is a structural block diagram of an electronic device disclosed in the embodiments of the present application. Detailed Embodiments

[0034] The embodiments of the present application provide a method, apparatus, electronic device and storage medium for determining a Near Field Communication (NFC) card, which can quickly determine the NFC card and is beneficial to improving the card swiping efficiency of the electronic device.

[0035] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All embodiments based on the embodiments of the present application shall fall within the scope of protection of the present application.

[0036] It can be understood that the electronic devices involved in the embodiments of the present application may include general handheld screen electronic devices, such as mobile phones, smart phones, portable terminals, terminals, personal digital assistants (PDAs), portable multimedia player (PMP) devices, laptop computers, notebooks, wireless broadband (Wibro) terminals, tablet computers (PCs), smart PCs, point of sales (POS) terminals, and in-vehicle computers.

[0037] The electronic device may also include wearable devices. Wearable devices can be directly worn on the user's body or integrated into the user's clothes or accessories as a kind of portable electronic device. Wearable devices are not only a kind of hardware device, but can also achieve powerful intelligent functions through software support, data interaction, and cloud server interaction, such as computing functions, positioning functions, and alarm functions. At the same time, they can also be connected to mobile phones and various terminals. Wearable devices may include, but are not limited to, watch-type devices supported by the wrist (such as watches, wristbands, etc.), shoes-type devices supported by the feet (such as shoes, socks, or other products worn on the legs), Glass-type devices supported by the head (such as glasses, helmets, headbands, etc.), and smart clothing, schoolbags, crutches, accessories, and other various non-mainstream product forms.

[0038] Please refer to Figure 1 , Figure 1 which is a schematic diagram of a scenario of the method for determining an NFC card disclosed in the embodiments of the present application. As Figure 1The schematic diagram of the shown scenario includes an electronic device 10 and an NFC card reader 20. First, the electronic device 10 receives the wireless communication signal emitted by the NFC card reader 20 through the short-range wireless communication module of the electronic device 10. Then, the electronic device 10 determines the relative pose information between the electronic device 10 and the NFC card reader 20 according to the wireless communication signal received by the short-range wireless communication module, and determines the target NFC card corresponding to the relative pose information from multiple NFC cards. Finally, the electronic device 10 sends the card information of the target NFC card to the NFC card reader 20. It can be seen that this method of determining the NFC card based on the relative pose information does not require the user to manually select the card on the display interface of the electronic device 10, greatly improving the determination efficiency of the NFC card and further improving the convenience of the user's card swiping.

[0039] Please refer to Figure 2 , Figure 2 which is a schematic flowchart of a method for determining an NFC card disclosed in an embodiment of the present application. As Figure 2 shown, the method for determining the NFC card may include the following steps:

[0040] 201. Receive the wireless communication signal emitted by the NFC card reader through the short-range wireless communication module of the electronic device.

[0041] In some embodiments, the short-range wireless communication module of the electronic device may include a wireless carrier communication UWB module, an NFC module, a Bluetooth module, etc., which are not limited in the embodiments of the present application.

[0042] It should be noted that the NFC card reader includes the same short-range wireless communication module as the electronic device, and the NFC card reader emits the wireless communication signal through this short-range wireless communication module. It can be understood that if the short-range wireless communication module of the electronic device is a UWB module, the NFC card reader emits the wireless communication signal through the UWB module on the NFC card reader; if the short-range wireless communication module of the electronic device is a Bluetooth module, the NFC card reader emits the wireless communication signal through the Bluetooth module on the NFC card reader.

[0043] 202. Determine the relative pose information between the electronic device and the NFC card reader according to the wireless communication signal received by the short-range wireless communication module.

[0044] In some embodiments, the short-range wireless communication module of the electronic device includes at least two antennas. The wireless communication signal received by the wireless short-range module of the electronic device may include the wireless communication signal received by each of the at least two antennas.

[0045] In an embodiment of the present application, the relative pose information may include relative position information and / or relative attitude information. Among them, the relative position information is used to characterize the relative position relationship between the electronic device and the NFC card reader, and the relative attitude information is used to characterize the relative attitude relationship between the electronic device and the NFC card reader.

[0046] 203. Determine a target NFC card corresponding to the relative pose information from multiple NFC cards.

[0047] In some embodiments, the multiple NFC cards may be all NFC cards installed on the electronic device, or some NFC cards installed on the electronic device, which is not limited in the embodiments of the present application.

[0048] In some embodiments, when the multiple NFC cards are some NFC cards installed on the electronic device, multiple NFC cards that match the current position and / or current time of the electronic device may also be determined from all the NFC cards installed on the electronic device according to the usage time and / or usage position corresponding to each NFC card among all the NFC cards installed on the electronic device.

[0049] In some embodiments, the target usage time corresponding to each NFC card may be obtained by analyzing the usage time of each time of the NFC card within a second specified duration; the target usage position corresponding to each NFC card may be obtained by analyzing the usage position of each time of the NFC card within a second specified duration. Among them, the second specified duration may be a relatively long time period such as one week, one month or one quarter.

[0050] The following gives an example of the case where the usage time of the multiple NFC cards matches the current time: Exemplarily, cards 1, 2, 3, and 4 are installed on the electronic device. Among them, the target usage time of card 1 is 8:00 - 8:30 and 19:00 - 20:00 in the morning, the target usage time of card 2 is 8:10 - 8:25 and 19:00 - 20:10 in the morning, the target usage time of card 3 is 8:30 - 9:00 and 18:00 - 18:50 in the morning, and the target usage time of card 4 is 8:35 - 8:55 and 17:50 - 18:45. If the current time point is 8:25, then the multiple NFC cards include card 1 and card 2.

[0051] The following is an example of the case where the usage locations of the above-mentioned multiple NFC cards match the current location of the electronic device: Exemplarily, there are Card 1, Card 2, Card 3, and Card 4 installed on the electronic device. Among them, the target usage location of Card 1 is Location 1, the target usage location of Card 2 is Location 2, the target usage location of Card 3 is Location 1, and the target usage location of Card 4 is Location 2. If the current time point is Location 1, then the above-mentioned multiple NFC cards include Card 1 and Card 3.

[0052] By implementing this method, before determining the corresponding target NFC card according to the relative pose information between the electronic device and the NFC reader, the NFC cards installed on the electronic device are preliminarily screened according to the current location and / or current time of the electronic device, and then based on the relative pose information between the electronic device and the NFC reader, the target NFC card is further determined among the preliminarily screened NFC cards, which can greatly reduce the base number of NFC cards when determining the NFC card according to the relative pose information. Furthermore, it is not necessary to require relatively high-precision relative pose information, reducing the computational amount of the electronic device when determining the relative pose information and further improving the determination efficiency of the card.

[0053] 204. Send the card information of the target NFC card to the NFC reader.

[0054] In some embodiments, when the near-field communication module of the electronic device is not an NFC module, sending the card information of the target NFC card to the NFC reader may include: when receiving the radio frequency signal sent by the NFC module of the NFC reader, sending the card information of the target NFC card to the NFC reader through the NFC module of the electronic device.

[0055] By implementing the above method, according to the wireless communication signal emitted by the NFC reader received by the near-field communication module of the electronic device, the relative pose information between the electronic device and the NFC reader is determined. Then, according to this relative pose information, the target NFC card is determined from multiple NFC cards, and finally the card information of the target NFC card is sent to the NFC reader. It can be seen that this way of determining the NFC card based on the relative pose information does not require the user to manually select the card on the display interface of the electronic device, greatly improving the determination efficiency of the NFC card, and thus improving the card swiping efficiency of the electronic device.

[0056] Please refer to Figure 3 , Figure 3 which is another flowchart of the method for determining the NFC card disclosed in the embodiments of the present application. As Figure 3 shown, the method for determining the NFC card may include the following steps:

[0057] 301. Receive the wireless communication signal emitted by the NFC reader through the short-range wireless communication module of the electronic device; wherein, the short-range wireless communication module of the electronic device includes a first antenna and a second antenna.

[0058] Wherein, the first antenna is close to the first end of the electronic device, the second antenna is close to the second end of the electronic device, and the first end and the second end are opposite. Wherein, the first end of the electronic device may refer to the upper end when the electronic device is placed vertically, and the second end of the electronic device may refer to the lower end when the electronic device is placed vertically.

[0059] 302. Determine the first relative pose information between the electronic device and the NFC reader according to the power difference when the first antenna and the second antenna receive the wireless communication signal, and / or determine the second relative pose information between the electronic device and the NFC reader according to the phase difference when the first antenna and the second antenna receive the wireless communication signal.

[0060] In some embodiments, determining the first relative pose information between the electronic device and the NFC reader according to the power difference when the first antenna and the second antenna receive the wireless communication signal may include: determining the power difference interval where the power difference when the first antenna and the second antenna receive the wireless communication signal is located, and determining the first relative pose information between the electronic device and the NFC reader according to the power difference interval.

[0061] In some embodiments, determining the second relative pose information between the electronic device and the NFC reader according to the phase difference when the first antenna and the second antenna receive the wireless communication signal may include: determining the phase difference interval where the phase difference when the first antenna and the second antenna receive the wireless communication signal is located, and determining the second relative pose information between the electronic device and the NFC reader according to the phase difference interval.

[0062] In some embodiments, the first relative pose information includes the relative pitch angle information between the electronic device and the NFC reader, or the first position offset information between the vertical direction of the electronic device and the NFC reader. The second relative pose information includes the relative roll angle information between the electronic device and the NFC reader, or the second position offset information between the horizontal direction of the electronic device and the NFC reader.

[0063] In the embodiments of the present application, the relative pitch angle information may include the pitch angle interval where the pitch angle of the electronic device relative to the NFC reader is located, and the relative roll angle information may include the roll angle interval where the roll angle of the electronic device relative to the NFC reader is located. The first position offset information includes the displacement interval where the displacement of the electronic device relative to the NFC reader in the vertical direction is located, and the second position offset information includes the displacement interval where the displacement of the electronic device relative to the NFC reader in the horizontal direction is located.

[0064] It should be noted that the vertical direction of the NFC reader refers to the vertical direction of the front of the NFC reader, and the horizontal direction of the NFC reader refers to the horizontal direction of the front of the NFC reader.

[0065] Please refer to Figure 4A , Figure 4A which is an illustration of the pitch angle of the electronic device 10 relative to the NFC reader 20 disclosed in the embodiments of the present application. Figure 4A It is a view looking from the first long side of the NFC reader 20 to the second long side of the NFC reader 20, and the angle α is the pitch angle of the electronic device 10 relative to the NFC reader 20.

[0066] Please refer to Figure 4B , Figure 4B which is an illustration of the roll angle of the electronic device 10 relative to the NFC reader 20 disclosed in the embodiments of the present application. Figure 4B It is a view looking from the first short side of the NFC reader 20 to the second short side of the NFC reader 20, and the angle β is the roll angle of the electronic device 10 relative to the NFC reader 20.

[0067] Please refer to Figure 4C , Figure 4C which is an illustration of the displacement of the electronic device relative to the vertical direction of the NFC reader. Wherein, P0 represents the center point of the NFC reader 20, and P1 represents the center point of the electronic device 10, is the displacement of the electronic device 10 relative to the vertical direction of the NFC reader 20.

[0068] Please refer to Figure 4D , Figure 4D which is an illustration of the displacement of the electronic device relative to the vertical direction of the NFC reader. Wherein, P0 represents the center point of the NFC reader 20, and P1 represents the center point of the electronic device 10, is the displacement of the electronic device 10 relative to the vertical direction of the NFC reader 20.

[0069] In some embodiments, the electronic device may be pre-set with a plurality of power difference intervals and a plurality of phase difference intervals. Among them, each power difference interval may correspond to a pitch angle interval and / or a displacement interval, and each phase difference interval may correspond to a roll angle interval and / or a displacement interval.

[0070] 303. Determine a target NFC card corresponding to the relative pose information from a plurality of NFC cards according to the first relative pose information and / or the second relative pose information.

[0071] In some embodiments, determining a target NFC card corresponding to the relative pose information from multiple NFC cards according to the first relative pose information and / or the second relative pose information may include, but is not limited to, the following methods:

[0072] Method 1: Use the NFC card corresponding to the first position offset information among the multiple NFC cards as the target NFC card;

[0073] Method 2: Use the NFC card corresponding to the second position offset information among the multiple NFC cards as the target NFC card;

[0074] Method 3: Obtain a set of NFC cards corresponding to the first position offset information from the multiple NFC cards, and use the NFC card corresponding to the second position offset information in the set of NFC cards as the target NFC card.

[0075] Method 4: Use the NFC card corresponding to the relative pitch angle information among the multiple NFC cards as the target NFC card;

[0076] Method 5: Use the NFC card corresponding to the relative roll angle information among the multiple NFC cards as the target NFC card;

[0077] Method 6: Obtain a set of NFC cards corresponding to the relative pitch angle information from the multiple NFC cards, and use the NFC card corresponding to the relative roll angle information in the set of NFC cards as the target NFC card.

[0078] In some embodiments, the NFC cards included in the set of NFC cards corresponding to the first position offset information and the set of NFC cards corresponding to the relative pitch angle information may be NFC cards of the same type, NFC cards with the same usage time, or NFC cards with the same usage location. The embodiments of the present application do not make any limitations.

[0079] In the embodiments of the present application, jointly determining the target NFC card based on the first position offset information and the second position offset information; or jointly determining the target NFC card based on the relative pitch angle information and the relative roll angle information is beneficial to expanding the NFC card capacity of the electronic device.

[0080] 304. Send the card information of the target NFC card to the NFC card reader.

[0081] In some embodiments, after step 404, if the information indicating a failed card reading sent by the NFC card reader is received, determine the number of executions of the target interaction action detected within the first specified duration; determine the first NFC card corresponding to the number of executions from other NFC cards associated with the target NFC card; and send the card information of the first NFC card to the NFC card reader.

[0082] In some embodiments, the target interaction action may include any one of the following: swinging the electronic device, pressing a physical button of the electronic device, pressing a virtual button of the electronic device, etc. Exemplarily, the first specified duration may be a relatively short time period such as 5 s (seconds), 7 s, or 10 s.

[0083] In some embodiments, other NFC cards associated with the target NFC card may include: other NFC cards of the same type as the target NFC card, other NFC cards with the same usage time as the target NFC card, or other cards with the same usage location as the target card, etc., which are not limited in the embodiments of the present application.

[0084] In some embodiments, each of the other NFC cards associated with the target NFC card is preset with a specified number of executions for the target interaction action. Further, determining the first NFC card corresponding to the number of executions from the other NFC cards associated with the target NFC card may include: using, as the first NFC card, the NFC card among the other NFC cards associated with the target NFC card whose specified number of executions is equal to the above-mentioned number of executions.

[0085] Exemplarily, among the NFC cards installed on the electronic device, the other NFC cards associated with the target NFC card include Card 1, Card 2, and Card 3. Among them, the specified number of executions of Card 1 for the target interaction action is 1, the specified number of executions of Card 2 for the target interaction action is 2, and the specified number of executions of Card 3 for the target interaction action is 3. When the number of executions of the target interaction action is 1, the first NFC card is Card 1; when the number of executions of the target interaction action is 2, the first NFC card is Card 2; and when the number of executions of the target interaction action is 3, the first NFC card is Card 3.

[0086] In some embodiments, the electronic device may preset the cut card serial numbers of the target NFC card and other NFC cards associated therewith. Among them, the cut card serial number of the NFC card represents the switching order of the NFC card. The smaller the cut card serial number, the earlier the switching order of the corresponding NFC card.

[0087] Further, determining the first NFC card corresponding to the number of executions from the other NFC cards associated with the target NFC card may include: determining the number of order intervals between the first NFC card and the target NFC card according to the number of executions of the target interaction operation, and determining the cut card serial number of the first NFC card according to the cut card serial number of the target NFC card and the number of order intervals, and determining the first NFC card from the other NFC cards associated with the target NFC card based on the cut card serial number of the first NFC card.

[0088] Exemplarily, among the NFC cards installed on the electronic device, the other NFC cards associated with the target NFC card include Card 1, Card 2, and Card 3. Among them, the card-slicing serial number of Card 1 is 1, the card-slicing serial number of the target NFC card is 2, the card-slicing serial number of Card 2 is 3, and the card-slicing serial number of Card 3 is 4. When the execution times of the target interaction action is 1, the card-slicing serial number of the first NFC card is 2 + 1 = 3, that is, the first NFC card is Card 2. When the execution times of the target interaction action is 2, the card-slicing serial number of the first NFC card is 2 + 2 = 4, that is, the first NFC card is Card 3.

[0089] When the other NFC cards associated with the target NFC card include other NFC cards with the same usage location as the target NFC card. Exemplarily, the target NFC card is the access card of the community at home, and the other NFC cards associated with the target NFC card include the elevator card of the community at home and the parking card of the community at home.

[0090] Among them, for each card, the specified execution times of the target interaction action or the corresponding card-slicing serial number can be independently defined by the user according to personal usage habits. By implementing this method, in the case where the NFC card reader fails to read the target NFC card, convenient and personalized card slicing can be realized based on the target interaction operation.

[0091] By implementing this method, according to the power difference and / or phase difference when the first antenna and the second antenna included in the near-field communication module of the electronic device receive the wireless communication signal, the relative pose information between the electronic device and the NFC card reader can be quickly determined, which is conducive to further improving the determination efficiency of the target NFC card.

[0092] Please refer to Figure 5 , Figure 5 which is a structural block diagram of a determination device for NFC cards disclosed in an embodiment of the present application. As Figure 5 shown, the device may include a signal receiving unit 501, a pose determination unit 502, a card determination unit 503, and an information sending unit 504; where:

[0093] The signal receiving unit 501 is configured to receive the wireless communication signal emitted by the NFC card reader through the near-field communication module of the electronic device;

[0094] The pose determination unit 502 is configured to determine the relative pose information between the electronic device and the NFC card reader according to the wireless communication signal received by the near-field communication module;

[0095] The card determination unit 503 is configured to determine the target NFC card corresponding to the relative pose information from multiple NFC cards;

[0096] An information sending unit 504 is configured to send the card information of the target NFC card to the NFC card reader.

[0097] In some embodiments, the near field communication module includes a first antenna and a second antenna. The first antenna is close to the first end of the electronic device, and the second antenna is close to the second end of the electronic device. The first end and the second end are opposite to each other.

[0098] The manner in which the pose determination unit 502 determines the relative pose information between the electronic device and the NFC card reader according to the wireless communication signal received by the near field communication module may specifically include: The pose determination unit 502 is configured to determine the first relative pose information between the electronic device and the NFC card reader according to the power difference when the first antenna and the second antenna receive the wireless communication signal; and / or, determine the second relative pose information between the electronic device and the NFC card reader according to the phase difference when the first antenna and the second antenna receive the wireless communication signal.

[0099] In some embodiments, the manner in which the pose determination unit 502 determines the first relative pose information between the electronic device and the NFC card reader according to the power difference when the first antenna and the second antenna receive the wireless communication signal may specifically include: The pose determination unit 502 is configured to determine the power difference value range where the power difference when the first antenna and the second antenna receive the wireless communication signal is located, and determine the first relative pose information between the electronic device and the NFC card reader according to the power difference value range.

[0100] The manner in which the pose determination unit 502 determines the second relative pose information between the electronic device and the NFC card reader according to the phase difference when the first antenna and the second antenna receive the wireless communication signal may specifically include: The pose determination unit 502 is configured to determine the phase difference value range where the phase difference when the first antenna and the second antenna receive the wireless communication signal is located, and determine the second relative pose information between the electronic device and the NFC card reader according to the phase difference value range.

[0101] In some embodiments, the first relative pose information includes the relative pitch angle information between the electronic device and the NFC card reader, or the first position offset information between the electronic device and the vertical direction of the NFC card reader; the second relative pose information includes the relative roll angle information between the electronic device and the NFC card reader, or the second position offset information between the electronic device and the horizontal direction of the NFC card reader.

[0102] In some embodiments, the relative pose information includes first position offset information. The manner in which the card determination unit 503 determines a target NFC card corresponding to the relative pose information from multiple NFC cards may specifically include: The card determination unit 503 is configured to use, as the target NFC card, the NFC card among the multiple NFC cards that corresponds to the first position offset information; or,

[0103] The relative pose information includes second position offset information; The manner in which the card determination unit 503 determines a target NFC card corresponding to the relative pose information from multiple NFC cards may specifically include: The card determination unit 503 is configured to use, as the target NFC card, the NFC card among the multiple NFC cards that corresponds to the second position offset information.

[0104] In some embodiments, the relative pose information includes first position offset information and second position offset information; The manner in which the card determination unit 503 determines a target NFC card corresponding to the relative pose information from multiple NFC cards may specifically include: The card determination unit 503 is configured to obtain, from the multiple NFC cards, a set of NFC cards corresponding to the first position offset information; and use, as the target NFC card, the NFC card in the set of NFC cards that corresponds to the second position offset information.

[0105] In some embodiments, after the information sending unit 504 sends the card information of the target NFC card to the NFC card reader, if the card determination unit 503 receives information indicating a failed card reading sent by the NFC card reader, the card determination unit 503 is further configured to determine the number of executions of the target interaction action detected within a first specified duration; and determine, from other NFC cards associated with the target NFC card, a first NFC card corresponding to the number of executions.

[0106] The information sending unit 504 is further configured to send the card information of the first NFC card to the NFC card reader.

[0107] Please refer to Figure 6 , Figure 6 which is a structural block diagram of an electronic device disclosed in an embodiment of the present application. As Figure 6 shown, the electronic device may include a processor 601 and a memory 602 coupled to the processor 601, where the memory 602 may store one or more computer programs.

[0108] The processor 601 may include one or more processing cores. The processor 601 is connected to various parts within the entire electronic device through various interfaces and lines. By running or executing instructions, programs, code sets, or instruction sets stored in the memory 602, and by invoking the data stored in the memory 602, it performs various functions of the electronic device and processes data. Optionally, the processor 601 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 601 may integrate a combination of one or several of a central processing unit (CPU), a graphics processing unit (GPU), and a modem, etc. Among them, the CPU mainly processes the operating system, user interface, application programs, etc.; the GPU is responsible for rendering and drawing the display content; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 601 and may be implemented separately through a communication chip.

[0109] The memory 602 may include random access memory (RAM) and may also include read-only memory (ROM). The memory 602 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 602 may include a program storage area and a data storage area. Among them, the program storage area may store instructions for implementing the operating system, instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The data storage area may also store data created during the use of the electronic device.

[0110] In the embodiments of the present application, the processor 601 further has the following functions:

[0111] Receive the wireless communication signal emitted by the NFC reader through the near-field wireless communication module of the electronic device;

[0112] Determine the relative pose information between the electronic device and the NFC reader according to the wireless communication signal received by the near-field wireless communication module;

[0113] Determine the target NFC card corresponding to the relative pose information from multiple NFC cards;

[0114] Send the card information of the target NFC card to the NFC reader.

[0115] In an embodiment of the present application, the short-range wireless communication module includes a first antenna and a second antenna. The first antenna is close to the first end of the electronic device, and the second antenna is close to the second end of the electronic device. The first end and the second end are opposite to each other. The processor 601 further has the following functions:

[0116] Determine the first relative pose information between the electronic device and the NFC reader according to the power difference when the first antenna and the second antenna receive wireless communication signals;

[0117] And / or

[0118] Determine the second relative pose information between the electronic device and the NFC reader according to the phase difference when the first antenna and the second antenna receive wireless communication signals.

[0119] In an embodiment of the present application, the processor 601 further has the following functions:

[0120] Determine the power difference interval where the power difference when the first antenna and the second antenna receive wireless communication signals is located, and determine the first relative pose information between the electronic device and the NFC reader according to the power difference interval;

[0121] Determine the phase difference interval where the phase difference when the first antenna and the second antenna receive wireless communication signals is located, and determine the second relative pose information between the electronic device and the NFC reader according to the phase difference interval.

[0122] In some embodiments, the first relative pose information includes the relative pitch angle information between the electronic device and the NFC reader, or the first position offset information between the electronic device and the vertical direction of the NFC reader; the second relative pose information includes the relative roll angle information between the electronic device and the NFC reader, or the second position offset information between the electronic device and the horizontal direction of the NFC reader.

[0123] In an embodiment of the present application, the relative pose information includes the first position offset information. The processor 601 further has the following functions:

[0124] Use the NFC card corresponding to the first position offset information among multiple NFC cards as the target NFC card;

[0125] Or, the relative pose information includes the second position offset information. The processor 601 further has the following functions:

[0126] Use the NFC card corresponding to the second position offset information among multiple NFC cards as the target NFC card.

[0127] In the embodiments of the present application, the relative pose information includes first position offset information and second position offset information; the processor 601 also has the following functions:

[0128] Obtain a set of NFC cards corresponding to the first position offset information from multiple NFC cards;

[0129] Use the NFC card corresponding to the second position offset information in the set of NFC cards as the target NFC card.

[0130] In the embodiments of the present application, the processor 601 also has the following functions:

[0131] If receiving information indicating a card reading failure sent by the NFC card reader, determine the execution times of the target interaction actions detected within the first specified duration;

[0132] Determine a first NFC card corresponding to the execution times from other NFC cards associated with the target NFC card;

[0133] Send the card information of the first NFC card to the NFC card reader.

[0134] The embodiments of the present application disclose a computer-readable storage medium that stores a computer program. When the computer program is executed by a processor, the processor is caused to implement some or all of the steps performed by the electronic device in the above embodiments.

[0135] The embodiments of the present application disclose a computer program product. When the computer program product runs on a computer, the computer is caused to execute some or all of the steps performed by the electronic device in the above embodiments.

[0136] The embodiments of the present application disclose an application publishing platform. The application publishing platform is used to publish a computer program product. When the computer program product runs on a computer, the computer is caused to execute some or all of the steps performed by the electronic device in the above embodiments.

[0137] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product.

[0138] A computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from a website, computer, server, or data center to another website, computer, server, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be stored by a computer or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, a magnetic disk, a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)).

[0139] Those skilled in the art can clearly understand that for the convenience and conciseness of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein again.

[0140] In several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of units is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the couplings, direct couplings, or communication connections shown or discussed with each other can be indirect couplings or communication connections through some interfaces, devices, or units, and can be in electrical, mechanical, or other forms.

[0141] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0142] In addition, the functional units in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

[0143] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of various embodiments of this application. The foregoing storage medium includes: various media such as USB flash drives, removable hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs that can store program codes.

[0144] The above, the above embodiments are only used to illustrate the technical solutions of this application, rather than limiting it; although this application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of various embodiments of this application.

Claims

1. A method for determining a Near Field Communication (NFC) card, characterized in that, The method includes: Receiving a wireless communication signal transmitted by an NFC card reader through a near-field wireless communication module of an electronic device; Determining relative pose information between the electronic device and the NFC card reader according to the wireless communication signal received by the near-field wireless communication module, where the relative pose information includes first position offset information between the vertical directions of the electronic device and the NFC card reader and second position offset information between the horizontal directions of the electronic device and the NFC card reader; Obtaining a set of NFC cards corresponding to the first position offset information from multiple NFC cards; Regarding the NFC card corresponding to the second position offset information in the set of NFC cards as the target NFC card; Sending the card information of the target NFC card to the NFC card reader.

2. The method according to claim 1, wherein The near-field wireless communication module includes a first antenna and a second antenna. The first antenna is close to a first end of the electronic device, the second antenna is close to a second end of the electronic device, and the first end and the second end are opposite; Determining the relative pose information between the electronic device and the NFC card reader according to the wireless communication signal received by the near-field wireless communication module includes: Determining first relative pose information between the electronic device and the NFC card reader according to the power difference when the first antenna and the second antenna receive the wireless communication signal, where the first relative pose information includes the first position offset information; Determining second relative pose information between the electronic device and the NFC card reader according to the phase difference when the first antenna and the second antenna receive the wireless communication signal, where the second relative pose information includes the second position offset information.

3. The method according to claim 2, wherein Determining the first relative pose information between the electronic device and the NFC card reader according to the power difference when the first antenna and the second antenna receive the wireless communication signal includes: Determining the power difference range where the power difference when the first antenna and the second antenna receive the wireless communication signal is located, and determining the first relative pose information between the electronic device and the NFC card reader according to the power difference range; Determining the second relative pose information between the electronic device and the NFC card reader according to the phase difference when the first antenna and the second antenna receive the wireless communication signal includes: Determining the phase difference range where the phase difference when the first antenna and the second antenna receive the wireless communication signal is located, and determining the second relative pose information between the electronic device and the NFC card reader according to the phase difference range.

4. The method according to claim 3, wherein The first relative pose information further includes relative pitch angle information between the electronic device and the NFC card reader; The second relative pose information further includes relative roll angle information between the electronic device and the NFC card reader.

5. The method according to claim 4, characterized in that, The method further includes: Regarding the NFC card corresponding to the first position offset information in multiple NFC cards as the target NFC card; or, The method further includes: Among multiple NFC cards, use the NFC card corresponding to the second position offset information as the target NFC card.

6. The method according to claim 1, characterized in that, After sending the card information of the target NFC card to the NFC card reader, the method further includes: If receiving the information indicating a failed card reading sent by the NFC card reader, determine the execution times of the target interaction actions detected within the first specified duration; Among other NFC cards associated with the target NFC card, determine the first NFC card corresponding to the execution times; Send the card information of the first NFC card to the NFC card reader.

7. A determination device for a Near Field Communication (NFC) card, characterized in that, Includes: A signal receiving unit, configured to receive a wireless communication signal emitted by an NFC card reader through a near field communication module of an electronic device; A pose determination unit, configured to determine relative pose information between the electronic device and the NFC card reader according to the wireless communication signal received by the near field communication module, where the relative pose information includes first position offset information between a vertical direction of the electronic device and the NFC card reader and second position offset information between a horizontal direction of the electronic device and the NFC card reader; A card determination unit, configured to obtain a set of NFC cards corresponding to the first position offset information from multiple NFC cards; use the NFC card corresponding to the second position offset information in the set of NFC cards as the target NFC card; An information sending unit, configured to send the card information of the target NFC card to the NFC card reader.

8. An electronic device, characterized in that, Includes A memory storing executable program code; And a processor coupled to the memory; When the processor calls the executable program code stored in the memory, and the executable program code is executed by the processor, the processor is caused to implement the method according to any one of claims 1-6.

9. A computer-readable storage medium stores a computer program, wherein, When the computer program is executed by the processor, the processor is caused to implement the method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Simulation card switching method and device of NFC (Near Field Communication) mobile terminal

    CN106231090A

  • Virtual card activation method, apparatus and terminal equipment

    CN108664198A

  • Angle of arrival determination method and related device

    CN113093096A