WO2022247571A1 - 一种虚拟卡切换方法及电子设备 - Google Patents
一种虚拟卡切换方法及电子设备 Download PDFInfo
- Publication number
- WO2022247571A1 WO2022247571A1 PCT/CN2022/089580 CN2022089580W WO2022247571A1 WO 2022247571 A1 WO2022247571 A1 WO 2022247571A1 CN 2022089580 W CN2022089580 W CN 2022089580W WO 2022247571 A1 WO2022247571 A1 WO 2022247571A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- fence
- electronic device
- gnss
- card
- virtual card
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 91
- 230000003993 interaction Effects 0.000 claims abstract description 17
- 230000004913 activation Effects 0.000 claims description 29
- 230000006870 function Effects 0.000 claims description 29
- 238000004891 communication Methods 0.000 claims description 24
- 238000004590 computer program Methods 0.000 claims description 8
- 230000008569 process Effects 0.000 abstract description 20
- 230000003213 activating effect Effects 0.000 abstract description 4
- 238000012545 processing Methods 0.000 description 27
- 238000004422 calculation algorithm Methods 0.000 description 17
- 238000010586 diagram Methods 0.000 description 14
- 238000012544 monitoring process Methods 0.000 description 12
- 238000010295 mobile communication Methods 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 8
- 230000003416 augmentation Effects 0.000 description 6
- 229920001621 AMOLED Polymers 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- MOVRNJGDXREIBM-UHFFFAOYSA-N aid-1 Chemical compound O=C1NC(=O)C(C)=CN1C1OC(COP(O)(=O)OC2C(OC(C2)N2C3=C(C(NC(N)=N3)=O)N=C2)COP(O)(=O)OC2C(OC(C2)N2C3=C(C(NC(N)=N3)=O)N=C2)COP(O)(=O)OC2C(OC(C2)N2C3=C(C(NC(N)=N3)=O)N=C2)COP(O)(=O)OC2C(OC(C2)N2C(NC(=O)C(C)=C2)=O)COP(O)(=O)OC2C(OC(C2)N2C3=C(C(NC(N)=N3)=O)N=C2)COP(O)(=O)OC2C(OC(C2)N2C3=C(C(NC(N)=N3)=O)N=C2)COP(O)(=O)OC2C(OC(C2)N2C3=C(C(NC(N)=N3)=O)N=C2)COP(O)(=O)OC2C(OC(C2)N2C(NC(=O)C(C)=C2)=O)COP(O)(=O)OC2C(OC(C2)N2C3=C(C(NC(N)=N3)=O)N=C2)COP(O)(=O)OC2C(OC(C2)N2C3=C(C(NC(N)=N3)=O)N=C2)COP(O)(=O)OC2C(OC(C2)N2C3=C(C(NC(N)=N3)=O)N=C2)COP(O)(=O)OC2C(OC(C2)N2C(NC(=O)C(C)=C2)=O)COP(O)(=O)OC2C(OC(C2)N2C3=C(C(NC(N)=N3)=O)N=C2)COP(O)(=O)OC2C(OC(C2)N2C3=C(C(NC(N)=N3)=O)N=C2)COP(O)(=O)OC2C(OC(C2)N2C3=C(C(NC(N)=N3)=O)N=C2)CO)C(O)C1 MOVRNJGDXREIBM-UHFFFAOYSA-N 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 235000019800 disodium phosphate Nutrition 0.000 description 3
- 238000013507 mapping Methods 0.000 description 3
- 238000013528 artificial neural network Methods 0.000 description 2
- 230000003203 everyday effect Effects 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 229920001690 polydopamine Polymers 0.000 description 2
- 239000002096 quantum dot Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000010348 incorporation Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000005855 radiation Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 230000002618 waking effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B5/00—Near-field transmission systems, e.g. inductive or capacitive transmission systems
- H04B5/70—Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
- H04B5/72—Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for local intradevice communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B5/00—Near-field transmission systems, e.g. inductive or capacitive transmission systems
- H04B5/40—Near-field transmission systems, e.g. inductive or capacitive transmission systems characterised by components specially adapted for near-field transmission
- H04B5/48—Transceivers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/021—Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Definitions
- the present application relates to the field of electronic equipment, in particular to a virtual card switching method and electronic equipment.
- NFC near field communication
- a mobile phone with NFC function multiple NFC virtual cards can be configured, so that multiple functions such as bus card swiping, transaction payment, and access control unlocking can be realized.
- Embodiments of the present application provide a virtual card switching method and an electronic device, which can simplify the process of swiping a card for a user, reduce time-consuming swiping a card, and thereby improve user experience.
- the embodiment of the present application provides a virtual card switching method, which is applied to an electronic device, and the electronic device has an NFC function.
- the virtual card switching method may include: when the electronic device uses the first virtual card to complete data interaction at the first card swiping point for the first time, the electronic device obtains the GNSS position information and the GNSS accuracy of the electronic device; the first virtual card is a plurality of The virtual card in the virtual card; the electronic device establishes and stores the first GNSS fence corresponding to the first virtual card according to the GNSS position information and GNSS accuracy, the first GNSS fence includes the first fence and the second fence, and the first fence The range is larger than the range of the second fence; when the electronic device detects that the position of the electronic device is within the range of the first GNSS fence, the electronic device activates the first virtual card.
- a GNSS geofence corresponding to the virtual card is established.
- the electronic device can automatically activate the virtual card corresponding to the GNSS geo-fence. Therefore, when faced with different card swiping requirements, the user can avoid manually selecting the virtual card that needs to be activated, thereby simplifying the process of the user swiping the card, reducing the duration of swiping the card, and improving user experience.
- the solution of the present application is to establish a corresponding geographic fence based on the GNSS position information, and the GNSS position information can be obtained by using the short-distance chip of the electronic device.
- the short-distance chip is a standard configuration of electronic equipment, so even if the electronic equipment does not have the Wi-Fi fence capability, it can still realize the automatic activation of the corresponding virtual card before the user swipes the card, further improving the user experience.
- the solution of this application can accurately determine whether the user enters the range of the corresponding GNSS fence by establishing fences of different ranges corresponding to the virtual card, so that the electronic device can accurately identify the virtual card corresponding to the GNSS geographic fence entered by the user. activation.
- the first fence is a circular area with the GNSS position information as the center and the preset length as the radius; the second fence is the GNSS position information as the center, A circular area with a radius of N times the GNSS precision; N is an integer greater than zero, and the preset length is greater than N times the GNSS precision.
- the electronic device can determine the range of the large fence and the range of the small fence, so that by monitoring the position of the electronic device, it can be determined whether the electronic device reaches the range of the large fence or the range of the small fence.
- the electronic device also establishes and stores the GNSS fences of other virtual cards except the first virtual card among the multiple virtual cards; wherein, the GNSS fences of other virtual cards include : the second GNSS fence corresponding to the second virtual card, the second GNSS fence includes a third fence and a fourth fence, and the range of the third fence is larger than the range of the fourth fence.
- the virtual card corresponding to the GNSS geographic fence can be automatically activated, which avoids the user’s confusion when faced with different card swiping requirements. It is necessary to manually select the virtual card that needs to be activated, which can further simplify the process of swiping the card for the user, reduce the time for swiping the card, and improve the user experience.
- the electronic device when the electronic device monitors that the position of the electronic device reaches the range of the first GNSS fence, the electronic device activates the first virtual card, which may include: When the electronic device detects that the position of the electronic device is within the range of the first GNSS fence but not within the range of the GNSS fences of other virtual cards, the electronic device activates the first virtual card.
- the electronic device when the electronic device monitors that the position of the electronic device reaches the range of the first GNSS fence, the electronic device activates the first virtual card, which may include: When the electronic device detects that the position of the electronic device is within the range of the second fence in the first GNSS fence and within the range of the third fence in the second GNSS fence, the electronic device activates the first virtual card.
- the virtual card corresponding to the small fence with high priority is activated, which avoids the need for the user to manually select the virtual card that needs to be activated when the position of the electronic device reaches the range of multiple fences. Card, so as to further simplify the process of users swiping cards, reduce the time for swiping cards, and improve user experience.
- the electronic device when the electronic device monitors that the position of the electronic device reaches the range of the first GNSS fence, the electronic device activates the first virtual card, which may include: The electronic device monitors that the position of the electronic device reaches the range of the first fence in the first GNSS fence, and reaches the range of the third fence in the second GNSS fence, or, monitors that the position of the electronic device reaches the first GNSS fence If it is within the range of the second fence in the second GNSS fence and within the range of the fourth fence of the second GNSS fence, the electronic device determines that the priority of the first virtual card is higher than the priority of the second virtual card; A virtual card is activated.
- the virtual card with a higher priority is activated, which avoids that when the position of the electronic device reaches the range of multiple fences, and the priority of multiple fences is the same.
- the user manually selects the virtual card that needs to be activated which further simplifies the process of swiping the card for the user, reduces the time for swiping the card, and improves the user experience.
- the above virtual card switching method may further include: when the priority of the first virtual card is the same as that of the second virtual card, the electronic device obtains the electronic device The mobile trend; the electronic device will activate the virtual card corresponding to the GNSS fence on the mobile trend.
- the first virtual card is specifically a virtual card of a predetermined type among the plurality of virtual cards.
- the electronic device by using the first virtual card as a virtual card of a predetermined type among the plurality of virtual cards, it is possible for the electronic device to quickly determine whether to Build the fence corresponding to the virtual card.
- the preset length is 1 kilometer; N is 5; or, the GNSS accuracy of N times is greater than 50 meters and less than 500 meters.
- the electronic device can accurately determine the range of the large fence and the range of the small fence, so that by monitoring the position of the electronic device, it can be accurately determined whether the electronic device reaches the range of the large fence or the range of the small fence. within range.
- the GNSS includes the global satellite 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.
- the electronic device can establish a virtual card corresponding Different types of GNSS fences.
- an embodiment of the present application provides a virtual card switching device, which can be applied to an electronic device to implement the method in the first aspect above.
- 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, for example, an acquisition module, an establishment module, a storage module, and an activation module.
- the obtaining module can be used to obtain the GNSS position information and GNSS accuracy of the electronic device when the electronic device uses the first virtual card to complete data interaction at the first card swiping point for the first time; the first virtual card is multiple A virtual card in a virtual card.
- the establishment module can be used to establish the first GNSS fence corresponding to the first virtual card according to the GNSS position information and the GNSS accuracy.
- the first GNSS fence includes the first fence and the second fence, and the range of the first fence is larger than that of the second fence. scope.
- the storage module can be used to store the 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 position of the electronic device is within the range of the first GNSS fence.
- the first fence is a circular area with the GNSS position information as the center and the preset length as the radius;
- the second fence is the GNSS position information as the center, with N times the GNSS precision is a circular area with a radius;
- N is an integer greater than zero, and the preset length is greater than N times the GNSS precision.
- the establishment module can also be used to establish the GNSS fences of other virtual cards except the first virtual card among the multiple virtual cards; wherein, the GNSS fences of other virtual cards It includes: a second GNSS fence corresponding to the second virtual card, the second GNSS fence includes a third fence and a fourth fence, and the range of the third fence is larger than the range of the fourth fence.
- the storage module can also be used to store the GNSS fences of other virtual cards in the plurality of virtual cards except the first virtual card.
- the activation module is specifically configured to detect that the position of the electronic device reaches within the range of the first GNSS fence and does not reach the range of the GNSS fence of other virtual cards. Within the case, the first virtual card will be activated.
- the activation module is specifically configured to, when the electronic device detects that the position of the electronic device reaches within the range of the second fence in the first GNSS fence, and reaches the second GNSS fence In case of being within range of the third fence, the first virtual card will be activated.
- the above virtual card switching device may further include: a determining module.
- the determination module can be used to detect that the position of the electronic device reaches within the range of the first fence in the first GNSS fence and reaches the range of the third fence in the second GNSS fence, or monitors that When the position of the electronic device reaches within the range of the second fence in the first GNSS fence and reaches within the range of the fourth fence of the second GNSS fence, determine the first virtual card The priority of the second virtual card is higher than that of the second virtual card.
- the activation module is specifically configured to activate the first virtual card.
- the acquiring module is further configured to acquire a movement trend of the electronic device.
- the activation module is also used to activate the virtual card corresponding to the GNSS fence on the mobile trend.
- the preset length is 1 kilometer; N is 5; or, the GNSS accuracy of N times is greater than 50 meters and less than 500 meters.
- the GNSS includes the global satellite 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.
- an embodiment of the present application provides an electronic device, including: a processor, and a memory configured to store instructions executable by the processor.
- the electronic device implements the virtual card switching method described in any one of the first aspect or possible implementation manners of the first aspect.
- the embodiment of the present application provides a computer-readable storage medium on which computer program instructions are stored.
- the electronic device is made to implement the virtual card switching method described in any one of the first aspect or possible implementation manners of the first aspect.
- the embodiment of the present application provides a computer program product, including computer readable code, when the computer readable code is run in the electronic device, the electronic device realizes the possible functions of the first aspect or the first aspect. Implement the virtual card switching method described in any one of the manners.
- Fig. 1 is a schematic diagram of the application scenario of the NFC virtual card provided by the embodiment of the present application
- FIG. 2 is a schematic diagram of a display interface of an electronic device provided in an embodiment of the present application.
- FIG. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
- FIG. 4 is a first schematic diagram of the framework of the virtual card switching method provided by the embodiment of the present application.
- FIG. 5 is a second schematic diagram of the framework of the virtual card switching method provided by the embodiment of the present application.
- FIG. 6 is a schematic diagram of a method for establishing a geographic fence corresponding to a virtual card provided in an embodiment of the present application
- FIG. 7 is a first schematic diagram of a geo-fence provided by an embodiment of the present application.
- FIG. 8 is a second schematic diagram of the geofence provided by the embodiment of the present application.
- FIG. 9 is a first schematic diagram of a virtual card switching method provided by an embodiment of the present application.
- FIG. 10 is a schematic diagram of virtual card switching provided by the embodiment of the present application.
- FIG. 11 is a second schematic diagram of a virtual card switching method provided by the embodiment of the present application.
- FIG. 12 is a schematic structural diagram of a virtual card switching device provided by an embodiment of the present application.
- first and second are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as “first” and “second” may explicitly or implicitly include one or more of these features. In the description of the present application, unless otherwise specified, "plurality” means two or more.
- NFC technology has been gradually extended to miniaturized electronic devices.
- Electronic devices that support NFC functions such as mobile phones, can exchange data with NFC card readers when they are close to NFC card readers (such as point of sale (POS) machines), thereby realizing various NFC card readers.
- Functions such as card swiping, data transfer, etc.
- mobile phone 101 has NFC function, and the user can put mobile phone 101 close to the NFC card reader 102 on the bus when taking a bus, so that mobile phone 101 can communicate with the NFC card reader 102 on the bus.
- Perform data exchange that is, the mobile phone 101 completes the payment of the bus fare.
- an electronic device supporting the NFC function may include an application program (for example, called an NFC application) for implementing short-distance communication.
- the NFC application has an emulation function of emulating a contactless integrated circuit (integrated circuit, IC) card.
- NFC applications may include card package applications, bus applications, banking applications, access control applications, and the like.
- Each NFC application includes at least one virtual card, such as a virtual transportation card, a virtual access control card, and a virtual bank card.
- Each virtual card may correspond to an identifier, and the identifier may be an application identifier (applet identifier, AID) or an identifier (identity, ID).
- application identifier application identifier
- ID identifier
- the virtual card can be identified by the AID.
- some virtual cards do not support AID identification, such as Mifare series cards, such as residential access control cards, can be identified by ID.
- the mapping relationship between the virtual card and the identification of the NFC application can be stored in the memory of the electronic device, and can also be stored in the cloud.
- mapping relationship is stored in the memory of the electronic device
- the NFC application is a card package application as an example.
- Table 1 shows the mapping relationship between the virtual card and the identifier of the card package application stored in the memory of the electronic device.
- the card package application may include multiple virtual cards of different types, such as community access control cards, public transportation cards and smart door lock cards.
- the activation status of one of the multiple virtual cards is activated, for example, the activation status of the smart door lock card identified as AID2 is activated.
- the electronic device When the electronic device receives the NFC field strength information (that is, the electronic device is close to an NFC card reader), the electronic device defaults to the activated virtual card for data interaction with the nearby NFC card reader (that is, completes the transaction). On the activated virtual card, often the pre-configured default card. When the NFC card reader matches the default card, the data exchange between the NFC card reader and the electronic device can be successful. However, when the NFC card reader does not match the default card, data interaction failure will occur. When the NFC card reader does not match the default card, the user needs to manually select the correct virtual card to achieve successful interaction with the NFC card reader.
- the electronic device takes the electronic device as a mobile phone as an example.
- the default card in the card package application of the mobile phone is a smart door lock card, that is, the virtual card in an activated state is a smart door lock card.
- the mobile phone can receive instruction information including the identification (eg, AID1). After that, the mobile phone can use the default card to exchange data with the NFC card reader on the bus. If the user starts the card package application of the mobile phone at this time, the mobile phone can display the card swiping interface 201 shown in (b) in FIG. Data interaction.
- the screen of the mobile phone is turned on in response to the received instruction information, and displays the interface of the card package application, for example, the above-mentioned card swiping interface 201 is displayed.
- the mobile phone can also compare whether the identifier (ie, AID1) in the indication information is the same as that of the default card (ie, AID2).
- the mobile phone determines that the two are different, it can display the card swiping interface 202 as shown in (c) in FIG. Afterwards, the user can manually select the correct virtual card to activate.
- the mobile phone receives the user's selection operation on the public transportation card, and in response, the smart door lock card that is currently activated can be deactivated and the public transportation card can be activated.
- the mobile phone is close to the NFC card reader on the bus again, use the activated public transportation card to interact with the NFC card reader on the bus to perform operations such as deduction of the amount, and notify the NFC card reader on the bus to finish swiping the card.
- the mobile phone can also deactivate the public transportation card and reactivate the default card (ie, the smart door lock card).
- a wireless fidelity (Wi-Fi) geo-fence is used to realize the automatic activation of the corresponding virtual card before the user swipes the card.
- Geo-fence means that when the user arrives near a certain geographical location, the user's mobile phone can monitor the longitude and latitude coordinates of the mobile phone, the logo of the cell base station scanned by the mobile phone, or the Wi-Fi information (such as Wi-Fi ID), and match with the location information corresponding to the geographic location, the ID of the cell (Cell) base station or Wi-Fi information, and after the matching is successful, the mobile phone can determine that the user enters the geofence corresponding to the geographic location.
- the Wi-Fi information such as Wi-Fi ID
- Geofences can be divided into GNSS (global navigation satellite system, GNSS) geofences, Cell geofences, and Wi-Fi geofences according to their monitoring data.
- GNSS global navigation satellite system
- the GNSS geographic fence monitoring dimension can be the latitude and longitude coordinates of the mobile phone.
- the monitoring area of the GNSS geo-fence can be a circular area with a certain geographic location coordinate point as the center and a certain length as the radius, or a polygonal area with multiple geographic location coordinate points as vertices and connected vertices.
- the monitoring dimension of the Cell geo-fence may be the identification of the base station of the cell scanned by the mobile phone.
- the monitoring area of the Cell geo-fence may be the signal coverage of one or more cell base stations.
- the monitoring dimension of the Wi-Fi geofence can be the Wi-Fi signal scanned by the mobile phone.
- the monitoring area of the Wi-Fi geo-fence can be covered by one or more Wi-Fi signals.
- the fence mechanism corresponding to the geographic location can be triggered to perform operations corresponding to the fence corresponding to the geographic location, for example, the card corresponding to the geographic location can be activated.
- the solution of the above-mentioned related technology is: when a user uses a virtual card to conduct a transaction, the mobile phone sets a Wi-Fi geo-fence according to the identity of the virtual card and the Wi-Fi identity corresponding to the location where the user swipes the card, and saves the Wi-Fi - Correspondence between the Wi-Fi ID in the Fi geofence and the virtual card ID. After that, the mobile phone can periodically obtain the Wi-Fi identification of the current geographical location of the mobile phone, and judge whether the obtained Wi-Fi identification is the same as the Wi-Fi identification in the set W-iFi geo-fence.
- the mobile phone When the mobile phone detects that the obtained Wi-Fi identifier is the same as the Wi-Fi identifier in the Wi-Fi geo-fence, it is determined that the user has entered 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 saved correspondence, so that the user can use the activated virtual card to complete card swiping. That is, the automatic activation of the corresponding virtual card is realized before the user swipes the card.
- the implementation of the above solution requires the mobile phone to have the capability of Wi-Fi geo-fencing, for example, the sensor hub (sensorhub) in the mobile phone is required to have the capability of low-power Wi-Fi geo-fencing.
- the mobile phone does not have the Wi-Fi geo-fence capability, the setting of the virtual card corresponding to the Wi-Fi geo-fence cannot be realized, and the corresponding virtual card cannot be automatically activated before the user swipes the card. In this way, the user still needs to manually select the correct virtual card for activation.
- the embodiment of the present application provides a virtual card switching method, which should be applied to electronic devices.
- This method can be used according to the current GNSS position information of the electronic device when the user completes the transaction with a certain virtual card at a certain card swiping point for the first time.
- the electronic device can automatically activate the virtual card corresponding to the GNSS geofence, so that the user can use the virtual card to complete transactions. That is, before the user swipes the card, the electronic device can automatically activate the corresponding virtual card by using the GNSS geo-fence.
- the solution of the present application is to establish a corresponding geographic fence based on the GNSS position information, and the GNSS position information can be obtained by using the short-distance chip of the electronic device.
- the short-distance chip is a standard configuration of electronic equipment, so even if the electronic equipment does not have the Wi-Fi fence capability, it can still realize the automatic activation of the corresponding virtual card before the user swipes the card, further improving the user experience.
- GNSS can include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou satellite navigation system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi-zenith satellite system, QZSS) and/or satellite based augmentation systems (satellite based augmentation systems, SBAS), etc.
- the GNSS geo-fence in this embodiment may be a GPS geo-fence, a GLONASS geo-fence, a Beidou geo-fence, a QZSS geo-fence, or an SBAS geo-fence.
- the specific type of the GNSS geo-fence is not limited in this application.
- a GNSS geo-fence is taken as a GPS geo-fence (hereinafter referred to as a GPS geo-fence) as an example for schematic illustration. That is, the monitoring dimension of the GPS fence may be the latitude and longitude coordinates of the electronic device.
- the monitoring area of the GPS fence can be a circular area with a certain geographic location coordinate point as the center and a certain length as the radius, or a polygonal area with multiple geographic location coordinate points as vertices and connected vertices.
- the above-mentioned electronic devices may be mobile phones, tablet computers, handheld computers, personal computers (personal computers, PCs), cellular phones, personal digital assistants (personal digital assistants, PDAs), wearable devices, etc. functional electronic devices.
- the embodiment of the present application does not limit the specific form of the electronic device.
- FIG. 3 shows a schematic structural diagram of an electronic device provided by an embodiment of the present application.
- the electronic device may include a processor 310, an external memory interface 320, an internal memory 321, a universal serial bus (universal serial bus, USB) interface 330, a charging management module 340, a power management module 341, a battery 342, Antenna 1, antenna 2, mobile communication module 350, wireless communication module 360, audio module 370, speaker 370A, receiver 370B, microphone 370C, earphone jack 370D, sensor module 380, button 390, motor 391, indicator 392, camera 393, A display screen 394, and a subscriber identification module (subscriber identification module, SIM) card interface 395, etc.
- SIM subscriber identification module
- 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 environment Light sensor 380L, bone conduction sensor 380M, etc.
- the structure shown in this embodiment does not constitute a specific limitation on the electronic device.
- the electronic device may include more or fewer components than shown, or combine certain components, or separate certain components, or arrange different components.
- the illustrated components can be realized in hardware, software or a combination of software and hardware.
- the processor 310 may include one or more processing units, for example: the processor 310 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
- application processor application processor, AP
- modem processor graphics processing unit
- graphics processing unit graphics processing unit
- ISP image signal processor
- controller memory
- video codec digital signal processor
- DSP digital signal processor
- baseband processor baseband processor
- neural network processor neural-network processing unit, NPU
- the processor 310 may further include a sensor hub (sensorhub) and a short-distance processor (also referred to as a short-distance chip).
- the short-range chip can be used to obtain GPS positioning information and Wi-Fi scanning information.
- the short-range chip may include two chips, namely a GPS chip and a Wi-Fi chip, the GPS chip is used to obtain GPS positioning information, and the Wi-Fi chip is used to obtain Wi-Fi scanning information.
- a controller can be the nerve center and command center of an electronic device.
- the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
- a memory may also be provided in the processor 310 for storing instructions and data.
- the memory in processor 310 is a cache memory.
- the memory may hold instructions or data that the processor 310 has just used or recycled. If the processor 310 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 310 is reduced, thereby improving the efficiency of the system.
- processor 310 may include one or more interfaces.
- the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
- I2C integrated circuit
- I2S integrated circuit built-in audio
- PCM pulse code modulation
- PCM pulse code modulation
- UART universal asynchronous transmitter
- MIPI mobile industry processor interface
- GPIO general-purpose input and output
- subscriber identity module subscriber identity module
- SIM subscriber identity module
- USB universal serial bus
- the wireless communication function of the electronic device can be realized by the antenna 1, the antenna 2, the mobile communication module 350, the wireless communication module 360, the modem processor and the baseband processor.
- Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in an electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
- Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
- the antenna may be used in conjunction with a tuning switch.
- the mobile communication module 350 can provide wireless communication solutions including 2G/3G/4G/5G applied to electronic devices.
- the mobile communication module 350 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
- the mobile communication module 350 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
- the mobile communication module 350 can also amplify the signal modulated by the modem processor, convert it into electromagnetic wave and radiate it through the antenna 1 .
- at least part of the functional modules of the mobile communication module 350 may be set in the processor 310 .
- at least part of the functional modules of the mobile communication module 350 and at least part of the modules of the processor 310 may be set in the same device.
- the wireless communication module 360 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system, etc. (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
- 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 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 310 .
- the wireless communication module 360 can also receive the signal to be sent from the processor 310 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
- the antenna 1 of the electronic device is coupled to the mobile communication module 350, and the 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 technology.
- the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc.
- GSM global system for mobile communications
- general packet radio service general packet radio service
- CDMA code division multiple access
- WCDMA broadband Code division multiple access
- time division code division multiple access time-division code division multiple access
- TD-SCDMA time-division code division multiple access
- LTE long term evolution
- BT GNSS
- the electronic device realizes the display function through the GPU, the display screen 394 , and the application processor.
- GPU is a microprocessor for image processing, connected to display screen 394 and application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
- Processor 310 may include one or more GPUs that execute program instructions to generate or alter display information.
- the display screen 394 is used to display images, videos and the like.
- Display 394 includes a display panel.
- the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
- the electronic device may include 1 or N display screens 394, where N is a positive integer greater than 1.
- the display screen 394 may be used to display the interface of the electronic device.
- the electronic device can realize the shooting function through ISP, camera 393 , video codec, GPU, display screen 394 and application processor.
- the electronic device may include 1 or N cameras 393, where N is 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 and data processing of the electronic device by executing instructions stored in the internal memory 321 .
- the internal memory 321 may include an area for storing programs and an area for storing data.
- the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
- the storage data area can store data (such as audio data, phone book, etc.) created during the use of the electronic device.
- 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, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
- the acceleration sensor 380E can periodically collect acceleration data of the electronic device according to a certain frequency. For example, the acceleration of the electronic device in various directions (generally XYZ three-axis directions) can be collected.
- the structure of the electronic device may include fewer components than those shown in Figure 3.
- the structures may also include more structures than those shown in FIG. 3 , which is not limited here.
- a processor such as a sensorhub, a short-distance chip, and a baseband processor (also called a baseband chip) and other hardware are required It also requires the cooperation of applications using fences, such as NFC card package applications (such as smart flash card applications) and applications in system services (such as GPS applications, Wi-Fi applications).
- the software and hardware can be connected through the hardware connection layer.
- the process for the electronic device to automatically switch virtual cards may include: When a virtual card is used for the first time to complete a transaction, the short-range chip obtains GPS location information.
- the short-distance chip sends GPS positioning information to the smart flash card application through the sensorhub, hardware connection layer and GPS application.
- the smart flash card application builds a GPS fence, and sends the built GPS fence to the GPS application.
- the GPS application stores and manages the fence established by the smart flash card application. .
- the GPS application sends the established GPS fence to sensorhub. After that, the sensorhub can periodically obtain the GPS positioning information of the electronic device from the short-range chip.
- the sensorhub can include fence algorithms, such as GPS fence algorithms, cell fence algorithms, and Wi-Fi fence algorithms.
- the sensorhub obtains GPS location information from the short-distance chip, and uses the built-in fence algorithm, such as the GPS fence algorithm to determine whether the user enters the GPS fence.
- the sensorhub does not need to wake up the main processor of the electronic device when it is working, thereby achieving low-power fence capabilities.
- sensorhub determines that the user enters the GPS fence
- sensorhub sends the GPS fence that the user entered to the smart card application through the GPS application, so that the smart card activates the virtual card corresponding to the GPS fence according to the GPS fence that the user enters.
- the short-range chip can be used to obtain GPS positioning information, and can also be used to obtain Wi-Fi scanning information.
- the processor of the electronic device may not include a sensorhub, and the short-distance chip may include two chips, namely a GPS chip and a Wi-Fi chip, the GPS chip is used to obtain GPS positioning information, and the Wi-Fi
- the chip is used to obtain Wi-Fi scanning information, as shown in Figure 5, continue to take the application in the system service as the GPS application, and the fence established by the electronic device as the GPS fence as an example, the process of the electronic device to realize the automatic switching of the virtual card can be Including: when a user completes a transaction with a virtual card at a certain card swiping point for the first time, the GPS chip obtains GPS positioning information.
- the GPS chip sends the GPS positioning information to the smart flash card application through the hardware connection layer and the GPS application.
- the smart flash card application builds a GPS fence and sends the built GPS fence to the GPS application.
- the GPS application stores and manages the fence established by the smart flash card application.
- the GPS application sends the established GPS fence to the GPS chip.
- the GPS chip can periodically obtain GPS positioning information, and use its included GPS fence algorithm to determine whether the user enters the GPS fence.
- the GPS chip sends the GPS fence that the user entered to the smart flash card application through the GPS application.
- the GPS chip can work independently without waking up the main processor of the electronic device, thereby realizing low-power fence capability .
- the smart flash card activates the virtual card corresponding to the GPS fence.
- the method may include: a "fence establishment” process and a “virtual card switching” process.
- the "fence establishment" process may include the following S601-S605.
- the smart flash card application of the electronic device acquires a first virtual card.
- the user can open the virtual card on the electronic device, such as the smart flash card application of the electronic device. For example, the user may click on the option to activate immediately in the smart flash card application of the electronic device.
- the electronic device displays virtual card options that can be activated, such as public transportation card options. After that, the user can select the public transportation card and select the corresponding activation area.
- the electronic device successfully opens a public transportation card.
- the electronic device such as the smart flash card application of the electronic device, can obtain the first virtual card, and the first virtual card can be the virtual card opened by the electronic device.
- Electronic devices with NFC functions can include multiple virtual cards, such as community access cards, public transportation cards, smart door lock cards, and corresponding virtual cards for luggage, car keys, and ID cards, so as to meet different card swiping needs.
- virtual cards such as community access cards, public transportation cards, smart door lock cards, and corresponding virtual cards for luggage, car keys, and ID cards, so as to meet different card swiping needs.
- the electronic device when the user uses any virtual card to conduct transactions, the electronic device can establish a corresponding geographic fence.
- a card virtual card can establish one geo-fence or multiple geo-fences.
- the electronic device may establish a geographic fence corresponding to the public transportation card at bus stop A.
- the electronic device can establish a geographic fence corresponding to the public transportation card at the bus station B.
- the electronic device when the electronic device has many geo-fences corresponding to the subsequently established virtual card, the electronic device can delete some of the geo-fences according to the actual situation, such as the geo-fences that have not been used within a preset period of time, Electronic devices can remove this geofence.
- an electronic device such as the smart flash card application of an electronic device, can determine whether the established geo-fence has reached the corresponding validity period. The validity period can be set according to the actual situation. When the geo-fence reaches the corresponding validity period, the electronic device, such as the The smart flash card application can delete the geofence.
- some of the virtual cards have fixed card swiping points, and this kind of virtual card is called the first virtual card of a predetermined type in this embodiment, such as car keys, community access cards, public transportation cards, and smart door lock cards, etc. , and the corresponding card swiping points are generally fixed.
- the swiping points of some virtual cards are indeed not fixed, such as the corresponding virtual cards such as bags and ID cards.
- the swiping points of these virtual cards may change with different places of use.
- a corresponding geo-fence may be established for a virtual card with a fixed swiping point, that is, the first virtual card of a predetermined type.
- the electronic device cannot establish a geographic fence corresponding to the virtual card because the card swiping point is not fixed. Therefore, before the electronic device establishes the geographic fence corresponding to the virtual card, the electronic device, such as the smart flash card application of the electronic device, can first determine the virtual card with a fixed swiping point according to whether the swiping point of the virtual card is fixed, that is, the first type of the predetermined type.
- a virtual card so that when the electronic device uses a certain first virtual card to complete a transaction at a certain card swiping point for the first time, it can establish a geo-fence corresponding to the first virtual card.
- 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, if the swipe point of the community access control card is a community, the location of the swipe point is fixed, so when the type of the virtual card is a community access card, the electronic device can determine that the swipe point of the virtual card is fixed, that is, the community access card is a first virtual card of a predetermined type.
- the virtual card swiping point corresponding to the car key is the parking position of the vehicle.
- the electronic device can determine that the card swiping point of the virtual card is fixed, that is, the virtual card corresponding to the car key is the first virtual card of a predetermined type.
- the card swiping point of the virtual card corresponding to the ID card can be a bank, a company, or a home, that is, the position of the card swiping point of the virtual card corresponding to the ID card is not fixed.
- the electronic device may determine that the virtual card is not the first virtual card.
- the electronic device may save the identifier (such as AID) of the first virtual card in a corresponding list.
- the smart flash card application of the electronic device can determine the virtual card with a fixed swiping point, that is, the first virtual card of a predetermined type, and store the identifier corresponding to the first virtual card in the smart flash card list middle. Afterwards, the electronic device, such as the smart flash card application of the electronic device, can determine whether to subsequently establish a geofence corresponding to the first virtual card according to the list. For example, when a user uses a first virtual card in the smart flash card list to complete a transaction at a certain card swiping point for the first time, the smart flash card application of the electronic device may establish a geo-fence corresponding to the first virtual card. When the user completes the transaction with a virtual card in the list of non-smart flash cards, the smart flash card application of the electronic device does not need to establish a geo-fence.
- the process of establishing a geographic fence by the smart card application of the electronic device may include the following S602-S605.
- the smart flash card application of the electronic device obtains the current geographic location information and geographic location accuracy of the electronic device when a certain first virtual card is used to complete data interaction with the NFC card reader at a certain card swiping point for the first time.
- the electronic The device such as the smart flash card application of the electronic device, can establish a geographic fence corresponding to the first virtual card.
- the geo-fence corresponding to the first virtual card may be at least one of a GNSS geo-fence, a Cell geo-fence, or a Wi-Fi geo-fence.
- the GNSS geo-fence may include GPS geo-fence, GLONASS geo-fence, Beidou geo-fence, QZSS geo-fence or SBAS geo-fence, etc.
- the geographic fence corresponding to the first virtual card is an example of a GNSS geographic fence for schematic illustration.
- the GNSS geographic fence corresponding to the first virtual card can be the first GNSS fence in the embodiment of this application .
- GNSS geo-fences include GPS geo-fences, GLONASS geo-fences, Beidou geo-fences, QZSS geo-fences or SBAS geo-fences, etc.
- the specific type of the GNSS geo-fence is not limited in this application.
- a GNSS geo-fence is taken as a GPS geo-fence (hereinafter referred to as a GPS geo-fence) as an example for schematic illustration. That is, the current geographic location information of the electronic device in this application may be GPS location information, and the geographic location accuracy may be GPS accuracy.
- the electronic device When the electronic device uses the first virtual card to complete the data interaction with the NFC card reader corresponding to a certain card swiping point, the electronic device, such as the smart flash card application of the electronic device, can obtain the current GPS location information and GPS accuracy of the electronic device, so that A GPS fence corresponding to the first virtual card is established according to the current GPS location information and GPS accuracy of the electronic device.
- the electronic device such as the smart flash card application of the electronic device, can determine whether the user at a certain card swiping point manually selects a certain first virtual card from a plurality of first virtual cards to complete the transaction.
- the first virtual card is used to complete the transaction for the first time.
- the electronic device may include multiple first virtual cards.
- the user swipes the card for the first time at a certain card swiping point the user can manually select the first virtual card to be used from the multiple first virtual cards, so that the electronic device can The transaction is completed using the first virtual card selected by the user. That is, when the user manually selects the first virtual card that needs to be used from multiple first virtual cards to complete the transaction, the electronic device, such as the smart flash card application of the electronic device, can determine that the first virtual card is used for the first time at the card swiping point to complete the transaction. trade. For example, as shown in (c) in FIG.
- the first virtual card in the mobile phone includes a smart door lock card, a community access control card, and a public transportation card.
- a user can manually choose to use the public transportation card to complete the transaction among the community access control card, public transportation card and smart door lock card, that is, the mobile phone can determine that the user uses the public transportation card for the first time at the bus station.
- the public transport card completes the transaction.
- the electronic device When a user uses an electronic device to complete a transaction with a first virtual card at a certain card swiping point for the first time, that is, when the first virtual card completes data interaction with the NFC card reader, the electronic device, such as the smart flash card application in the electronic device, can The current GPS location information of the electronic device, such as latitude and longitude coordinates, and GPS accuracy (accuracy, acc) are obtained.
- the GPS location information of the electronic device is the GPS location information of the user.
- GPS accuracy defined as the radius with 68% confidence. That is to say, with the latitude and longitude coordinates obtained by the electronic device as the center and the precision acc as the radius of a circle, the probability that the current real position of the electronic device is located in the circle is 68%.
- the smart flash card application of the electronic device determines that the user manually selects a first virtual card from multiple first virtual cards to complete the transaction, and the smart flash card application can pass Applications in system services (such as GPS applications), hardware connection layer and sensorhub obtain GPS location information and GPS accuracy from short-distance chips.
- system services such as GPS applications
- hardware connection layer and sensorhub obtain GPS location information and GPS accuracy from short-distance chips.
- the above S602 may specifically include the following S6021-S6028.
- the smart flash card application determines that a certain first virtual card is used to complete data interaction with the NFC card reader at a certain card swiping point for the first time.
- the smart flash card application sends an acquisition notification to the GPS application.
- the acquisition notification is used to instruct the GPS application to acquire the current GPS location information and GPS accuracy of the electronic device.
- the GPS application sends an acquisition notification to the sensor hub.
- the GPS application After the GPS application receives the acquisition notification, it can send the acquisition notification to the sensorhub through the hardware connection layer.
- the sensor hub sends an acquisition notification to the short-distance chip.
- sensorhub After sensorhub receives the acquisition notification, it can send the acquisition notification to the short-distance chip.
- the short-distance chip sends the current GPS position information and GPS accuracy of the electronic device to the sensor hub.
- the sensor hub sends the current GPS location information and GPS accuracy of the electronic device to the GPS application.
- sensorhub After sensorhub receives the current GPS location information and GPS accuracy of the electronic device, it can send the current GPS location information and GPS accuracy of the electronic device to the GPS application through the hardware connection layer.
- the GPS application sends the current GPS location information and GPS accuracy of the electronic device to the smart flash card application.
- the smart flash card application receives current GPS location information and GPS accuracy of the electronic device.
- the smart flash card application of the electronic device establishes a geo-fence corresponding to the first virtual card according to the geographic location information and the geographic location accuracy.
- 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 other types of geo-fences, which are not limited in this embodiment of the present application.
- the GNSS geo-fence can be GPS geo-fence, GLONASS geo-fence, Beidou geo-fence, QZSS geo-fence or SBAS geo-fence.
- the specific type of the GNSS geo-fence is not limited in this application.
- the geographical fence corresponding to the first virtual card is taken as an example for schematic illustration.
- the geographic fence is a GPS fence
- the geographic location information is the GPS location information
- the geographic location accuracy is the GPS accuracy.
- the GPS fence can be a circular area with the acquired GPS location information as the center and a preset length as the radius.
- the electronic device such as the smart card application of the electronic device
- the smart card application can establish a center centered on the GPS location information and a preset length as the radius.
- the electronic device such as the smart flash card application of the electronic device, can establish two GPS fences corresponding to the first virtual card according to the GPS location information and GPS accuracy.
- the size of these two GPS fences is different, that is, a large fence and a small fence
- the large fence corresponding to the first virtual card can be the first fence in the embodiment of the present application
- the small fence corresponding to the first virtual card It may be the second fence in the embodiment of this application.
- the two GPS fences are two fences centered on the GPS location information and having different radii.
- the smart flash card application of the electronic device can establish a large fence and a small fence corresponding to the first virtual card .
- the radius of the large fence can be a preset length.
- the preset length can be set according to the actual situation, and the implementation of the present application is not limited thereto, for example, 1 kilometer.
- the radius of the small fence can be N times the GPS accuracy, and the radius of the small fence is smaller than the radius of the big fence.
- N can be set according to the actual situation, which is not limited in the implementation of the present application. For example, N is 5, and the GPS accuracy of 5 times is smaller than the radius of the large fence.
- the radius of the small fence is 5 times the GPS accuracy
- the probability that the user's real location is outside the range of the small fence when swiping the card is about one in a million, that is, the small fence can more accurately include the real location of the user when swiping the card. Location.
- the electronic device After the electronic device determines that the user enters the GPS fence, it takes 1-2 seconds until the electronic device activates the first virtual card corresponding to the GPS fence. In order to avoid that within this time period, the user has reached the card swiping point in the corresponding small fence, but the electronic device has not activated the first virtual card corresponding to the small fence, the electronic device, such as the smart flash card application of the electronic device, can Set the radius of the small fence to be greater than 50 meters and less than 500 meters. That is, when the 5 times GPS accuracy is less than 50 meters, the radius of the small fence can be set to 50 meters. When the 5 times GPS accuracy is greater than 500 meters, the radius of the small fence can be set to 500 meters. When the 5 times GPS accuracy is greater than 50 meters and less than 500 meters, the radius of the small fence can be set to 5 times the GPS accuracy.
- the GPS fence corresponding to the virtual card established by the electronic device may be less, or when the distance between different card swiping points is very far, the distance between the GPS fences corresponding to the virtual card established by the electronic device may It will be far away, and there will be no overlapping areas between the large fences corresponding to different virtual cards.
- the electronic device can accurately determine the virtual card that needs to be activated through the large fence, so that when the user enters the large fence, the electronic device selects the corresponding virtual card to activate, ensuring that the electronic device is activated before the user arrives at the card swiping point for transactions. The corresponding virtual card has been activated.
- a GPS fence corresponding to the first virtual card is established on the electronic device, and the GPS fence may be a large fence 02 .
- the electronic device can activate the first virtual card corresponding to the big fence 02, ensuring that the user arrives at the card swiping point corresponding to the big fence 02 before making a transaction , the electronic device has activated the corresponding first virtual card.
- the electronic device can keep the first virtual card corresponding to the large fence 02 in an activated state.
- the electronic device can remove the first virtual card corresponding to the big fence 02. Activate, and reactivate the default card.
- the electronic device determines that the user has been in the big fence 02 for more than a preset period of time, and the electronic device can activate the first virtual card corresponding to the big fence 02.
- the electronic device can also establish and store GNSS fences corresponding to other virtual cards
- the other virtual cards can be the first virtual card among the multiple virtual cards included in the electronic device. other virtual cards.
- the GNSS fence of this other virtual card can comprise: the second GNSS fence (such as GPS fence) corresponding to the second virtual card, and the second GNSS fence can comprise a large fence and a small fence, and the large fence corresponding to the second virtual card can be
- the third fence in the embodiment of the present application, the small fence corresponding to the second virtual card can be the fourth fence in the embodiment of the present application, the range of the large fence in the second GNSS fence is larger than the small fence in the second GNSS fence range.
- the electronic device can accurately determine the virtual card that needs to be activated through the small fence, so that the electronic device has automatically selected and activated the correct virtual card before the user arrives at the card swiping point to swipe the card.
- the GPS fences corresponding to different first virtual cards may overlap.
- the electronic device cannot determine which virtual card corresponding to the GPS fence is selected and activated.
- the smart flash card application of the electronic device establishes the GPS fence corresponding to the first virtual card (that is, the large fence and the small fence)
- the priorities of different GPS fences can be set for use in different GPS fences.
- the electronic device can select the corresponding first virtual card to activate.
- an electronic device such as a smart flash card of an electronic device
- the priority of the GPS fence is the same.
- the electronic device in the overlapping area cannot determine which corresponding first virtual card is selected and activated.
- a plurality of GPS fences 03 corresponding to the first virtual card are set up on the electronic device, and the GPS fence 03 is a large fence, which can also be For a small fence.
- the electronic device can activate the first virtual card corresponding to the GPS fence 03 .
- the electronic device cannot Determine which corresponding virtual card is selected and activated.
- the electronic device such as the smart flash card application of the electronic device, can also set the priorities of different first virtual cards for overlapping between the large fences corresponding to the different first virtual cards.
- the electronic device can select the corresponding first virtual card to activate in the area, or in the overlapping area between the small fences corresponding to the different first virtual cards and the small fences.
- the smart flash card application of the electronic device determines a plurality of first virtual cards
- different priorities may be set and saved for the plurality of first virtual cards.
- the first virtual card includes a community access control card, a public transportation card, and a white card (such as a smart door lock card).
- Electronic devices such as the smart flash card application of electronic devices, can set the priority of community access control cards higher than that of public transportation cards, and the priority of public transportation cards is higher than that of smart door lock cards.
- the electronic device determines that the user can hold the electronic device to enter the large fence corresponding to the community access control card and also enter the large fence corresponding to the public transportation card, since the priority of the community access control card is higher than that of the public transportation card, the electronic device can control the community access control.
- the card is activated.
- one GPS fence or more than two GPS fences can also be established.
- the radius of the two or more GPS fences varies.
- the GPS fence when a GPS fence is established, the GPS fence may be a circle centered on the GPS location information and with a preset length as the radius.
- the two or more GPS fences may be circles centered on GPS position information and with different preset lengths as radii.
- the GPS fence may also be a polygonal area with a plurality of geographic location coordinate points as vertices, and the vertices are connected.
- the electronic device can obtain a plurality of geographic location coordinate points, so as to establish a GPS fence corresponding to the swiping point of the first virtual card.
- the smart flash card application of the electronic device saves the geo-fence corresponding to the first virtual card.
- 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 other types of geo-fences, which are not limited in this embodiment of the present application.
- the GNSS geo-fence can be GPS geo-fence, GLONASS geo-fence, Beidou geo-fence, QZSS geo-fence or SBAS geo-fence.
- the specific type of the GNSS geo-fence is not limited in this application.
- the geographic fence corresponding to the first virtual card is taken as an example for schematic illustration.
- the electronic device After establishing the GPS fence corresponding to the first virtual card (that is, the large fence and the small fence), the electronic device, such as the smart flash card application in the electronic device, can store the first virtual card and the GPS fence correspondingly in the memory of the electronic device.
- the smart flash card application of the electronic device may store the correspondence between the identifier of the first virtual card and the identifier of the GPS fence in the memory of the electronic device.
- the identifier of the first virtual card may be the AID of the first virtual card, or may be the ID of the first virtual card.
- the identification of the GPS fence may be the ID of the GPS fence.
- Table 2 shows the correspondence between the identifier of the first virtual card stored in the memory of the electronic device and the identifier of the GPS fence.
- the cell access control card marked as ID1 corresponds to the GPS fences marked as ID2 and ID3, the GPS fence marked as ID2 is a large fence, and the GPS fence marked as ID3 is a small fence.
- the public transportation card marked as AID1 corresponds to the GPS fences marked as ID4 and ID5, the GPS fence of ID4 is a large fence, and the GPS fence marked as ID5 is a small fence.
- the smart door lock card marked as AID2 corresponds to the GPS fence marked as ID6 and ID7, the GPS fence of ID6 is a large fence, and the GPS fence marked as ID7 is a small fence.
- the electronic device such as the smart flash card application of the electronic device, may also delete the stored GPS fence corresponding to the first virtual card.
- an electronic device such as a smart flash card application of an electronic device, can determine whether the GPS fence corresponding to the stored first virtual card has reached the corresponding validity period, and the validity period can be set according to the actual situation.
- the electronic device such as the smart flash card application of the electronic device can remove the GPS fence.
- the electronic device such as the smart flash 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 can delete some of the GPS fences according to the actual situation, such as within a preset period of time. There is no GPS fence used, the electronic device can remove the GPS fence.
- the smart flash card application of the electronic device sends the geo-fence corresponding to the first virtual card to the sensor hub of the electronic device.
- 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 other types of geo-fences, which are not limited in this embodiment of the present application.
- the GNSS geo-fence can be GPS geo-fence, GLONASS geo-fence, Beidou geo-fence, QZSS geo-fence or SBAS geo-fence.
- the specific type of the GNSS geo-fence is not limited in this application.
- the geographic fence corresponding to the first virtual card is taken as an example for schematic illustration.
- the smart flash card application in the electronic device can store the information between the first virtual card identifier and the corresponding GPS fence identifier. Correspondence.
- the smart flash card application of the electronic device can also send the established GPS fence to the sensorhub of the electronic device.
- the above S605 may include the following S6051-S6053.
- the smart flash card application sends the geo-fence corresponding to the first virtual card to the application in the system service.
- 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 other types of geo-fences, which are not limited in this embodiment of the present application.
- the GNSS geo-fence can be GPS geo-fence, GLONASS geo-fence, Beidou geo-fence, QZSS geo-fence or SBAS geo-fence.
- the specific type of the GNSS geo-fence is not limited in this application.
- the geographic fence corresponding to the first virtual card is taken as an example for schematic illustration.
- the application in the system service may be a GPS application.
- the application in the system service may be a Wi-Fi application.
- the smart flash card application sends the GPS fence corresponding to the first virtual card (that is, a circle whose center is the corresponding GPS location information and whose radius is the corresponding length) and the identification of the GPS fence to the GPS application.
- the established GPS fence and the identification of the GPS fence are stored in the GPS application.
- the application in the system service sends the geo-fence corresponding to the first virtual card to the sensor hub.
- 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 other types of geo-fences, which are not limited in this embodiment of the present application.
- the GNSS geo-fence can be GPS geo-fence, GLONASS geo-fence, Beidou geo-fence, QZSS geo-fence or SBAS geo-fence.
- the specific type of the GNSS geo-fence is not limited in this application.
- the geographic fence corresponding to the first virtual card is taken as an example for schematic illustration.
- the application in the system service may be a GPS application.
- the application in the system service may be a Wi-Fi application.
- the GPS application After the GPS application receives the GPS fence corresponding to the first virtual card sent by the smart flash card application, the GPS application can send the GPS fence corresponding to the first virtual card (that is, the GPS fence and the identification of the GPS fence that has been established) to the sensorhub.
- the sensor hub receives the geo-fence corresponding to the first virtual card.
- 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 other types of geo-fences, which are not limited in this embodiment of the present application.
- the GNSS geo-fence can be GPS geo-fence, GLONASS geo-fence, Beidou geo-fence, QZSS geo-fence or SBAS geo-fence.
- the specific type of the GNSS geo-fence is not limited in this application.
- the geographic fence corresponding to the first virtual card is taken as an example for schematic illustration.
- the GPS fence corresponding to the first virtual card sent by the smart card application of the electronic device to the sensorhub may be the large fence corresponding to the first virtual card, or the small fence corresponding to the first virtual card, or the first virtual card.
- a virtual card corresponds to a large fence and a small fence.
- the electronic device such as the smart flash card application of the electronic device, can determine the type of GPS fence that the smart flash card application sends to the sensorhub according to the number of GPS fences stored in the electronic device.
- the smart flash card application of the electronic device can send the small fence corresponding to the first virtual card to the sensorhub.
- the smart flash card application of the electronic device can send the large fence corresponding to the first virtual card to the sensorhub.
- the smart flash card application of the electronic device can send the small fence corresponding to the first virtual card to sensorhub and a large fence.
- the electronic device such as the smart flash card application of the electronic device, can also send the identification of the GPS fence that needs to be deleted to the sensorhub of the electronic device, and the sensorhub can delete the GPS fence corresponding to the received GPS fence identification, thereby sensorhub no longer monitors whether the user enters the GPS fence.
- the electronic device can obtain the user's card at the corresponding card swiping point every preset period of time (such as 1 day, or 1 month). GPS location information and GPS accuracy, re-establish the GPS fence corresponding to the virtual card according to the GPS location information and GPS accuracy, and update the GPS fence stored in the electronic device.
- preset period of time such as 1 day, or 1 month.
- the electronic device After storing the GPS fence corresponding to the virtual card, the electronic device can periodically obtain the GPS location information of the electronic device, and determine the virtual card that needs to be activated according to the user's GPS location information and the corresponding relationship between the stored virtual card and the GPS fence , that is, the correct virtual card is automatically selected and activated before the user swipes the card.
- this process may be called a “virtual card switching” process.
- the “virtual card switching” process may include the following S901-S911.
- the sensor hub of the electronic device acquires current geographic location information of the electronic device.
- the current geographic location information of the electronic device may be GNSS location information, corresponding Cell information, corresponding Wi-Fi information, or other types of location 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. The specific type of GNSS location information is not limited in this application.
- the current geographic location information of the electronic device is taken as GPS location information as an example for schematic illustration.
- An electronic device such as a sensor hub (sensorhub) in the electronic device, may acquire current GPS location information of the electronic device in real time or periodically.
- the current GPS location information of the electronic device may be the current latitude and longitude coordinates of the electronic device.
- the sensorhub can obtain the user's GPS location information from the short-distance chip in real time or periodically.
- the above S901 may include the following S9011-S9012.
- the short-distance chip sends the current geographic location information of the electronic device to the sensor hub.
- the current geographic location information of the electronic device may be GNSS location information, corresponding Cell information, corresponding Wi-Fi information, or other types of location 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.
- the specific type of GNSS location information is not limited in this application.
- the current geographic location information of the electronic device is taken as GPS location information as an example for schematic illustration.
- the short-distance chip can send the current GPS location information of the electronic device to the sensorhub in real time or periodically.
- the sensor hub receives current geographic location information of the electronic device.
- the current geographic location information of the electronic device may be GNSS location information, corresponding Cell information, corresponding Wi-Fi information, or other types of location 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.
- the specific type of GNSS location information is not limited in this application.
- the current geographic location information of the electronic device is taken as GPS location information as an example for schematic illustration.
- the sensor hub of the electronic device determines whether the user enters the geofence according to the current geographic location information of the electronic device.
- the current geographic location information of the electronic device may be GNSS location information, corresponding Cell information, corresponding Wi-Fi information, or other types of location 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.
- the specific type of GNSS location information is not limited in this application.
- the geo-fence may be a GNSS geo-fence, a Cell geo-fence, a Wi-Fi geo-fence, or other types of geo-fences, which are not limited in this embodiment of the present application.
- the GNSS geo-fence can be GPS geo-fence, GLONASS geo-fence, Beidou geo-fence, QZSS geo-fence or SBAS geo-fence.
- the specific type of GNSS geo-fence is not limited in this application.
- the current geographic location information of the electronic device is taken as GPS location information as an example for schematic illustration. That is, the sensor hub of the electronic device determines whether the user enters the corresponding GPS fence according to the current GPS location information of the electronic device.
- the GPS position information of the electronic device is the GPS position information of the user. Therefore, according to the current GPS location information of the electronic device, that is, the current GPS location information of the user, that is, according to the current GPS location 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 position of the electronic device reaches the range of the GPS fence.
- the electronic device can determine whether the user enters the GPS fence according to the current GPS position information of the electronic device.
- the electronic device determines that the current latitude and longitude coordinates of the electronic device are within the range of a certain GPS fence, it is determined that the user has entered the GPS fence; when the user's latitude and longitude coordinates are not within the range of the GPS fence, it is determined that the user has not entered the GPS fence .
- the sensor hub of an electronic device can use a fence algorithm, such as the GPS fence algorithm, to determine whether the user has entered the GPS fence according to the current GPS location information of the electronic device. When it is determined that the user has entered the GPS fence, it can determine the GPS fence that the user entered logo.
- the user enters the GPS fence When the user enters the GPS fence, he may enter one GPS fence or multiple GPS fences.
- the user enters a GPS fence that is, the current GPS location information of the electronic device is within the range of a GPS fence, and the GPS fence can be a large fence or a small fence.
- the GPS fence can be a large fence or a small fence.
- the user enters a fence it may be that the user enters the first fence corresponding to the first virtual card, or it may be that the user enters the second fence corresponding to the first virtual card.
- the user enters multiple GPS fences, that is, the current GPS location information of the electronic device is located in the overlapping area of the GPS fences.
- the overlapping area can be the overlapping area of multiple small fences, or the overlapping area of multiple large fences, or it can be The overlapping area of multiple large fences and small fences.
- the user when the user enters the overlapping area of multiple fences, it may be that the user enters the overlapping area of the first fence corresponding to the first virtual card and the third fence corresponding to the second virtual card, or it may be that the user enters the first fence corresponding to the first virtual card.
- the overlapping area of the second fence and the fourth fence corresponding to the second virtual card can also be the overlapping area where the user enters the first fence corresponding to the first virtual card and the fourth fence corresponding to the second virtual card, or the user enters the fourth fence corresponding to the second virtual card.
- the overlapping area of the second fence corresponding to a virtual card and the fourth fence corresponding to the second virtual card when the user enters the overlapping area of multiple fences, it may be that the user enters the overlapping area of the first fence corresponding to the first virtual card and the third fence corresponding to the second virtual card, or it may be that the user enters the first fence corresponding to the first virtual card.
- An electronic device such as a sensor hub of an electronic device, can use a fence algorithm, such as a GPS fence algorithm, to determine whether the user has entered the GPS fence according to the current GPS location information of the electronic device, and determine whether the user has entered the GPS fence.
- a fence algorithm such as a GPS fence algorithm
- identities of the multiple GPS fences that the user has entered may be determined.
- the sensorhub of the electronic device can obtain the GPS location information of the user from the short-distance chip in real time. Since the sensorhub stores the established GPS fence (that is, the corresponding GPS location information as the center, the circle with the corresponding length as the radius) and the logo of the GPS fence, the GPS fence algorithm in the sensorhub determines based on the current GPS location information of the electronic device. Whether the user enters the GPS fence, and the identifier of the GPS fence that the user enters.
- the sign of the GPS fence that the sensorhub determines to be entered by the user may be a sign of a large fence or a sign of a small fence.
- the identifier of the GPS fence that the sensorhub determines to be entered by the user may be one or more.
- the electronic device can continue to obtain the current GPS location information of the electronic device, and determine whether the user has entered the GPS fence according to the current GPS location information of the electronic device, that is, the electronic device can re-execute the above-mentioned S901-S902.
- the electronic device when the electronic device determines that the user does not enter the range of the GPS fence, the electronic device, such as the smart flash card application of the electronic device, can keep the default card activated, or activate the default card.
- the default card stored in the electronic device is a smart door lock card.
- the electronic device determines that the user has left the GPS fence corresponding to the public transportation card according to the user's GPS location information, that is, the electronic device determines that the user has not entered the GPS fence, the electronic device can deactivate the public transportation card, and re-activate the default card (such as Smart door lock card) activation.
- the electronic device determines according to the user's GPS location information that the user enters the GPS fence corresponding to the default card (that is, the smart door lock card)
- the electronic device may keep the default card activated.
- the electronic device may still keep the default card activated.
- the electronic device such as the sensorhub of the electronic device, can use a fence algorithm, such as the GPS fence algorithm, to determine whether the user has left the GPS fence according to the current GPS location information of the electronic device, and if it is determined that the user has left the GPS fence , the identification of the GPS fence that the user leaves can be determined.
- the sensorhub of the electronic device can also use the GPS fence algorithm based on the current GPS location information of the electronic device to determine that the user has entered a certain GPS fence for more than the preset time. Determine the identity of the GPS fence that the user has entered for more than a preset duration.
- the electronic device may execute S903-S911.
- the sensor hub of the electronic device sends the identifier of the geo-fence entered by the user to the smart flash card application of the electronic device.
- the geo-fence entered by the user may be a GNSS geo-fence, a Cell geo-fence, a Wi-Fi geo-fence, or other types of geo-fences, which are not limited in this embodiment of the present application.
- the GNSS geo-fence can be GPS geo-fence, GLONASS geo-fence, Beidou geo-fence, QZSS geo-fence or SBAS geo-fence.
- the specific type of the GNSS geo-fence is not limited in this application.
- the identifier of the geo-fence may be an identifier corresponding to the GNSS geo-fence, may also be an identifier corresponding to the Cell geo-fence, and may also be an identifier corresponding to the Wi-Fi geo-fence.
- a GPS fence is taken as an example for a user to enter a geographic fence for schematic illustration. That is, the identifier of the geographical fence entered by the user is the identifier of the GPS fence entered by the user.
- the sensorhub of the electronic device can use the GPS fence algorithm to determine that when the user enters the GPS fence, the sensorhub of the electronic device can send the identification of one or more GPS fences that the user enters to the electronic device through the GPS application.
- Smart flash card application Smart flash card application.
- the above S903 may include the following S9031-S9032.
- the sensor hub When determining that the user has entered the geo-fence, the sensor hub sends the identifier of the geo-fence entered by the user to the application in the system service.
- the geo-fence entered by the user may be a GNSS geo-fence, a Cell geo-fence, a Wi-Fi geo-fence, or other types of geo-fences, which are not limited in this embodiment of the present application.
- the GNSS geo-fence can be GPS geo-fence, GLONASS geo-fence, Beidou geo-fence, QZSS geo-fence or SBAS geo-fence.
- the specific type of GNSS geo-fence is not limited in this application.
- the identifier of the geo-fence may be an identifier corresponding to the GNSS geo-fence, may also be an identifier corresponding to the Cell geo-fence, and may also be an identifier corresponding to the Wi-Fi geo-fence.
- the application in the system service may be a GPS application.
- the application in the system service may be a Wi-Fi application.
- a GPS fence is taken as an example for a user to enter a geographic fence for schematic illustration. That is, the identifier of the geographical fence entered by the user is the identifier of the GPS fence entered by the user, and the application in the system service is a GPS application.
- the sensorhub can send the identification of the GPS fence that the user enters to the GPS application through the hardware connection layer.
- the application in the system service sends the identifier of the geographical fence entered by the user to the smart card application.
- the geo-fence entered by the user may be a GNSS geo-fence, a Cell geo-fence, a Wi-Fi geo-fence, or other types of geo-fences, which are not limited in this embodiment of the present application.
- the GNSS geo-fence can be GPS geo-fence, GLONASS geo-fence, Beidou geo-fence, QZSS geo-fence or SBAS geo-fence.
- the specific type of GNSS geo-fence is not limited in this application.
- the identifier of the geo-fence may be an identifier corresponding to the GNSS geo-fence, may also be an identifier corresponding to the Cell geo-fence, and may also be an identifier corresponding to the Wi-Fi geo-fence.
- the application in the system service may be a GPS application.
- the application in the system service may be a Wi-Fi application.
- a GPS fence is taken as an example for a user to enter a geographic fence for schematic illustration. That is, the identifier of the geographical fence entered by the user is the identifier of the GPS fence entered by the user, and the application in the system service is a GPS application.
- the GPS application may send the identification of the GPS fence entered by the user to the smart flash card application.
- the electronic device when the electronic device determines whether the user leaves a certain GPS fence, the electronic device, such as the sensorhub of the electronic device, may send the identification of the GPS fence that the user leaves to the electronic device, such as the smart card application of the electronic device.
- the electronic device when the sensorhub of the electronic device determines that the user enters a certain GPS fence for more than a preset time, the electronic device, such as the sensorhub of the electronic device, sends the identification of the GPS fence that the user enters and the time that the user enters the GPS fence for more than a preset time to the electronic device, such as Smart flash card application for electronic devices.
- the sensorhub of the electronic device sends the identification of the GPS fence that the user enters to the smart flash card application of the electronic device.
- the electronic device determines that the time the user is in the large fence 02 exceeds the preset time length, and the electronic device can send the logo of the large fence and the user entering the large fence 02 beyond the preset time length Smart flash card application for electronic devices.
- the smart flash card application of the electronic device receives the identifier of the geofence entered by the user.
- the identifier of the geo-fence may be an identifier corresponding to the GNSS geo-fence, may also be an identifier corresponding to the Cell geo-fence, and may also be an identifier corresponding to the Wi-Fi geo-fence, which is not limited in this embodiment of the present application.
- a GPS fence is taken as an example for a user to enter a geographic fence for schematic illustration. That is, the identifier of the geographical fence entered by the user is the identifier of the GPS fence entered by the user.
- the smart flash card application of the electronic device determines whether the geofence entered by the user is one.
- the geo-fence entered by the user may be a GNSS geo-fence, a Cell geo-fence, a Wi-Fi geo-fence, or other types of geo-fences, which are not limited in this embodiment of the present application.
- the GNSS geo-fence can be GPS geo-fence, GLONASS geo-fence, Beidou geo-fence, QZSS geo-fence or SBAS geo-fence.
- the specific type of the GNSS geo-fence is not limited in this application.
- a GPS fence is taken as an example for a user to enter a geographic fence for schematic illustration.
- the electronic device such as the smart flash card application of the electronic device, can determine whether the user enters one or more GPS fences according to the number of received GPS fences entered by the user.
- the electronic device establishes multiple GPS fences 03 corresponding to the first virtual cards as an example.
- the sensorhub of the electronic device sends the identification of a GPS fence that the user enters to the smart flash card application of the electronic device.
- the sensorhub of the electronic device can determine that the user has entered multiple GPS fences 03, and the sensorhub of the electronic device can send the identification of the multiple GPS fences 03 to the smart flash card of the electronic device application, so that the smart flash card application of the electronic device can determine whether there are multiple GPS fences entered by the user.
- the electronic device may execute S906.
- the electronic device may execute S907-S911.
- the smart flash card application of the electronic device activates the virtual card corresponding to the geo-fence.
- the geo-fence entered by the user may be a GNSS geo-fence, a Cell geo-fence, a Wi-Fi geo-fence, or other types of geo-fences, which are not limited in this embodiment of the present application.
- the GNSS geo-fence can be GPS geo-fence, GLONASS geo-fence, Beidou geo-fence, QZSS geo-fence or SBAS geo-fence.
- the specific type of the GNSS geo-fence is not limited in this application.
- a GPS fence is taken as an example for a user to enter a geographic fence for schematic illustration. That is, the virtual card corresponding to the geographic fence is the virtual card corresponding to the GPS fence.
- the electronic device determines that the GPS fence that the user enters is one, the electronic device, such as the smart flash card application of the electronic device, can use the corresponding relationship between the identification of the virtual card stored in the memory of the electronic device and the identification of the GPS fence , activate the virtual card corresponding to the GPS fence.
- the smart flash card application of the electronic device receives the identification of the first fence or the second fence, that is, the location of the electronic device reaches the GPS fence corresponding to the first virtual card, and the smart flash card application of the electronic device can The corresponding relationship between the identifier of the virtual card stored in the memory of the device and the identifier of the GPS fence activates the first virtual card.
- the electronic device determines that the user enters the fence according to the current GPS location information of the electronic device. 1.
- the smart flash card application of the electronic device activates the virtual card corresponding to the fence 1 according to the corresponding relationship between the virtual card identifier stored in the electronic device and the GPS fence identifier.
- the electronic device determines that the GPS fence that the user enters is always fence 1 according to the current GPS location information of the electronic device, and the smart flash card application of the electronic device can keep fence 1 corresponding The virtual card of is active.
- the electronic device determines that only fence 2 is the only GPS fence entered by the user according to the current GPS location information of the electronic device, and the smart flash card application of the electronic device activates the virtual card corresponding to fence 2.
- the electronic device determines that the GPS fence entered by the user is always fence 2 according to the current GPS location information of the electronic device, and the smart flash card application of the electronic device can keep fence 2 corresponding The virtual card of is active.
- the electronic device determines that the user has not entered the GPS fence according to the current GPS location information of the electronic device.
- the smart flash card application of the electronic device can use Deactivate the virtual card corresponding to fence 2, and activate the default card.
- the electronic device may activate the virtual card corresponding to the GPS fence with the highest priority according to the priorities of the multiple GPS fences. For example, continuing to refer to (a) in Figure 10, taking the geofence that the user enters as a GPS fence as an example, when the user arrives at location B with the electronic device, the electronic device determines that the user enters the location according to the current GPS location information of the electronic device. In the overlapping area between fence 1 and fence 2, the smart flash card application of the electronic device can determine which fence corresponds to the virtual card that the user activates when fence 1 corresponds to the overlapping area of fence 2 according to the priority of fence 1 and fence 2. Specifically, the electronic device may execute S907-S911.
- the smart flash card application of the electronic device determines whether there is one geo-fence with the highest priority among the multiple geo-fences entered by the user.
- the geo-fence entered by the user may be a GNSS geo-fence, a Cell geo-fence, a Wi-Fi geo-fence, or other types of geo-fences, which are not limited in this embodiment of the present application.
- the GNSS geo-fence can be GPS geo-fence, GLONASS geo-fence, Beidou geo-fence, QZSS geo-fence or SBAS geo-fence.
- the specific type of the GNSS geo-fence is not limited in this application.
- a GPS fence is taken as an example for a user to enter a geographic fence for schematic illustration. That is, the smart flash card application of the electronic device determines whether there is one GPS fence with the highest priority among the multiple GPS fences entered by the user.
- the electronic device determines that there are multiple GPS fences that the user enters
- the electronic device such as the smart flash card application of the electronic device, can determine the priority among the multiple GPS fences that the user enters according to the preset priorities of different GPS fences. Whether the highest level GPS fence is one.
- the electronic device may execute S908.
- the electronic device determines that there are multiple GPS fences with the highest priority among the multiple GPS fences entered by the user, the electronic device can further activate the virtual card with the highest priority according to the priorities of the virtual cards corresponding to the multiple GPS fences .
- the electronic device may execute the following S909-S911.
- the smart flash card application of the electronic device activates the virtual card corresponding to the geographical fence with the highest priority.
- the geo-fence entered by the user may be a GNSS geo-fence, a Cell geo-fence, a Wi-Fi geo-fence, or other types of geo-fences, which are not limited in this embodiment of the present application.
- the GNSS geo-fence can be GPS geo-fence, GLONASS geo-fence, Beidou geo-fence, QZSS geo-fence or SBAS geo-fence.
- the specific type of the GNSS geo-fence is not limited in this application.
- a GPS fence is taken as an example for a user to enter a geographic fence for schematic illustration. That is, the geofence with the highest priority is the GPS fence.
- the electronic device When the electronic device determines that the GPS fence with the highest priority among the multiple GPS fences entered by the user is one, the electronic device, such as the smart card application of the electronic device, can activate the virtual card corresponding to the GPS fence with the highest priority. For example, when the electronic device determines that the user's GPS location information is located in the overlapping area of a large fence and a small fence, since the priority of the large fence is lower than that of the small fence, the smart flash card application of the electronic device can set the small fence For virtual card activation.
- the smart flash card application of the electronic device receives that the GPS fence entered by the user is the identification of the second fence, and the identification of the third fence, that is, the position of the electronic device reaches the small fence corresponding to the first virtual card, and the second virtual card Within the range of the corresponding large fence, since the second fence is a small fence and the third fence is a large fence, that is, the priority of the second fence is higher than that of the third fence, and the smart flash card application of the electronic device can set the first The virtual card is activated.
- the electronic device determines that the user enters the overlapping area between fence 1 and fence 2 according to the current GPS position information of the electronic device, and the smart flash card application of the electronic device can With the priority of fence 2, activate the virtual card corresponding to fence 2.
- the smart flash card application of the electronic device determines whether there is only one virtual card with the highest priority among the virtual cards corresponding to multiple geo-fences with the highest priority.
- the geo-fence entered by the user may be a GNSS geo-fence, a Cell geo-fence, a Wi-Fi geo-fence, or other types of geo-fences, which are not limited in this embodiment of the present application.
- the GNSS geo-fence can be GPS geo-fence, GLONASS geo-fence, Beidou geo-fence, QZSS geo-fence or SBAS geo-fence.
- the specific type of the GNSS geo-fence is not limited in this application.
- a GPS fence is taken as an example for a user to enter a geographic fence for schematic illustration. That is, multiple geofences with the highest priority are GPS fences.
- the electronic device determines that there are multiple GPS fences with the highest priority among the multiple GPS fences entered by the user
- the electronic device such as the smart flash card application of the electronic device, can determine the priority according to the priorities of different virtual cards preset. Whether the virtual card with the highest priority among the virtual cards corresponding to multiple GPS fences with the highest level is one.
- the electronic device determines that the virtual card with the highest priority is one of the virtual cards corresponding to multiple GPS fences with the highest priority
- the electronic device such as the smart flash card application of the electronic device, can activate the virtual card with the highest priority.
- the electronic device may execute the following S910.
- the electronic device may activate the virtual card corresponding to the GPS fence that the user enters last. Specifically, the electronic device may execute the following S911.
- the smart flash card application of the electronic device activates the virtual card with the highest priority.
- the geo-fence entered by the user may be a GNSS geo-fence, a Cell geo-fence, a Wi-Fi geo-fence, or other types of geo-fences, which are not limited in this embodiment of the present application.
- the GNSS geo-fence can be GPS geo-fence, GLONASS geo-fence, Beidou geo-fence, QZSS geo-fence or SBAS geo-fence.
- the specific type of the GNSS geo-fence is not limited in this application.
- a GPS fence is taken as an example for a user to enter a geographic fence for schematic illustration.
- the electronic device determines that there are multiple virtual cards with the highest priority
- the electronic device such as the smart flash card application of the electronic device, can activate the virtual card with the highest priority.
- the smart flash card application of the electronic device receives that the GPS fence entered by the user is the first fence, the third fence, or the second fence, and the fourth fence, that is, the location of the electronic device Reach the large fence corresponding to the first virtual card, and reach the range of the large fence corresponding to the second virtual card, or, the position of the electronic device reaches the small fence corresponding to the first virtual card, and reaches the small fence corresponding to the second virtual card
- the smart flash card application of the electronic device can determine the priority of the first virtual card and the priority of the second virtual card. In the case that the priority of the first virtual card is higher than that of the second virtual card, the smart flash card application of the electronic device can activate the first virtual card. In the case that the priority of the first virtual card is lower than that of the second virtual card, the smart flash card application of the electronic device can activate the second virtual card.
- the geographical fence entered by the user is a GPS fence
- the white card fence and the bus fence are all small fences
- the priority of the white card is lower than that of the public transportation card as an example.
- the electronic device determines that the user enters the overlapping area between the white card fence and the bus fence according to the current GPS location information of the electronic device.
- Both the white card fence and the bus fence are small fences. , that is, both the white card fence and the bus fence have the same priority
- the smart flash card application of the electronic device can further determine the priority of the virtual card corresponding to the white card fence and the bus fence, because the virtual card corresponding to the bus fence is the public transportation card.
- the priority is the highest, and the virtual card with the highest priority is one, and the smart flash card application of the electronic device can activate the public transportation card.
- the smart flash card application of the electronic device activates the virtual card corresponding to the last geofence entered by the user.
- the geo-fence entered by the user may be a GNSS geo-fence, a Cell geo-fence, a Wi-Fi geo-fence, or other types of geo-fences, which are not limited in this embodiment of the present application.
- the GNSS geo-fence can be GPS geo-fence, GLONASS geo-fence, Beidou geo-fence, QZSS geo-fence or SBAS geo-fence.
- the specific type of the GNSS geo-fence is not limited in this application.
- a GPS fence is taken as an example for a user to enter a geographic fence for schematic illustration.
- the electronic device determines that there are multiple virtual cards with the highest priority
- the electronic device such as the smart flash card application of the electronic device
- can obtain the mobile trend of the user that is, the mobile trend of the electronic device.
- the The virtual card corresponding to the GPS fence that the user entered last is activated.
- the position of the electronic device reaches the large fence corresponding to the first virtual card, and reaches the range of the large fence corresponding to the second virtual card, or, the position of the electronic device reaches the small fence corresponding to the first virtual card, and reaches the range of the second virtual card.
- the electronic device such as the smart flash card application of the electronic device
- the electronic device such as the smart flash card of the electronic device
- the application can obtain the mobile trend of the electronic device.
- the smart flash card application of the electronic device can set the The first virtual card is activated.
- the smart flash card application of the electronic device can activate the second virtual card.
- Electronic devices such as the sensorhub of the electronic device, can obtain GPS location information of the electronic device at different times from the short-distance chip, and determine the user's movement trend according to the GPS location information of the electronic device at different times.
- the smart flash card application of the electronic device determines that there are multiple virtual cards with the highest priority
- the smart flash card application of the electronic device obtains the user's movement trend from the sensorhub through the GPS application, and according to the user's mobile Trend, activate the virtual card corresponding to the GPS fence that the user entered last.
- Sensorhub can obtain GPS location information of electronic devices at different times from short-distance chips in real time or periodically, and determine the user's movement trend according to the GPS location information of electronic devices at different times.
- the geographical fence entered by the user is the GPS fence
- the white card fence 1 and the white card fence 2 are both small fences, that is, the priority of the white card fence 1 and the white card fence 2 is the same,
- the virtual cards corresponding to white card fence 1 and white card fence 2 have the same priority.
- the electronic device determines that the user enters the white card fence 1 according to the current GPS location information of the electronic device, and the electronic device activates the virtual card corresponding to the white card fence 1 .
- the electronic device determines that the user enters the overlapping area of white card fence 1 and white card fence 2 according to the current GPS location information of the electronic device.
- the virtual card corresponding to white card fence 1 has the same priority as the virtual card corresponding to white card fence 2.
- the electronic device such as the smart flash card application of the electronic device, can obtain the user's mobile trend from the sensorhub of the electronic device, that is, the user first enters the white card fence 1, from the white card fence 1 to the white card fence 1 and the white card
- the overlapping area of fence 2, that is to say, white card fence 2 is the GPS fence that the user enters last.
- the smart flash card application of the electronic device can activate the virtual card corresponding to the white card fence 2.
- the electronic device may also maintain the currently activated virtual card.
- the geographical fence entered by the user is the GPS fence
- the white card fence 1 and the white card fence 2 are both small fences, that is, the priority of the white card fence 1 and the white card fence 2
- the virtual cards corresponding to white card fence 1 and white card fence 2 have the same priority as an example.
- the electronic device determines that the user enters the white card fence 1 according to the current GPS position information of the electronic device, and the smart flash card application of the electronic device activates the virtual card corresponding to the white card fence 1.
- the electronic device determines that the user enters the overlapping area between white card fence 1 and white card fence 2 according to the current GPS location information of the electronic device. At this time, the electronic device, such as the smart flash card application of the electronic device, can keep the virtual card corresponding to the white card fence 1 in an activated state.
- the smart flash card application of the electronic device can obtain the electronic device from the short-distance chip through the application in the system service, the hardware connection layer and the sensorhub when the user uses a certain virtual card for the first time to conduct transactions at a certain card swiping point.
- Current geographic location information and geographic accuracy The smart flash card application establishes a geographic location fence corresponding to the virtual card according to the current geographic location information and geographic location accuracy of the electronic device.
- the sensorhub determines that the user has entered the geo-location fence according to the geo-location information of the electronic device obtained from the short-distance chip, the sensorhub sends the identification of the geo-location fence that the user entered to the smart flash card application.
- the smart flash card application can activate the virtual card corresponding to the geo-location fence. That is, before the user swipes the card, the smart flash card application of the electronic device can use the geographic location fence to automatically activate the corresponding virtual card. When faced with different card swiping requirements, it can avoid the need for users to manually select a virtual card, thereby reducing the time for swiping cards and improving user experience.
- the solution of the present application can establish a corresponding geo-fence according to the GPS position information in the geographic location information and the GPS accuracy in the geographic location accuracy, and the GPS location information can be obtained by using the short-distance chip of the electronic device.
- the short-distance chip is the standard configuration of electronic equipment, so even if the electronic equipment does not have the Wi-Fi fence capability, that is, the electronic equipment does not have the sensorhub, or the sensorhub of the electronic equipment does not have the Wi-Fi fence capability, such as the sensorhub does not include Wi-Fi
- the smart flash card application can still automatically activate the corresponding virtual card before the user swipes the card, which further improves the user experience.
- the solution of this application determines the virtual card that needs to be activated by judging the priority of multiple geographic fences and the priority of virtual cards corresponding to multiple geographic fences when the user enters the range of multiple geographic fences. . It can avoid the need for the user to manually select the virtual card to activate when the user enters the range of multiple geo-fences, thereby further reducing the time for swiping the card and improving the user experience.
- the virtual card switching method may include the following steps S1101-S1106.
- the electronic device acquires a first virtual card.
- the electronic device uses the first virtual card to complete the data interaction for the first time at the first card swiping point, the electronic device obtains the geographic location information and the geographic location accuracy of the electronic device.
- the geographic location information of the electronic device may be GNSS location information, corresponding Cell information, corresponding Wi-Fi information, or other types of location 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. The specific type of GNSS location information is not limited in this application.
- the location accuracy of the electronic device may be GNSS location accuracy, corresponding Cell accuracy, corresponding Wi-Fi accuracy, or other types of location accuracy, which is not limited in this embodiment of the present application.
- the GNSS position information can be GPS accuracy, GLONASS accuracy, Beidou accuracy, QZSS accuracy or SBAS accuracy, etc.
- the current geographic location information of the electronic device is GPS location information
- the geographic location accuracy is GPS accuracy as an example for schematic illustration.
- an electronic device uses a first virtual card to interact with an NFC card reader for the first time at a certain card-swiping point (such as the first card-swiping point), it can obtain the current GPS location information and the specific implementation method of GPS accuracy, which can be referred to The above implementation in S602. The embodiment of the present application will not be repeated here.
- the electronic device establishes and saves a geo-fence corresponding to the first virtual card according to the geographic location information and the geographic location accuracy.
- 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 other types of geo-fences, which are not limited in this embodiment of the present application.
- the GNSS geo-fence can be GPS geo-fence, GLONASS geo-fence, Beidou geo-fence, QZSS geo-fence or SBAS geo-fence.
- the specific type of the GNSS geo-fence is not limited in this application.
- the geographic fence corresponding to the first virtual card is taken as an example for schematic illustration.
- the electronic device establishes a GPS fence corresponding to the first virtual card according to the GPS location information and GPS accuracy, which may be a large fence, a small fence, or a large fence and a small fence.
- the electronic device acquires geographic location information of the electronic device.
- the geographic location information of the electronic device may be GNSS location information, corresponding Cell information, corresponding Wi-Fi information, or other types of location 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. The specific type of GNSS location information is not limited in this application.
- the current geographic location information of the electronic device is taken as GPS location information as an example for schematic illustration.
- the electronic device determines whether the user enters the geo-fence according to the geographic location information of the electronic device.
- the geographic location information of the electronic device may be GNSS location information, corresponding Cell information, corresponding Wi-Fi information, or other types of location 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. The specific type of GNSS location information is not limited in this application.
- the current geographic location information of the electronic device is taken as GPS location information as an example for schematic illustration.
- the geo-fence entered by the user may be a GNSS geo-fence, a Cell geo-fence, a Wi-Fi geo-fence, or other types of geo-fences, which are not limited in this embodiment of the present application.
- the GNSS geo-fence can be GPS geo-fence, GLONASS geo-fence, Beidou geo-fence, QZSS geo-fence or SBAS geo-fence.
- the specific type of the GNSS geo-fence is not limited in this application.
- a GPS fence is taken as an example for a user to enter a geographic fence for schematic illustration. That is, the electronic device determines whether the user enters the GPS fence according to the GPS location information of the electronic device.
- the electronic device may execute S1106.
- the electronic device determines that the user has not entered the GPS fence corresponding to the first virtual card, the electronic device can continue to obtain the GPS location information of the electronic device, and determine whether the user has entered the GPS fence according to the GPS location information of the electronic device, that is, the electronic The device may re-execute the above S1104.
- the electronic device activates the first virtual card corresponding to the geo-fence.
- the geo-fence entered by the user may be a GNSS geo-fence, a Cell geo-fence, a Wi-Fi geo-fence, or other types of geo-fences, which are not limited in this embodiment of the present application.
- the GNSS geo-fence can be GPS geo-fence, GLONASS geo-fence, Beidou geo-fence, QZSS geo-fence or SBAS geo-fence.
- the specific type of the GNSS geo-fence is not limited in this application.
- a GPS fence is taken as an example for a user to enter a geographic fence for schematic illustration.
- the electronic device activates the first virtual card corresponding to the GPS fence, which may include:
- the electronic device can activate the first virtual card corresponding to the GPS fence.
- the electronic device may further activate the first virtual card corresponding to the GPS fences according to the priorities of the GPS fences. For example, in the case of one of the GPS fences with the highest priority among the multiple GPS fences entered by the user, the electronic device may activate the first virtual card corresponding to the GPS fence with the highest priority among the multiple GPS fences entered by the user.
- the electronic device may further activate the first virtual card corresponding to the GPS fence according to the priority of the first virtual card. For example, in the case that there is one virtual card with the highest priority among the first virtual cards corresponding to multiple GPS fences with the highest priority entered by the user, the electronic device may activate the first virtual card with the highest priority.
- the electronic device can store the first virtual card corresponding to the GPS fence that the user entered last. activation.
- a geo-fence corresponding to the virtual card can be established according to the current geographic location information and geographic location accuracy of the electronic device.
- the electronic device can automatically activate the virtual card corresponding to the geographic fence, so that the user can use the virtual card to complete transactions. That is, before the user swipes the card, the electronic device can automatically activate the corresponding virtual card by using the geo-fence.
- the solution of the present application can establish a corresponding geo-fence according to the GPS position information in the geographic location information and the GPS accuracy in the geographic location accuracy, and the GPS location information can be obtained by using the short-distance chip of the electronic device.
- the short-distance chip is a standard configuration of electronic equipment, so even if the electronic equipment does not have the Wi-Fi fence capability, it can still realize the automatic activation of the corresponding virtual card before the user swipes the card, further improving the user experience.
- the solution of the present application determines the virtual card to be activated by judging the priorities of the multiple geographic fences and the priorities of the virtual cards corresponding to the multiple geographic fences when the user enters the scope of multiple geographic fences. It can avoid the need for the user to manually select the virtual card to activate when the user enters the range of multiple geo-fences, thereby further reducing the time for swiping the card and improving the user experience.
- the embodiments of the present application further provide a virtual card switching device.
- the device for switching virtual cards can be applied to electronic equipment to implement the methods in the foregoing embodiments.
- the functions of the device can be realized by hardware, and can also be realized by executing corresponding software by hardware.
- Hardware or software includes one or more modules corresponding to the above-mentioned functions.
- FIG. 12 shows a schematic structural diagram of a virtual card switching device 1200.
- the virtual card switching device 1200 may include: an acquisition module 1201, a creation module 1202, a storage module 1203, and an activation module 1204.
- the obtaining module 1201 can be used to obtain the GNSS position information and GNSS accuracy of the electronic device when the electronic device uses the first virtual card to complete the data interaction at the first card swiping point for the first time; the first virtual card is A virtual card among multiple virtual cards.
- the establishment module 1202 can be used to establish the first GNSS fence corresponding to the first virtual card according to the GNSS position information and the GNSS accuracy, the first GNSS fence includes the first fence and the second fence, and the range of the first fence is larger than the second fence range.
- the storage module 1203 may be configured to store the first GNSS fence corresponding to the first virtual card.
- the activation module 1204 may be configured to activate the first virtual card when the electronic device detects that the position of the electronic device is within the range of the first GNSS fence.
- the first fence is a circular area with the GNSS position information as the center and the preset length as the radius;
- the second fence is the GNSS position information as the center, and the GNSS accuracy of N times is A circular area with a radius;
- N is an integer greater than zero, and the preset length is greater than N times the GNSS accuracy.
- the establishment module 1202 can also be used to establish GNSS fences of other virtual cards except the first virtual card in multiple virtual cards; wherein, the GNSS fences of other virtual cards include: the second The second GNSS fence corresponding to the virtual card, the second GNSS fence includes a third fence and a fourth fence, and the range of the third fence is larger than the range of the fourth fence.
- the storage module 1203 may also be used to store the GNSS fences of other virtual cards except the first virtual card among the multiple virtual cards.
- the activating module 1204 is specifically configured to be used when the electronic device monitors that the position of the electronic device is within the range of the first GNSS fence, but not within the range of the GNSS fences of other virtual cards to activate the first virtual card.
- the activating module 1204 is specifically configured to, when the electronic device detects that the position of the electronic device reaches within the range of the second fence in the first GNSS fence and reaches the third fence in the second GNSS fence. If within the range of the fence, the first virtual card will be activated.
- the virtual card switching apparatus 1200 may further include: a determining module 1205 .
- the determining module 1205 may be configured to detect that the position of the electronic device is within the range of the first fence in the first GNSS fence and within the range of the third fence in the second GNSS fence, or monitor When the position of the electronic device reaches the range of the second fence in the first GNSS fence, and reaches the range of the fourth fence of the second GNSS fence, determine the first virtual The priority of the card is higher than the priority of the second virtual card.
- the activation module 1204 is specifically configured to activate the first virtual card.
- the acquiring module 1201 is further configured to acquire a movement trend of the electronic device.
- the activation module 1204 is further configured to activate the virtual card corresponding to the GNSS fence on the mobile trend.
- the preset length is 1 kilometer; N is 5; or, the GNSS accuracy of N times is greater than 50 meters and less than 500 meters.
- the GNSS includes the global satellite 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.
- units in the above device is only a division of logical functions, and may be fully or partially integrated into a physical entity or physically separated during actual implementation.
- the units in the device can all be implemented in the form of software called by the processing element; they can also be implemented in the form of hardware; some units can also be implemented in the form of software called by the processing element, and some units can be implemented in the form of hardware.
- each unit can be a separate processing element, or it can be integrated in a certain chip of the device. In addition, it can also be stored in the memory in the form of a program, which is called and executed by a certain processing element of the device. Function. In addition, all or part of these units can be integrated together, or implemented independently.
- the processing element described here may also be referred to as a processor, and may be an integrated circuit with a signal processing capability. In the process of implementation, each step of the above method or each unit above may be implemented by an integrated logic circuit of hardware in the processor element or implemented in the form of software called by the processing element.
- the units in the above device may be one or more integrated circuits configured to implement the above method, for example: one or more ASICs, or, one or more DSPs, or, one or more FPGAs, Or a combination of at least two of these integrated circuit forms.
- the processing element can be a general-purpose processor, such as a CPU or other processors that can call programs.
- these units can be integrated together and implemented in the form of a system-on-a-chip (SOC).
- the units of the above apparatus for implementing each corresponding step in the above method may be implemented in the form of a processing element scheduler.
- the apparatus may include a processing element and a storage element, and the processing element invokes a program stored in the storage element to execute the methods described in the above method embodiments.
- the storage element may be a storage element on the same chip as the processing element, that is, an on-chip storage element.
- the program for executing the above method may be stored in a storage element on a different chip from the processing element, that is, an off-chip storage element.
- the processing element invokes or loads a program from the off-chip storage element to the on-chip storage element, so as to invoke and execute the methods described in the above method embodiments.
- an embodiment of the present application may also provide an apparatus, such as an electronic device, which may include a processor, and a memory configured to store instructions executable by the processor.
- an electronic device which may include a processor, and a memory configured to store instructions executable by the processor.
- the processor When the processor is configured to execute the above instructions, the electronic device implements the virtual card switching method as described in the foregoing embodiments.
- the memory can be located inside the electronic device or outside the electronic device.
- the processor includes one or more.
- the unit of the apparatus that implements each step in the above method may be configured as one or more processing elements, and these processing elements may be set on the corresponding electronic equipment described above, 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 can be integrated together to form a chip.
- an embodiment of the present application further provides a chip, and the chip can be applied to the above-mentioned electronic device.
- the chip includes one or more interface circuits and one or more processors; the interface circuits and processors are interconnected through lines; the processor receives and executes computer instructions from the memory of the electronic device through the interface circuits, so as to implement the method described in the above embodiment Methods.
- An embodiment of the present application further provides a computer program product, including computer instructions for running the above-mentioned electronic device.
- the disclosed devices and methods may be implemented in other ways.
- the device embodiments described above are only illustrative.
- the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods.
- multiple units or components can be Incorporation or may be integrated into another device, or some features may be omitted, or not implemented.
- the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
- the unit described as a separate component may or may not be physically separated, and the component displayed as a unit may be one physical unit or multiple physical units, that is, it may be located in one place, or may be distributed to multiple different places . Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
- the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
- the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium.
- the software product is stored in a program product, such as a computer-readable storage medium, and includes several instructions to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all of the methods described in various embodiments of the present application. or partial steps.
- the aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.
- the embodiments of the present application may also provide a computer-readable storage medium on which computer program instructions are stored.
- the computer program instructions are executed by the electronic device, the electronic device is made to implement the virtual card switching method described in the foregoing method embodiments.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
- Navigation (AREA)
Abstract
本申请实施例公开了一种虚拟卡切换方法及电子设备,涉及电子设备领域,以简化用户使用虚拟卡刷卡的过程,降低刷卡的耗时,从而提高用户体验。具体方案为:在电子设备在第一刷卡点首次采用第一虚拟卡完成数据交互的情况下,电子设备获取电子设备的GNSS位置信息以及GNSS精度;第一虚拟卡为多个虚拟卡中的虚拟卡;电子设备根据GNSS位置信息以及GNSS精度,建立并存储第一虚拟卡所对应的第一GNSS围栏,第一GNSS围栏包括第一围栏和第二围栏,第一围栏的范围大于第二围栏的范围;在电子设备监测到电子设备的位置到达第一GNSS围栏的范围内的情况下,电子设备将第一虚拟卡激活。
Description
本申请要求于2021年05月28日提交国家知识产权局、申请号为202110592522.5、发明名称为“一种近场通信NFC卡片的切换方法”的中国专利申请的优先权,以及于2021年07月30日提交国家知识产权局、申请号为202110875764.5、发明名称为“一种虚拟卡切换方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及电子设备领域,尤其涉及一种虚拟卡切换方法及电子设备。
近场通信(near field communication,NFC)技术已逐步推广到小型化的电子设备中,如手机。在具备NFC功能的手机中,可以配置多张NFC虚拟卡,从而可以实现公交车刷卡、交易支付、门禁解锁等多种功能。
然而,在面对不同的刷卡需求时,用户需要手动选择虚拟卡,导致刷卡过程的较为繁琐,耗时较长。
发明内容
本申请实施例提供一种虚拟卡切换方法及电子设备,能够简化用户刷卡的过程,降低刷卡的耗时,从而提高用户体验。
为达到上述目的,本申请实施例采用如下技术方案:
第一方面,本申请实施例提供一种虚拟卡切换方法,应用于电子设备,该电子设备具备NFC功能。该虚拟卡切换方法可以包括:在电子设备在第一刷卡点首次采用第一虚拟卡完成数据交互的情况下,电子设备获取电子设备的GNSS位置信息以及GNSS精度;该第一虚拟卡为多个虚拟卡中的虚拟卡;电子设备根据GNSS位置信息以及GNSS精度,建立并存储该第一虚拟卡所对应的第一GNSS围栏,第一GNSS围栏包括第一围栏和第二围栏,第一围栏的范围大于第二围栏的范围;在电子设备监测到电子设备的位置到达该第一GNSS围栏的范围内的情况下,电子设备将该第一虚拟卡激活。
基于第一方面所述的方法,电子设备在某个刷卡点首次使用某个虚拟卡完成交易时,根据电子设备当前的GNSS位置信息,建立该虚拟卡对应的GNSS地理围栏。之后当用户持电子设备再次进入到该GNSS地理围栏的范围内时,电子设备可以自动将该GNSS地理围栏对应的虚拟卡激活。从而在面对不同的刷卡需求时,能够避免用户手动选择需要激活的虚拟卡,从而简化用户刷卡的过程,降低刷卡的时长,提升用户体验。且本申请的方案是根据GNSS位置信息,建立对应的地理围栏,GNSS位置信息可利用电子设备的短距离芯片来获取。而短距离芯片是电子设备的标准配置,因此即使电子设备不具备Wi-Fi围栏能力,仍然可以在用户刷卡前实现对应虚拟卡的自动激活,进一步提高了用户的使用体验。此外,本申请的方案通过建立虚拟卡对应的不同范围的围栏,可以准确的判断出用户是否进入相应的GNSS围栏的范围内,从而电 子设备可以准确的将用户进入的GNSS地理围栏对应的虚拟卡激活。
结合第一方面,在另一种可能的实现方式中,第一围栏为以GNSS位置信息为圆心,以预设长度为半径的圆形区域;第二围栏为以所述GNSS位置信息为圆心,以N倍的GNSS精度为半径的圆形区域;N为大于零的整数,预设长度大于N倍的GNSS精度。
基于该可能的实现方式,电子设备可以确定出大围栏的范围以及小围栏的范围,从而可以通过监测到电子设备的位置,确定电子设备是否到达大围栏的范围内或者小围栏的范围内。
结合第一方面,在另一种可能的实现方式中,电子设备还建立并存储了多个虚拟卡中除第一虚拟卡外的其他虚拟卡的GNSS围栏;其中,其他虚拟卡的GNSS围栏包括:第二虚拟卡所对应的第二GNSS围栏,第二GNSS围栏包括第三围栏和第四围栏,第三围栏的范围大于第四围栏的范围。
基于该可能的实现方式,在监测电子设备的位置到达其他虚拟卡的GNSS围栏的范围内时,可以自动将该GNSS地理围栏对应的虚拟卡激活,避免了在面对不同的刷卡需求时,用户需要手动选择需要激活的虚拟卡,从而能够进一步简化用户刷卡的过程,降低刷卡的时长,提升用户体验。
结合第一方面,在另一种可能的实现方式中,上述在电子设备监测到电子设备的位置到达第一GNSS围栏的范围内的情况下,电子设备将第一虚拟卡激活,可以包括:在电子设备监测到电子设备的位置到达第一GNSS围栏的范围内,且未到达其他虚拟卡的GNSS围栏的范围内的情况下,电子设备将第一虚拟卡激活。
基于该可能的实现方式,通过判断电子设备的位置是否到达一个GNSS围栏的范围内,可以提高电子设备激活的虚拟卡的准确性。
结合第一方面,在另一种可能的实现方式中,上述在电子设备监测到电子设备的位置到达第一GNSS围栏的范围内的情况下,电子设备将第一虚拟卡激活,可以包括:在电子设备监测到电子设备的位置到达第一GNSS围栏中的第二围栏的范围内,且到达第二GNSS围栏中的第三围栏的范围内的情况下,电子设备将第一虚拟卡激活。
基于该可能的实现方式,通过判断围栏的优先级,将优先级高的小围栏对应的虚拟卡激活,避免了在电子设备的位置到达多个围栏的范围内时,用户手动选择需要激活的虚拟卡,从而能够进一步简化用户刷卡的过程,降低刷卡的时长,提升用户体验。
结合第一方面,在另一种可能的实现方式中,上述在电子设备监测到电子设备的位置到达第一GNSS围栏的范围内的情况下,电子设备将第一虚拟卡激活,可以包括:在电子设备监测到电子设备的位置到达第一GNSS围栏中的第一围栏的范围内,且到达第二GNSS围栏中的第三围栏的范围内,或者,监测到电子设备的位置到达第一GNSS围栏中的第二围栏的范围内,且到达第二GNSS围栏的第四围栏的范围内的情况下,电子设备确定第一虚拟卡的优先级高于第二虚拟卡的优先级;电子设备将第一虚拟卡激活。
基于该可能的实现方式,通过进一步判断虚拟卡的优先级,将优先级高的虚拟卡激活,避免了在电子设备的位置到达多个围栏的范围内,且多个围栏的优先级相同时,用户手动选择需要激活的虚拟卡,从而能够进一步简化用户刷卡的过程,降低刷卡的 时长,提升用户体验。
结合第一方面,在另一种可能的实现方式中,上述虚拟卡切换方法还可以包括:在第一虚拟卡的优先级与第二虚拟卡的优先级相同的情况下,电子设备获取电子设备的移动趋势;电子设备将移动趋势上的GNSS围栏对应的虚拟卡激活。
基于该可能的实现方式,通过将电子设备的移动趋势激活对应的虚拟卡,避免了在电子设备的位置到达多个围栏的范围内,多个围栏的优先级相同,且虚拟卡的优先级也相同时,用户手动选择需要激活的虚拟卡,从而能够进一步简化用户刷卡的过程,降低刷卡的时长,提升用户体验。
结合第一方面,在另一种可能的实现方式中,第一虚拟卡具体为多个虚拟卡中预定类型的虚拟卡。
基于该可能的实现方式,通过第一虚拟卡为多个虚拟卡中预定类型的虚拟卡,可以在电子设备在某个刷卡点首次使用某个虚拟卡完成交易时,使电子设备快速确定出是否建立该虚拟卡对应的围栏。
结合第一方面,在另一种可能的实现方式中,预设长度为1千米;N为5;或,N倍的GNSS精度大于50米,且小于500米。
基于该可能的实现方式,电子设备可以准确的确定出大围栏的范围以及小围栏的范围,从而可以通过监测到电子设备的位置,准确的确定电子设备是否到达大围栏的范围内或者小围栏的范围内。
结合第一方面,在另一种可能的实现方式中,GNSS包括全球卫星定位***GPS、全球导航卫星***GLONASS,北斗卫星导航***BDS,准天顶卫星***QZSS或星基增强***SBAS。
基于该可能的实现方式,通过GNSS包括全球卫星定位***GPS、全球导航卫星***GLONASS,北斗卫星导航***BDS,准天顶卫星***QZSS或星基增强***SBAS,可以使电子设备建立虚拟卡对应的不同类型的GNSS围栏。
第二方面,本申请实施例提供一种虚拟卡切换装置,该虚拟卡切换装置可以应用于电子设备,用于实现上述第一方面中的方法。该虚拟卡切换装置的功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块,例如,获取模块、建立模块、存储模块和激活模块等。
其中,获取模块,可以用于在电子设备在第一刷卡点首次采用第一虚拟卡完成数据交互的情况下,获取电子设备的全球导航卫星***GNSS位置信息以及GNSS精度;第一虚拟卡为多个虚拟卡中的虚拟卡。建立模块,可以用于根据GNSS位置信息以及GNSS精度,建立第一虚拟卡所对应的第一GNSS围栏,第一GNSS围栏包括第一围栏和第二围栏,第一围栏的范围大于第二围栏的范围。存储模块,可以用于存储第一虚拟卡所对应的第一GNSS围栏。激活模块,可以用于在电子设备监测到电子设备的位置到达第一GNSS围栏的范围内的情况下,将第一虚拟卡激活。
结合第二方面,在另一种可能的实现方式中,第一围栏为以GNSS位置信息为圆心,以预设长度为半径的圆形区域;第二围栏为以GNSS位置信息为圆心,以N倍的GNSS精度为半径的圆形区域;N为大于零的整数,预设长度大于N倍的GNSS精度。
结合第二方面,在另一种可能的实现方式中,建立模块,还可以用于建立多个虚 拟卡中除第一虚拟卡外的其他虚拟卡的GNSS围栏;其中,其他虚拟卡的GNSS围栏包括:第二虚拟卡所对应的第二GNSS围栏,第二GNSS围栏包括第三围栏和第四围栏,第三围栏的范围大于第四围栏的范围。存储模块,还可以用于存储多个虚拟卡中除第一虚拟卡外的其他虚拟卡的GNSS围栏。
结合第二方面,在另一种可能的实现方式中,激活模块,具体用于在电子设备监测到电子设备的位置到达第一GNSS围栏的范围内,且未到达其他虚拟卡的GNSS围栏的范围内的情况下,将第一虚拟卡激活。
结合第二方面,在另一种可能的实现方式中,激活模块,具体用于在电子设备监测到电子设备的位置到达第一GNSS围栏中的第二围栏的范围内,且到达第二GNSS围栏中的第三围栏的范围内的情况下,将第一虚拟卡激活。
结合第二方面,在另一种可能的实现方式中,上述虚拟卡切换装置还可以包括:确定模块。确定模块,可以用于在电子设备监测到电子设备的位置到达第一GNSS围栏中的第一围栏的范围内,且到达第二GNSS围栏中的所述第三围栏的范围内,或者,监测到所述电子设备的位置到达所述第一GNSS围栏中的所述第二围栏的范围内,且到达所述第二GNSS围栏的所述第四围栏的范围内的情况下,确定第一虚拟卡的优先级高于第二虚拟卡的优先级。激活模块,具体用于将第一虚拟卡激活。
结合第二方面,在另一种可能的实现方式中,获取模块,还用于获取电子设备的移动趋势。激活模块,还用于将移动趋势上的GNSS围栏对应的虚拟卡激活。
结合第二方面,在另一种可能的实现方式中,预设长度为1千米;N为5;或,N倍的GNSS精度大于50米,且小于500米。
结合第二方面,在另一种可能的实现方式中,GNSS包括全球卫星定位***GPS、全球导航卫星***GLONASS,北斗卫星导航***BDS,准天顶卫星***QZSS或星基增强***SBAS。
第三方面,本申请实施例提供一种电子设备,包括:处理器,用于存储该处理器可执行指令的存储器。该处理器被配置为执行上述指令时,使得该电子设备实现如第一方面或第一方面的可能的实现方式中任一项所述的虚拟卡切换方法。
第四方面,本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序指令。当计算机程序指令被电子设备执行时,使得电子设备实现如第一方面或第一方面的可能的实现方式中任一项所述的虚拟卡切换方法。
第五方面,本申请实施例提供一种计算机程序产品,包括计算机可读代码,当所述计算机可读代码在电子设备中运行时,使得电子设备实现如第一方面或第一方面的可能的实现方式中任一项所述的虚拟卡切换方法。
应当理解的是,上述第二方面至第五方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。
图1为本申请实施例提供的NFC虚拟卡的应用场景示意图;
图2为本申请实施例提供的电子设备的显示界面示意图;
图3为本申请实施例提供的电子设备的结构示意图;
图4为本申请实施例提供的虚拟卡切换方法的框架示意图一;
图5为本申请实施例提供的虚拟卡切换方法的框架示意图二;
图6为本申请实施例提供的一种虚拟卡对应的地理围栏建立方法示意图;
图7为本申请实施例提供的地理围栏的示意图一;
图8为本申请实施例提供的地理围栏的示意图二;
图9为本申请实施例提供的一种虚拟卡切换方法示意图一;
图10为本申请实施例提供的虚拟卡切换的示意图;
图11为本申请实施例提供的一种虚拟卡切换方法示意图二;
图12为本申请实施例提供的一种虚拟卡切换装置的结构示意图。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请的描述中,除非另有说明,“多个”的含义是两个或两个以上。
目前,NFC技术已逐步推广到小型化的电子设备中。支持NFC功能的电子设备,如手机,可以在与NFC读卡器(如,销售点(point of sale,POS)机)靠近的情况下,与NFC读卡器进行数据交换,从而实现各类NFC功能,如刷卡、数据传递等。例如,如图1所示,手机101具有NFC功能,用户在乘坐公交车时,可以将手机101靠近公交车上的NFC读卡器102,从而手机101可以与公交车上的NFC读卡器102进行数据交换,即手机101完成乘坐公交费用的支付。
通常,支持NFC功能的电子设备可以包括用于实现近距离通信的应用程序(如,称为NFC应用)。NFC应用具备模拟非接触集成电路(integrated circuit,IC)卡的仿真功能。例如,NFC应用可以包括卡包应用、公交应用、银行类应用、门禁应用等。
每个NFC应用中包括至少一张虚拟卡,如,虚拟交通卡、虚拟门禁卡和虚拟银行卡等。每张虚拟卡可以对应一个标识,该标识可以为应用程序标识(applet identifier,AID),也可以为标识(identity,ID)。当虚拟卡支持AID识别时,该虚拟卡可以用AID来标识。而有些虚拟卡不支持AID识别,例如Mifare系列卡,如小区门禁卡,则可以用ID来标识。NFC应用的虚拟卡与标识之间的映射关系可以存储在电子设备的存储器中,还可以存储在云端。作为一种示例,以上述映射关系存储于电子设备的存储器中,NFC应用为卡包应用为例。在电子设备的存储器中存储的卡包应用的虚拟卡与标识之间的映射关系如表1所示。
表1
根据表1可知,在电子设备中,卡包应用可以包括多张不同类型的虚拟卡,如小区门禁卡、公共交通卡以及智能门锁卡。同时多张虚拟卡中有一张虚拟卡的激活状态为已激活,如标识为AID2的智能门锁卡的激活状态为已激活。
在电子设备接收到NFC场强信息(即电子设备靠近一NFC读卡器)的情况下,电子设备默认由已激活的虚拟卡与所靠近的NFC读卡器进行数据交互(即完成交易)。处于已激活的虚拟卡,往往是预先配置的默认卡。在NFC读卡器与默认卡匹配时,NFC读卡器与电子设备之间可数据交互成功。但是,NFC读卡器与默认卡不匹配时,就会出现数据交互失败。在NFC读卡器与默认卡不匹配时,需要用户手动选择正确的虚拟卡,才能实现与NFC读卡器的成功交互。
例如,以电子设备是手机为例。如图2中的(a)所示,手机的卡包应用中的默认卡是智能门锁卡,也即,处于已激活状态的虚拟卡为智能门锁卡。在手机靠近公交车的NFC读卡器时,手机可接收到包括标识(如,AID1)的指示信息。之后,手机可以利用默认卡与公交车上的NFC读卡器进行数据交互。如果此时用户启动手机的卡包应用,手机可显示图2中的(b)所示的刷卡界面201,用于提示用户正尝试以默认卡(即智能门锁卡)与NFC读卡器进行数据交互。当然,也可能是手机响应于接收到的指示信息亮屏,并显示卡包应用的界面,如,显示上述刷卡界面201。另外,手机还可比较指示信息中的标识(即,AID1)与默认卡的标识(即,AID2)是否相同。手机在确定两者不同时,可显示如图2中的(c)所示的刷卡界面202,并显示“刷卡失败,切换激活卡”的提示信息。之后,用户可手动选择正确的虚拟卡激活。如,手机接收到用户对公共交通卡的选择操作,作为响应,可以将当前处于激活状态的智能门锁卡去激活,并将公共交通卡激活。之后,手机再次靠近公交车上的NFC读卡器时,利用激活的公共交通卡与公交车上的NFC读卡器进行数据交互,即可执行金额扣除等操作,并通知公交车的NFC读卡器,完成刷卡。一般的,在完成刷卡之后,手机还可以将公共交通卡去激活,并重新激活默认卡(即,智能门锁卡)。
由此可知,在NFC读卡器与当前激活的虚拟卡,如默认卡不匹配时,即在面对不同的刷卡需求时,用户需要手动选择正确的虚拟卡激活,以便完成与NFC读卡器的数据交互。这样,导致刷卡过程的较为繁琐,时间较长。
相关技术中,利用无线保真(wireless fidelity,Wi-Fi)地理围栏实现用户刷卡前对应虚拟卡的自动激活。
地理围栏,是指在用户到达某一地理位置附近时,用户的手机可以将监测到的手机的经纬度坐标、手机扫描到的小区基站的标识或者手机扫描到的Wi-Fi信息(如Wi-Fi标识),与对该地理位置对应的位置信息、小区(Cell)基站的标识或者Wi-Fi信息进行匹配,匹配成功后手机可以确定用户进入该地理位置对应的地理围栏中。
地理围栏根据其监测数据的不同可以分为全球导航卫星***(global navigation satellite system,GNSS)地理围栏、Cell地理围栏以及Wi-Fi地理围栏。
GNSS地理围栏监测维度可以是手机的经纬度坐标。GNSS地理围栏的监测区域可 以是以某地理位置坐标点为中心,以一定长度为半径的圆形区域,也可以是以多个地理位置坐标点为顶点,各顶点连接起来的多边形区域。
Cell地理围栏的监测维度可以是手机扫描到的小区基站的标识。Cell地理围栏的监测区域可以是以一个或多个小区基站的信号覆盖范围。
Wi-Fi地理围栏的监测维度可以是手机扫描到的Wi-Fi信号。Wi-Fi地理围栏的监测区域可以是以一个或多个Wi-Fi信号覆盖范围。
在手机确定用户进入该地理位置对应的地理围栏中之后,可以触发该地理位置对应的围栏机制,从而执行与该地理位置对应围栏对应的操作,例如可以将该地理位置对应的卡片激活。
具体的,上述相关技术的方案是:在用户使用某虚拟卡进行交易时,手机根据该虚拟卡的标识,以及用户刷卡位置对应的Wi-Fi标识,设置Wi-Fi地理围栏,并保存该Wi-Fi地理围栏中的Wi-Fi标识与虚拟卡标识的对应关系。之后,手机可周期性的获取手机当前所处地理位置的Wi-Fi标识,并判断获取到的Wi-Fi标识与设置的W-iFi地理围栏中的Wi-Fi标识是否相同。当手机检测到获取到的Wi-Fi标识与Wi-Fi地理围栏中的Wi-Fi标识相同时,确定用户进入到该Wi-Fi地理围栏中。此时,手机可根据保存的对应关系,自动将该Wi-Fi地理围栏对应的虚拟卡激活,从而用户可以利用该激活的虚拟卡完成刷卡。即在用户刷卡前实现了对应虚拟卡的自动激活。
然而,上述方案的实现需要手机具备Wi-Fi地理围栏能力,如需要手机中的传感集线器(sensorhub)具备低功耗Wi-Fi地理围栏能力。在手机不具备Wi-Fi地理围栏能力时,无法实现虚拟卡对应Wi-Fi地理围栏的设置,也就无法在用户刷卡前自动激活对应的虚拟卡。这样,还是需要用户手动选择正确的虚拟卡激活。
针对上述问题,本申请实施例提供一种虚拟卡切换方法,应该于电子设备,该方法可以在用户在某个刷卡点首次使用某个虚拟卡完成交易时,根据电子设备当前的GNSS位置信息,建立该虚拟卡对应的GNSS地理围栏。之后当用户持电子设备再次进入到该GNSS地理围栏时,电子设备可以自动将该GNSS地理围栏对应的虚拟卡激活,从而用户可以利用该虚拟卡完成交易。即,在用户刷卡前,电子设备能够利用GNSS地理围栏自动激活对应虚拟卡。
这样,在面对不同的刷卡需求时,能够避免用户需要手动选择虚拟卡,从而降低刷卡的时长,提升用户体验。且本申请的方案是根据GNSS位置信息,建立对应的地理围栏,GNSS位置信息可利用电子设备的短距离芯片来获取。而短距离芯片是电子设备的标准配置,因此即使电子设备不具备Wi-Fi围栏能力,仍然可以在用户刷卡前实现对应虚拟卡的自动激活,进一步提高了用户的使用体验。
可以理解的是,GNSS可以包括全球卫星定位***(global positioning system,GPS),全球导航卫星***(global navigation satellite system,GLONASS),北斗卫星导航***(beidou navigation satellite system,BDS),准天顶卫星***(quasi-zenith satellite system,QZSS)和/或星基增强***(satellite based augmentation systems,SBAS)等。因此,本实施例中的GNSS地理围栏可以为GPS地理围栏、GLONASS地理围栏、北斗地理围栏、QZSS地理围栏或者SBAS地理围栏等。本申请中对GNSS地理围栏的具体类型并不进行限定。
为了便于理解,本申请以下实施例中以GNSS地理围栏为GPS地理围栏(以下简称GPS围栏)为例进行示意说明。即GPS围栏的监测维度可以是电子设备的经纬度坐标。GPS围栏的监测区域可以是以某地理位置坐标点为中心,以一定长度为半径的圆形区域,也可以是以多个地理位置坐标点为顶点,各顶点连接起来的多边形区域。
另外,在一些示例中,上述电子设备可以是手机、平板电脑、手持计算机,个人计算机(personal computer,PC),蜂窝电话,个人数字助理(personal digital assistant,PDA),可穿戴式设备等具有NFC功能的电子设备。本申请实施例在此对电子设备的具体形态不做限制。
示例地,以电子设备为手机为例,图3示出了本申请实施例提供的一种电子设备的结构示意图。
如图3所示,电子设备可以包括处理器310,外部存储器接口320,内部存储器321,通用串行总线(universal serial bus,USB)接口330,充电管理模块340,电源管理模块341,电池342,天线1,天线2,移动通信模块350,无线通信模块360,音频模块370,扬声器370A,受话器370B,麦克风370C,耳机接口370D,传感器模块380,按键390,马达391,指示器392,摄像头393,显示屏394,以及用户标识模块(subscriber identification module,SIM)卡接口395等。其中,传感器模块380可以包括压力传感器380A,陀螺仪传感器380B,气压传感器380C,磁传感器380D,加速度传感器380E,距离传感器380F,接近光传感器380G,指纹传感器380H,温度传感器380J,触摸传感器380K,环境光传感器380L,骨传导传感器380M等。
可以理解的是,本实施例示意的结构并不构成对电子设备的具体限定。在另一些实施例中,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器310可以包括一个或多个处理单元,例如:处理器310可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
本申请实施例中,处理器310还可以包括传感集线器(sensorhub)、短距离处理器(也可以称为短距离芯片)。短距离芯片可以用于获取GPS定位信息以及Wi-Fi扫描信息。在一些实施例中,短距离芯片可以包括两个芯片,即GPS芯片和Wi-Fi芯片,GPS芯片用于用于获取GPS定位信息,Wi-Fi芯片用于获取Wi-Fi扫描信息。
控制器可以是电子设备的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器310中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器310中的存储器为高速缓冲存储器。该存储器可以保存处理器310刚用过或循环使用的指令或数据。如果处理器310需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器310的等待时间,因而提高了***的效率。
在一些实施例中,处理器310可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
电子设备的无线通信功能可以通过天线1,天线2,移动通信模块350,无线通信模块360,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块350可以提供应用在电子设备上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块350可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块350可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块350还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块350的至少部分功能模块可以被设置于处理器310中。在一些实施例中,移动通信模块350的至少部分功能模块可以与处理器310的至少部分模块被设置在同一个器件中。
无线通信模块360可以提供应用在电子设备上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星***(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块360可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块360经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器310。无线通信模块360还可以从处理器310接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备的天线1和移动通信模块350耦合,天线2和无线通信模块360耦合,使得电子设备可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯***(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,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。
电子设备通过GPU,显示屏394,以及应用处理器等实现显示功能。GPU为图像 处理的微处理器,连接显示屏394和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器310可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏394用于显示图像,视频等。显示屏394包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备可以包括1个或N个显示屏394,N为大于1的正整数。
本申请实施例中,显示屏394可用于显示电子设备的界面。
电子设备可以通过ISP,摄像头393,视频编解码器,GPU,显示屏394以及应用处理器等实现拍摄功能。在一些实施例中,电子设备可以包括1个或N个摄像头393,N为大于1的正整数。
内部存储器321可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器310通过运行存储在内部存储器321的指令,从而执行电子设备的各种功能应用以及数据处理。内部存储器321可以包括存储程序区和存储数据区。其中,存储程序区可存储操作***,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备使用过程中所建立的数据(比如音频数据,电话本等)等。此外,内部存储器321可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
加速度传感器380E可按照一定频率,周期性地采集电子设备的加速度数据。比如,可采集电子设备在各个方向(一般为XYZ三轴方向)上的加速度大小。
当然,可以理解的,上述图3所示仅仅为电子设备的形态为手机时的示例性说明。若电子设备是平板电脑,手持计算机,PC,PDA,可穿戴式设备(如:智能手表、智能手环)等其他设备形态时,电子设备的结构中可以包括比图3中所示更少的结构,也可以包括比图3中所示更多的结构,在此不作限制。
可以理解的是,一般而言,电子设备功能的实现除了需要硬件的支持外,还需要软件的配合。
例如,在本申请的一些示例中,如图4所示,实现电子设备虚拟卡的自动切换,至少需要处理器,如sensorhub、短距离芯片以及基带处理器(也可以称为基带芯片)等硬件的支持,还需要使用围栏的应用,如NFC卡包应用(例如智闪卡应用)以及***服务中的应用(如GPS应用、Wi-Fi应用)等软件的配合。软件和硬件之间可通过硬件连接层连接。
其中,基于图4所示,以***服务中的应用为GPS应用,以及电子设备建立的地理围栏为GPS围栏为例,电子设备实现虚拟卡自动切换的过程可以包括:在用户在某个刷卡点首次使用某个虚拟卡完成交易时,短距离芯片获取GPS定位信息。短距离芯片通过sensorhub、硬件连接层及GPS应用将GPS定位信息发送给智闪卡应用。智闪 卡应用建立GPS围栏,并将建立的GPS围栏发送给GPS应用。GPS应用将智闪卡应用建立的围栏进行围栏存储和围栏管理。。GPS应用将建立的GPS围栏发送给sensorhub。之后,sensorhub可以周期性的从短距离芯片获取电子设备的GPS定位信息。sensorhub可以包括围栏算法,如GPS围栏算法、小区Cell围栏算法以及Wi-Fi围栏算法。sensorhub从短距芯片获取GPS位置信息,利用内置的围栏算法,如GPS围栏算法确定用户是否进入GPS围栏,sensorhub工作时不需要唤醒电子设备的主处理器,从而实现低功耗的围栏能力。在sensorhub确定用户进入GPS围栏时,sensorhub将用户进入的GPS围栏通过GPS应用发送给智闪卡应用,从而智闪卡根据用户进入的GPS围栏,将该GPS围栏对应的虚拟卡激活。
上述示例是以电子设备的处理器包括sensorhub,且短距离芯片为一个芯片为例进行说明的,即短距离芯片可以用于获取GPS定位信息,也可以用来获取Wi-Fi扫描信息。在另一中实施例中,电子设备的处理器可以不包括sensorhub,短距离芯片可以包括两个芯片,即GPS芯片和Wi-Fi芯片,GPS芯片用于用于获取GPS定位信息,Wi-Fi芯片用于获取Wi-Fi扫描信息,则如图5所示,继续以***服务中的应用为GPS应用,以及电子设备建立的围栏为GPS围栏为例,电子设备实现虚拟卡自动切换的过程可以包括:在用户在某个刷卡点首次使用某个虚拟卡完成交易时,GPS芯片获取GPS定位信息。GPS芯片通过硬件连接层及GPS应用将GPS定位信息发送给智闪卡应用。智闪卡应用建立GPS围栏,并将建立的GPS围栏发送给GPS应用。GPS应用将智闪卡应用建立的围栏进行围栏存储和围栏管理。GPS应用将建立的GPS围栏发送给GPS芯片。之后,GPS芯片可以周期性的获取GPS定位信息,并利用其包括的GPS围栏算法确定用户是否进入GPS围栏。在确定用户进入GPS围栏时,GPS芯片将用户进入的GPS围栏通过GPS应用发送给智闪卡应用,GPS芯片可独立工作,不需要唤醒电子设备的主处理器,从而实现低功耗的围栏能力。智闪卡根据用户进入的GPS围栏,将该GPS围栏对应的虚拟卡激活。
以下结合附图4对本申请实施例提供的虚拟卡的切换方法进行详细说明。其中,在本实施例中,该方法可以包括:“围栏建立”流程和“虚拟卡切换”流程。
如图6所示,“围栏建立”流程可以包括以下S601-S605。
S601、电子设备的智闪卡应用获取第一虚拟卡。
用户在使用电子设备上的虚拟卡时,可以在电子设备,如电子设备的智闪卡应用上开设虚拟卡。例如,用户可以点击电子设备的智闪卡应用中的立即开通选项。响应于用户的点击操作,电子设备显示可以开通的虚拟卡选项,例如公共交通卡选项。之后,用户可以选择公共交通卡,并选择对应的开通地区。响应于用户的选择操作,电子设备开设公共交通卡成功。
电子设备开设虚拟卡之后,电子设备,如电子设备的智闪卡应用可以获取第一虚拟卡,第一虚拟卡可以是电子设备开设的虚拟卡。
具有NFC功能的电子设备,可以包括多个虚拟卡,如小区门禁卡、公共交通卡、智能门锁卡以及箱包、车钥匙以及身份证等对应的虚拟卡,从而满足不同的刷卡需求。
对于电子设备中的虚拟卡,在用户使用任一个虚拟卡进行交易时,电子设备可以建立对应的地理围栏。一个卡虚拟卡可以建立一个地理围栏,也可以建立多个地理围 栏。例如,用户使用公共交通卡在公交站A进行刷卡时,电子设备可以建立公共交通卡在公交站A对应的地理围栏。当用户使用公共交通卡在公交站B进行刷卡时,电子设备可以建立公共交通卡在公交站B对应的地理围栏。
在一些实施例中,电子设备在后续建立的虚拟卡对应的地理围栏较多的情况下,电子设备可以根据实际情况,删除其中的一些地理围栏,如预设时长内没有使用过的地理围栏,电子设备可以删除该地理围栏。例如,电子设备,如电子设备的智闪卡应用可以确定建立的地理围栏是否达到对应的有效期,有效期可以根据实际情况设定,在地理围栏到达对应的有效期的情况下,电子设备,如电子设备的智闪卡应用可以删除该地理围栏。
上述虚拟卡中,有些虚拟卡的刷卡点固定,这种虚拟卡在本实施例中称为预定类型的第一虚拟卡,如,车钥匙、小区门禁卡、公共交通卡以及智能门锁卡等,其对应刷卡点一般都是固定的。而有些虚拟卡的刷卡点确是不固定的,如,箱包以及身份证等对应的虚拟卡,这些虚拟卡的刷卡点可能会随着使用地点的不同而发生变化。
在一些实施例中,由于地理围栏需要在一个固定的位置建立,因此,对于刷卡点固定的虚拟卡,即预定类型的第一虚拟卡,可以建立对应的地理围栏。而对于刷卡点不固定的虚拟卡,由于刷卡地点不固定,因此电子设备无法建立虚拟卡对应的地理围栏。因此,电子设备在建立虚拟卡对应的地理围栏之前,电子设备,如电子设备的智闪卡应用可以根据虚拟卡的刷卡地点是否固定,先确定出刷卡点固定的虚拟卡,即预定类型的第一虚拟卡,从而电子设备在某个刷卡点首次使用某个第一虚拟卡完成交易时,可以建立该第一虚拟卡对应的地理围栏。
在一些示例中,电子设备可以根据虚拟卡的类型确定虚拟卡是否为预定类型的第一虚拟卡。例如,对于小区门禁卡的刷卡点为小区,该刷卡点位置是固定不变的,因此当虚拟卡的类型为小区门禁卡时,电子设备可以确定该虚拟卡的刷卡点固定,即小区门禁卡为预定类型的第一虚拟卡。对于车钥匙对应的虚拟卡刷卡点为车辆停放位置,在车辆每天的停放位置固定的情况下,即用户每天上下班都在同一个位置使用车钥匙对应的虚拟卡开启车辆,该刷卡点位置是固定不变的,因此当虚拟卡的类型为车钥匙对应的虚拟卡时,电子设备可以确定该虚拟卡的刷卡点固定,即车钥匙对应的虚拟卡为预定类型的第一虚拟卡。
对于身份证对应的虚拟卡的刷卡点可以为银行,也可以为公司,还可以为家里,即身份证对应的虚拟卡的刷卡点位置并不固定,因此,当虚拟卡的类型为身份证对应的虚拟卡时,电子设备可以确定该虚拟卡不是第一虚拟卡。
在一些实施例中,电子设备在确定出第一虚拟卡之后,电子设备,如电子设备中的智闪卡应用可以将第一虚拟卡的标识(如AID)保存在相应的列表中。
例如,结合图4所示,电子设备的智闪卡应用可以确定出刷卡点固定的虚拟卡,即预定类型的第一虚拟卡,并将该第一虚拟卡对应的标识存储在智闪卡列表中。之后,电子设备,如电子设备的智闪卡应用可以根据该列表,确定后续是否建立对应第一虚拟卡的地理围栏。例如,用户在某个刷卡点首次使用智闪卡列表中的某个第一虚拟卡完成交易时,电子设备的智闪卡应用可以建立该第一虚拟卡对应的地理围栏。在用户使用非智闪卡列表中的虚拟卡完成交易时,电子设备的智闪卡应用可以不建立地理围 栏。
其中,电子设备的智闪卡应用建立地理围栏的过程可以包括以下S602-S605。
S602、电子设备的智闪卡应用在某个刷卡点首次采用某个第一虚拟卡与NFC读卡器完成数据交互时,获取电子设备当前的地理位置信息以及地理位置精度。
在用户使用上述第一虚拟卡首次在某个刷卡点(如称为第一刷卡点)完成交易,即采用该第一虚拟卡与某个刷卡点对应的NFC读卡器完成数据交互时,电子设备,如电子设备的智闪卡应用可以建立该第一虚拟卡对应的地理围栏。
第一虚拟卡对应的地理围栏可以是GNSS地理围栏、Cell地理围栏或者Wi-Fi地理围栏中的至少一种。GNSS地理围栏可以包括GPS地理围栏、GLONASS地理围栏、北斗地理围栏、QZSS地理围栏或者SBAS地理围栏等。
本申请中对GNSS地理围栏的具体类型并不进行限定。为了便于理解,本申请实施例中以第一虚拟卡对应的地理围栏为GNSS地理围栏为例进行示意说明,该第一虚拟卡对应的GNSS地理围栏可以为本申请实施例中的第一GNSS围栏。
由于GNSS地理围栏包括GPS地理围栏、GLONASS地理围栏、北斗地理围栏、QZSS地理围栏或者SBAS地理围栏等。本申请中对GNSS地理围栏的具体类型并不进行限定。为了便于理解,本申请以下实施例中以GNSS地理围栏为GPS地理围栏(以下简称GPS围栏)为例进行示意说明。即本申请中电子设备当前的地理位置信息可以为GPS位置信息,地理位置精度可以为GPS精度。
在电子设备采用第一虚拟卡与某个刷卡点对应的NFC读卡器完成数据交互时,电子设备,如电子设备的智闪卡应用可以获取电子设备当前的GPS位置信息及GPS精度,从而可以根据电子设备当前的GPS位置信息及GPS精度建立该第一虚拟卡对应的GPS围栏。
其中,电子设备,如电子设备的智闪卡应用可以通过确定在某个刷卡点用户是否手动从多个第一虚拟卡中选择某个第一虚拟卡完成交易,来确定在该刷卡点是否是首次采用该第一虚拟卡完成交易。
可以理解的,电子设备可以包括多个第一虚拟卡,用户在某个刷卡点首次刷卡时,用户可以手动从多个第一虚拟卡中选择出需要使用的第一虚拟卡,从而电子设备可以利用该用户选择的第一虚拟卡完成交易。即当用户手动从多个第一虚拟卡中选择需要使用的第一虚拟卡完成交易时,电子设备,如电子设备的智闪卡应用可以确定在该刷卡点是首次采用该第一虚拟卡完成交易。例如,结合图2中的(c)所示,手机中的第一虚拟卡包括智能门锁卡、小区门禁卡以及公共交通卡。用户首次在某个公交车站乘坐公交车时,用户可以在小区门禁卡、公共交通卡以及智能门锁卡中手动选择使用公共交通卡来完成交易,即手机可以确定用户在该公交站首次采用该公共交通卡完成交易。
在用户使用电子设备在某个刷卡点首次采用某个第一虚拟卡完成交易,即该第一虚拟卡与NFC读卡器完成数据交互时,电子设备,如电子设备中的智闪卡应用可以获取到电子设备当前的GPS位置信息,如经纬度坐标,以及GPS精度(accuracy,acc)。当用户持电子设备移动时,电子设备的GPS位置信息,即用户的GPS位置信息。
GPS精度,定义为68%置信度的半径。也就是说,以电子设备获取的经纬度坐标 为中心,精度acc为半径的圆,电子设备当前的真实位置位于该圆中的概率为68%。
例如,结合图4中的示例,在某个刷卡点,电子设备的智闪卡应用确定用户是手动从多个第一虚拟卡中选择某个第一虚拟卡完成交易,智闪卡应用可以通过***服务中的应用(如GPS应用)、硬件连接层以及sensorhub,从短距离芯片中获取GPS位置信息以及GPS精度。具体的,上述S602可以具体包括下述S6021-S6028。
S6021、智闪卡应用确定在某个刷卡点首次采用某个第一虚拟卡与NFC读卡器完成数据交互。
S6022、智闪卡应用向GPS应用发送获取通知。
获取通知用于指示GPS应用获取电子设备当前的GPS位置信息以及GPS精度。
S6023、GPS应用向传感集线器发送获取通知。
GPS应用收到获取通知之后,可通过硬件连接层向sensorhub发送获取通知。
S6024、传感集线器向短距离芯片发送获取通知。
sensorhub收到获取通知之后,可以向短距离芯片发送获取通知。
S6025、短距离芯片向传感集线器发送电子设备当前的GPS位置信息以及GPS精度。
S6026、传感集线器向GPS应用发送电子设备当前的GPS位置信息以及GPS精度。
sensorhub收到电子设备当前的GPS位置信息以及GPS精度之后,可以通过硬件连接层向GPS应用发送电子设备当前的GPS位置信息以及GPS精度。
S6027、GPS应用向智闪卡应用发送电子设备当前的GPS位置信息以及GPS精度。
S6028、智闪卡应用接收电子设备当前的GPS位置信息以及GPS精度。
S603、电子设备的智闪卡应用根据地理位置信息以及地理位置精度,建立第一虚拟卡对应的地理围栏。
第一虚拟卡对应的地理围栏可以是GNSS地理围栏,也可以为Cell地理围栏,还可以为Wi-Fi地理围栏,还可以为其他类型的地理围栏,本申请实施例对此并不进行限定。GNSS地理围栏可以为GPS地理围栏、GLONASS地理围栏、北斗地理围栏、QZSS地理围栏或者SBAS地理围栏等。本申请中对GNSS地理围栏的具体类型并不进行限定。
为了便于理解,本申请以下实施例中以第一虚拟卡对应的地理围栏为GPS围栏为例进行示意说明。在地理围栏为GPS围栏时,地理位置信息即为GPS位置信息,地理位置精度即为GPS精度。
GPS围栏可以为以获取的GPS位置信息为中心,以预设长度为半径的圆形区域。例如,结合图4所示,在电子设备,如电子设备的智闪卡应用获取到GPS位置信息以及GPS精度之后,智闪卡应用可以建立以GPS位置信息为中心,以预设长度为半径的GPS围栏,该GPS围栏与第一虚拟卡对应。
可以理解的,在GPS围栏的半径过大时,不同GPS围栏容易存在重叠的区域。而在用户持电子设备进入该重叠区域内时,电子设备并不能确定将哪个GPS围栏对应的虚拟卡激活。在GPS围栏的半径过小时,用户刷卡时的真实位置可能位于GPS围栏之外,导致在用户刷卡前,电子设备也不能自动选到正确的虚拟卡并激活。
因此,在本申请一些实施例中,电子设备,如电子设备的智闪卡应用可以根据GPS 位置信息以及GPS精度,建立第一虚拟卡对应的两个GPS围栏。其中,这两个GPS围栏的大小不同,即一个大围栏和一个小围栏,该第一虚拟卡对应的大围栏可以为本申请实施例中的第一围栏,该第一虚拟卡对应的小围栏可以为本申请实施例中的第二围栏。如,这两个GPS围栏是以GPS位置信息为中心,半径不同的两个围栏。也就是说,对于一个第一虚拟卡,当用户首次使用该第一虚拟卡在某个刷卡点完成交易时,电子设备的智闪卡应用可以建立该第一虚拟卡对应的大围栏以及小围栏。
其中,大围栏的半径可以为预设长度。该预设长度可以根据实际情况设定,本申请实施对此并不限定,例如1千米。小围栏的半径可以为GPS精度的N倍,且小围栏的半径小于大围栏的半径。N可以根据实际情况设定,本申请实施对此并不限定,例如N为5,且5倍的GPS精度小于大围栏的半径。
其中,当小围栏的半径为5倍的GPS精度时,用户刷卡时的真实位置位于小围栏的范围之外的概率约百万分之一,即小围栏可以较为准确的包括用户刷卡时的真实位置。
在电子设备确定用户进入GPS围栏,到电子设备将该GPS围栏对应的第一虚拟卡激活,需要1~2s的时间。为了避免在该时间段内,用户已经到达了对应的小围栏内的刷卡点,而电子设备并没有将该小围栏对应的第一虚拟卡激活,电子设备,如电子设备的智闪卡应用可以将小围栏的半径设置为大于50米,且小于500米。即当5倍的GPS精度小于50米时,可以将小围栏的半径设置为50米。当5倍的GPS精度大于500米时,可以将小围栏的半径设置为500米。当5倍的GPS精度大于50米,且小于500米时,可以将小围栏的半径设置为5倍的GPS精度。
在用户的刷卡点较少时,电子设备建立的虚拟卡对应的GPS围栏可能会较少,或者不同刷卡点之间距离很远时,电子设备建立的虚拟卡对应的GPS围栏之间的距离可能会很远,不同虚拟卡对应的大围栏之间不会有重叠区域。此时,电子设备通过大围栏即可以准确的确定出需要激活的虚拟卡,从而在用户进入大围栏时,电子设备即选择对应的虚拟卡激活,保证了用户到达刷卡点进行交易之前,电子设备已经将对应的虚拟卡激活。
例如,结合图7所示,以第一虚拟卡对应的地理围栏是GPS围栏为例,在电子设备建立了一个第一虚拟卡对应的GPS围栏,该GPS围栏可以为大围栏02。当用户01持电子设备到达位置A时,即用户持电子设备进入大围栏02,电子设备可以将大围栏02对应的第一虚拟卡激活,保证了用户到达大围栏02对应的刷卡点进行交易之前,电子设备已经将对应的第一虚拟卡激活。当用户01持电子设备从位置A时移动到位置B时,用户一直在大围栏02的范围内,电子设备可以保持大围栏02对应的第一虚拟卡为激活状态。当用户01持电子设备到达位置B时,即用户持电子设备离开大围栏02,在大围栏02对应的第一虚拟卡不是默认卡时,电子设备可以将大围栏02对应的第一虚拟卡去激活,并重新激活默认卡。
在一些示例中,继续结合图7所示,以第一虚拟卡对应的地理围栏是GPS围栏为例,在用户持电子设备到达位置A时,即用户持电子设备进入大围栏02,当用户01持电子设备从位置A到达位置C时,电子设备确定用户位于大围栏02的时间超过预设时长,电子设备可以将大围栏02对应的第一虚拟卡激活。
需要说明的是,电子设备,如电子设备的智闪卡应用还可以建立并存储了其他虚拟卡对应的GNSS围栏,该其他虚拟卡可以为电子设备包括的多个虚拟卡中除第一虚拟卡外的其他虚拟卡。该其他虚拟卡的GNSS围栏可以包括:第二虚拟卡所对应的第二GNSS围栏(如GPS围栏),第二GNSS围栏可以包括大围栏和小围栏,该第二虚拟卡对应的大围栏可以为本申请实施例中的第三围栏,该第二虚拟卡对应的小围栏可以为本申请实施例中的第四围栏,第二GNSS围栏中的大围栏的范围大于第二GNSS围栏中的小围栏的范围。第二虚拟卡可以为一个,也可以为多个,本申请实施例对此并不进行限定。
在用户的刷卡点较多时,电子设备建立的GPS围栏可能会较多,或者不同刷卡点之间距离较近,即电子设备建立的GPS围栏之间的距离可能会较近,不同虚拟卡对应的大围栏之间可能会存在有重叠区域。而不同虚拟卡对应的小围栏之间存在重叠区域的可能性较小。此时,电子设备通过小围栏可以较为准确的确定出需要激活的虚拟卡,从而用户在到达刷卡点进行刷卡前,电子设备已经自动选到正确的虚拟卡并激活。
可以理解的是,不同的第一虚拟卡对应的GPS围栏可能会存在重叠区域,例如第一虚拟卡1对应的大围栏和第一虚拟卡2对应的小围栏存在重叠区域,或第一虚拟卡3对应的大围栏和第一虚拟卡4对应的大围栏存在重叠区域,或第一虚拟卡5对应的小围栏和第一虚拟卡6对应的小围栏可能存在重叠区域。在重叠区域内电子设备并不能确定选择哪个GPS围栏对应的虚拟卡并激活。
因此,在本实施例中,在电子设备的智闪卡应用建立了第一虚拟卡对应的GPS围栏(即大围栏和小围栏)之后,可以设置不同GPS围栏的优先级,用于在不同第一虚拟卡对应的GPS围栏的重叠区域内,电子设备能够选择对应的第一虚拟卡激活。
例如,电子设备,如电子设备的智闪卡可以设置大围栏的优先级低于小围栏的优先级,从而在用户持电子设备进入不同第一虚拟卡对应的大围栏与小围栏的重叠区域时,电子设备可以将小围栏对应的虚拟卡激活。
而在用户持电子设备进入不同第一虚拟卡对应的大围栏与大围栏的重叠区域,或者,不同第一虚拟卡对应的小围栏与小围栏的重叠区域时,GPS围栏的优先级相同,在该重叠区域内电子设备并不能确定选择哪个对应的第一虚拟卡并激活。
例如,如图8所示,以第一虚拟卡对应的地理围栏是GPS围栏为例,在电子设备建立了多个第一虚拟卡对应的GPS围栏03,该GPS围栏03为大围栏,也可以为小围栏。当用户01持电子设备到达位置A时,即用户持电子设备进入一个GPS围栏03,电子设备可以将该GPS围栏03对应的第一虚拟卡激活。而当用户01持电子设备到达位置B时,即用户进入多个GPS围栏03的重叠区域,多个GPS围栏03均为大围栏,或者均为小围栏时,在该重叠区域内电子设备并不能确定选择哪个对应的虚拟卡并激活。
因此,在本实施例中,电子设备,如电子设备的智闪卡应用还可以设置不同的第一虚拟卡的优先级,用于在不同的第一虚拟卡对应的大围栏与大围栏的重叠区域,或者不同的第一虚拟卡对应的小围栏与小围栏的重叠区域内,电子设备能够选择对应的第一虚拟卡激活。
例如,电子设备的智闪卡应用确定出多个第一虚拟卡之后,可以将该多个第一虚 拟卡设置不同的优先级并保存。例如,第一虚拟卡包括小区门禁卡、公共交通卡以及白卡(如智能门锁卡)。电子设备,如电子设备的智闪卡应用可以设置小区门禁卡的优先级高于公共交通卡的优先级,公共交通卡的优先级高于如智能门锁卡的优先级。即在电子设备确定可以用户持电子设备进入小区门禁卡对应的大围栏,同时也进入公共交通卡对应的大围栏时,由于小区门禁卡的优先级高于公共交通卡,电子设备可以将小区门禁卡激活。
需要说明的是,电子设备根据GPS位置信息以及GPS精度,建立虚拟卡对应的GPS围栏时,也可以建立一个GPS围栏或着两个以上的GPS围栏。在建立两个以上的GPS围栏时,两个以上的GPS围栏的半径各不相同。
例如,当建立一个GPS围栏时,该GPS围栏可以为以GPS位置信息为中心,以预设长度为半径的圆。当建立两个以上的GPS围栏时,该两个以上的GPS围栏可以为以GPS位置信息为中心,以不同的预设长度为半径的圆。
在另一些实施例中,GPS围栏也可以为以多个地理位置坐标点为顶点,各顶点连接起来的多边形区域。电子设备可以获取多个地理位置坐标点,从而建立第一虚拟卡在刷卡点对应的GPS围栏。
S604、电子设备的智闪卡应用保存该第一虚拟卡对应的地理围栏。
第一虚拟卡对应的地理围栏可以是GNSS地理围栏,也可以为Cell地理围栏,还可以为Wi-Fi地理围栏,还可以为其他类型的地理围栏,本申请实施例对此并不进行限定。GNSS地理围栏可以为GPS地理围栏、GLONASS地理围栏、北斗地理围栏、QZSS地理围栏或者SBAS地理围栏等。本申请中对GNSS地理围栏的具体类型并不进行限定。
为了便于理解,本申请实施例中以第一虚拟卡对应的地理围栏为GPS围栏为例进行示意说明。
在建立第一虚拟卡对应的GPS围栏(即大围栏和小围栏)之后,电子设备,如电子设备中的智闪卡应用可以将第一虚拟卡与GPS围栏对应保存在电子设备的存储器中。如,电子设备的智闪卡应用可以将第一虚拟卡的标识与GPS围栏的标识之间的对应关系存储在电子设备的存储器中。第一虚拟卡的标识可以为第一虚拟卡的AID,也可以为第一虚拟卡的ID。GPS围栏的标识可以为GPS围栏的ID。在电子设备的存储器中存储的第一虚拟卡的标识与GPS围栏的标识之间的对应关系如表2所示。
表2
如表2所示,标识为ID1的小区门禁卡与标识为ID2和ID3的GPS围栏对应,标识为ID2的GPS围栏为大围栏,标识为ID3的GPS围栏为小围栏。标识为AID1的公共交通卡与标识为ID4和ID5的GPS围栏对应,ID4的GPS围栏为大围栏,标识为ID5的GPS围栏为小围栏。标识为AID2的智能门锁卡与标识为ID6和ID7的GPS围 栏对应,ID6的GPS围栏为大围栏,标识为ID7的GPS围栏为小围栏。
在一些示例中,电子设备,如电子设备的智闪卡应用也可以删除已存储的第一虚拟卡对应的GPS围栏。
例如,电子设备,如电子设备的智闪卡应用可以确定已存储的第一虚拟卡对应的GPS围栏是否达到对应的有效期,有效期可以根据实际情况设定,在该GPS围栏到达对应的有效期的情况下,电子设备,如电子设备的智闪卡应用可以删除该GPS围栏。
又如,电子设备,如电子设备的智闪卡应用确定在电子设备存储的第一虚拟卡对应的GPS围栏较多时,电子设备可以根据实际情况,删除其中的一些GPS围栏,如预设时长内没有使用过的GPS围栏,电子设备可以删除该GPS围栏。
S605、电子设备的智闪卡应用将该第一虚拟卡对应的地理围栏发送给电子设备的传感集线器。
第一虚拟卡对应的地理围栏可以是GNSS地理围栏,也可以为Cell地理围栏,还可以为Wi-Fi地理围栏,还可以为其他类型的地理围栏,本申请实施例对此并不进行限定。GNSS地理围栏可以为GPS地理围栏、GLONASS地理围栏、北斗地理围栏、QZSS地理围栏或者SBAS地理围栏等。本申请中对GNSS地理围栏的具体类型并不进行限定。
为了便于理解,本申请实施例中以第一虚拟卡对应的地理围栏为GPS围栏为例进行示意说明。
例如,结合图4的示例,在电子设备中的智闪卡应用建立第一虚拟卡对应的GPS围栏之后,智闪卡应用可以存储第一虚拟卡的标识与对应的GPS围栏的标识之间的对应关系。电子设备的智闪卡应用也可以将已建立的GPS围栏发送给电子设备的sensorhub。
具体的,上述S605可以包括下述S6051-S6053。
S6051、智闪卡应用将第一虚拟卡对应的地理围栏发送给***服务中的应用。
第一虚拟卡对应的地理围栏可以是GNSS地理围栏,也可以为Cell地理围栏,还可以为Wi-Fi地理围栏,还可以为其他类型的地理围栏,本申请实施例对此并不进行限定。GNSS地理围栏可以为GPS地理围栏、GLONASS地理围栏、北斗地理围栏、QZSS地理围栏或者SBAS地理围栏等。本申请中对GNSS地理围栏的具体类型并不进行限定。
为了便于理解,本申请实施例中以第一虚拟卡对应的地理围栏为GPS围栏为例进行示意说明。
可以理解的,在第一虚拟卡对应的地理围栏为GPS围栏时,***服务中的应用可以是GPS应用。在第一虚拟卡对应的地理围栏还为Wi-Fi地理围栏时,***服务中的应用可以是Wi-Fi应用。
智闪卡应用将第一虚拟卡对应的GPS围栏(即对应的GPS位置信息为中心,以对应的长度为半径的圆)以及GPS围栏的标识发送给GPS应用。GPS应用中存储已经建立的GPS围栏以及GPS围栏的标识。
S6052、***服务中的应用将第一虚拟卡对应的地理围栏发送给传感集线器。
第一虚拟卡对应的地理围栏可以是GNSS地理围栏,也可以为Cell地理围栏,还 可以为Wi-Fi地理围栏,还可以为其他类型的地理围栏,本申请实施例对此并不进行限定。GNSS地理围栏可以为GPS地理围栏、GLONASS地理围栏、北斗地理围栏、QZSS地理围栏或者SBAS地理围栏等。本申请中对GNSS地理围栏的具体类型并不进行限定。
为了便于理解,本申请实施例中以第一虚拟卡对应的地理围栏为GPS围栏为例进行示意说明。
可以理解的,在第一虚拟卡对应的地理围栏为GPS围栏时,***服务中的应用可以是GPS应用。在第一虚拟卡对应的地理围栏还为Wi-Fi地理围栏时,***服务中的应用可以是Wi-Fi应用。
GPS应用接收到智闪卡应用发送的第一虚拟卡对应的GPS围栏之后,GPS应用可以将第一虚拟卡对应的GPS围栏(即已经建立GPS围栏以及GPS围栏的标识)通过硬件连接层发送给sensorhub。
S6053、传感集线器接收第一虚拟卡对应的地理围栏。
第一虚拟卡对应的地理围栏可以是GNSS地理围栏,也可以为Cell地理围栏,还可以为Wi-Fi地理围栏,还可以为其他类型的地理围栏,本申请实施例对此并不进行限定。GNSS地理围栏可以为GPS地理围栏、GLONASS地理围栏、北斗地理围栏、QZSS地理围栏或者SBAS地理围栏等。本申请中对GNSS地理围栏的具体类型并不进行限定。
为了便于理解,本申请实施例中以第一虚拟卡对应的地理围栏为GPS围栏为例进行示意说明。
电子设备的智闪卡应用向sensorhub发送的第一虚拟卡对应的GPS围栏,可以是该第一虚拟卡对应的大围栏,也可以是该第一虚拟卡对应的小围栏,还可以是该第一虚拟卡对应的大围栏和小围栏。
在一些示例中,电子设备,如电子设备的智闪卡应用可以根据电子设备存储的GPS围栏的数量,确定智闪卡应用向sensorhub发送的GPS围栏类型。
例如,在电子设备存储的GPS围栏的数量较多时,也就是说,用户使用虚拟卡刷卡的刷点卡较多时,不同虚拟卡对应的小围栏之间存在重叠区域的可能性较小。因此,电子设备的智闪卡应用可以向sensorhub发送第一虚拟卡对应的小围栏。
又如,在电子设备存储的GPS围栏的数量较小时,也就是说,用户使用虚拟卡刷卡的刷点卡较少时,不同虚拟卡对应的大围栏之间存在重叠区域的可能性较小。因此,电子设备的智闪卡应用可以向sensorhub发送第一虚拟卡对应的大围栏。
再如,在电子设备存储的GPS围栏的数量适中时,也就是说,用户使用虚拟卡刷卡的刷点卡适中时,电子设备的智闪卡应用可以向sensorhub发送第一虚拟卡对应的小围栏以及大围栏。
在一些示例中,电子设备,如电子设备的智闪卡应用也可以将需要删除的GPS围栏的标识通过发送给电子设备的sensorhub,sensorhub可以将接收到的GPS围栏标识对应的GPS围栏删除,从而sensorhub不再监测用户是否进入该GPS围栏内。
需要说明的是,由于天气、刷卡点位于地下室等原因,电子设备获取的GPS精度可能存在误差。由于小围栏的半径是根据GPS精度确定,因此电子设备建立的小围栏 也可能会存在误差。
为了避免电子设备建立的GPS围栏存在误差的情况,对于一个已建立GPS围栏的虚拟卡,电子设备可以每隔预设时长(如1天,或者1个月)获取用户在对应刷卡点刷卡时的GPS位置信息以及GPS精度,根据GPS位置信息以及GPS精度重新建立该虚拟卡对应的GPS围栏,并将电子设备存储的GPS围栏进行更新。电子设备重新建立虚拟卡对应的GPS围栏的过程,可以参考上述S601-S605的步骤,本申请实施例在此不再赘述。
电子设备在存储虚拟卡对应的GPS围栏之后,可以周期性的获取电子设备的GPS位置信息,并根据用户的GPS位置信息,以及存储的虚拟卡与GPS围栏的对应关系,确定需要激活的虚拟卡,即在用户刷卡前自动选到正确的虚拟卡并激活。
具体的,该过程可以称为“虚拟卡切换”流程。如图9所示,该“虚拟卡切换”流程可以包括以下S901-S911。
S901、电子设备的传感集线器获取电子设备当前的地理位置信息。
电子设备当前的地理位置信息可以为GNSS位置信息,也可以为对应的Cell信息,还可以为对应的Wi-Fi信息,还可以为其他类型的位置信息,本申请实施例对此并不进行限定。GNSS位置信息可以为GPS位置信息、GLONASS位置信息、北斗位置信息、QZSS位置信息或者SBAS位置信息等。本申请中对GNSS位置信息的具体类型并不进行限定。
为了便于理解,本申请实施例中以电子设备当前的地理位置信息为GPS位置信息为例进行示意说明。
电子设备,如电子设备中的传感集线器(sensorhub)可以实时或者周期性获取电子设备当前的GPS位置信息。电子设备当前的GPS位置信息,可以为电子设备当前的经纬度坐标。
例如,结合图4的示例,sensorhub可以实时或者周期性地从短距离芯片中获取用户的GPS位置信息。具体的,上述S901可以包括下述S9011-S9012。
S9011、短距离芯片向传感集线器发送电子设备当前的地理位置信息。
电子设备当前的地理位置信息可以为GNSS位置信息,也可以为对应的Cell信息,还可以为对应的Wi-Fi信息,还可以为其他类型的位置信息,本申请实施例对此并不进行限定。
GNSS位置信息可以为GPS位置信息、GLONASS位置信息、北斗位置信息、QZSS位置信息或者SBAS位置信息等。本申请中对GNSS位置信息的具体类型并不进行限定。
为了便于理解,本申请实施例中以电子设备当前的地理位置信息为GPS位置信息为例进行示意说明。
短距离芯片可以实时或者周期性向sensorhub发送电子设备当前的GPS位置信息。
S9012、传感集线器接收电子设备当前的地理位置信息。
电子设备当前的地理位置信息可以为GNSS位置信息,也可以为对应的Cell信息,还可以为对应的Wi-Fi信息,还可以为其他类型的位置信息,本申请实施例对此并不进行限定。
GNSS位置信息可以为GPS位置信息、GLONASS位置信息、北斗位置信息、QZSS位置信息或者SBAS位置信息等。本申请中对GNSS位置信息的具体类型并不进行限定。
为了便于理解,本申请实施例中以电子设备当前的地理位置信息为GPS位置信息为例进行示意说明。
S902、电子设备的传感集线器根据电子设备当前的地理位置信息,确定用户是否进入地理围栏。
电子设备当前的地理位置信息可以为GNSS位置信息,也可以为对应的Cell信息,还可以为对应的Wi-Fi信息,还可以为其他类型的位置信息,本申请实施例对此并不进行限定。
GNSS位置信息可以为GPS位置信息、GLONASS位置信息、北斗位置信息、QZSS位置信息或者SBAS位置信息等。本申请中对GNSS位置信息的具体类型并不进行限定。
地理围栏可以是GNSS地理围栏,也可以为Cell地理围栏,还可以为Wi-Fi地理围栏,还可以为其他类型的地理围栏,本申请实施例对此并不进行限定。
GNSS地理围栏可以为GPS地理围栏、GLONASS地理围栏、北斗地理围栏、QZSS地理围栏或者SBAS地理围栏等。本申请中对GNSS地理围栏的具体类型并不进行限定。
为了便于理解,本申请实施例中以电子设备当前的地理位置信息为GPS位置信息为例进行示意说明。即电子设备的传感集线器根据电子设备当前的GPS位置信息,确定用户是否进入相应的GPS围栏。
由于用户持电子设备移动时,电子设备的GPS位置信息,即用户的GPS位置信息。因此,根据电子设备当前的GPS位置信息,即用户当前的GPS位置信息,也就是说,根据电子设备当前的GPS位置信息,也可以确定用户是否进入GPS围栏。即电子设备监测电子设备的位置是否到达GPS围栏的范围内。
电子设备,如电子设备的sensorhub可以根据电子设备当前的GPS位置信息,确定用户是否进入GPS围栏。在电子设备确定电子设备当前的经纬度坐标位于某个GPS围栏的范围内的情况下,确定用户进入该GPS围栏,在用户的经纬度坐标没有位于GPS围栏的范围的情况下,确定用户没有进入GPS围栏。例如,电子设备的传感集线器可以根据电子设备当前的GPS位置信息,利用围栏算法,如GPS围栏算法,确定用户是否进入GPS围栏,在确定用户进入GPS围栏时,可以确定出用户进入的GPS围栏的标识。
用户进入GPS围栏,可以是进入一个GPS围栏,也可以是进入多个GPS围栏。用户进入一个GPS围栏,即电子设备当前的GPS位置信息位于一个GPS围栏的范围内,该GPS围栏可以是大围栏,也可以是小围栏。例如,用户进入一个围栏,可以是用户进入第一虚拟卡对应的第一围栏,也可以是用户进入第一虚拟卡对应的第二围栏。用户进入多个GPS围栏,即电子设备当前的GPS位置信息位于GPS围栏的重叠区域内,该重叠区域可以是多个小围栏的重叠区域,也可以是多个大围栏的重叠区域,还可以是多个大围栏与小围栏的重叠区域。
例如,用户进入多个围栏的重叠区域,可以是用户进入第一虚拟卡对应的第一围栏和第二虚拟卡对应的第三围栏的重叠区域,也可以是用户进入第一虚拟卡对应的第二围栏和第二虚拟卡对应的第四围栏的重叠区域,还可以是用户进入第一虚拟卡对应的第一围栏和第二虚拟卡对应的第四围栏的重叠区域,还可以是用户进入第一虚拟卡对应的第二围栏和第二虚拟卡对应的第四围栏的重叠区域。
电子设备,如电子设备的传感集线器可以根据电子设备当前的GPS位置信息,利用围栏算法,如GPS围栏算法,可以确定用户是否进入GPS围栏,在确定用户进入GPS围栏的情况下,可以确定出用户进入的GPS围栏的标识。在确定用户进入多个GPS围栏的情况下,可以确定出用户进入的多个GPS围栏的标识。
例如,结合图4所示,电子设备的sensorhub可以实时从短距离芯片中获取用户的GPS位置信息。由于sensorhub中存储有已经建立GPS围栏(即对应的GPS位置信息为中心,以对应的长度为半径的圆)以及GPS围栏的标识,sensorhub中的GPS围栏算法根据电子设备当前的GPS位置信息,确定用户是否进入GPS围栏,以及用户进入的GPS的围栏的标识。sensorhub确定出的用户进入的GPS的围栏的标识可以是大围栏的标识,也可以是小围栏的标识。sensorhub确定出的用户进入的GPS的围栏的标识可以是一个,也可以是多个。
在电子设备确定用户没有进入GPS围栏的情况下,电子设备可以继续获取电子设备当前的GPS位置信息,并根据电子设备当前的GPS位置信息,确定用户是否进入GPS围栏,即电子设备可以重新执行上述S901-S902。
可以理解的,在电子设备确定用户没有进入GPS围栏的范围内的情况下,电子设备,如电子设备的智闪卡应用可以保持默认卡激活,或者将默认卡激活。例如,电子设备保存的默认卡为智能门锁卡,电子设备根据用户的GPS位置信息确定用户进入公共交通卡对应的GPS围栏时,电子设备可以将公共交通卡激活。在电子设备根据用户的GPS位置信息确定用户离开公共交通卡对应的GPS围栏的情况下,即电子设备确定用户没有进入GPS围栏,电子设备可以将公共交通卡去激活,并重新将默认卡(如智能门锁卡)激活。又如,电子设备根据用户的GPS位置信息确定用户进入默认卡(即智能门锁卡)对应的GPS围栏时,电子设备可以保持默认卡激活。在用户离开默认卡对应的GPS围栏的情况下,即电子设备确定用户没有进入GPS围栏,电子设备可以仍然保持默认卡激活。
在一些实施例中,电子设备,如电子设备的sensorhub可以根据电子设备当前的GPS位置信息,利用围栏算法,如GPS围栏算法,可以确定用户是否离开GPS围栏,在确定用户离开GPS围栏的情况下,可以确定出用户离开的GPS围栏的标识。电子设备的sensorhub还可以根据电子设备当前的GPS位置信息,利用GPS围栏算法,可以确定用户进入某个GPS围栏超过预设时长,在确定用户进入某个GPS围栏超过预设时长的情况下,可以确定用户进入的超过预设时长的GPS围栏的标识。
在电子设备确定用户进入GPS围栏的情况下,电子设备可以执行S903-S911。
S903、在确定用户进入地理围栏时,电子设备的传感集线器将用户进入的地理围栏的标识发送给电子设备的智闪卡应用。
用户进入的地理围栏可以是GNSS地理围栏,也可以为Cell地理围栏,还可以为 Wi-Fi地理围栏,还可以为其他类型的地理围栏,本申请实施例对此并不进行限定。GNSS地理围栏可以为GPS地理围栏、GLONASS地理围栏、北斗地理围栏、QZSS地理围栏或者SBAS地理围栏等。本申请中对GNSS地理围栏的具体类型并不进行限定。
地理围栏的标识,可以为GNSS地理围栏对应的标识,也可以为Cell地理围栏对应的标识,还可以为Wi-Fi地理围栏对应的标识。
为了便于理解,本申请实施例中以用户进入地理围栏为GPS围栏为例进行示意说明。即用户进入的地理围栏的标识,为用户进入的GPS围栏的标识。
例如,结合图4的示例,电子设备的sensorhub可以利用GPS围栏算法,确定用户进入GPS围栏时,电子设备的sensorhub可以将用户进入的一个或多个GPS围栏的标识通过GPS应用发送给电子设备的智闪卡应用。具体的,上述S903可以包括下述S9031-S9032。
S9031、传感集线器在确定用户进入地理围栏时,向***服务中的应用发送用户进入的地理围栏的标识。
用户进入的地理围栏可以是GNSS地理围栏,也可以为Cell地理围栏,还可以为Wi-Fi地理围栏,还可以为其他类型的地理围栏,本申请实施例对此并不进行限定。GNSS地理围栏可以为GPS地理围栏、GLONASS地理围栏、北斗地理围栏、QZSS地理围栏或者SBAS地理围栏等。本申请中对GNSS地理围栏的具体类型并不进行限定。
地理围栏的标识,可以为GNSS地理围栏对应的标识,也可以为Cell地理围栏对应的标识,还可以为Wi-Fi地理围栏对应的标识。
可以理解的,在确定用户进入的是GPS围栏时,***服务中的应用可以是GPS应用。在确定用户进入的是Wi-Fi地理围栏时,***服务中的应用可以是Wi-Fi应用。
为了便于理解,本申请实施例中以用户进入地理围栏为GPS围栏为例进行示意说明。即用户进入的地理围栏的标识,为用户进入的GPS围栏的标识,***服务中的应用为GPS应用。
sensorhub可以通过硬件连接层向GPS应用发送用户进入的GPS围栏的标识。
S9032、***服务中的应用向智闪卡应用发送用户进入的地理围栏的标识。
用户进入的地理围栏可以是GNSS地理围栏,也可以为Cell地理围栏,还可以为Wi-Fi地理围栏,还可以为其他类型的地理围栏,本申请实施例对此并不进行限定。GNSS地理围栏可以为GPS地理围栏、GLONASS地理围栏、北斗地理围栏、QZSS地理围栏或者SBAS地理围栏等。本申请中对GNSS地理围栏的具体类型并不进行限定。
地理围栏的标识,可以为GNSS地理围栏对应的标识,也可以为Cell地理围栏对应的标识,还可以为Wi-Fi地理围栏对应的标识。
可以理解的,在确定用户进入的是GPS围栏时,***服务中的应用可以是GPS应用。在确定用户进入的是Wi-Fi地理围栏时,***服务中的应用可以是Wi-Fi应用。
为了便于理解,本申请实施例中以用户进入地理围栏为GPS围栏为例进行示意说明。即用户进入的地理围栏的标识,为用户进入的GPS围栏的标识,***服务中的应 用为GPS应用。
GPS应用在接收到用户进入的GPS围栏的标识之后,可以向智闪卡应用发送用户进入的GPS围栏的标识。
在一些实施例中,电子设备在确定用户是否离开某个GPS围栏时,电子设备,如电子设备的sensorhub可以将用户离开的GPS围栏的标识发送给电子设备,如电子设备的智闪卡应用。电子设备的sensorhub在确定用户进入某个GPS围栏超过预设时长时,电子设备,如电子设备的sensorhub将用户进入的GPS围栏的标识,以及进入该GPS围栏超过预设时长发送给电子设备,如电子设备的智闪卡应用。
例如,结合图7所示,以用户进入地理围栏为GPS围栏,用户进入地理围栏的标识为GPS围栏的标识为例,在当用户01持电子设备到达位置A时,即用户持电子设备进入大围栏02,电子设备的sensorhub将用户进入的GPS围栏的标识发送给电子设备的智闪卡应用。当用户01持电子设备从位置A到达位置C时,电子设备确定用户位于大围栏02的时间超过预设时长,电子设备可以将该大围栏的标识以及用户进入该大围栏02超过预设时长发送给电子设备的智闪卡应用。
S904、电子设备的智闪卡应用接收用户进入的地理围栏的标识。
地理围栏的标识,可以为GNSS地理围栏对应的标识,也可以为Cell地理围栏对应的标识,还可以为Wi-Fi地理围栏对应的标识,本申请实施例对此并不进行限定。
为了便于理解,本申请实施例中以用户进入地理围栏为GPS围栏为例进行示意说明。即用户进入的地理围栏的标识,为用户进入的GPS围栏的标识。
S905、电子设备的智闪卡应用确定用户进入的地理围栏是否是一个。
用户进入的地理围栏可以是GNSS地理围栏,也可以为Cell地理围栏,还可以为Wi-Fi地理围栏,还可以为其他类型的地理围栏,本申请实施例对此并不进行限定。GNSS地理围栏可以为GPS地理围栏、GLONASS地理围栏、北斗地理围栏、QZSS地理围栏或者SBAS地理围栏等。本申请中对GNSS地理围栏的具体类型并不进行限定。
为了便于理解,本申请实施例中以用户进入地理围栏为GPS围栏为例进行示意说明。
电子设备,如电子设备的智闪卡应用可以根据接收用户进入的GPS围栏的标识的数量,确定用户进入的GPS围栏是一个,还是多个。
例如,继续结合图7所示,以电子设备的sensorhub将用户进入的GPS围栏的标识,以及进入该GPS围栏超过预设时长发送给电子设备的智闪卡应用为例,即当用户01持电子设备从位置A到达位置C时,电子设备确定用户位于大围栏02的时间超过预设时长,电子设备可以将该大围栏02的标识以及用户进入该大围栏02超过预设时长发送给电子设备的智闪卡应用。电子设备的智闪卡应用接收到用户进入的围栏的标识以用户进入该围栏超过预设时长时,电子设备的智闪卡应用可以确定用户进入的GPS围栏是否是一个。
又如,结合图8所示,以电子设备建立了多个第一虚拟卡对应的GPS围栏03为例。当用户01持电子设备到达位置A时,电子设备的sensorhub将用户进入的一个GPS围栏的标识发送给电子设备的智闪卡应用。当用户持电子设备从位置A到达位置 B时,电子设备的sensorhub可以确定出用户进入多个GPS围栏03,电子设备的sensorhub可以将该多个GPS围栏03的标识发送给电子设备的智闪卡应用,从而电子设备的智闪卡应用可以确定用户进入的GPS围栏是否是多个。
在电子设备确定用户进入的GPS围栏是一个的情况下,电子设备可以执行S906。在电子设备确定用户进入的GPS围栏是多个的情况下,电子设备可以执行S907-S911。
S906、电子设备的智闪卡应用将该地理围栏对应的虚拟卡激活。
用户进入的地理围栏可以是GNSS地理围栏,也可以为Cell地理围栏,还可以为Wi-Fi地理围栏,还可以为其他类型的地理围栏,本申请实施例对此并不进行限定。GNSS地理围栏可以为GPS地理围栏、GLONASS地理围栏、北斗地理围栏、QZSS地理围栏或者SBAS地理围栏等。本申请中对GNSS地理围栏的具体类型并不进行限定。
为了便于理解,本申请实施例中以用户进入地理围栏为GPS围栏为例进行示意说明。即地理围栏对应的虚拟卡,为GPS围栏对应的虚拟卡。在电子设备确定用户进入的GPS围栏是一个的情况下,电子设备,如电子设备的智闪卡应用,可以根据电子设备的存储器中存储的虚拟卡的标识与GPS围栏的标识之间的对应关系,将该GPS围栏对应的虚拟卡激活。如,电子设备的智闪卡应用接收到的是第一围栏或第二围栏的标识,即电子设备的位置到达第一虚拟卡对应的GPS围栏中,电子设备的智闪卡应用,可以根据电子设备的存储器中存储的虚拟卡的标识与GPS围栏的标识之间的对应关系,将第一虚拟卡激活。
例如,结合图10中的(a)所示,以用户进入的地理围栏为GPS围栏为例,在用户持电子设备到达位置A时,电子设备根据电子设备当前的GPS位置信息,确定用户进入围栏1。电子设备的智闪卡应用,根据电子设备存储的虚拟卡的标识与GPS围栏的标识之间的对应关系,将该围栏1对应的虚拟卡激活。在用户持电子设备从位置A移动到位置B的过程中,电子设备根据电子设备当前的GPS位置信息,确定用户进入的GPS围栏一直是围栏1,电子设备的智闪卡应用可以保持围栏1对应的虚拟卡为激活状态。在用户持电子设备到达到位置C之后时,电子设备根据电子设备当前的GPS位置信息,确定用户进入的GPS围栏只有围栏2,电子设备的智闪卡应用将围栏2对应的虚拟卡激活。在用户持电子设备从位置C移动到位置D的过程中,电子设备根据电子设备当前的GPS位置信息,确定用户进入的GPS围栏一直是围栏2,电子设备的智闪卡应用可以保持围栏2对应的虚拟卡为激活状态。在用户持电子设备离开位置D时,电子设备根据电子设备当前的GPS位置信息,确定用户的没有进入GPS围栏,在围栏2对应的虚拟卡不是默认卡时,电子设备的智闪卡应用可以将围栏2对应的虚拟卡去激活,并将默认卡激活。
在电子设备确定用户进入多个GPS围栏的情况下,电子设备可以根据多个GPS围栏的优先级,将优先级最高的GPS围栏对应的虚拟卡激活。例如,继续结合图10中的(a)所示,以用户进入的地理围栏为GPS围栏为例,在用户持电子设备到达位置B时,电子设备根据电子设备当前的GPS位置信息,确定用户进入围栏1与围栏2的重叠区域,电子设备的智闪卡应用可以根据围栏1与围栏2的优先级,确定用户在围栏1对应与围栏2的重叠区域时激活哪个围栏对应的虚拟卡。具体的,电子设备可 以执行S907-S911。
S907、电子设备的智闪卡应用确定用户进入的多个地理围栏中优先级最高的地理围栏是否为一个。
用户进入的地理围栏可以是GNSS地理围栏,也可以为Cell地理围栏,还可以为Wi-Fi地理围栏,还可以为其他类型的地理围栏,本申请实施例对此并不进行限定。GNSS地理围栏可以为GPS地理围栏、GLONASS地理围栏、北斗地理围栏、QZSS地理围栏或者SBAS地理围栏等。本申请中对GNSS地理围栏的具体类型并不进行限定。
为了便于理解,本申请实施例中以用户进入地理围栏为GPS围栏为例进行示意说明。即电子设备的智闪卡应用确定用户进入的多个GPS围栏中优先级最高的GPS围栏是否为一个。
在电子设备确定用户进入的GPS围栏是多个的情况下,电子设备,如电子设备的智闪卡应用,可以根据预先设置的不同GPS围栏的优先级,确定用户进入的多个GPS围栏中优先级最高的GPS围栏是否为一个。
在电子设备确定用户进入的多个GPS围栏中优先级最高的GPS围栏为一个的情况下,电子设备可以执行S908。在电子设备确定用户进入的多个GPS围栏中优先级最高的GPS围栏为多个的情况下,电子设备可以进一步根据该多个GPS围栏对应虚拟卡的优先级,将优先级最高的虚拟卡激活。具体的,电子设备可以执行下述S909-S911。
S908、电子设备的智闪卡应用将优先级最高的地理围栏对应的虚拟卡激活。
用户进入的地理围栏可以是GNSS地理围栏,也可以为Cell地理围栏,还可以为Wi-Fi地理围栏,还可以为其他类型的地理围栏,本申请实施例对此并不进行限定。GNSS地理围栏可以为GPS地理围栏、GLONASS地理围栏、北斗地理围栏、QZSS地理围栏或者SBAS地理围栏等。本申请中对GNSS地理围栏的具体类型并不进行限定。
为了便于理解,本申请实施例中以用户进入地理围栏为GPS围栏为例进行示意说明。即优先级最高的地理围栏为GPS围栏。
在电子设备确定用户进入的多个GPS围栏中优先级最高的GPS围栏为一个的情况下,电子设备,如电子设备的智闪卡应用可以将优先级最高的GPS围栏对应的虚拟卡激活。如,在电子设备确定用户的GPS位置信息位于一个大围栏与一个小围栏的重叠区域的情况下,由于大围栏的优先级小于小围栏的优先级,电子设备的智闪卡应用可以将小围栏对于的虚拟卡激活。例如,电子设备的智闪卡应用接收到用户进入的GPS围栏是第二围栏的标识,以及第三围栏的标识,即电子设备的位置到达第一虚拟卡对应的小围栏,以及第二虚拟卡对应的大围栏的范围内,由于第二围栏是小围栏,第三围栏是大围栏,即第二围栏的优先级高于第三围栏的优先级,电子设备的智闪卡应用可以将第一虚拟卡激活。
例如,继续结合图10中的(a),以用户进入的地理围栏为GPS围栏,围栏1为大围栏,围栏2为小围栏为例,即围栏2的优先级高于围栏1的优先级。在用户持电子设备从位置B移动到位置C的过程中,电子设备根据电子设备当前的GPS位置信息,确定用户进入围栏1与围栏2的重叠区域,电子设备的智闪卡应用可以根据围栏 1与围栏2的优先级,将围栏2对应的虚拟卡激活。
S909、电子设备的智闪卡应用确定优先级最高的多个地理围栏对应的虚拟卡中优先级最高的虚拟卡是否为一个。
用户进入的地理围栏可以是GNSS地理围栏,也可以为Cell地理围栏,还可以为Wi-Fi地理围栏,还可以为其他类型的地理围栏,本申请实施例对此并不进行限定。GNSS地理围栏可以为GPS地理围栏、GLONASS地理围栏、北斗地理围栏、QZSS地理围栏或者SBAS地理围栏等。本申请中对GNSS地理围栏的具体类型并不进行限定。
为了便于理解,本申请实施例中以用户进入地理围栏为GPS围栏为例进行示意说明。即优先级最高的多个地理围栏为GPS围栏。
在电子设备确定用户进入的多个GPS围栏中优先级最高的GPS围栏为多个的情况下,电子设备,如电子设备的智闪卡应用可以根据预先设置的不同虚拟卡的优先级,确定优先级最高的多个GPS围栏对应的虚拟卡中优先级最高的虚拟卡是否为一个。
在电子设备确定优先级最高的多个GPS围栏对应的虚拟卡中优先级最高的虚拟卡为一个的情况下,电子设备,如电子设备的智闪卡应用可以将优先级最高的虚拟卡激活。具体的,电子设备可以执行下述S910。
在电子设备确定优先级最高的多个GPS围栏对应的虚拟卡中优先级最高的虚拟卡是否为多个的情况下,电子设备可以将用户最后进入的GPS围栏对应的虚拟卡激活。具体的,电子设备可以执行下述S911。
S910、电子设备的智闪卡应用将优先级最高的虚拟卡激活。
用户进入的地理围栏可以是GNSS地理围栏,也可以为Cell地理围栏,还可以为Wi-Fi地理围栏,还可以为其他类型的地理围栏,本申请实施例对此并不进行限定。GNSS地理围栏可以为GPS地理围栏、GLONASS地理围栏、北斗地理围栏、QZSS地理围栏或者SBAS地理围栏等。本申请中对GNSS地理围栏的具体类型并不进行限定。
为了便于理解,本申请实施例中以用户进入地理围栏为GPS围栏为例进行示意说明。
在电子设备确定优先级最高的虚拟卡为多个的情况下,电子设备,如电子设备的智闪卡应用,可以将该优先级最高的虚拟卡激活。
例如,电子设备的智闪卡应用接收到用户进入的GPS围栏是第一围栏的标识,以及第三围栏的标识,或者,第二围栏的标识,以及第四围栏的标识,即电子设备的位置到达第一虚拟卡对应的大围栏,且到达第二虚拟卡对应的大围栏的范围内,或者,电子设备的位置到达第一虚拟卡对应的小围栏,且到达第二虚拟卡对应的小围栏的范围内,电子设备,如电子设备的智闪卡应用可以确定第一虚拟卡的优先级与第二虚拟卡的优先级。在第一虚拟卡的优先级高于第二虚拟卡的优先级的情况下,电子设备的智闪卡应用可以将第一虚拟卡激活。在第一虚拟卡的优先级低于第二虚拟卡的优先级的情况下,电子设备的智闪卡应用可以将第二虚拟卡激活。
例如,结合图10中的(b)所示,以用户进入的地理围栏为GPS围栏,白卡围栏和公交围栏均为小围栏,白卡的优先级低于公共交通卡的优先级为例。在用户持电子 设备从位置E移动到位置F的过程中,电子设备根据电子设备当前的GPS位置信息,确定用户进入白卡围栏与公交围栏的重叠区域,白卡围栏和公交围栏均为小围栏,即白卡围栏和公交围栏均的优先级相同,电子设备的智闪卡应用可以进一步确定白卡围栏和公交围栏对应的虚拟卡的优先级,由于公交围栏对应的虚拟卡为公共交通卡的优先级最高,且优先级最高的虚拟卡为一个,电子设备的智闪卡应用可以将公共交通卡激活。
S911、电子设备的智闪卡应用将用户最后进入的地理围栏对应的虚拟卡激活。
用户进入的地理围栏可以是GNSS地理围栏,也可以为Cell地理围栏,还可以为Wi-Fi地理围栏,还可以为其他类型的地理围栏,本申请实施例对此并不进行限定。GNSS地理围栏可以为GPS地理围栏、GLONASS地理围栏、北斗地理围栏、QZSS地理围栏或者SBAS地理围栏等。本申请中对GNSS地理围栏的具体类型并不进行限定。
为了便于理解,本申请实施例中以用户进入地理围栏为GPS围栏为例进行示意说明。
在电子设备确定优先级最高的虚拟卡为多个的情况下,电子设备,如电子设备的智闪卡应用,可以获取用户的移动趋势,即电子设备的移动趋势,根据用户的移动趋势,将用户最后进入的GPS围栏对应的虚拟卡激活。
例如,电子设备的位置到达第一虚拟卡对应的大围栏,且到达第二虚拟卡对应的大围栏的范围内,或者,电子设备的位置到达第一虚拟卡对应的小围栏,且到达第二虚拟卡对应的小围栏的范围内,电子设备,如电子设备的智闪卡应用确定第一虚拟卡的优先级与第二虚拟卡的优先级相同时,电子设备,如电子设备的智闪卡应用,可以获取电子设备的移动趋势,在第一虚拟卡对应的围栏是移动趋势上的围栏时,即用户最后进入的是第一虚拟卡对应的围栏时,电子设备的智闪卡应用可以将第一虚拟卡激活。在第二虚拟卡对应的围栏是移动趋势上的围栏时,即用户最后进入的是第二虚拟卡对应的围栏时,电子设备的智闪卡应用可以将第二虚拟卡激活。
电子设备,如电子设备的sensorhub可以从短距离芯片中获取不同时刻电子设备的GPS位置信息,根据不同时刻电子设备的GPS位置信息,确定用户的移动趋势。
例如,结合图4所示,电子设备的智闪卡应用确定优先级最高的虚拟卡为多个时,电子设备的智闪卡应用通过GPS应用从sensorhub获取用户的移动趋势,并根据用户的移动趋势,将用户最后进入的GPS围栏对应的虚拟卡激活。sensorhub可以实时或者周期性地从短距离芯片中获取不同时刻电子设备的GPS位置信息,根据不同时刻电子设备的GPS位置信息,确定用户的移动趋势。
例如,结合图10中的(c),以用户进入的地理围栏为GPS围栏,白卡围栏1和白卡围栏2均为小围栏,即白卡围栏1和白卡围栏2的优先级相同,白卡围栏1和白卡围栏2对应的虚拟卡的优先级相同为例。在用户持电子设备到达位置G时,电子设备根据电子设备当前的GPS位置信息,确定用户进入白卡围栏1,电子设备将白卡围栏1对应的虚拟卡激活。当用户持电子设备到达位置H时,电子设备根据电子设备当前的GPS位置信息,确定用户进入白卡围栏1和白卡围栏2的重叠区域。白卡围栏1对应的虚拟卡与白卡围栏2对应的虚拟卡的优先级相同。此时,电子设备,如电子设 备的智闪卡应用可以从电子设备的sensorhub获取用户的移动趋势,即用户是从先进入白卡围栏1,从白卡围栏1到白卡围栏1和白卡围栏2的重叠区域,也就是说,白卡围栏2是用户最后进入的GPS围栏。电子设备的智闪卡应用可以将白卡围栏2对应的虚拟卡激活。
需要说明的是,在电子设备确定优先级最高的虚拟卡为多个的情况下,电子设备,如电子设备的智闪卡应用,也可以保持当前激活的虚拟卡。
例如,结合图10中的(d)所示,以用户进入的地理围栏为GPS围栏,白卡围栏1和白卡围栏2均为小围栏,即白卡围栏1和白卡围栏2的优先级相同,白卡围栏1和白卡围栏2对应的虚拟卡的优先级相同为例。在用户持电子设备到达位置I时,电子设备根据电子设备当前的GPS位置信息,确定用户进入白卡围栏1,电子设备的智闪卡应用将白卡围栏1对应的虚拟卡激活。在用户持电子设备到达位置J时,电子设备根据电子设备当前的GPS位置信息,确定用户进入白卡围栏1和白卡围栏2的重叠区域。此时,电子设备,如电子设备的智闪卡应用可以保持白卡围栏1对应的虚拟卡为激活状态。
采用本申请的方案,电子设备的智闪卡应用可以在用户在某个刷卡点首次使用某个虚拟卡进行交易时,通过***服务中的应用、硬件连接层以及sensorhub从短距离芯片获取电子设备当前的地理位置位置信息和地理位置精度。智闪卡应用根据电子设备当前的地理位置位置信息和地理位置精度建立该虚拟卡对应的地理位置围栏。之后当sensorhub根据从短距离芯片获取的电子设备地理位置位置信息,确定用户进入到地理位置围栏时,sensorhub将用户进入的地理位置围栏的标识发送给智闪卡应用。智闪卡应用可以将地理位置围栏对应的虚拟卡激活。即,在用户刷卡前,电子设备的智闪卡应用能够利用地理位置围栏自动激活对应虚拟卡。在面对不同的刷卡需求时,能够避免用户需要手动选择虚拟卡,从而降低刷卡的时长,提升用户体验。
且本申请的方案可以根据地理位置信息中的GPS位置信息和地理位置精度中的GPS精度,建立对应的地理围栏,GPS位置信息可以利用电子设备的短距离芯片来获取。而短距离芯片是电子设备的标准配置,因此即使电子设备不具备Wi-Fi围栏能力,即电子设备不具备sensorhub,或者电子设备的sensorhub不具备Wi-Fi围栏能力,如sensorhub中不包括Wi-Fi围栏算法时,智闪卡应用仍然可以在用户刷卡前实现对应虚拟卡的自动激活,进一步提高了用户的使用体验。
此外,本申请的方案通过在用户进入多个地理围栏的范围时,智闪卡应用通过判断多个地理围栏的优先级以及多个地理围栏对应的虚拟卡的优先级,确定需要激活的虚拟卡。能够避免在用户进入多个地理围栏的范围时,用户需要手动选择虚拟卡激活,从而进一步降低刷卡的时长,提升用户体验。
为了便于理解,下面结合附图11对本申请实施例提供的虚拟卡的切换方法进行说明。如图11所示,该虚拟卡的切换方法可以包括以下S1101-S1106。
S1101、电子设备获取第一虚拟卡。
电子设备获取第一虚拟卡的具体实施方式,可以参考上述S601中的实施方式。本申请实施例在此不再赘述。
S1102、在电子设备在第一刷卡点首次采用第一虚拟卡完成数据交互的情况下,电 子设备获取电子设备的地理位置信息以及地理位置精度。
电子设备的地理位置信息可以为GNSS位置信息,也可以为对应的Cell信息,还可以为对应的Wi-Fi信息,还可以为其他类型的位置信息,本申请实施例对此并不进行限定。GNSS位置信息可以为GPS位置信息、GLONASS位置信息、北斗位置信息、QZSS位置信息或者SBAS位置信息等。本申请中对GNSS位置信息的具体类型并不进行限定。
电子设备的地理位置精度可以为GNSS位置精度,也可以为对应的Cell精度,还可以为对应的Wi-Fi精度,还可以为其他类型的位置精度,本申请实施例对此并不进行限定。GNSS位置信息可以为GPS精度、GLONASS精度、北斗精度、QZSS精度或者SBAS精度等。
为了便于理解,本申请实施例中以电子设备当前的地理位置信息为GPS位置信息,地理位置精度为GPS精度为例进行示意说明。
电子设备在某个刷卡点(如称为第一刷卡点)首次采用某个第一虚拟卡与NFC读卡器完成数据交互时,获取当前的GPS位置信息以及GPS精度的具体实施方式,可以参考上述S602中的实施方式。本申请实施例在此不再赘述。
S1103、电子设备根据地理位置信息以及地理位置精度,建立并保存第一虚拟卡对应的地理围栏。
第一虚拟卡对应的地理围栏可以是GNSS地理围栏,也可以为Cell地理围栏,还可以为Wi-Fi地理围栏,还可以为其他类型的地理围栏,本申请实施例对此并不进行限定。GNSS地理围栏可以为GPS地理围栏、GLONASS地理围栏、北斗地理围栏、QZSS地理围栏或者SBAS地理围栏等。本申请中对GNSS地理围栏的具体类型并不进行限定。
为了便于理解,本申请实施例中以第一虚拟卡对应的地理围栏为GPS围栏为例进行示意说明。电子设备根据GPS位置信息以及GPS精度,建立第一虚拟卡对应的GPS围栏,可以是大围栏,也可以是小围栏,还可以大围栏以及小围栏。
电子设备根据GPS位置信息以及GPS精度,建立并保存第一虚拟卡对应的GPS围栏的具体实施方式,可以参考上述S603-S605中的实施方式。本申请实施例在此不再赘述。
S1104、电子设备获取电子设备的地理位置信息。
电子设备的地理位置信息可以为GNSS位置信息,也可以为对应的Cell信息,还可以为对应的Wi-Fi信息,还可以为其他类型的位置信息,本申请实施例对此并不进行限定。GNSS位置信息可以为GPS位置信息、GLONASS位置信息、北斗位置信息、QZSS位置信息或者SBAS位置信息等。本申请中对GNSS位置信息的具体类型并不进行限定。
为了便于理解,本申请实施例中以电子设备当前的地理位置信息为GPS位置信息为例进行示意说明。
电子设备获取电子设备的GPS位置信息的具体实施方式,可以参考上述S901中的实施方式。本申请实施例在此不再赘述。
S1105、电子设备根据电子设备的地理位置信息,确定用户是否进入地理围栏。
电子设备的地理位置信息可以为GNSS位置信息,也可以为对应的Cell信息,还可以为对应的Wi-Fi信息,还可以为其他类型的位置信息,本申请实施例对此并不进行限定。GNSS位置信息可以为GPS位置信息、GLONASS位置信息、北斗位置信息、QZSS位置信息或者SBAS位置信息等。本申请中对GNSS位置信息的具体类型并不进行限定。
为了便于理解,本申请实施例中以电子设备当前的地理位置信息为GPS位置信息为例进行示意说明。
用户进入的地理围栏可以是GNSS地理围栏,也可以为Cell地理围栏,还可以为Wi-Fi地理围栏,还可以为其他类型的地理围栏,本申请实施例对此并不进行限定。GNSS地理围栏可以为GPS地理围栏、GLONASS地理围栏、北斗地理围栏、QZSS地理围栏或者SBAS地理围栏等。本申请中对GNSS地理围栏的具体类型并不进行限定。
为了便于理解,本申请实施例中以用户进入地理围栏为GPS围栏为例进行示意说明。即电子设备根据电子设备的GPS位置信息,确定用户是否进入GPS围栏中。
电子设备根据电子设备的GPS位置信息,确定用户是否进入第一虚拟卡对应的GPS围栏的具体实施方式,可以参考上述S902中的实施方式。本申请实施例在此不再赘述。
在电子设备确定用户进入第一虚拟卡对应的GPS围栏的情况下,电子设备可以执行S1106。在电子设备确定用户没有进入第一虚拟卡对应的GPS围栏的情况下,电子设备可以电子设备可以继续获取电子设备GPS位置信息,并根据电子设备GPS位置信息,确定用户是否进入GPS围栏,即电子设备可以重新执行上述S1104。
S1106、电子设备将地理围栏对应的第一虚拟卡激活。
用户进入的地理围栏可以是GNSS地理围栏,也可以为Cell地理围栏,还可以为Wi-Fi地理围栏,还可以为其他类型的地理围栏,本申请实施例对此并不进行限定。GNSS地理围栏可以为GPS地理围栏、GLONASS地理围栏、北斗地理围栏、QZSS地理围栏或者SBAS地理围栏等。本申请中对GNSS地理围栏的具体类型并不进行限定。
为了便于理解,本申请实施例中以用户进入地理围栏为GPS围栏为例进行示意说明。
电子设备将GPS围栏对应的第一虚拟卡激活,可以包括:
在电子设备确定用户进入的是一个GPS围栏的情况下,电子设备可以将该GPS围栏对应的第一虚拟卡激活。
在电子设备确定用户进入的是多个GPS围栏的情况下,电子设备可以进一步根据GPS围栏的优先级,将GPS围栏对应的第一虚拟卡激活。例如,在用户进入的多个GPS围栏中优先级最高的GPS围栏一个的情况下,电子设备可以将用户进入的多个GPS围栏中优先级最高的GPS围栏对应的第一虚拟卡激活。
在用户进入的多个GPS围栏中优先级最高的GPS围栏多个的情况下,电子设备可以进一步根据第一虚拟卡的优先级,将GPS围栏对应的第一虚拟卡激活。例如,在用户进入的优先级最高的多个GPS围栏对应的第一虚拟卡中优先级最高的虚拟卡为一 个的情况下,电子设备可以将优先级最高的第一虚拟卡激活。
在用户进入的优先级最高的多个GPS围栏对应的第一虚拟卡中优先级最高的第一虚拟卡为多个的情况下,电子设备可以将用户最后进入的GPS围栏对应的第一虚拟卡激活。
具体的,电子设备将GPS围栏对应的第一虚拟卡激活的具体实施方式,可以参考上述S903-S911中的实施方式。本申请实施例在此不再赘述。
采用本申请的方案,可以在用户在某个刷卡点首次使用某个虚拟卡进行交易时,根据电子设备当前的地理位置信息以及地理位置精度,建立该虚拟卡对应的地理围栏。之后当用户持电子设备再次进入到该地理围栏时,电子设备可以自动将该地理围栏对应的虚拟卡激活,从而用户可以利用该虚拟卡完成交易。即,在用户刷卡前,电子设备能够利用地理围栏自动激活对应虚拟卡。在面对不同的刷卡需求时,能够避免用户需要手动选择虚拟卡,从而降低刷卡的时长,提升用户体验。
且本申请的方案可以根据地理位置信息中的GPS位置信息和地理位置精度中的GPS精度,建立对应的地理围栏,GPS位置信息可以利用电子设备的短距离芯片来获取。而短距离芯片是电子设备的标准配置,因此即使电子设备不具备Wi-Fi围栏能力,仍然可以在用户刷卡前实现对应虚拟卡的自动激活,进一步提高了用户的使用体验。
此外,本申请的方案通过在用户进入多个地理围栏的范围时,通过判断多个地理围栏的优先级以及多个地理围栏对应的虚拟卡的优先级,确定需要激活的虚拟卡。能够避免在用户进入多个地理围栏的范围时,用户需要手动选择虚拟卡激活,从而进一步降低刷卡的时长,提升用户体验。对应于前述实施例中的方法,本申请实施例还提供一种虚拟卡切换装置。该虚拟卡切换装置可以应用于电子设备,用于实现前述实施例中的方法。该装置的功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块。
例如,图12示出了一种虚拟卡切换装置1200的结构示意图,如图12所示,该虚拟卡切换装置1200可以包括:获取模块1201、建立模块1202、存储模块1203和激活模块1204等。
其中,获取模块1201,可以用于在电子设备在第一刷卡点首次采用第一虚拟卡完成数据交互的情况下,获取电子设备的全球导航卫星***GNSS位置信息以及GNSS精度;第一虚拟卡为多个虚拟卡中的虚拟卡。
建立模块1202,可以用于根据GNSS位置信息以及GNSS精度,建立第一虚拟卡所对应的第一GNSS围栏,第一GNSS围栏包括第一围栏和第二围栏,第一围栏的范围大于第二围栏的范围。
存储模块1203,可以用于存储第一虚拟卡所对应的第一GNSS围栏。
激活模块1204,可以用于在电子设备监测到电子设备的位置到达第一GNSS围栏的范围内的情况下,将第一虚拟卡激活。
在另一种可能的实现方式中,第一围栏为以GNSS位置信息为圆心,以预设长度为半径的圆形区域;第二围栏为以GNSS位置信息为圆心,以N倍的GNSS精度为半径的圆形区域;N为大于零的整数,预设长度大于N倍的GNSS精度。
在另一种可能的实现方式中,建立模块1202,还可以用于建立多个虚拟卡中除第 一虚拟卡外的其他虚拟卡的GNSS围栏;其中,其他虚拟卡的GNSS围栏包括:第二虚拟卡所对应的第二GNSS围栏,第二GNSS围栏包括第三围栏和第四围栏,第三围栏的范围大于第四围栏的范围。
存储模块1203,还可以用于存储多个虚拟卡中除第一虚拟卡外的其他虚拟卡的GNSS围栏。
在另一种可能的实现方式中,激活模块1204,具体用于在电子设备监测到电子设备的位置到达第一GNSS围栏的范围内,且未到达其他虚拟卡的GNSS围栏的范围内的情况下,将第一虚拟卡激活。
在另一种可能的实现方式中,激活模块1204,具体用于在电子设备监测到电子设备的位置到达第一GNSS围栏中的第二围栏的范围内,且到达第二GNSS围栏中的第三围栏的范围内的情况下,将第一虚拟卡激活。
在另一种可能的实现方式中,结合图12,该虚拟卡切换装置1200还可以包括:确定模块1205。确定模块1205,可以用于在电子设备监测到电子设备的位置到达第一GNSS围栏中的第一围栏的范围内,且到达第二GNSS围栏中的所述第三围栏的范围内,或者,监测到所述电子设备的位置到达所述第一GNSS围栏中的所述第二围栏的范围内,且到达所述第二GNSS围栏的所述第四围栏的范围内的情况下,确定第一虚拟卡的优先级高于第二虚拟卡的优先级。激活模块1204,具体用于将第一虚拟卡激活。
在另一种可能的实现方式中,获取模块1201,还用于获取电子设备的移动趋势。激活模块1204,还用于将移动趋势上的GNSS围栏对应的虚拟卡激活。
结合第二方面,在另一种可能的实现方式中,预设长度为1千米;N为5;或,N倍的GNSS精度大于50米,且小于500米。
结合第二方面,在另一种可能的实现方式中,GNSS包括全球卫星定位***GPS、全球导航卫星***GLONASS,北斗卫星导航***BDS,准天顶卫星***QZSS或星基增强***SBAS。
应理解以上装置中单元或模块(以下均称为单元)的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且装置中的单元可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分单元以软件通过处理元件调用的形式实现,部分单元以硬件的形式实现。
例如,各个单元可以为单独设立的处理元件,也可以集成在装置的某一个芯片中实现,此外,也可以以程序的形式存储于存储器中,由装置的某一个处理元件调用并执行该单元的功能。此外这些单元全部或部分可以集成在一起,也可以独立实现。这里所述的处理元件又可以称为处理器,可以是一种具有信号的处理能力的集成电路。在实现过程中,上述方法的各步骤或以上各个单元可以通过处理器元件中的硬件的集成逻辑电路实现或者以软件通过处理元件调用的形式实现。
在一个例子中,以上装置中的单元可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个ASIC,或,一个或多个DSP,或,一个或者多个FPGA,或这些集成电路形式中至少两种的组合。
再如,当装置中的单元可以通过处理元件调度程序的形式实现时,该处理元件可 以是通用处理器,例如CPU或其它可以调用程序的处理器。再如,这些单元可以集成在一起,以片上***(system-on-a-chip,SOC)的形式实现。
在一种实现中,以上装置实现以上方法中各个对应步骤的单元可以通过处理元件调度程序的形式实现。例如,该装置可以包括处理元件和存储元件,处理元件调用存储元件存储的程序,以执行以上方法实施例所述的方法。存储元件可以为与处理元件处于同一芯片上的存储元件,即片内存储元件。
在另一种实现中,用于执行以上方法的程序可以在与处理元件处于不同芯片上的存储元件,即片外存储元件。此时,处理元件从片外存储元件调用或加载程序于片内存储元件上,以调用并执行以上方法实施例所述的方法。
例如,本申请实施例还可以提供一种装置,如:电子设备,可以包括:处理器,用于存储该处理器可执行指令的存储器。该处理器被配置为执行上述指令时,使得该电子设备实现如前述实施例所述的虚拟卡切换方法。该存储器可以位于该电子设备之内,也可以位于该电子设备之外。且该处理器包括一个或多个。
在又一种实现中,该装置实现以上方法中各个步骤的单元可以是被配置成一个或多个处理元件,这些处理元件可以设置于对应上述的电子设备上,这里的处理元件可以为集成电路,例如:一个或多个ASIC,或,一个或多个DSP,或,一个或者多个FPGA,或者这些类集成电路的组合。这些集成电路可以集成在一起,构成芯片。
例如,本申请实施例还提供一种芯片,该芯片可以应用于上述电子设备。芯片包括一个或多个接口电路和一个或多个处理器;接口电路和处理器通过线路互联;处理器通过接口电路从电子设备的存储器接收并执行计算机指令,以实现以上方法实施例中所述的方法。
本申请实施例还提供一种计算机程序产品,包括如上述电子设备运行的计算机指令。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成 的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,如:程序。该软件产品存储在一个程序产品,如计算机可读存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
例如,本申请实施例还可以提供一种计算机可读存储介质,其上存储有计算机程序指令。当计算机程序指令被电子设备执行时,使得电子设备实现如前述方法实施例中所述的虚拟卡切换方法。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。
Claims (20)
- 一种虚拟卡切换方法,其特征在于,应用于电子设备,所述电子设备具备近场通信NFC功能,所述电子设备包括多个虚拟卡,所述方法包括:在所述电子设备在第一刷卡点首次采用第一虚拟卡完成数据交互的情况下,所述电子设备获取所述电子设备的全球导航卫星***GNSS位置信息以及GNSS精度;所述第一虚拟卡为所述多个虚拟卡中的虚拟卡;所述电子设备根据所述GNSS位置信息以及所述GNSS精度,建立并存储所述第一虚拟卡所对应的第一GNSS围栏,所述第一GNSS围栏包括第一围栏和第二围栏,所述第一围栏的范围大于所述第二围栏的范围;在所述电子设备监测到所述电子设备的位置到达所述第一GNSS围栏的范围内的情况下,所述电子设备将所述第一虚拟卡激活。
- 根据权利要求1所述的方法,其特征在于,所述第一围栏为以所述GNSS位置信息为圆心,以预设长度为半径的圆形区域;所述第二围栏为以所述GNSS位置信息为圆心,以N倍的所述GNSS精度为半径的圆形区域;N为大于零的整数,所述预设长度大于N倍的所述GNSS精度。
- 根据权利要求1所述的方法,其特征在于,所述电子设备还建立并存储了所述多个虚拟卡中除所述第一虚拟卡外的其他虚拟卡的GNSS围栏;其中,所述其他虚拟卡的GNSS围栏包括:第二虚拟卡所对应的第二GNSS围栏,所述第二GNSS围栏包括第三围栏和第四围栏,所述第三围栏的范围大于所述第四围栏的范围。
- 根据权利要求3所述的方法,其特征在于,在所述电子设备监测到所述电子设备的位置到达所述第一GNSS围栏的范围内的情况下,所述电子设备将所述第一虚拟卡激活,包括:在所述电子设备监测到所述电子设备的位置到达所述第一GNSS围栏的范围内,且未到达其他虚拟卡的GNSS围栏的范围内的情况下,所述电子设备将所述第一虚拟卡激活。
- 根据权利要求3所述的方法,其特征在于,在所述电子设备监测到所述电子设备的位置到达所述第一GNSS围栏的范围内的情况下,所述电子设备将所述第一虚拟卡激活,包括:在所述电子设备监测到所述电子设备的位置到达所述第一GNSS围栏中的所述第二围栏的范围内,且到达所述第二GNSS围栏中的所述第三围栏的范围内的情况下,所述电子设备将所述第一虚拟卡激活。
- 根据权利要求3所述的方法,其特征在于,在所述电子设备监测到所述电子设备的位置到达所述第一GNSS围栏的范围内的情况下,所述电子设备将所述第一虚拟卡激活,包括:在所述电子设备监测到所述电子设备的位置到达所述第一GNSS围栏中的所述第一围栏的范围内,且到达所述第二GNSS围栏中的所述第三围栏的范围内,或者,监测到所述电子设备的位置到达所述第一GNSS围栏中的所述第二围栏的范围内,且到达所述第二GNSS围栏中的所述第四围栏的范围内的情况下,所述电子设备确定所述 第一虚拟卡的优先级高于所述第二虚拟卡的优先级;所述电子设备将所述第一虚拟卡激活。
- 根据权利要求6所述的方法,其特征在于,所述方法还包括:在所述第一虚拟卡的优先级与所述第二虚拟卡的优先级相同的情况下,所述电子设备获取所述电子设备的移动趋势;所述电子设备将所述移动趋势上的GNSS围栏对应的虚拟卡激活。
- 根据权利要求1-7中任一项所述的方法,其特征在于,所述第一虚拟卡具体为所述多个虚拟卡中预定类型的虚拟卡。
- 根据权利要求2所述的方法,其特征在于,所述预设长度为1千米;所述N为5;或,所述N倍的所述GNSS精度大于50米,且小于500米。
- 根据权利要求1-7中任一项所述的方法,其特征在于,所述GNSS包括全球卫星定位***GPS、全球导航卫星***GLONASS,北斗卫星导航***BDS,准天顶卫星***QZSS或星基增强***SBAS。
- 一种虚拟卡切换方法,其特征在于,应用于电子设备,所述电子设备具备近场通信NFC功能,所述电子设备包括多个虚拟卡,所述方法包括:在所述电子设备在第一刷卡点首次采用第一虚拟卡完成数据交互的情况下,所述电子设备获取所述电子设备的全球导航卫星***GNSS位置信息以及GNSS精度;所述第一虚拟卡为所述多个虚拟卡中的虚拟卡;所述电子设备根据所述GNSS位置信息以及所述GNSS精度,建立并存储所述第一虚拟卡所对应的第一GNSS围栏,所述第一GNSS围栏包括第一围栏和第二围栏,所述第一围栏的范围大于所述第二围栏的范围;所述电子设备还建立并存储了所述多个虚拟卡中除所述第一虚拟卡外的其他虚拟卡的GNSS围栏;其中,所述其他虚拟卡的GNSS围栏包括:第二虚拟卡所对应的第二GNSS围栏,所述第二GNSS围栏包括第三围栏和第四围栏,所述第三围栏的范围大于所述第四围栏的范围;在所述电子设备监测到所述电子设备的位置到达所述第一GNSS围栏的范围内的情况下,所述电子设备将所述第一虚拟卡激活,包括:在所述电子设备监测到所述电子设备的位置到达所述第一GNSS围栏中的所述第一围栏的范围内,且到达所述第二GNSS围栏中的所述第三围栏的范围内,或者,监测到所述电子设备的位置到达所述第一GNSS围栏中的所述第二围栏的范围内,且到达所述第二GNSS围栏中的所述第四围栏的范围内的情况下,所述电子设备确定所述第一虚拟卡的优先级高于所述第二虚拟卡的优先级;所述电子设备将所述第一虚拟卡激活。
- 根据权利要求11所述的方法,其特征在于,所述第一围栏为以所述GNSS位置信息为圆心,以预设长度为半径的圆形区域;所述第二围栏为以所述GNSS位置信息为圆心,以N倍的所述GNSS精度为半径的圆形区域;N为大于零的整数,所述预设长度大于N倍的所述GNSS精度。
- 根据权利要求11所述的方法,其特征在于,在所述电子设备监测到所述电子设备的位置到达所述第一GNSS围栏的范围内的情况下,所述电子设备将所述第一虚拟卡激活,还包括:在所述电子设备监测到所述电子设备的位置到达所述第一GNSS围栏的范围内,且未到达其他虚拟卡的GNSS围栏的范围内的情况下,所述电子设备将所述第一虚拟卡激活。
- 根据权利要求11所述的方法,其特征在于,在所述电子设备监测到所述电子设备的位置到达所述第一GNSS围栏的范围内的情况下,所述电子设备将所述第一虚拟卡激活,还包括:在所述电子设备监测到所述电子设备的位置到达所述第一GNSS围栏中的所述第二围栏的范围内,且到达所述第二GNSS围栏中的所述第三围栏的范围内的情况下,所述电子设备将所述第一虚拟卡激活。
- 根据权利要求11所述的方法,其特征在于,所述方法还包括:在所述第一虚拟卡的优先级与所述第二虚拟卡的优先级相同的情况下,所述电子设备获取所述电子设备的移动趋势;所述电子设备将所述移动趋势上的GNSS围栏对应的虚拟卡激活。
- 根据权利要求11-15中任一项所述的方法,其特征在于,所述第一虚拟卡具体为所述多个虚拟卡中预定类型的虚拟卡。
- 根据权利要求15所述的方法,其特征在于,所述预设长度为1千米;所述N为5;或,所述N倍的所述GNSS精度大于50米,且小于500米。
- 根据权利要求11-15中任一项所述的方法,其特征在于,所述GNSS包括全球卫星定位***GPS、全球导航卫星***GLONASS,北斗卫星导航***BDS,准天顶卫星***QZSS或星基增强***SBAS。
- 一种电子设备,其特征在于,所述电子设备包括处理器,用于存储所述处理器可执行指令的存储器;所述处理器被配置为执行所述指令时,使得所述电子设备实现如权利要求1至10中任一项所述的方法。
- 一种计算机可读存储介质,其上存储有计算机程序指令;其特征在于,当所述计算机程序指令被电子设备执行时,使得电子设备实现如权利要求1至10中任一项所述的方法。
Applications Claiming Priority (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110592522 | 2021-05-28 | ||
CN202110592522.5 | 2021-05-28 | ||
CN202110875764.5A CN113765546B (zh) | 2021-05-28 | 2021-07-30 | 一种虚拟卡切换方法及电子设备 |
CN202110875764.5 | 2021-07-30 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022247571A1 true WO2022247571A1 (zh) | 2022-12-01 |
Family
ID=78788317
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/089580 WO2022247571A1 (zh) | 2021-05-28 | 2022-04-27 | 一种虚拟卡切换方法及电子设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113765546B (zh) |
WO (1) | WO2022247571A1 (zh) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113765546B (zh) * | 2021-05-28 | 2022-05-27 | 荣耀终端有限公司 | 一种虚拟卡切换方法及电子设备 |
CN114374929A (zh) * | 2021-12-15 | 2022-04-19 | 深圳优美创新科技有限公司 | 一种可穿戴设备定位方法和装置、电子设备、存储介质 |
CN116703391B (zh) * | 2022-09-23 | 2024-04-26 | 荣耀终端有限公司 | 电子卡片的激活方法及装置 |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120177010A1 (en) * | 2011-01-06 | 2012-07-12 | Huang Ronald K | Multi-Tiered Detection of a Geofence |
US20140370909A1 (en) * | 2013-06-14 | 2014-12-18 | Microsoft Corporation | Reduced power location determinations for detecting geo-fences |
US9215560B1 (en) * | 2012-07-12 | 2015-12-15 | two forty four a.m. LLC | System and method for device-centric location detection and geofencing |
CN105764027A (zh) * | 2015-01-05 | 2016-07-13 | Sk普兰尼特有限公司 | 用于地理围栏的无线通信功能的自动激活设备及其方法以及包含此的*** |
US9473890B1 (en) * | 2015-09-29 | 2016-10-18 | Motorola Mobility Llc | Enhanced system and method for mobile device-based geo-fencing solutions |
CN109255269A (zh) * | 2017-07-12 | 2019-01-22 | 深圳如探索科技有限公司 | 设备控制方法、装置及设备 |
CN110381443A (zh) * | 2019-09-05 | 2019-10-25 | 北京小米移动软件有限公司 | 近场通信卡片激活方法和装置 |
CN111432339A (zh) * | 2020-03-19 | 2020-07-17 | RealMe重庆移动通信有限公司 | 近场通信卡片的切换方法、装置、存储介质及电子设备 |
CN112468975A (zh) * | 2020-11-30 | 2021-03-09 | ***用服务有限公司 | 一种模拟卡的管理方法、装置、介质及电子设备 |
CN113225676A (zh) * | 2021-05-25 | 2021-08-06 | 深圳市欢太数字科技有限公司 | 近场通信的设置方法、装置、移动终端及存储介质 |
CN113609881A (zh) * | 2021-07-30 | 2021-11-05 | Oppo广东移动通信有限公司 | 确定待激活模拟卡的方法、装置、设备及存储介质 |
CN113765546A (zh) * | 2021-05-28 | 2021-12-07 | 荣耀终端有限公司 | 一种虚拟卡切换方法及电子设备 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110020569B (zh) * | 2019-03-11 | 2022-03-29 | 华为技术有限公司 | 自动选择nfc模拟卡的方法、电子设备及通信*** |
CN111093180A (zh) * | 2019-12-31 | 2020-05-01 | 深圳Tcl新技术有限公司 | 基于nfc的模拟卡切换方法、终端及计算机存储介质 |
CN111447557A (zh) * | 2020-04-07 | 2020-07-24 | 广东小天才科技有限公司 | 一种控制nfc模拟卡切换的方法、服务器、移动终端及*** |
CN111930439A (zh) * | 2020-07-22 | 2020-11-13 | 北京字节跳动网络技术有限公司 | 虚拟卡切换方法、装置和电子设备 |
-
2021
- 2021-07-30 CN CN202110875764.5A patent/CN113765546B/zh active Active
-
2022
- 2022-04-27 WO PCT/CN2022/089580 patent/WO2022247571A1/zh active Application Filing
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120177010A1 (en) * | 2011-01-06 | 2012-07-12 | Huang Ronald K | Multi-Tiered Detection of a Geofence |
US9215560B1 (en) * | 2012-07-12 | 2015-12-15 | two forty four a.m. LLC | System and method for device-centric location detection and geofencing |
US20140370909A1 (en) * | 2013-06-14 | 2014-12-18 | Microsoft Corporation | Reduced power location determinations for detecting geo-fences |
CN105764027A (zh) * | 2015-01-05 | 2016-07-13 | Sk普兰尼特有限公司 | 用于地理围栏的无线通信功能的自动激活设备及其方法以及包含此的*** |
US9473890B1 (en) * | 2015-09-29 | 2016-10-18 | Motorola Mobility Llc | Enhanced system and method for mobile device-based geo-fencing solutions |
CN109255269A (zh) * | 2017-07-12 | 2019-01-22 | 深圳如探索科技有限公司 | 设备控制方法、装置及设备 |
CN110381443A (zh) * | 2019-09-05 | 2019-10-25 | 北京小米移动软件有限公司 | 近场通信卡片激活方法和装置 |
CN111432339A (zh) * | 2020-03-19 | 2020-07-17 | RealMe重庆移动通信有限公司 | 近场通信卡片的切换方法、装置、存储介质及电子设备 |
CN112468975A (zh) * | 2020-11-30 | 2021-03-09 | ***用服务有限公司 | 一种模拟卡的管理方法、装置、介质及电子设备 |
CN113225676A (zh) * | 2021-05-25 | 2021-08-06 | 深圳市欢太数字科技有限公司 | 近场通信的设置方法、装置、移动终端及存储介质 |
CN113765546A (zh) * | 2021-05-28 | 2021-12-07 | 荣耀终端有限公司 | 一种虚拟卡切换方法及电子设备 |
CN113609881A (zh) * | 2021-07-30 | 2021-11-05 | Oppo广东移动通信有限公司 | 确定待激活模拟卡的方法、装置、设备及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN113765546A (zh) | 2021-12-07 |
CN113765546B (zh) | 2022-05-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10749384B2 (en) | Electronic device and method for communicating with external electronic device | |
WO2022247571A1 (zh) | 一种虚拟卡切换方法及电子设备 | |
US10299210B2 (en) | Method and apparatus for reducing power consumption of electronic device | |
CN108604342B (zh) | 基于nfc进行数据传输的方法及移动设备 | |
CN113596810B (zh) | 基于双卡的网络制式切换方法及终端设备 | |
CN112771900B (zh) | 一种数据传输方法及电子设备 | |
US10548178B2 (en) | Method and device for establishing communication connection | |
CN114466102B (zh) | 显示应用界面的方法、相关装置以及交通信息显示*** | |
WO2020216160A1 (zh) | 一种se的自动路由方法及电子设备 | |
CN113573239B (zh) | 一种虚拟卡切换方法、电子设备及可穿戴设备 | |
CN115348350B (zh) | 一种信息显示方法及电子设备 | |
CN113923611A (zh) | 一种呼叫转移***及相关装置 | |
KR20170141006A (ko) | 전자 장치에서 가입자 식별 모듈을 연결하는 방법 및 그에 따른 전자 장치 | |
WO2021147419A1 (zh) | 一种数据传输方法、电子设备及存储介质 | |
CN115623118B (zh) | 一种近场通信控制方法及电子设备 | |
KR20180110517A (ko) | 전자 장치 및 전자 장치의 근거리 통신 커버리지 보상 방법 | |
WO2023015962A1 (zh) | 一种虚拟卡切换方法及电子设备 | |
EP4145875A1 (en) | Smart card sharing method, electronic device, and computer-readable storage medium | |
CN114201738B (zh) | 解锁方法及电子设备 | |
CN116032942A (zh) | 跨设备的导航任务的同步方法、装置、设备及存储介质 | |
CN115250428A (zh) | 一种定位方法和装置 | |
CN114501316B (zh) | 一种虚拟卡切换方法及电子设备 | |
CN116668951B (zh) | 一种生成地理围栏的方法、电子设备及存储介质 | |
CN116437293B (zh) | 地理围栏的建立方法、服务器及通信*** | |
CN114253496B (zh) | 一种显示方法及电子设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22810300 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 22810300 Country of ref document: EP Kind code of ref document: A1 |