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

Virtual card switching method and electronic equipment Download PDF

Info

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

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • H04W4/022Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences with dynamic range variability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Navigation (AREA)

Abstract

The embodiment of the application discloses a virtual card switching method and electronic equipment, and relates to the field of electronic equipment to reduce power consumption of the electronic equipment. The specific scheme is as follows: under the condition that the electronic equipment completes data interaction by adopting a first virtual card at a first card swiping point for the first time, the electronic equipment acquires GNSS position information and GNSS accuracy of the electronic equipment, and establishes and stores a first GNSS fence corresponding to the first virtual card according to the GNSS position information and the GNSS accuracy, wherein the first GNSS fence comprises a first fence and a second fence, and the range of the first fence is larger than that of the second fence; the method comprises the steps that when the electronic equipment monitors that the position of the electronic equipment reaches the range of a first fence, the electronic equipment activates a first virtual card; starting a timer when the electronic equipment monitors that the position of the electronic equipment reaches the range of the second fence; and deleting the second fence under the condition that the position of the electronic equipment is within the range of the second fence within the set time length of the timer.

Description

Virtual card switching method and electronic equipment
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a virtual card switching method and an electronic device.
Background
Near Field Communication (NFC) technology has been gradually popularized to miniaturized electronic devices, such as mobile phones. In the mobile phone with the NFC function, a plurality of NFC virtual cards can be configured, so that multiple functions of bus card swiping, transaction payment, entrance guard unlocking and the like can be realized.
In the prior art, a mobile phone can activate a virtual card corresponding to a geofence when a user reaches a certain range of the geofence by establishing the geofence corresponding to different virtual cards, so that the virtual card can be automatically switched before the user swipes the card.
However, in the prior art, in the process of implementing automatic switching of the virtual card, the mobile phone needs to acquire the geographic location of the mobile phone in real time or periodically, so as to determine whether the user reaches the range of the geo-fence, which results in large power consumption of the mobile phone.
Disclosure of Invention
The embodiment of the application provides a virtual card switching method and electronic equipment, which can reduce the power consumption of the electronic equipment.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
in a first aspect, an embodiment of the present application provides a virtual card switching method, which is applied to an electronic device, where the electronic device has an NFC function, and the electronic device includes a plurality of virtual cards. The virtual card switching method may include: under the condition that the electronic equipment completes data interaction by adopting a first virtual card at a first card swiping point for the first time, the electronic equipment acquires GNSS position information and GNSS precision of the electronic equipment; the first virtual card is a virtual card in a plurality of virtual cards; the electronic device establishes and stores a first GNSS fence corresponding to a first virtual card according to the GNSS position information and the GNSS accuracy, wherein the first GNSS fence comprises a first fence and a second fence, and the range of the first fence is larger than that of the second fence; the method comprises the steps that when the electronic equipment monitors that the position of the electronic equipment reaches the range of a first fence, the electronic equipment activates a first virtual card; under the condition that the electronic equipment monitors that the position of the electronic equipment reaches the range of the second fence, the electronic equipment starts a timer; and in the set time length of the timer, the electronic equipment deletes the second fence under the condition that the position of the electronic equipment is within the range of the second fence.
Based on the method of the first aspect, when the electronic device completes a transaction with a virtual card at a certain card swiping point for the first time, a GNSS geofence corresponding to the virtual card is established according to current GNSS location information of the electronic device. When the user holds the electronic device and then enters the range of the GNSS geo-fence again, the electronic device can automatically activate the virtual card corresponding to the GNSS geo-fence. Therefore, when different card swiping requirements are met, the virtual card needing to be activated can be prevented from being manually selected by a user, the card swiping process of the user is simplified, the card swiping duration is shortened, and the user experience is improved. According to the scheme, the corresponding geo-fence is established according to the GNSS position information, and the GNSS position information can be acquired by utilizing a short-distance chip of the electronic equipment. And the short-distance chip is the standard configuration of the electronic equipment, so that even if the electronic equipment does not have the Wi-Fi fence capability, the automatic activation of the corresponding virtual card can be realized before the user swipes the card, and the use experience of the user is further improved. In addition, according to the scheme of the application, under the condition that the electronic equipment is located in the range of the small fence within the set duration of the timer, the electronic equipment can delete the corresponding small fence, so that the electronic equipment does not need to maintain the corresponding small fence, the power consumption of the electronic equipment can be reduced, and after the small fence is deleted, the closest distance between the electronic equipment and the boundary of the fence is increased, so that the frequency of acquiring the current geographic position information of the electronic equipment by the electronic equipment is increased, and the frequency of determining whether a user enters the geographic fence or not by using a built-in fence algorithm can be correspondingly reduced, so that the power consumption of the electronic equipment can be further reduced.
With reference to the first aspect, in another possible implementation manner, the electronic device further establishes and stores GNSS fences of other virtual cards than the first virtual card in the plurality of virtual cards; wherein the GNSS fence of the other virtual card comprises: the virtual card switching method may further include: in the case where the electronic device monitors that the location of the electronic device is out of range of the first fence, or in the case where the electronic device monitors that the location of the electronic device is within range of the second GNSS fence, the electronic device resumes the second fence.
Based on the possible implementation manner, under the condition that the electronic equipment reaches the range of other geo-fences, the electronic equipment can restore the deleted geo-fence, so that when different card swiping requirements are met, the situation that a user manually selects a virtual card needing to be activated can be avoided, the card swiping process of the user is simplified, the card swiping time is shortened, and the user experience is improved.
With reference to the first aspect, in another possible implementation manner, the first fence is a circular area with GNSS position information as a center and a preset length as a radius; the second fence is a circular area which takes the GNSS position information as the center of a circle and takes the GNSS precision of N times as the radius; n is an integer larger than zero, and the preset length is larger than the GNSS precision of N times.
Based on the possible implementation mode, the electronic device can determine the range of the large fence and the range of the small fence, so that whether the electronic device reaches the range of the large fence or the range of the small fence or not can be determined by monitoring the position of the electronic device.
With reference to the first aspect, in another possible implementation manner, the preset length is 1 kilometer; n is 5; or the accuracy of the GNSS multiplied by N is more than 50 meters and less than 500 meters.
Based on the possible implementation mode, the electronic device can accurately determine the range of the large fence and the range of the small fence, so that whether the electronic device reaches the range of the large fence or the range of the small fence can be accurately determined by monitoring the position of the electronic device.
With reference to the first aspect, in another possible implementation manner, the first virtual card is specifically a virtual card of a predetermined type in the plurality of virtual cards.
Based on the possible implementation manner, the first virtual card is a virtual card of a predetermined type in the plurality of virtual cards, so that when the electronic device completes a transaction by using a certain virtual card at a certain card swiping point for the first time, the electronic device can quickly determine whether to establish a fence corresponding to the virtual card.
With reference to the first aspect, in another possible implementation manner, the GNSS includes a global positioning satellite system GPS, a global navigation satellite system GLONASS, a beidou satellite navigation system BDS, a quasi-zenith satellite system QZSS, or a satellite-based augmentation system SBAS.
Based on the possible implementation mode, the electronic equipment can establish different types of GNSS fences corresponding to the virtual card through GNSS including a global satellite positioning system GPS, a global navigation satellite system GLONASS, a Beidou satellite navigation system BDS, a quasi-zenith satellite system QZSS or a satellite-based augmentation system SBAS.
In a second aspect, an embodiment of the present application provides a virtual card switching method, which is applied to an electronic device, where the electronic device has an NFC function, and the electronic device includes a plurality of virtual cards. The virtual card switching method may include: under the condition that the electronic equipment completes data interaction by adopting a first virtual card at a first card swiping point for the first time, the electronic equipment acquires GNSS position information and GNSS precision of the electronic equipment; the first virtual card is a virtual card in a plurality of virtual cards; the electronic equipment establishes and stores a first GNSS fence corresponding to the first virtual card according to the GNSS position information and the GNSS accuracy, wherein the first GNSS fence comprises a first fence and a second fence, and the range of the first fence is larger than that of the second fence; the method comprises the steps that when the electronic equipment monitors that the position of the electronic equipment reaches the range of a first GNSS fence, the electronic equipment activates a first virtual card; and under the condition that the electronic equipment meets a first preset condition, deleting the first GNSS fence by the electronic equipment.
Based on the method of the second aspect, when the electronic device completes a transaction with a virtual card at a certain card swiping point for the first time, a GNSS geofence corresponding to the virtual card is established according to the current GNSS location information of the electronic device. When the user then re-enters the range of the GNSS geofence with the electronic device, the electronic device may automatically activate the virtual card corresponding to the GNSS geofence. Therefore, when different card swiping requirements are met, the virtual card needing to be activated can be prevented from being manually selected by a user, the card swiping process of the user is simplified, the card swiping duration is shortened, and the user experience is improved. According to the scheme, the corresponding geo-fence is established according to the GNSS position information, and the GNSS position information can be acquired by utilizing a short-distance chip of the electronic equipment. And the short-distance chip is the standard configuration of the electronic equipment, so that even if the electronic equipment does not have the Wi-Fi fence capability, the automatic activation of the corresponding virtual card can be realized before the user swipes the card, and the use experience of the user is further improved. In addition, according to the scheme of the application, the corresponding geo-fence is deleted under the condition that the electronic device meets the preset condition, so that the electronic device does not need to maintain the corresponding geo-fence, and the power consumption of the electronic device can be reduced.
With reference to the second aspect, in another possible implementation manner, the first preset condition includes: the electronic device is successfully connected with the wireless fidelity Wi-Fi.
Based on the possible implementation manner, when the electronic device is successfully connected to the Wi-Fi, the electronic device may delete the corresponding geo-fence, so that the electronic device may not maintain the corresponding geo-fence, and power consumption of the electronic device may be reduced.
With reference to the second aspect, in another possible implementation manner, the virtual card switching method may further include: and under the condition that the electronic equipment meets a second preset condition, the electronic equipment recovers the first GNSS fence.
Based on the possible implementation manner, under the condition that the electronic equipment meets the second preset condition, the electronic equipment can restore the deleted geo-fence, so that when different card swiping requirements are met, the situation that a user manually selects a virtual card needing to be activated can be avoided, the card swiping process of the user is simplified, the card swiping time is shortened, and the user experience is improved.
With reference to the second aspect, in another possible implementation manner, the second preset condition includes: the electronic device disconnects the Wi-Fi connection.
Based on the possible implementation mode, when the electronic equipment is disconnected from the Wi-Fi connection, the electronic equipment can restore the corresponding geo-fence, so that when different card swiping requirements are met, the situation that a user manually selects a virtual card needing to be activated can be avoided, the card swiping process of the user is simplified, the card swiping duration is shortened, and the user experience is improved.
With reference to the second aspect, in another possible implementation manner, the first fence is a circular area with the GNSS location information as a center and a preset length as a radius; the second fence is a circular area which takes the GNSS position information as the center of a circle and takes the GNSS precision of N times as the radius; n is an integer larger than zero, and the preset length is larger than the GNSS precision of N times.
Based on the possible implementation mode, the electronic device can determine the range of the large fence and the range of the small fence, so that whether the electronic device reaches the range of the large fence or the range of the small fence can be determined by monitoring the position of the electronic device.
With reference to the second aspect, in another possible implementation manner, the preset length is 1 kilometer; n is 5; or the accuracy of the GNSS multiplied by N is more than 50 meters and less than 500 meters.
Based on the possible implementation mode, the electronic device can accurately determine the range of the large fence and the range of the small fence, so that whether the electronic device reaches the range of the large fence or the range of the small fence can be accurately determined by monitoring the position of the electronic device.
With reference to the second aspect, in another possible implementation manner, the first virtual card is specifically a virtual card of a predetermined type among the plurality of virtual cards.
Based on the possible implementation manner, the first virtual card is a virtual card of a predetermined type in the plurality of virtual cards, so that when the electronic device completes a transaction by using a certain virtual card at a certain card swiping point for the first time, the electronic device can quickly determine whether to establish a fence corresponding to the virtual card.
With reference to the second aspect, in another possible implementation manner, the GNSS includes a global positioning satellite system GPS, a global navigation satellite system GLONASS, a beidou satellite navigation system BDS, a quasi-zenith satellite system QZSS, or a satellite-based augmentation system SBAS.
Based on the possible implementation mode, the electronic equipment can establish different types of GNSS fences corresponding to the virtual card through GNSS including a global satellite positioning system GPS, a global navigation satellite system GLONASS, a Beidou satellite navigation system BDS, a quasi-zenith satellite system QZSS or a satellite-based augmentation system SBAS.
In a third aspect, an embodiment of the present application provides a virtual card switching apparatus, which may be applied to an electronic device, and is configured to implement the method in the first aspect. The function of the virtual card switching device can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions, such as an acquisition module, a creation module, a storage module, an activation module, a start module, a deletion module, and the like.
The acquisition module can be used for acquiring Global Navigation Satellite System (GNSS) position information and GNSS accuracy of the electronic equipment under the condition that the electronic equipment completes data interaction by adopting a first virtual card at a first card swiping point for the first time; the first virtual card is a virtual card of a plurality of virtual cards.
The establishing module may be configured to establish a first GNSS fence corresponding to the first virtual card according to the GNSS position information and the GNSS accuracy, where the first GNSS fence includes a first fence and a second fence, and a range of the first fence is greater than a range of the second fence.
The storage module may be configured to store a first GNSS fence corresponding to the first virtual card.
The activation module may be configured to activate the first virtual card when the electronic device monitors that the location of the electronic device reaches within the range of the first fence.
The starting module can be used for starting the timer when the electronic equipment monitors that the position of the electronic equipment reaches the range of the second fence.
And the deleting module can be used for deleting the second fence under the condition that the position of the electronic equipment is within the range of the second fence within the set time length of the timer.
With reference to the third aspect, in another possible implementation manner, the establishing unit may be further configured to establish GNSS fences of other virtual cards, except for the first virtual card, in the plurality of virtual cards; wherein the GNSS fence of the other virtual card comprises: a second GNSS fence corresponding to the second virtual card. The storage unit may further be configured to store GNSS fences of other virtual cards than the first virtual card in the plurality of virtual cards. The virtual card switching apparatus may further include: and a recovery module. The recovery module may be configured to recover the second fence when the electronic device monitors that the location of the electronic device is out of the range of the first fence, or when the electronic device monitors that the location of the electronic device is within the range of the second GNSS fence.
With reference to the third aspect, in another possible implementation manner, the first fence is a circular area with GNSS position information as a center and a preset length as a radius; the second fence is a circular area which takes the GNSS position information as the center of a circle and takes the GNSS precision of N times as the radius; n is an integer larger than zero, and the preset length is larger than the GNSS precision of N times.
With reference to the third aspect, in another possible implementation manner, the preset length is 1 kilometer; n is 5; or the accuracy of the GNSS multiplied by N is more than 50 meters and less than 500 meters.
With reference to the third aspect, in another possible implementation manner, the first virtual card is specifically a virtual card of a predetermined type in the plurality of virtual cards.
With reference to the third aspect, in another possible implementation manner, the GNSS includes a global positioning satellite system GPS, a global navigation satellite system GLONASS, a beidou satellite navigation system BDS, a quasi-zenith satellite system QZSS, or a satellite-based augmentation system SBAS.
In a fourth aspect, an embodiment of the present application further provides a virtual card switching apparatus, which can be applied to an electronic device, and is configured to implement the method in the second aspect. The function of the virtual card switching device can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions, such as an acquisition module, a creation module, a storage module, an activation module, a start module, a deletion module, and the like.
The acquisition module can be used for acquiring Global Navigation Satellite System (GNSS) position information and GNSS accuracy of the electronic equipment under the condition that the electronic equipment completes data interaction by adopting a first virtual card at a first card swiping point for the first time; the first virtual card is a virtual card of a plurality of virtual cards.
The establishing module may be configured to establish a first GNSS fence corresponding to the first virtual card according to the GNSS position information and the GNSS accuracy, where the first GNSS fence includes a first fence and a second fence, and a range of the first fence is greater than a range of the second fence.
The storage module may be configured to store a first GNSS fence corresponding to the first virtual card.
The activation module may be configured to activate the first virtual card when the electronic device monitors that the location of the electronic device is within the range of the first fence.
The deleting module can be used for deleting the second fence under the condition that the electronic equipment meets the first preset condition.
With reference to the fourth aspect, in another possible implementation manner, the first preset condition includes: the electronic device is successfully connected with the wireless fidelity Wi-Fi.
With reference to the fourth aspect, in another possible implementation manner, the virtual card switching apparatus may further include: and a recovery module. The recovery module may be configured to recover the first GNSS fence when the electronic device satisfies a second preset condition.
With reference to the fourth aspect, in another possible implementation manner, the second preset condition includes: the electronic device disconnects the Wi-Fi connection.
With reference to the fourth aspect, in another possible implementation manner, the first fence is a circular area with GNSS position information as a center of a circle and a preset length as a radius; the second fence is a circular area which takes the GNSS position information as the center of a circle and takes the GNSS precision of N times as the radius; n is an integer larger than zero, and the preset length is larger than the GNSS precision of N times.
With reference to the fourth aspect, in another possible implementation manner, the preset length is 1 km; n is 5; or the accuracy of the GNSS multiplied by N is more than 50 meters and less than 500 meters.
With reference to the fourth aspect, in another possible implementation manner, the first virtual card is specifically a virtual card of a predetermined type in the plurality of virtual cards.
With reference to the fourth aspect, in another possible implementation manner, the GNSS includes a global positioning satellite system GPS, a global navigation satellite system GLONASS, a beidou satellite navigation system BDS, a quasi-zenith satellite system QZSS, or a satellite-based augmentation system SBAS.
In a fifth aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory for storing instructions executable by the processor. The processor is configured to execute the above instructions to enable the electronic device to implement the virtual card switching method according to the first aspect or any one of the possible implementation manners of the first aspect; or, the processor is configured to execute the above instructions, so that the electronic device implements the virtual card switching method according to the second aspect or any one of the possible implementation manners of the second aspect.
In a sixth aspect, embodiments of the present application provide a computer-readable storage medium having computer program instructions stored thereon. The computer program instructions, when executed by the electronic device, cause the electronic device to implement the virtual card switching method as described in the first aspect or any one of the possible implementations of the first aspect; alternatively, the computer program instructions, when executed by the electronic device, cause the electronic device to implement the virtual card switching method as described in the second aspect or any one of the possible implementations of the second aspect.
In a seventh aspect, an embodiment of the present application provides a computer program product, which includes computer readable code, and when the computer readable code is run in an electronic device, causes the electronic device to implement the virtual card switching method according to the first aspect or any one of the possible implementation manners of the first aspect; alternatively, the computer readable code, when run in an electronic device, causes the electronic device to implement the virtual card switching method as described in the second aspect or any one of its possible implementations.
It should be understood that, the beneficial effects of the third to seventh aspects may be referred to the description of the first or second aspect, and are not repeated herein.
Drawings
Fig. 1 is a schematic view of an application scenario of an NFC virtual card according to an embodiment of the present application;
fig. 2 is a first schematic view of a display interface of an electronic device according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 4 is a first schematic diagram of a framework of a virtual card switching method according to an embodiment of the present application;
fig. 5 is a second schematic diagram of a framework of a virtual card switching method according to an embodiment of the present application;
fig. 6 is a schematic diagram illustrating a geo-fence establishment method corresponding to a virtual card according to an embodiment of the present disclosure;
fig. 7 is a first schematic diagram of a geofence provided by an embodiment of the present application;
fig. 8 is a second schematic diagram of a geofence provided by an embodiment of the present application;
fig. 9A is a first schematic diagram illustrating a virtual card switching method according to an embodiment of the present application;
fig. 9B is a second schematic display interface diagram of an electronic device according to an embodiment of the present application;
FIG. 10 is a schematic diagram of virtual card switching according to an embodiment of the present application;
fig. 11 is a schematic diagram illustrating a virtual card switching method according to an embodiment of the present application;
fig. 12 is a first schematic structural diagram of a virtual card switching apparatus according to an embodiment of the present disclosure;
fig. 13 is a second schematic structural diagram of a virtual card switching device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present application, "a plurality" means two or more unless otherwise specified.
At present, the NFC technology has gradually spread to miniaturized electronic devices. Electronic equipment such as a mobile phone supporting an NFC function can exchange data with an NFC card reader (e.g., a point of sale (POS)) when being close to the NFC card reader, so as to implement various NFC functions such as card swiping and data transfer. For example, as shown in fig. 1, the mobile phone 101 has an NFC function, and when a user takes a bus, the user can bring the mobile phone 101 close to the NFC card reader 102 on the bus, so that the mobile phone 101 can exchange data with the NFC card reader 102 on the bus, that is, the mobile phone 101 completes payment of a bus taking fee.
Generally, an NFC-enabled electronic device may include an application program (e.g., referred to as an NFC application) for implementing near field communication. The NFC application has an emulation function of simulating a non-contact circuit (IC) card. For example, the NFC application may include a card package application, a bus application, a bank-like application, a door access application, and the like.
Each NFC application includes at least one virtual card, such as a virtual transportation card, a virtual access card, a virtual bank card, and the like. Each virtual card may correspond to an identifier, which may be an Application Identifier (AID) or an Identifier (ID). When a virtual card supports AID identification, the virtual card may be identified with an AID. And some virtual cards do not support AID identification, for example, Mifare series cards, such as a cell access control card, can be identified by ID. The mapping relationship between the virtual card and the identifier of the NFC application may be stored in a memory of the electronic device, and may also be stored in a cloud. As an example, the mapping relationship is stored in a memory of the electronic device, and the NFC application is a card package application. The mapping relationship between the virtual card and the identification of the card package application stored in the memory of the electronic device is shown in table 1.
TABLE 1
Figure BDA0003220112900000071
As can be seen from table 1, in the electronic device, the card package application may include a plurality of virtual cards of different types, such as a cell access card, a public transportation card, and a smart door lock card. And the activation state of one of the virtual cards is activated, for example, the activation state of the intelligent door lock card identified as AID2 is activated.
In the case where the electronic device receives NFC field strength information (i.e., the electronic device is close to an NFC reader), the electronic device defaults to data interaction (i.e., completes a transaction) with the close NFC reader by the activated virtual card. The virtual card that is in the activated state is often a default card that is pre-configured. When the NFC card reader is matched with the default card, data interaction between the NFC card reader and the electronic equipment is successful. However, when the NFC card reader does not match the default card, a data interaction failure occurs. When the NFC card reader is not matched with the default card, the user is required to manually select the correct virtual card to achieve successful interaction with the NFC card reader.
For example, the electronic device is a mobile phone. As shown in fig. 2 (a), the card package applications of the mobile phone include a cell access card, a smart door lock card, and a public transportation card. For different usage scenarios, the user may use different virtual cards in the card package. For example, a user may use a public transportation card in a card package while riding a bus. For example, the cell phone may receive an indication including an identification (e.g., AID1) when the cell phone is near an NFC reader of a bus. Thereafter, the mobile phone may display a card swiping interface 201 shown in (b) of fig. 2 for prompting the user that data interaction with the NFC card reader is being attempted with a default card (i.e., a smart door lock card). The handset may also compare whether the identification in the indication (i.e., AID1) is the same as the identification of the default card (i.e., AID 2). When the mobile phone determines that the two are different, the mobile phone may display a card swiping interface 202 as shown in (c) in fig. 2, and display a prompt message of "card swiping failure, card switching activation". Then, the mobile phone receives the selection operation of the public transportation card by the user, and in response, the smart door lock card in the activated state can be deactivated, and the public transportation card is activated. And then, when the mobile phone approaches the NFC card reader on the bus again, the activated public transport card is used for data interaction with the NFC card reader on the bus, so that the operations of deducting money and the like can be executed, the NFC card reader of the bus is informed, and card swiping is completed.
Therefore, when the NFC card reader is not matched with a currently activated virtual card, such as a default card, that is, when different card swiping requirements are met, a user needs to manually select a correct virtual card activation so as to complete data interaction with the NFC card reader. Therefore, the card swiping process is complicated and the time is long.
In the related art, a wireless fidelity (Wi-Fi) geo-fence is used to automatically activate a corresponding virtual card before a user swipes the card.
The geofence is that when a user arrives near a certain geographic location, the mobile phone of the user may match the monitored longitude and latitude coordinates of the mobile phone, the identifier of the Cell base station scanned by the mobile phone, or the Wi-Fi information (such as the Wi-Fi identifier) scanned by the mobile phone with the location information corresponding to the geographic location, the identifier of the Cell base station (Cell), or the Wi-Fi information, and after the matching is successful, the mobile phone may determine that the user enters the geofence corresponding to the geographic location.
Geofences can be classified as Global Navigation Satellite System (GNSS) geofences, Cell (Cell) geofences, and Wi-Fi geofences according to their monitored parameters.
The GNSS geofence monitoring parameters may be latitude and longitude coordinates of the handset. The monitoring area of the GNSS geofence may be a circular area with a certain length as a radius and a certain geographic position coordinate point as a center, or a polygonal area with a plurality of geographic position coordinate points as vertexes, and the vertexes are connected together.
The monitoring parameter of the Cell geofence may be an identification of the Cell base station scanned by the Cell phone. The monitoring area of a Cell geofence may be the coverage area of one or more Cell base station signals.
The monitored parameter of the Wi-Fi geofence can be a Wi-Fi signal scanned by the cell phone. The monitoring area of the Wi-Fi geofence may be a coverage area of one or more Wi-Fi signals.
After the mobile phone determines that the user enters the geo-fence corresponding to the geo-location, the fence mechanism corresponding to the geo-location may be triggered, so as to perform an operation corresponding to the fence corresponding to the geo-location, for example, a card corresponding to the geo-location may be activated.
Specifically, the above related art scheme is: when a user uses a virtual card to conduct transaction, the mobile phone sets a Wi-Fi geographic fence according to the identification of the virtual card and the Wi-Fi identification corresponding to the card swiping position of the user, and stores the corresponding relation between the Wi-Fi identification in the Wi-Fi geographic fence and the identification of the virtual card. And then, the mobile phone can periodically acquire the Wi-Fi identifier of the current geographic position of the mobile phone and judge whether the acquired Wi-Fi identifier is the same as the Wi-Fi identifier in the set Wi-Fi geographic fence. And when the mobile phone detects that the obtained Wi-Fi identification is the same as the Wi-Fi identification in the Wi-Fi geo-fence, determining that the user enters the Wi-Fi geo-fence. At this time, the mobile phone can automatically activate the virtual card corresponding to the Wi-Fi geofence according to the stored corresponding relationship, so that the user can complete card swiping by using the activated virtual card. Namely, the automatic activation of the corresponding virtual card is realized before the user swipes the card.
However, implementation of the above scheme requires the handset to have Wi-Fi geofencing capability, such as requiring a sensing hub (sensorhub) in the handset to have low power Wi-Fi geofencing capability. When the mobile phone does not have the Wi-Fi geo-fence capability, the setting of the Wi-Fi geo-fence corresponding to the virtual card cannot be realized, and the corresponding virtual card cannot be automatically activated before the user swipes the card. Thus, the user is still required to manually select the correct virtual card activation.
In order to facilitate the user to use the NFC function on the electronic device, when the user completes a transaction with a virtual card at a certain card swiping point for the first time, the GNSS geofence corresponding to the virtual card may be established according to the current GNSS location information of the electronic device. When the user then re-enters the GNSS geofence with the electronic device, the electronic device may automatically activate the virtual card corresponding to the GNSS geofence so that the user may complete the transaction using the virtual card. That is, the electronic device can automatically activate the corresponding virtual card using the GNSS geofence before the user swipes the card.
Therefore, when different card swiping requirements are met, the situation that a user needs to manually select the virtual card can be avoided, the card swiping time is shortened, and the user experience is improved. According to the scheme, the corresponding geo-fence is established according to the GNSS position information, and the GNSS position information can be acquired by utilizing a short-distance chip of the electronic equipment. And the short-distance chip is the standard configuration of the electronic equipment, so that even if the electronic equipment does not have the Wi-Fi fence capability, the automatic activation of the corresponding virtual card can be realized before the user swipes the card, and the use experience of the user is further improved.
It is understood that a GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou satellite navigation system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS), among others. Thus, the GNSS geofence in this embodiment may be a GPS geofence, a GLONASS geofence, a beidou geofence, a QZSS geofence, or an SBAS geofence, among others.
The specific type of GNSS geofence is not limited in this application. For the convenience of understanding, in the following embodiments of the present application, a GNSS geofence is taken as an example of a GPS geofence for illustration. That is, the monitoring parameter of the GPS fence can be the latitude and longitude coordinates of the electronic device. The monitoring area of the GPS fence may be a circular area with a certain length as a radius and a certain geographical position coordinate point as a center, or a polygonal area with a plurality of geographical position coordinate points as vertexes, which are connected together.
After the GNSS geo-fence corresponding to the virtual card is established, the electronic device can acquire GNSS position information of the electronic device in real time or periodically, and determine the virtual card to be activated according to the GNSS position information of the electronic device and the corresponding relation between the stored virtual card and the GNSS geo-fence, so that a correct virtual card can be automatically selected and activated before a user swipes the card. The electronic device obtains current GNSS location information of the electronic device in real time or periodically, and determines whether the user enters a GNSS geofence by using a built-in fence algorithm, that is, the electronic device maintains the geofence, which may result in higher power consumption of the electronic device.
In view of the foregoing problems, an embodiment of the present invention provides a virtual card switching method, which is applied to an electronic device and can reduce power consumption of the electronic device. After the electronic device stores the geofence corresponding to the virtual card, it may be determined whether the electronic device satisfies a first preset condition (for example, the electronic device successfully connects to Wi-Fi) while the electronic device maintains the geofence, and if the first preset condition is satisfied, the electronic device may delete the corresponding GNSS geofence, or determine whether the electronic device enters a small fence, and if the electronic device enters the small fence, the electronic device may delete the corresponding small fence, thereby reducing power consumption of the electronic device.
In addition, in some examples, the electronic device may be an NFC-enabled electronic device such as a mobile phone, a tablet computer, a handheld computer, a Personal Computer (PC), a cellular phone, a Personal Digital Assistant (PDA), and a wearable device. The embodiment of the present application does not limit the specific form of the electronic device.
Exemplarily, taking an electronic device as a mobile phone as an example, fig. 3 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
As shown in fig. 3, the electronic device may include a processor 310, an external memory interface 320, an internal memory 321, a Universal Serial Bus (USB) interface 330, a charging management module 340, a power management module 341, a battery 342, an antenna 1, an antenna 2, a mobile communication module 350, a wireless communication module 360, an audio module 370, a speaker 370A, a receiver 370B, a microphone 370C, an earphone interface 370D, a sensor module 380, a button 390, a motor 391, an indicator 392, a camera 393, a display 394, a Subscriber Identification Module (SIM) card interface 395, and the like. The sensor module 380 may include a pressure sensor 380A, a gyroscope sensor 380B, an air pressure sensor 380C, a magnetic sensor 380D, an acceleration sensor 380E, a distance sensor 380F, a proximity light sensor 380G, a fingerprint sensor 380H, a temperature sensor 380J, a touch sensor 380K, an ambient light sensor 380L, a bone conduction sensor 380M, and the like.
It is to be understood that the illustrated structure of the present embodiment does not constitute a specific limitation to the electronic device. In other embodiments, an electronic device may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 310 may include one or more processing units, such as: the processor 310 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
In the embodiment of the present application, the processor 310 may further include a sensing hub (sensorubb) and a short-range processor (also referred to as a short-range chip). The short-range chip may be used to acquire GPS location information as well as Wi-Fi scan information. In some embodiments, the short-range chip may include two chips, a GPS chip for acquiring GPS positioning information and a Wi-Fi chip for acquiring Wi-Fi scanning information.
The controller may be a neural center and a command center of the electronic device. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 310 for storing instructions and data. In some embodiments, the memory in the processor 310 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 310. If the processor 310 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 310, thereby increasing the efficiency of the system.
In some embodiments, processor 310 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The wireless communication function of the electronic device may be implemented by the antenna 1, the antenna 2, the mobile communication module 350, the wireless communication module 360, the modem processor, the baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in an electronic device may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 350 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device. The mobile communication module 350 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 350 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the filtered electromagnetic wave to the modem processor for demodulation. The mobile communication module 350 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 350 may be disposed in the processor 310. In some embodiments, at least some of the functional modules of the mobile communication module 350 may be disposed in the same device as at least some of the modules of the processor 310.
The wireless communication module 360 may provide solutions for wireless communication applied to electronic devices, including Wireless Local Area Networks (WLANs), such as wireless fidelity (Wi-Fi) networks, Bluetooth (BT), Global Navigation Satellite Systems (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 360 may be one or more devices integrating at least one communication processing module. The wireless communication module 360 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 310. The wireless communication module 360 may also receive a signal to be transmitted from the processor 310, frequency-modulate and amplify the signal, and convert the signal into electromagnetic waves via the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of the electronic device is coupled to the mobile communication module 350 and antenna 2 is coupled to the wireless communication module 360 so that the electronic device can communicate with the network and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc.
The electronic device implements display functions via the GPU, the display 394, and the application processor, among other things. The GPU is an image processing microprocessor coupled to a display 394 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 310 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 394 is used to display images, video, and the like. The display screen 394 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the electronic device may include 1 or N display screens 394, N being a positive integer greater than 1.
In this embodiment, the display 394 may be used to display an interface of the electronic device.
The electronic device may implement the shooting function through the ISP, camera 393, video codec, GPU, display 394, application processor, etc. In some embodiments, the electronic device may include 1 or N cameras 393, N being a positive integer greater than 1.
The internal memory 321 may be used to store computer-executable program code, which includes instructions. The processor 310 executes various functional applications of the electronic device and data processing by executing instructions stored in the internal memory 321. The internal memory 321 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The data storage area can store data (such as audio data, phone book and the like) established in the use process of the electronic equipment. In addition, the internal memory 321 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
The acceleration sensor 380E may periodically collect acceleration data of the electronic device at a certain frequency. For example, the acceleration of the electronic device in various directions (typically, XYZ three-axis directions) can be acquired.
Of course, it should be understood that fig. 3 is only an exemplary illustration of the electronic device in the form of a mobile phone. If the electronic device is in the form of a tablet computer, a handheld computer, a PC, a PDA, a wearable device (e.g., a smart watch, a smart bracelet), or other devices, the structure of the electronic device may include fewer structures than those shown in fig. 3, or may include more structures than those shown in fig. 3, and is not limited herein.
It will be appreciated that, in general, the implementation of electronic device functions requires the cooperation of software in addition to hardware support.
For example, in some examples of the present application, as shown in fig. 4, the automatic switching of the virtual card of the electronic device is implemented, at least with the support of hardware such as a processor, a sensorhub, a short-range chip, and a baseband processor (also referred to as a baseband chip), and with the cooperation of software such as an NFC card package application (e.g., a smart card application) and an application in a system service (e.g., a GPS application, a Wi-Fi application). The software and hardware may be connected by a hardware connection layer.
Based on fig. 4, taking an application in the system service as a GPS application and a geo-fence established by the electronic device as a GPS fence as an example, the process of the electronic device implementing automatic virtual card switching may include: when a user completes a transaction by using a virtual card at a certain card swiping point for the first time, the short-distance chip acquires GPS positioning information. The short-distance chip sends the GPS positioning information to the intelligent flash card application through the sensorhub, the hardware connection layer and the GPS application. The smart flash card application establishes a GPS fence and sends the established GPS fence to the GPS application. And the GPS application performs fence storage and fence management on the fence established by the intelligent flash card application. The GPS application sends the established GPS fence to the sensorhub. Then, the sensorhub can periodically acquire the GPS positioning information of the electronic device from the short-range chip. The sensorhub may include fence algorithms such as the GPS fence algorithm, the Cell fence algorithm, and the Wi-Fi fence algorithm. The sensorhub obtains the GPS position information from the short-distance chip, whether a user enters a GPS fence is determined by using a built-in fence algorithm such as the GPS fence algorithm, and a main processor of the electronic equipment does not need to be awakened when the sensorhub works, so that the low-power-consumption fence capability is realized. When the sensorhub determines that the user enters the GPS fence, the sensorhub sends the GPS fence entered by the user to the intelligent flash card application through the GPS application, and therefore the intelligent flash card activates the virtual card corresponding to the GPS fence according to the GPS fence entered by the user.
The above example is described by taking the example that the processor of the electronic device includes sensorhub and the short-range chip is a chip, that is, the short-range chip can be used to obtain GPS positioning information and also can be used to obtain Wi-Fi scanning information. In another embodiment, the processor of the electronic device may not include the sensorhub, the short-distance chip may include two chips, that is, a GPS chip and a Wi-Fi chip, the GPS chip is used to obtain GPS positioning information, the Wi-Fi chip is used to obtain Wi-Fi scanning information, then as shown in fig. 5, continuing to take an application in the system service as a GPS application and a fence established by the electronic device as a GPS fence as an example, the process of the electronic device implementing the automatic virtual card switching may include: when a user completes a transaction by using a virtual card at a certain card swiping point for the first time, the GPS chip acquires GPS positioning information. The GPS chip sends the GPS positioning information to the intelligent flash card application through the hardware connection layer and the GPS application. The smart flash card application establishes a GPS fence and sends the established GPS fence to the GPS application. And the GPS application performs fence storage and fence management on the fence established by the intelligent flash card application. And the GPS application sends the established GPS fence to the GPS chip. Then, the GPS chip can periodically acquire GPS positioning information and determine whether the user enters the GPS fence by using a GPS fence algorithm included in the GPS positioning information. When the user is determined to enter the GPS fence, the GPS chip sends the GPS fence entered by the user to the smart flash card application through the GPS application, the GPS chip can work independently without waking up a main processor of the electronic equipment, and therefore the fence capability with low power consumption is achieved. And the intelligent flash card activates the virtual card corresponding to the GPS fence according to the GPS fence entered by the user.
The following describes in detail a method for switching virtual cards according to an embodiment of the present application with reference to fig. 4. In an embodiment of the present application, the method may include: the method comprises a fence establishing process and a virtual card switching process.
As shown in fig. 6, the "fence establishment" flow may include the following S601-S605.
S601, the smart flash card application of the electronic equipment acquires a first virtual card.
When a user needs to use a virtual card on an electronic device, the user can open the virtual card on the electronic device, such as a smart flash card application of the electronic device. For example, a user may click on an instant open option in a smart card application of an electronic device. In response to a click operation by the user, the electronic device displays a virtual card option, such as a public transportation card option, that can be enabled. The user may then select a public transportation card and select the corresponding open region. And responding to the selection operation of the user, and the electronic equipment successfully opens the public transportation card.
After the electronic device opens the virtual card, the electronic device, such as a smart flash card application of the electronic device, may obtain a first virtual card, which may be a virtual card opened by the electronic device.
Electronic equipment with NFC function can include a plurality of virtual cards, like the virtual card that corresponds such as district entrance guard's card, public transport card, intelligent lock card and case and bag, car key and ID card to satisfy the different demand of punching the card.
For a virtual card in an electronic device, the electronic device can establish a corresponding geofence when a user uses any of the virtual cards to conduct a transaction. One virtual card may establish one geofence or multiple geofences. For example, when the user swipes the card at bus stop a using the public transportation card, the electronic device may establish the geofence corresponding to the public transportation card at bus stop a. When the user uses the public transport card to swipe the card at the bus station B, the electronic device can establish the geo-fence corresponding to the public transport card at the bus station B.
In the above virtual cards, the card swiping points of some virtual cards are fixed, and such virtual cards are referred to as first virtual cards of a predetermined type in this embodiment, such as a community access control card, a public transportation card, an intelligent door lock card, and the like, and the corresponding card swiping points are generally fixed. The card swiping points of some virtual cards are not fixed, for example, the card swiping points of the virtual cards such as car keys, boxes, identity cards and the like may change with different use places.
In some embodiments, since the geofence needs to be established at a fixed location, for a virtual card with a fixed point of swipe, i.e., a first virtual card of a predetermined type, a corresponding geofence may be established. For a virtual card with an unfixed card swiping point, the electronic device cannot establish a geo-fence corresponding to the virtual card because the card swiping point is unfixed. Therefore, before the electronic device establishes the geo-fence corresponding to the virtual card, the electronic device, such as a smart flash card application of the electronic device, may determine the virtual card with a fixed card swiping point, that is, the first virtual card of the predetermined type, according to whether the card swiping location of the virtual card is fixed, so that when the electronic device completes a transaction using the first virtual card of the predetermined type at a certain card swiping point for the first time, the geo-fence corresponding to the first virtual card of the predetermined type may be established.
In some examples, the electronic device may determine whether the virtual card is a first virtual card of a predetermined type according to the type of the virtual card. For example, for a cell, the card swiping point of the cell access control card is a cell, and the card swiping point position is fixed, so that when the type of the virtual card is a cell access control card, the electronic device may determine that the card swiping point of the virtual card is fixed, that is, the cell access control card is a first virtual card of a predetermined type.
The card swiping point of the virtual card corresponding to the identity card may be a bank, a company, or a home, that is, the card swiping point position of the virtual card corresponding to the identity card is not fixed, so that when the type of the virtual card is the virtual card corresponding to the identity card, the electronic device may determine that the virtual card is not the first virtual card of the predetermined type.
In some embodiments, after the electronic device determines the predetermined type of first virtual card, the electronic device, such as a smart card application in the electronic device, may store an identification (e.g., AID or ID) of the predetermined type of first virtual card in a corresponding list.
For example, as shown in fig. 4, the smart flash card application of the electronic device may determine a virtual card with a fixed card swiping point, that is, a first virtual card of a predetermined type, and store an identifier corresponding to the first virtual card of the predetermined type in the smart flash card list. Thereafter, an electronic device, such as a smart flash card application of the electronic device, can determine whether to subsequently establish a geofence corresponding to the corresponding first virtual card based on the list. For example, when a user completes a transaction at a certain point of swipe using a first virtual card of a predetermined type in a list of smart flash cards for the first time, a smart flash application of the electronic device can establish a geofence corresponding to the first virtual card. The smart flash card application of the electronic device may not establish a geofence when the user completes a transaction using a virtual card in the list of non-smart flash cards.
The process of establishing the geo-fence by the smart flash card application of the electronic device may include the following S602-S605, among others.
S602, when a smart flash card of the electronic equipment is applied to a certain card swiping point and data interaction is completed by adopting a certain first virtual card and an NFC card reader for the first time, the current geographic position information and the geographic position precision of the electronic equipment are obtained.
When a user uses the first virtual card to complete a transaction at a certain card swiping point (for example, referred to as a first card swiping point) for the first time, that is, data interaction is completed by using the first virtual card and an NFC card reader corresponding to the certain card swiping point, a smart flash card application of an electronic device, for example, the electronic device, may establish a geo-fence corresponding to the first virtual card.
The geofence to which the first virtual card corresponds may be at least one of a GNSS geofence, a Cell geofence, or a Wi-Fi geofence. The GNSS geofences may include a GPS geofence, a GLONASS geofence, a beidou geofence, a QZSS geofence, or an SBAS geofence, among others. The specific type of GNSS geofence is not limited in this application. For convenience of understanding, in the embodiment of the present application, a geo-fence corresponding to the first virtual card is schematically illustrated as a GNSS geo-fence.
As GNSS geofences include GPS geofences, GLONASS geofences, beidou geofences, QZSS geofences, or SBAS geofences, among others. The specific type of GNSS geofence is not limited in this application. For convenience of understanding, in the following embodiments of the present application, a GNSS geofence is schematically illustrated as a GPS geofence (hereinafter referred to as a GPS fence). Correspondingly, the current geographic position information of the electronic device in the application may be GPS position information, and the geographic position precision may be GPS precision.
When the electronic equipment completes data interaction by adopting the first virtual card and the NFC card reader corresponding to a certain card swiping point, the electronic equipment, such as a smart flash card application of the electronic equipment, can acquire the current GPS position information and the GPS precision of the electronic equipment, so that a GPS fence corresponding to the first virtual card can be established according to the current GPS position information and the GPS precision of the electronic equipment.
The smart card application of the electronic device, such as the electronic device, may determine whether a transaction is completed at a point of swipe with a first virtual card by determining whether a user manually selects the first virtual card from a plurality of first virtual cards to complete the transaction at the point of swipe.
It is understood that the electronic device may include a plurality of first virtual cards, and when the user swipes the card for the first time at a certain swiping point, the user may manually select a first virtual card to be used from the plurality of first virtual cards, so that the electronic device may complete a transaction using the first virtual card selected by the user. That is, when a user manually selects a first virtual card to use from the plurality of first virtual cards to complete a transaction, a smart flash card application of an electronic device, such as an electronic device, may determine that the first virtual card is used to complete the transaction at the point of card swiping. For example, as shown in (c) in fig. 2, the first virtual card in the mobile phone includes a smart door lock card, a cell access card, and a public transportation card. When a user takes a bus at a certain bus station for the first time, the user can manually select the public transportation card to finish the transaction from the community access control card, the public transportation card and the intelligent door lock card, namely, the mobile phone can determine that the user adopts the public transportation card to finish the transaction at the bus station for the first time.
When a user uses the electronic device to complete a transaction by adopting a first virtual card at a certain card swiping point for the first time, namely the first virtual card and the NFC card reader complete data interaction, the electronic device, such as a smart flash card application in the electronic device, can acquire current GPS position information, such as longitude and latitude coordinates, and GPS accuracy (accuray, acc) of the electronic device.
GPS accuracy, defined as radius with 68% confidence. That is, the probability that the current true position of the electronic device is located in a circle with the latitude and longitude coordinates acquired by the electronic device as the center and the accuracy acc as the radius is 68%.
For example, in connection with the example of fig. 4, at a certain point of swiping, the smart flash card application of the electronic device determines that the user manually selects a first virtual card from the plurality of first virtual cards to complete the transaction, and the smart flash card application may obtain GPS location information and GPS accuracy from the short-range chip through an application in the system service (e.g., a GPS application), a hardware connection layer, and a sensorhub. Specifically, the above S602 may specifically include the following S6021 to S6028.
S6021, the smart flash card application determines that data interaction is completed with the NFC card reader by adopting a first virtual card at a certain card swiping point for the first time.
S6022, the intelligent flash card application sends an acquisition notice to the GPS application.
The acquisition notification is used for instructing the GPS application to acquire the current GPS position information and the GPS accuracy of the electronic equipment.
S6023, the GPS application sends an acquisition notification to the sensing hub.
After receiving the acquisition notification, the GPS application may send the acquisition notification to the sensorhub through the hardware connection layer.
S6024, the sensing hub sends an acquisition notification to the short-range chip.
After receiving the acquisition notification, the sensorhub may send the acquisition notification to the short-range chip.
And S6025, the short-distance chip sends the current GPS position information and the GPS precision of the electronic equipment to the sensing hub.
After receiving the acquisition notification, the short-range chip may send the current GPS location information and GPS accuracy of the electronic device to the sensorhub.
S6026, the sensing hub sends the current GPS position information of the electronic equipment and the GPS precision to the GPS application.
After the sensorhub receives the current GPS location information and the GPS accuracy of the electronic device, the sensorhub may send the current GPS location information and the GPS accuracy of the electronic device to the GPS application through the hardware connection layer.
S6027, the GPS application sends the current GPS position information and the GPS precision of the electronic equipment to the smart flash card application.
S6028, the smart flash card application receives the current GPS position information and the GPS precision of the electronic equipment.
S603, the smart flash card application of the electronic equipment establishes the geo-fence corresponding to the first virtual card according to the current geographical position information and the geographical position precision of the electronic equipment.
The geofence corresponding to the first virtual card may be a GNSS geofence, a Cell geofence, a Wi-Fi geofence, or another type of geofence, which is not limited in this embodiment of the present application. The GNSS geofence may be a GPS geofence, a GLONASS geofence, a beidou geofence, a QZSS geofence, or an SBAS geofence, among others. The specific type of GNSS geofence is not limited in this application.
For convenience of understanding, in the embodiment of the present application, a geo-fence corresponding to the first virtual card is schematically illustrated as a GPS fence. Correspondingly, when the geofence corresponding to the first virtual card is a GPS fence, the geographic location information may be GPS location information, and the geographic location accuracy may be GPS accuracy.
The GPS fence may be a circular area having a preset length as a radius, with the acquired GPS location information as a center. For example, as shown in fig. 4, after the smart flash card application of the electronic device, such as the electronic device, acquires the GPS location information and the GPS accuracy, the smart flash card application may establish a GPS fence with a preset length as a radius and centered on the GPS location information, where the GPS fence corresponds to the first virtual card.
It can be appreciated that when the radius of the GPS fence is too large, there are areas of overlap for the different GPS fences. When the user holds the electronic device and enters the overlapping area, the electronic device cannot determine which virtual card corresponding to the GPS fence is activated. When the radius of the GPS fence is too small, the real location of the user when swiping the card may be outside the GPS fence, resulting in the electronic device not being able to automatically select and activate the correct virtual card before the user swipes the card.
Therefore, in some embodiments of the present application, an electronic device, such as a 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 the GPS accuracy. The two GPS fences are different in size, that is, one large fence and one small fence, the large fence corresponding to the first virtual card may be the first fence in the embodiment of the present application, and the small fence corresponding to the first virtual card may be the second fence in the embodiment of the present application. For example, the two GPS fences are two fences with different radii centered on the GPS position information. That is, for a first virtual card, when a user completes a transaction at a certain point of card swiping using the first virtual card for the first time, the smart flash card application of the electronic device may establish a large fence and a small fence corresponding to the first virtual card.
Wherein, the radius of the large fence can be a preset length. The preset length can be set according to practical situations, and the application is not limited to this, for example, 1 km. The radius of the small fence can be N times of the GPS precision, and the radius of the small fence is smaller than that of the large fence. N can be set according to practical situations, and the present application is not limited to this, for example, N is 5, and the GPS accuracy of 5 times is smaller than the radius of the large fence.
When the radius of the small fence is 5 times of the GPS precision, the probability that the real position of the user when swiping a card is located outside the range of the small fence is about one millionth, that is, the small fence can more accurately include the real position of the user when swiping a card.
When the electronic equipment determines that a user enters the GPS fence, the electronic equipment needs 1-2 s of time to activate the first virtual card corresponding to the GPS fence. To avoid that during this time period, the user has reached the point of swiping a card within the corresponding small fence without the electronic device activating the first virtual card corresponding to the small fence, the electronic device, such as a smart flash card application of the electronic device, may set the radius of the small fence to be greater than 50 meters and less than 500 meters. I.e. 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-fold GPS accuracy is greater than 50 meters and less than 500 meters, the radius of the small fence can be set to 5-fold GPS accuracy.
When the number of card swiping points of a user is small, the number of GPS fences corresponding to virtual cards established by the electronic equipment may be small, or when the distance between different card swiping points is long, the distance between the GPS fences corresponding to the virtual cards established by the electronic equipment may be long, and no overlapping area exists between large fences corresponding to different virtual cards. At the moment, the electronic equipment can accurately determine the virtual card to be activated through the large fence, so that when a user enters the large fence, the electronic equipment selects the corresponding virtual card to be activated, and the electronic equipment is ensured to activate the corresponding virtual card before the user reaches a card swiping point to carry out transaction.
For example, referring to fig. 7, taking the example that the geo-fence corresponding to the first virtual card is a GPS fence, a GPS fence corresponding to the first virtual card is established in the electronic device, and the GPS fence may be a large fence 02. When the user 01 holds the electronic device to reach the position a, that is, the user holds the electronic device to enter the large fence 02, the electronic device can activate the first virtual card corresponding to the large fence 02, so that the electronic device can activate the corresponding first virtual card before the user reaches the card swiping point corresponding to the large fence 02 to perform a transaction. When the user 01 holds the electronic device and moves from the position a to the position B, the user is always within the range of the large fence 02, and the electronic device can keep the first virtual card corresponding to the large fence 02 in an activated state. When the user 01 holds the electronic device to reach the position B, that is, the user holds the electronic device to leave the large fence 02, and when the first virtual card corresponding to the large fence 02 is not the default card, the electronic device may deactivate the first virtual card corresponding to the large fence 02 and reactivate the default card.
In some examples, continuing with fig. 7, taking the example where the geo-fence corresponding to the first virtual card is a GPS fence, when the user holds the electronic device to reach location a, that is, the user holds the electronic device to enter into large fence 02, and when the user 01 holds the electronic device to reach location C from location a, the electronic device determines that the time that the user is located in large fence 02 exceeds a preset time period, the electronic device may activate the first virtual card corresponding to large fence 02.
It should be noted that, an electronic device, such as a smart flash card application of the electronic device, may also establish and store a geo-fence corresponding to another virtual card, where the other virtual card may be another virtual card than the first virtual card in a plurality of virtual cards included in the electronic device. The geo-fence of the other virtual card may include: and the second geo-fence corresponding to the second virtual card. The second geo-fence may be a GNSS geo-fence, a Cell geo-fence, a Wi-Fi geo-fence, or another type of geo-fence, which is not limited in this embodiment of the present application. The GNSS geofence may be a GPS geofence, a GLONASS geofence, a beidou geofence, a QZSS geofence, or an SBAS geofence, among others. For convenience of understanding, in the following embodiments of the present application, the second geo-fence is schematically illustrated as a GPS fence.
The second GPS fence may include a large fence and a small fence, the large fence corresponding to the second virtual card may be the third fence in the embodiment of the present application, the small fence corresponding to the second virtual card may be the fourth fence in the embodiment of the present application, and a range of the large fence in the second GPS fence is greater than a range of the small fence in the second GPS fence. One or more second virtual cards may be provided, which is not limited in this embodiment of the present application.
When the number of the card swiping points of the user is large, the number of the GPS fences established by the electronic device may be large, or the distance between different card swiping points is short, that is, the distance between the GPS fences established by the electronic device may be short, and an overlapping area may exist between large fences corresponding to different virtual cards. And the possibility of overlapping areas between the corresponding small fences of different virtual cards is less. At the moment, the electronic equipment can more accurately determine the virtual card to be activated through the small fence, so that the electronic equipment automatically selects and activates the correct virtual card before the user arrives at the card swiping point to swipe the card.
It can be understood that there may be overlapping areas of GPS fences corresponding to different first virtual cards, for example, there may be overlapping areas of a large fence corresponding to first virtual card 1 and a small fence corresponding to first virtual card 2, or there may be overlapping areas of a large fence corresponding to first virtual card 3 and a large fence corresponding to first virtual card 4, or there may be overlapping areas of a small fence corresponding to first virtual card 5 and a small fence corresponding to first virtual card 6. The electronic device cannot determine which virtual card corresponding to the GPS fence is selected and activated within the overlap area.
Therefore, in this embodiment, after the smart flash card application of the electronic device establishes the GPS fences (i.e., the large fence and the small fence) corresponding to the first virtual card, priorities of different GPS fences may be set, so that the electronic device can select the corresponding first virtual card to activate in an overlapping area of the GPS fences corresponding to different first virtual cards.
For example, an electronic device, such as a smart flash card of the electronic device, can set a priority of a large fence to be lower than a priority of a small fence, such that when a user holds the electronic device into an overlapping area of the large fence and the small fence corresponding to different first virtual cards, the electronic device can activate the virtual card corresponding to the small fence.
When a user holds the electronic device and enters an overlapping area of a large fence and a large fence corresponding to different first virtual cards, or an overlapping area of a small fence and a small fence corresponding to different first virtual cards, the priorities of the GPS fences are the same, and the electronic device cannot determine which corresponding first virtual card is selected and activated in the overlapping area.
For example, as shown in fig. 8, taking the example that the geo-fence corresponding to the first virtual card is a GPS fence, a plurality of GPS fences 03 corresponding to the first virtual card are established in the electronic device, and the GPS fences 03 may be large fences or small fences. When the user 01 holds the electronic device to reach the location D, that is, the user holds the electronic device to enter one GPS fence 03, the electronic device may activate the first virtual card corresponding to the GPS fence 03. When the user 01 holds the electronic device to reach the location E, that is, the user enters an overlapping area of the plurality of GPS fences 03, and the plurality of GPS fences 03 are all large fences or all small fences, the electronic device cannot determine which corresponding virtual card is selected and activated in the overlapping area.
Therefore, in this embodiment, an electronic device, such as a smart card application of the electronic device, may further set a priority of a different first virtual card, so that the electronic device can select the corresponding first virtual card to activate in an overlapping area between a large fence and a large fence corresponding to the different first virtual card or an overlapping area between a small fence and a small fence corresponding to the different first virtual card.
For example, after a plurality of first virtual cards are determined by a smart flash card application of the electronic device, the plurality of first virtual cards may be set to different priorities and saved. For example, the first virtual card includes a cell access card, a public transportation card, and a white card (e.g., a smart door lock card). An electronic device, such as a smart flash card application of the electronic device, may set the priority of a cell access card to be higher than the priority of a public transportation card, which is higher than the priority of, for example, a smart door lock card. That is, when the electronic device determines that the user can hold the electronic device to enter the large fence corresponding to the cell access control card and also enter the large fence corresponding to the public transportation card, the electronic device can activate the cell access control card because the priority of the cell access control card is higher than that of the public transportation card.
It should be noted that, when the electronic device establishes the GPS fence corresponding to the virtual card according to the GPS location information and the GPS accuracy, one GPS fence or more than two GPS fences may also be established. When more than two GPS fences are established, the radii of the more than two GPS fences are different. For example, when a GPS fence is established, the GPS fence may be a circle centered on GPS location information and having a radius of a predetermined length. When more than two GPS fences are established, the more than two GPS fences may be circles whose radii are different preset lengths and whose centers are GPS position information.
In other embodiments, the GPS fence may also be a polygonal area with multiple geographic location coordinate points as vertices, and the vertices are connected together. The electronic device can acquire a plurality of geographic position coordinate points, so that a GPS fence corresponding to the card swiping point of the first virtual card is established.
S604, the smart flash card application of the electronic device saves the geo-fence corresponding to the first virtual card.
In the embodiment of the present application, a geo-fence corresponding to a first virtual card is taken as a GPS fence for example to schematically illustrate.
After the electronic device establishes a GPS fence (e.g., a large fence and a small fence) corresponding to the first virtual card, the electronic device, such as a smart flash card application in the electronic device, can save the first virtual card in the memory of the electronic device in correspondence with the GPS fence. For example, a smart flash card application of the electronic device can store a correspondence between an identification of the first virtual card and an identification of the GPS fence in a memory of the electronic device. The identifier of the first virtual card may be an AID of the first virtual card, or may be an ID of the first virtual card. The identification of the GPS fence can be the ID of the GPS fence. The correspondence between the identification of the first virtual card stored in the memory of the electronic device and the identification of the GPS fence is shown in table 2.
TABLE 2
Figure BDA0003220112900000181
As shown in table 2, the cell gate card identified as ID1 corresponds to the GPS fences identified as ID2 and ID3, the GPS fence identified as ID2 is a large fence, and the GPS fence identified as ID3 is a small fence. The mass transit card identified as AID1 corresponds to the GPS fences identified as ID4 and ID5, the GPS fence of ID4 is the large fence, and the GPS fence identified as ID5 is the small fence. The smart door lock card identified as AID2 corresponds to the GPS fences identified as ID6 and ID7, the GPS fence of ID6 is a large fence, and the GPS fence identified as ID7 is a small fence.
In some embodiments, in a case that there are many geofences corresponding to subsequently established virtual cards, the electronic device may delete some of the geofences according to actual situations, for example, a geofence that has not been used within a preset time duration or a geofence whose lifetime reaches a validity period, and the electronic device may delete the geofence. The preset duration and the validity period can be set according to actual conditions. For example, the term of validity is used as an example of whether the lifetime is reached or not. An electronic device, such as a smart flash card application of the electronic device, can determine whether the life span of the established geofence reaches a corresponding expiration date. In the event that the life span of a geofence reaches a corresponding expiration date, a smart flash card application of an electronic device, such as an electronic device, can delete the geofence.
For example, a smart flash application of an electronic device, such as an electronic device, can determine whether a GPS fence corresponding to a stored first virtual card has reached a corresponding validity period, and in the event that the GPS fence has reached the corresponding validity period, the smart flash application of the electronic device, such as an electronic device, can delete the GPS fence. For another example, when the electronic device, such as a smart card application of the electronic device, determines that there are many GPS fences corresponding to the first virtual card stored in the electronic device, the electronic device may delete some of the GPS fences according to an actual situation, and for example, the electronic device may delete the GPS fences if the GPS fences are not used within a preset time period.
S605, the smart flash card application of the electronic device sends the geo-fence corresponding to the first virtual card to a sensing hub of the electronic device.
In the embodiment of the present application, a geo-fence corresponding to a first virtual card is taken as a GPS fence for example to schematically illustrate.
For example, in connection with the example of fig. 4, after the smart flash card application in the electronic device establishes the GPS fence to which the first virtual card corresponds, the smart flash card application may store a correspondence between an identification of the first virtual card and an identification of the corresponding GPS fence. The smart flash card application of the electronic device may also send the established GPS fence to the sensorhub of the electronic device.
Specifically, the above S605 may include the following S6051-S6053.
And S6051, the smart flash card application sends the geo-fence corresponding to the first virtual card to an application in system service.
In the embodiment of the present application, a geo-fence corresponding to a first virtual card is taken as a GPS fence, and an application in system service is taken as a GPS application.
And the smart card application sends the GPS fence (namely the corresponding GPS position information is taken as the center, and the corresponding length is taken as a radius circle) corresponding to the first virtual card and the identification of the GPS fence to the GPS application. The GPS application stores the already established GPS fence and the identification of the GPS fence.
And S6052, the application in the system service sends the geo-fence corresponding to the first virtual card to the sensing hub.
In the embodiment of the present application, a geo-fence corresponding to a first virtual card is taken as a GPS fence, and an application in system service is taken as a GPS application.
It is to be understood that when the geo-fence corresponding to the first virtual card is a GPS fence, the application in the system service may be a GPS application. When the geofence corresponding to the first virtual card is also a Wi-Fi geofence, the application in the system service may be a Wi-Fi 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 may send the GPS fence corresponding to the first virtual card (i.e., the GPS fence and the identification of the GPS fence have been established) to the sensorhub through the hardware connection layer.
S6053, the sensing hub receives the geo-fence corresponding to the first virtual card.
In the embodiment of the present application, a geo-fence corresponding to a first virtual card is taken as an example for schematic description.
The GPS fence corresponding to the first virtual card sent to the sensorhub by the smart flash card application of the electronic device may be a large fence corresponding to the first virtual card, a small fence corresponding to the first virtual card, or a large fence and a small fence corresponding to the first virtual card.
In some examples, an electronic device, such as a smartchip application of the electronic device, may determine a GPS fence type that the smartchip application sends to the sensorhub based on a number of GPS fences stored by the electronic device.
For example, when the electronic device stores a larger number of GPS fences, i.e., when the user swipes a larger number of virtual cards, the probability that there is an overlapping area between the small fences corresponding to different virtual cards is less. Thus, the smartchip application of the electronic device can send the small fence corresponding to the first virtual card to the sensorhub. For another example, when the electronic device stores a smaller number of GPS fences, i.e., when the number of swipe cards used by the user to swipe a card using a virtual card is smaller, there is less likelihood that there will be an overlapping region between the large fences corresponding to different virtual cards. Thus, the smart flash card application of the electronic device can send the large fence corresponding to the first virtual card to the sensorhub. As another example, when the number of GPS fences stored by the electronic device is moderate, that is, the point of swipe where the user swiped the card using the virtual card is moderate, the smartcards application of the electronic device may send the small fence and the large fence corresponding to the first virtual card to the sensorhub.
In some examples, an electronic device, such as a smart flash card application of the electronic device, may also delete the identification of the GPS fence that needs to be deleted by the sensorhub sent to the electronic device, and the sensorhub may delete the GPS fence corresponding to the received GPS fence identification, so that the sensorhub no longer monitors whether the user enters the GPS fence.
It should be noted that, due to the weather and the fact that the card swiping point is located in the basement, there may be an error in the GPS accuracy obtained by the electronic device. Since the radius of the small fence is determined according to GPS accuracy, the electronic device may also have errors in establishing the small fence.
In order to avoid the situation that the GPS fence established by the electronic device has an error, for a virtual card with the established GPS fence, the electronic device may acquire the GPS location information and the GPS accuracy of the user at the corresponding card swiping point at intervals of a preset time (e.g., 1 day, or 1 month), reestablish the GPS fence corresponding to the virtual card according to the GPS location information and the GPS accuracy, and update the GPS fence stored in the electronic device. The process of the electronic device reestablishing the GPS fence corresponding to the virtual card may refer to the steps of S601-S605, and details of the embodiment of the present application are not repeated herein.
After the electronic device stores the GPS fence corresponding to the virtual card, the electronic device may obtain current geographic location information of the electronic device in real time or periodically, and determine whether the user enters the geo-fence by using a built-in fence algorithm, that is, the electronic device maintains the geo-fence, which may result in higher power consumption of the electronic device.
For example, taking the example of a user entering a geo-fence as a GPS fence, an electronic device, such as a sensing hub (sensorhub) in the electronic device, obtains current GPS location information of the electronic device in real time or periodically, and determines whether the user enters the GPS fence by using a built-in fence algorithm, such as a GPS fence algorithm, i.e., the sensorhub maintains the GPS fence. While sensorhub is maintaining the GPS fence, it does not need to wake up the main processor of the electronic device, thereby enabling low power consumption GPS fence capability. However, the sensorhub obtains the current GPS location information of the electronic device in real time or periodically, and determines whether the user enters the GPS fence by using a built-in fence algorithm, which still causes the power consumption of the electronic device to be high.
In some examples, the electronic device may obtain current geo-location information of the electronic device according to a preset period and determine whether the user enters the geo-fence using a built-in fence algorithm. The preset period can be dynamically determined according to a distance between the electronic device and a boundary of the geofence and a speed of the electronic device, and the preset period is greater than or equal to the first threshold and less than or equal to the second threshold. The first threshold and the second threshold may be set according to actual conditions, and the present application is not limited to this. That is, the preset period is dynamically changed, for example, the closer the distance between the electronic device and the boundary of the geofence is, or the greater the speed of the electronic device is, the smaller the preset period can be set, that is, the closer the preset period is to the first threshold, so that whether the user enters the geofence can be determined in time. The further the distance between the electronic device and the boundary of the geofence is, or the smaller the speed of the electronic device is, the larger the preset period can be set, i.e., the closer the preset period is to the second threshold.
For example, when the electronic device, such as the sensorub of the electronic device, determines that the current geographic location information of the electronic device is far from the boundaries of all the geofences, the sensorub may determine that the electronic device does not enter or exit a certain geofence in a short time, and at this time, the sensorub may select a larger preset period in an interval of the preset period (i.e., an interval determined by the first threshold and the second threshold), obtain the current geographic location information of the electronic device according to the larger preset period, and determine whether the user enters the geofence by using a fence algorithm, that is, the sensorub maintains the geofence according to the larger preset period.
For another example, when the sensorhub of the electronic device determines that the current geographic location information of the electronic device is closer to the boundary of a certain geofence, the sensorhub may determine that the electronic device may enter or exit the geofence in a short time, at this time, the sensorhub may select a smaller preset period within an interval of the preset period (i.e., an interval determined by the first threshold and the second threshold), obtain the current geographic location information of the electronic device according to the smaller preset period, and determine whether the user enters the geofence by using a fence algorithm, that is, the sensorhub maintains the geofence according to the smaller preset period. The sensorhub of the electronic device maintains the geofence in a short preset period, and although it can be determined whether the electronic device enters or exits the geofence in time, the short preset period increases the frequency of acquiring the current geographic location information of the electronic device by the electronic device, and the frequency of determining whether the user enters the geofence by using a built-in fence algorithm increases, which results in large power consumption of the electronic device.
However, when the electronic device stays in the geofence for a long time without leaving, especially when the electronic device stays in the small fence for a long time, the electronic device is located close to the boundary of the small fence, but the electronic device does not enter or exit the other geofences. At this time, the electronic device may still maintain the geofence for a smaller preset period all the time, resulting in further increase of power consumption of the electronic device.
In order to reduce the power consumption of the electronic device, after the electronic device stores the geofence corresponding to the virtual card, in the process of maintaining the geofence by the electronic device, the electronic device may determine whether the electronic device satisfies a first preset condition (for example, the electronic device successfully connects to Wi-Fi), and in the case that the first preset condition is satisfied, the electronic device may delete the corresponding geofence, and in the case that the electronic device determines that the user enters the small fence, the electronic device may delete the corresponding small fence, thereby reducing the power consumption of the electronic device. Specifically, as shown in fig. 9A, the "virtual card switching" process may specifically include the following S901 to S916.
S901, the intelligent flash card application of the electronic equipment determines whether the electronic equipment meets a first preset condition.
The first preset condition may include that the electronic device is successfully connected with the Wi-Fi. The first preset condition may further include that the electronic device detects Wi-Fi of a specific name, and the signal strength corresponding to the Wi-Fi of the specific name is greater than a strength threshold. The intensity threshold may be set according to actual conditions, and is not limited in this embodiment of the application. It is understood that the first preset condition may also include other conditions, which are not limited in the embodiments of the present application.
In some embodiments, the first preset condition may include that the electronic device successfully connects to a particular Wi-Fi.
The specific Wi-Fi can be the Wi-Fi set by the user. For example, the user sets a particular Wi-Fi to be that of the user's home.
The particular Wi-Fi may also be a Wi-Fi of a particular name. For example, the Wi-Fi of the specific name may be Wi-Fi of the name home, and as shown in connection with fig. 9B, when the electronic device is successfully connected to the Wi-Fi of the name home, the electronic device may determine that the connection to the specific Wi-Fi is successful, i.e., determine that the electronic device satisfies the first preset condition.
The particular Wi-Fi may also be a Wi-Fi that meets certain conditions. For example, if the electronic device connects to the same Wi-Fi for a fixed time period each day, then the Wi-Fi may be a particular Wi-Fi, e.g., if the electronic device connects to a Wi-Fi named home from 8 pm to 7 am each day, then the electronic device may determine that the Wi-Fi named home is a particular Wi-Fi.
The embodiment of the application takes the first preset condition as an example of successful connection of the electronic device to the Wi-Fi.
In some examples, upon successful connection of the electronic device to Wi-Fi, a wireless communication module included with the electronic device may send a notification to a smart card application of the electronic device that the connection to Wi-Fi was successful. When the smart flash card application of the electronic device receives the notification that the connection Wi-Fi is successful, which is sent by the wireless communication module, the smart flash card application of the electronic device may determine that the electronic device satisfies a first preset condition.
In case the electronic device, such as a smart flash card application of the electronic device, determines that the electronic device satisfies the first preset condition, the electronic device may perform S902. In a case where the electronic device determines that the electronic device does not satisfy the first preset condition, the electronic device may continue to perform S901 described above.
S902, deleting all the geo-fences by the intelligent flash card application of the electronic device.
When the electronic device is successfully connected with the Wi-Fi, the electronic device, such as a smart card application of the electronic device, can determine that the position of the electronic device is relatively fixed, and the electronic device does not move within the preset time, that is, the user does not use the NFC function on the electronic device within the preset time, so that the electronic device can delete all the geo-fences on the electronic device. For example, when the user has arrived home with the electronic device, the electronic device will not use the NFC function of the electronic device for a predetermined time. At this point, an electronic device, such as a smart flash card application of the electronic device, can delete all of the geo-fences of the electronic device. After the electronic device deletes all geofences, the electronic device does not need to maintain geofences any more, thereby reducing power consumption of the electronic device.
It is to be appreciated that the electronic device can also delete portions of the geofence within the electronic device. For example, the electronic device can delete geofences that are further away from the electronic device's current geographic location information.
In some examples, a smart card application of an electronic device, such as an electronic device, may leave a currently active virtual card unchanged when the electronic device application deletes all geofences.
The embodiment of the present application is described by taking an example that all the geo-fences stored by the electronic device are GPS fences. The GPS fence may be a large fence in the foregoing embodiments, or may be a small fence in the foregoing embodiments. Accordingly, the applications in the system service may be GPS applications.
For example, in connection with the example of fig. 4, when an electronic device, such as a smartchip application of the electronic device, determines that the electronic device satisfies a first preset condition, the smartchip application may send a notification of deleting a geofence to the sensorhoub through an application (such as a GPS application) in the system service and the hardware connectivity layer, so that the sensorhoub may delete the corresponding geofence, after which the sensorhoub no longer maintains the corresponding geofence.
Specifically, the S902 may specifically include S9021 to S9024 described below.
S9021, the intelligent flash card application sends a deletion notification to the application in the system service.
The applications in the system service may be GPS applications. The delete notification is used to instruct the sensorhub to delete the corresponding geofence, such as a GPS fence. The deletion notification can include an identification of the geofence that needs to be deleted, such as an identification of a GPS fence. For example, the identification of the GPS fence that needs to be deleted can be the identification of all the GPS fences saved in the smart flash card application.
S9022, the application in the system service sends a deletion notification to the sensing hub.
After receiving the deletion notification, an application in the system service, such as a GPS application, may send the deletion notification to the sensorhub through the hardware connection layer.
S9023, the sensing concentrator receives the deletion notification.
S9024, the sensing hub deletes all the geo-fences.
After the deletion notification is received by sensorhub, all geofences, such as GPS fences, can be deleted. For example, the sensorhub can delete all GPS fence identifications included in the deletion notification for the corresponding GPS fence.
After the electronic device, such as the sensorub of the electronic device, deletes all the GPS fences, the sensing set sensorub in the electronic device does not need to acquire the current GPS location information of the electronic device in real time or periodically, and determines whether the user enters the GPS fence or not by using a built-in fence algorithm, such as a GPS fence algorithm, that is, the sensorub does not need to maintain the GPS fence, so that the power consumption of the electronic device can be reduced.
S903, the intelligent flash card application of the electronic equipment determines whether the electronic equipment meets a second preset condition.
The second preset condition may include the electronic device disconnecting the Wi-Fi connection. In some embodiments, the first preset condition may include the electronic device disconnecting a particular Wi-Fi connection.
In the embodiment of the application, a second preset condition is taken as an example that the electronic device disconnects Wi-Fi connection, which is schematically described.
In some examples, when the electronic device disconnects the Wi-Fi connection, a wireless communication module included with the electronic device may send a notification to a smart card application of the electronic device to disconnect the Wi-Fi connection. When the smart flash card application of the electronic equipment receives the notice of disconnecting the Wi-Fi connection sent by the wireless communication module, the smart flash card application of the electronic equipment determines that the electronic equipment meets a second preset condition.
In the event that the electronic device smart flash card application determines that the electronic device satisfies the second preset condition, the electronic device may perform S904. In the case that the electronic device smart flash card application determines that the electronic device does not satisfy the first preset condition, the electronic device may re-execute the above S903.
S904, the smart flash card application of the electronic device restores all the geo-fences.
When the Wi-Fi connection of the electronic device is disconnected, the electronic device, such as a smart flash card application of the electronic device, may determine that the location of the electronic device is relatively unfixed, and the electronic device may move within a preset time, that is, the user may use the NFC function on the electronic device, so that the electronic device may restore all geo-fences on the electronic device. For example, when the user leaves the electronic device, the electronic device may use the NFC function of the electronic device within a preset time. At the moment, the electronic equipment, such as the smart flash card application of the electronic equipment, can recover all the geo-fences of the electronic equipment, so that when different card swiping requirements are met, the situation that a user manually selects a virtual card needing to be activated can be avoided, the card swiping process of the user is simplified, the card swiping duration is shortened, and the user experience is improved. .
In some examples, a smart card application of an electronic device, such as an electronic device, may leave a currently active virtual card unchanged when the electronic device application restores all geofences.
The embodiment of the present application takes all the geo-fences stored in the electronic device as GPS fences as an example. The GPS fence may be a large fence in the foregoing embodiments, or may be a small fence in the foregoing embodiments. The application in the corresponding system service may be a GPS application.
For example, in connection with the example in fig. 4, when an electronic device, such as a smart flash card application of the electronic device, determines that the electronic device satisfies the second preset condition, the smart flash card application may send a notification of restoring a geofence to the sensorhub through an application (such as a GPS application) in the system service and the hardware connection layer, so that the sensorhub may restore the corresponding geofence.
Specifically, the S904 may specifically include S9041 to S9044 described below.
S9041, the smart flash card application sends a recovery notification to an application in the system service.
The application in the system service may be a GPS application. The recovery notification is used to instruct the sensorhub to recover all geofences, such as GPS fences. The recovery notification can include an identification of a geofence that needs to be recovered, such as an identification of a GPS fence. For example, the identification of the GPS fence that needs to be recovered can be the identification of all the GPS fences saved in the smart flash card application.
S9042, the application in the system service sends a recovery notification to the sensing hub.
After receiving the recovery notification, an application in the system service, such as a GPS application, may send the recovery notification to the sensorhub through the hardware connection layer.
S9043, the sensing hub receives the recovery notification.
S9044, the sensing hub restores all geofences.
After the sensorhub receives the recovery notification, all geofences, such as GPS fences, can be recovered. For example, the sensorhub may identify that all GPS fences included in the recovery notification are recovered for the corresponding GPS fence.
After the electronic device, such as the sensorubb of the electronic device, recovers all GPS fences, the sensing set sensorubb in the electronic device can acquire the current GPS location information of the electronic device in real time or periodically, and determine whether the user enters the GPS fence by using a built-in fence algorithm, such as a GPS fence algorithm, i.e., the sensorubb maintains the GPS fence.
After the electronic equipment recovers all the GPS fences, the electronic equipment can periodically acquire the GPS position information of the electronic equipment, and determine the virtual card to be activated according to the GPS position information of the electronic equipment and the corresponding relation between the stored virtual card and the GPS fence, so that the correct virtual card can be automatically selected and activated before a user swipes the card. Specifically, the electronic device may perform the following S905-S916.
S905, the sensing hub of the electronic equipment acquires the current geographic position information of the electronic equipment.
The current geographic position information of the electronic device may be GNSS position information, or may be corresponding Cell information, or may also be corresponding Wi-Fi information, or may also be other types of position information, which is not limited in this embodiment of the present application. The GNSS location information may be GPS location information, GLONASS location information, beidou location information, QZSS location information, or SBAS location information, etc. The specific type of GNSS location information is not limited in this application.
For convenience of understanding, in the embodiment of the present application, a description is schematically given by taking the current geographic location information of the electronic device as GPS location information as an example.
An electronic device, such as a sensing hub (sensorhub) in the electronic device, may obtain current GPS location information of the electronic device in real time or periodically. The current GPS location information of the electronic device may be a current longitude and latitude coordinate of the electronic device.
For example, in connection with the example of fig. 4, sensorhub may obtain the user's GPS location information from the short-range chip in real-time or periodically. Specifically, the S905 may include S9051 to S9052 described below.
S9051, the short-distance chip sends the current geographic position information of the electronic device to the sensing concentrator.
In the embodiment of the present application, a description is schematically given by taking current geographic location information of an electronic device as GPS location information as an example.
The short-range chip may send the current GPS location information of the electronic device to the sensorhub in real time or periodically.
S9052, the sensing hub receives the current geographic position information of the electronic device.
In the embodiment of the present application, a description is schematically given by taking current geographic location information of an electronic device as GPS location information as an example.
S906, the sensing hub of the electronic equipment determines whether the user enters the geo-fence according to the current geographical location information of the electronic equipment.
In the embodiment of the present application, a current geographic location information of an electronic device is taken as GPS location information, and a geographic fence is taken as a GPS fence. Correspondingly, the sensing hub of the electronic device determines whether the user enters the corresponding GPS fence according to the current GPS position information of the electronic device.
When the user moves with the electronic device, the GPS position information of the electronic device, that is, the GPS position information of the user. Therefore, whether the user enters the GPS fence can also be determined 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. That is, the electronic device monitors whether the location of the electronic device is within range of the GPS fence.
An electronic device, such as the sensorhub of the electronic device, may determine whether a user enters a GPS fence based on current GPS location information of the electronic device. The method comprises the steps that when the electronic equipment determines that the current longitude and latitude coordinates of the electronic equipment are located in the range of a certain GPS fence, the user is determined to enter the GPS fence, and when the longitude and latitude coordinates of the user are not located in the range of the GPS fence, the user is determined not to enter the GPS fence. For example, a sensing hub of the electronic device may determine whether the user enters a GPS fence using a fence algorithm, such as a GPS fence algorithm, according to current GPS location information of the electronic device, and when it is determined that the user enters the GPS fence, an identifier of the GPS fence that the user enters may be determined.
The user enters the GPS fence, and can enter one GPS fence or a plurality of GPS fences. The user enters a GPS fence, i.e. the current GPS location information of the electronic device is within the range of a GPS fence, which may be a large fence or a small fence. For example, the user enters one fence, and the user may enter a first fence corresponding to the first virtual card, or the user may enter a second fence corresponding to the first virtual card. The user enters a plurality of GPS fences, that is, the current GPS location information of the electronic device is located in an overlapping area of the GPS fences, which may be an overlapping area of a plurality of small fences, an overlapping area of a plurality of large fences, or an overlapping area of a plurality of large fences and a small fence.
For example, when the user enters the overlapping area of the multiple fences, the user may enter the overlapping area of the first fence corresponding to the first virtual card and the third fence corresponding to the second virtual card, the user may enter the overlapping area of the second fence corresponding to the first virtual card and the fourth fence corresponding to the second virtual card, the user may enter the overlapping area of the first fence corresponding to the first virtual card and the fourth fence corresponding to the second virtual card, or the user may enter the overlapping area of the second fence corresponding to the first virtual card and the fourth fence corresponding to the second virtual card.
An electronic device, such as a sensing hub of the electronic device, can determine whether a user enters a GPS fence by using a fence algorithm, such as a GPS fence algorithm, according to current GPS location information of the electronic device, and can determine an identifier of the GPS fence into which the user enters under the condition that it is determined that the user enters the GPS fence. In the event that it is determined that the user enters multiple GPS fences, an identification of the multiple GPS fences into which the user entered may be determined.
For example, as shown in fig. 4, the sensorhub of the electronic device may obtain the GPS location information of the user from the short-range chip in real time. Since the sensorhub stores the already-established GPS fence (i.e. the corresponding GPS location information is the center, and the corresponding length is the radius circle) and the identifier of the GPS fence, the GPS fence algorithm in the sensorhub determines whether the user enters the GPS fence and the identifier of the GPS fence that the user enters according to the current GPS location information of the electronic device. The identification of the fence of the GPS into which the user enters, which is determined by sensorhub, may be an identification of a large fence or an identification of a small fence. The number of the GPS fence that the user enters can be one or more as determined by sensorhub.
In a case that the electronic device determines that the user does not enter the GPS fence, the electronic device may continue to acquire current GPS location information of the electronic device, and determine whether the user enters the GPS fence according to the current GPS location information of the electronic device, that is, the electronic device may perform the above S905-S906 again.
It will be appreciated that an electronic device, such as a smart flash card application of the electronic device, may keep the default card active, or activate the default card, in the event that the electronic device determines that the user is not within range of the GPS fence. For example, the default card stored by the electronic device is an intelligent door lock card, and when the electronic device determines that the user enters a GPS fence corresponding to the public transportation card according to the GPS location information of the user, the electronic device may activate the public transportation card. Under the condition that the electronic equipment determines that the user leaves the GPS fence corresponding to the public transportation card according to the GPS position information of the user, namely the electronic equipment determines that the user does not enter the GPS fence, the electronic equipment can deactivate the public transportation card and reactivate a default card (such as a smart door lock card). For another example, when the electronic device determines that the user enters the GPS fence corresponding to the default card (i.e., the smart door lock card) according to the GPS location information of the user, the electronic device may keep the default card activated. In the event that the user leaves the GPS fence corresponding to the default card, i.e., the electronic device determines that the user has not entered the GPS fence, the electronic device may still keep the default card active.
In some embodiments, an electronic device, such as the sensorhub of the electronic device, can determine whether the user leaves the GPS fence using a fence algorithm, such as a GPS fence algorithm, based on the current GPS location information of the electronic device, and in the event that the user is determined to leave the GPS fence, can determine the identity of the GPS fence that the user left. The sensorhub of the electronic device can also determine that the time length of the user entering a certain GPS fence exceeds the preset time length by using a GPS fence algorithm according to the current GPS position information of the electronic device, and can determine the identifier of the GPS fence which the user enters and exceeds the preset time length under the condition that the time length of the user entering the certain GPS fence exceeds the preset time length.
In the event that the electronic device determines that the user enters the GPS fence, the electronic device can perform S907-S916.
S907, when it is determined that the user enters the geo-fence, the sensing hub of the electronic device sends the identification of the geo-fence entered by the user to the smart flash card application of the electronic device.
The geofence entered by the user may be a GNSS geofence, a Cell geofence, a Wi-Fi geofence, or other types of geofences, which is not limited in this embodiment of the present application. The GNSS geofence may be a GPS geofence, a GLONASS geofence, a beidou geofence, a QZSS geofence, or a SBAS geofence, among others. The specific type of GNSS geofence is not limited in this application.
The identification of the geofence may be an identification corresponding to a GNSS geofence, a Cell geofence, or a Wi-Fi geofence.
For convenience of understanding, in the embodiment of the present application, the example of the user entering the geo-fence is taken as a GPS fence. Accordingly, the identification of the geofence entered by the user can be an identification of the GPS fence entered by the user.
For example, in connection with the example of fig. 4, the sensorhub of the electronic device can utilize a GPS fence algorithm to determine when the user enters a GPS fence, the sensorhub of the electronic device can send an identification of one or more GPS fences entered by the user to a smartchip application of the electronic device through a GPS application. Specifically, the S907 may include S9071 to S9072 described below.
S9071, when the sensing hub determines that the user enters the geo-fence, sending the identification of the geo-fence entered by the user to an application in the system service.
In the embodiment of the present application, the example of the user entering the geo-fence is a GPS fence. Namely, the identifier of the geofence entered by the user is the identifier of the GPS fence entered by the user, and the application in the system service is the GPS application.
The sensorhub may send an identification of the GPS fence that the user entered to the GPS application through the hardware connectivity layer.
S9072, the application in the system service sends the identification of the geofence entered by the user to the smart flash card application.
In the embodiment of the present application, the example of the user entering the geo-fence is a GPS fence. Namely, the identification of the geofence entered by the user is the identification of the GPS fence entered by the user, and the application in the system service is the GPS application.
After receiving the identification of the GPS fence entered by the user, the GPS application may send the identification of the GPS fence entered by the user to the smart flash card application.
In some embodiments, when the electronic device determines whether the user leaves a certain GPS fence, the electronic device, such as the sensorhub of the electronic device, can send an identification of the GPS fence that the user left to the electronic device, such as a smartchip application of the electronic device. When the sensorhub of the electronic device determines that the time that a user enters a certain GPS fence exceeds the 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 sensorhub that the user enters exceeds the preset time to the electronic device, such as the smart flash card application of the electronic device.
For example, referring to fig. 7, taking the user entering the geo-fence as a GPS fence and the user entering the geo-fence as an identification of the GPS fence as an example, when the user 01 holds the electronic device to reach location a, i.e. the user holds the electronic device to enter into the large fence 02, the sensorhub of the electronic device sends the identification of the GPS fence entered by the user to the smart card application of the electronic device. When the user 01 holds the electronic device to reach the position C from the position a, the electronic device determines that the time when the user is located in the large fence 02 exceeds the preset time length, and the electronic device can send the identifier of the large fence and the time when the user enters the large fence 02 to the smart flash card application of the electronic device, wherein the time exceeds the preset time length.
S908, the smart flash card application of the electronic device receives an identification of a geofence entered by the user.
In the embodiment of the present application, the example of the user entering the geo-fence is a GPS fence. Accordingly, the identification of the geofence entered by the user can be an identification of the GPS fence entered by the user.
And S909, activating the corresponding virtual card by the intelligent flash card application of the electronic equipment.
In the embodiment of the present application, the example of the user entering the geo-fence is a GPS fence.
An electronic device, such as a smart flash card application of the electronic device, can determine whether a user enters one or more GPS fences based on the number of identifications of the GPS fences that the user entered.
For example, continuing with fig. 7, taking the example that sensorhub of the electronic device sends the identification of the GPS fence entered by the user and the smart flash card application that entered the GPS fence for longer than the preset time period to the electronic device, that is, when the user 01 holds the electronic device from location a to location C, the electronic device determines that the time that the user is located in the large fence 02 exceeds the preset time period, and the electronic device may send the identification of the large fence 02 and the smart flash card application that the user entered the large fence 02 for longer than the preset time period to the electronic device. The smart flash card application of the electronic device may determine whether the GPS fence entered by the user is one or not by receiving the identification of the fence entered by the user such that the user entered the fence for more than a preset time period.
As another example, as shown in fig. 8, an example where the electronic device establishes a GPS fence 03 corresponding to a plurality of first virtual cards is taken. When the user 01 holds the electronic device to location D, the sensorhub of the electronic device sends the identification of one GPS fence that the user entered to the smart flash card application of the electronic device. When the user holds the electronic device from the location D to the location E, the sensorubb of the electronic device may determine that the user enters the plurality of GPS fences 03, and the sensorubb of the electronic device may send the identifications of the plurality of GPS fences 03 to the smart card application of the electronic device, so that the smart card application of the electronic device may determine whether the GPS fences entered by the user are plural.
In some examples, the electronic device determines that the GPS fence entered by the user is one, and the electronic device may activate the virtual card corresponding to the GPS fence according to a correspondence between an identification of the virtual card stored in the memory of the electronic device and an identification of the GPS fence.
For example, continuing with fig. 7, taking the example that the geo-fence entered by the user is a GPS fence and the user enters a large fence, when the user holds the electronic device to reach location a, that is, the user holds the electronic device to enter the large fence 02, and when the user 01 holds the electronic device to reach location C from location a, the electronic device determines that the time that the user is located in the large fence 02 exceeds the preset time period, the electronic device may activate the first virtual card corresponding to the large fence 02.
In other examples, in a case where the electronic device determines that there are a plurality of GPS fences entered by the user, the electronic device may activate a virtual card with a higher priority according to a correspondence between an identifier of the virtual card and an identifier of the GPS fence stored in the memory of the electronic device, a priority of the GPS fence, and a priority of the virtual card.
For example, continuing with fig. 8, taking the example that the geo-fence entered by the user is a GPS fence and the user enters a plurality of large fences, when the user 01 holds the electronic device to reach location D, i.e. the user holds the electronic device to enter one GPS fence 03, the electronic device can activate the first virtual card corresponding to the GPS fence 03. When the user 01 holds the electronic device to reach the position E, that is, the user enters an overlapping area of the plurality of GPS fences 03, the plurality of GPS fences 03 are all large fences, and among the plurality of virtual cards corresponding to the plurality of GPS fences 03 that the user enters, the virtual card with the highest priority is activated by the electronic device.
As another example, continuing with fig. 8, taking the example that the geo-fence entered by the user is a GPS fence, and the user enters a large fence and a small fence, when the user 01 holds the electronic device to reach the location D, that is, the user holds the electronic device to enter one GPS fence 03, the electronic device may activate the first virtual card corresponding to the GPS fence 03. When the user 01 holds the electronic device to reach the position E, that is, when the user enters an overlapping area of a large fence and a small fence, the electronic device may activate the virtual card corresponding to the small fence entered by the user.
S910, the smart flash card application of the electronic device determines whether the geo-fence entered by the user includes a mini-fence.
In the embodiment of the present application, the example of the user entering the geo-fence is a GPS fence. Accordingly, the identification of the geofence entered by the user may be an identification of the GPS fence entered by the user.
An electronic device, such as a smart flash card application of the electronic device, may determine whether a GPS fence entered by a user includes a small fence based on receiving an identification of the GPS fence entered by the user and a correspondence between an identification of a virtual card stored in a memory of the electronic device and the identification of the GPS fence.
An electronic device, such as a smart flash card application of the electronic device, can determine whether a user enters one or more small fences based on the number of identifications of GPS fences that the user entered.
In the event that the smart flash card application of the electronic device determines that the geofence entered by the user does not include a mini-fence, the electronic device may proceed to perform S905 as described above. In the event that the smart flash card application of the electronic device determines that the geofence entered by the user comprises a small fence, the electronic device can perform S911-S916, described below.
And S911, starting a timer by the intelligent flash card application of the electronic equipment.
In the embodiment of the present application, the example of the user entering the geo-fence is a GPS fence. Accordingly, the small fence that the user enters may be a GPS fence.
The timer may be set to be cancelled when the user leaves all of the small fences, i.e. the smart flash card application of the electronic device determines that the user does not enter a small fence, the timer may be cancelled by the electronic device, such as the smart flash card application of the electronic device. The set duration of the timer may be set according to an actual situation, which is not limited in this embodiment of the application. For example, the set time period of the timer may be set to 10 minutes.
In some examples, the electronic device determines that the GPS fence entered by the user is one, and in a case that the GPS fence is a small fence, the electronic device may activate the virtual card corresponding to the GPS fence according to a correspondence between an identifier of the virtual card stored in the memory of the electronic device and an identifier of the GPS fence, and start a timer.
For example, referring to fig. 10 (a), when the geo-fence entered by the user is a GPS fence including a large fence 04 and a small fence 05, and the small fence 05 is the same as the center of the large fence 04, when the user 01 holds the electronic device to reach the location F, that is, the user holds the electronic device to enter one of the small fences 05, the smart card application of the electronic device, such as the electronic device, activates the virtual card corresponding to the small fence 05, and the smart card can apply the start timer.
In other examples, in a case that the electronic device determines that there are a plurality of GPS fences entered by the user and all of the plurality of GPS fences are small fences, the electronic device may activate a virtual card with a high priority according to a correspondence between an identifier of the virtual card stored in the memory of the electronic device and an identifier of the GPS fence and a priority of the virtual card, and start a timer.
For example, referring to fig. 10 (b), taking the example that the geo-fence entered by the user is a GPS fence, the GPS fence includes a large fence 04 and a small fence 05, and the center of the small fence 05 is the same as that of the large fence 04, when the user 01 holds the electronic device to reach the location G, that is, the user holds the electronic device to enter the overlapping area of one small fence 05 and one large fence 04, the smart card application of the electronic device, such as the electronic device, activates the virtual card corresponding to the small fence 05, and the smart card application starts the timer.
In other examples, in a case where the electronic device determines that there are a plurality of GPS fences entered by the user, and the plurality of GPS fences includes a large fence and a small fence, the electronic device may activate a virtual card with a higher priority among virtual cards corresponding to the small fence according to a correspondence between an identifier of the virtual card stored in a memory of the electronic device and an identifier of the GPS fence and a priority of the virtual card, and start a timer.
For example, referring to (c) in fig. 10, taking the example that the geo-fence entered by the user is a GPS fence, the GPS fence includes a large fence 04 and a small fence 05, and the center of the small fence 05 is the same as that of the large fence 04, when the user 01 holds the electronic device to reach the position H, that is, the user holds the electronic device to enter the overlapping area of the two small fences 05, the smart card application of the electronic device, such as the electronic device, activates the virtual card with the higher priority in the virtual cards corresponding to the two small fences 05, and at the same time, the smart card application starts the timer.
S912, the smart flash card application of the electronic device determines whether the user leaves the small fence which is entered within the set duration of the timer.
In the event that the electronic device, such as a smart flash card application of the electronic device, determines that the user has not left the small fence that has been entered within the set duration of the timer, the electronic device may perform S913. In the event that the electronic device, such as a smart flash card application of the electronic device, determines that the user has not left the small fence that has been entered within the set duration of the timer, the electronic device may perform S914.
An electronic device, such as a smart flash card application of the electronic device, can determine whether the user leaves the small fence that has entered within the set duration of the timer by determining whether a notification sent by the sensor hub is received within the set duration of the timer. For example, after the smart card application of the electronic device starts the timer, the sensing hub of the electronic device may obtain the current geographic location information of the electronic device from the short-range chip, and determine whether the user leaves the entered small fence according to the current geographic location information by using a built-in fence algorithm, such as a GPS fence algorithm. When the sensing hub of the electronic device determines that the user leaves the small fence that has entered, the sensing hub of the electronic device sends a notification to the smart flash card application of the electronic device that the user leaves the small fence that has entered. And under the condition that the smart flash card application of the electronic equipment receives the notice that the user leaves the small fence which is entered and sent by the sensing concentrator of the electronic equipment within the set time length of the timer, the smart flash card application of the electronic equipment determines that the user leaves the small fence which is entered within the set time length of the timer. And in the case that the smart flash card application of the electronic equipment does not receive the notification that the user leaves the small fence which has entered and is sent by the sensing concentrator of the electronic equipment within the set time length of the timer, the smart flash card application of the electronic equipment determines that the user does not leave the small fence which has entered and is within the set time length of the timer.
S913, closing the timer by the intelligent flash card application of the electronic equipment.
After the electronic device, such as a smart flash card application of the electronic device, closes the timer, the electronic device may continue to perform the above-mentioned S901-S913.
And S914, deleting the corresponding small fence by the intelligent flash card application of the electronic equipment.
In the embodiment of the present application, an example in which a user enters a geo-fence is a GPS fence is taken as an example for schematic description. Accordingly, the small fence that the user enters may be a GPS fence.
When the duration of the monitoring timer of the smart flash card application of the electronic device, such as the electronic device, reaches the set duration, that is, the timer is not cancelled, and when the duration of the monitoring timer reaches the set duration, the smart flash card application of the electronic device, such as the electronic device, may consider that the electronic device is always resident in the small fence.
When the electronic device determines that the user always resides in the small fence, a smart flash card application of the electronic device, such as an electronic device, may delete the small fence where the electronic device resides, i.e., the electronic device deletes the small fence that the user enters. For example, in connection with the example of fig. 4, in the event that an electronic device, such as a smartchip application of the electronic device, determines that the user has not left a small fence that has entered within a set duration of a timer, the smartchip application may send a notification to the sensorhoub through an application in the system service (such as a GPS application) and a hardware connectivity layer to delete the geofence so that the sensorhoub can delete the corresponding geofence, after which the sensorhoub no longer maintains the corresponding geofence.
Specifically, the above S914 may specifically include the following S9141-S9144.
S9141, the smart flash card application sends a deletion notification to the application in the system service.
The application in the system service may be a GPS application. The delete notification is used to instruct the sensorhub to delete the corresponding geofence, such as the small fence that the user has entered. The deletion notification can include an identification of the geofence that needs to be deleted, such as an identification of a small fence that the user has entered.
S9142, the application in the system service sends a deletion notification to the sensing hub.
After receiving the deletion notification, an application in the system service, such as a GPS application, may send the deletion notification to the sensorhub through the hardware connection layer.
S9143, the sensing hub receives the deletion notification.
S9144, the sensing hub deletes the geofence that the user has entered.
After the sensorhub receives the deletion notification, the geofence that the user has entered, such as a small fence that the user has entered, can be deleted.
After the electronic device deletes the small fence entered by the user, the distance between the electronic device and the boundary of the geo-fence is increased, and if the speed of the electronic device is not changed, the electronic device maintains the geo-fence so that the preset period of use can be correspondingly increased. Accordingly, the frequency of acquiring the current geographic location information of the electronic device by the electronic device, and determining whether the user enters the geo-fence by using a built-in fence algorithm can be correspondingly reduced, so that the power consumption of the electronic device can be reduced.
For example, continuing with fig. 10 (a), the example is given where the geofence entered by the user is a GPS fence, the GPS fence comprising a large fence 04 and a small fence 05, the small fence 05 being centered on the same large fence 04. When the user 01 holds the electronic device to reach the position F, that is, the user holds the electronic device to enter one small fence 05, the smart flash card application of the electronic device activates the virtual card corresponding to the small fence 05, and the smart flash card application of the electronic device starts a timer, at this time, the closest distance between the position F and the fence boundary is the distance between the position F and the boundary of the small fence 05. Since the closest distance between the location H and the fence boundary is small, the preset period used when the electronic device maintains the GPS fence is small, resulting in large power consumption of the electronic device. When the time length of the timer started by the intelligent flash card application of the electronic equipment reaches the set time length, the intelligent flash card application of the electronic equipment deletes the small fence 05. At this time, the closest distance between the position F where the user 01 holds the electronic apparatus and the fence boundary becomes the distance between the position F and the large fence 04 boundary. After the smart card application of the electronic device deletes the small fence 05, the distance between the location of the electronic device and the GPS fence boundary increases compared to the distance between the location F and the boundary of the small fence 05. Therefore, the preset period used when the GPS fence is maintained can be correspondingly increased by the electronic equipment, and the power consumption of the electronic equipment can be reduced.
For example, continuing with fig. 10 (c), taking the example that the geo-fence entered by the user is a GPS fence, the GPS fence includes a large fence 04 and a small fence 05, and the center of the small fence 05 is the same as the center of the large fence 04, when the user 01 holds the electronic device to reach the location H, the smart flash card application of the electronic device activates the corresponding virtual card, and the smart flash card application of the electronic device starts a timer, at which time, the closest distance between the location H and the fence boundary is the distance between the location H and the boundary of two small fences 05. Since the closest distance between the location H and the fence boundary is small, the preset period used when the electronic device maintains the GPS fence is small, resulting in large power consumption of the electronic device. When the time length of the timer started by the intelligent flash card application of the electronic equipment reaches the set time length, the intelligent flash card application of the electronic equipment deletes both the two small fences 05. At this time, the closest distance between the position H where the user 01 holds the electronic device and the fence boundary becomes the distance between the position H and the large fence 04 boundary. After the smart card application of the electronic device deletes a small fence 05, the distance between the location of the electronic device and the fence boundary increases compared to the distance between the location H and the boundary of two small fences 05. Therefore, the preset period used when the GPS fence is maintained can be correspondingly increased by the electronic equipment, and the power consumption of the electronic equipment can be reduced.
S915, the smart flash card application of the electronic device determines whether the user enters a geofence other than the geofence.
After the electronic device deletes the small fence entered by the user, the electronic device, such as the sensorsub of the electronic device, may continue to obtain the current geographic location information of the electronic device, and determine whether the user enters the geofence according to the current geographic location information of the electronic device. Upon determining that the user entered the geofence, the sensing hub of the electronic device sends an identification of the geofence entered by the user to the smart flash card application of the electronic device, which receives the identification of the geofence entered by the user (i.e., other than the geofence). That is to say, the specific implementation manner of the electronic device determining whether the user enters into another geofence other than the small fence can refer to the above S905-S908, and the embodiments of the present application are not described herein again. In the event that the identification of the geofence entered by the user is received by the smart flash card application of the electronic device, the smart flash card application of the electronic device determines that the user entered a geofence other than the deleted geofence.
In the event that the smart flash card application of the electronic device determines that the user enters a geofence other than the geofence, the electronic device can perform S916. In the event that the smart flash card application of the electronic device determines that the user has not entered a geofence other than the geofence, the electronic device may re-execute S915 above.
S916, the smart flash card application of the electronic device recovers the small fence.
In the case that the smart flash card application of the electronic device, for example, the electronic device, determines that the user enters into another geo-fence other than the small fence, the smart flash card application of the electronic device, for example, the electronic device, may recover the deleted small fence, so as to ensure that the electronic device may determine the virtual card that needs to be activated when the user enters into the geo-fence, thereby enabling the user to automatically select and activate the correct virtual card before swiping the card.
For example, in connection with the example in fig. 4, when an electronic device, such as a smartchip application of the electronic device, determines that the user enters into a geofence other than the geofence, the smartchip application may send a notification to the sensorhub through an application in the system service (such as a GPS application) and a hardware connectivity layer to restore the geofence so that the sensorhub can restore the corresponding geofence.
Specifically, the above S916 may specifically include the following S9161-S9164.
S9161, the smart flash card application sends a recovery notice to the application in the system service.
The application in the system service may be a GPS application. The restore notification is used to instruct the sensorhub to restore deleted geofences, such as deleted mini-fences. The recovery notification can include an identification of the geofence that needs to be recovered.
S9162, the application in the system service sends a recovery notice to the sensing hub.
After receiving the recovery notification, an application in the system service, such as a GPS application, may send the recovery notification to the sensorhub through the hardware connection layer.
S9163, the sensing hub receives the recovery notice.
S9164, the sensing hub restores the deleted geo-fence.
The deleted geofence may be restored after the sensorhub receives the notification to restore. For example, the sensorhub may identify that all GPS fences included in the recovery notification are recovered for the corresponding GPS fence.
After the electronic device recovers all GPS fences, the electronic device may determine whether the electronic device satisfies a first preset condition (e.g., the electronic device successfully connects to Wi-Fi), and if the first preset condition is satisfied, the electronic device may delete the corresponding geo-fence, and if the electronic device determines that the user enters the small fence, the electronic device may delete the corresponding small fence, thereby reducing power consumption of the electronic device. I.e., the electronic device may continue to perform the above-described S901-S916.
By adopting the scheme, when a user uses a virtual card for transaction at a certain card swiping point for the first time, the intelligent flash card application of the electronic equipment can acquire the current geographic position information and the current geographic position precision of the electronic equipment from the short-distance chip through the application, the hardware connection layer and the sensorhub in system service. And the smart flash card application establishes a geographic position fence corresponding to the virtual card according to the current geographic position information and the geographic position precision of the electronic equipment. And then when the sensorhub determines that the user enters the geographic position fence according to the geographic position information of the electronic equipment acquired from the short-distance chip, the sensorhub sends the identification of the geographic position fence entered by the user to the smart flash card application. The smart flash card application may activate a virtual card corresponding to the geo-location fence. That is, the smart flash card application of the electronic device can automatically activate the corresponding virtual card using the geo-location fence before the user swipes the card. When different card swiping requirements are met, the situation that a user needs to manually select a virtual card can be avoided, so that the card swiping time is shortened, and the user experience is improved.
According to the scheme, the corresponding geographic fence can be established according to the GPS position information in the geographic position information and the GPS precision in the geographic position precision, and the GPS position information can be acquired by utilizing a short-distance chip of the electronic equipment. And the short-distance chip is the standard configuration of the electronic equipment, so that even if the electronic equipment does not have Wi-Fi fence capability, namely the electronic equipment does not have sensorhub, or the sensorhub of the electronic equipment does not have Wi-Fi fence capability, if the sensorhub does not comprise a Wi-Fi fence algorithm, the intelligent flash card application can still realize the automatic activation of the corresponding virtual card before the user swipes the card, and the use experience of the user is further improved.
In addition, according to the scheme of the application, when the electronic device meets a first preset condition (for example, when the electronic device is successfully connected with Wi-Fi), the smart flash card application of the electronic device deletes all the geo-fences of the electronic device, so that the electronic device does not need to maintain the corresponding geo-fences, and the power consumption of the electronic device can be reduced. And when the user enters the range of the small fence, the smart flash card application deletes the small fence entered by the user, so that the sensorhub of the electronic device can correspondingly increase the preset period used when the GPS fence is maintained, namely, the frequency of acquiring the current geographic position information of the electronic device by the sensorhub of the electronic device, and the frequency of determining whether the user enters the geographic fence or not by using a built-in fence algorithm can be correspondingly reduced, so that the power consumption of the electronic device can be reduced.
For convenience of understanding, the following describes a method for switching a virtual card according to an embodiment of the present application with reference to fig. 11. As shown in fig. 11, the virtual card switching method may include the following S1101-S1117.
S1101, the electronic device acquires a first virtual card.
For a specific implementation of the electronic device acquiring the first virtual card, reference may be made to the implementation in S601 described above. The embodiments of the present application are not described herein again.
S1102, under the condition that the electronic equipment completes data interaction by adopting the first virtual card at the first card swiping point for the first time, the electronic equipment acquires the geographic position information and the geographic position precision of the electronic equipment.
The geographic position information of the electronic device may be GNSS position information, or may be corresponding Cell information, or may also be corresponding Wi-Fi information, or may also be other types of position information, which is not limited in this embodiment of the present application. The GNSS location information may be GPS location information, GLONASS location information, beidou location information, QZSS location information, or SBAS location information, etc. The specific type of GNSS location information is not limited in this application.
The geographic position accuracy of the electronic device may be GNSS position accuracy, or may be corresponding Cell accuracy, or may also be corresponding Wi-Fi accuracy, or may also be other types of position accuracy, which is not limited in this embodiment of the present application. The GNSS location information may be GPS accuracy, GLONASS accuracy, beidou accuracy, QZSS accuracy, SBAS accuracy, or the like.
For convenience of understanding, in the embodiment of the present application, the current geographic position information of the electronic device is taken as GPS position information, and the geographic position precision is taken as GPS precision for example, which is schematically described.
The specific implementation manner of the electronic device obtaining the current GPS location information and the GPS accuracy when a certain card swiping point (for example, referred to as a first card swiping point) completes data interaction with the NFC card reader for the first time by using a certain first virtual card may refer to the implementation manner in S602 above. The embodiments of the present application are not described herein again.
S1103, the electronic device establishes and stores the geo-fence corresponding to the first virtual card according to the geographical location information and the geographical location precision.
The geofence corresponding to the first virtual card may be a GNSS geofence, a Cell geofence, a Wi-Fi geofence, or another type of geofence, which is not limited in this embodiment of the present application. The GNSS geofence may be a GPS geofence, a GLONASS geofence, a beidou geofence, a QZSS geofence, or an SBAS geofence, among others. The specific type of GNSS geofence is not limited in this application.
For convenience of understanding, in the embodiment of the present application, a geo-fence corresponding to the first virtual card is schematically illustrated as a GPS fence. The electronic device establishes a GPS fence corresponding to the first virtual card according to the GPS position information and the GPS precision, wherein the GPS fence can be a large fence, a small fence, a large fence and a small fence.
The electronic device establishes and stores a specific implementation of the GPS fence corresponding to the first virtual card according to the GPS location information and the GPS accuracy, which may refer to the implementation in S603-S605. The embodiments of the present application are not described herein again.
S1104, the electronic device determines whether the electronic device meets a first preset condition.
The embodiment of the application takes the first preset condition as an example of successful connection of the electronic device to the Wi-Fi.
In a case where the electronic device determines that the electronic device satisfies the first preset condition, the electronic device may perform S1105. In a case where the electronic device determines that the electronic device does not satisfy the first preset condition, the electronic device may continue to perform S1104 described above.
S1105, the electronic device deletes all the geo-fences.
The electronic device deletes all the geofences, which can refer to the embodiment in S902 described above. The embodiments of the present application are not described herein again.
The embodiments of the present application take all the geo-fences of the electronic device as GPS fences as an example for explanation. The GPS fence can be a large fence or a small fence.
S1106, the electronic device determines whether the electronic device meets a second preset condition.
In the embodiment of the application, a second preset condition is taken as an example that the Wi-Fi connection of the electronic device is disconnected.
In a case where the electronic device determines that the electronic device satisfies the second preset condition, the electronic device may perform S1107. In a case where the electronic device determines that the electronic device does not satisfy the second preset condition, the electronic device may continue to perform S1106 described above.
S1107, the electronic device restores all geofences.
A specific embodiment of the electronic device recovering all the geo-fences can refer to the embodiment in S904 described above. The embodiments of the present application are not described herein again.
The embodiments of the present application take all the geo-fences of the electronic device as GPS fences as an example for explanation. The GPS fence can be a large fence or a small fence.
S1108, the electronic device acquires the geographical position information of the electronic device.
The geographic position information of the electronic device may be GNSS position information, or may be corresponding Cell information, or may also be corresponding Wi-Fi information, or may also be other types of position information, which is not limited in this embodiment of the present application. The GNSS location information may be GPS location information, GLONASS location information, beidou location information, QZSS location information, or SBAS location information, etc. The specific type of GNSS location information is not limited in this application.
For convenience of understanding, in the embodiment of the present application, a description is schematically given by taking the current geographic location information of the electronic device as GPS location information as an example.
For a specific embodiment of the electronic device acquiring the GPS location information of the electronic device, reference may be made to the embodiment in S905. The embodiments of the present application are not described herein again.
S1109, the electronic device determines whether the user enters the geo-fence according to the geographical location information of the electronic device.
The geographic location information of the electronic device may be GNSS location information, or may be corresponding Cell information, or may also be corresponding Wi-Fi information, or may also be 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, etc. The specific type of GNSS location information is not limited in this application.
For convenience of understanding, in the embodiment of the present application, a description is schematically given by taking the current geographic location information of the electronic device as GPS location information as an example.
The geofence entered by the user may be a GNSS geofence, a Cell geofence, a Wi-Fi geofence, or other types of geofences, which is not limited in this embodiment of the present application. The GNSS geofence may be a GPS geofence, a GLONASS geofence, a beidou geofence, a QZSS geofence, or an SBAS geofence, among others. The specific type of GNSS geofence is not limited in this application.
For convenience of understanding, in the embodiment of the present application, the example of the user entering the geo-fence is taken as a GPS fence. Namely, the electronic device determines whether the user enters the GPS fence according to the GPS position information of the electronic device.
The specific implementation manner of the electronic device determining whether the user enters the GPS fence corresponding to the first virtual card according to the GPS location information of the electronic device may refer to the implementation manner in S906. The embodiments of the present application are not described herein again.
In the event that the electronic device determines that the user enters the GPS fence corresponding to the first virtual card, the electronic device can perform S1110. Under the condition that the electronic device determines that the user does not enter the GPS fence corresponding to the first virtual card, the electronic device may continue to acquire the GPS location information of the electronic device, and determine whether the user enters the GPS fence according to the GPS location information of the electronic device, that is, the electronic device may continue to execute the above S1108-S1109.
S1110, the electronic device activates a first virtual card corresponding to the geo-fence.
The geofence entered by the user may be a GNSS geofence, a Cell geofence, a Wi-Fi geofence, or other types of geofences, which is not limited in this embodiment of the present application. The GNSS geofence may be a GPS geofence, a GLONASS geofence, a beidou geofence, a QZSS geofence, or an SBAS geofence, among others. The specific type of GNSS geofence is not limited in this application.
For convenience of understanding, in the embodiment of the present application, the example of the user entering the geo-fence is taken as a GPS fence.
The electronic device activating the first virtual card corresponding to the GPS fence may include:
in the event that the electronic device determines that the user entered a GPS fence, the electronic device can activate a first virtual card corresponding to the GPS fence.
In the case that the electronic device determines that the user enters multiple GPS fences, the electronic device may further activate a first virtual card corresponding to the GPS fence according to the priority of the GPS fence. For example, in a case where one of the plurality of GPS fences entered by the user has a highest priority, the electronic device may activate a first virtual card corresponding to the highest priority GPS fence of the plurality of GPS fences entered by the user.
In a case that there are a plurality of GPS fences with the highest priority among the plurality of 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 a case where one of the first virtual cards corresponding to the plurality of GPS fences with the highest priority entered by the user is the highest priority virtual card, the electronic device may activate the first virtual card with the highest priority.
When the number of the first virtual cards with the highest priority in the first virtual cards corresponding to the multiple GPS fences with the highest priority entered by the user is multiple, the electronic device may activate the first virtual card corresponding to the GPS fence that the user has entered last.
Specifically, for a specific implementation that the electronic device activates the first virtual card corresponding to the GPS fence, reference may be made to the implementation in S907-S909 described above. The embodiments of the present application are not described herein again.
S1111, the electronic device determines whether the geo-fence entered by the user includes a mini-fence.
In the embodiment of the present application, an example in which a user enters a geo-fence is a GPS fence is taken as an example for schematic description. Correspondingly, the small fence is a GPS fence.
In particular, the electronic device determines whether the geo-fence entered by the user includes a small fence, which can refer to the embodiment in S910 described above. The embodiments of the present application are not described herein again.
In the event that the electronic device determines that the geofence entered by the user includes a mini-fence, the electronic device can perform S1112. In the event that the electronic device determines that the geofence entered by the user does not include a mini-fence, the electronic device may proceed to perform S1108 described above.
S1112, the electronic device starts a timer.
S1113, the electronic device determines whether the user leaves the small fence which is entered or not within the set time length of the timer.
In the event that the electronic device determines that the user leaves the small fence that has entered within the set duration of the timer, the electronic device may perform S1114. In a case where the electronic device determines that the user does not leave the small fence that has entered within the set duration of the timer, the electronic device may continue to perform S1115.
S1114, the electronic equipment closes the timer.
S1115, the electronic equipment deletes the small fence which the user enters.
In the embodiment of the present application, the example of the user entering the geo-fence is a GPS fence. Accordingly, the small fence can be a GPS fence.
Specifically, the electronic device may refer to the embodiment in S914 for deleting the small fence entered by the user. The embodiments of the present application are not described herein again.
S1116, the electronic device determines whether the user enters a geofence other than the geofence.
In the embodiment of the present application, an example in which the user enters the geofence is a GPS fence, and other geofences in the electronic device except the small fence are GPS fences is taken as an example for illustration. Accordingly, the small fence can be a GPS fence.
In particular, the electronic device determines whether the user enters a geofence other than the small fence, which can refer to the embodiment in S915 above. The embodiments of the present application are not described herein again.
In the event that the electronic device determines that the user enters a geofence other than the small fence, the electronic device can perform S1117. In the event that the electronic device determines that the user has not entered a geofence other than the geofence, the electronic device may proceed to perform S1116 described above.
S1117, the electronic equipment recovers the small fence.
In the embodiment of the present application, a small fence can be a GPS fence for example.
Specifically, the electronic device may refer to the embodiment in S916 above to recover the specific embodiment of the small fence. The embodiments of the present application are not described herein again.
By adopting the scheme, when a user uses a certain virtual card for transaction at a certain card swiping point for the first time, the geographic fence corresponding to the virtual card can be established according to the current geographic position information and the geographic position precision of the electronic equipment. When the user re-enters the geo-fence with the electronic device, the electronic device can automatically activate the virtual card corresponding to the geo-fence, so that the user can complete the transaction by using the virtual card. That is, the electronic device can automatically activate the corresponding virtual card with the geofence prior to the user swiping the card. When different card swiping requirements are met, the situation that a user needs to manually select a virtual card can be avoided, so that the card swiping time is shortened, and the user experience is improved.
According to the scheme, the corresponding geographic fence can be established according to the GPS position information in the geographic position information and the GPS precision in the geographic position precision, and the GPS position information can be acquired by utilizing a short-distance chip of the electronic equipment. And the short-distance chip is the standard configuration of the electronic equipment, so that even if the electronic equipment does not have the Wi-Fi fence capability, the automatic activation of the corresponding virtual card can be realized before the user swipes the card, and the use experience of the user is further improved.
In addition, according to the scheme of the application, when the electronic device meets a first preset condition (for example, when the electronic device is successfully connected to Wi-Fi), the electronic device deletes all the geo-fences of the electronic device, so that the electronic device does not need to maintain the corresponding geo-fences, and the power consumption of the electronic device can be reduced. When the user enters the range of the small fence, the electronic device deletes the small fence entered by the user, so that the preset period used when the GPS fence is maintained can be correspondingly increased by the electronic device, namely the frequency of acquiring the current geographic position information of the electronic device by the electronic device, and the frequency of determining whether the user enters the geographic fence or not by using a built-in fence algorithm can be correspondingly reduced, so that the power consumption of the electronic device can be reduced.
Corresponding to the method in the foregoing embodiment, an embodiment of the present application further provides a virtual card switching device. The virtual card switching device can be applied to electronic equipment and is used for realizing the method in the embodiment. The functions of the device can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above-described functions.
For example, fig. 12 shows a schematic structural diagram of a virtual card switching apparatus 1200, and as shown in fig. 12, the virtual card switching apparatus 1200 may include: an obtaining module 1201, a creating module 1202, a storing module 1203, an activating module 1204, an initiating module 1205, a deleting module 1206, and the like.
The obtaining module 1201 can be configured to obtain GNSS position information and GNSS accuracy of the electronic device when the electronic device completes data interaction at the first card swiping point by using the first virtual card for the first time; the first virtual card is a virtual card of a plurality of virtual cards.
The establishing module 1202 may be configured to establish a first GNSS fence corresponding to the first virtual card according to the GNSS position information and the GNSS accuracy, where the first GNSS fence includes a first fence and a second fence, and a range of the first fence is greater than a range of the second fence.
The storage module 1203 may be configured to store a first GNSS fence corresponding to the first virtual card.
An activation module 1204 may be configured to activate the first virtual card if the electronic device monitors that the location of the electronic device is within the range of the first fence.
The starting module 1205 can be configured to start the timer when the electronic device detects that the location of the electronic device is within the range of the second fence.
The deleting module 1206 can be configured to delete the second fence if the location of the electronic device is within the range of the second fence within the set duration of the timer.
In another possible implementation manner, the establishing unit 1202 may be further configured to establish GNSS fences of other virtual cards in the plurality of virtual cards except the first virtual card; wherein the GNSS fence of the other virtual card comprises: and a second GNSS fence corresponding to the second virtual card. The storage unit 1203 may be further configured to store GNSS fences of other virtual cards than the first virtual card in the plurality of virtual cards.
As shown in fig. 12, the virtual card switching apparatus 1200 may further include: a recovery module 1207. The recovery module 1207 may be configured to recover the second fence if the electronic device monitors that the location of the electronic device is out of the range of the first fence, or if the electronic device monitors that the location of the electronic device is within the range of the second GNSS fence.
In another possible implementation manner, the first fence is a circular area with GNSS position information as a center and a preset length as a radius; the second fence is a circular area which takes the GNSS position information as the center of a circle and takes the GNSS precision of N times as the radius; n is an integer larger than zero, and the preset length is larger than the GNSS precision of N times.
In another possible implementation, the preset length is 1 km; n is 5; or the accuracy of the GNSS multiplied by N is more than 50 meters and less than 500 meters.
In another possible implementation, the first virtual card is embodied as a predetermined type of virtual card among the plurality of virtual cards.
In another possible implementation, the GNSS includes a global positioning satellite system GPS, a global navigation satellite system GLONASS, a beidou satellite navigation system BDS, a quasi-zenith satellite system QZSS, or a satellite-based augmentation system SBAS.
As another example, fig. 13 shows a schematic structural diagram of a virtual card switching apparatus 1300, and as shown in fig. 13, the virtual card switching apparatus 1300 may include: an obtaining module 1301, a building module 1302, a storing module 1303, an activating module 1304, a deleting module 1305, and the like.
The obtaining module 1301 may be configured to obtain GNSS position information and GNSS accuracy of the electronic device when the electronic device completes data interaction at the first card swiping point by using the first virtual card for the first time; the first virtual card is a virtual card of a plurality of virtual cards.
The establishing module 1302 may be configured to establish a first GNSS fence corresponding to the first virtual card according to the GNSS position information and the GNSS accuracy, where the first GNSS fence includes a first fence and a second fence, and a range of the first fence is greater than a range of the second fence.
The storage module 1303 may be configured to store the first GNSS fence corresponding to the first virtual card.
An activation module 1304 can be configured to activate the first virtual card if the electronic device monitors that the location of the electronic device is within the range of the first fence.
The deleting module 1305 may be configured to delete the second fence if the electronic device meets a first preset condition.
In another possible implementation manner, the first preset condition includes: the electronic device is successfully connected with the wireless fidelity Wi-Fi.
In another possible implementation manner, as shown in fig. 13, the virtual card switching apparatus 1300 may further include: a recovery module 1306. The recovering module 1306 may be configured to recover the first GNSS fence when the electronic device satisfies a second preset condition.
In another possible implementation manner, the second preset condition includes: the electronic device disconnects the Wi-Fi connection.
In another possible implementation manner, the first fence is a circular area with GNSS position information as a center and a preset length as a radius; the second fence is a circular area which takes the GNSS position information as the center of a circle and takes the GNSS precision of N times as the radius; n is an integer larger than zero, and the preset length is larger than the GNSS precision of N times.
With reference to the fourth aspect, in another possible implementation manner, the preset length is 1 km; n is 5; or the accuracy of the GNSS multiplied by N is more than 50 meters and less than 500 meters.
In another possible implementation, the first virtual card is embodied as a predetermined type of virtual card among the plurality of virtual cards.
In another possible implementation, the GNSS includes a global positioning satellite system GPS, a global navigation satellite system GLONASS, a beidou satellite navigation system BDS, a quasi-zenith satellite system QZSS, or a satellite-based augmentation system SBAS.
It should be understood that the division of units or modules (hereinafter referred to as units) in the above apparatus is only a division of logical functions, and may be wholly or partially integrated into one physical entity or physically separated in actual implementation. And the units in the device can be realized in the form of software called by the processing element; or may be implemented entirely in hardware; part of the units can also be implemented in the form of software invoked by a processing element and part of the units can be implemented in the form of hardware.
For example, each unit may be a processing element separately set up, or may be implemented by being integrated into a chip of the apparatus, or may be stored in a memory in the form of a program, and a processing element of the apparatus calls and executes the function of the unit. In addition, all or part of the units can be integrated together or can be independently realized. The processing element described herein, which may also be referred to as a processor, may be an integrated circuit having signal processing capabilities. In the implementation process, the steps of the method or the units above may be implemented by integrated logic circuits of hardware in a processor element or in a form called by software through the processor element.
In one example, the units in the above apparatus may be one or more integrated circuits configured to implement the above method, such as: one or more ASICs, or one or more DSPs, or one or more FPGAs, or a combination of at least two of these integrated circuit forms.
As another example, when a unit in an apparatus may be implemented in the form of a processing element scheduler, the processing element may be a general-purpose processor, such as a CPU or other processor that may invoke a program. As another example, these units may be integrated together and implemented in the form of a system-on-a-chip (SOC).
In one implementation, the unit of the above apparatus for implementing each corresponding step in the above method may be implemented in the form of a processing element scheduler. For example, the apparatus may include a processing element and a memory element, the processing element calling a program stored by the memory element to perform the method described in the above method embodiments. The memory elements may be memory elements on the same chip as the processing elements, i.e. on-chip memory elements.
In another implementation, the program for performing the above method may be in a memory element on a different chip than the processing element, i.e. an off-chip memory element. At this time, the processing element calls or loads a program from the off-chip storage element onto the on-chip storage element to call and execute the method described in the above method embodiment.
For example, the embodiments of the present application may also provide an apparatus, such as: an electronic device may include: a processor, a memory for storing instructions executable by the processor. The processor is configured to execute the above instructions, so that the electronic device implements the virtual card switching method according to the foregoing embodiment. The memory may be located within the electronic device or external to the electronic device. And the processor includes one or more.
In yet another implementation, the unit of the apparatus for implementing the steps of the method may be configured as one or more processing elements, and these processing elements may be disposed on the electronic device corresponding to the foregoing, where the processing elements may be integrated circuits, for example: one or more ASICs, or one or more DSPs, or one or more FPGAs, or a combination of these types of integrated circuits. These integrated circuits may be integrated together to form a chip.
For example, the embodiment of the present application also provides a chip, which can be applied to the electronic device. The chip includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through a line; the processor receives and executes computer instructions from the memory of the electronic device through the interface circuitry to implement the methods described in the method embodiments above.
Embodiments of the present application further provide a computer program product, which includes computer instructions executed by the electronic device as described above.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical functional division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another device, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, that is, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be embodied in the form of software products, such as: and (5) programming. The software product is stored in a program product, such as a computer readable storage medium, and includes several instructions for causing a device (which may be a single chip, a chip, or the like) or a processor (processor) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
For example, embodiments of the present application may also provide a computer-readable storage medium having stored thereon computer program instructions. The computer program instructions, when executed by the electronic device, cause the electronic device to implement the virtual card switching method as described in the aforementioned method embodiments.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (16)

1. A virtual card switching method is applied to electronic equipment, the electronic equipment has a Near Field Communication (NFC) function, the electronic equipment comprises a plurality of virtual cards, and the method comprises the following steps:
under the condition that the electronic equipment completes data interaction by adopting a first virtual card at a first card swiping point for the first time, the electronic equipment acquires Global Navigation Satellite System (GNSS) position information and GNSS precision of the electronic equipment; the first virtual card is a virtual card of the plurality of virtual cards;
the electronic device establishes and stores a first GNSS fence corresponding to the first virtual card according to the GNSS position information and the GNSS accuracy, wherein the first GNSS fence comprises a first fence and a second fence, and the range of the first fence is larger than that of the second fence;
the electronic device activates the first virtual card if the electronic device monitors that the position of the electronic device reaches the range of the first fence;
the electronic device starts a timer when the electronic device monitors that the position of the electronic device reaches the range of the second fence;
and under the condition that the position of the electronic equipment is within the range of the second fence within the set time length of the timer, the electronic equipment deletes the second fence.
2. The method of claim 1, wherein the electronic device further establishes and stores GNSS fences for other virtual cards of the plurality of virtual cards except the first virtual card; wherein the GNSS fence of the other virtual card comprises: a second GNSS fence corresponding to the second virtual card, and the method further includes:
the electronic device restores the second fence if the electronic device monitors that the location of the electronic device is out of range of the first fence, or if the electronic device monitors that the location of the electronic device is within range of the second GNSS fence.
3. The method of claim 1, wherein the first fence is a circular area with the GNSS location information as a center and a preset length as a radius;
the second fence is a circular area which takes the GNSS position information as a circle center and takes N times of the GNSS precision as a radius; n is an integer larger than zero, and the preset length is larger than N times of the GNSS precision.
4. The method of claim 3, wherein the preset length is 1 km;
the N is 5; or, the accuracy of the GNSS multiplied by N is greater than 50 meters and less than 500 meters.
5. The method according to any of claims 1-4, wherein the first virtual card is specific to a predetermined type of virtual card of the plurality of virtual cards.
6. The method according to any of claims 1-4, wherein the GNSS comprises the Global positioning System GPS, Global navigation satellite System GLONASS, Beidou satellite navigation System BDS, quasi-zenith satellite System QZSS or the satellite based augmentation System SBAS.
7. A virtual card switching method is applied to electronic equipment, the electronic equipment has a Near Field Communication (NFC) function, the electronic equipment comprises a plurality of virtual cards, and the method comprises the following steps:
under the condition that the electronic equipment completes data interaction by adopting a first virtual card at a first card swiping point for the first time, the electronic equipment acquires Global Navigation Satellite System (GNSS) position information and GNSS precision of the electronic equipment; the first virtual card is a virtual card of the plurality of virtual cards;
the electronic device establishes and stores a first GNSS fence corresponding to the first virtual card according to the GNSS position information and the GNSS accuracy, wherein the first GNSS fence comprises a first fence and a second fence, and the range of the first fence is larger than that of the second fence;
activating, by the electronic device, the first virtual card if the electronic device monitors that the location of the electronic device is within range of the first GNSS fence;
and under the condition that the electronic equipment meets a first preset condition, deleting the first GNSS fence by the electronic equipment.
8. The method according to claim 7, wherein the first preset condition comprises: the electronic device is successfully connected with the wireless fidelity Wi-Fi.
9. The method of claim 7, further comprising:
and under the condition that the electronic equipment meets a second preset condition, the electronic equipment recovers the first GNSS fence.
10. The method according to claim 9, wherein the second preset condition comprises: the electronic device disconnects the Wi-Fi connection.
11. The method of claim 7, wherein the first fence is a circular area with the GNSS location information as a center and a preset length as a radius;
the second fence is a circular area which takes the GNSS position information as a circle center and takes N times of the GNSS precision as a radius; n is an integer larger than zero, and the preset length is larger than N times of the GNSS precision.
12. The method of claim 11, wherein the preset length is 1 km;
the N is 5; or, the accuracy of the GNSS multiplied by N is greater than 50 meters and less than 500 meters.
13. The method according to any of claims 7-12, wherein the first virtual card is specific to a predetermined type of virtual card of the plurality of virtual cards.
14. The method according to any of claims 7-12, wherein the GNSS comprises the global positioning satellite 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.
15. An electronic device, comprising a processor, a memory for storing processor-executable instructions; the processor is configured to, when executing the instructions, cause the electronic device to implement the method of any of claims 1-14.
16. A computer readable storage medium having stored thereon computer program instructions; it is characterized in that the preparation method is characterized in that,
the computer program instructions, when executed by an electronic device, cause the electronic device to implement the method of any of claims 1 to 14.
CN202110954997.4A 2021-08-19 2021-08-19 Virtual card switching method and electronic equipment Active CN114501316B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110954997.4A CN114501316B (en) 2021-08-19 2021-08-19 Virtual card switching method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110954997.4A CN114501316B (en) 2021-08-19 2021-08-19 Virtual card switching method and electronic equipment

Publications (2)

Publication Number Publication Date
CN114501316A true CN114501316A (en) 2022-05-13
CN114501316B CN114501316B (en) 2022-12-16

Family

ID=81491816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110954997.4A Active CN114501316B (en) 2021-08-19 2021-08-19 Virtual card switching method and electronic equipment

Country Status (1)

Country Link
CN (1) CN114501316B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2611123A1 (en) * 2011-12-29 2013-07-03 Research In Motion Limited Mobile communications device providing near field communication (NFC) security features and related methods
CN104936143A (en) * 2015-06-12 2015-09-23 广东小天才科技有限公司 Positioning method and device for anti-lost smart wearable equipment
CN110381443A (en) * 2019-09-05 2019-10-25 北京小米移动软件有限公司 Near-field communication card Activiation method and device
CN110599717A (en) * 2019-07-30 2019-12-20 华为技术有限公司 Electronic fence detection method and electronic equipment
CN111316673A (en) * 2018-10-15 2020-06-19 华为技术有限公司 Electronic fence updating method and communication device
CN111432339A (en) * 2020-03-19 2020-07-17 RealMe重庆移动通信有限公司 Near field communication card switching method and device, storage medium and electronic equipment
CN112529564A (en) * 2019-09-18 2021-03-19 华为技术有限公司 Method and electronic equipment for near field wireless communication
CN112926710A (en) * 2021-03-30 2021-06-08 歌尔股份有限公司 NFC analog card switching method, mobile terminal and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2611123A1 (en) * 2011-12-29 2013-07-03 Research In Motion Limited Mobile communications device providing near field communication (NFC) security features and related methods
CN104936143A (en) * 2015-06-12 2015-09-23 广东小天才科技有限公司 Positioning method and device for anti-lost smart wearable equipment
CN111316673A (en) * 2018-10-15 2020-06-19 华为技术有限公司 Electronic fence updating method and communication device
CN110599717A (en) * 2019-07-30 2019-12-20 华为技术有限公司 Electronic fence detection method and electronic equipment
CN110381443A (en) * 2019-09-05 2019-10-25 北京小米移动软件有限公司 Near-field communication card Activiation method and device
CN112529564A (en) * 2019-09-18 2021-03-19 华为技术有限公司 Method and electronic equipment for near field wireless communication
CN111432339A (en) * 2020-03-19 2020-07-17 RealMe重庆移动通信有限公司 Near field communication card switching method and device, storage medium and electronic equipment
CN112926710A (en) * 2021-03-30 2021-06-08 歌尔股份有限公司 NFC analog card switching method, mobile terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN114501316B (en) 2022-12-16

Similar Documents

Publication Publication Date Title
CN113765546B (en) Virtual card switching method and electronic equipment
CN110505572B (en) Indoor positioning method and electronic equipment
CN105359560A (en) Service provisioning through a smart personal gateway device
CN113615217A (en) Method for determining that terminal equipment is located inside geo-fence and terminal equipment
CN114257960B (en) Bluetooth connection method and device
CN114463898A (en) Express delivery pickup reminding method and device
CN113382363B (en) Method and device for sending messages based on different networks
CN105554869A (en) Mobile terminal communication method, equipment and communication system
CN113923611A (en) Call forwarding system and related device
CN105744470B (en) Positioning information transmission method, apparatus and system
US20240171941A1 (en) Bluetooth positioning device detection method, device, and storage medium
CN111629337A (en) Method and terminal for controlling network searching
CN114666694A (en) Bluetooth headset loss prevention method and electronic equipment
CN113573239B (en) Virtual card switching method, electronic equipment and wearable equipment
CN105126339B (en) A kind of game control device and method
CN114449446B (en) Virtual card switching method and electronic equipment
CN114501316B (en) Virtual card switching method and electronic equipment
CN115695648A (en) Interface display method and electronic equipment
CN115379388B (en) Generation method of geo-fence and electronic device
CN114489449B (en) Display method and electronic equipment
CN113766050B (en) Fingerprint input method and electronic equipment
CN116032942A (en) Method, device, equipment and storage medium for synchronizing cross-equipment navigation tasks
CN116663587A (en) Two-dimensional code identification method and identification device
CN115297530B (en) Network connection method and device
CN115374482B (en) Image processing method and electronic equipment

Legal Events

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