CN113573239B - Virtual card switching method, electronic equipment and wearable equipment - Google Patents

Virtual card switching method, electronic equipment and wearable equipment Download PDF

Info

Publication number
CN113573239B
CN113573239B CN202110661905.3A CN202110661905A CN113573239B CN 113573239 B CN113573239 B CN 113573239B CN 202110661905 A CN202110661905 A CN 202110661905A CN 113573239 B CN113573239 B CN 113573239B
Authority
CN
China
Prior art keywords
virtual card
wearable device
information
fence
card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110661905.3A
Other languages
Chinese (zh)
Other versions
CN113573239A (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 CN202110661905.3A priority Critical patent/CN113573239B/en
Publication of CN113573239A publication Critical patent/CN113573239A/en
Application granted granted Critical
Publication of CN113573239B publication Critical patent/CN113573239B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier

Abstract

The application provides a virtual card switching method, electronic equipment and wearable equipment, relates to the technical field of terminals, and solves the problem that the wearable equipment is poor in man-machine interaction in the process of switching the activation state of a virtual card. The specific scheme is as follows: the wearable device sends first information to the electronic device under the condition that the wearable device meets a first condition; the first information comprises a first identifier corresponding to the second virtual card; the first indication information comprises a first identifier; the electronic equipment creates a first fence corresponding to the second virtual card according to the first information; the electronic device sends second information to the wearable device when the wearable device enters the first fence; wherein the second information comprises a first identifier; the wearable device activates the second virtual card and deactivates the first virtual card according to the second information. The virtual card is flexibly switched without user participation, and the human-computer interaction is improved.

Description

Virtual card switching method, electronic equipment and wearable equipment
Technical Field
The application relates to the technical field of terminals, in particular to a virtual card switching method, electronic equipment and wearable equipment.
Background
Near Field Communication (NFC) technology has gradually been popularized to miniaturized terminal devices, such as wearable devices. The wearable equipment that possesses the NFC function can realize multiple functions such as bus card swiping, transaction payment, entrance guard's unblock. Certainly, the above functions are implemented without configuring multiple NFC virtual cards in the wearable device.
However, due to the limitation of the hardware environment of the wearable device, it is cumbersome to switch the NFC virtual card for the wearable device, so that the human-computer interaction efficiency is poor when the wearable device faces different card swiping requirements.
Disclosure of Invention
The embodiment of the application provides a virtual card switching method, electronic equipment and wearable equipment, and the activation state of a virtual card can be switched along with the change of a scene where the wearable equipment is located. The flexible virtual card switching mode can meet different card swiping requirements and improve the human-computer interaction efficiency.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
in a first aspect, a virtual card switching method provided in an embodiment of the present application is applied to a wearable communication system, where the wearable communication system includes an electronic device and a wearable device, short-range wireless communication is adopted between the electronic device and the wearable device, the wearable device has a near field communication NFC function, and the wearable device includes an activated first virtual card and an inactivated second virtual card, and the method includes: the wearable device sends first information to the electronic device when the wearable device meets a first condition; the first information comprises a first identifier corresponding to the second virtual card; the electronic equipment creates a first fence corresponding to the second virtual card according to the first information; the electronic device sending second information to the wearable device if the wearable device enters the first fence; wherein the second information comprises the first identifier; and the wearable equipment activates the second virtual card and deactivates the first virtual card according to the second information.
For example, after the second virtual card in the wearable device completes interaction with the NFC reader, the electronic device may be notified to establish a corresponding first fence for the second virtual card immediately. The first fence may indicate an actual scene in which the second virtual card is used. In this manner, when the wearable device re-enters the first fence, the wearable device can be instructed by the electronic device to deactivate the first virtual card and activate the second virtual card. Therefore, the wearable equipment can flexibly switch the state of the virtual card along with scene change without user operation, so as to meet different card swiping requirements of users and further improve human-computer interaction.
Still exemplarily, the electronic device may be notified to establish the corresponding first fence for the second virtual card when the first indication information broadcasted by the NFC card reader is received. The first indication information is information pointing to the second virtual card, and may include a first identifier therein. Therefore, even if the card swiping action is not actually generated, the electronic equipment can determine the actual scene which can be used by the second virtual card, and the switching sensitivity of the activation state of the virtual card is improved.
It will be appreciated that in other embodiments, corresponding fences may also be created for other inactive virtual cards in the wearable device, as would be the case if a first fence were created for a second virtual card. Therefore, the electronic device can flexibly determine the required virtual card according to the actual scene of the wearable device.
In some possible embodiments, a corresponding fence may also be created for the first virtual card, that is, in a case where the first virtual card completes swiping the card, the wearable device may trigger the electronic device to create the corresponding fence for the first virtual card through the interaction information. And upon entering the fence of the first virtual card, the electronic device may notify the wearable device to keep the first virtual card activated.
With reference to the first aspect, in a possible embodiment, before the wearable device sends the first information to the electronic device, the method further includes: the wearable device responds to user operation, activates the second virtual card and deactivates the first virtual card; and the wearable device performs data interaction with the NFC card reader by adopting the second virtual card, and deactivates the second virtual card and activates the first virtual card after the data interaction is completed.
In the above embodiment, the user changes the activation state of the second virtual card to complete data interaction with the NFC card reader, so as to trigger the wearable device to send the first information to the electronic device.
With reference to the first aspect, in a possible embodiment, the creating a first fence corresponding to the second virtual card includes: the electronic equipment acquires a first signal; wherein the first signal comprises at least two of: wireless fidelity Wi-Fi signals, Bluetooth signals, frequency modulation FM signals, base station signals, and global positioning system GPS signals; and the electronic equipment creates the first fence according to the fence characteristic corresponding to the first signal.
In the above embodiments, geofences are constructed from multiple dimensions, improving the accuracy of geofence characterization of an actual scene. Therefore, the electronic device can learn the mapping relation between the second virtual card and the accurate first fence so as to identify the use scene of the second virtual card.
With reference to the first aspect, in a possible embodiment, before the electronic device sends the second information to the wearable device, the method further includes: the electronic equipment acquires positioning information; wherein the positioning information comprises one or a combination of the Wi-Fi signal, the Bluetooth signal, the FM signal, the base station signal and the GPS positioning information; the electronic device comparing the positioning information to fence features of the first fence; determining that the wearable device enters the first fence when the positioning information matches the fence feature.
In the above embodiments, the electronic device can more accurately identify whether the wearable device enters the first fence, and also more accurately decide whether to activate the second virtual card.
With reference to the first aspect, in a possible embodiment, the creating, by the electronic device, a first fence corresponding to the second virtual card according to the first information includes: the electronic equipment acquires a first signal; wherein the first signal comprises at least two of: wireless fidelity Wi-Fi signals, Bluetooth signals, frequency modulation FM signals, base station signals, and GPS signals; the electronic equipment inquires whether a matched first fence exists according to the fence features corresponding to the first signal; under the condition that no matched first fence exists, creating the first fence, and recording the corresponding relation between the first fence and the first identifier; in the case that there is a matching first fence, the electronic device records a correspondence between the first fence and the first identifier.
In the embodiment, the fence corresponding to the virtual card is ensured not to be leaked, meanwhile, the invalid first fence can be avoided from being created, the storage space of the electronic equipment is saved, and the operation efficiency is improved.
With reference to the first aspect, in a possible embodiment, the activating, by the wearable device, the second virtual card and deactivating the first virtual card according to the second information includes: the wearable device caches the second information; activating the second virtual card and deactivating the first virtual card according to the second information when the motion state of the wearable device changes; the method further comprises the following steps: and when the wearable device approaches an NFC card reader, the wearable device performs data interaction with the NFC card reader by adopting the second virtual card.
In the embodiment, the activation state of the virtual card is changed after the fact that the user has an actual card swiping motivation is determined, so that energy is saved, invalid virtual card activation state switching is avoided, and virtual card switching efficiency is improved.
With reference to the first aspect, in a possible embodiment, the first identifier is an AID of the second virtual card; or the first identity is an identity assigned by the wearable device to the second virtual card.
For example, the wearable device may assign an identification to a second virtual card that does not support AID. In this way, when the second virtual card supports the AID, the first identifier transmitted to the electronic device is the AID of the second virtual card. When the second virtual card does not support AID, the first identification sent to the electronic device is the identification allocated by the wearable device. In this manner, it is ensured that all virtual cards are able to create corresponding fences through the matching electronic devices.
Further exemplarily, the wearable device may further assign identifiers to all configured virtual cards, and thus, the first identifiers of all the second virtual cards are assigned identifiers.
With reference to the first aspect, in a possible embodiment, the method further includes: when the wearable device leaves the first fence, the electronic device sends third information to the wearable device; wherein the third information comprises the first identifier; the wearable device deactivates the second virtual card according to the third information.
With reference to the first aspect, in a possible embodiment, an inactive third virtual card is further included in the wearable device, where the third virtual card does not have the first identifier, and the method further includes: the wearable device responds to user operation, activates the third virtual card and deactivates the first virtual card; the wearable device performs data interaction with an NFC card reader by adopting the third virtual card; after the data interaction is completed, the wearable device sends fourth information to the electronic device; the electronic device creating a second fence; if the wearable device enters the second fence, the electronic device sends fifth information to the wearable device; the wearable device activates the third virtual card in response to the fifth information.
In the embodiment, the electronic device solves the technical obstacle of creating the corresponding fence for the virtual card which is not configured with the identifier and does not support AID, and improves the application range of virtual card switching.
With reference to the first aspect, in a possible embodiment, when the wearable device includes a plurality of the third virtual cards, the method may further include: after the wearable device receives the fifth information, the wearable device displays a plurality of third virtual cards; the wearable device activates the selected third virtual card in response to user operation of the third virtual card.
In the embodiment, the activation state switching accuracy of the third virtual card is ensured, the human-computer interaction efficiency is improved, and the use experience of a user is enhanced.
With reference to the first aspect, in one possible embodiment, the electronic device includes a first application for managing a plurality of virtual cards in the wearable device; the method further comprises the following steps: the electronic equipment displays a first interface; the first interface comprises a fourth virtual card, and the wearable device is not configured with the fourth virtual card; the electronic device configures the fourth virtual card for the wearable device in response to an operation of a user in the first interface; in the process of configuring a fourth virtual card for the wearable device, the electronic device obtains position information; and the electronic equipment creates a third fence corresponding to the fourth virtual card according to the position information.
With reference to the first aspect, in one possible embodiment, the method further includes: when the wearable device approaches an NFC card reader, the wearable device receives second indication information broadcast by the NFC card reader; the wearable device searches a fifth virtual card corresponding to the second indication information according to the second indication information; and when the wearable device finds the fifth virtual card, activating the fifth virtual card.
In the above embodiment, the wearable device also has the capability of autonomously switching the activation state of the virtual card according to the card swiping requirement.
With reference to the first aspect, in a possible embodiment, when the wearable device does not find the fifth virtual card, the method further includes: the wearable device sends sixth information to the electronic device; the sixth information is used for instructing the electronic device to configure the fifth virtual card for the wearable device; the electronic equipment displays a first interface; the first interface comprises the fifth virtual card; the electronic device configures the fifth virtual card for the wearable device in response to a user operation on the fifth virtual card; the electronic equipment acquires a second signal; wherein the second signal comprises at least two of: wireless fidelity Wi-Fi signals, Bluetooth signals, frequency modulation FM signals, base station signals, and GPS signals; the electronic equipment creates a fourth fence according to the fence characteristic corresponding to the second signal; if the wearable device enters the fourth fence, the electronic device sends seventh information to the wearable device; wherein the seventh information comprises a second identification of the fifth virtual card; and the wearable equipment activates the fifth virtual card and deactivates the first virtual card according to the seventh information.
In the above embodiment, the user is prompted by the electronic device to configure the virtual card suitable for the current scene for the wearable device, so that the problem of card swiping between the wearable device and the unknown NFC card reader can be solved.
In a second aspect, a virtual card switching method provided in an embodiment of the present application is applied to an electronic device, where short-range wireless communication is adopted between the electronic device and a wearable device, the wearable device has a Near Field Communication (NFC) function, and the wearable device includes an activated first virtual card and an inactivated second virtual card, and the method includes: the electronic equipment receives first information sent by the wearable equipment; the first information comprises a first identifier corresponding to the second virtual card; the electronic equipment creates a first fence corresponding to the second virtual card according to the first information; the electronic device sending second information to the wearable device if the wearable device enters the first fence; wherein the second information comprises the first identifier; the second information is used for instructing the wearable device to activate the second virtual card and deactivate the first virtual card.
With reference to the second aspect, in a possible embodiment, the creating a first fence corresponding to the second virtual card includes:
the electronic equipment acquires a first signal; wherein the first signal comprises at least two of: wireless fidelity Wi-Fi signals, Bluetooth signals, frequency modulation FM signals, base station signals, and global positioning system GPS signals;
and the electronic equipment creates the first fence according to the fence characteristic corresponding to the first signal.
With reference to the second aspect, in a possible embodiment, before the electronic device sends the second information to the wearable device, the method further includes:
the electronic equipment acquires positioning information; wherein the positioning information comprises one or a combination of the Wi-Fi signal, the Bluetooth signal, the FM signal, the base station signal and the GPS positioning information;
the electronic device comparing the positioning information to fence features of the first fence;
determining that the wearable device enters the first fence when the positioning information matches the fence feature.
With reference to the second aspect, in a possible embodiment, the creating, by the electronic device according to the first information, a first fence corresponding to the second virtual card includes:
the electronic equipment acquires a first signal; wherein the first signal comprises at least two of: wireless fidelity Wi-Fi signals, Bluetooth signals, frequency modulation FM signals, base station signals, and GPS signals;
the electronic equipment inquires whether a matched first fence exists according to the fence features corresponding to the first signal;
under the condition that no matched first fence exists, creating the first fence, and recording the corresponding relation between the first fence and the first identifier;
in the case that there is a matching first fence, the electronic device records a correspondence between the first fence and the first identifier.
In combination with the second aspect, in one possible embodiment, the method further includes:
when the wearable device leaves the first fence, the electronic device sends third information to the wearable device; wherein the third information includes the first identifier for indicating deactivation of the second virtual card.
With reference to the second aspect, in a possible embodiment, an inactive third virtual card is further included in the wearable device, and the third virtual card does not have the first identifier, and the method further includes:
the electronic equipment receives fourth information sent by the wearable equipment; the fourth information does not include the first identification;
the electronic device creating a second fence;
in a case where the wearable device enters the second fence, the electronic device sends fifth information to the wearable device, instructing the wearable device to activate the third virtual card.
With reference to the second aspect, in one possible embodiment, the electronic device includes a first application for managing a plurality of virtual cards in the wearable device; the method further comprises the following steps:
the electronic equipment displays a first interface; the first interface comprises a fourth virtual card, and the wearable device is not configured with the fourth virtual card;
the electronic device configures the fourth virtual card for the wearable device in response to an operation of a user in the first interface;
in the process of configuring a fourth virtual card for the wearable device, the electronic device obtains position information;
and the electronic equipment creates a third fence corresponding to the fourth virtual card according to the position information.
In combination with the second aspect, in one possible embodiment, the method further includes:
the electronic equipment receives sixth information sent by the wearable equipment; the electronic equipment displays a first interface; the first interface comprises a fifth virtual card; the fifth virtual card is a virtual card which is not configured in the wearable equipment;
the electronic equipment responds to the operation of a user for the fifth virtual card, and configures the fifth virtual card for the wearable equipment;
the electronic equipment acquires a second signal; wherein the second signal comprises at least two of: Wi-Fi signals, Bluetooth signals, frequency modulation FM signals, base station signals, and GPS signals;
the electronic equipment creates a fourth fence according to the fence features corresponding to the second signal;
if the wearable device enters the fourth fence, the electronic device sends seventh information to the wearable device; wherein the seventh information includes a second identifier of the fifth virtual card, and is used to instruct the wearable device to activate the fifth virtual card and deactivate the first virtual card.
In a third aspect, an embodiment of the present application provides a virtual card switching method, which is applied to a wearable device, where short-range wireless communication is adopted between the wearable device and an electronic device, the wearable device has a Near Field Communication (NFC) function, and the wearable device includes an activated first virtual card and an inactivated second virtual card, and the method includes:
the wearable device sends first information to the electronic device when the wearable device meets a first condition; the first information comprises a first identifier corresponding to the second virtual card; the way to satisfy the first condition includes: finishing data interaction with an NFC card reader, or receiving first indication information sent by the NFC card reader; the first indication information comprises the first identification; receiving second information sent by the electronic device when the wearable device enters the first fence; wherein the second information comprises the first identifier;
the wearable device activates the second virtual card and deactivates the first virtual card according to the second information.
With reference to the third aspect, in a possible embodiment, before the wearable device sends the first information to the electronic device, the method further includes:
the wearable device responds to user operation, activates the second virtual card and deactivates the first virtual card;
and the wearable device performs data interaction with the NFC card reader by adopting the second virtual card, and deactivates the second virtual card and activates the first virtual card after the data interaction is completed.
With reference to the third aspect, in a possible embodiment, the activating, by the wearable device, the second virtual card and deactivating the first virtual card according to the second information includes:
the wearable device caches the second information;
activating the second virtual card and deactivating the first virtual card according to the second information when the motion state of the wearable device changes; the method further comprises the following steps:
and when the wearable device approaches an NFC card reader, the wearable device performs data interaction with the NFC card reader by adopting the second virtual card.
With reference to the third aspect, in a possible embodiment, the first identifier is an AID of the second virtual card; or the first identity is an identity assigned by the wearable device to the second virtual card.
With reference to the third aspect, in one possible embodiment, the method further includes:
receiving third information sent by the electronic device when the wearable device leaves the first fence; wherein the third information comprises the first identifier;
the wearable device deactivates the second virtual card according to the third information.
With reference to the third aspect, in a possible embodiment, an inactive third virtual card is further included in the wearable device, and the third virtual card does not have the first identifier, and the method further includes:
the wearable device responds to user operation, activates the third virtual card and deactivates the first virtual card;
the wearable device performs data interaction with an NFC card reader by adopting the third virtual card;
after the data interaction is completed, the wearable device sends fourth information to the electronic device, wherein the fourth information is used for instructing the electronic device to create a second fence;
receiving fifth information sent by the electronic device when the wearable device enters the second fence;
the wearable device activates the third virtual card in response to the fifth information.
With reference to the third aspect, in a possible embodiment, when the wearable device includes a plurality of the third virtual cards, the method may further include:
after the wearable device receives the fifth information, the wearable device displays a plurality of third virtual cards;
the wearable device activates the selected third virtual card in response to user operation of the third virtual card.
With reference to the third aspect, in one possible embodiment, the method further includes:
when the wearable device approaches an NFC card reader, the wearable device receives second indication information broadcast by the NFC card reader;
the wearable device searches a fifth virtual card corresponding to the second indication information according to the second indication information;
and when the wearable device finds the fifth virtual card, activating the fifth virtual card.
With reference to the third aspect, in a possible embodiment, when the wearable device does not find the fifth virtual card, the method further includes:
the wearable device sends sixth information to the electronic device; the sixth information is used for instructing the electronic device to configure the fifth virtual card for the wearable device;
receiving seventh information sent by the electronic device when the wearable device enters a fourth fence corresponding to the fifth virtual card; wherein the seventh information comprises a second identification of the fifth virtual card;
and the wearable equipment activates the fifth virtual card and deactivates the first virtual card according to the seventh information.
In a fourth aspect, embodiments of the present application provide an electronic device, which includes one or more processors, a memory, and a wireless communication module; the memory, the wireless communication module, and the processor are coupled, the memory for storing computer program code comprising computer instructions, which, when executed by the one or more processors, are for performing the method of the second aspect and any possible embodiment thereof.
In a fifth aspect, embodiments of the present application provide a wearable device, which includes one or more processors, a memory, and a wireless communication module; the memory, the wireless communication module and the processor are coupled, the memory is configured to store computer program code comprising computer instructions, which, when executed by the one or more processors, are configured to perform the method of the third aspect and any possible embodiment thereof.
In a sixth aspect, embodiments of the present application provide a computer storage medium, which includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the method described in the second aspect and any possible embodiment thereof; the computer instructions, when executed on a wearable device, cause the electronic device to perform the method of the third aspect and any possible embodiment thereof.
In a seventh aspect, embodiments of the present application provide a computer program product, which when run on a computer, causes the computer to execute the method according to the second aspect and any possible design thereof; or cause the computer to perform a method as described in the third aspect and any one of its possible designs.
It is to be understood that the method according to the second aspect and any one of the possible design manners of the second aspect, the method according to the third aspect and any one of the possible design manners of the third aspect, the electronic device according to the fourth aspect, the wearable device according to the fifth aspect, the computer storage medium according to the sixth aspect, and the computer program product according to the seventh aspect are all configured to perform the corresponding methods provided above, and therefore, the beneficial effects achieved by the method may refer to the beneficial effects in the corresponding methods provided above, and are not described herein again.
Drawings
Fig. 1 is a schematic diagram of NFC card swiping of a mobile phone in the related art;
FIG. 2 is an exemplary diagram of a default card for manually switching bracelets in an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a wearable device provided in an embodiment of the present application;
FIG. 5 is an exemplary diagram of determining a geographic area indicated by a created fence provided by an embodiment of the present application;
fig. 6 is a signaling interaction diagram of a virtual card switching method according to an embodiment of the present application;
fig. 7 is an exemplary diagram for determining correspondence 1 according to an embodiment of the present application;
fig. 8 is an exemplary diagram of configuring a virtual card for a bracelet according to an embodiment of the present application;
fig. 9 is a second signaling interaction diagram of a virtual card switching method according to an embodiment of the present application;
fig. 10 is a third signaling interaction diagram of a virtual card switching method according to an embodiment of the present application;
FIG. 11 is an exemplary diagram of a sensing hub provided by an embodiment of the present application;
fig. 12 is one of exemplary diagrams of an application scenario provided in an embodiment of the present application;
fig. 13 is a second exemplary diagram of an application scenario provided in the embodiment of the present application;
fig. 14 is a third exemplary view of an application scenario provided in the embodiment of the present application;
FIG. 15 is a fourth example diagram of an application scenario provided by an embodiment of the present application;
fig. 16 is a fifth diagram of an application scenario example provided by the embodiment of the present application;
fig. 17 is an exemplary diagram of a chip system provided in an embodiment of the present application.
Detailed Description
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood 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 embodiment, the meaning of "a plurality" is two or more unless otherwise specified.
Embodiments of the present embodiment will be described in detail below with reference to the accompanying drawings.
Terminal devices supporting the NFC function can exchange data when they are close to each other. Therefore, various NFC functions such as card swiping, data transfer and the like are achieved. The virtual card switching method provided by the embodiment of the application is applied to the process that the terminal device uses the NFC technology to swipe the card.
In general, an NFC-enabled terminal device may include an application program (e.g., referred to as an NFC application) for implementing near field communication, wherein the NFC application has an emulation function of emulating a contactless IC card. Illustratively, the NFC application may include a card package application, a transit application, a bank-like application, an access control 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 Application Identifier (AID). A mapping relationship between the virtual card of the NFC application and the AID may be stored in a Secure Element (SE). The security unit can be stored in a memory of the mobile phone, can be an independent chip, can be stored in an SIM card of the mobile phone, and can be stored in the cloud. As an example, table 1 below:
TABLE 1
Figure BDA0003115408110000081
As can be seen from table 1, in the terminal device, the card package application may include a plurality of virtual cards of different types, and the activation status of one of the virtual cards is activated. In some embodiments, some virtual cards are not AID identification enabled, such as Mifare series cards.
When the terminal device receives the NFC field intensity information (i.e., approaches an NFC card reader), the terminal device defaults to perform data interaction with the approaching NFC card reader by the activated virtual card.
However, the virtual card that is in the activated state is often a default card that is pre-configured. This means that when the NFC reader is matched with the default card, the interaction between the NFC reader and the bracelet can be successful. However, when the NFC card reader does not match the default card, an interaction failure occurs.
For example, as shown in fig. 1 (a), the default card in the card package application of the mobile phone (terminal device) is the home key, that is, the virtual card that is activated in the SE of the mobile phone is the home key. When the cell phone is close to the bus card reader in shanghai, the cell phone may receive indication 1 including the AID value (i.e., AID 1). And then, the mobile phone can interact with the bus card reader by utilizing a default card. If the user starts the card package application of the mobile phone at this time, a card swiping interface 101 shown in (b) in fig. 1 may be displayed for prompting the user to attempt data interaction with the NFC card reader by using the default card. Of course, it is also possible that the mobile phone is turned on in response to the indication information 1, and pops up the card package to be applied to the interface foreground, for example, a card swiping interface 101 as shown in (b) in fig. 1 is displayed for prompting the user that data interaction with the NFC card reader is being attempted with the default card. While the card swiping interface 101 is displayed, the handset may compare the AID value in indication information 1 (i.e., AID1) with the AID value of the default card (i.e., AID 3). Because the two are different, the mobile phone displays the card swiping interface 102 as shown in (c) of fig. 1, and prompts a prompt message of "card swiping failure, card activation switching". Then, if the mobile phone receives the operation of the Shanghai public transportation card by the user, the mobile phone can activate the Shanghai public transportation card in the SE and deactivate the home key in the SE according to the received operation. Therefore, when the mobile phone approaches the Shanghai bus card reader again, the operations such as money deduction and the like can be executed, and the Shanghai bus card reader is informed to finish card reading. After the card swipe is completed, the Shanghai public transportation card may also be deactivated and the default card (i.e., home key) reactivated.
The above process not only needs the user to select the card by himself, but also needs the user to repeat the card swiping action at least twice. The human-computer interaction efficiency is low.
In addition, in recent years, NFC is gradually applied to miniaturized terminal devices, for example, wearable devices, so that a user can swipe a card more conveniently, and meanwhile, the defect that some users' mobile phones do not support NFC is also improved. However, wearable devices are less operable than cell phones. Thus, for wearable devices, swiping a card may be more inconvenient in the face of a mismatch between the default card and the NFC reader.
For example, a bracelet supporting NFC. The bracelet is small, and the display screen is also little. The above hardware environment has limited the human-computer interaction efficiency of bracelets. Therefore, most of the management and function configuration of the wristband are performed by other devices (e.g., mobile phones) in a pairing manner. Illustratively, the paired other devices may have a bracelet application or a wearing application installed thereon, and may also become the first application. The user can manage the bracelet through a bracelet application or a wearing application in the mobile phone, for example, a default card in the bracelet is configured. For another example, the activation state switching of the virtual card in the bracelet is completed.
For example, after the bracelet is paired with the mobile phone, the bracelet application is started in the mobile phone, and as shown in fig. 2 (a), a management interface 201 of the bracelet may be displayed. The management interface 201 includes a card packet function entry, such as a control 202. In the case where the cell phone receives the operation of the control 202 by the user, the card package interface 203 is displayed as (b) in fig. 2. The card package interface 203 includes a plurality of virtual cards configured in a bracelet, such as a shanghai public transportation card, a Shenzhen tong, a home key, and a cell access control card. The handset may determine a default card from the plurality of virtual cards in response to a user operating the virtual card in the card-to-package interface 203. Illustratively, in case the user sets the shanghai public transportation card as a default card, the handset instructs the bracelet to configure the activation state of the virtual card "shanghai public transportation card" as activated.
Thus, when the bracelet receives NFC field intensity information (namely, is close to an NFC card reader), the bracelet defaults to adopt a virtual card 'Shanghai public transport card' to perform data interaction with the close NFC card reader. However, when the NFC card reader where the bracelet is close to is not matched with the virtual card "shanghai public transportation card", a situation that the bracelet fails to swipe the card occurs. For example, when the NFC card reader that the bracelet is close to is the smart door lock, the shanghai public transport card in the bracelet can not accomplish data interaction with the smart door lock, and then leads to the card swiping failure.
In case of failure of card swiping, the user can reselect the virtual card required to be activated for card swiping in the card swiping interface 204 shown in (c) of fig. 2 by using the mobile phone. If the user selects the home key in the card swiping interface 204, the mobile phone sends the indication information 2 for indicating the activation of the virtual card "home key" to the bracelet. The bracelet responds to the indication information 2, deactivates the virtual card 'Shanghai public transport card' and activates the virtual card 'home key'. So, next time the bracelet is close to the NFC card reader, can adopt virtual card "home key" to carry out data interaction with the NFC card reader that is close to. And after the data interaction between the virtual card 'home key' and the NFC card reader is successful, the virtual card 'home key' is deactivated, and the default card, namely the virtual card 'Shanghai public transport card', is reactivated.
Therefore, for the bracelet supporting the NFC, in the case of the default card not matched with the NFC card reader, the card swiping operation needs to be performed for many times, the time consumption is longer, the card activation switching is more complicated, and the human-computer interaction efficiency is lower.
In order to solve the above problem, an embodiment of the present application provides a virtual card activation method. The method identifies the actual scene where the user is located. And determining a virtual card matched with the actual scene according to the recognition result, and activating the matched virtual card. The activation state of the virtual card is flexibly switched according to the scene, so that the occurrence of interaction failure of the virtual card and a near NFC card reader is reduced, repeated card swiping and manual card switching are avoided, the man-machine interaction efficiency is improved, and the user experience is enhanced.
In some embodiments, the above method may be applied to a system of wearable devices and electronic devices, such as a system called a wearable communication system. Communication can be performed between the wearable device and the electronic device, such as bluetooth communication, wireless communication, cellular communication, and the like.
As an example. The electronic device may be a mobile phone, a television, a tablet computer, a desktop, a laptop, a handheld computer, a notebook computer, a Personal Computer (PC), a netbook, a cellular phone, a Personal Digital Assistant (PDA), or other terminal devices. The embodiment of the present application does not particularly limit the specific form of the electronic device. There is no particular limitation on whether the electronic device supports the NFC technology.
As shown in fig. 3, in the embodiment of the present application, an electronic device (such as a mobile phone) is taken as an example, and a structure of the electronic device provided in the embodiment of the present application is illustrated. An electronic device (e.g., a cell phone) may include: the mobile communication device includes a processor 210, an external memory interface 220, an internal memory 221, a Universal Serial Bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display 294, and a Subscriber Identity Module (SIM) card interface 295.
The sensor module 280 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, 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 210 may include one or more processing units, such as: the processor 210 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. Wherein, the different processing units may be independent devices or may be integrated in one or more processors.
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 processor 210 for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 210. If the processor 210 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 210, thereby increasing the efficiency of the system.
In some embodiments, processor 210 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.
It should be understood that the connection relationship between the modules illustrated in this embodiment is only an exemplary illustration, and does not limit the structure of the electronic device. In other embodiments, the electronic device may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charge management module 240 is configured to receive a charging input from a charger. The charger may be a wireless charger or a wired charger. The charging management module 240 may also supply power to the electronic device through the power management module 241 while charging the battery 242.
The power management module 241 is used to connect the battery 242, the charging management module 240 and the processor 210. The power management module 241 receives input from the battery 242 and/or the charging management module 240, and provides power to the processor 210, the internal memory 221, the external memory, the display 294, the camera 293, and the wireless communication module 260. In some embodiments, the power management module 241 and the charging management module 240 may also be disposed in the same device.
The wireless communication function of the electronic device may be implemented by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modem processor, the baseband processor, and the like. In some embodiments, antenna 1 of the electronic device is coupled with the mobile communication module 250 and antenna 2 is coupled with the wireless communication module 260, such that the electronic device can communicate with a network and other devices, such as a wearable device, through wireless communication techniques.
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 250 may provide a solution including 2G/3G/4G/5G wireless communication applied on the electronic device. The mobile communication module 250 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 250 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation.
The mobile communication module 250 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 250 may be disposed in the processor 210. In some embodiments, at least some of the functional modules of the mobile communication module 250 may be disposed in the same device as at least some of the modules of the processor 210.
The wireless communication module 260 may provide a solution for wireless communication applied to an electronic device, including WLAN (e.g., wireless fidelity, Wi-Fi) network, Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like.
The GNSS may include a beidou satellite navigation system (BDS), a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The wireless communication module 260 may be one or more devices integrating at least one communication processing module. The wireless communication module 260 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 210. The wireless communication module 260 may also receive a signal to be transmitted from the processor 210, frequency-modulate and amplify the signal, and convert the signal into electromagnetic waves via the antenna 2 to radiate the electromagnetic waves.
The electronic device implements display functions via the GPU, the display screen 294, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 294 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 210 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 294 is used to display images, video, and the like. The display screen 294 includes a display panel.
The electronic device may implement the shooting function through the ISP, the camera 293, the video codec, the GPU, the display screen 294, and the application processor. The ISP is used to process the data fed back by the camera 293. The camera 293 is used to capture still images or video. In some embodiments, the electronic device may include 1 or N cameras 293, N being a positive integer greater than 1.
The external memory interface 220 may be used to connect an external memory card, such as a Micro SD card, to extend the storage capability of the electronic device. The external memory card communicates with the processor 210 through the external memory interface 220 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
Internal memory 221 may be used to store computer-executable program code, including instructions. The processor 210 executes various functional applications of the electronic device and data processing by executing instructions stored in the internal memory 221. For example, in the present embodiment, the processor 210 may execute instructions stored in the internal memory 221, and the internal memory 221 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) created in the using process of the electronic device. In addition, the internal memory 221 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.
It is to be understood that the illustrated structure of the embodiments of the present application does not constitute a specific limitation to electronic devices. In other embodiments of the present application, 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 may be used. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Also illustratively, the wearable device may be an NFC enabled portable terminal device, such as an NFC enabled bracelet, watch, smart glasses, and the like.
As shown in fig. 4, the wearable device (e.g., bracelet) may include a wireless communication module 310, a processor 330, an internal memory 340, a power management module 350, a battery 360, a charge management module 370, an antenna 3, and the like.
In some embodiments, the wireless communication module 310 may include an NFC chip, which may include a Device Host (DH) and an NFC controller (NFCC). The DH may be responsible for management of the NFCC, such as initialization, configuration, and power management. The NFCC may be responsible for physical transmission of data through the antennas. In addition, the NFC chip can be used for carrying out amplification, analog-to-digital conversion, digital-to-analog conversion, storage and other processing on signals.
The wireless communication function of the wearable device may be implemented by the antenna 3, the wireless communication module 310, and the like.
Further, processor 330 may include one or more processing units. For example: the processor 330 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc.
In some embodiments, processor 330 may include one or more interfaces. The interfaces may include an I2C interface, an I2S interface, a PCM interface, a UART interface, a MIPI, a GPIO interface, a SIM card interface, and/or a USB interface, among others.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only an exemplary illustration, and does not form a structural limitation on the wearable device. In other embodiments of the present application, the wearable device may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
Internal memory 340 may be used to store one or more computer programs comprising instructions.
Motion sensors (e.g., acceleration sensors, gyroscopes, etc.) and the like may also be provided on the wearable device. When wearable equipment is bracelet or wrist-watch, based on above-mentioned motion sensor, bracelet or wrist-watch can carry out the action of punching the card and detect.
It is to be understood that the illustrated structure of the embodiments of the present application does not constitute a specific limitation to the wearable device. In other embodiments of the present application, the wearable device may include more or fewer components than illustrated, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The methods in the following embodiments may be implemented in a device having the above hardware structure. The method provided by the embodiment of the application is described below by taking the electronic device as a mobile phone, the wearable device as a bracelet, and the mobile phone and the bracelet are paired.
In the embodiment of the application, the mobile phone needs to learn the corresponding relationship between the actual scene and the virtual card configured in the bracelet.
The premise of learning of the mobile phone is to realize identification of an actual scene. Illustratively, the cell phone may indicate different actual scenes by creating different fences. For example, the cell phone may create fence 1 to indicate the actual scene "bus stop" and create fence 2 to indicate the actual scene "home". For another example, the mobile phone can create a fence 3 indicating the "bus station at shanghai" in the actual scene, and create a fence 4 indicating the "bus station at shenzhen".
It is understood that a fence is a geographical concept and may refer to a bounded geographical area. The geographical area indicated by the fence may include a location area where the actual scene is located. Generally, the closer the geographic area indicated by the fence is to the location area of the actual scene, the more accurate the indication of the actual scene. Therefore, the mobile phone can distinguish different actual scenes more accurately.
In a cell phone, the created fence can be described using fence features. The fence features described above may be conditions to be met for the geographic area to which the fence refers, or each type of fence feature may be said to indicate a type of geofence. The fence feature may include: one or a combination of wireless-fidelity (Wi-Fi) features, bluetooth features, cell features, GPS features, and the like.
When the fence features include Wi-Fi features, indicating conditions met by various location points in the geographic area of the fence includes: Wi-Fi signals having the Wi-Fi characteristics described above may be scanned. That is, the Wi-Fi feature may be used to indicate a geographic area covered by the Wi-Fi signal, and a geo-fence corresponding to the geographic area may be referred to as a Wi-Fi fence.
Illustratively, the Wi-Fi feature may include a MAC field, a Received Signal Strength Indication (RSSI), a boot time (boot), a center Frequency (Frequency), and the like.
The MAC field may uniquely indicate a wireless access point, such as a Basic Service Set ID (BSSID). The RSSI may be the strength of the WiFi signal. The bootime may be the boot time of the wireless access point. The Frequency may be a center Frequency of the wireless access point. Further, the above-mentioned wireless access point refers to a device that emits Wi-Fi signals.
In the embodiment of the application, each of the MAC field, RSSI, boot, and frequency may be used as a Wi-Fi feature alone, or may be used as a Wi-Fi feature after being combined. For example, Wi-Fi features may include a combination of MAC fields and RSSI. As another example, Wi-Fi features can include a combination of MAC fields and Frequency. The specific combination is not particularly limited.
When the fence feature comprises a bluetooth feature, indicating that the respective location points in the geographic area of the fence meet the conditions comprises: bluetooth signals having the bluetooth characteristics described above may be scanned. That is, the bluetooth feature may be used to indicate a geographic area covered by the bluetooth signal, and a geo-fence corresponding to the geographic area may also be referred to as a bluetooth fence. Illustratively, the bluetooth feature may be a bluetooth name, a bluetooth address, or the like.
When the fence features include cell features, indicating conditions met by various location points in the geographic area of the fence includes: base station signals having the above-described cell characteristics may be scanned. That is, the cell characteristics can be used to indicate a geographic area covered by the base station signal, and a corresponding geographic fence of the geographic area can be referred to as a cell fence.
Illustratively, the cell characteristic may be an identification of a cell in which the device is camped. In some embodiments, the cell characteristics may include a main area parameter, such as bootime, i.e., a power on time of the cell, a Mobile Country Code (MCC), a mobile operator code (MNC), a Location Area Code (LAC), a cell ID, an RSSI of the cell, a network type (RAT) of the cell, a channel number (ChannelNumber) of the cell, and the like.
In another embodiment, the cell characteristics may further include neighbor cell parameters. Such as the ChannelNumber of the neighboring cell, the physical id (physical identity) of the neighboring cell, and the RSSI of the neighboring cell.
Where the fence features include GPS features, indicating conditions met by various location points in the geographic area of the fence includes: within the range region indicated by the GPS signature. For example, GPS features may include: latitude information, longitude information, Adaptive Cruise Control (ACC) information, speed, direction angle, and the like. The speed and direction angle are optional items in the above GPS feature, that is, whether the speed and direction angle are included in the GPS feature is not specifically limited.
Illustratively, the geofences that the GPS feature may indicate are: a spatial region covering the first area is centered on position point 1(a point indicated by latitude information, longitude information, and ACC information).
Further, in some embodiments, the fence features described above may also include Augmented Reality (AR) features and the like. It will be appreciated that the AR features described above may be image features indicative of the actual scene. When the fence features include AR features, the conditions met by the respective location points in the geographic area indicated by the fence include: an image with AR features may be acquired. That is, the AR feature described above may be used to indicate a geographic area where the AR feature may be collected, and the geofence to which the geographic area corresponds may also be referred to as an AR fence.
In other embodiments, the fence feature can further comprise an FM frequency modulation feature. When the fence feature comprises an FM frequency modulation feature, indicating that the respective location points in the geographic area of the fence meet the conditions comprises: a frequency modulated signal containing FM frequency modulation characteristics may be received. That is, the FM feature may be used to indicate a geographic area covered by the FM signal, and a corresponding geographic fence of the geographic area may be referred to as an FM fence.
In some embodiments, the mobile phone can determine fence features corresponding to the fences according to the information collected in the actual scene. If the Wi-Fi signals are collected in an actual scene, the corresponding fence features comprise Wi-Fi features. If a bluetooth signal is collected in an actual scene, the corresponding fence includes bluetooth features. For another example, if a base station signal is acquired in an actual scene, the corresponding fence includes a cell feature. For another example, if a GPS signal is collected in an actual scene, the corresponding fence includes a GPS feature.
In some embodiments, when a fence is described by only a single fence feature, the area indicated in real space by the fence feature is the geographic area of the fence. For example, a fence described by a Wi-Fi feature can be referred to as a Wi-Fi fence, and zone 1 is the geographic area indicated by the Wi-Fi fence. When a fence is described by a bluetooth feature, the fence is called a bluetooth fence, area 2 is the geographic area indicated by the bluetooth fence, and so on.
In other embodiments, when the created fence is described by a plurality of fence features, the geofences corresponding to the plurality of fence features can be determined, and then the overlap area between the geographic areas indicated by the geofences can be determined, thereby obtaining the geographic area indicated by the fence. For example, in the case where the fence created by the mobile phone is described by the Wi-Fi feature and the bluetooth feature, as shown in fig. 5, the Wi-Fi fence corresponding to the Wi-Fi feature indicates area 1, the bluetooth fence corresponding to the bluetooth feature indicates area 2, and the overlapping portion between area 1 and area 2, that is, area 3 is the geographical area indicated by the created fence.
In addition, different types of fence features may be included between fences indicating different actual scenes, or the fence features of the same type may be included but take different values. For example, the rail corresponding to the bus station includes a bluetooth feature and a GPS feature. The fence corresponding to the home comprises Wi-Fi characteristics, cell characteristics and GPS characteristics. The fence features corresponding to the two actual scenes are different in type, and the two fences are naturally different. As another example, the fence of a bus stop in shanghai includes bluetooth features, GPS features. The rail of the bus stop of Shenzhen also includes bluetooth characteristic, GPS characteristic. Although the fence feature types corresponding to the two actual scenes are the same, the two actual scenes are different in GPS feature value and bluetooth feature value, and naturally the two fences are also different.
In summary, the mobile phone can describe different fences created by using the fence features determined in the actual scene. Therefore, the actual scene is identified by the fence.
So, the cell-phone learns the corresponding relation between the virtual card of actual scene and configuration in the bracelet, that is to say, learns the corresponding relation between the virtual card of establishing rail and configuration in the bracelet.
The learning process of the mobile phone is divided into an initial stage and an update stage.
At an initial stage, referring to fig. 6, a method provided by an embodiment of the present application may include:
s101, under the condition that the card swiping of the bracelet is successful, the bracelet sends interactive information 1 to the mobile phone.
In some embodiments, the successful swiping of the bracelet may be the completion of one data interaction between the virtual card in the bracelet and the NFC card reader. Understandably, data interaction can be carried out between the NFC card reader and the matched virtual card, and data interaction cannot be carried out between the NFC card reader and the unmatched virtual card. However, when the bracelet is close to the NFC reader, the bracelet performs data interaction with the NFC reader by using the activated virtual card (also called an activated card). That is, if the activation card matches the NFC reader, data interaction may be completed. If the activation card does not match the NFC reader, data interaction cannot be completed.
For example, the virtual cards in the bracelet are as shown in table 2:
TABLE 2
Type of virtual card AID Active state
Shanghai public transport card AID1 Has been activated
Shenzhen tong (Shenzhen Tong) AID2 Is not activated
Home key AID3 Is not activated
District entrance guard card AID4 Is not activated
Company access control card Unknow Is not activated
The activation card in the bracelet is a Shanghai public transport card, the activation card is matched with the bus card swiping machine under the condition that the bracelet is close to the bus card swiping machine in the Shanghai, the activation card in the bracelet can receive fee deduction indicating information sent by the bus card swiping machine, and the activation card carries out balance settlement in response to the fee deduction indicating information. Then, the activated card feeds back the balance settlement result to the bus card reader.
As another example, the corporate access card in table 2 is a virtual card that does not support AID, and the corporate access card does not have AID. The bracelet can assign a set identifier for the company access control card, such as the label is unknown. At this moment, the company access control card is not activated, and the bracelet is close to the company access control matched with the company access control card, then subsequent interactive process can not be carried out.
In some embodiments, when the activation card in the bracelet and the NFC card reader complete data interaction, the bracelet generates interaction information 1 according to the activation card and sends the interaction information 1 to the mobile phone. Therefore, the bracelet is informed of which virtual card is adopted by the bracelet to successfully finish data interaction with the NFC card reader in the current actual scene. Illustratively, the AID of the activation card may be included in the interactive information 1. For example, the interaction information 1 may be a command NFC1 (AID). For another example, when the virtual card that does not support AID completes the card swiping, the interaction information 1 may be a command NFC1(success) or NFC1 (unknown, success).
In addition, in an embodiment, the interaction information 1 may be transmitted based on a short-range wireless technology, for example, may be through a bluetooth technology. Can carry out the transmission of all kinds of mutual information through between bluetooth mobile phone and the bracelet.
In some embodiments, the virtual cards within the bracelet may be further divided into default cards and non-default cards. The default card is a virtual card that is activated for a long time, and is also called a first virtual card. For example, the Shanghai public transportation card in Table 2 may be the default card.
The non-default card is an inactive virtual card, and the bracelet changes the inactive virtual card to the active virtual card only when the virtual card receives a specific indication or responds to a specific operation.
The second virtual card referred to in subsequent embodiments may refer to one or more of the non-default cards. That is, the bracelet activates the second virtual card in response to a user operation, deactivates the first virtual card, and then may use the second virtual card to perform data interaction with the NFC card reader, and after the data interaction is completed, the generated interaction information 1 may also be referred to as first information. The first information comprises a first identifier corresponding to the second virtual card.
In addition, in the case that the second virtual card supports AID, the first identifier may be an AID value of the second virtual card. In a case where the second virtual card does not support AID, the first identifier may be a setting identifier. The set identifier is an identifier configured by the bracelet for a virtual card which does not support AID.
In other embodiments, the bracelet may further configure an identifier for each virtual card, and thus, the identifier configured by the bracelet for the second virtual card may be used as the corresponding first identifier.
Of course, in some embodiments, after the second virtual card interacts with the NFC card reader, the second virtual card may be deactivated, and then the first virtual card is reactivated.
In addition, a third virtual card which does not support AID and has the first identification can be further included in the non-default cards. In case the bracelet does not receive a specific indication or a specific operation, the third virtual card is also in an inactive state. That is, if the third virtual card is activated by the bracelet in response to a user operation, the third virtual card may be used for data interaction with the NFC card reader, and after the data interaction is completed, the generated interaction information 1 is also referred to as fourth information. The fourth information does not include the first identifier nor the AID.
In addition to that the card swiping is successful, the bracelet may be triggered to generate the interactive information 1, and in some possible embodiments, the bracelet may also generate the interactive information 1 according to the AID included in the indication information 1 after receiving the first indication information, that is, after receiving the indication information 1 broadcast by the NFC card reader.
And S102, the mobile phone responds to the interactive information 1 and creates a fence for the actual scene.
In some embodiments, the actual scene may be the scene where the cell phone and bracelet are located. For example, the user wears the mobile phone and the bracelet and is located at the bus stop, and then the actual scene where the mobile phone and the bracelet are located is the bus stop. Creating a fence as described above may be determining the fence characteristics 1 of the actual scene in which it is located. Exemplarily, the S102 may include:
s102-1, the mobile phone can start environment data collection.
The environment data may include radio waves in the environment, which is also called a first signal, such as a Wi-Fi signal, a bluetooth signal, a base station signal, a GPS signal, an FM frequency modulation signal, and the like. In other embodiments, the environment data may further include image information of the environment.
The Wi-Fi signal, the bluetooth signal, the GPS signal, the FM signal, and the like may be collected by a wireless communication module 260 built in the mobile phone. The base station signal may be collected by a mobile communication module 250 built in the mobile phone.
In addition, in some embodiments, the image information of the environment may be environment AR data that is queried by the mobile phone from the cloud according to the current real-time location.
In other embodiments, the image information of the environment may also be AR data created by the mobile phone according to an image collected by the camera. Illustratively, after receiving the interactive information 1, the mobile phone may display a prompt message 1 for reminding the user to take a plurality of multi-angle environment images. After the mobile phone receives the operation of shooting instructed by the user, an image acquisition interface can be displayed. The image acquisition interface comprises a mark for guiding a user to adjust the shooting angle, so that the user is guided to acquire a plurality of environment images aiming at the current scene. And then, fitting the environmental AR data according to the plurality of environmental images.
S102-2, the mobile phone can determine the fence feature 1 corresponding to the actual scene according to the collected environment data.
For example, when the environment data collected by the mobile phone includes a Wi-Fi signal, the mobile phone may extract a Wi-Fi feature to serve as the fence feature 1 corresponding to the actual scene where the mobile phone is located. Further exemplarily, in a case that the environment data collected by the mobile phone includes a bluetooth signal, the mobile phone may extract a bluetooth feature to serve as the fence feature 1 corresponding to the actual scene where the mobile phone is located. Further exemplarily, when the environment data acquired by the mobile phone includes a base station signal, the mobile phone may extract a cell feature to serve as the fence feature 1 corresponding to the actual scene. Further exemplarily, in a case that the environment data acquired by the mobile phone includes a GPS signal, the mobile phone may extract a GPS feature to serve as the fence feature 1 corresponding to the actual scene. And so on, and will not be described herein.
Therefore, the mobile phone can create a fence corresponding to the actual scene based on the determined fence feature 1.
That is, in some embodiments, after the mobile phone receives the interaction information 1 sent by the bracelet, the positioning module may be triggered to establish the fence. Illustratively, the corresponding fence can be established according to a specified type of fence characteristic. For example, the current GPS feature of the mobile phone may be recorded, and a geofence may be established with the location point 1 indicated by the GPS feature as a center point and a preset distance as a radius, e.g., 500. In some embodiments, after the mobile phone receives the interaction information 1 sent by the bracelet, the identity (i.e., cell characteristics) of the cell where the current mobile phone resides may also be recorded, and the coverage area of the cell may be used as a geo-fence. Further illustratively, the corresponding fence can be established according to the actually collected fence characteristics. For example, Wi-Fi features and bluetooth features are collected, corresponding Wi-Fi fences and bluetooth fences can be determined, respectively, and then the intersection between the two geo-fences is determined. Therefore, the fence corresponding to the scene where the mobile phone is located is obtained.
For example, the fence created for the second virtual card may also be referred to as the first fence. For another example, in response to the fourth information, the created fence may also be referred to as a second fence.
Further, after fence creation, the created may also be named.
Exemplarily, as shown in fig. 7, after the mobile phone receives the interaction information 1 sent by the bracelet and creates the corresponding fence, the mobile phone may pop up the bracelet application to the interface foreground and display the interface 701. The interface 701 includes a window for receiving user input, such as a window 702. After receiving the input operation of the user in the window 702, the mobile phone can obtain the fence name configured by the user and assign the corresponding fence. If the user input "home" is obtained, the fence is given the name of the home scene. If the user input of 'bus' is acquired, the name of the bus scene is given to the fence.
As another example, the mobile phone may assign a name to the corresponding fence according to the usage scenario of the virtual card. If the virtual card indicated by the interaction information 1 is "Shenzhen Tong", and the usage scenario of "Shenzhen Tong" is public transportation, the fence created for Shenzhen Tong is given the name of the public transportation scenario.
S103, determining and storing the corresponding relation 1 between the fence and the virtual card.
In some embodiments, the correspondence 1 may be: and (3) correspondence 1 between all fence features 1 corresponding to the fences and AIDs in the interactive information 1. Illustratively, when the interactive information 1 includes the first identifier, recording the determined correspondence 1 between the first fence and the first identifier.
Take the actual scene as the residential district as an example. When the mobile phone is located in a residential cell and receives the interactive information 1 including AID4, it is determined that the fence features 1 used for describing the corresponding fence include Wi-Fi feature 1, GPS feature 1, and cell feature 1, and then the determined correspondence 1 is as shown in table 3-1:
TABLE 3-1
Figure BDA0003115408110000171
In the table, the cell scene 1 refers to the name of the created fence, and the Wi-Fi feature 1, the GPS feature 1, and the cell feature 1 are fence features 1 of the created fence. AID4 is the AID of the virtual card "cell access card".
And then, the actual scene is an office scene, and when the mobile phone is close to an office place and receives the interactive information 1 to indicate that the virtual card which does not support AID finishes card swiping, it is determined that the fence feature 1 comprises the Bluetooth feature 1. The determined correspondence 1, as shown in table 3-2:
TABLE 3-2
Figure BDA0003115408110000172
The office scene in the table refers to the name of the created fence, and the Wi-Fi feature 3 and the GPS feature 4 are the fence features 1 of the created fence. Because the virtual card that finishes swiping the card does not support the AID, and the received interactive information 1 does not contain the AID, the virtual card is designated by the identifier unrknow in the created correspondence 1.
In addition, in order to solve the problem that multiple virtual cards which do not support AID exist in the bracelet, the bracelet may be configured with different setting identifiers for the virtual cards which do not support AID, for example, identifiers such as un 1, un 2, un 3, and the like. The setting identifier is a unique identifier configured by the bracelet for a virtual card which does not support AID. After the bracelet uses a virtual card which does not support AID to complete card swiping, the generated interaction information 1 may include a setting identifier. Therefore, after the mobile phone receives the interactive information 1, the corresponding relation 1 can be created according to the set identification and the collected fence characteristics 1.
It is understood that table 3 above is only one existing form of the corresponding relation 1, and in other embodiments, the mapping relation between the fence and the virtual card may be characterized in other forms, for example, the fence includes only fence features and does not include a fence name. In the following embodiments, the correspondence relationship 1 mentioned above is the same.
In addition, when a virtual card is newly configured in the bracelet and the card swiping of the virtual card is not successful, a temporary corresponding relation 2 can be determined for the virtual card.
In some embodiments, the method may further include:
s201, the mobile phone responds to the virtual card configuration operation of the user and indicates the bracelet to configure a new virtual card.
Illustratively, as shown in fig. 8 (a), the card package interface 203 of the mobile phone includes: controls for indicating that a virtual card is configured for a bracelet, such as control 801. The controls 801 described above provide access to configure all types of virtual cards. When the mobile phone responds to the operation of the user on the control 801, such as a click operation, an interface 803 as shown in (b) of fig. 8 is displayed. The interface 803 includes configuration items for configuring different types of virtual cards, for example, a configuration item 8031 for configuring a bank card, a configuration item 8032 for configuring a transportation card, a configuration item 8033 for configuring an access card, a configuration item 8034 for configuring a key, a configuration item 8035 for configuring a certificate, a configuration item 8036 for configuring a membership card, and the like. When the mobile phone receives an operation, such as a click operation, of the configuration item 8032 by the user, an interface 804 shown in (c) in fig. 8 is displayed. The interface 804 includes a configurable traffic card, such as Tianfu communication. After the mobile phone receives an operation of the user on the Tianfu card in the interface 804, such as a click operation, the mobile phone sends instruction information 3 to the bracelet, so as to instruct the bracelet to configure the virtual card "Tianfu card". Thus, a virtual card "Tianfu Tong" is added in the bracelet.
It is understood that, in the embodiment of the present application, an interface for configuring a new virtual card in the bracelet application is referred to as a first interface, and the first interface may include the interface 804. The virtual card displayed in the first interface is a virtual card that is not configured by the wristband, and is called a fourth virtual card.
After the fourth virtual card is configured to the bracelet, the bracelet may send interaction information 2 to the mobile phone for notifying the mobile phone that the configuration of the virtual card heaven and earth is completed.
S202, the mobile phone responds to the interaction information 2 to create a geo-fence.
In some embodiments, when the mobile phone receives the interaction information 2, the location point 2, also called location information, where the mobile phone is currently located is obtained. The location point 2 may be a location determined according to a currently received GPS signal. And then centering on location point 2, determine a spatial region covering the second area as the created geofence, also referred to as a third fence. Illustratively, the geographic area indicated by the third fence may be the administrative area where location point 2 is located. For example, the user may have configured heaven and mansion for a bracelet with a mobile phone in metropolis, and the mobile phone may determine a third fence corresponding to heaven and mansion, where the geographic range indicated by the third fence may be metropolis.
S203, the mobile phone establishes a temporary correspondence 2 between the geo-fence and the newly configured virtual card.
Thus, the corresponding relation 2 between the virtual card and the card opening place can be established. For example, after the user newly configures the heaven-mansion key for the Chengdu bracelet, the mobile phone may determine the temporary corresponding relationship 2 according to the heaven-mansion key and the geo-fence indicating the Chengdu, and store the temporary corresponding relationship. Until the user finishes swiping the card by using the Tianfu card for the first time, the correspondence relation 1 of the Tianfu card is created by using the above S101 to S103, so as to replace the temporary correspondence relation 2 of the Tianfu card.
The mobile phone can gradually identify the virtual card matched with the actual scene by creating the corresponding relation 1 and/or the corresponding relation 2. In addition, after a certain number of corresponding relations 1 are stored in the mobile phone, the mobile phone may enter an update stage of the learning process. For example, the updating stage of the learning process may be entered after the number of the stored corresponding relations 1 in the mobile phone exceeds a preset value. Further, for example, after the correspondence relation 1 stored in the mobile phone relates to all virtual cards in the mobile phone ring, the mobile phone may enter the update stage of the learning process. For example, virtual cards within a bracelet include Shanghai public transportation cards, Shenzhen, Home Key, and cell Gate inhibition cards. When the corresponding relation 1 relating to the Shanghai public transport card, the corresponding relation 1 relating to Shenzhen Tong, the corresponding relation 1 relating to the home key and the corresponding relation 1 relating to the cell access control card are stored in the mobile phone, the mobile phone enters an updating stage.
In the update phase, referring to fig. 9, the method provided in this embodiment of the present application may further include:
and S301, under the condition that the card swiping of the bracelet is successful, the bracelet sends interactive information 1 to the mobile phone.
In some embodiments, the principle of S301 is the same as that of S101, and is not described herein again. The interaction information 1 may indicate a virtual card, also referred to as a first card, that completes data interaction with the NFC card reader.
S302, the mobile phone can start environment data acquisition.
S303, the mobile phone may determine the fence feature 2 according to the collected environmental data.
In some embodiments, the way of determining the fence feature 2 is the same as the way of determining the fence feature 1, and is not described herein again.
S304, the mobile phone inquires whether the corresponding relation 1 matched with the first card exists.
In some embodiments, the AID of the first card may be obtained from the mutual information 1, and then, the AID may be used to perform a query from the stored correspondence relationship 1. For example, the stored correspondence 1 in the handset, as shown in table 4:
TABLE 4
Figure BDA0003115408110000181
Figure BDA0003115408110000191
If the AID of the first card is AID2, then it is determined, via a query, that there is no matching correspondence 1.
If the AID of the first card is AID1, it can be confirmed that there is a matching correspondence 1, that is, a correspondence composed of a fence named as bus scene 1 and AID1, by query.
In some possible embodiments, each correspondence 1 may also have a query rank. The query levels comprise a level 1 and a level 2, and the query priority of the level 1 is higher than that of the level 2. In the process of searching for the matching corresponding relation 1, the corresponding relation 1 marked as level 1 may be queried first. And under the condition that the matched corresponding relation 1 is not inquired, inquiring the corresponding relation 1 marked as the level 2. Therefore, the query efficiency is effectively improved.
Of course, the query level corresponding to each corresponding relationship 1 may be configured in advance, or may be configured dynamically according to a predetermined rule.
As an embodiment, the query rank may be configured according to the frequency to which each correspondence 1 is matched. For example, if the frequency of the correspondence relationship 1 between the cell scenario 1 and the AID4 is matched to exceed a preset frequency threshold, the corresponding query rank is configured as rank 1. For another example, if the frequency of the correspondence relationship 1 between the bus scene 1 and the AID1 does not exceed the preset frequency threshold, the corresponding query level is configured as level 2.
As another embodiment, if multiple correspondences 1 represent the same actual scene and the same virtual card, the corresponding relation 1 with the most fence features is marked as level 1, and other corresponding relations 1 are marked as level 2.
By adopting the mode, whether the corresponding relation 1 matched with the first card exists in the mobile phone can be quickly determined.
S305, when the matching corresponding relation 1 does not exist, adding the corresponding relation 1 according to the first card and the fence characteristic 2.
In some embodiments, the newly created fence may be described using fence feature 2. Of course, the newly created fence can also be given a name as well. And then, forming a new corresponding relation 1 according to the newly created fence and the AID of the first card, and storing.
For example, the fence feature 2 includes a GPS feature 3 and a cell feature 3, the AID of the first card is an AID2 of shenzhen passerby, and then after the fence "public transportation scene 2" is created, a new correspondence 1 is formed by the fence "public transportation scene 2" and the AID 2. For another example, the fence feature 2 includes a GPS feature 4, and the AID of the first card is the AID3 of the home key, so that after the fence "home scene" is created, a new correspondence 1 is formed by the fence "home scene" and the AID 3. After the correspondence relationship 1 is newly added, the correspondence relationship 1 in the mobile phone is as shown in table 5:
TABLE 5
Figure BDA0003115408110000192
In addition, in some embodiments, when it is determined that there is a matching correspondence 1, the method may further include: fence features (also referred to as fence features 3) included in the matched correspondences 1 are compared with the acquired fence features 2.
Illustratively, if the fence feature 2 and the fence feature 3 are completely different, indicating that the first card can be used in an actual scene unknown to the mobile phone, the mobile phone may add a correspondence 1 composed of the fence feature 2 and the AID of the first card, so as to improve the identification capability of the mobile phone.
For example, the first card is a Shanghai public transportation card (AID 1). The correspondence 1 matched with the first card includes fence features 3 indicating bus stops in the sea, such as Wi-Fi features 2 and GPS features 2. Meanwhile, the mobile phone responds to the interactive information 1 and acquires fence features 2 indicating the Shanghai subway station, such as Wi-Fi features 4. This indicates that the mobile phone can recognize the matching relationship between the Shanghai public transport card and the Shanghai bus station platform, but cannot recognize the matching relationship between the Shanghai public transport card and the Shanghai subway station. Therefore, correspondence 1 consisting of Wi-Fi feature 4 and AID1 can be newly added.
Illustratively, if fence feature 2 includes all of fence features 3, and fence feature 2 also includes features not possessed by fence feature 3, then it indicates that fence features 2 and fence features 3 can both indicate the same actual scene, but the geographic region indicated by fence feature 3 is closer to the true location of the actual scene. Then, the mobile phone can replace the original corresponding relation 1 matched with the first card by using the corresponding relation 1 composed of the fence feature 2 and the AID of the first card.
For example, the first card is a Shanghai public transportation card (AID 1). The correspondence 1 matched with the first card includes fence features 3, such as Wi-Fi feature 2 and GPS feature 2. In addition, the fence features 2 collected by the mobile phone comprise Wi-Fi features 2, GPS features 2 and cell features 4. Then the correspondence 1 made up of "Wi-Fi feature 2, GPS feature 2, cell feature 4" and AID1 may be added and the original correspondence 1 made up of "Wi-Fi feature 2, GPS feature 2" and AID1 may be deleted.
In addition, the manner of replacing the correspondence 1 may be to adjust the query level of the original correspondence 1 to the level 2, in addition to directly deleting the original correspondence 1. As an example, the query level of the original correspondence 1 formed by the "Wi-Fi feature 2, the GPS feature 2" and the AID1 may be adjusted to be level 2, and the query level of the correspondence 1 formed by the "Wi-Fi feature 2, the GPS feature 2, the cell feature 4" and the AID1 may be marked as level 1.
Thus, as the mobile phone gradually adds or replaces the corresponding relationship 1, the mobile phone has stronger and stronger recognition capability for the actual scene matched by the virtual card. Of course, it is a long-term process for the handset to learn the correspondence 1. Therefore, the mobile phone can more and more intelligently identify the virtual cards which can be used in different actual scenes.
In addition, in some embodiments, the mobile phone learns the corresponding relationship 1 by always adopting the same method. For example, the learning method of the preliminary stage mentioned in the foregoing embodiment has been employed. For another example, the learning method of the update stage mentioned in the foregoing embodiment is always employed.
In addition, referring to fig. 10, the method provided in the embodiment of the present application may further include:
s401, the mobile phone detects whether the bracelet enters the geographical area indicated by the established fence or not.
Wherein, the established fences may include all fences involved in correspondence relationship 1. For example, the established fence may be a fence created in the process of determining correspondence 1 by the mobile phone. Of course, each established fence includes a fence feature, referred to as fence feature 4.
In some embodiments, the above S401 may include the following steps:
s401-1, the mobile phone can acquire the positioning information in real time or periodically.
The positioning information acquired by the mobile phone is information capable of indicating the actual position of the bracelet.
Under some scenes, the bracelet and the mobile phone are used in a matched mode, namely, the user can wear the bracelet and the mobile phone at the same time, and then the mobile phone can use the positioning information of the mobile phone as the positioning information of the bracelet.
Thus, the positioning information may include, in addition to GPS positioning information (e.g., including latitude information, longitude information, and ACC information) collected by the mobile phone, radio wave positioning information scanned by the mobile phone. Such as Wi-Fi signals, bluetooth signals, base station signals, FM frequency modulated signals, etc. that the handset scans at this time. Of course, the method can also comprise image positioning information acquired by the mobile phone, namely an environment image.
In other scenes, the mobile phone and the bracelet are not used in a matched manner, namely, the user only carries the bracelet but not the mobile phone, and then the positioning information can be collected by the bracelet and sent to the mobile phone. The positioning information collected by the bracelet may also include collected GPS positioning information, scanned radio wave positioning information, and image positioning information collected by the bracelet.
S401-2, the mobile phone judges whether the position point 3 indicated by the positioning information belongs to the geographical area corresponding to the established fence.
In some embodiments, fence features 4 corresponding to all established fences are obtained, and the positioning information is compared to each fence feature 4. If the location information matches any of the fence features 4, it is determined that the bracelet has entered the geographic area indicated by the established fence, which may be referred to as simply the bracelet entering the established fence.
For example, the manner of determining whether the positioning information matches the fence feature 4 may be:
first, a positioning feature is extracted from the positioning information. Wherein the positioning features may include Wi-Fi features when the positioning information includes Wi-Fi signals. Where the location information comprises a bluetooth signal, the location feature may comprise a bluetooth feature. Where the positioning information comprises base station signals, the positioning characteristics may comprise cell characteristics. Where the positioning information includes GPS signals, the positioning features may include GPS features. And so on, and will not be described herein.
Next, the locating feature is compared to the fence feature 4. If the locating feature is identical to fence feature 4 of the established fence, then it is determined that the bracelet is currently located in the established fence.
In some embodiments, S401-1 and S401-2 described above may be performed by a sensor hub (sensor hub) in a cell phone. It will be appreciated that the sensing hub is a chip with some processing power and low power consumption, and can be used to handle simple tasks.
For example, as shown in fig. 11, the sensing hub may collect WiFi signals, bluetooth signals, base station signals, FM radio signals, etc. from a modem in a cell phone, GPS. As another example, the sensing hub can also receive and store established fences, such as Wi-Fi fences (fences with only Wi-Fi features), cell fences (fences with only cell features), geo-fences (fences with only GPS features), and fences containing multiple types of fence features. For another example, the sensing hub may also determine whether the collected positioning information belongs to a fence that has been established.
In this way, the application processor in the handset can remain dormant. Therefore, the mobile phone can judge whether the bracelet enters the established fence or not in real time with low energy consumption under the condition that the application is not started.
In other embodiments, S401 may further be: and acquiring the positioning information under the condition that the mobile phone meets the preset condition, and judging whether the bracelet is in the built fence or not based on the positioning information. Thus, energy saving can also be achieved.
The preset condition may be that the mobile phone scans a specific electromagnetic wave. Illustratively, the specific electromagnetic wave may be any one of a WiFi signal, a bluetooth signal, a base station signal, and an FM frequency modulation signal.
For example, as shown in fig. 12 (a), when the user is located at a bus stop, the mobile phone scans a Wi-Fi signal or a bluetooth signal sent by the smart stop, and the mobile phone may start acquisition of the positioning information.
For another example, as shown in fig. 13 (a), when the user is at the door of the home, the mobile phone scans the Wi-Fi signal sent by the router at the home, and the mobile phone may start to acquire the positioning information.
Of course, the preset conditions may also be: the mobile phone or the bracelet detects that the motion state of the user changes.
For example, when the user walks to a bus stop and stops to wait for a bus, the mobile phone or the bracelet can detect that the user changes from a walking state to a stop state, and correspondingly can trigger the mobile phone to collect the positioning information.
For another example, when the user walks to the door of a bus and gets on the bus, the mobile phone or the bracelet can detect that the operation of the user in the horizontal direction is changed into the operation in the vertical direction, and correspondingly, the mobile phone can be triggered to collect the positioning information.
S402, when the mobile phone judges that the bracelet enters the established fence, the matched virtual card is determined according to the corresponding relation 1.
In some embodiments, the matching virtual card is queried from correspondence 1 according to the established fence (which may also be referred to as the target fence) that the bracelet actually enters. The matching virtual card is the virtual card corresponding to the target fence, which may also be referred to as a second card. Understandably, when the actual scene where the bracelet is located changes, the target fence corresponding to the bracelet may also be different, and the second card determined therewith is also different.
Illustratively, the bracelet enters a first fence and the second virtual card is a matching virtual card. The bracelet gets into the second rail, and the virtual card that matches is all not supporting AID in the bracelet and does not possess the virtual card of first sign.
For example, as shown in table 5 above, when it is determined that the bracelet enters the fence "bus scene 1", the correspondence relationship 1 in the mobile phone determines the virtual card (AID1) as the second card. When the bracelet is judged to enter the bus scene 2, the virtual card (AID1) is determined as a second card. When it is determined that the bracelet enters the fence "home scene", the virtual card (AID3) is determined as the second card.
In some embodiments, the mobile phone can compare the target fence with the corresponding relation 1 one by one, determine the corresponding relation 1 containing the target fence, and find the second card.
In other embodiments, the mobile phone may also classify the stored correspondence 1 in advance according to the GPS features. For example, the correspondences 1 that relate to GPS features and that the GPS features indicate that the location points 1 all belong to the same administrative area are classified into the same class. Correspondences 1 that do not relate to GPS features are classified into one category. Thus, in the process of searching for the second card, the mobile phone first determines whether the target fence has the GPS feature. And if so, determining the administrative region to which the target fence belongs according to the position point 1 corresponding to the target fence. And searching a second card from the corresponding relation 1 corresponding to the same administrative region. And if the GPS characteristic does not exist, searching the second card from the corresponding relation 1 without the GPS characteristic.
For example, in the correspondence shown in table 5, GPS feature 1, GPS feature 2, and GPS feature 4 all belong to shanghai city, and GPS feature 3 belongs to shenzhen city. Then, the correspondence 1 of "cell scene 1 and AID 4", "bus scene 1 and AID 1", and "home scene and AID 3" may be classified into one category, and the correspondence 1 of "bus scene 2 and AID 2" is regarded as one category. In this way, when the location point 1 corresponding to the target fence belongs to the shanghai city, the second card is searched for from the correspondence relationship 1 of "cell scene 1 and AID 4", "bus scene 1 and AID 1", and "home scene and AID 3". And (3) searching a second card from the corresponding relation 1 of 'public transportation scene 2 and AID 2' when the position point 1 corresponding to the target fence belongs to Shenzhen city. Thus, as shown in fig. 14, when the user is located in shenzhen city and at the bus stop, the mobile phone can quickly determine that shenzhen is the second card. When the user is located in Shanghai city and at the bus stop, the mobile phone can quickly determine that the Shanghai public transport card is the second card.
In some embodiments, if the second card is the default card within the bracelet, the flow may be exited. If the second card is not the default card in the bracelet, flow may proceed to S403.
In other embodiments, it may not be distinguished whether the second card is the default card, and after the second card is determined, the process proceeds to S403.
And S403, the mobile phone sends the interactive information 3 to the bracelet.
In some embodiments, the above-mentioned interaction information 3 may be used to inform the bracelet to activate the second card. The mutual information 3 may include the AID of the second card, or may not include any AID value.
Exemplarily, in the case that the bracelet enters the first fence, the interaction information 3 sent by the mobile phone to the bracelet may also be referred to as second information. The second information may also include a first identifier of the second virtual card. For example, as shown in (a) in fig. 12, the user is located at a bus stop, and the mobile phone can recognize that the bracelet is located in the geographic area indicated by the fence "bus scene 1" according to the positioning information and the corresponding relation 1, and as shown in (b) in fig. 12, the mobile phone sends the interactive information 3 carrying the AID1 to the bracelet.
For another example, as shown in (a) in fig. 13, the user is located at a door of a home, and the mobile phone can recognize that the bracelet is located in the geographic area indicated by the fence "home scene" according to the positioning information and the corresponding relation 1, as shown in (b) in fig. 13, the mobile phone sends the interactive information 3 carrying the AID3 to the bracelet.
Also exemplarily, in case that the bracelet enters the second fence, the interactive information 3 sent by the machine to the bracelet may also be referred to as fifth information. Wherein the fifth information does not contain an AID value nor the first identifier.
S404, the bracelet activates the second card according to the interactive information 3.
In some embodiments, the bracelet, in response to the mutual information 3, looks up the second card by AID in the mutual information 3. The second card is then activated. In addition, the original activation card can be deactivated. Therefore, the activation state of the virtual card in the bracelet is adjusted.
For example, the virtual card stored in the bracelet is as shown in table 2 above, and the interactive information 3 includes AID2, so after the activation state is adjusted, the virtual card in the mobile phone is as shown in table 6 below:
TABLE 6
Type of virtual card AID Active state
Shanghai public transport card AID1 Is not activated
Shenzhen tong (Shenzhen Tong) AID2 Has been activated
Home key AID3 Is not activated
District entrance guard card AID4 Is not activated
Company access control card Unknow Is not activated
That is, Shenzhen Tong, as the second card indicated by the mutual information 3, can be activated by the bracelet. And the original activation card Shanghai public transportation card can be deactivated by the bracelet. Thereafter, the user uses the bracelet to be close to the NFC card reader, and the bracelet can adopt Shenzhen expert to carry out data interaction with the NFC card reader that is close to. So, as shown in (a) in fig. 15, when the user raises his hand and is close to the bus ware of punching the card, the bracelet utilizes Shenzhen expert to interact with the bus ware of punching the card.
After the Shenzhen tong is activated by the bracelet, if the user operates the bracelet, when a card package interface 1501 shown in (b) in fig. 15 is displayed, a card image of Shenzhen tong is displayed in the card package interface 1501.
For another example, the virtual card stored in the bracelet is also as shown in table 2 above, and the interactive information 3 includes AID3, so after the activation state adjustment, the virtual card in the mobile phone is as shown in table 7 below:
TABLE 7
Type of virtual card AID Active state
Shanghai public transport card AID1 Is not activated
Shenzhen tong (Shenzhen Tong) AID2 Is not activated
Home key AID3 Has been activated
District entrance guard card AID4 Is not activated
Company access control card Unknow Is not activated
That is, the home key may be activated by the bracelet as the second card indicated by the interactive information 3. And the original activation card Shanghai public transportation card can be deactivated by the bracelet. Thereafter, the user uses the bracelet to be close to the NFC card reader, and the bracelet can adopt the home key to carry out data interaction with the NFC card reader that is close to. As such, as shown in fig. 16 (a), when the user lifts his hand close to the smart door lock, the bracelet interacts with the smart door lock using the home key.
After the home key is activated by the bracelet, if the user operates the bracelet, while the card-package interface 1601 shown in (b) in fig. 16 is displayed, a card image of the home key is displayed in the card-package interface 1601.
Of course, if there is no AID value in the interworking information 3, a virtual card that does not support AID is activated.
Or, if the interactive information 3 includes the identity unrknow, it indicates that the virtual card with the unrknow identity is to be activated. That is, when the identity unrknow is included in the interactive information 3, the company access card in table 7 is activated. In this way, even a virtual card without AID can be activated flexibly after the bracelet enters a corresponding scene.
Further, in the case where the mutual information 3 does not include AID and the identification unrnow, the wristband may activate a third virtual card activation that does not support AID and does not have the first identification.
In addition, in some scenarios, the bracelet stores multiple virtual cards that do not support AID.
In this scenario, the virtual cards that do not support AID may be differentiated by using the setting identifier, for example, the setting identifier may include Unknow1, Unknow2, Unknow3, and the like. Therefore, the corresponding virtual card can be activated according to the setting identifier carried in the interactive information 3.
In some embodiments, an access mapping table may be further established in the bracelet, where the access mapping table is used to indicate a correspondence relationship between a virtual card that does not support AID in the bracelet and the setting identifier. For example, the access mapping table may indicate a correspondence between an access card that does not support AID and Unknow1, and when the interaction information 3 includes Unknow1, the access card may be queried from the access mapping table and activated.
In other scenes, the bracelet may also store a plurality of third virtual cards, and then the bracelet displays the third virtual card for the user to select after receiving the fifth information. And after the bracelet receives the operation of the user on any third virtual card, activating the third virtual card.
It can be seen that, the user is under different scenes, and through the cooperation of cell-phone and bracelet, the bracelet can be according to the change of the actual scene of locating, the activation card in the change bracelet. The card can be successfully swiped by lifting the hands of the user, the card swiping failure caused by mismatching between the NFC card reader and the activation card is reduced, the complexity that the user needs to manually change the activation card is also improved, the man-machine interaction efficiency is improved, and the user experience is improved.
In other embodiments, when the bracelet receives the interaction information 3, the interaction information 3 may also be cached. And after the bracelet detects that the user makes a setting action, such as lifting the hand and stopping displacement, the bracelet is triggered to activate the second card according to the interactive information 3. For example, a motion sensor in the bracelet may gather acceleration information in real time. When the collected acceleration information indicates that the bracelet does circular motion, the user is judged to do a hand-lifting action. For another example, if the bracelet detects a change in motion state, it may also be determined that the user has made a setting action. And then, triggering the bracelet to activate the second card according to the interactive information 3.
After the second card is activated, the default card needs to be deactivated. For example, according to the interactive information 3, the second virtual card is activated, and then the first virtual card is deactivated. Therefore, after the bracelet is close to the NFC card reader, the second virtual card is adopted to perform data interaction with the NFC card reader. Of course, entering the first fence may activate the second virtual card, the bracelet leaves the first fence, and the cell phone may also instruct the bracelet to deactivate the second virtual card. That is, when the wearable device leaves the first fence, the electronic device sends third information to the wearable device; wherein the third information comprises the first identifier; the wearable device deactivates the second virtual card according to the third information.
In addition, between the bracelet detects twice that the user makes a hand-raising action, if the bracelet receives a plurality of interactive information 3 in sequence, when the bracelet detects that the user makes a hand-raising action for the second time, the bracelet activates the corresponding second card according to the interactive information 3 with the latest receiving time. Therefore, invalid activation card switching is reduced, and energy consumption of the bracelet is reduced.
In other embodiments, the bracelet may receive indication information 1 (also referred to as second indication information) broadcast by the NFC reader. If the second indication information carries an AID value, the bracelet may query the corresponding virtual card according to the AID value, that is, the fifth virtual card. And activating the found virtual card. In addition, in some embodiments, after receiving the second indication information, the bracelet may further determine whether the found virtual card is in an activated state, and if not, activate the found virtual card.
Certainly, when the bracelet directly uses the second indication information to search the corresponding virtual card, the finding fails.
One reason for failure may be: the AID value is not included in the indication information 1. That is, if the AID value is not included in the indication information 1, the bracelet cannot directly activate the virtual card matched with the NFC card reader, and then the bracelet may determine the fence where the bracelet is located according to the current positioning information. And activating the virtual card matched with the fence.
For example, the bracelet may determine, according to the current location information, that the bracelet is located, that the bracelet transmits the collected location information to the mobile phone, the mobile phone identifies the bracelet located in the bracelet, and then transmits an identifier (such as an AID or an unknown identifier) of the virtual card matched with the located bracelet to the bracelet. Specific implementations can refer to the description in the foregoing embodiments.
As another example, if the AID value is not included in the indication information 1, the bracelet may send interaction information 4 to the mobile phone, for instructing the mobile phone to perform the above steps S401 to S403. So, the bracelet can activate and use the virtual card that matches with the actual scene.
Another failure reason may be that there is no virtual card matching the NFC card reader in the bracelet, that is, there is no fifth virtual card indicated by the second indication information in the bracelet. In this scenario, the bracelet may send interaction information 5, also referred to as sixth information, to the mobile phone. And the mobile phone responds to the interactive information 5 and reminds the user to configure a fifth virtual card for the bracelet. Illustratively, the AID included in the mutual information 5 is the same as the AID in the indication information 1 (i.e., the second indication information). The mobile phone can pop up the bracelet to display in the foreground, and display the virtual card configuration interface (also called as a first interface). At least one virtual card, e.g., a fifth virtual card, is displayed in the interface.
Then, the mobile phone acquires a second signal. Wherein the second signal includes at least two of: wireless fidelity Wi-Fi signals, Bluetooth signals, frequency modulation FM signals, base station signals, and GPS signals. And the mobile phone creates the fourth fence according to the fence characteristic corresponding to the second signal. Therefore, when the bracelet enters the fourth fence, the mobile phone sends seventh information to the bracelet, the bracelet is triggered to activate the fifth virtual card, and the first virtual card is deactivated. Wherein the seventh information includes a second identification of the fifth virtual card. The second identifier may also be an AID value of the fifth virtual card, or an identifier assigned by the bracelet to the fifth virtual card.
In addition, the method provided by the embodiment of the application can also be applied between other types of electronic equipment and wearable equipment. The electronic device can also be a computer, a server, a cloud server and other devices which are not easy to carry. The electronic device may store therein correspondence between all virtual cards and actual scenes. Meanwhile, the wearable device also has the capability of autonomous positioning. So, wearable equipment only needs to send positioning information to electronic equipment in real time, can judge by electronic equipment whether the bracelet has got into specific scene to according to the virtual card that this scene corresponds, send mutual information 3 to wearable equipment, so that wearable equipment switches the activation card according to mutual information 3. Therefore, the wearable device can flexibly switch different virtual cards according to different actual scenes, card swiping failure is avoided, and the human-computer interaction efficiency of card swiping is improved.
An embodiment of the present application further provides an electronic device, where the electronic device may include: a memory and one or more processors. The memory is coupled to the processor. The memory is for storing computer program code comprising computer instructions. The processor, when executing the computer instructions, may cause the electronic device to perform the steps performed by the handset in the embodiments described above. Of course, the electronic device includes, but is not limited to, the above-described memory and one or more processors. For example, the structure of the electronic device may refer to the structure of a mobile phone shown in fig. 3.
An embodiment of the present application further provides a wearable device, and the wearable device may include: a memory and one or more processors. The memory is coupled to the processor. The memory is for storing computer program code comprising computer instructions. The computer instructions, when executed by the processor, cause the wearable device to perform the various steps performed by the cell phone in the embodiments described above. Of course, the wearable device includes, but is not limited to, the above-described memory and one or more processors. For example, the structure of the wearable device may refer to the structure of the bracelet shown in fig. 4.
The embodiment of the present application further provides a chip system, which can be applied to the electronic device in the foregoing embodiments. As shown in FIG. 17, the system-on-chip includes at least one processor 2201 and at least one interface circuit 2202. The processor 2201 may be a processor in the electronic device described above. The processor 2201 and the interface circuit 2202 may be interconnected by wires. The processor 2201 may receive and execute computer instructions from the memory of the electronic device described above via the interface circuit 2202. The computer instructions, when executed by the processor 2201, can cause the electronic device to perform the steps performed by the mobile phone in the above embodiments. Of course, the chip system may further include other discrete devices, which is not specifically limited in this embodiment of the present application.
In addition, the chip system may also be applied to the wearable device of the foregoing embodiment, and the chip system includes at least one processor 2201 and at least one interface circuit 2202. The processor 2201 may be a processor in the wearable device described above. The processor 2201 and the interface circuit 2202 may be interconnected by wires. The processor 2201 may receive and execute computer instructions from the memory of the wearable device described above via the interface circuit 2202. The computer instructions, when executed by the processor 2201, may cause the wearable device to perform the various steps performed by the bracelet in the embodiments 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. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
Each functional unit 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 computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or make a contribution to the prior art, or all or part of the technical solutions may be implemented in the form of a software product stored in a storage medium and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: flash memory, removable hard drive, read only memory, random access memory, magnetic or optical disk, and the like.
The above description is only a specific implementation of the embodiments of the present application, but the scope of the embodiments of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the embodiments of the present application should be covered by the scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.

Claims (30)

1. A virtual card switching method is applied to a wearable communication system, the wearable communication system comprises an electronic device and a wearable device, short-distance wireless communication is adopted between the electronic device and the wearable device, the wearable device has a Near Field Communication (NFC) function, the wearable device comprises an activated first virtual card and an inactivated second virtual card, and the method comprises the following steps:
the wearable device sends first information to the electronic device when the wearable device meets a first condition; the first information comprises a first identifier corresponding to the second virtual card; the first condition includes: the second virtual card and the NFC card reader complete data interaction, or first indication information sent by the NFC card reader is received; the first indication information comprises the first identification;
the electronic equipment creates a first fence corresponding to the second virtual card according to the first information; acquiring a first signal by the electronic equipment; wherein the first signal comprises at least two of: wireless fidelity Wi-Fi signals, Bluetooth signals, frequency modulation FM signals, base station signals, and GPS signals; the electronic equipment inquires whether a matched first fence exists according to the fence features corresponding to the first signal; under the condition that a matched first fence does not exist, the first fence is created, and the corresponding relation between the first fence and the first identification is recorded; in the case that a matched first fence exists, the electronic device records the corresponding relation between the first fence and the first identifier;
the electronic device sending second information to the wearable device if the wearable device enters the first fence; wherein the second information comprises the first identifier;
and the wearable equipment activates the second virtual card and deactivates the first virtual card according to the second information.
2. The method of claim 1, wherein prior to the wearable device sending the first information to the electronic device, the method further comprises:
the wearable device responds to user operation, activates the second virtual card and deactivates the first virtual card;
and the wearable device performs data interaction with the NFC card reader by adopting the second virtual card, and deactivates the second virtual card and activates the first virtual card after the data interaction is completed.
3. The method of claim 1, wherein the creating the first fence corresponding to the second virtual card comprises:
the electronic equipment acquires a first signal; wherein the first signal comprises at least two of: Wi-Fi signals, Bluetooth signals, frequency modulation FM signals, base station signals, and GPS signals;
and the electronic equipment creates the first fence according to the fence characteristic corresponding to the first signal.
4. The method of claim 3, wherein prior to the electronic device sending second information to the wearable device, the method further comprises:
the electronic equipment acquires positioning information; wherein the positioning information comprises one or a combination of the Wi-Fi signal, the Bluetooth signal, the FM signal, the base station signal and the GPS positioning information;
the electronic device comparing the positioning information to fence features of the first fence;
determining that the wearable device enters the first fence when the positioning information matches the fence feature.
5. The method of claim 1, wherein the wearable device activating the second virtual card and deactivating the first virtual card based on the second information comprises:
the wearable device caches the second information;
activating the second virtual card and deactivating the first virtual card according to the second information when the motion state of the wearable device changes; the method further comprises the following steps:
and when the wearable device approaches an NFC card reader, the wearable device performs data interaction with the NFC card reader by adopting the second virtual card.
6. The method of claim 1, wherein the first identification is an AID of the second virtual card; or the first identity is an identity assigned by the wearable device to the second virtual card.
7. The method of claim 1, wherein the method further comprises:
when the wearable device leaves the first fence, the electronic device sends third information to the wearable device; wherein the third information comprises the first identifier;
the wearable device deactivates the second virtual card according to the third information.
8. The method of claim 1, further comprising an inactive third virtual card in the wearable device, the third virtual card not having the first identity, the method further comprising:
the wearable device responds to user operation, activates the third virtual card and deactivates the first virtual card;
the wearable device performs data interaction with an NFC card reader by adopting the third virtual card;
after the data interaction is completed, the wearable device sends fourth information to the electronic device;
the electronic device creating a second fence;
if the wearable device enters the second fence, the electronic device sends fifth information to the wearable device;
the wearable device activates the third virtual card in response to the fifth information.
9. The method of claim 8, wherein when the wearable device includes a plurality of the third virtual cards, the method may further comprise:
after the wearable device receives the fifth information, the wearable device displays a plurality of third virtual cards;
the wearable device activates the selected third virtual card in response to user operation of the third virtual card.
10. The method of claim 1, wherein the electronic device includes a first application to manage a plurality of virtual cards in the wearable device; the method further comprises the following steps:
the electronic equipment displays a first interface; the first interface comprises a fourth virtual card, and the wearable device is not configured with the fourth virtual card;
the electronic device configures the fourth virtual card for the wearable device in response to an operation of a user in the first interface;
in the process of configuring a fourth virtual card for the wearable device, the electronic device obtains position information;
and the electronic equipment creates a third fence corresponding to the fourth virtual card according to the position information.
11. The method of claim 1, wherein the method further comprises:
when the wearable device approaches an NFC card reader, the wearable device receives second indication information broadcast by the NFC card reader;
the wearable device searches a fifth virtual card corresponding to the second indication information according to the second indication information;
and when the wearable device finds the fifth virtual card, activating the fifth virtual card.
12. The method of claim 11, wherein when the fifth virtual card is not located by the wearable device, the method further comprises:
the wearable device sends sixth information to the electronic device; the sixth information is used for instructing the electronic device to configure the fifth virtual card for the wearable device;
the electronic equipment displays a first interface; the first interface comprises the fifth virtual card;
the electronic equipment responds to the operation of a user for the fifth virtual card, and configures the fifth virtual card for the wearable equipment;
the electronic equipment acquires a second signal; wherein the second signal comprises at least two of: wireless fidelity Wi-Fi signals, Bluetooth signals, frequency modulation FM signals, base station signals, and GPS signals;
the electronic equipment creates a fourth fence according to the fence characteristic corresponding to the second signal;
if the wearable device enters the fourth fence, the electronic device sends seventh information to the wearable device; wherein the seventh information comprises a second identification of the fifth virtual card;
and the wearable equipment activates the fifth virtual card and deactivates the first virtual card according to the seventh information.
13. A virtual card switching method is applied to an electronic device, short-range wireless communication is adopted between the electronic device and a wearable device, the wearable device has a Near Field Communication (NFC) function, the wearable device comprises an activated first virtual card and an inactivated second virtual card, and the method comprises the following steps:
the electronic equipment receives first information sent by the wearable equipment; the first information comprises a first identifier corresponding to the second virtual card;
the electronic equipment creates a first fence corresponding to the second virtual card according to the first information; wherein, include: the electronic equipment acquires a first signal; wherein the first signal comprises at least two of: wireless fidelity Wi-Fi signals, Bluetooth signals, frequency modulation FM signals, base station signals, and GPS signals; the electronic equipment inquires whether a matched first fence exists according to the fence features corresponding to the first signal; under the condition that no matched first fence exists, creating the first fence, and recording the corresponding relation between the first fence and the first identifier; in the case that a matched first fence exists, the electronic device records the corresponding relation between the first fence and the first identifier;
the electronic device sending second information to the wearable device if the wearable device enters the first fence; wherein the second information comprises the first identifier; the second information is used for instructing the wearable device to activate the second virtual card and deactivate the first virtual card.
14. The method of claim 13, wherein the creating the first fence corresponding to the second virtual card comprises:
the electronic equipment acquires a first signal; wherein the first signal comprises at least two of: Wi-Fi signals, Bluetooth signals, frequency modulation FM signals, base station signals, and GPS signals;
and the electronic equipment creates the first fence according to the fence characteristic corresponding to the first signal.
15. The method of claim 14, wherein prior to the electronic device sending second information to the wearable device, the method further comprises:
the electronic equipment acquires positioning information; wherein the positioning information comprises one or a combination of the Wi-Fi signal, the Bluetooth signal, the FM signal, the base station signal and the GPS positioning information;
the electronic device comparing the positioning information to fence features of the first fence;
determining that the wearable device enters the first fence when the positioning information matches the fence feature.
16. The method of claim 13, wherein the method further comprises:
when the wearable device leaves the first fence, the electronic device sends third information to the wearable device; wherein the third information includes the first identifier for indicating deactivation of the second virtual card.
17. The method of claim 13, further comprising an inactive third virtual card in the wearable device, the third virtual card not having the first identity, the method further comprising:
the electronic equipment receives fourth information sent by the wearable equipment; the fourth information does not include the first identification;
the electronic device creating a second fence;
in a case where the wearable device enters the second fence, the electronic device sends fifth information to the wearable device, instructing the wearable device to activate the third virtual card.
18. The method of claim 13, wherein the electronic device includes a first application to manage a plurality of virtual cards in the wearable device; the method further comprises the following steps:
the electronic equipment displays a first interface; the first interface comprises a fourth virtual card, and the wearable device is not configured with the fourth virtual card;
the electronic device configures the fourth virtual card for the wearable device in response to an operation of a user in the first interface;
in the process of configuring a fourth virtual card for the wearable device, the electronic device obtains position information;
and the electronic equipment creates a third fence corresponding to the fourth virtual card according to the position information.
19. The method of claim 13, wherein the method further comprises:
the electronic equipment receives sixth information sent by the wearable equipment; the electronic equipment displays a first interface; the first interface comprises a fifth virtual card; the fifth virtual card is a virtual card which is not configured in the wearable equipment;
the electronic equipment responds to the operation of a user for the fifth virtual card, and configures the fifth virtual card for the wearable equipment;
the electronic equipment acquires a second signal; wherein the second signal comprises at least two of: wireless fidelity Wi-Fi signals, Bluetooth signals, frequency modulation FM signals, base station signals, and GPS signals;
the electronic equipment creates a fourth fence according to the fence characteristic corresponding to the second signal;
if the wearable device enters the fourth fence, the electronic device sends seventh information to the wearable device; wherein the seventh information includes a second identifier of the fifth virtual card, and is used to instruct the wearable device to activate the fifth virtual card and deactivate the first virtual card.
20. A virtual card switching method is applied to a wearable device, short-range wireless communication is adopted between the wearable device and an electronic device, the wearable device has a Near Field Communication (NFC) function, the wearable device comprises an activated first virtual card and an inactivated second virtual card, and the method comprises the following steps:
the wearable device sends first information to the electronic device when the wearable device meets a first condition; the first information comprises a first identifier corresponding to the second virtual card; the manner of the first condition includes: the second virtual card and the NFC card reader complete data interaction, or first indication information sent by the NFC card reader is received; the first indication information comprises the first identification; receiving second information sent by the electronic device under the condition that the wearable device enters a first fence; wherein the first fence is a geofence created by an electronic device for the second virtual card; the second information comprises the first identification;
the wearable device activates the second virtual card and deactivates the first virtual card according to the second information;
when the wearable device does not find the fifth virtual card, the method further comprises:
the wearable device sends sixth information to the electronic device; the sixth information is used for instructing the electronic device to configure the fifth virtual card for the wearable device;
receiving seventh information sent by the electronic device when the wearable device enters a fourth fence corresponding to the fifth virtual card; wherein the seventh information comprises a second identification of the fifth virtual card;
and the wearable equipment activates the fifth virtual card and deactivates the first virtual card according to the seventh information.
21. The method of claim 20, wherein prior to the wearable device sending the first information to the electronic device, the method further comprises:
the wearable device responds to user operation, activates the second virtual card and deactivates the first virtual card;
and the wearable device performs data interaction with the NFC card reader by adopting the second virtual card, and deactivates the second virtual card and activates the first virtual card after the data interaction is completed.
22. The method of claim 20, wherein the wearable device activating the second virtual card and deactivating the first virtual card based on the second information comprises:
the wearable device caches the second information;
under the condition that the motion state of the wearable device changes, activating the second virtual card and deactivating the first virtual card according to the second information; the method further comprises the following steps:
and when the wearable device approaches an NFC card reader, the wearable device performs data interaction with the NFC card reader by adopting the second virtual card.
23. The method of claim 20, wherein the first identification is an AID of the second virtual card; or the first identity is an identity assigned by the wearable device to the second virtual card.
24. The method of claim 20, wherein the method further comprises:
receiving third information sent by the electronic device when the wearable device leaves the first fence; wherein the third information comprises the first identifier;
the wearable device deactivates the second virtual card according to the third information.
25. The method of claim 20, further comprising an inactive third virtual card in the wearable device, the third virtual card not having the first identity, the method further comprising:
the wearable device responds to user operation, activates the third virtual card and deactivates the first virtual card;
the wearable device performs data interaction with an NFC card reader by adopting the third virtual card;
after the data interaction is completed, the wearable device sends fourth information to the electronic device, wherein the fourth information is used for instructing the electronic device to create a second fence;
receiving fifth information sent by the electronic device when the wearable device enters the second fence;
the wearable device activates the third virtual card in response to the fifth information.
26. The method of claim 25, wherein when the wearable device includes a plurality of the third virtual cards, the method further comprises:
after the wearable device receives the fifth information, the wearable device displays a plurality of third virtual cards;
the wearable device activates the selected third virtual card in response to user operation of the third virtual card.
27. The method of claim 20, wherein the method further comprises:
when the wearable device approaches an NFC card reader, the wearable device receives second indication information broadcast by the NFC card reader;
the wearable device searches a fifth virtual card corresponding to the second indication information according to the second indication information;
and when the wearable device finds the fifth virtual card, activating the fifth virtual card.
28. An electronic device, characterized in that the electronic device comprises one or more processors, memory and a wireless communication module; the memory, the wireless communication module, and the processor are coupled, the memory to store computer program code, the computer program code comprising computer instructions, which when executed by the one or more processors, cause the one or more processors to perform the method of any one of claims 13-19.
29. A wearable device, wherein the wearable device comprises one or more processors, memory, and a wireless communication module; the memory, the wireless communication module, and the processor are coupled, the memory to store computer program code, the computer program code comprising computer instructions, which when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 20-27.
30. A computer storage medium comprising computer instructions that, when executed on an electronic device, cause the electronic device to perform the method of any one of claims 13-19; the computer instructions, when executed on a wearable device, cause the electronic device to perform the method of any of claims 20-27.
CN202110661905.3A 2021-06-15 2021-06-15 Virtual card switching method, electronic equipment and wearable equipment Active CN113573239B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110661905.3A CN113573239B (en) 2021-06-15 2021-06-15 Virtual card switching method, electronic equipment and wearable equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110661905.3A CN113573239B (en) 2021-06-15 2021-06-15 Virtual card switching method, electronic equipment and wearable equipment

Publications (2)

Publication Number Publication Date
CN113573239A CN113573239A (en) 2021-10-29
CN113573239B true CN113573239B (en) 2022-07-01

Family

ID=78162045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110661905.3A Active CN113573239B (en) 2021-06-15 2021-06-15 Virtual card switching method, electronic equipment and wearable equipment

Country Status (1)

Country Link
CN (1) CN113573239B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116055630A (en) * 2022-05-30 2023-05-02 荣耀终端有限公司 Virtual card ejection method, electronic equipment and storage medium
CN116684525A (en) * 2022-09-30 2023-09-01 荣耀终端有限公司 Event reminding method, electronic equipment and storage medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10055725B2 (en) * 2014-08-13 2018-08-21 Google Llc Simple in-store payments
TWI613602B (en) * 2014-09-30 2018-02-01 蘋果公司 Recommendation of payment credential to be used based on merchant information
KR102272799B1 (en) * 2015-01-05 2021-07-05 에스케이플래닛 주식회사 Apparatus and method for activating wireless communication function automatically for geo-fence, system and computer readable medium having computer program recorded including the same
CN107912083B (en) * 2015-06-25 2020-01-31 华为技术有限公司 Working mode switching method and device and mobile terminal
US10748130B2 (en) * 2016-09-30 2020-08-18 Square, Inc. Sensor-enabled activation of payment instruments
WO2018135919A1 (en) * 2017-01-20 2018-07-26 Samsung Electronics Co., Ltd. Apparatus and method for providing and managing security information in communication system
CN108170521A (en) * 2017-11-27 2018-06-15 拉卡拉支付股份有限公司 Switching method, device, system, wearable device and the terminal device of transportation card
US11722015B2 (en) * 2019-09-27 2023-08-08 Apple Inc. Wireless charging modules with magnetic alignment components
CN111432339A (en) * 2020-03-19 2020-07-17 RealMe重庆移动通信有限公司 Near field communication card switching method and device, storage medium and electronic equipment
CN111930227A (en) * 2020-07-02 2020-11-13 安徽华米智能科技有限公司 Method and device for automatically switching NFC card of wearable device and wearable device
CN112069848B (en) * 2020-11-12 2021-04-30 深圳市汇顶科技股份有限公司 Card selection method, chip, terminal and storage medium for NFC card simulation mode

Also Published As

Publication number Publication date
CN113573239A (en) 2021-10-29

Similar Documents

Publication Publication Date Title
CN109891934B (en) Positioning method and device
CN108604342B (en) NFC-based data transmission method and mobile device
CN113794801B (en) Method and device for processing geo-fence
US10212545B2 (en) Method and apparatus for device positioning
CN111543041B (en) Selection method of analog card and mobile device
CN113573239B (en) Virtual card switching method, electronic equipment and wearable equipment
KR20160049759A (en) Method for scanning neighboring devices and electronic apparatus thereof
CN114462560B (en) Analog card switching method, electronic equipment and communication system
CN103176192A (en) Mobile terminal and positioning satellites selecting method thereof
CN114463898A (en) Express delivery pickup reminding method and device
CN111629337B (en) Method and terminal for controlling network searching
CN113382363B (en) Method and device for sending messages based on different networks
WO2022247571A1 (en) Method for switching virtual card, and electronic device
CN112400346A (en) Server apparatus and method for collecting location information of other apparatus
EP4138434A1 (en) Method for detecting bluetooth positioning device, device, and storage medium
CN113242349B (en) Data transmission method, electronic equipment and storage medium
US11343644B2 (en) Neighbor awareness method, beacon device, and mobile terminal
WO2022228059A1 (en) Positioning method and apparatus
CN113810850B (en) Method for creating positioning database and electronic equipment
CN113225787B (en) Wi-Fi scanning method, terminal equipment and storage medium
CN114449446B (en) Virtual card switching method and electronic equipment
CN114501316B (en) Virtual card switching method and electronic equipment
CN116668951B (en) Method for generating geofence, electronic equipment and storage medium
CN117440319A (en) Positioning method and electronic equipment
CN117376880A (en) Switching method and terminal of security service

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