Virtual card determination method and device based on NFC, electronic equipment and storage medium

By obtaining the position, attitude and signal characteristic information of the electronic device and automatically selecting virtual cards, the problem of cumbersome operation steps in the existing NFC technology is solved and the convenience is improved.

CN119402843APending Publication Date: 2025-02-07VIVO MOBILE COMM CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411503326.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-25
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

When existing NFC technology is used in electronic devices, users need to manually select virtual cards, resulting in cumbersome operation steps and low convenience.

Method used

By acquiring the GPS position information of the electronic device, the attitude information and the characteristic information of the signal received from the card reading device, the virtual card that the user needs to use is automatically determined and switched from the multiple virtual cards.

Benefits of technology

It simplifies the operation steps when executing NFC services, improves the convenience of operations, and reduces the time and effort of users to manually select virtual cards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119402843A_ABST
    Figure CN119402843A_ABST
Patent Text Reader

Abstract

The invention discloses a virtual card determination method and device based on NFC, electronic equipment and a storage medium, and belongs to the technical field of communication. The method comprises the following steps: acquiring first information of the electronic equipment, wherein the first information comprises at least one of the following items: GPS position information, attitude information and feature information of a signal received from card reading equipment; and according to the first information, a first virtual card for executing the NFC service is determined from M virtual cards in the electronic equipment, and M is an integer greater than 1.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a method, device, electronic device and storage medium for determining a virtual card based on MFC. Background Art

[0002] Near Field Communication (NFC) technology is a short-range high-frequency wireless communication technology. This technology allows devices to exchange data within a very short distance. With the popularization of NFC technology in electronic devices, various traditional physical credentials have been digitized, including access cards, transportation cards, electronic ID cards (eID), car keys, and mobile payment functions, greatly improving the level of intelligence in life.

[0003] In the related art, electronic devices use built-in NFC technology to simulate or store electronic card information, trigger NFC communication when approaching the gate, and transmit data with the NFC receiver on the gate to complete identity authentication, thereby achieving passage or payment. However, before using the NFC function of the electronic device for identity authentication, the user needs to manually select the card to be used on the electronic device, and then use the corresponding card to swipe the card. Since different cards are required in different scenarios, there are usually multiple cards in electronic devices. For example, an access card is required to enter a community, a transportation card is required to take a bus or subway, and a bank card or mobile payment function is required when shopping. Therefore, the user has to spend a certain amount of time and energy to select the card to be used from many cards before swiping the card each time. As a result, the operation steps are cumbersome and the convenience is low when electronic devices use NFC card swiping. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a method, device, electronic device and storage medium for determining a virtual card based on NFC, which can simplify the operation steps when executing NFC services and improve the convenience of operation.

[0005] In a first aspect, an embodiment of the present application provides a method for determining a virtual card based on NFC, the method comprising: obtaining first information of an electronic device, the first information comprising at least one of the following: GPS location information, posture information, and characteristic information of a signal received from a card reading device; based on the first information, determining a first virtual card for executing an NFC service from M virtual cards in the electronic device, where M is an integer greater than 1.

[0006] In a second aspect, an embodiment of the present application provides a device for determining a virtual card based on NFC, the device comprising: an acquisition module and a processing module, wherein: the acquisition module is used to acquire first information of an electronic device, the first information comprising at least one of the following: global positioning system GPS location information, posture information, and characteristic information of a signal received from a card reading device; the processing module is used to determine a first virtual card that executes NFC business from M virtual cards in the electronic device based on the first information acquired by the acquisition module, where M is an integer greater than 1.

[0007] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0008] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0009] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0010] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0011] In an embodiment of the present application, first information of an electronic device is obtained, and the first information includes at least one of the following: GPS location information, posture information, and characteristic information of a signal received from a card reader. Based on the first information, a first virtual card for executing an NFC service is determined from M virtual cards of the electronic device. Through this method, by obtaining the GPS location information, posture information of the electronic device, or characteristic information of a signal received from a card reader, and based on the above information, a virtual card for executing an NFC service is determined from multiple virtual cards. In this way, the process of manually selecting a virtual card by a user when executing an NFC service is omitted, thereby simplifying the operation steps when executing an NFC service and improving the convenience of operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 One of the flow charts of the NFC-based virtual card determination method provided in an embodiment of the present application;

[0013] Figure 2AOne of the schematic diagrams of the relative position relationship between the gate and the electronic device provided in the embodiment of the present application;

[0014] Figure 2B The second schematic diagram of the relative position relationship between the gate and the electronic device provided in the embodiment of the present application;

[0015] Figure 3 A hardware architecture diagram of the NFC-based card identification method provided in the embodiment of the present application;

[0016] Figure 4 The second flowchart of the NFC-based card determination method provided in the embodiment of the present application;

[0017] Figure 5 The third flowchart of the NFC-based card determination method provided in the embodiment of the present application;

[0018] Figure 6 A fourth flowchart of the NFC-based card determination method provided in an embodiment of the present application;

[0019] Figure 7 A fifth flowchart of the NFC-based card determination method provided in an embodiment of the present application;

[0020] Figure 8 A schematic diagram of the structure of an NFC-based card determination device provided in an embodiment of the present application;

[0021] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0022] Fig.10 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0024] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0025] The terms "at least one (item)", "at least one of" and the like in the specification and claims of the present application refer to any one, any two or a combination of more than two of the objects included therein. For example, at least one (item) of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c" and "a, b and c", where a, b, and c can be single or multiple. Similarly, "at least two (items)" refers to two or more, and its meaning is similar to that of "at least one (item)".

[0026] The NFC-based virtual card determination method provided in the embodiment of the present application can be applied to the scenario where an electronic device swipes a card via NFC to board a vehicle.

[0027] Currently, when users use electronic devices with NFC functions to swipe cards to take public transportation, they need to open the "Wallet" application first, then search for the transportation card they need to use in the "Wallet" application, switch to the transportation card they need to use, and then bring the NFC sensing area of ​​the electronic device close to the NFC card reader (such as a gate) of public transportation such as buses and subways. After the NFC card reader successfully reads the transportation card information in the electronic device and completes the verification, the user can pass through the station gate or take the bus. With this method, since the user needs to perform a series of operations such as searching and switching the transportation card before swiping the card to take the bus, the entire card swiping process is cumbersome and time-consuming, resulting in poor convenience of operation.

[0028] The NFC-based virtual card determination method provided in the embodiment of the present application allows the user to use an electronic device with an NFC function to swipe a card to take a means of transportation. The electronic device can obtain the GPS location information, posture information, and at least one of the characteristic information of the signal received from the NFC card reader. Then, based on the above information, the electronic device automatically selects and switches from multiple virtual cards of the electronic device to the transportation card that the user needs to use, and then uses the transportation card to perform data exchange with the NFC card reader. Through this method, before the user swipes the virtual card, the electronic device can automatically determine the virtual card used by the user based on the positioning information, posture information, and characteristic information of the signal, without the user manually selecting the virtual card to be used, thereby shortening the entire card swiping process and greatly improving the convenience of operation.

[0029] The NFC-based virtual card determination method provided in the embodiment of the present application can also be applied to scenarios where electronic devices perform digital payments via NFC.

[0030] When a user needs to use an electronic device to pay using the NFC function, the user needs to first open the payment application, then select the payment card to be used in the payment application, and then bring the NFC sensing area of ​​the electronic device close to the NFC sensing area of ​​the payment device. The payment is completed after the payment device successfully reads the payment card information in the electronic device and completes the verification. With this method, since the user needs to perform a series of operations such as searching and switching payment cards before payment, the entire payment process is cumbersome and time-consuming, resulting in poor convenience of operation.

[0031] The NFC-based virtual card determination method provided in the embodiment of the present application can obtain the GPS location information, posture information and at least one of the characteristic information of the signal received from the NFC card reader of the electronic device when the user needs to use the electronic device to pay with the NFC function, and then automatically select and switch to the payment card that the user needs to use from multiple virtual cards of the electronic device according to the above information, and then use the payment card to perform data exchange with the NFC card reader. Through this method, before the user uses the virtual card to swipe the card, the electronic device can automatically determine the virtual card used by the user according to the positioning information, posture information and characteristic information of the signal, without the user manually selecting the virtual card to be used, thereby shortening the entire payment process and greatly improving the convenience of operation.

[0032] The execution subject of the NFC-based virtual card determination method provided in the embodiment of the present application may be an NFC-based virtual card determination device, and the NFC-based virtual card determination device may be an electronic device, or a functional module or functional entity in an electronic device. The following takes an electronic device executing the NFC-based virtual card determination method as an example to illustrate the technical solution provided in the embodiment of the present application.

[0033] The following describes in detail the NFC-based virtual card determination method provided by the embodiment of the present application through specific embodiments and application scenarios in conjunction with the accompanying drawings.

[0034] Figure 1 A flowchart of a method for determining a virtual card based on NFC provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the NFC-based virtual card determination method may include the following steps 201 and 202:

[0035] Step 201: The electronic device obtains first information of the electronic device.

[0036] The first information includes at least one of the following: Global Positioning System (GPS) location information, posture information, and characteristic information of a signal received from a card reader.

[0037] In some possible implementations, the electronic device may acquire the first information of the electronic device when detecting that there is a card reading device nearby.

[0038] In some embodiments of the present application, the electronic device can determine whether there is a card reader device nearby by automatically scanning the surrounding wireless signals, or can determine whether there is a card reader device nearby by recognizing images of the surrounding environment, or can determine whether there is a card reader device nearby when receiving an electromagnetic wave signal from the card reader device.

[0039] Exemplarily, if the card reader device has a wireless communication function, such as Wireless Fidelity (Wi-Fi), Bluetooth, Radio Frequency Identification (RFID), etc.), the electronic device can detect whether there is a card reader device nearby by scanning the surrounding wireless signals.

[0040] As another example, the electronic device may capture an image of the surrounding environment through a camera, and analyze whether there are features of a card reading device (such as a turnstile) in the image to determine whether there is a card reading device in the surrounding area.

[0041] As another example, when the electronic device is close to the NFC tag or module on the card reader device, if the electronic device receives the electromagnetic wave signal of the card reader device, it is determined that there is a card reader device nearby.

[0042] In some other possible implementations, the electronic device may obtain its own first information in real time or periodically. For example, the electronic device may obtain its own first information once every preset time period.

[0043] In some embodiments of the present application, the card reader device may also be referred to as an NFC reader device. For example, the card reader device may be a gate of a management system such as an access control system, a parking lot management system, or a public transportation system, or may be a device such as a vending machine.

[0044] In some embodiments of the present application, the above-mentioned GPS location information may include the latitude and longitude, speed and time information of the electronic device.

[0045] In some embodiments of the present application, the electronic device can receive satellite signals through a built-in or external GPS module, and decode and calculate the received signals to obtain the electronic device's position, speed, and time information.

[0046] It should be noted that since different card reading devices (such as gates) are usually installed in different locations, the accuracy of selecting virtual cards can be improved by obtaining the current actual location of the electronic device and selecting a virtual card to perform NFC services with the card reading device based on the actual location of the electronic device.

[0047] In some embodiments of the present application, the above-mentioned posture information is used to characterize the posture of the electronic device, and the above-mentioned posture information may include a pitch angle, a roll angle, a yaw angle, and the like.

[0048] In some embodiments of the present application, the posture of the electronic device includes but is not limited to: a horizontal posture, a horizontal oblique upward posture, a horizontal oblique downward posture, an upright posture, a tilted posture, etc.

[0049] It should be noted that, in the horizontal posture, the plane where the screen of the electronic device is located is parallel or approximately parallel to the horizontal plane; in the horizontal upward tilt posture (i.e., upward tilt posture), an upward angle is formed between the screen of the electronic device and the horizontal plane, that is, the height of the upper edge of the screen is higher than the height of the lower edge by a certain angle (e.g., an angle of 0°-45°); in the horizontal downward tilt posture (i.e., downward tilt posture), a downward angle is formed between the screen of the electronic device and the horizontal plane, that is, the height of the lower edge of the screen is higher than the height of the upper edge; in the upright posture, the plane where the screen of the electronic device is located is perpendicular or approximately perpendicular to the ground; at an inclined angle, the screen of the electronic device is not completely perpendicular to the ground, but has a certain angle with the ground (e.g., an angle of 0°-45°).

[0050] In some embodiments of the present application, the electronic device can measure data such as the angular velocity, acceleration, and magnetic field direction of the device through built-in sensors such as gyroscopes, accelerometers, and magnetometers, and through fusion algorithms (such as Kalman filtering, complementary filtering, etc.), the data from different sensors are comprehensively processed to obtain the posture information of the electronic device.

[0051] It should be noted that due to the different installation locations of different card readers (such as gates), there are differences in the gestures of users holding electronic devices when using electronic devices and card readers to perform NFC services (such as swiping cards). That is, there are differences in the postures of electronic devices and card readers installed at different locations when performing NFC services. For example, Figure 2A As shown, when the gate is installed on a vertical wall, the user actually uses the electronic device in an upward tilted position. For example, Figure 2B As shown, when the gate is installed on a horizontal desktop, the user actually uses the mobile phone to make a horizontal downward slanting gesture. By detecting the posture information of the electronic device and selecting the virtual card according to the posture information, the accuracy of selecting the virtual card can be improved.

[0052] In some embodiments of the present application, the signal received by the electronic device from the card reading device may be an electromagnetic wave signal of a certain frequency sent by the card reading device.

[0053] In some embodiments of the present application, the characteristic information of the above-mentioned signal includes but is not limited to at least one of the following: waveform characteristic information, frequency information, modulation method, field strength information, propagation characteristic information (such as on-off field time), command logic, etc.

[0054] In some embodiments of the present application, the electronic device may receive the electromagnetic wave signal sent by the card reading device through the signal detection module, analyze the electromagnetic wave signal, and extract signal characteristic information of the electromagnetic wave signal.

[0055] It should be noted that when an electronic device is close to a gate or other NFC reading device, the gate or other NFC reading device will emit electromagnetic waves of a certain frequency to form a recognizable electromagnetic field. The antenna in the electronic device will sense this electromagnetic field and analyze and identify it through the internal circuit. If the characteristics and frequency of the electromagnetic field match the NFC communication standard preset or supported by the electronic device, the electronic device will determine that there is an available NFC reading device nearby and perform data exchange with the NFC reading device.

[0056] It should be noted that different card readers have different internal circuits and sending logics, so there will be differences in the signals they send. Differentiated judgments are made through differences in signals (waveform differences, command logic differences, field strength differences, field on / off time differences, etc.), so as to quickly select the virtual card corresponding to the card reader to complete the communication before NFC communication.

[0057] In some embodiments of the present application, the first information may further include at least one of altitude information of the electronic device's location and ultra-wideband (UWB) positioning information.

[0058] In some embodiments of the present application, the electronic device may obtain the altitude information of the location through a barometer or GPS technology.

[0059] It should be noted that the altitude information of the electronic device refers to the vertical distance between the current location of the electronic device and the sea level.

[0060] In some embodiments of the present application, the above-mentioned UWB positioning information may include the position coordinates of the electronic device (such as x, y, z coordinates) and possible position accuracy information (such as within the range of several centimeters to several millimeters).

[0061] In some embodiments of the present application, the electronic device may calculate the time delay difference of the UWB signal propagating in space by measuring it through the UWB module.

[0062] It should be noted that UWB positioning technology is a high-precision positioning technology that uses ultra-wideband signals for positioning and has the characteristics of high measurement accuracy and low power consumption.

[0063] Step 202: The electronic device determines, according to the first information, a first virtual card for executing the NFC service from the M virtual cards in the electronic device.

[0064] Wherein, M is an integer greater than 1.

[0065] In some embodiments of the present application, the electronic device may determine the virtual card corresponding to the first information among the M virtual cards as the first virtual card for executing the NFC service.

[0066] In some embodiments of the present application, after determining the first virtual card, the electronic device may switch to use the first virtual card to execute the corresponding NFC service.

[0067] Exemplarily, taking M cards including Card 1, Card 2 and Card 3, and the first information including GPS location information as an example, assuming that the current GPS location information of the electronic device indicates that the electronic device is in City A, then when the electronic device detects that there are gates nearby, the electronic device can obtain the location information of the gates corresponding to the above Cards 1, 2 and 3, and determine the virtual card whose location information is also City A as the virtual card that needs to be used.

[0068] For another example, taking M cards including Card 1, Card 2 and Card 3, and the first information including the posture information of the electronic device, when the electronic device detects the presence of a gate nearby, the current posture information of the electronic device indicates that the electronic device is in a horizontal oblique upward posture. The electronic device can obtain the posture information corresponding to the above Card 1, Card 2 and Card 3, and determine the virtual card whose posture information is also a horizontal oblique upward posture as the virtual card to be used.

[0069] As another example, taking M cards including card 1, card 2 and card 3, and the first information including characteristic information of the signal received by the electronic device, when the electronic device detects the presence of a gate nearby, the signal strength of the signal received by the electronic device from the gate is R1. The electronic device can obtain the signal frequencies corresponding to the above-mentioned cards 1, card 2 and card 3, and determine the virtual card whose signal strength is also R1 as the virtual card to be used.

[0070] As another example, taking M cards including Card 1, Card 2 and Card 3, and the first information including GPS location information, posture information and characteristic information of the signal received by the electronic device, when the electronic device detects that there is a gate nearby, the current GPS location information of the electronic device indicates that the electronic device is in city A, the current posture information of the electronic device indicates that the electronic device is in a horizontal oblique upward posture, and the signal strength of the signal received from the gate is R1. The electronic device can obtain the GPS location information, posture information and signal frequency corresponding to the above-mentioned Card 1, Card 2 and Card 3, and determine the virtual card with the corresponding GPS location information of city A, posture information of horizontal oblique upward posture and signal strength of R1 as the virtual card to be used.

[0071] In the NFC-based virtual card determination method provided in the embodiment of the present application, an electronic device obtains first information of the electronic device, where the first information includes at least one of the following: GPS location information, posture information, and characteristic information of a signal received from a card reader. According to the first information, a first virtual card for executing an NFC service is determined from M virtual cards of the electronic device. Through this method, the electronic device obtains the GPS location information, posture information of its own location, or characteristic information of a signal received from a card reader, and determines a virtual card for executing an NFC service from multiple virtual cards according to the above information. In this way, the process of a user manually selecting a virtual card when executing an NFC service is omitted, thereby simplifying the operation steps when executing an NFC service and improving the convenience of operation.

[0072] In some embodiments of the present application, the process of step 202 may include the following steps 202a and 202b:

[0073] Step 202a: The electronic device compares the first information with the second information corresponding to the M virtual cards respectively.

[0074] Step 202b: The electronic device determines a first virtual card for executing the NFC service from the M virtual cards in the electronic device according to the comparison result.

[0075] The second information includes at least one of the following: GPS location information of the card reader corresponding to each virtual card, posture information of the electronic device communicating with the card reader corresponding to each virtual card, and characteristic information of the signal sent by the card reader corresponding to each virtual card.

[0076] In some embodiments of the present application, the M virtual cards store M items of second information, and one virtual card stores one item of second information accordingly.

[0077] In some embodiments of the present application, the electronic device can pre-acquire the GPS location information of the card reader device corresponding to each virtual card, the posture information when communicating with the card reader device corresponding to the virtual card, and the characteristic information of the signal received from the card reader device corresponding to the virtual card, and store the above information in the tag of the corresponding virtual card.

[0078] Exemplarily, taking M virtual cards including card 1 and card 2 as an example, the electronic device can pre-store the GPS location information of the card reader device corresponding to card 1, the posture information when communicating with the card reader device corresponding to card 1, and the characteristic information of the signal received from the card reader device corresponding to card 1, and pre-store the GPS location information of the card reader device corresponding to card 2, the posture information when communicating with the card reader device corresponding to card 2, and the characteristic information of the signal received from the card reader device corresponding to card 2.

[0079] In some embodiments of the present application, the electronic device can compare the first information with the second information corresponding to M virtual cards through a judgment module, and send the comparison result to the NFC module, and then determine the first virtual card that executes the NFC service from the M virtual cards based on the comparison result through the NFC module.

[0080] It should be noted that the judgment module can be called a gate judgment module or a scene judgment module.

[0081] Figure 3 The hardware architecture diagram of the NFC-based card identification method provided in the embodiment of the present application is as follows: Figure 3 As shown, the electronic device includes an NFC module, a judgment module, a signal detection module, a gravity sensor (G-sensor), a UWB module, a GPS module, etc., wherein the NFC module is connected to the antenna L1, and the signal detection module is connected to the antenna L2.

[0082] Combined with the above Figure 3 , Figure 4 A flowchart of a card determination method based on NFC provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, taking the card reader as a gate and the NFC service as swiping an access card as an example, after the electronic device enters the site, the signal detection module obtains the characteristic information of the signal from the gate, the UWB module obtains the UWB positioning information of the electronic device, the sensor obtains the posture information of the electronic device, and the GPS module obtains the GPS location information. Then, the judgment module compares the above information with the characteristic information of the signal, the UWB positioning information, the posture information of the electronic device and the GPS location information pre-stored in multiple virtual cards, and sends the comparison result to the NFC module. The NFC module selects the access card to be used from the multiple virtual cards according to the comparison result, and passes after the card swiping is successful.

[0083] In some embodiments of the present application, the electronic device may compare the first information with the second information corresponding to the M virtual cards respectively, and then determine the virtual card whose corresponding second information among the M virtual cards matches the first information as the first virtual card.

[0084] It should be noted that the matching of the second information and the first information means that the second information and the first information are completely the same, or the second information and the first information have a large similarity, for example, the similarity is greater than 80%.

[0085] It should be noted that the process of calculating the similarity between two pieces of information can be referred to in the relevant technology, and the embodiments of the present application will not be elaborated on this.

[0086] Exemplarily, taking M cards including card 1, card 2 and card 3, and the first information including GPS location information as an example, when the electronic device detects the existence of a gate nearby, it obtains its own GPS location information, and obtains the GPS location information in the tags corresponding to card 1, card 2 and card 3, and then compares its own GPS location information with the GPS location information in the tags of card 1, card 2 and card 3 respectively, and finally determines the card whose GPS location information in the tag matches its own GPS location information as the card to be used.

[0087] As another example, taking M cards including card 1, card 2 and card 3, and the first information including GPS location information and signal characteristic information of the signal received when communicating with the card reading device, when the electronic device receives the signal from the card reading device, it obtains the characteristic information of the signal and its own GPS location information, and obtains the characteristic information and GPS location information of the signal in the tags corresponding to card 1, card 2 and card 3, and then compares its own GPS location information and the characteristic information of the received signal with the GPS location information and the characteristic information of the signal in the tags of card 1, card 2 and card 3 respectively, and finally determines the card whose GPS location in the tag matches its own GPS location information and whose characteristic information of the signal in the tag matches the characteristic information of its received signal as the card to be used.

[0088] As another example, taking M cards including card 1, card 2 and card 3, and the first information including GPS location information, signal characteristic information and posture information as an example, when the electronic device detects the presence of a gate nearby, it obtains its own GPS location information, characteristic information of the signal received from the gate and its own posture information, and obtains the GPS location information, signal characteristic information and posture information in the tags corresponding to card 1, card 2 and card 3, and then compares its own GPS location information with the GPS location information, signal characteristic information and posture information in the tags of card 1, card 2 and card 3 respectively; finally, the card whose GPS location information, signal characteristic information and posture information in the tag matches its own GPS location information, characteristic information of the received signal and posture information in turn is determined as the card to be used.

[0089] It should be noted that the above-mentioned first information and second information may include only one item of information, and by comparing the one item of information, the virtual card that matches the one item of information is determined as the virtual card that needs to be used; or, the above-mentioned first information and second information may both include multiple items of information, and by comprehensively comparing the corresponding information in the multiple items of information, the virtual card that matches each corresponding information in the multiple items of information is determined as the virtual card that needs to be used.

[0090] It should be noted that the above examples are only examples of some possible situations of the first information, and solutions for other situations of the first information are still within the protection scope of this application.

[0091] In an embodiment of the present application, the electronic device compares the first information (including at least one of the GPS location information, posture information and signal characteristic information) with the second information corresponding to M virtual cards (including at least some of the GPS location information, posture information and signal characteristic information). On the one hand, it can more accurately judge the current environment and usage scenario, thereby selecting the most appropriate virtual card to perform NFC services, reducing the possibility of misoperation. On the other hand, it can comprehensively consider multiple information (such as location, posture and signal characteristics) to more accurately select virtual cards, thereby improving operational efficiency and accuracy.

[0092] In some embodiments of the present application, the first information includes GPS location information; after the above step 202, the NFC-based virtual card determination method provided in the embodiment of the present application may further include the following steps 203 and 204:

[0093] Step 203: When the first virtual card includes at least two virtual cards, the electronic device obtains third information of the electronic device.

[0094] The third information includes at least one of the altitude information of the location and the UWB positioning information.

[0095] Step 204: The electronic device determines, based on the third information, a second virtual card for executing the NFC service from the at least two virtual cards.

[0096] In some embodiments of the present application, the electronic device may determine the virtual card corresponding to the third information in the at least one virtual card (ie, the first virtual card) as the second virtual card for executing the NFC service.

[0097] Exemplarily, taking the example that the third information includes the altitude information of the electronic device's location, the electronic device obtains the altitude information of its own location through a barometer, and then compares the altitude information of its own location with the altitude information pre-stored in the card reading devices corresponding to multiple virtual cards, and then determines the virtual card among the multiple virtual cards whose corresponding altitude information matches the current altitude information of the electronic device as the virtual card to be used.

[0098] As another example, taking the example of the third information including the UWB positioning information of the electronic device, the electronic device obtains the UWB positioning information of its own location through UWB technology, and then compares its own UWB positioning information with the UWB positioning information pre-stored in the card reading devices corresponding to the multiple virtual cards, and then determines the virtual card among the multiple virtual cards whose corresponding UWB positioning information matches the current UWB positioning information of the electronic device as the virtual card to be used.

[0099] As another example, taking the example of the third information including the altitude information and UWB positioning information of the electronic device, the electronic device, the barometer obtains the altitude information of its own location, and obtains the UWB positioning information of its own location through UWB technology, and then compares its own altitude information and UWB positioning information with the altitude information and UWB positioning information pre-stored in the card reading devices corresponding to multiple virtual cards, respectively, and then matches the corresponding altitude information in the multiple virtual cards with the altitude information of the electronic device, and the virtual card whose UWB positioning information matches the current UWB positioning information of the electronic device is determined as the virtual card to be used.

[0100] It should be noted that when there are multiple card readers with close GPS positions in a certain area, it is impossible to accurately distinguish through GPS positions to determine which card reader is currently communicating, and thus it is impossible to determine which virtual card is currently needed. The accuracy of selecting virtual cards can be improved by further combining altitude information as a vertical judgment or combining UWB positioning information to further compare more precise location information.

[0101] For example, Figure 3 As shown, the two gates have a vertical Y-direction position difference, and the different Y-direction data of the two gates, that is, the altitude information, can be pre-stored in the location tag of the virtual card corresponding to the gate. When the electronic device is at this GPS position, the barometer shows a high altitude, and it is judged that it is currently approaching the gate upstairs, and the card corresponding to the gate can be switched, that is, the virtual card with a high altitude location tag is selected as the search card to be used, so as to further improve the success rate of the gate judgment card selection for the location positioning.

[0102] For example, Figure 4As shown, the hall includes gates 1 to 5, UWB hall equipment 1, UWB hall equipment 2 and UWB mobile terminals (i.e., electronic devices). The distances and angles of the gates 1-5 in the hall are measured in advance by UWB technology to obtain the location information of the gates 1-5, and different location tags are set for the gates 1-5 in the hall based on the location information. Then, by measuring the distance and angle of the current electronic device relative to the UWB device in the hall, the location information of the electronic device is obtained, and it is determined which gate the electronic device is currently close to. The location tag is then switched to the card corresponding to the gate closest to the electronic device, thereby achieving fast card selection and card swiping accuracy.

[0103] Exemplarily, UWB technology is used to measure in advance the propagation time of the signal sent by each gate to the UWB device in space, calculate the distance of each gate relative to the UWB device, and calculate the angle of the gate relative to the UWB device based on the distance of each gate relative to different UWB devices. Then, based on the distance and angle, the coordinates of the gate are calculated through a positioning algorithm (such as triangulation, least squares method, etc.) to obtain the location information of the gate.

[0104] Exemplarily, the electronic device sends a signal to the surrounding UWB indoor device 1 and UWB indoor device 2, the UWB indoor device 1 and UWB indoor device 2 receive the signal of the electronic device and record its arrival time, and the electronic device can calculate the distance between the electronic device and the UWB device based on the arrival time and the signal sending time, and the electronic device can calculate the angle of the electronic device relative to the UWB indoor device 1 and the UWB indoor device 2 based on the distance difference between the electronic device and the UWB indoor device 1 and the UWB indoor device 2 respectively and the coordinate information of the UWB indoor device 1 and the UWB indoor device 2, and then, the electronic device calculates the position coordinates of the electronic device through an algorithm (such as trilateration) based on the distance and angle calculated above, thereby obtaining the position information of the electronic device.

[0105] Exemplarily, the electronic device is a foldable electronic device, and the electronic device can determine a virtual card (such as a second virtual card) that executes an NFC service from M virtual cards according to a folding angle of the foldable screen.

[0106] In some examples, the electronic device may determine the virtual card that performs the NFC service based on the correspondence between the angle value of the folding angle and the virtual card, wherein one angle value may correspond to one virtual card, or one angle value may correspond to one type of virtual card. Exemplarily, when the folding angle of the foldable screen of the electronic device is 0°, the electronic device determines that the virtual card that performs the NFC service is a virtual card of the access control system, i.e., an access control card.

[0107] As another example, when the folding angle of the foldable screen of the electronic device is 90°, the electronic device determines that the virtual card executing the NFC service is a virtual card of the transportation system, that is, a transportation card.

[0108] As another example, when the folding angle of the foldable screen of the electronic device is 180°, the electronic device determines that the virtual card executing the NFC service is a virtual card of the online payment system, that is, a payment card.

[0109] In other examples, the electronic device can determine the virtual card that performs the NFC service based on the correspondence between the angle range of the folding angle and the virtual card. One angle range can correspond to one virtual card, or one angle range can correspond to one type of virtual card.

[0110] Exemplarily, when the folding angle of the foldable screen of the electronic device is between 0° and 45° (including 0° and excluding 45°), the electronic device determines that the virtual card executing the NFC service is a virtual card of the access control system, i.e., an access control card.

[0111] As another example, when the folding angle of the foldable screen of the electronic device is 45°-135° (including 45° and excluding 135°), the electronic device determines that the virtual card executing the NFC service is a virtual card of the transportation system, namely, a transportation card.

[0112] As another example, when the folding angle of the foldable screen of the electronic device is 135°-180° (including 135° and 180°), the electronic device determines that the virtual card executing the NFC service is a virtual card of the online payment system, that is, a payment card.

[0113] Furthermore, the electronic device can determine a virtual card (such as a second virtual card) that executes the NFC service from multiple virtual cards based on the folding angle of the foldable screen and location information of the electronic device (such as UWB positioning information or GPS positioning information).

[0114] Exemplarily, when the folding angle of the foldable screen of the electronic device is 0° and the UWB location information of the electronic device matches the location information of the access control gate, the electronic device determines that the virtual card executing the NFC service is an access control card.

[0115] As another example, when the folding angle of the foldable screen of the electronic device is 90° and the UWB location information of the electronic device matches the location information of the gate of the transportation system, the electronic device determines that the virtual card executing the NFC service is a transportation card.

[0116] As another example, when the folding angle of the foldable screen of the electronic device is 180° and the UWB location information of the electronic device matches the location information of the gate of the online payment system, the electronic device determines that the virtual card executing the NFC service is a payment card.

[0117] It should be noted that the corresponding relationship between the folding angle and the virtual card, the specific type of gate, and the selected virtual card mentioned in the above embodiments are only for illustrative purposes and do not constitute limitations of this application. In actual applications, the folding angle can be set according to actual needs to adapt to different usage scenarios and user needs.

[0118] In an embodiment of the present application, by combining the folding angle and position information, the electronic device can intelligently identify the user's current needs and scenarios, automatically select and execute the NFC service that best meets the user's intentions. For example, when a user brings the device close to an access control gate, if the device is in a fully unfolded state, the access card is automatically selected for NFC communication without the need for the user to manually switch, thereby reducing the number of steps the user needs to perform, making the use of the NFC function more intuitive and convenient. On the other hand, by adding location information (such as UWB positioning), the electronic device can further verify whether the user is performing the NFC operation in the correct position, thereby preventing the risk of misoperation. For example, if the electronic device detects that the user is not near the access control gate, the NFC operation of the access card will not be performed even if the device is in a fully unfolded state.

[0119] In an embodiment of the present application, after the electronic device compares its own GPS location information with the GPS location information corresponding to M virtual cards, if there are multiple virtual cards whose GPS location information matches the GPS location information of the electronic device, the electronic device can determine a virtual card to be used from the multiple virtual cards by comparing the altitude information and at least one of the UWB high-precision positioning information, thereby improving the success rate of selecting virtual cards.

[0120] In some embodiments of the present application, the third information includes the altitude information of the location of the electronic device; after the above step 204, the NFC-based virtual card determination method provided in the embodiment of the present application may further include the following steps A1 and A2:

[0121] Step A1: when the second virtual card includes at least two virtual cards, the electronic device obtains UWB positioning information of the electronic device.

[0122] Step A2: The electronic device determines a third virtual card for executing the NFC service from the at least two virtual cards according to the UWB positioning information.

[0123] Exemplarily, in combination with the above example, the electronic device compares the altitude information of its own location with the altitude information pre-stored in the card reading devices corresponding to multiple virtual cards. Assuming that the virtual cards whose corresponding altitude information matches the current altitude information of the electronic device still include multiple virtual cards, the electronic device further obtains its own UWB positioning information, and compares its own UWB positioning information with the UWB positioning information pre-stored in the card reading devices corresponding to each virtual card in the multiple virtual cards, and determines the virtual card whose UWB positioning information pre-stored in the multiple virtual cards matches the UWB positioning information of the electronic device as the virtual card to be used.

[0124] It should be noted that when the GPS and altitude of multiple gates are relatively close, for example, multiple gates are in the same hall, the location distinction can be further refined by combining UWB positioning information, so that virtual card selection can be performed more accurately.

[0125] In some embodiments of the present application, the above step 204 may include the following steps 204a and 204b:

[0126] Step 204a: The electronic device compares the third information with the fourth information corresponding to at least two virtual cards.

[0127] Step 204b: The electronic device determines a second virtual card for executing the NFC service from the at least two virtual cards according to the comparison result.

[0128] The fourth information includes at least one of the following: altitude information of the location of the card reader device corresponding to each virtual card, and UWB positioning information of the card reader device corresponding to each virtual card.

[0129] In some embodiments of the present application, the M virtual cards store M items of fourth information, and one virtual card stores one item of fourth information accordingly.

[0130] In some embodiments of the present application, the electronic device can pre-acquire the altitude information of the location of the card reader corresponding to each virtual card and the UWB positioning information of the card reader corresponding to each virtual card, and store the above information in the tag of the corresponding virtual card.

[0131] In some embodiments of the present application, the electronic device can compare its own third information with the corresponding information in the fourth information corresponding to each virtual card through the judgment module, and determine the virtual card that matches it as the virtual card that executes the NFC service.

[0132] Exemplarily, the third information includes the altitude information of the electronic device, and the fourth information includes the altitude information of the card reader corresponding to the virtual card. Assuming that the altitude information associated with card 1 is 800 meters, the altitude information associated with card 2 is 830 meters, and the altitude information of the current location of the electronic device is 800 meters, the electronic device will determine card 1 with matching altitude information as the virtual card to be used.

[0133] As another example, the third information includes the altitude information and UWB positioning information of the electronic device, and the fourth information includes the altitude information and UWB positioning information of the card reader corresponding to the virtual card. Assuming that the altitude information associated with card 1 is 800 meters, the UWB coordinates associated with card 1 are (x1, y1, z1), the altitude information associated with card 2 is 800 meters, and the UWB coordinates associated with card 2 are (x2, y2, z2), the altitude information of the current location of the electronic device is 800 meters, and the UWB coordinates of the current location of the electronic device are (x2, y2, z2), the electronic device determines card 2 whose altitude information and UWB information match as the virtual card to be used.

[0134] In some embodiments of the present application, before the above step 202, the NFC-based virtual card determination method provided in the embodiment of the present application may further include the following steps 205 and 206:

[0135] Step 205: The electronic device obtains second information corresponding to each of the M virtual cards.

[0136] Step 206: The electronic device associates and stores the card information of each virtual card with the second information corresponding to each virtual card.

[0137] In some embodiments of the present application, when an electronic device uses a virtual card to perform NFC business for the first time, it can determine the GPS location information of the card reader device corresponding to the virtual card, the posture information when communicating with the card reader device corresponding to the virtual card, and the characteristic information of the signal received from the card reader device corresponding to the virtual card.

[0138] In some embodiments of the present application, the electronic device may store the second information corresponding to each card in the label of the virtual card.

[0139] Exemplarily, when a virtual card is activated and successfully swiped for the first time through an electronic device, the electronic device records the GPS location information when the virtual card is swiped and writes the GPS location information into the location tag of the card, thereby calibrating the position of the gate corresponding to the virtual card through the GPS location information.

[0140] As another example, when a virtual card is activated and successfully swiped for the first time through an electronic device, the electronic device obtains the GPS location information when the card is swiped, the posture information of the electronic device when the card is swiped, and the characteristic information of the signal received from the gate, and writes the above information into the corresponding tag of the virtual card.

[0141] In an embodiment of the present application, by associating and storing the card information of a virtual card with the second information of a card reader corresponding to the virtual card, when the electronic device uses the virtual card to perform NFC services such as payment or access control operations, it can match its own position information, posture information or characteristic information of the received signal with the position information, posture information and characteristic information of the signal pre-stored in multiple virtual cards, so that the virtual card that best suits the current scenario and conditions can be intelligently selected for operation without the need for manual selection by the user, thereby greatly improving the user experience.

[0142] The following describes the NFC-based virtual card determination method provided in the embodiments of the present application through specific examples.

[0143] Embodiment 1:

[0144] For example, Figure 5 As shown, the NFC-based virtual card determination method includes the following steps 11 to 15:

[0145] Step 11: Record the location information when swiping different cards respectively, and write it into the location tag of the corresponding card.

[0146] Exemplarily, the card may include any card that is successfully swiped for the first time by the electronic device.

[0147] Step 12: The electronic device reads the location information of the electronic device at preset time intervals.

[0148] Step 13: The electronic device compares its own location information with the location information in the location tags of multiple cards.

[0149] Step 14: The electronic device determines whether its own location information matches the location information corresponding to the target card. If so, execute step 15; if not, execute the above step 12.

[0150] Step 15: Determine the gate corresponding to the target card and switch to the target card.

[0151] The NFC-based virtual card determination method provided in the embodiment of the present application compares the current position of the electronic device with the position corresponding to the virtual card. When the GPS position matches the position in the position tag of a virtual card, it can be identified that the user is about to swipe the corresponding virtual card, so as to select the card corresponding to the gate in advance, thereby achieving fast and accurate card selection.

[0152] Embodiment 2:

[0153] For example, Figure 6 As shown, the NFC-based virtual card determination method includes the following steps 21 to 25:

[0154] Step 21: Record the posture information of the electronic device when swiping different cards respectively, and write it into the tag of the corresponding card.

[0155] Exemplarily, the card may include any card that is successfully swiped for the first time by the electronic device.

[0156] Step 22: The electronic device obtains posture information through the posture detector at preset time intervals.

[0157] Step 23: The electronic device compares its own posture with the posture information in the tags of multiple cards.

[0158] Step 24: The electronic device determines whether its own posture information matches the posture information corresponding to the target card. If so, execute step 25; if not, execute the above step 22.

[0159] Step 25: Determine the gate corresponding to the target card and switch to the target card.

[0160] The NFC-based virtual card determination method provided in the embodiment of the present application distinguishes the cards based on different user gestures, thereby avoiding card selection errors caused by inaccurate positions and further improving the accuracy of card selection.

[0161] Embodiment three:

[0162] For example, Figure 7 As shown, the NFC-based virtual card determination method includes the following steps 31 to 35:

[0163] Step 31: Record the characteristic information of the signal received when swiping different cards respectively, and write it into the tag of the corresponding card.

[0164] Exemplarily, the card may include any card that is successfully swiped for the first time by the electronic device.

[0165] Step 32: The electronic device detects characteristic information of the received signal.

[0166] Step 33: The electronic device compares the characteristic information of the received signal with the characteristic information in the tags of multiple cards.

[0167] Step 34: The electronic device determines whether the characteristic information of the received signal matches the characteristic information corresponding to the target card. If so, execute step 35; if not, execute the above step 32.

[0168] Step 35: Determine the gate corresponding to the target card and switch to the target card.

[0169] The NFC-based virtual card determination method provided in the embodiment of the present application eliminates other external influencing factors, and directly distinguishes the differences through the signals on the gate, thereby achieving accurate positioning and distinction of gates with different internal designs.

[0170] The above-mentioned method embodiments, or various possible implementation methods in each method embodiment, can be executed separately, or, under the premise that there is no contradiction, can also be executed in combination with each other. The specific implementation can be determined according to actual usage requirements, and the embodiments of the present application do not limit this.

[0171] The NFC-based virtual card determination method provided in the embodiment of the present application can be executed by an NFC-based virtual card determination device. In the embodiment of the present application, the NFC-based virtual card determination device executing the NFC-based virtual card determination method is taken as an example to illustrate the NFC-based virtual card determination device provided in the embodiment of the present application.

[0172] Figure 8 A schematic diagram of the structure of a virtual card determination device based on NFC provided in an embodiment of the present application, such as Figure 8 As shown, the NFC-based virtual card determination device 800 may include an acquisition module 801 and a processing module 802, wherein: the acquisition module 801 is used to acquire first information of the electronic device, the first information including at least one of the following: global positioning system GPS location information, posture information, and characteristic information of a signal received from a card reading device; the processing module 802 is used to determine the first virtual card that executes the NFC service from M virtual cards in the electronic device according to the first information acquired by the acquisition module, where M is an integer greater than 1.

[0173] In some embodiments of the present application, the processing module is specifically used to compare the first information with the second information corresponding to M virtual cards respectively; the processing module is specifically used to determine the first virtual card that executes the NFC service from the M virtual cards in the electronic device based on the comparison result; wherein the second information includes at least one of the following: GPS location information of the card reader device corresponding to each virtual card, posture information of the electronic device that communicates with the card reader device corresponding to each virtual card, and characteristic information of the signal sent by the card reader device corresponding to each virtual card.

[0174] In some embodiments of the present application, the first information includes GPS location information; the acquisition module is further used to determine, based on the first information, a first virtual card that executes the NFC service from M virtual cards in the electronic device, and, when the first virtual card includes at least two virtual cards, to obtain third information of the electronic device, the third information including at least one of the altitude information of the location and ultra-wideband UWB positioning information; the processing module is further used to determine, based on the third information acquired by the acquisition module, a second virtual card that executes the NFC service from at least two virtual cards.

[0175] In some embodiments of the present application, the processing module is specifically used to compare the third information with the fourth information corresponding to at least two virtual cards; the processing module is specifically used to determine the second virtual card that executes the NFC service from at least two virtual cards based on the comparison result; wherein the fourth information includes at least one of the following: the altitude information of the location of the card reader device corresponding to each virtual card, and the UWB positioning information of the card reader device corresponding to each virtual card.

[0176] In some embodiments of the present application, the device also includes: a storage module; an acquisition module, which is also used to obtain the second information corresponding to each of the M virtual cards before comparing the first information with the second information corresponding to the M virtual cards; and a storage module, which is used to associate and store the card information of each virtual card with the second information corresponding to each virtual card acquired by the acquisition module.

[0177] An NFC-based virtual card determination device provided in an embodiment of the present application obtains first information of an electronic device, where the first information includes at least one of the following: GPS location information, posture information, and characteristic information of a signal received from a card reader. According to the first information, a first virtual card for executing an NFC service is determined from M virtual cards of the electronic device. Through this method, the NFC-based virtual card determination device obtains the GPS location information, posture information of the electronic device, or characteristic information of a signal received from a card reader, and determines a virtual card for executing an NFC service from multiple virtual cards according to the above information. In this way, the process of a user manually selecting a virtual card when executing an NFC service is omitted, thereby simplifying the operation steps when executing an NFC service and improving the convenience of operation.

[0178] The acquisition module 801 is used to acquire first information of the electronic device, where the first information includes at least one of the following: global positioning system GPS location information, posture information, and characteristic information of a signal received from a card reading device; the processing module 802 is used to determine a first virtual card that executes an NFC service from M virtual cards in the electronic device according to the first information acquired by the acquisition module, where M is an integer greater than 1.

[0179] In some embodiments of the present application, the processing module is specifically used to compare the first information with the second information corresponding to M virtual cards respectively; the processing module is specifically used to determine the first virtual card that executes the NFC service from the M virtual cards in the electronic device based on the comparison result; wherein the second information includes at least one of the following: GPS location information of the card reader device corresponding to each virtual card, posture information of the electronic device that communicates with the card reader device corresponding to each virtual card, and characteristic information of the signal sent by the card reader device corresponding to each virtual card.

[0180] In some embodiments of the present application, the first information includes GPS location information; the acquisition module is further used to determine, based on the first information, a first virtual card that executes the NFC service from M virtual cards in the electronic device, and, when the first virtual card includes at least two virtual cards, to obtain third information of the electronic device, the third information including at least one of the altitude information of the location and ultra-wideband UWB positioning information; the processing module is further used to determine, based on the third information acquired by the acquisition module, a second virtual card that executes the NFC service from at least two virtual cards.

[0181] In some embodiments of the present application, the processing module is specifically used to compare the third information with the fourth information corresponding to at least two virtual cards; the processing module is specifically used to determine the second virtual card that executes the NFC service from at least two virtual cards based on the comparison result; wherein the fourth information includes at least one of the following: the altitude information of the location of the card reader device corresponding to each virtual card, and the UWB positioning information of the card reader device corresponding to each virtual card.

[0182] In some embodiments of the present application, the device also includes: a storage module; an acquisition module, which is also used to obtain the second information corresponding to each of the M virtual cards before comparing the first information with the second information corresponding to the M virtual cards; and a storage module, which is used to associate and store the card information of each virtual card with the second information corresponding to each virtual card acquired by the acquisition module.

[0183] An NFC-based virtual card determination device provided in an embodiment of the present application obtains first information of an electronic device, where the first information includes at least one of the following: GPS location information, posture information, and characteristic information of a signal received from a card reader. According to the first information, a first virtual card for executing an NFC service is determined from M virtual cards of the electronic device. Through this method, the NFC-based virtual card determination device obtains the GPS location information, posture information of the electronic device, or characteristic information of a signal received from a card reader, and determines a virtual card for executing an NFC service from multiple virtual cards according to the above information. In this way, the process of a user manually selecting a virtual card when executing an NFC service is omitted, thereby simplifying the operation steps when executing an NFC service and improving the convenience of operation.

[0184] The NFC-based virtual card determination device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and the embodiment of the present application is not specifically limited.

[0185] The NFC-based virtual card determination device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0186] The NFC-based virtual card determination device provided in the embodiment of the present application can implement each process implemented in the above method embodiment, and will not be described again here to avoid repetition.

[0187] Alternatively, if Fig. 9As shown, an embodiment of the present application also provides an electronic device 900, including a processor 901 and a memory 902, and the memory 902 stores a program or instruction that can be executed on the processor 901. When the program or instruction is executed by the processor 901, the various steps of the above-mentioned NFC-based virtual card determination method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0188] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0189] Fig.10 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0190] The electronic device 100 includes but is not limited to components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.

[0191] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.10 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0192] Among them, the processor 110 is used to obtain first information of the electronic device, and the first information includes at least one of the following: global positioning system GPS location information, posture information, and characteristic information of a signal received from a card reading device; the processor 110 is used to determine a first virtual card that executes an NFC service from M virtual cards in the electronic device according to the first information obtained by the processor 110, where M is an integer greater than 1.

[0193] In some embodiments of the present application, the processor 110 is specifically used to compare the first information with the second information corresponding to M virtual cards respectively; the processor 110 is specifically used to determine the first virtual card that executes the NFC service from the M virtual cards in the electronic device based on the comparison result; wherein the second information includes at least one of the following: GPS location information of the card reader device corresponding to each virtual card, posture information of the electronic device communicating with the card reader device corresponding to each virtual card, and characteristic information of the signal sent by the card reader device corresponding to each virtual card.

[0194] In some embodiments of the present application, the first information includes GPS location information; the processor 110 is also used to determine, based on the first information, from M virtual cards in the electronic device a first virtual card that performs an NFC service, and when the first virtual card includes at least two virtual cards, obtain third information of the electronic device, the third information including at least one of altitude information of the location and ultra-wideband UWB positioning information; the processor 110 is also used to determine, based on the third information obtained by the processor 110, a second virtual card that performs an NFC service from at least two virtual cards.

[0195] In some embodiments of the present application, the processor 110 is specifically used to compare the third information with the fourth information corresponding to at least two virtual cards; the processor 110 is specifically used to determine the second virtual card that executes the NFC service from at least two virtual cards based on the comparison result; wherein the fourth information includes at least one of the following: the altitude information of the location of the card reader device corresponding to each virtual card, and the UWB positioning information of the card reader device corresponding to each virtual card.

[0196] In some embodiments of the present application, the above-mentioned processor 110 is also used to obtain the second information corresponding to each of the M virtual cards before comparing the first information with the second information corresponding to the M virtual cards; the memory 109 is used to associate and store the card information of each virtual card with the second information corresponding to each virtual card obtained by the processor 110.

[0197] An electronic device provided in an embodiment of the present application obtains first information of the electronic device, where the first information includes at least one of the following: GPS location information, posture information, and characteristic information of a signal received from a card reader. Based on the first information, a first virtual card for executing an NFC service is determined from M virtual cards of the electronic device. Through this method, the electronic device obtains the GPS location information, posture information, or characteristic information of a signal received from a card reader, and determines a virtual card for executing an NFC service from multiple virtual cards based on the above information. In this way, the process of a user manually selecting a virtual card when executing an NFC service is omitted, thereby simplifying the operation steps when executing an NFC service and improving the convenience of operation.

[0198] It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0199] The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 109 may include a volatile memory or a non-volatile memory, or the memory 109 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0200] The processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 110.

[0201] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned NFC-based virtual card determination method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0202] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0203] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned NFC-based virtual card determination method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0204] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0205] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned NFC-based virtual card determination method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0206] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0207] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0208] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A virtual card determination method based on near field communication NFC, characterized in that: The method comprises: Acquire first information of the electronic device, the first information including at least one of the following: global positioning system GPS location information, posture information, and characteristic information of a signal received from a card reading device; A first virtual card for executing an NFC service is determined from M virtual cards in the electronic device according to the first information, where M is an integer greater than 1.

2. The method according to claim 1, characterized in that The determining, according to the first information, a first virtual card for executing an NFC service from the M virtual cards in the electronic device includes: Compare the first information with the second information corresponding to the M virtual cards respectively; According to the comparison result, determining a first virtual card for executing the NFC service from the M virtual cards in the electronic device; The second information includes at least one of the following: GPS location information of the card reader device corresponding to each virtual card, posture information of the electronic device communicating with the card reader device corresponding to each virtual card, and characteristic information of the signal sent by the card reader device corresponding to each virtual card.

3. The method according to claim 1 or 2, characterized in that: The first information includes GPS location information; after determining the first virtual card that performs the NFC service from the M virtual cards in the electronic device according to the first information, the method further includes: In a case where the first virtual card includes at least two virtual cards, obtaining third information of the electronic device, the third information including at least one of altitude information of the location and ultra-wideband (UWB) positioning information; A second virtual card for executing the NFC service is determined from the at least two virtual cards according to the third information.

4. The method according to claim 3, characterized in that The step of determining, according to the third information, a second virtual card for executing the NFC service from the at least two virtual cards includes: comparing the third information with fourth information corresponding to the at least two virtual cards; Determining, according to the comparison result, a second virtual card for executing the NFC service from the at least two virtual cards; The fourth information includes at least one of the following: altitude information of the location of the card reader device corresponding to each virtual card, and UWB positioning information of the card reader device corresponding to each virtual card.

5. The method according to claim 2, characterized in that: Before comparing the first information with the second information corresponding to the M virtual cards, the method further includes: Acquire the second information corresponding to each virtual card in the M virtual cards; The card information of each virtual card is associated with the second information corresponding to each virtual card and stored.

6. A virtual card determination device based on NFC, characterized in that: The device comprises: an acquisition module and a processing module, wherein: The acquisition module is used to acquire first information of the electronic device, wherein the first information includes at least one of the following: GPS location information, posture information, and characteristic information of a signal received from a card reader; The processing module is used to determine a first virtual card that executes an NFC service from M virtual cards in the electronic device according to the first information acquired by the acquisition module, where M is an integer greater than 1.

7. The device according to claim 6, characterized in that The processing module is specifically used to compare the first information with the second information corresponding to the M virtual cards respectively; The processing module is specifically configured to determine, according to the comparison result, a first virtual card for executing the NFC service from the M virtual cards in the electronic device; The second information includes at least one of the following: GPS location information of the card reader device corresponding to each virtual card, posture information of the electronic device communicating with the card reader device corresponding to each virtual card, and characteristic information of the signal sent by the card reader device corresponding to each virtual card.

8. The device according to claim 6 or 7, characterized in that The first information includes GPS location information; the acquisition module is further used to determine, based on the first information, a first virtual card that performs an NFC service from the M virtual cards in the electronic device, and, if the first virtual card includes at least two virtual cards, acquire third information of the electronic device, the third information including at least one of altitude information of the location and ultra-wideband UWB positioning information; The processing module is further configured to determine, according to the third information acquired by the acquisition module, a second virtual card for executing the NFC service from among the at least two virtual cards.

9. The device according to claim 8, characterized in that The processing module is specifically configured to compare the third information with fourth information corresponding to the at least two virtual cards; The processing module is specifically configured to determine, according to the comparison result, a second virtual card for executing the NFC service from the at least two virtual cards; The fourth information includes at least one of the following: altitude information of the location of the card reader device corresponding to each virtual card, and UWB positioning information of the card reader device corresponding to each virtual card.

10. The device according to claim 7, characterized in that The device further includes: a storage module; the acquisition module is further configured to acquire the second information corresponding to each of the M virtual cards before comparing the first information with the second information corresponding to the M virtual cards; The storage module is used to associate and store the card information of each virtual card with the second information corresponding to each virtual card acquired by the acquisition module.

11. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method for determining a virtual card based on NFC as described in any one of claims 1 to 5 are implemented.

12. A readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by the processor, the steps of the NFC-based virtual card determination method as described in any one of claims 1 to 5 are implemented.

Citation Information

Cited By

  • NFC-based virtual card determination method and apparatus, electronic device, and storage medium

    WO2026086741A1