CN114449446B - Virtual card switching method and electronic equipment - Google Patents

Virtual card switching method and electronic equipment Download PDF

Info

Publication number
CN114449446B
CN114449446B CN202110921394.4A CN202110921394A CN114449446B CN 114449446 B CN114449446 B CN 114449446B CN 202110921394 A CN202110921394 A CN 202110921394A CN 114449446 B CN114449446 B CN 114449446B
Authority
CN
China
Prior art keywords
fence
gnss
gps
electronic device
card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110921394.4A
Other languages
Chinese (zh)
Other versions
CN114449446A (en
Inventor
李大欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202110921394.4A priority Critical patent/CN114449446B/en
Priority to PCT/CN2022/089662 priority patent/WO2023015962A1/en
Publication of CN114449446A publication Critical patent/CN114449446A/en
Application granted granted Critical
Publication of CN114449446B publication Critical patent/CN114449446B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Abstract

The embodiment of the application discloses a virtual card switching method and electronic equipment, and relates to the field of electronic equipment, so that the process of swiping a virtual card by a user is simplified, the time consumption of swiping the virtual card is reduced, and the user experience is improved. The specific scheme is as follows: under the condition that the electronic equipment completes data interaction by adopting a first virtual card at a first card swiping point for the first time, the electronic equipment acquires first GNSS position information and first GNSS accuracy of the electronic equipment; the electronic equipment establishes and stores a first GNSS fence corresponding to the first virtual card according to the first GNSS position information, the first GNSS precision and a second GNSS fence corresponding to the second virtual card; the second virtual card is a virtual card of the plurality of virtual cards, which is established and stores the GNSS fence by the electronic equipment; the electronic device activates the first virtual card if the electronic device monitors that the location of the electronic device is within range of the first GNSS fence.

Description

Virtual card switching method and electronic equipment
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a virtual card switching method and an electronic device.
Background
Near Field Communication (NFC) technology has been gradually popularized to miniaturized electronic devices, such as mobile phones. In the mobile phone with the NFC function, a plurality of NFC virtual cards can be configured, so that multiple functions of bus card swiping, transaction payment, entrance guard unlocking and the like can be realized.
However, when different card swiping requirements are met, the user needs to manually select the virtual card, so that the card swiping process is complicated and time-consuming.
Disclosure of Invention
The embodiment of the application provides a virtual card switching method and electronic equipment, which can simplify the card swiping process of a user and reduce the time consumption of card swiping, so that the user experience is improved.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
in a first aspect, an embodiment of the present application provides a virtual card switching method, which is applied to an electronic device, where the electronic device has an NFC function, and the electronic device includes a plurality of virtual cards. The virtual card switching method may include: under the condition that the electronic equipment completes data interaction by adopting a first virtual card at a first card swiping point for the first time, the electronic equipment acquires first Global Navigation Satellite System (GNSS) position information and first GNSS accuracy of the electronic equipment; the first virtual card is a virtual card of a plurality of virtual cards; the electronic equipment establishes and stores a first GNSS fence corresponding to the first virtual card according to the first GNSS position information, the first GNSS precision and a second GNSS fence corresponding to the second virtual card; the second virtual card is a virtual card of a plurality of virtual cards in which the electronic device has established and stored the GNSS fence; and under the condition that the electronic equipment monitors that the position of the electronic equipment reaches the range of the first GNSS fence, the electronic equipment activates the first virtual card.
Based on the method of the first aspect, when the electronic device completes a transaction with a virtual card at a certain card swiping point for the first time, a GNSS geofence corresponding to the virtual card is established according to current GNSS location information of the electronic device. When the user holds the electronic device and then enters the range of the GNSS geo-fence again, the electronic device can automatically activate the virtual card corresponding to the GNSS geo-fence. Therefore, when different card swiping requirements are met, the virtual card needing to be activated can be prevented from being manually selected by a user, the card swiping process of the user is simplified, the card swiping duration is shortened, and the user experience is improved. According to the scheme, the corresponding geo-fence is established according to the GNSS position information, and the GNSS position information can be acquired by utilizing a short-distance chip of the electronic equipment. And the short-distance chip is the standard configuration of the electronic equipment, so that even if the electronic equipment does not have the Wi-Fi fence capability, the automatic activation of the corresponding virtual card can be realized before the user swipes the card, and the use experience of the user is further improved. In addition, according to the scheme of the application, a new GNSS fence is established according to the established GNSS fence, so that no overlapping area exists between the GNSS fence corresponding to the newly established virtual card and the established GNSS fence, and the electronic device can accurately activate the corresponding virtual card when the user holds the electronic device to reach the range of the corresponding GNSS fence.
With reference to the first aspect, in another possible implementation manner, the establishing, by the electronic device, a first GNSS fence corresponding to the first virtual card according to the first GNSS position information, the first GNSS precision, and a second GNSS fence corresponding to the second virtual card may include: the electronic equipment establishes an initial GNSS fence corresponding to the first virtual card; the initial GNSS fence is a circular area which takes the first GNSS position information as a circle center and takes a preset length as a radius; in an instance in which the electronic device determines that there is no overlapping area of the initial GNSS fence and the second GNSS fence, the electronic device treats the initial GNSS fence as the first GNSS fence.
Based on the possible implementation manner, when none of the GNSS fences established by the initial GNSS fence has an overlapping area, the initial GNSS fence is used as the GNSS fence corresponding to the virtual card, so that the range of the GNSS fence corresponding to the virtual card is large, and therefore when the user holds the electronic device and reaches the range of the corresponding GNSS fence, the electronic device can accurately activate the corresponding virtual card.
With reference to the first aspect, in another possible implementation manner, the establishing, by the electronic device, a first GNSS fence corresponding to the first virtual card according to the first GNSS position information, the first GNSS precision, and a second GNSS fence corresponding to the second virtual card may further include: the method includes the steps that under the condition that the electronic equipment determines that an overlapping area exists between an initial GNSS fence and a third GNSS fence in a second GNSS fence, the electronic equipment determines a first radius according to first GNSS position information, first GNSS accuracy, and second GNSS position information and second GNSS accuracy when the third GNSS fence is established; the electronic device establishes a first GNSS fence according to the first GNSS location information and the first radius, and the first GNSS fence and the third GNSS fence do not have an overlapping area.
Based on the possible implementation manner, the radius of the newly established GNSS fence is dynamically determined according to the GNSS position information and the GNSS precision of the established GNSS fence, so that there is no overlapping area between the newly established GNSS fence and the established GNSS fence, and the electronic device can accurately activate the corresponding virtual card when the user holds the electronic device and reaches the range of the corresponding GNSS fence.
With reference to the first aspect, in another possible implementation manner, in a case that there is one third GNSS fence in the second GNSS fence that has an overlapping area with the initial GNSS fence, the first radius is obtained by the following formula:
Figure BDA0003207551810000021
wherein l x Is a first radius, c x To a first GNSS accuracy, c y For the second GNSS accuracy, l is a distance between the first GNSS location information and the second GNSS location information, and d is a buffer width between the initial GNSS fence and the third GNSS fence boundary.
Based on the possible implementation manner, the radius of the newly established GNSS fence can be dynamically determined according to the GNSS position information and the GNSS precision of the established GNSS fence, so that there is no overlapping area between the newly established GNSS fence and the established GNSS fence, and when the user holds the electronic device and reaches the range of the corresponding GNSS fence, the electronic device can accurately activate the corresponding virtual card.
With reference to the first aspect, in another possible implementation manner, when there are a plurality of third GNSS fences in the second GNSS fence that have an overlapping area with the initial GNSS fence, the first radius is a plurality of l corresponding to the plurality of third GNSS fences one to one x Of the smallest x ,l x Obtained by the following formula:
Figure BDA0003207551810000022
wherein, c x To a first GNSS accuracy, c y For the second GNSS accuracy, l is a distance between the first GNSS location information and the second GNSS location information, and d is a buffer width between the initial GNSS fence and the third GNSS fence boundary.
Based on the possible implementation manner, the radius of the newly established GNSS fence can be dynamically determined according to the GNSS position information and the GNSS precision of the plurality of established GNSS fences, so that the newly established GNSS fence and the plurality of established GNSS fences do not have an overlapping area, and when the user holds the electronic device and reaches the range of the corresponding GNSS fence, the electronic device can accurately activate the corresponding virtual card.
With reference to the first aspect, in another possible implementation manner, the virtual card switching method may further include: the electronic equipment determines a second radius according to the first GNSS position information, the first GNSS accuracy, the second GNSS position information and the second GNSS accuracy; the electronic device updates the third GNSS fence according to the second GNSS position information and the second radius; the second radius is obtained by the following formula:
Figure BDA0003207551810000031
wherein l y Is a second radius, c x To a first GNSS accuracy, c y For the second GNSS accuracy, l is a distance between the first GNSS location information and the second GNSS location information, and d is a buffer width between the initial GNSS fence and the third GNSS fence boundary.
Based on the possible implementation manner, a new radius corresponding to the established GNSS fence can be determined, and the established GNSS fence is updated according to the new radius, so that an overlapping area does not exist between the established GNSS fence and the newly established GNSS fence, and when the user holds the electronic device and reaches the range of the corresponding GNSS fence, the electronic device can accurately activate the corresponding virtual card.
With reference to the first aspect, in another possible implementation manner, for each third GNSS fence, the virtual card switching method may further include: the electronic device determines a second radius according to a distance between the first GNSS location information and the second GNSS location information, the first radius, and a buffer width between a boundary of the initial GNSS fence and a boundary of a third GNSS fence; in a case that the second radius is smaller than the original radius of the third GNSS fence, the electronic device updates the third GNSS fence according to the second GNSS location information and the second radius.
Based on the possible implementation manner, new radiuses corresponding to the multiple established GNSS fences can be determined, and the established GNSS fences are updated according to the new radiuses, so that the multiple established GNSS fences and the newly established GNSS fences do not have an overlapping area, and when a user holds the electronic device and reaches the range of the corresponding GNSS fences, the electronic device can accurately activate the corresponding virtual cards.
With reference to the first aspect, in another possible implementation manner, the preset length is 2 kilometers.
Based on the possible implementation manner, the range of the initial GNSS fence can be accurately determined, and the range of the GNSS fence corresponding to the virtual card can be larger, so that when the user holds the electronic device to reach the range of the corresponding GNSS fence, the electronic device can accurately activate the corresponding virtual card.
With reference to the first aspect, in another possible implementation manner, the first virtual card is specifically a virtual card of a predetermined type in the plurality of virtual cards.
Based on the possible implementation manner, the first virtual card is a virtual card of a predetermined type in the plurality of virtual cards, so that when the electronic device completes a transaction by using a certain virtual card at a certain card swiping point for the first time, the electronic device can quickly determine whether to establish a fence corresponding to the virtual card.
With reference to the first aspect, in another possible implementation manner, the GNSS includes a global positioning satellite system GPS, a global navigation satellite system GLONASS, a beidou satellite navigation system BDS, a quasi-zenith satellite system QZSS, or a satellite-based augmentation system SBAS.
Based on the possible implementation mode, the electronic equipment can establish different types of GNSS fences corresponding to the virtual card through the GNSS including a global positioning system GPS, a global navigation satellite system GLONASS, a Beidou satellite navigation system BDS, a quasi-zenith satellite system QZSS or a satellite-based augmentation system SBAS.
In a second aspect, an embodiment of the present application provides a virtual card switching apparatus, which can be applied to an electronic device, for implementing the method in the first aspect. The function of the virtual card switching device can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions, such as an acquisition module, a creation module, a storage module, an activation module, and the like.
The acquisition module can be used for acquiring first global navigation satellite system GNSS position information and first GNSS accuracy of the electronic equipment under the condition that the electronic equipment completes data interaction by adopting a first virtual card at a first card swiping point for the first time; the first virtual card is a virtual card of the multiple virtual cards
The establishing module is used for establishing a first GNSS fence corresponding to the first virtual card according to the first GNSS position information, the first GNSS accuracy and a second GNSS fence corresponding to the second virtual card; the second virtual card is a virtual card of the plurality of virtual cards in which the electronic device has established and stored the GNSS fence.
The storage module may be configured to store a first GNSS fence corresponding to the first virtual card.
The activation module may be configured to activate the first virtual card when the electronic device monitors that the location of the electronic device is within the range of the first GNSS fence.
With reference to the second aspect, in another possible implementation manner, the establishing module is provided with a module for establishing an initial GNSS fence corresponding to the first virtual card; the initial GNSS fence is a circular area with the first GNSS position information as a center of a circle and a preset length as a radius. The method further includes, in response to determining that there is no overlapping area between the initial GNSS fence and the second GNSS fence, treating the initial GNSS fence as a first GNSS fence.
With reference to the second aspect, in another possible implementation manner, the virtual card switching apparatus may further include: and determining a module. The determining module may be configured to determine the first radius according to the first GNSS location information, the first GNSS accuracy, and the second GNSS location information and the second GNSS accuracy when the third GNSS fence is established, when it is determined that the initial GNSS fence and a third GNSS fence of the second GNSS fence have an overlapping area. The establishing module is specifically configured to establish a first GNSS fence according to the first GNSS location information and the first radius, where there is no overlapping area between the first GNSS fence and the third GNSS fence.
With reference to the second aspect, in another possible implementation manner, in a case that there is one third GNSS fence in the second GNSS fence that has an overlapping area with the initial GNSS fence, the first radius is obtained by the following formula:
Figure BDA0003207551810000041
wherein l x Is a first radius, c x To a first GNSS accuracy, c y For the second GNSS accuracy, l is a distance between the first GNSS location information and the second GNSS location information, and d is a buffer width between the initial GNSS fence and the third GNSS fence boundary.
With reference to the second aspect, in another possible implementation manner, in a case that there are a plurality of third GNSS fences in the second GNSS fence that have an overlapping area with the initial GNSS fence, the first radius is a plurality of l corresponding to the plurality of third GNSS fences one to one x Of the smallest x ,l x Obtained by the following formula:
Figure BDA0003207551810000042
wherein, c x To a first GNSS accuracy, c y For the second GNSS accuracy, l is a distance between the first GNSS location information and the second GNSS location information, and d is a buffer width between the initial GNSS fence and the third GNSS fence boundary.
With reference to the second aspect, in another possible implementation manner, the determining module may be further configured to determine the second radius according to the first GNSS position information, the first GNSS accuracy, the second GNSS position information, and the second GNSS accuracy; the second radius is obtained by the following formula:
Figure BDA0003207551810000043
wherein l y Is a second radius, c x To a first GNSS accuracy, c y For the second GNSS accuracy, l is a distance between the first GNSS location information and the second GNSS location information, and d is a buffer width between the initial GNSS fence and the third GNSS fence boundary. The virtual card switching apparatus may further include: and updating the module. An update module operable to determine a position based on the second GNSS locationAnd updating the third GNSS fence at the second radius.
With reference to the second aspect, in another possible implementation manner, for each third GNSS fence, the determining module may be further configured to determine the second radius according to a distance between the first GNSS location information and the second GNSS location information, the first radius, and a buffer width between the initial GNSS fence and a boundary of the third GNSS fence. And an updating module, configured to update the third GNSS fence according to the second GNSS location information and the second radius, when the second radius is smaller than the original radius of the third GNSS fence.
With reference to the second aspect, in another possible implementation manner, the preset length is 2 kilometers.
With reference to the second aspect, in another possible implementation manner, the first virtual card is specifically a virtual card of a predetermined type among the plurality of virtual cards.
With reference to the second aspect, in another possible implementation manner, the GNSS includes a global positioning satellite system GPS, a global navigation satellite system GLONASS, a beidou satellite navigation system BDS, a quasi-zenith satellite system QZSS, or a satellite-based augmentation system SBAS.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory for storing instructions executable by the processor. The processor is configured to execute the above instructions, so that the electronic device implements the virtual card switching method according to any one of the first aspect or possible implementation manners of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having computer program instructions stored thereon. The computer program instructions, when executed by the electronic device, cause the electronic device to implement the virtual card switching method as described in the first aspect or any one of the possible implementations of the first aspect.
In a fifth aspect, an embodiment of the present application provides a computer program product, which includes computer readable code, and when the computer readable code is run in an electronic device, causes the electronic device to implement the virtual card switching method according to the first aspect or any one of the possible implementation manners of the first aspect.
It should be understood that, the beneficial effects of the second to fifth aspects may refer to the relevant description in the first aspect, and are not described herein again.
Drawings
Fig. 1 is a schematic view of an application scenario of an NFC virtual card according to an embodiment of the present application;
fig. 2 is a schematic view of a display interface of an electronic device according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 4 is a first schematic diagram of a framework of a virtual card switching method according to an embodiment of the present application;
fig. 5 is a second schematic diagram of a framework of a virtual card switching method according to an embodiment of the present application;
fig. 6 is a first schematic diagram illustrating a geo-fence establishment method corresponding to a virtual card according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram illustrating a second method for establishing a geo-fence corresponding to a virtual card according to an embodiment of the present disclosure;
fig. 8 is a first schematic diagram of a geofence provided by an embodiment of the present application;
fig. 9 is a second schematic diagram of a geofence provided by an embodiment of the present application;
fig. 10 is a first schematic diagram illustrating a virtual card switching method according to an embodiment of the present application;
fig. 11 is a schematic diagram of virtual card switching according to an embodiment of the present application;
fig. 12 is a schematic diagram illustrating a virtual card switching method according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of a virtual card switching device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
The terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or to implicitly indicate the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present application, the meaning of "a plurality" is two or more unless otherwise specified.
At present, the NFC technology has been gradually popularized to miniaturized electronic devices. Electronic equipment such as a mobile phone supporting an NFC function can exchange data with an NFC card reader (e.g., a point of sale (POS)) when being close to the NFC card reader, so as to implement various NFC functions such as card swiping and data transfer. For example, as shown in fig. 1, the mobile phone 101 has an NFC function, and when taking a bus, a user can bring the mobile phone 101 close to the NFC card reader 102 on the bus, so that the mobile phone 101 can exchange data with the NFC card reader 102 on the bus, that is, the mobile phone 101 completes payment of a bus taking fee.
Generally, an NFC-enabled electronic device may include an application program (e.g., referred to as an NFC application) for implementing near field communication. The NFC application has an emulation function of simulating a non-contact circuit (IC) card. For example, the NFC application may include a card package application, a bus application, a bank-like application, a door access application, and the like.
Each NFC application includes at least one virtual card, such as a virtual transportation card, a virtual access card, a virtual bank card, and the like. Each virtual card may correspond to an identifier, which may be an Application Identifier (AID) or an Identifier (ID). When a virtual card supports AID identification, the virtual card may be identified with an AID. And some virtual cards do not support AID identification, for example, mifare series cards, such as a cell access control card, can be identified by ID. The mapping relationship between the virtual card and the identifier of the NFC application may be stored in a memory of the electronic device, and may also be stored in a cloud. As an example, the mapping relationship is stored in a memory of the electronic device, and the NFC application is a card package application. The mapping relationship between the virtual card and the identification of the card package application stored in the memory of the electronic device is shown in table 1.
TABLE 1
Figure BDA0003207551810000061
As can be seen from table 1, in the electronic device, the card package application may include a plurality of virtual cards of different types, such as a community access card, a public transportation card, and a smart door lock card. And simultaneously, the activation state of one virtual card in the plurality of virtual cards is activated, for example, the activation state of the intelligent door lock card marked as AID2 is activated.
In the case where the electronic device receives NFC field strength information (i.e., the electronic device is close to an NFC reader), the electronic device defaults to data interaction (i.e., completes a transaction) with the close NFC reader by the activated virtual card. The virtual card that is in the activated state is often a default card that is pre-configured. When the NFC card reader is matched with the default card, data interaction between the NFC card reader and the electronic equipment is successful. However, when the NFC card reader does not match the default card, a data interaction failure occurs. When the NFC card reader is not matched with the default card, the user is required to manually select the correct virtual card to achieve successful interaction with the NFC card reader.
For example, the electronic device is a mobile phone. As shown in fig. 2 (a), the default card in the card package application of the mobile phone is the smart door lock card, that is, the virtual card in the activated state is the smart door lock card. When the mobile phone approaches the NFC reader of the bus, the mobile phone may receive the indication information including an identifier (e.g., AID 1). And then, the mobile phone can perform data interaction with the NFC card reader on the bus by using the default card. If the user starts the card package application of the mobile phone at this time, the mobile phone may display a card swiping interface 201 shown in (b) in fig. 2 for prompting the user to attempt data interaction with the NFC card reader with a default card (i.e., a smart door lock card). Of course, it is also possible that the mobile phone is turned on in response to the received indication information, and displays an interface of the card package application, for example, the card swiping interface 201. In addition, the mobile phone may also compare whether the identification (i.e., AID 1) in the indication information is the same as the identification (i.e., AID 2) of the default card. When the mobile phone determines that the two are different, the mobile phone may display a card swiping interface 202 as shown in (c) in fig. 2, and display a prompt message of "card swiping failure, card switching activation". The user may then manually select the correct virtual card activation. For example, the mobile phone receives the selection operation of the public transportation card by the user, and in response, the smart door lock card currently in the activated state can be deactivated, and the public transportation card can be activated. And then, when the mobile phone approaches the NFC card reader on the bus again, the activated public transport card is used for data interaction with the NFC card reader on the bus, so that the operations of deducting money and the like can be executed, the NFC card reader of the bus is informed, and card swiping is completed. Typically, after the card swipe is completed, the cell phone may also deactivate the public transportation card and reactivate the default card (i.e., the smart door lock card).
Therefore, when the NFC card reader is not matched with a currently activated virtual card, such as a default card, that is, when different card swiping requirements are met, a user needs to manually select a correct virtual card activation so as to complete data interaction with the NFC card reader. Therefore, the card swiping process is complicated and the time is long.
In the related art, a wireless fidelity (Wi-Fi) geo-fence is used to automatically activate a corresponding virtual card before a user swipes the card.
The geofence is that when a user arrives near a certain geographic location, the mobile phone of the user may match the monitored longitude and latitude coordinates of the mobile phone, the identifier of the Cell base station scanned by the mobile phone, or the Wi-Fi information (such as the Wi-Fi identifier) scanned by the mobile phone with the location information corresponding to the geographic location, the identifier of the Cell base station (Cell), or the Wi-Fi information, and after the matching is successful, the mobile phone may determine that the user enters the geofence corresponding to the geographic location.
Geofences can be classified as Global Navigation Satellite System (GNSS) geofences, cell (Cell) geofences, and Wi-Fi geofences according to their monitored parameters.
The GNSS geofence monitoring parameters may be latitude and longitude coordinates of the handset. The monitoring area of the GNSS geofence may be a circular area with a certain length as a radius and a certain geographic position coordinate point as a center, or a polygonal area with a plurality of geographic position coordinate points as vertexes, and the vertexes are connected together.
The monitoring parameter of the Cell geofence may be an identification of the Cell base station scanned by the Cell phone. The monitoring area of a Cell geofence may be the coverage area of one or more Cell base station signals.
The monitoring parameter of the Wi-Fi geofence can be a Wi-Fi signal scanned by a cell phone. The monitoring area of the Wi-Fi geofence can be the coverage area of one or more Wi-Fi signals.
After the mobile phone determines that the user enters the geo-fence corresponding to the geo-location, the fence mechanism corresponding to the geo-location may be triggered, so as to perform an operation corresponding to the fence corresponding to the geo-location, for example, a card corresponding to the geo-location may be activated.
Specifically, the above related art scheme is: when a user uses a virtual card to conduct transaction, the mobile phone sets a Wi-Fi geographic fence according to the identification of the virtual card and the Wi-Fi identification corresponding to the card swiping position of the user, and stores the corresponding relation between the Wi-Fi identification in the Wi-Fi geographic fence and the identification of the virtual card. And then, the mobile phone can periodically acquire the Wi-Fi identification of the current geographic position of the mobile phone and judge whether the acquired Wi-Fi identification is the same as the Wi-Fi identification in the set Wi-Fi geographic fence or not. And when the mobile phone detects that the obtained Wi-Fi identification is the same as the Wi-Fi identification in the Wi-Fi geo-fence, determining that the user enters the Wi-Fi geo-fence. At this time, the mobile phone can automatically activate the virtual card corresponding to the Wi-Fi geo-fence according to the stored corresponding relationship, so that the user can use the activated virtual card to complete card swiping. Namely, the automatic activation of the corresponding virtual card is realized before the user swipes the card.
However, implementation of the above scheme requires the handset to have Wi-Fi geofencing capability, such as requiring a sensing hub (sensorhub) in the handset to have low power Wi-Fi geofencing capability. When the mobile phone does not have the Wi-Fi geo-fence capability, the setting of the Wi-Fi geo-fence corresponding to the virtual card cannot be realized, and the corresponding virtual card cannot be automatically activated before the user swipes the card. Thus, the user is still required to manually select the correct virtual card activation.
In view of the above problems, an embodiment of the present invention provides a virtual card switching method, which is applied to an electronic device, and can establish a GNSS geofence corresponding to a virtual card according to current GNSS location information of the electronic device when a user completes a transaction using a virtual card at a certain card swiping point for the first time. When the user then re-enters the GNSS geofence with the electronic device, the electronic device may automatically activate the virtual card corresponding to the GNSS geofence so that the user may complete the transaction using the virtual card. That is, the electronic device can automatically activate the corresponding virtual card using the GNSS geofence before the user swipes the card.
Therefore, when different card swiping requirements are met, the situation that a user needs to manually select the virtual card can be avoided, the card swiping time is shortened, and the user experience is improved. According to the scheme, the corresponding geo-fence can be established according to the GNSS position information, and the GNSS position information can be acquired by utilizing a short-distance chip of the electronic equipment. And the short-distance chip is the standard configuration of the electronic equipment, so that even if the electronic equipment does not have the Wi-Fi fence capability, the automatic activation of the corresponding virtual card can be realized before the user swipes the card, and the use experience of the user is further improved.
It is understood that a GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou satellite navigation system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS), among others. Thus, the GNSS geofences in this embodiment may be a GPS geofence, a GLONASS geofence, a beidou geofence, a QZSS geofence, or an SBAS geofence, among others.
The specific type of GNSS geofence is not limited in this application. For the convenience of understanding, in the following embodiments of the present application, a GNSS geofence is taken as an example of a GPS geofence for illustration. That is, the monitoring parameter of the GPS fence can be the latitude and longitude coordinates of the electronic device. The monitoring area of the GPS fence may be a circular area with a certain length as a radius and a certain geographical position coordinate point as a center, or a polygonal area with a plurality of geographical position coordinate points as vertexes, which are connected together.
In addition, in some examples, the electronic device may be an NFC-enabled electronic device such as a mobile phone, a tablet computer, a handheld computer, a Personal Computer (PC), a cellular phone, a Personal Digital Assistant (PDA), and a wearable device. The embodiment of the present application does not limit the specific form of the electronic device.
Exemplarily, taking an electronic device as a mobile phone as an example, fig. 3 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
As shown in fig. 3, the electronic device may include a processor 310, an external memory interface 320, an internal memory 321, a Universal Serial Bus (USB) interface 330, a charging management module 340, a power management module 341, a battery 342, an antenna 1, an antenna 2, a mobile communication module 350, a wireless communication module 360, an audio module 370, a speaker 370A, a receiver 370B, a microphone 370C, an earphone interface 370D, a sensor module 380, a button 390, a motor 391, an indicator 392, a camera 393, a display 394, and a Subscriber Identity Module (SIM) card interface 395, and the like. The sensor module 380 may include a pressure sensor 380A, a gyroscope sensor 380B, an air pressure sensor 380C, a magnetic sensor 380D, an acceleration sensor 380E, a distance sensor 380F, a proximity light sensor 380G, a fingerprint sensor 380H, a temperature sensor 380J, a touch sensor 380K, an ambient light sensor 380L, a bone conduction sensor 380M, and the like.
It is to be understood that the illustrated structure of the present embodiment does not constitute a specific limitation to the electronic device. In other embodiments, an electronic device may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 310 may include one or more processing units, such as: the processor 310 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
In this embodiment, the processor 310 may further include a sensing hub (sensorsub), a short-range processor (also referred to as a short-range chip). The short-range chip may be used to acquire GPS location information as well as Wi-Fi scan information. In some embodiments, the short-range chip may include two chips, a GPS chip for acquiring GPS positioning information and a Wi-Fi chip for acquiring Wi-Fi scanning information.
The controller may be a neural center and a command center of the electronic device. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 310 for storing instructions and data. In some embodiments, the memory in the processor 310 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 310. If the processor 310 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 310, thereby increasing the efficiency of the system.
In some embodiments, processor 310 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose-input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The wireless communication function of the electronic device may be implemented by the antenna 1, the antenna 2, the mobile communication module 350, the wireless communication module 360, the modem processor, the baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in an electronic device may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 350 may provide a solution including wireless communication of 2G/3G/4G/5G, etc. applied to the electronic device. The mobile communication module 350 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 350 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the filtered electromagnetic wave to the modem processor for demodulation. The mobile communication module 350 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 350 may be disposed in the processor 310. In some embodiments, at least some of the functional blocks of the mobile communication module 350 may be provided in the same device as at least some of the blocks of the processor 310.
The wireless communication module 360 may provide solutions for wireless communication applied to electronic devices, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (BT), global Navigation Satellite System (GNSS), frequency Modulation (FM), near Field Communication (NFC), infrared (IR), and the like. The wireless communication module 360 may be one or more devices integrating at least one communication processing module. The wireless communication module 360 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 310. The wireless communication module 360 may also receive a signal to be transmitted from the processor 310, frequency-modulate and amplify the signal, and convert the signal into electromagnetic waves via the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of the electronic device is coupled to the mobile communication module 350 and antenna 2 is coupled to the wireless communication module 360 so that the electronic device can communicate with the network and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), general Packet Radio Service (GPRS), code Division Multiple Access (CDMA), wideband Code Division Multiple Access (WCDMA), time division code division multiple access (time-division multiple access, TD-SCDMA), long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc.
The electronic device implements display functions via the GPU, the display 394, and the application processor, among other things. The GPU is an image processing microprocessor coupled to a display 394 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 310 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 394 is used to display images, video, and the like. The display screen 394 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the electronic device may include 1 or N display screens 394, N being a positive integer greater than 1.
In this embodiment, the display 394 may be used to display an interface of the electronic device.
The electronic device may implement the shooting function through the ISP, camera 393, video codec, GPU, display 394, application processor, etc. In some embodiments, the electronic device may include 1 or N cameras 393, N being a positive integer greater than 1.
The internal memory 321 may be used to store computer-executable program code, which includes instructions. The processor 310 executes various functional applications of the electronic device and data processing by executing instructions stored in the internal memory 321. The internal memory 321 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, and the like) required by at least one function, and the like. The data storage area can store data (such as audio data, phone book and the like) established in the use process of the electronic equipment. In addition, the internal memory 321 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a Universal Flash Storage (UFS), and the like.
The acceleration sensor 380E may periodically collect acceleration data of the electronic device at a certain frequency. For example, the acceleration of the electronic device in various directions (generally, XYZ three-axis directions) can be collected.
Of course, it should be understood that the above fig. 3 is only an exemplary illustration of the electronic device in the form of a mobile phone. If the electronic device is in the form of a tablet computer, a handheld computer, a PC, a PDA, a wearable device (e.g., a smart watch, a smart bracelet), or other devices, the structure of the electronic device may include fewer structures than those shown in fig. 3, or may include more structures than those shown in fig. 3, which is not limited herein.
It will be appreciated that, in general, the implementation of electronic device functions requires the cooperation of software in addition to hardware support.
For example, in some examples of the present application, as shown in fig. 4, the automatic switching of the virtual card of the electronic device is implemented, at least with support of a processor, hardware such as a sensing hub (sensorhib), a short-range chip, and a baseband processor (also referred to as a baseband chip), and with cooperation of software such as an NFC package application (e.g., a smart card application) and an application in a system service (e.g., a GPS application, a Wi-Fi application). The software and hardware may be connected by a hardware connection layer.
Based on fig. 4, taking an application in the system service as a GPS application and a geo-fence established by the electronic device as a GPS fence as an example, the process of the electronic device implementing automatic virtual card switching may include: when a user completes a transaction by using a virtual card at a certain card swiping point for the first time, the short-distance chip acquires GPS positioning information. The short-distance chip sends the GPS positioning information to the intelligent flash card application through the sensorhub, the hardware connection layer and the GPS application. And the intelligent flash card application establishes a GPS fence and sends the established GPS fence to the GPS application. And the GPS application carries out fence storage and fence management on the fence established by the intelligent flash card application. The GPS application sends the established GPS fence to sensorhub via the hardware connection layer. Then, the sensorhub can periodically acquire the GPS positioning information of the electronic device from the short-range chip. sensorhub may include fence algorithms such as GPS fence algorithm, cell fence algorithm, and Wi-Fi fence algorithm. The sensorhub obtains the GPS position information from the short-distance chip, whether a user enters a GPS fence is determined by using a built-in fence algorithm such as the GPS fence algorithm, and a main processor of the electronic equipment does not need to be awakened when the sensorhub works, so that the low-power-consumption fence capability is realized. When the sensorhub determines that the user enters the GPS fence, the sensorhub sends the GPS fence which the user enters to the intelligent flash card application through the hardware connection layer and the GPS application, and therefore the intelligent flash card activates the virtual card corresponding to the GPS fence according to the GPS fence which the user enters.
The above example is described by taking the example that the processor of the electronic device includes sensorhub, and the short-range chip is a chip, that is, the short-range chip may be used to obtain GPS positioning information or may be used to obtain Wi-Fi scanning information. In another embodiment, the processor of the electronic device may not include the sensorhub, the short-distance chip may include two chips, that is, a GPS chip and a Wi-Fi chip, the GPS chip is used to obtain GPS positioning information, the Wi-Fi chip is used to obtain Wi-Fi scanning information, then as shown in fig. 5, continuing to take an application in the system service as a GPS application and a fence established by the electronic device as a GPS fence as an example, the process of the electronic device implementing the automatic virtual card switching may include: when a user completes a transaction by using a virtual card at a certain card swiping point for the first time, the GPS chip acquires GPS positioning information. The GPS chip sends the GPS positioning information to the intelligent flash card application through the hardware connection layer and the GPS application. And the intelligent flash card application establishes a GPS fence and sends the established GPS fence to the GPS application. And the GPS application performs fence storage and fence management on the fence established by the intelligent flash card application. And the GPS application sends the established GPS fence to the GPS chip. Then, the GPS chip can periodically acquire GPS positioning information and determine whether the user enters a GPS fence by using a GPS fence algorithm included in the GPS positioning information. When the user is determined to enter the GPS fence, the GPS chip sends the GPS fence entered by the user to the smart flash card application through the GPS application, the GPS chip can work independently without waking up a main processor of the electronic equipment, and therefore the fence capability with low power consumption is achieved. And the intelligent flash card activates the virtual card corresponding to the GPS fence according to the GPS fence entered by the user.
The following describes in detail a method for switching virtual cards according to an embodiment of the present application with reference to fig. 4. In an embodiment of the present application, the method may include: a fence establishing process and a virtual card switching process.
As shown in fig. 6, the "fence establishment" flow may include the following S601-S605.
S601, the smart flash card application of the electronic equipment acquires a first virtual card.
When a user needs to use a virtual card on an electronic device, the user can open the virtual card on the electronic device, such as a smart flash card application of the electronic device. For example, a user may click on an instant open option in a smart card application of an electronic device. In response to a click operation by the user, the electronic device displays a virtual card option that can be enabled, such as a public transportation card option. The user may then select the public transportation card and select the corresponding open region. And responding to the selection operation of the user, and the electronic equipment successfully opens the public transportation card.
After the electronic device opens the virtual card, the electronic device, such as a smart flash card application of the electronic device, may obtain a first virtual card, which may be a virtual card opened by the electronic device.
Electronic equipment with NFC function can include a plurality of virtual cards, like the virtual card that corresponds such as district entrance guard's card, public transport card, intelligent lock card and case and bag, car key and ID card to satisfy the different demand of punching the card.
For a virtual card in an electronic device, the electronic device can establish a corresponding geofence when a user uses any of the virtual cards to conduct a transaction. One virtual card may establish one geofence or multiple geofences. For example, when the user swipes the card at bus stop a using the public transportation card, the electronic device may establish the geofence corresponding to the public transportation card at bus stop a. When the user uses the public transport card to swipe the card at the bus station B, the electronic device can establish the geo-fence corresponding to the public transport card at the bus station B.
In the above virtual cards, the card swiping points of some virtual cards are fixed, and such virtual cards are referred to as first virtual cards of a predetermined type in this embodiment, such as a community access control card, a public transportation card, an intelligent door lock card, and the like, and the corresponding card swiping points are generally fixed. The card swiping points of some virtual cards are not fixed, for example, the card swiping points of the virtual cards such as car keys, boxes, identity cards and the like may change with different use places.
In some embodiments, since the geofence needs to be established at a fixed location, for a virtual card with a fixed point of swipe, i.e., a first virtual card of a predetermined type, a corresponding geofence may be established. For a virtual card with an unfixed card swiping point, the electronic device cannot establish a geo-fence corresponding to the virtual card because the card swiping point is unfixed. Therefore, before the electronic device establishes the geo-fence corresponding to the virtual card, the electronic device, such as a smart flash card application of the electronic device, may determine the virtual card with a fixed card swiping point, that is, the first virtual card of the predetermined type, according to whether the card swiping location of the virtual card is fixed, so that when the electronic device completes a transaction using the first virtual card of the predetermined type at a certain card swiping point for the first time, the geo-fence corresponding to the first virtual card of the predetermined type may be established.
In some examples, the electronic device may determine whether the virtual card is a first virtual card of a predetermined type according to the type of the virtual card. For example, for a cell where a card swiping point of a cell access control card is a cell, the card swiping point position is fixed and unchanged, so that when the type of the virtual card is a cell access control card, the electronic device may determine that the card swiping point of the virtual card is fixed, that is, the cell access control card is a first virtual card of a predetermined type.
The card swiping point of the virtual card corresponding to the identity card may be a bank, a company, or a home, that is, the card swiping point position of the virtual card corresponding to the identity card is not fixed, so that when the type of the virtual card is the virtual card corresponding to the identity card, the electronic device may determine that the virtual card is not the first virtual card of the predetermined type.
In some embodiments, after the electronic device determines the predetermined type of first virtual card, the electronic device, such as a smartchip application in the electronic device, may store an identification (e.g., AID or ID) of the predetermined type of first virtual card in a corresponding list.
For example, as shown in fig. 4, the smart flash card application of the electronic device may determine a virtual card with a fixed card swiping point, that is, a first virtual card of a predetermined type, and store an identifier corresponding to the first virtual card of the predetermined type in the smart flash card list. Thereafter, an electronic device, such as a smart flash card application of the electronic device, can determine whether to subsequently establish a geofence corresponding to the corresponding first virtual card based on the list. For example, when a user completes a transaction at a certain point of swipe using a first virtual card of a predetermined type in a list of smart flash cards for the first time, a smart flash application of the electronic device can establish a geofence corresponding to the first virtual card. The smart flash card application of the electronic device may not establish a geofence when the user completes a transaction using a virtual card in the list of non-smart flash cards.
The process of establishing the geo-fence by the smart flash card application of the electronic device may include the following S602-S605, among others.
S602, when a smart flash card of the electronic equipment is applied to a certain card swiping point and data interaction is completed by adopting a certain first virtual card and an NFC card reader for the first time, the current geographic position information and the geographic position precision of the electronic equipment are obtained.
When a user completes a transaction at a certain card swiping point for the first time by using the first virtual card (such as the first virtual card of the predetermined type), that is, data interaction is completed by using the first virtual card and an NFC card reader corresponding to the certain card swiping point, a smart flash card application of an electronic device, such as an electronic device, may establish a geo-fence corresponding to the first virtual card.
The geofence corresponding to the first virtual card may be at least one of a GNSS geofence, a Cell geofence, or a Wi-Fi geofence. The GNSS geofences may include a GPS geofence, a GLONASS geofence, a beidou geofence, a QZSS geofence, or an SBAS geofence, among others. The specific type of GNSS geofence is not limited in this application.
For convenience of understanding, in the following embodiments of the present application, a GNSS geofence is taken as a GPS geofence (hereinafter, referred to as a GPS fence for short) for example, that is, the geofence corresponding to the first virtual card is the GPS fence. Accordingly, the electronic device may acquire the current geographic location information of the electronic device, which may be the current GPS location information of the electronic device in the embodiment of the present application. The electronic device may acquire the current accuracy of the geographic position of the electronic device by acquiring the current GPS accuracy of the electronic device, which may be the first GNSS accuracy in the embodiment of the present application.
When the electronic equipment completes data interaction by adopting the first virtual card and the NFC card reader corresponding to a certain card swiping point, the electronic equipment, such as a smart flash card application of the electronic equipment, can acquire the current GPS position information and the GPS precision of the electronic equipment, so that a GPS fence corresponding to the first virtual card can be established according to the current GPS position information and the GPS precision of the electronic equipment.
The smart card application of the electronic device, such as the electronic device, may determine whether a transaction is completed at a point of swipe with a first virtual card by determining whether a user manually selects the first virtual card from a plurality of first virtual cards to complete the transaction at the point of swipe.
It is understood that the electronic device may include a plurality of first virtual cards, and when the user swipes the card for the first time at a certain swiping point, the user may manually select a first virtual card to be used from the plurality of first virtual cards, so that the electronic device may complete a transaction using the first virtual card selected by the user. That is, when a user manually selects a first virtual card from the plurality of first virtual cards to use to complete a transaction, a smart card application of an electronic device, such as an electronic device, may determine that the first virtual card is used to complete the transaction at the point of swiping. For example, as shown in (c) in fig. 2, the first virtual card in the mobile phone includes a smart door lock card, a cell access card, and a public transportation card. When a user takes a bus at a certain bus station for the first time, the user can manually select the public transportation card to finish the transaction from the community access control card, the public transportation card and the intelligent door lock card, namely, the mobile phone can determine that the user adopts the public transportation card to finish the transaction at the bus station for the first time.
When a user uses the electronic device to complete a transaction by adopting a first virtual card at a certain card swiping point for the first time, namely the first virtual card and the NFC card reader complete data interaction, the electronic device, such as a smart flash card application in the electronic device, may acquire current GPS location information, such as longitude and latitude coordinates, and GPS accuracy (accuracy, acc), of the electronic device. When the user holds the electronic device to move, the GPS position information of the electronic device is the GPS position information of the user.
GPS accuracy, defined as radius with 68% confidence. That is to say, the confidence coefficient is a real position of the electronic device when the card is swiped, and is located in a circular area which takes the current longitude and latitude coordinates of the electronic device acquired by the electronic device as a center and takes x times of the GPS precision as a radius, wherein x is a real number greater than zero. The probability satisfies the following formula one.
The formula I is as follows:
Figure BDA0003207551810000141
the error function erf is a gaussian error function, erf (x) is a confidence coefficient, x is a multiple of the precision of the GPS, t is an integral variable, and the error function erf can be regarded as any real number between 0 and x and used for calculating an integral result and does not have any practical meaning.
When x =1, erf (1) =0.68, that is, a circular area with the latitude and longitude coordinates acquired by the electronic device as a center and the GPS accuracy as a radius, the probability that the real position of the electronic device when swiping a card is located in the circular area is 68%.
For example, in connection with the example of fig. 4, at a certain point of card swiping, the smart flash application determines that the user manually selects a first virtual card from the plurality of first virtual cards to complete the transaction, and the smart flash application may obtain GPS location information and GPS accuracy from the short-range chip through an application in the system service (e.g., a GPS application), a hardware connection layer, and a sensorhub. Specifically, the above S602 may include the following S6021 to S6028.
S6021, the smart flash card application determines that data interaction is completed with the NFC card reader by adopting a first virtual card at a certain card swiping point for the first time.
S6022, the intelligent flash card application sends an acquisition notice to the GPS application.
The acquisition notification is used for instructing the GPS application to acquire the current GPS position information and the GPS accuracy of the electronic equipment.
S6023, the GPS application sends an acquisition notification to the sensing hub.
After receiving the acquisition notification, the GPS application may send the acquisition notification to the sensorhub through the hardware connection layer.
And S6024, the sensing hub sends an acquisition notice to the short-distance chip.
After receiving the acquisition notification, the sensorhub may send the acquisition notification to the short-range chip.
And S6025, the short-distance chip sends the current GPS position information and the GPS precision of the electronic equipment to the sensing hub.
After receiving the acquisition notification, the short-range chip may send the current GPS location information and GPS accuracy of the electronic device to the sensorhub.
S6026, the sensing hub sends the current GPS position information and the GPS precision of the electronic equipment to the GPS application.
After the sensorhub receives the current GPS location information and the GPS accuracy of the electronic device, the sensorhub may send the current GPS location information and the GPS accuracy of the electronic device to the GPS application through the hardware connection layer.
S6027, the GPS application sends the current GPS position information and the GPS precision of the electronic equipment to the smart card application.
S6028, the smart flash card application receives the current GPS position information and the GPS precision of the electronic equipment.
S603, the intelligent flash card application of the electronic equipment establishes a first geographic fence corresponding to the first virtual card according to the current geographic position information and the geographic position precision of the electronic equipment.
As described in the foregoing embodiment, the first geo-fence corresponding to the first virtual card may be a GNSS geo-fence, a Cell geo-fence, a Wi-Fi geo-fence, or another type of geo-fence, which is not limited in this application embodiment. The GNSS geofence may be a GPS geofence, a GLONASS geofence, a beidou geofence, a QZSS geofence, or an SBAS geofence, among others. The specific type of GNSS geofence is not limited in this application.
For ease of understanding, the first geo-fence corresponding to the first virtual card is schematically illustrated as a GPS fence (i.e., a first GPS fence) in this application. Accordingly, when the geo-fence is a GPS fence, the geo-location information may be GPS location information, and the geo-location accuracy may be GPS accuracy.
The first GPS fence corresponding to the first virtual card may be a circular area with a preset length as a radius and the acquired GPS location information as a center. For example, as shown in fig. 4, after the smart flash card application of the electronic device, such as the electronic device, acquires the GPS location information and the GPS accuracy, the smart flash card application may establish a first GPS fence with the GPS location information as a center and a corresponding length as a radius, where the first GPS fence corresponds to the first virtual card.
It can be appreciated that when the radius of the GPS fence is too large, there are areas of overlap for the different GPS fences. When the user holds the electronic device and enters the overlapping area, the electronic device cannot determine which virtual card corresponding to the GPS fence is activated. When the radius of the GPS fence is too small, the real location of the user when swiping the card may be outside the GPS fence, resulting in the electronic device not being able to automatically select and activate the correct virtual card before the user swipes the card.
Therefore, in this embodiment of the present application, an electronic device, such as a smart flash card application of the electronic device, may dynamically determine, according to the GPS location information and the GPS precision, a size of the established GPS fence corresponding to the first virtual card (that is, dynamically determine a radius of the GPS fence corresponding to the first virtual card), so that no overlapping area exists between the established GPS fence corresponding to the first virtual card and other GPS fences. Specifically, as shown in fig. 7, the above S603 may include the following S701 to S710.
S701, the intelligent flash card application of the electronic equipment establishes an initial geo-fence corresponding to the first virtual card according to the current geographical location information and the preset length of the electronic equipment.
As described in the foregoing embodiment, the initial geo-fence corresponding to the first virtual card may be a GNSS geo-fence, a Cell geo-fence, a Wi-Fi geo-fence, or another type of geo-fence, which is not limited in this embodiment. The GNSS geofence may be a GPS geofence, a GLONASS geofence, a beidou geofence, a QZSS geofence, or an SBAS geofence, among others. The specific type of GNSS geofence is not limited in this application.
For ease of understanding, in the following embodiments of the present application, an example in which the initial geo-fence corresponding to the first virtual card is a GPS fence (for example, referred to as an initial GPS fence) is schematically illustrated.
The larger the radius of the GPS fence established by the electronic equipment is, the higher the probability that the real position of the user is located in the range of the GPS fence when the user uses the first virtual card for transaction is, so that the situation that the real position of the electronic equipment is located outside the range of the established GPS fence when the electronic equipment uses the first virtual card for transaction due to accidental GPS positioning drift can be avoided, and the electronic equipment can be ensured to automatically activate the corresponding virtual card before the user swipes the card.
Therefore, when the electronic device, such as a smart flash card of the electronic device, is applied to establish the GPS fence corresponding to the first virtual card, the initial GPS fence corresponding to the first virtual card may be established with a larger radius.
The radius of the initial GPS fence corresponding to the first virtual card may be a preset length. The size of the preset length may be set according to actual conditions, and the embodiment of the present application does not limit this. For example, the preset length may be 2 kilometers. Namely, the initial GPS fence corresponding to the first virtual card is a circular area centered on the current GPS location information acquired by the electronic device and having a radius of 2 kilometers.
S702, the smart flash card application of the electronic device determines whether the initial geo-fence and the second geo-fence have an overlapping area.
After the electronic device establishes an initial geofence, such as an initial GPS fence, corresponding to the first virtual card, a smartchip application of the electronic device, such as an electronic device, can determine whether there is an overlapping area between the initial GPS fence and the established and stored geofence of the electronic device.
The established and stored geofence (e.g., referred to as a second geofence) in the electronic device may be a GNSS geofence, a Cell geofence, a Wi-Fi geofence, or other types of geofences, which is not limited in this embodiment of the present application. The GNSS geofence may be a GPS geofence, a GLONASS geofence, a beidou geofence, a QZSS geofence, or an SBAS geofence, among others. The specific type of GNSS geofence is not limited in this application.
For convenience of understanding, in the following embodiments of the present application, an established and stored geo-fence in an electronic device is schematically illustrated as a GNSS fence, which may be a second GNSS fence in the embodiments of the present application, and a fence in the second GNSS fence that has an overlapping area with the initial GNSS fence may be a third GNSS fence in the embodiments of the present application. The number of the third GNSS fences may be one or more. For ease of understanding, in the following embodiments of the present application, the geofence that has been established and stored in the electronic device is exemplified as a GPS fence (e.g., referred to as a second GPS fence), and the corresponding second GPS fence that has an overlapping area with the initial GPS fence may be referred to as a GPS fence (e.g., referred to as a third GPS fence).
The second GPS fence may be a circular area with a corresponding length as a radius, centered on GPS location information acquired by the electronic device when the electronic device completes a transaction at a card swiping point corresponding to the second GPS fence. The corresponding length may be the preset length, for example, 2 kilometers, or may be another length, for example, a length dynamically determined according to the acquired GPS position information, GPS accuracy, and GPS position information and GPS accuracy of other GPS fences.
An electronic device, such as a smart flash card application of the electronic device, may determine whether there is an overlapping area between an initial GPS fence and a second GPS fence according to a center of the initial GPS fence (i.e., GPS location information used by the electronic device when establishing the initial GPS fence, i.e., current GPS location information acquired by the electronic device), a radius of the initial GPS fence (i.e., the aforementioned preset length), a center of the second GPS fence (i.e., GPS location information used by the electronic device when establishing the second GPS fence), and a radius of the second GPS fence.
In some embodiments, an electronic device, such as a smartchip application of the electronic device, can determine whether a distance between a center of an initial GPS fence and a center of a second GPS fence is greater than a sum of a radius of the initial GPS fence and a radius of the second GPS fence, thereby determining that a non-overlapping region exists between the initial GPS fence and the second GPS fence. In the event that the electronic device determines that the distance between the center of the initial GPS fence and the center of the second GPS fence is less than or equal to the sum of the radius of the initial GPS fence and the radius of the second GPS fence, the smartcards application of the electronic device can determine that there is an overlap region between the initial GPS fence and the second GPS fence. In the event that the electronic device determines that the distance between the center of the initial GPS fence and the center of the second GPS fence is greater than the sum of the radius of the initial GPS fence and the radius of the second GPS fence, the smartchip application of the electronic device determines that a non-overlap region exists between the initial GPS fence and the second GPS fence.
For example, take the initial GPS fence as 2 kilometers in radius and the second GPS fence as 2 kilometers in radius. A smartchip application of the electronic device can determine a distance between a center of the initial GPS fence and a center of the second GPS fence. If the smart flash card application of the electronic device determines that the distance between the center of the initial GPS fence and the center of the second GPS fence is 5 kilometers and 5 kilometers is greater than 4 kilometers, that is, the distance between the center of the initial GPS fence and the center of the second GPS fence is greater than the sum of the radius of the initial GPS fence and the radius of the second GPS fence, the smart flash card application of the electronic device may determine that there is no overlapping area between the initial GPS fence and the second GPS fence. For another example, when the smart flash card application of the electronic device determines that the distance between the center of the initial GPS fence and the center of the second GPS fence is 3 kilometers, the 3 kilometers are less than 4 kilometers, that is, the distance between the center of the initial GPS fence and the center of the second GPS fence is less than the sum of the radius of the initial GPS fence and the radius of the second GPS fence, the smart flash card application of the electronic device may determine that an overlap area exists between the initial GPS fence and the second GPS fence.
In some embodiments, a plurality of second GPS fences can be included in an electronic device, and an electronic device, such as a smartchip application of the electronic device, can determine whether an initial GPS fence has an overlap region with each of the second GPS fences in the manner described above.
In a case where the electronic device determines that there is no overlapping area between the initial GPS fence and the plurality of second GPS fences, the electronic device may perform S703 described below.
Under the condition that the electronic device determines that the initial GPS fence and one or more of the plurality of second GPS fences have an overlapping region, the electronic device may dynamically determine the radius of the first GPS fence corresponding to the first virtual card according to the GPS accuracy corresponding to the initial GPS fence (i.e., the current GPS accuracy obtained by the electronic device) and the GPS accuracy corresponding to the second GPS fence (i.e., the GPS accuracy obtained by the electronic device when the second GPS fence is established), so that there is no overlapping region between the first GPS fence corresponding to the established first virtual card and the second GPS fence. For ease of description, a second GPS fence of the plurality of second GPS fences that has an overlapping region with the initial GPS fence is referred to herein as a third GPS fence. The number of the third GPS fences may be one or more. Specifically, the electronic device may perform the following S704-S710.
S703, the intelligent flash card application of the electronic device takes the initial geo-fence as a first geo-fence.
In the embodiment of the present application, an initial geo-fence corresponding to a first virtual card is taken as a GPS fence for example to schematically illustrate. It can be appreciated that when the initial geo-fence is a GPS-fence, the first geo-fence is a GPS-fence, i.e., a first GPS-fence.
In the case that the electronic device determines that there is no overlapping area between the initial GPS fence and the second GPS fence, the electronic device, such as a smart flash card application of the electronic device, may use the initial GPS fence as a first GPS fence corresponding to the first virtual card, that is, the electronic device uses the preset length as a radius of the first GPS fence. That is to say, the first GPS fence is a circular area with a preset length (for example, 2 kilometers) as a radius, and is centered on the current GPS location information of the electronic device acquired by the electronic device.
For example, referring to fig. 8 (a), the initial geo-fence is the initial GPS fence 01, and the radius of the initial GPS fence 01 is 2 kilometers. Under the condition that the electronic device determines that the initial GPS fence 01 and the established second GPS fence in the electronic device do not have an overlapping area, the electronic device may establish a first GPS fence corresponding to the first virtual card with 2 kilometers as a radius and current GPS location information of the electronic device as a center.
S704, the smart flash card application of the electronic device determines whether a third geo-fence with an overlapping area with the initial geo-fence is one.
The third geo-fence can be one or more of the second geo-fences that have been established and stored in the electronic device. The third geo-fence may be a GNSS geo-fence, a Cell geo-fence, a Wi-Fi geo-fence, or another type of geo-fence, which is not limited in this embodiment of the present application. The GNSS geofence may be a GPS geofence, a GLONASS geofence, a beidou geofence, a QZSS geofence, or an SBAS geofence, among others. The specific type of GNSS geofence is not limited in this application.
For convenience of understanding, in the embodiment of the present application, an example that the initial geo-fence corresponding to the first virtual card is a GPS fence and the third geo-fence is a GPS fence (that is, the third GPS fence) is taken as an example for schematic illustration.
Since there may be one or more second GPS fences in the electronic device. Thus, there may be one or more second GPS fences (i.e., third GPS fences) determined by an electronic device, such as a smart flash card application of the electronic device, to have an overlapping region with the initial GPS fence.
In the event that the electronic device determines that the third GPS fence is one, the electronic device can perform S705-S707 described below. In the event that the electronic device determines that there are a plurality of third GPS fences, the electronic device can perform the following S708-S710.
S705, the smart flash card application of the electronic device obtains the center of the third geo-fence and the corresponding geo-location accuracy.
In the embodiment of the present application, the third geo-fence is exemplified as a GPS fence (i.e., a third GPS fence). Accordingly, the center of the third geo-fence can be the GPS location information used in establishing the third geo-fence, the GPS location information used in establishing the third geo-fence can be the second GNSS location information (e.g., the second GPS location information) of the application, the geo-location accuracy of the third geo-fence can be the GPS accuracy, and the GPS accuracy used in establishing the third geo-fence can be the second GNSS accuracy (e.g., the second GPS accuracy) of the application.
An electronic device, such as a smart flash card application of the electronic device, can retrieve the center of the third GPS fence and the corresponding GPS accuracy from the memory of the electronic device.
The GPS accuracy corresponding to the third GPS fence may be the GPS accuracy obtained by the electronic device when the electronic device establishes the third GPS fence. The GPS accuracy corresponding to the third GPS fence may also be the GPS accuracy obtained by the electronic device when performing a transaction using the virtual card corresponding to the third GPS fence, or the updated GPS accuracy.
S706, the smart flash card application of the electronic device determines the radius of the initial geo-fence after the deferral according to the center of the initial geo-fence, the accuracy of the geographic position corresponding to the initial geo-fence, the center of the third geo-fence and the accuracy of the geographic position corresponding to the third geo-fence.
In the embodiment of the present application, an example that the initial geo-fence corresponding to the first virtual card is a GPS fence and the third geo-fence is a GPS fence is taken as an example for illustration. Accordingly, the center of the initial geofence can be the current GPS location accuracy obtained by the electronic device, the center of the third geofence can be the GPS location information used in establishing the third geofence, and the accuracy of the third geofence can be GPS accuracy.
When there is an overlapping area between the initial GPS fence and the third GPS fence, in order to make two GPS fences have no overlapping area, the two GPS fences need to be mutually conceded, that is, the radii of the two GPS fences are correspondingly reduced.
When the GPS precision is higher, the electronic equipment can establish a smaller GPS fence, so that the actual position of the user when the user uses the first virtual card to carry out transaction is ensured to be within the established GPS fence. When the GPS accuracy is low, the electronic device needs to establish a large GPS fence to enable the actual position of the user when the user uses the first virtual card to perform a transaction to be within the established GPS fence. Therefore, the radius of the GPS fence with higher GPS accuracy can be reduced more, and the radius of the GPS fence with lower GPS accuracy can be reduced more.
Specifically, the electronic device may calculate the radius of the initial GPS fence after the deferral and the radius of the third GPS fence after the deferral as follows.
First, to avoid an overlap region between the initial GPS fence and the third GPS fence, the distance between the centers of the two GPS fences should be greater than the sum of the radius of the initial GPS fence after the deferral (the radius of the initial GPS fence after the deferral may be the first radius in this embodiment) and the radius of the third GPS fence after the deferral (the radius of the third GPS fence after the deferral may be the second radius in this embodiment). For example, the yielded radius of the initial GPS fence and the yielded radius of the third GPS fence can satisfy the following equation two.
The second formula is as follows: l = l x +l y +d;
Wherein l is a distance between a center of the initial GPS fence and a center of the third GPS fence, l x Radius of the initial GPS fence after abdication,/ y And d is the buffer width between the initial GPS fence and the third GPS fence boundary.
The size of the buffer width d can be set according to practical situations, and the size of the buffer width d does not change with the size of the distance between the center of the initial GPS fence and the center of the second GPS fence. For example, the buffer width d may be 20 meters.
Meanwhile, for the GPS fence established by the radius of the initial GPS fence after the evacuation and the GPS fence established by the radius of the third GPS fence after the evacuation, when the user uses the first virtual card corresponding to the initial GPS fence to perform the transaction, the probability that the real position of the user is located in the GPS fence established by the radius of the initial GPS fence after the evacuation is equal to the probability that the real position of the user is located in the GPS fence established by the radius of the third GPS fence after the user uses the virtual card corresponding to the third GPS fence to perform the transaction. For example, the probability that the user's true location is within a GPS fence established at the initial GPS fence defered radius, and the probability that the user's true location is within a GPS fence established at the third GPS fence defered radius may satisfy equation three below.
The formula III is as follows:
Figure BDA0003207551810000191
wherein the content of the first and second substances,
Figure BDA0003207551810000192
for the probability that the user's true location is within the GPS fence established at the radius after the initial GPS fence back-off,
Figure BDA0003207551810000193
probability of the user's true location being in a GPS fence established at the refunded radius of the third GPS fence, l x Radius after initial GPS fence yield,/ y Radius of the third GPS fence after concessional, c x GPS accuracy for initial GPS fence correspondence, c y And the GPS precision corresponding to the third GPS fence.
Combining the formula II and the formula III, the radius l of the initial GPS fence after the evacuation can be calculated x And meanwhile, the radius l of the third GPS fence after concessional can be calculated y . For example, radius l after initial GPS fence yield x The radius l of the third GPS fence after concession can satisfy the following formula IV y The following formula five can be satisfied.
The formula four is as follows:
Figure BDA0003207551810000194
wherein l x Radius of initial GPS fence retired, c x GPS accuracy for initial GPS fence correspondence, c y And the distance between the center of the initial GPS fence and the center of the third GPS fence is l, and the buffer width between the boundaries of the initial GPS fence and the third GPS fence is d.
The formula is five:
Figure BDA0003207551810000195
wherein l x Radius of initial GPS fence retired, c x GPS accuracy for initial GPS fence correspondence, c y And d is the buffer width between the boundary of the initial GPS fence and the third GPS fence.
For example, referring to (b) in fig. 8, taking the initial geo-fence as the initial GPS fence, the radius of the initial GPS fence 01 is 2 kilometers, and a third GPS fence in an overlapping area with the initial GPS fence 01 as an example, i.e., the third GPS fence 02 is one. The intelligent flash card application of the electronic device determines that the radius of the initial GPS fence 01 after being evacuated is 600 meters and the radius of the third GPS fence 02 is 200 meters according to the center of the initial GPS fence 01, the GPS precision corresponding to the initial GPS fence 01, the center of the third GPS fence 02 and the precision corresponding to the third GPS fence 02.
In some embodiments, the first radius may be less than l obtained by equation four x The second radius may be smaller than l obtained by the fifth equation y
S707, the smart flash card application of the electronic device establishes a first geo-fence corresponding to the first virtual card according to the center of the initial geo-fence and the radius of the initial geo-fence after the initial geo-fence is yielded.
In the embodiment of the present application, an initial geo-fence is taken as a GPS fence for example to perform a schematic description. Accordingly, the first geo-fence can be a GPS fence (i.e., a first GPS fence).
The first GPS fence corresponding to the first virtual card may be a circular area with a center of the initial geo-fence (i.e., the current GPS location information of the electronic device) as the center and a radius after the initial GPS fence is yielded as the radius.
In some examples, at the electronic device, a smart flash card application of the electronic device can determine a third GPS fence yielded radius, such as the third GPS fence yielded radius determined according to equation five above. After determining the radius of the third GPS fence after the deferral, the electronic device may update the third GPS fence according to the radius of the third GPS fence after the deferral. Namely, the third GPS fence is updated to a circular area with the center of the third GPS fence as the center and the radius of the third GPS fence after being retired as the radius.
S708, the smart flash card application of the electronic device acquires the center of each third geo-fence and the corresponding geo-location accuracy.
In the embodiment of the present application, the third geo-fence is exemplified as a GPS fence (i.e., a third GPS fence). Accordingly, the center of the third geofence can be GPS location information used in establishing the third geofence, and the accuracy of the third geofence can be GPS accuracy.
An electronic device, such as a smartchip application of the electronic device, can obtain from a memory of the electronic device a center of each third GPS fence having an overlapping area with the initial GPS fence and a corresponding GPS-accurate third GPS fence as a plurality.
And S709, respectively determining a plurality of first radiuses corresponding to the initial geo-fence by the smart flash card application of the electronic device according to the center of the initial geo-fence, the geographical position accuracy corresponding to the initial geo-fence, the center of each third geo-fence and the corresponding geographical position accuracy.
In the embodiment of the present application, an example in which the initial geo-fence is a GPS fence and the third geo-fence is a GPS fence is taken as an example for illustration. Accordingly, the center of the initial geo-fence may be a current GPS location accuracy obtained by the electronic device, the geo-location accuracy corresponding to the initial geo-fence may be a GPS accuracy, the center of the third geo-fence may be GPS location information used when the third geo-fence is established, and the geo-location accuracy corresponding to the third geo-fence may be a GPS accuracy.
When the initial GPS fence and the plurality of third GPS fences have an overlapping area, in order to make the initial GPS fence and each third GPS fence have no overlapping area, the initial GPS fence and each third GPS fence need to be yielded, that is, the radii of the initial GPS fence and each third GPS fence are reduced correspondingly.
For the initial GPS fence and each of the plurality of third GPS fences, the electronic device, such as the smart flash card application of the electronic device, may determine the radius after the initial GPS fence is yielded, i.e., the first radius, according to the center of the initial GPS fence, the GPS accuracy corresponding to the initial GPS fence, the center of the third GPS fence, and the GPS accuracy corresponding to the third GPS fence. For a specific implementation manner, reference may be made to the implementation manner in S706, and details of the embodiment of the present application are not described herein again.
S710, the smart flash card application of the electronic device determines the radius of the initial geo-fence after the deferral according to the plurality of first radii.
In the embodiment of the present application, the initial geo-fence is a GPS fence (i.e., initial GPS fence) for example. Accordingly, the first geo-fence is a GPS fence (i.e., a first GPS fence).
After determining the plurality of first radii, an electronic device, such as a smart flash card application of the electronic device, can determine a radius of the initial GPS fence based on the plurality of first radii.
In some examples, an electronic device, such as a smartchip application of the electronic device, may use a smallest first radius of the plurality of initial GPS fence yielded radii as the initial GPS fence yielded radius.
For example, there are two third GPS fences, namely the third GPS fence 01 and the third GPS fence 02, which overlap with the initial GPS fence, and the electronic device determines that the radius (i.e., the first radius) of the initial GPS fence after the initial GPS fence is retired is 600 meters according to the center of the initial GPS fence, the radius of the initial GPS fence, the center of the third GPS fence 01, and the GPS accuracy corresponding to the third GPS fence 01. The electronic device determines that the radius of the initial GPS fence after the initial GPS fence is retired (i.e. the first radius) is 400 meters according to the center of the initial GPS fence, the radius of the initial GPS fence, the center of the third GPS fence 02 and the GPS accuracy corresponding to the third GPS fence 02. Then an electronic device, such as a smart flash card application of the electronic device, would have 400 meters as the radius after the initial GPS fence was backed off.
For example, referring to fig. 9 (a), the initial geo-fence is the initial GPS fence 01, and the radius of the initial GPS fence 01 is 2 kilometers. Under the condition that the electronic device determines that the initial GPS fence 01 and the established second GPS fence in the electronic device do not have an overlapping area, the electronic device may establish a first GPS fence corresponding to the first virtual card with 2 kilometers as a radius and current GPS location information of the electronic device as a center. As another example, as shown in (b) of fig. 9, the initial geo-fence is a GPS fence, and the third geo-fence is a GPS fence. When there are two third GPS fences overlapping with the initial GPS fence 01, that is, the third GPS fence 02 and the third GPS fence 03, the radius of the initial GPS fence 01 after being given back is 600 through calculation by the electronic device, the radius of the third GPS fence 02 after being given back is 200 meters, and the radius of the third GPS fence 03 after being given back is 200 meters, that is, there is no overlapping area between the initial GPS fence 01 after being given back and the third GPS fence 02 after being given back and the second GPS fence 03 after being given back.
After determining the radius of the first GPS fence, the electronic device, such as a smart flash card application of the electronic device, may establish the first GPS fence corresponding to the first virtual card according to the current GPS location information of the electronic device and the radius of the first GPS fence, that is, the electronic device may perform S707 described above.
In some examples, for the initial GPS fence and each of the plurality of third GPS fences, an electronic device, such as a smartchip application of the electronic device, after determining the radius after the initial GPS fence retires based on the center of the initial GPS fence, the GPS accuracy corresponding to the initial GPS fence, the center of the third GPS fence, and the accuracy corresponding to the third GPS fence, the electronic device, such as a smartchip application of the electronic device, may determine the radius after the third GPS fence retires based on a distance between the center of the initial GPS fence and the center of the third GPS fence, the radius after the initial GPS fence retires, and the buffer width. For example, taking the buffer width as 20 meters and the distance between the center of the initial GPS fence and the center of the second GPS fence as 1 kilometer, the electronic device determines that the radius of the initial GPS fence after yielding is 400 meters. The radius after the third GPS fence yields may be 1 km minus 400 m minus 20 m, i.e. the radius after the third GPS fence yields may be 580 m.
In some examples, to ensure that there is no overlapping area between the first GPS fence and the third GPS fence corresponding to the first virtual card, when the electronic device determines the radius of the third GPS fence after being retired, the electronic device, for example, a flash card application of the electronic device, may use a smaller radius of the determined radius of the third GPS fence after being retired and an original radius of the third GPS fence as the radius of the third GPS fence after being retired. For example, continuing with the example where the buffer width is 20 meters, the distance between the center of the initial GPS fence and the center of the third GPS fence is 1 kilometer, and the electronic device determines that the radius of the initial GPS fence after the back-off is 400 meters. The radius after the third GPS fence back-off may be 1 km minus 400 m minus 20 m, i.e. the radius after the third GPS fence back-off may be 580 m. If the original radius of the third GPS fence is 500 meters, the radius of the third GPS fence after the evacuation is still the original radius, that is, 500 meters. If the original radius of the third GPS fence is 600 meters, the radius of the third GPS fence after the evacuation may be 580 meters.
In some examples, after the electronic device determines the yielded radius of each third GPS fence, the electronic device can update the corresponding third GPS fence according to the yielded radius of each third GPS fence. Namely, the original third GPS fence is updated to a circular area with the center of the third GPS fence as the center and the radius of the third GPS fence after the third GPS fence is retired as the radius.
S604, the smart flash card application of the electronic device stores the first geo-fence, the current geo-location information of the electronic device and the geo-location accuracy.
In the embodiment of the present application, the first geo-fence is taken as a GPS fence for example to perform schematic description. Accordingly, the current geographic location information of the electronic device may be GPS location information, and the current geographic location accuracy may be GPS accuracy.
After the electronic device determines the first GPS fence, that is, determines the radius of the first GPS fence, the electronic device, such as a smartchip card application in the electronic device, may store the current GPS location information, the GPS accuracy, and the first virtual card of the electronic device in a memory of the electronic device corresponding to the first GPS fence. For example, a smartchip application of the electronic device can store a correspondence between an identification of the first virtual card and an identification of the first GPS fence in a memory of the electronic device. The identifier of the first virtual card may be an AID of the first virtual card, or may be an ID of the first virtual card. The identification of the first GPS fence can be an ID of the first GPS fence. The correspondence between the identification of the first virtual card and the identification of the first GPS fence stored in the memory of the electronic device is shown in table 2.
TABLE 2
Figure BDA0003207551810000221
As shown in table 2, taking the first virtual card as the cell access control card as an example, the cell access control card identified as ID1 corresponds to the GPS fence identified as ID2, the center of the GPS fence corresponding to the GPS fence identified as ID2 is the current GPS location information of the electronic device, and the GPS accuracy corresponding to the GPS fence identified as ID2 is the current GPS accuracy of the electronic device.
In some embodiments, in a case that there are many geofences corresponding to subsequently established virtual cards, the electronic device may delete some of the geofences according to actual situations, for example, a geofence that has not been used within a preset time length or a geofence whose lifetime reaches the validity period, and the electronic device may delete the geofence. The preset duration and the validity period can be set according to actual conditions. For example, the term of validity is used as an example of whether the lifetime is reached or not. An electronic device, such as a smart flash card application of the electronic device, can determine whether the life span of the established geofence reaches a corresponding expiration date. In the event that the life span of a geofence reaches a corresponding expiration date, a smart flash card application of an electronic device, such as an electronic device, can delete the geofence. For example, a smart flash application of an electronic device, such as an electronic device, can determine whether a GPS fence corresponding to a stored first virtual card has reached a corresponding validity period, and in the event that the GPS fence has reached the corresponding validity period, the smart flash application of the electronic device, such as an electronic device, can delete the GPS fence. For another example, when the electronic device, such as a smart card application of the electronic device, determines that there are many GPS fences corresponding to the first virtual card stored in the electronic device, the electronic device may delete some of the GPS fences according to an actual situation, and if the GPS fences are not used within a preset time period, the electronic device may delete the GPS fences.
It can be understood that, due to factors such as weather, indoor and outdoor conditions, and user movement, the current GPS accuracy obtained by the electronic device (i.e., the GPS accuracy used when the first geo-fence corresponding to the first virtual card is established) is not accurate enough, which results in low accuracy of the first geo-fence corresponding to the first virtual card established by the electronic device. In some examples, in order to avoid that the current GPS accuracy obtained by the electronic device is not accurate enough due to weather, indoor and outdoor conditions, user movement and other factors, after the electronic device stores the first GPS fence, the current GPS location information of the electronic device, and the GPS accuracy, when the electronic device uses the first virtual card to swipe a card within the range of the first GPS fence, the electronic device, such as a smart card application of the electronic device, may obtain the GPS accuracy when swiping the card, and update the current GPS accuracy stored by the electronic device with the GPS accuracy when swiping the card. For example, the updated GPS accuracy and the GPS accuracy at the time of card swiping and the current GPS accuracy stored by the electronic device satisfy the following formula six.
Formula six: sacc1= (a. Sacc) + ((1-a). Acc);
wherein, sacc1 is the updated GPS accuracy, sacc is the current GPS accuracy stored in the electronic device, a is a preset parameter, and acc is the GPS accuracy during card swiping. The parameter a may be 0.9.
In some embodiments, an electronic device, such as a smart flash card application of the electronic device, may determine whether a current GPS precision acquired by the electronic device (i.e., a GPS precision used when establishing a first geo-fence corresponding to a first virtual card) is less than a precision threshold, and in a case that the current GPS precision acquired by the electronic device is less than the precision threshold, when a subsequent (next time) electronic device uses the first virtual card to swipe a card at a card swipe point corresponding to the first GPS fence, the electronic device, such as a smart flash card application of the electronic device, may acquire the GPS precision when swiping the card, and update, by using the GPS precision when swiping the card, a current GPS precision stored by the electronic device, i.e., the GPS precision corresponding to the first GPS. The size of the precision threshold may be set according to actual conditions, which is not limited in the embodiment of the present application. For example, a smart flash card application of an electronic device, such as an electronic device, may obtain updated GPS accuracy according to equation six above.
In some embodiments, an electronic device, such as a smart flash card application of the electronic device, can periodically update the GPS accuracy corresponding to the first GPS fence stored by the electronic device. For example, the electronic device may obtain, every preset time (e.g., 1 week or 1 month), the GPS accuracy when the user swipes the card at the card swiping point corresponding to the first GPS fence, and update, according to the GPS accuracy, the current GPS accuracy corresponding to the first GPS fence stored in the electronic device. For example, a smart flash card application of an electronic device, such as an electronic device, may obtain an updated GPS accuracy according to equation six above.
In some embodiments, an electronic device, such as a smart flash card application of the electronic device, may further update the GPS accuracy corresponding to the first GPS fence (i.e., the GPS accuracy used in establishing the first geo-fence corresponding to the first virtual card) or the current GPS location information of the electronic device (i.e., the GPS location information used in establishing the first geo-fence corresponding to the first virtual card) stored in the electronic device after detecting that the trigger condition is reached. The trigger condition may include a change in a location of a swipe point corresponding to the first GPS fence. For example, the card swiping point corresponding to the first GPS fence is a bus stop, and the distance between the position a and the position B is smaller than the preset distance because the position of the bus stop is changed from the position a to the position B. When the electronic device detects that the card is swiped by using the public transport card at the position B, the electronic device can determine that the position of the card swiping point corresponding to the first GPS fence is changed from the position A to the position B, namely the electronic device can determine that the trigger condition is reached, the electronic device, such as a smart flash card application of the electronic device, can acquire the GPS position information and the GPS precision corresponding to the position B, and update the GPS position information and the GPS precision corresponding to the first GPS fence stored in the electronic device.
It can be understood that, after the electronic device updates the GPS accuracy or the GPS location information corresponding to the first GPS fence of the first virtual card, the electronic device, such as a smart flash card application of the electronic device, may reestablish the GPS fence corresponding to the first virtual card according to the updated GPS accuracy or GPS location information, and update the first GPS fence stored in the electronic device. The process of the electronic device reestablishing the GPS fence corresponding to the first virtual card may refer to the steps of S601-S604, and details of the embodiment of the present application are not repeated here.
S605, the smart flash card application of the electronic device sends a first geo-fence corresponding to the first virtual card to the sensing hub.
In the embodiment of the present application, the first geo-fence is taken as a GPS fence for example to perform schematic description.
For example, in connection with the example of fig. 4, after the smartchip application in the electronic device establishes a first GPS fence corresponding to the first virtual card, the smartchip application may store a correspondence between an identification of the first virtual card and an identification of the first GPS fence. The smart flash card application of the electronic device may also send the established GPS fence to the sensorhub of the electronic device.
Specifically, the above S605 may include the following S6051-S6053.
S6051, the smart flash card application sends a first geo-fence corresponding to the first virtual card to an application in system service.
In the embodiment of the present application, a first geo-fence is taken as a GPS fence, and an application in system service is taken as a GPS application as an example for schematic description.
The smart card application sends a first GPS fence (i.e. a circular area with corresponding GPS position information as a center and corresponding length as a radius) corresponding to the first virtual card and the identification of the GPS fence to the GPS application. The GPS application stores the already established GPS fence and the identification of the GPS fence.
S6052, the application in the system service sends the first geo-fence corresponding to the first virtual card to the sensing hub.
In the embodiment of the present application, a first geo-fence is taken as a GPS fence, and an application in system service is taken as a GPS application as an example for schematic description.
After the GPS application receives the GPS fence corresponding to the first virtual card sent by the smart card application, the GPS application may send the first GPS fence corresponding to the first virtual card (i.e., the GPS fence and the identification of the GPS fence have been established) to the sensorhub through the hardware connection layer.
S6053, the sensing hub receives the first geo-fence corresponding to the first virtual card.
In the embodiment of the present application, a first geo-fence is taken as a GPS fence for example to perform schematic description.
In some examples, an electronic device, such as a smart flash card application of the electronic device, may also delete the identification of the GPS fence that needs to be deleted by the sensorhub sent to the electronic device, and the sensorhub may delete the GPS fence corresponding to the received GPS fence identification, so that the sensorhub no longer monitors whether the user enters the GPS fence.
After the electronic equipment stores the GPS fence corresponding to the virtual card, the GPS position information of the electronic equipment can be periodically acquired, and the virtual card needing to be activated is determined according to the GPS position information of the electronic equipment and the corresponding relation between the stored virtual card and the GPS fence, namely, the correct virtual card is automatically selected and activated before the user swipes the card. In particular, this process may be referred to as a "virtual card switching" flow. As shown in fig. 10, the "virtual card switching" process may specifically include the following S1001 to S1005.
S1001, a sensing hub of the electronic equipment acquires current geographic position information of the electronic equipment.
The current geographic position information of the electronic device may be GNSS position information, or may be corresponding Cell information, or may also be corresponding Wi-Fi information, or may also be other types of position information, which is not limited in this embodiment of the present application. The GNSS location information may be GPS location information, GLONASS location information, beidou location information, QZSS location information, or SBAS location information, etc. The specific type of GNSS location information is not limited in this application.
For convenience of understanding, in the embodiment of the present application, a description is schematically given by taking the current geographic location information of the electronic device as GPS location information as an example.
An electronic device, such as a sensing hub (sensorhub) in the electronic device, may obtain current GPS location information of the electronic device in real time or periodically. The current GPS location information of the electronic device may be a current longitude and latitude coordinate of the electronic device.
For example, in connection with the example of fig. 4, sensorhub may obtain the user's GPS location information from the short-range chip in real-time or periodically. Specifically, S1001 may include S10011 to S10012.
S10011, the short-distance chip sends the current geographic position information of the electronic equipment to the sensing concentrator.
In the embodiment of the present application, a description is schematically given by taking current geographic location information of an electronic device as GPS location information as an example.
The short-range chip may send the current GPS location information of the electronic device to the sensorsub in real time or periodically.
S10012, the sensing hub receives the current geographic position information of the electronic equipment.
In the embodiment of the present application, a description is schematically given by taking current geographic location information of an electronic device as GPS location information as an example.
S1002, the sensing hub of the electronic equipment determines whether the user enters the geo-fence according to the current geographic position information of the electronic equipment.
In the embodiment of the present application, a description is schematically given by taking current geographic location information of an electronic device as GPS location information as an example.
The GPS position information of the electronic equipment is the GPS position information of the user when the user holds the electronic equipment to move. Therefore, according to the current GPS position information of the electronic device, that is, the current GPS position information of the user, that is, according to the current GPS position information of the electronic device, it can also be determined whether the user enters the GPS fence. That is, the electronic device monitors whether the location of the electronic device is within range of the GPS fence.
An electronic device, such as the sensorhub of the electronic device, may determine whether a user enters a GPS fence based on current GPS location information of the electronic device. The method comprises the steps that when the electronic equipment determines that the current longitude and latitude coordinates of the electronic equipment are located in the range of a certain GPS fence, the user is determined to enter the GPS fence, and when the longitude and latitude coordinates of the user are not located in the range of the GPS fence, the user is determined not to enter the GPS fence. For example, a sensing hub of the electronic device may determine whether the user enters a GPS fence using a fence algorithm, such as a GPS fence algorithm, according to current GPS location information of the electronic device, and when it is determined that the user enters the GPS fence, an identifier of the GPS fence that the user enters may be determined.
For example, as shown in fig. 4, the sensorsub of the electronic device may obtain the GPS location information of the user from the short-range chip in real time. Since the sensorhub stores the already-established GPS fence (i.e. the corresponding GPS location information is the center, and the corresponding length is the radius circle) and the identifier of the GPS fence, the GPS fence algorithm in the sensorhub determines whether the user enters the GPS fence and the identifier of the GPS fence that the user enters according to the current GPS location information of the electronic device.
In a case that the electronic device determines that the user does not enter the GPS fence, the electronic device may continue to acquire current GPS location information of the electronic device, and determine whether the user enters the GPS fence according to the current GPS location information of the electronic device, that is, the electronic device may perform the above S1001-S1002 again.
It will be appreciated that an electronic device, such as a smart flash card application of the electronic device, may keep the default card active, or activate the default card, in the event that the electronic device determines that the user is not within range of the GPS fence. For example, the default card stored by the electronic device is an intelligent door lock card, and when the electronic device determines that the user enters a GPS fence corresponding to the public transportation card according to the GPS location information of the user, the electronic device may activate the public transportation card. When the electronic device determines that the user leaves the GPS fence corresponding to the public transportation card according to the GPS location information of the user, that is, the electronic device determines that the user does not enter the GPS fence, the electronic device may deactivate the public transportation card and reactivate the default card (e.g., the smart door lock card). For another example, when the electronic device determines that the user enters the GPS fence corresponding to the default card (i.e., the smart door lock card) according to the GPS location information of the user, the electronic device may keep the default card activated. In the event that the user leaves the GPS fence corresponding to the default card, i.e., the electronic device determines that the user has not entered the GPS fence, the electronic device may still keep the default card active.
In some embodiments, an electronic device, such as the sensorhub of the electronic device, can determine whether the user leaves the GPS fence using a fence algorithm, such as a GPS fence algorithm, based on the current GPS location information of the electronic device, and in the event that the user is determined to leave the GPS fence, can determine the identity of the GPS fence that the user left. The sensorhub of the electronic device can also determine that the time length of the user entering a certain GPS fence exceeds the preset time length by using a GPS fence algorithm according to the current GPS position information of the electronic device, and can determine the identifier of the GPS fence which the user enters and exceeds the preset time length under the condition that the time length of the user entering the certain GPS fence exceeds the preset time length.
In the event that the electronic device determines that the user enters the GPS fence, the electronic device can perform S1003-S1005.
S1003, when the user enters the geo-fence, the sensing hub of the electronic device sends the identification of the geo-fence entered by the user to the smart flash card application of the electronic device.
The geofence entered by the user may be a GNSS geofence, a Cell geofence, a Wi-Fi geofence, or other types of geofences, which is not limited in this embodiment of the present application. The GNSS geofence may be a GPS geofence, a GLONASS geofence, a beidou geofence, a QZSS geofence, or an SBAS geofence, among others. The specific type of GNSS geofence is not limited in this application.
The identification of the geofence may be an identification corresponding to a GNSS geofence, a Cell geofence, or a Wi-Fi geofence.
For convenience of understanding, in the embodiment of the present application, an example in which a user enters a geo-fence is a GPS fence is schematically illustrated. I.e., the identification of the geofence entered by the user, is the identification of the GPS fence entered by the user.
For example, in connection with the example of fig. 4, the sensorhub of the electronic device can utilize a GPS fence algorithm to determine when the user enters a GPS fence, the sensorhub of the electronic device can send an identification of one or more GPS fences entered by the user to a smartchip application of the electronic device through a GPS application. Specifically, the S903 may include S9031 to S9032 described below.
S10031, the sensing hub, upon determining that the user enters the geofence, sends an identification of the geofence entered by the user to an application in the system service.
In the embodiment of the present application, the example of the user entering the geo-fence is a GPS fence. Namely, the identification of the geofence entered by the user is the identification of the GPS fence entered by the user, and the application in the system service is the GPS application.
The sensorhub may send an identification of the GPS fence that the user entered to the GPS application through the hardware connectivity layer.
S10032, the application in the system service sends the identification of the geofence entered by the user to the smart flash card application.
In the embodiment of the present application, the example of the user entering the geo-fence is a GPS fence. Namely, the identifier of the geofence entered by the user is the identifier of the GPS fence entered by the user, and the application in the system service is the GPS application.
After receiving the identification of the GPS fence entered by the user, the GPS application may send the identification of the GPS fence entered by the user to the smart flash card application.
In some embodiments, when the electronic device determines whether the user leaves a certain GPS fence, the electronic device, such as the sensorhub of the electronic device, can send an identification of the GPS fence that the user left to the electronic device, such as a smartchip application of the electronic device. When the sensorsub of the electronic device determines that the time that the user enters a certain GPS fence exceeds the preset time, the electronic device, such as the sensorsub of the electronic device, sends the identification of the GPS fence that the user enters and the time that the entering of the GPS fence exceeds the preset time to the electronic device, such as the intelligent flash card application of the electronic device.
For example, referring to fig. 11, taking the geo-fence corresponding to the first virtual card established by the electronic device as a GPS fence as an example, when the user 01 holds the electronic device and arrives at the location a, that is, the user holds the electronic device and enters the GPS fence 02, the sensorhub of the electronic device sends the identifier of the GPS fence 02 entered by the user to the smart card application of the electronic device. When the user 01 holds the electronic device to arrive at the location C from the location a, the electronic device determines that the time that the user is located in the GPS fence 02 exceeds the preset time period, and the electronic device may send the identifier of the GPS fence and the time that the user enters the GPS fence 02 to the smart flash card application of the electronic device. When the user 01 holds the electronic device to reach the location B, that is, the user holds the electronic device to leave the GPS fence 02, and when the first virtual card corresponding to the GPS fence 02 is not the default card, the electronic device may deactivate the first virtual card corresponding to the GPS fence 02 and reactivate the default card.
S1004, receiving identification of a geo-fence entered by a user by a smart flash card application of the electronic device.
In the embodiment of the present application, the example of the user entering the geo-fence is a GPS fence. I.e., the identification of the geofence entered by the user, is the identification of the GPS fence entered by the user.
S1005, activating the virtual card corresponding to the geo-fence by the intelligent flash card application of the electronic device.
In the embodiment of the present application, an example in which a user enters a geo-fence is a GPS fence is taken as an example for schematic description. Namely, the virtual card corresponding to the geo-fence is the virtual card corresponding to the GPS fence.
In the case that the electronic device determines that the user enters the GPS fence, the electronic device, such as a smart flash card application of the electronic device, may activate a virtual card corresponding to the GPS fence according to a correspondence between an identifier of the virtual card stored in a memory of the electronic device and an identifier of the GPS fence.
By adopting the scheme, the intelligent flash card application of the electronic equipment can acquire the current geographic position information and the geographic position precision of the electronic equipment from the short-distance chip through the application, the hardware connection layer and the sensorhub in system service when a user uses a certain virtual card for transaction at a certain card swiping point for the first time. And the smart flash card application establishes a geographic position fence corresponding to the virtual card according to the current geographic position information and the geographic position precision of the electronic equipment. And then when the sensorhub determines that the user enters the geographic position fence according to the geographic position information of the electronic equipment acquired from the short-distance chip, the sensorhub sends the identification of the geographic position fence entered by the user to the smart flash card application. The smart flash card application can activate a virtual card corresponding to the geo-location fence. That is, the smart card application of the electronic device can automatically activate the corresponding virtual card with the geo-location fence prior to the user swiping the card. When different card swiping requirements are met, the situation that a user needs to manually select a virtual card can be avoided, so that the card swiping time is shortened, and the user experience is improved.
According to the scheme, the corresponding geographic fence can be established according to the GPS position information in the geographic position information and the GPS precision in the geographic position precision, and the GPS position information can be acquired by utilizing a short-distance chip of the electronic equipment. And the short-distance chip is the standard configuration of the electronic equipment, so that even if the electronic equipment does not have Wi-Fi fence capability, namely the electronic equipment does not have sensorubs, or the sensorubs of the electronic equipment do not have Wi-Fi fence capability, if the sensorubs do not comprise a Wi-Fi fence algorithm, the intelligent flash card application can still realize the automatic activation of the corresponding virtual card before the user swipes the card, and the use experience of the user is further improved.
In addition, according to the application of the intelligent flash card of the electronic equipment in the scheme of the application, the size of the GPS fence corresponding to the established virtual card is dynamically determined (namely, the radius of the GPS fence corresponding to the virtual card is dynamically determined), so that no overlapping area exists between the GPS fence corresponding to the established virtual card and other GPS fences, and when a user holds the electronic equipment and reaches the range of the GPS fence, the electronic equipment can accurately activate the corresponding virtual card.
For convenience of understanding, the following describes a virtual card switching method provided in the embodiment of the present application with reference to fig. 12. As shown in fig. 12, the switching method of the virtual card may include the following S1201-S1206.
S1201, the electronic device acquires a first virtual card.
For a specific implementation of the electronic device acquiring the first virtual card, reference may be made to the implementation in S601 described above. The embodiments of the present application are not described herein again.
S1202, under the condition that the electronic equipment completes data interaction by adopting the first virtual card at the first card swiping point for the first time, the electronic equipment acquires the geographic position information and the geographic position precision of the electronic equipment.
The geographic position information of the electronic device may be GNSS position information, or may be corresponding Cell information, or may also be corresponding Wi-Fi information, or may also be other types of position information, which is not limited in this embodiment of the present application. The GNSS location information may be GPS location information, GLONASS location information, beidou location information, QZSS location information, or SBAS location information, etc. The specific type of GNSS location information is not limited in this application.
The geographic position accuracy of the electronic device may be GNSS position accuracy, or may be corresponding Cell accuracy, or may also be corresponding Wi-Fi accuracy, or may also be other types of position accuracy, which is not limited in this embodiment of the present application. The GNSS location information may be GPS accuracy, GLONASS accuracy, beidou accuracy, QZSS accuracy, SBAS accuracy, or the like.
For convenience of understanding, in the embodiment of the present application, the current geographic position information of the electronic device is taken as GPS position information, and the geographic position precision is taken as GPS precision for example, which is schematically described.
The specific implementation manner of the electronic device obtaining the current GPS location information and the GPS accuracy when a certain card swiping point (for example, referred to as a first card swiping point) completes data interaction with the NFC card reader for the first time by using a certain first virtual card may refer to the implementation manner in S602 above. The embodiments of the present application are not described herein again.
S1203, the electronic device establishes and stores a geo-fence corresponding to the first virtual card according to the geographical location information and the geographical location precision.
The geo-fence corresponding to the first virtual card may be a GNSS geo-fence, a Cell geo-fence, a Wi-Fi geo-fence, or another type of geo-fence, which is not limited in this embodiment of the present application. The GNSS geofence may be a GPS geofence, a GLONASS geofence, a beidou geofence, a QZSS geofence, or an SBAS geofence, among others. The specific type of GNSS geofence is not limited in this application.
For convenience of understanding, in the embodiment of the present application, a geo-fence corresponding to the first virtual card is taken as an example of a GPS fence.
The electronic equipment can dynamically determine the radius of the GPS fence corresponding to the established first virtual card according to the GPS position information and the GPS precision, so that no overlapping area exists between the GPS fence corresponding to the established first virtual card and other GPS fences.
The electronic device establishes and stores a specific implementation of the GPS fence corresponding to the first virtual card according to the GPS location information and the GPS accuracy, which may refer to the implementation in S603-S605. The embodiments of the present application are not described herein again.
S1204, the electronic equipment acquires the geographical position information of the electronic equipment.
The geographic position information of the electronic device may be GNSS position information, or may be corresponding Cell information, or may also be corresponding Wi-Fi information, or may also be other types of position information, which is not limited in this embodiment of the present application. The GNSS location information may be GPS location information, GLONASS location information, beidou location information, QZSS location information, or SBAS location information, etc. The specific type of GNSS location information is not limited in this application.
For convenience of understanding, in the embodiment of the present application, a description is schematically given by taking the current geographic location information of the electronic device as GPS location information as an example.
For a specific embodiment of the electronic device acquiring the GPS location information of the electronic device, reference may be made to the embodiment in S1001 described above. The embodiments of the present application are not described herein again.
S1205, the electronic device determines whether the user enters the geo-fence according to the geographical location information of the electronic device.
In the embodiment of the present application, the example of the user entering the geo-fence is a GPS fence. Namely, the electronic equipment determines whether the user enters the GPS fence or not according to the GPS position information of the electronic equipment.
The electronic device determines whether the user enters the specific implementation of the GPS fence corresponding to the first virtual card according to the GPS location information of the electronic device, which may refer to the implementation in S1002. The embodiments of the present application are not described herein again.
In the case where the electronic device determines that the user enters the GPS fence corresponding to the first virtual card, the electronic device may perform S1206. In a case that the electronic device determines that the user does not enter the GPS fence corresponding to the first virtual card, the electronic device may continue to acquire the GPS location information of the electronic device, and determine whether the user enters the GPS fence according to the GPS location information of the electronic device, that is, the electronic device may re-execute the above S1204.
S1206, the electronic device activates the first virtual card corresponding to the geo-fence.
In the embodiment of the present application, the example of the user entering the geo-fence is a GPS fence. Namely, the electronic device activates the first virtual card corresponding to the GPS fence.
Specifically, for a specific implementation manner that the electronic device activates the first virtual card corresponding to the GPS fence, reference may be made to the implementation manners in S1003 to S1005. The embodiments of the present application are not described herein again.
By adopting the scheme, when a user uses a certain virtual card for transaction at a certain card swiping point for the first time, the geographic fence corresponding to the virtual card can be established according to the current geographic position information and the geographic position precision of the electronic equipment. When the user re-enters the geo-fence with the electronic device, the electronic device may automatically activate the virtual card corresponding to the geo-fence, so that the user may complete the transaction using the virtual card. That is, the electronic device can automatically activate the corresponding virtual card with the geofence prior to the user swiping the card. When different card swiping requirements are met, the situation that a user needs to manually select a virtual card can be avoided, so that the card swiping time is shortened, and the user experience is improved.
According to the scheme, the corresponding geographic fence can be established according to the GPS position information in the geographic position information and the GPS precision in the geographic position precision, and the GPS position information can be acquired by utilizing a short-distance chip of the electronic equipment. And the short-distance chip is the standard configuration of the electronic equipment, so that even if the electronic equipment does not have the Wi-Fi fence capability, the automatic activation of the corresponding virtual card can be realized before the user swipes the card, and the use experience of the user is further improved.
In addition, according to the GPS position information and the GPS precision, the size of the GPS fence corresponding to the established virtual card is dynamically determined (namely, the radius of the GPS fence corresponding to the virtual card is dynamically determined), so that no overlapping area exists between the GPS fence corresponding to the established virtual card and other GPS fences, and when the electronic device held by the user reaches the range of the GPS fence, the electronic device can accurately activate the corresponding virtual card.
Corresponding to the method in the foregoing embodiment, an embodiment of the present application further provides a virtual card switching device. The virtual card switching device can be applied to electronic equipment and is used for realizing the method in the embodiment. The functions of the device can be realized by hardware, and can also be realized by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.
For example, fig. 13 shows a schematic structural diagram of a virtual card switching apparatus 1300, and as shown in fig. 13, the virtual card switching apparatus 1300 may include: an obtaining module 1301, a building module 1302, a storing module 1303, an activating module 1304, and the like.
The obtaining module 1301 may be configured to obtain first GNSS position information and first GNSS accuracy of the electronic device, when the electronic device completes data interaction at a first card swiping point by using a first virtual card for the first time; the first virtual card is a virtual card of the multiple virtual cards
The establishing module 1302 may be configured to establish a first GNSS fence corresponding to the first virtual card according to the first GNSS position information, the first GNSS precision, and a second GNSS fence corresponding to the second virtual card; the second virtual card is a virtual card of the plurality of virtual cards in which the electronic device has established and stored the GNSS fence.
The storage module 1303 may be configured to store a first GNSS fence corresponding to the first virtual card.
An activation module 1304 may be configured to activate the first virtual card if the electronic device monitors that the location of the electronic device is within range of the first GNSS fence.
In another possible implementation manner, the establishing module 1302 is provided with a module for establishing an initial GNSS fence corresponding to the first virtual card; the initial GNSS fence is a circular area with the first GNSS position information as a center of a circle and a preset length as a radius. The establishing module 1302 is further configured to treat the initial GNSS fence as the first GNSS fence if it is determined that there is no overlapping area between the initial GNSS fence and the second GNSS fence.
In another possible implementation manner, with reference to fig. 13, the virtual card switching apparatus 1300 may further include: a module 1305 is determined. The determining module 1305, for determining the first radius according to the first GNSS position information, the first GNSS precision, and the second GNSS position information and the second GNSS precision when the third GNSS fence is established, when it is determined that the initial GNSS fence has the overlapping area with the third GNSS fence in the second GNSS fence. The establishing module 1302 is specifically configured to establish a first GNSS fence according to the first GNSS location information and the first radius, where there is no overlapping area between the first GNSS fence and the third GNSS fence.
In another possible implementation, where there is one third GNSS fence in the second GNSS fence that has an overlap region with the initial GNSS fence, the first radius is obtained by the following equation:
Figure BDA0003207551810000301
wherein l x Is a first radius, c x To a first GNSS accuracy, c y For the second GNSS accuracy, l is a distance between the first GNSS location information and the second GNSS location information, and d is a buffer width between the initial GNSS fence and the third GNSS fence boundary.
In another possible implementation manner, in the case that there are a plurality of third GNSS fences in the second GNSS fence that have an overlapping area with the initial GNSS fence, the first radius is a plurality of/corresponding to the plurality of third GNSS fences one to one x Zhongji (Chinese character of 'Zhongji')Small l x ,l x Obtained by the following formula:
Figure BDA0003207551810000302
wherein, c x To a first GNSS accuracy, c y For the second GNSS accuracy, l is a distance between the first GNSS location information and the second GNSS location information, and d is a buffer width between the initial GNSS fence and the third GNSS fence boundary.
In another possible implementation manner, the determining module 1305 may be further configured to determine the second radius according to the first GNSS position information, the first GNSS accuracy, the second GNSS position information, and the second GNSS accuracy; the second radius is obtained by the following formula:
Figure BDA0003207551810000303
wherein l y Is a second radius, c x To a first GNSS accuracy, c y For the second GNSS accuracy, l is a distance between the first GNSS location information and the second GNSS location information, and d is a buffer width between the initial GNSS fence and the third GNSS fence boundary. With reference to fig. 13, the virtual card switching apparatus 1300 may further include: and updating the module 1306. The updating module 1306 may be configured to update the third GNSS fence according to the second GNSS position information and the second radius.
In another possible implementation, for each third GNSS fence, the determining module 1305 may be further configured to determine the second radius according to a distance between the first GNSS location information and the second GNSS location information, the first radius, and a buffer width between the initial GNSS fence and a boundary of the third GNSS fence. The updating module 1306 is specifically configured to update the third GNSS fence according to the second GNSS position information and the second radius, when the second radius is smaller than the original radius of the third GNSS fence.
In another possible implementation, the preset length is 2 kilometers.
In another possible implementation, the first virtual card is embodied as a virtual card of a predetermined type among a plurality of virtual cards.
In another possible implementation, the GNSS includes a global positioning satellite system GPS, a global navigation satellite system GLONASS, a beidou satellite navigation system BDS, a quasi-zenith satellite system QZSS, or a satellite-based augmentation system SBAS.
It should be understood that the division of units or modules (hereinafter referred to as units) in the above apparatus is only a division of logical functions, and may be wholly or partially integrated into one physical entity or physically separated in actual implementation. And the units in the device can be realized in the form of software called by the processing element; or can be implemented in the form of hardware; part of the units can also be realized in the form of software called by a processing element, and part of the units can be realized in the form of hardware.
For example, each unit may be a processing element separately set up, or may be implemented by being integrated into a chip of the apparatus, or may be stored in a memory in the form of a program, and a processing element of the apparatus calls and executes the function of the unit. In addition, all or part of the units can be integrated together or can be independently realized. The processing element described herein, which may also be referred to as a processor, may be an integrated circuit having signal processing capabilities. In the implementation process, the steps of the method or the units above may be implemented by integrated logic circuits of hardware in a processor element or in a form called by software through the processor element.
In one example, the units in the above apparatus may be one or more integrated circuits configured to implement the above method, such as: one or more ASICs, or one or more DSPs, or one or more FPGAs, or a combination of at least two of these integrated circuit forms.
As another example, when a unit in a device may be implemented in the form of a processing element scheduler, the processing element may be a general purpose processor, such as a CPU or other processor capable of invoking programs. As another example, these units may be integrated together and implemented in the form of a system-on-a-chip (SOC).
In one implementation, the means for implementing the respective corresponding steps of the above method by the above apparatus may be implemented in the form of a processing element scheduler. For example, the apparatus may comprise a processing element and a memory element, the processing element invoking a program stored by the memory element to perform the method described in the above method embodiments. The memory elements may be memory elements on the same chip as the processing elements, i.e. on-chip memory elements.
In another implementation, the program for performing the above method may be in a memory element on a different chip than the processing element, i.e. an off-chip memory element. At this time, the processing element calls or loads a program from the off-chip storage element onto the on-chip storage element to call and execute the method described in the above method embodiment.
For example, the embodiments of the present application may also provide an apparatus, such as: an electronic device may include: a processor, a memory for storing instructions executable by the processor. The processor is configured to execute the above instructions, so that the electronic device implements the virtual card switching method according to the foregoing embodiment. The memory may be located within the electronic device or external to the electronic device. And the processor includes one or more.
In yet another implementation, the unit of the apparatus for implementing the steps of the method may be configured as one or more processing elements, and these processing elements may be disposed on the electronic device corresponding to the foregoing, where the processing elements may be integrated circuits, for example: one or more ASICs, or one or more DSPs, or one or more FPGAs, or a combination of these types of integrated circuits. These integrated circuits may be integrated together to form a chip.
For example, the embodiment of the present application also provides a chip, and the chip can be applied to the electronic device. The chip includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through a line; the processor receives and executes computer instructions from the memory of the electronic device through the interface circuitry to implement the methods described in the above method embodiments.
Embodiments of the present application further provide a computer program product, which includes computer instructions executed by the electronic device as described above.
Through the description of the foregoing embodiments, it will be clear to those skilled in the art that, for convenience and simplicity of description, only the division of the functional modules is illustrated, and in practical applications, the above function distribution may be completed by different functional modules as needed, that is, the internal structure of the apparatus may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical functional division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another device, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, that is, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be embodied in the form of software products, such as: and (5) programming. The software product is stored in a program product, such as a computer readable storage medium, and includes several instructions for causing a device (which may be a single chip, a chip, or the like) or a processor (processor) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk or an optical disk, and various media capable of storing program codes.
For example, embodiments of the present application may also provide a computer-readable storage medium having stored thereon computer program instructions. The computer program instructions, when executed by the electronic device, cause the electronic device to implement the virtual card switching method as described in the aforementioned method embodiments.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A virtual card switching method is applied to electronic equipment, the electronic equipment has a Near Field Communication (NFC) function, the electronic equipment comprises a plurality of virtual cards, and the method comprises the following steps:
under the condition that the electronic equipment completes data interaction by adopting a first virtual card at a first card swiping point for the first time, the electronic equipment acquires first Global Navigation Satellite System (GNSS) position information and first GNSS accuracy of the electronic equipment; the first virtual card is a virtual card of the plurality of virtual cards;
the electronic equipment establishes an initial GNSS fence corresponding to the first virtual card; the initial GNSS fence is a circular area which takes the first GNSS position information as a circle center and takes a preset length as a radius;
when the electronic device determines that there is no overlapping area between the initial GNSS fence and a second GNSS fence corresponding to a second virtual card, the electronic device regards the initial GNSS fence as the first GNSS fence, and the second virtual card is a virtual card of the plurality of virtual cards, where the electronic device has established and stored a GNSS fence;
in a case that the electronic device determines that there is an overlapping area between the initial GNSS fence and a third GNSS fence in the second GNSS fence, the electronic device determines a first radius according to the first GNSS location information, the first GNSS accuracy, and second GNSS location information and second GNSS accuracy when the third GNSS fence is established;
the electronic device establishing the first GNSS fence according to the first GNSS location information and the first radius, wherein no overlapping area exists between the first GNSS fence and the third GNSS fence;
the electronic equipment stores a first GNSS fence corresponding to the first virtual card;
the electronic device activates the first virtual card if the electronic device monitors that the location of the electronic device is within range of the first GNSS fence.
2. The method of claim 1, wherein in a case that there is one of the third GNSS pens in the second GNSS pen that has an overlap region with the initial GNSS pen, the first radius is obtained by:
Figure 664276DEST_PATH_IMAGE001
wherein the content of the first and second substances,
Figure 7533DEST_PATH_IMAGE002
is a stand forThe first radius is a radius of the first radius,
Figure 649867DEST_PATH_IMAGE003
in order to be said first GNSS accuracy,
Figure 394969DEST_PATH_IMAGE004
for the second GNSS accuracy,/, is a distance between the first GNSS location information and the second GNSS location information, and d, is a buffer width between the initial GNSS fence and the third GNSS fence boundary.
3. The method of claim 2, wherein if there are a plurality of third GNSS fences in the second GNSS fence having an overlapping area with the initial GNSS fence, the first radius is a plurality of/, which correspond one-to-one to the plurality of third GNSS fences x Of the smallest x ,l x Obtained by the following formula:
Figure 346614DEST_PATH_IMAGE005
wherein, the first and the second end of the pipe are connected with each other,
Figure 177166DEST_PATH_IMAGE006
for the purpose of the first GNSS accuracy,
Figure 623191DEST_PATH_IMAGE007
for the second GNSS accuracy, l is a distance between the first GNSS location information and the second GNSS location information, and d is a buffer width between the initial GNSS fence and the third GNSS fence boundary.
4. The method of claim 3, further comprising:
the electronic device determines a second radius according to the first GNSS position information, the first GNSS accuracy, the second GNSS position information and the second GNSS accuracy;
the electronic device updating the third GNSS fence according to the second GNSS location information and the second radius;
the second radius is obtained by the following formula:
Figure 957220DEST_PATH_IMAGE008
wherein the content of the first and second substances,
Figure 830499DEST_PATH_IMAGE009
in order to be said second radius, is,
Figure 148347DEST_PATH_IMAGE010
for the purpose of the first GNSS accuracy,
Figure 132484DEST_PATH_IMAGE011
for the second GNSS accuracy, l is a distance between the first GNSS location information and the second GNSS location information, and d is a buffer width between the initial GNSS fence and the third GNSS fence boundary.
5. The method of claim 4, wherein for each of the third GNSS fences, the method further comprises:
determining, by the electronic device, a second radius based on a distance between the first GNSS location information and the second GNSS location information, the first radius, and a buffer width between the initial GNSS fence and the third GNSS fence boundary;
in a case that the second radius is smaller than the original radius of the third GNSS fence, the electronic device updates the third GNSS fence according to the second GNSS location information and the second radius.
6. The method of claim 1, wherein the predetermined length is 2 kilometers.
7. Method according to any of claims 1 to 6, characterized in that said first virtual card is in particular a virtual card of a predetermined type among said plurality of virtual cards.
8. The method according to any of claims 1-6, wherein the GNSS comprises the Global positioning System GPS, the Global navigation satellite System GLONASS, the Beidou satellite navigation System BDS, the quasi-zenith satellite System QZSS or the satellite based augmentation System SBAS.
9. An electronic device, comprising a processor, a memory for storing processor-executable instructions; the processor is configured to, when executing the instructions, cause the electronic device to implement the method of any of claims 1 to 8.
10. A computer readable storage medium having stored thereon computer program instructions; it is characterized in that the preparation method is characterized in that,
the computer program instructions, when executed by an electronic device, cause the electronic device to implement the method of any of claims 1 to 8.
CN202110921394.4A 2021-08-11 2021-08-11 Virtual card switching method and electronic equipment Active CN114449446B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110921394.4A CN114449446B (en) 2021-08-11 2021-08-11 Virtual card switching method and electronic equipment
PCT/CN2022/089662 WO2023015962A1 (en) 2021-08-11 2022-04-27 Virtual card switching method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110921394.4A CN114449446B (en) 2021-08-11 2021-08-11 Virtual card switching method and electronic equipment

Publications (2)

Publication Number Publication Date
CN114449446A CN114449446A (en) 2022-05-06
CN114449446B true CN114449446B (en) 2023-01-10

Family

ID=81362587

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110921394.4A Active CN114449446B (en) 2021-08-11 2021-08-11 Virtual card switching method and electronic equipment

Country Status (2)

Country Link
CN (1) CN114449446B (en)
WO (1) WO2023015962A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116703391A (en) * 2022-09-23 2023-09-05 荣耀终端有限公司 Electronic card activation method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110381443A (en) * 2019-09-05 2019-10-25 北京小米移动软件有限公司 Near-field communication card Activiation method and device
WO2020121063A1 (en) * 2018-12-11 2020-06-18 Orange Method for operating a device for selecting a virtual card in a digital wallet
CN111447557A (en) * 2020-04-07 2020-07-24 广东小天才科技有限公司 Method, server, mobile terminal and system for controlling switching of NFC analog card
CN113163326A (en) * 2021-04-09 2021-07-23 Oppo广东移动通信有限公司 Multi-NFC card selection method and device, electronic equipment and storage medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8768565B2 (en) * 2012-05-23 2014-07-01 Enterprise Holdings, Inc. Rental/car-share vehicle access and management system and method
US10237232B2 (en) * 2014-07-29 2019-03-19 GeoFrenzy, Inc. Geocoding with geofences
US20160092858A1 (en) * 2014-09-30 2016-03-31 Apple Inc. Recommendation of payment credential to be used based on merchant information
CN112004194A (en) * 2015-04-14 2020-11-27 阿里巴巴集团控股有限公司 Electronic certificate prompting method and device and electronic equipment
WO2017132821A1 (en) * 2016-02-02 2017-08-10 华为技术有限公司 Method and device for activity trajectory recording
US10410232B1 (en) * 2016-07-08 2019-09-10 Harold Lueken Systems and methods for prioritizing default payment options in virtual wallets
KR20180066647A (en) * 2016-12-09 2018-06-19 삼성전자주식회사 Am unmanned aerial vehicle and Method for re-setting Geofence region of the same using an electronic appatatus
CN109859514B (en) * 2018-12-28 2021-09-03 北方信息控制研究院集团有限公司 Bus entrance and exit judgment method based on bus stop electronic fence
WO2020148659A2 (en) * 2019-01-18 2020-07-23 Rathod Yogesh Augmented reality based reactions, actions, call-to-actions, survey, accessing query specific cameras
CN111194006B (en) * 2020-01-02 2021-06-29 西安广和通无线软件有限公司 Dynamic geo-fence generation method and device, computer equipment and storage medium
CN111432339A (en) * 2020-03-19 2020-07-17 RealMe重庆移动通信有限公司 Near field communication card switching method and device, storage medium and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020121063A1 (en) * 2018-12-11 2020-06-18 Orange Method for operating a device for selecting a virtual card in a digital wallet
CN110381443A (en) * 2019-09-05 2019-10-25 北京小米移动软件有限公司 Near-field communication card Activiation method and device
CN111447557A (en) * 2020-04-07 2020-07-24 广东小天才科技有限公司 Method, server, mobile terminal and system for controlling switching of NFC analog card
CN113163326A (en) * 2021-04-09 2021-07-23 Oppo广东移动通信有限公司 Multi-NFC card selection method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114449446A (en) 2022-05-06
WO2023015962A1 (en) 2023-02-16

Similar Documents

Publication Publication Date Title
CN108604342B (en) NFC-based data transmission method and mobile device
US10212545B2 (en) Method and apparatus for device positioning
US10292115B2 (en) Electronic device and method of transmitting wireless signal thereof
CN113765546B (en) Virtual card switching method and electronic equipment
CN111543041B (en) Selection method of analog card and mobile device
CN109937595B (en) Electronic device and method for determining position
US10321274B2 (en) Apparatus and method for determining location of electronic device
CN111316673B (en) Electronic fence updating method and communication device
CN105491243A (en) NFC mobile terminal and NFC simulation card switching control method
CN112232801B (en) Electronic transaction method and terminal
CN112995409A (en) Display method of intelligent communication strategy effective scene and mobile terminal
CN113382363B (en) Method and device for sending messages based on different networks
CN117494746A (en) Analog card switching method, electronic equipment and communication system
CN105554869A (en) Mobile terminal communication method, equipment and communication system
CN113573239B (en) Virtual card switching method, electronic equipment and wearable equipment
CN114449446B (en) Virtual card switching method and electronic equipment
EP4138434A1 (en) Method for detecting bluetooth positioning device, device, and storage medium
CN105787728A (en) Payment system and method
US9867010B2 (en) Method, electronic device, and computer readable recording medium for providing location based services
CN113242349B (en) Data transmission method, electronic equipment and storage medium
CN113225787B (en) Wi-Fi scanning method, terminal equipment and storage medium
CN114501316B (en) Virtual card switching method and electronic equipment
CN111092808B (en) Information sharing method and terminal equipment
CN115250428A (en) Positioning method and device
CN113766468A (en) Smart card sharing method, electronic device and computer-readable storage medium

Legal Events

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