CN114697927A - Card information processing method and device, terminal device and storage medium - Google Patents

Card information processing method and device, terminal device and storage medium Download PDF

Info

Publication number
CN114697927A
CN114697927A CN202011612402.9A CN202011612402A CN114697927A CN 114697927 A CN114697927 A CN 114697927A CN 202011612402 A CN202011612402 A CN 202011612402A CN 114697927 A CN114697927 A CN 114697927A
Authority
CN
China
Prior art keywords
terminal
state
card
information
virtual 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.)
Pending
Application number
CN202011612402.9A
Other languages
Chinese (zh)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202011612402.9A priority Critical patent/CN114697927A/en
Publication of CN114697927A publication Critical patent/CN114697927A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/067Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
    • G06K19/07Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
    • G06K19/0723Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips the record carrier comprising an arrangement for non-contact communication, e.g. wireless communication circuits on transponder cards, non-contact smart cards or RFIDs
    • 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/60Subscription-based services using application servers or record carriers, e.g. SIM application toolkits

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application provides a card information processing method and device, terminal equipment and a storage medium. The method is applied to a first terminal and comprises the following steps: acquiring first position information of a second terminal through the UWB communication module; when the second terminal is detected to be located in a first area according to the first position information, registering card information of a virtual card of the second terminal; and when the displacement data of the second terminal meets the displacement condition, sending a state updating instruction to the second terminal, wherein the state updating instruction is used for indicating the second terminal to update the state of the virtual card to a target function state. The card information processing method, the card information processing device, the terminal equipment and the storage medium can prevent the state of the virtual card from being updated by mistake.

Description

Card information processing method and device, terminal device and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a card information processing method and apparatus, a terminal device, and a storage medium.
Background
Ultra Wide Band (UWB) is a carrier-free communication technology, and data is transmitted by using non-sinusoidal narrow pulses of nanosecond to picosecond levels. UWB has a high transmission speed, such as a transmission speed of 1Gbit/s (megabit/second) or more, by transmitting a very low power signal over a wide frequency spectrum. UWB is mainly applied to the fields of indoor communication, high-speed wireless LAN, home network, cordless telephone, security detection, position measurement, radar, and the like.
The terminal equipment (such as mobile phone, intelligent wearable equipment and the like) used by the user can record different card information and simulate the functions of various cards (such as public transport cards, subway cards, bank cards and the like). At present, when the functions of each simulated card on the terminal equipment are realized by using UWB, the condition of misoperation exists.
Disclosure of Invention
The embodiment of the application discloses a card information processing method and device, terminal equipment and a storage medium, which can prevent the condition of mistakenly updating the state of a virtual card.
The embodiment of the application discloses a card information processing method, which is applied to a first terminal, wherein the first terminal comprises an ultra-wideband UWB communication module, and the method comprises the following steps:
acquiring first position information of a second terminal through the UWB communication module;
when the second terminal is detected to be located in a first area according to the first position information, registering card information of a virtual card of the second terminal;
and when the displacement data of the second terminal meets the displacement condition, sending a state updating instruction to the second terminal, wherein the state updating instruction is used for indicating the second terminal to update the state of the virtual card to a target function state.
The embodiment of the application discloses a card information processing method, which is applied to a second terminal, wherein the second terminal comprises a UWB communication module, and the method comprises the following steps:
receiving an information query instruction sent by a first terminal through the UWB communication module, wherein the information query instruction is sent by the first terminal when the first terminal detects that the second terminal is located in a first area;
card information of a virtual card is obtained according to the information inquiry instruction, and the card information is sent to the first terminal, wherein the card information is used for registering in the first terminal;
and when a state updating instruction sent by the first terminal is received, updating the state of the virtual card to a target function state according to the state updating instruction, wherein the state updating instruction is sent when the first terminal determines that the displacement data of the second terminal meets the displacement condition.
The embodiment of the application discloses card information processing apparatus is applied to first terminal, first terminal includes UWB communication module, the device includes:
the positioning module is used for acquiring first position information of a second terminal through the UWB communication module;
the registration module is used for registering card information of a virtual card of the second terminal when the second terminal is detected to be positioned in a first area according to the first position information;
and the state updating module is used for sending a state updating instruction to the second terminal when the displacement data of the second terminal meets the displacement condition, wherein the state updating instruction is used for indicating the second terminal to update the state of the virtual card to a target function state.
The embodiment of the application discloses card information processing apparatus is applied to the second terminal, the second terminal includes UWB communication module, the device includes:
the receiving module is used for receiving an information inquiry instruction sent by a first terminal through the UWB communication module, wherein the information inquiry instruction is sent by the first terminal when the first terminal detects that the second terminal is located in a first area;
the sending module is used for obtaining card information of a virtual card according to the information inquiry instruction and sending the card information to the first terminal, wherein the card information is used for registering in the first terminal;
and the updating module is used for updating the state of the virtual card to a target function state according to the state updating instruction when the receiving module receives the state updating instruction sent by the first terminal, wherein the state updating instruction is sent when the first terminal determines that the displacement data of the second terminal meets the displacement condition.
The embodiment of the application discloses a terminal device, which comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor is enabled to realize the method applied to the first terminal.
The embodiment of the application discloses a terminal device, which comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor is enabled to realize the method applied to the second terminal.
An embodiment of the application discloses a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the method applied to a first terminal as described above.
An embodiment of the application discloses a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the method as described above for application to a second terminal.
The card information processing method, the device, the terminal equipment and the storage medium are disclosed by the embodiment of the application, the first terminal acquires the first position information of the second terminal through the UWB communication module, when the second terminal is detected to be positioned in the first area according to the first position information, the card information of the virtual card is acquired from the second terminal and is registered, when the position data of the second terminal meets the displacement condition, the first terminal sends a state updating instruction to the second terminal, the second terminal can update the state of the virtual card to be in a target function state according to the state updating instruction, when the second terminal is positioned in the first area, the first terminal only registers the card information of the virtual card, when the displacement data of the second terminal further meets the displacement condition, the first terminal controls the second terminal to update the virtual card to be in the target function state, just can realize the correlation function of virtual card, can prevent to appear carrying out the condition that the mistake was updated to the state of virtual card, can avoid when using UWB technique to handle the card information of virtual card, the condition of maloperation appears, has improved the processing accuracy.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a diagram illustrating an exemplary embodiment of a method for processing card information;
FIG. 2 is a timing diagram of a card information processing method according to an embodiment;
FIG. 3 is a flow diagram of a card information processing method in one embodiment;
FIG. 4 is a schematic illustration of a first region in one embodiment;
FIG. 5 is a diagram illustrating a first terminal configured with a plurality of UWB tags, according to one embodiment;
FIG. 6 is a flowchart of a card information processing method in another embodiment;
FIG. 7 is a flowchart of a card information processing method in another embodiment;
FIG. 8 is a block diagram of a card information processing apparatus in one embodiment;
FIG. 9 is a block diagram of a card information processing apparatus in another embodiment;
fig. 10 is a block diagram of a terminal device in one embodiment.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It is to be noted that the terms "comprises" and "comprising" and any variations thereof in the examples and figures of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first region may be termed a second region, and, similarly, a second region may be termed a first region, without departing from the scope of the present application. Both the first and second regions are location regions, but they are not the same location region.
UWB technology is a wireless carrier communication technology using a frequency bandwidth of 1GHz (megahertz) or more. It does not adopt sinusoidal carrier, but uses nanosecond to picosecond non-sinusoidal wave narrow pulse to transmit data, so its occupied frequency spectrum range is large. The UWB has many advantages such as strong anti-interference performance, high transmission rate, extremely wide bandwidth, low power consumption, and low transmission power, and can realize data transmission at a high transmission speed within a certain distance range (e.g., within 10 m).
In the related art, a scenario that a UWB technology is used to realize a non-inductive payment is used, when a user carries a terminal device provided with a UWB chip and enters a payment area, a payment function of a virtual card on the terminal device is automatically triggered, for example, when the user is in the payment area of a subway gate, the payment function of a subway card on the terminal device is automatically triggered without opening a two-dimensional code on the terminal device for scanning, and without approaching the terminal device to an NFC card swiping area of the subway gate, the non-inductive payment is realized.
In the above related art, when a user carries a terminal device with a UWB chip to enter a payment area, that is, the terminal device is triggered to implement a payment function of a virtual card, a situation that the user does not really want to pay although the user enters the payment area may occur, which may cause a malfunction such as a false fee deduction or a false update of a state of the virtual card.
In the embodiment of the application, a card information processing method, an apparatus, a terminal device and a storage medium are provided, which can prevent the situation of mistaken update of the state of a virtual card, avoid the situation of misoperation when UWB is used to process the card information of the virtual card, and improve the processing accuracy.
Fig. 1 is an application scenario diagram of a card information processing method in one embodiment. As shown in fig. 1, the first terminal 10 may include a UWB communication module 110, and the second terminal 20 may include a UWB communication module 210. The first terminal 10 may include, but is not limited to, a point of sale (POS) machine, a subway station gate, a card reader, and the like. The second terminal 20 may include, but is not limited to, a mobile phone, a smart wearable device, a tablet computer, and other terminal devices.
The UWB communication module 10 of the first terminal 10 may broadcast a UWB signal by which terminal devices within a certain distance (e.g., within 10 meters) thereof are scanned. When the second terminal 20 is within a certain distance range of the first terminal 10, the UWB communication module 210 receives the UWB signal broadcast by the UWB communication module 110 of the first terminal 10 and returns the UWB signal to the UWB communication module 110. The UWB communication module 110 may locate the second terminal 20 according to the UWB signal returned by the UWB communication module 210, and obtain the first location information of the second terminal 20.
When the first terminal 10 detects that the second terminal 20 is located in the first area according to the first position information of the second terminal 20 acquired by the UWB communication module 110, card information of a virtual card may be acquired from the second terminal 20 through the UWB communication module 110 and registered for the card information of the virtual card of the second terminal 20. When the displacement data of the second terminal 20 satisfies the displacement condition, the first terminal 10 may transmit a status update instruction to the second terminal. After receiving the status update command sent by the first terminal 10, the second terminal 20 may update the status of the virtual card to the target function status according to the status update command. When the second terminal 20 is in the first area, the first terminal 10 registers only the card information of the virtual card, and when the displacement data of the second terminal 20 further satisfies the displacement condition, the first terminal 10 controls the second terminal 20 to update the state of the virtual card to the target function state, so as to realize the function related to the virtual card.
FIG. 2 is a timing diagram of a card information processing method according to an embodiment. As shown in fig. 2, the card information processing method may include the following steps in processing sequence:
step 1, the first terminal 10 broadcasts a UWB signal by UWB.
And 2, if the second terminal 20 receives the UWB signal broadcast by the first terminal 10, returning the UWB signal to the second terminal 20 through the UWB communication module.
And 3, the first terminal 10 positions the second terminal 20 according to the UWB signal returned by the second terminal 20, and acquires the first position information of the second terminal 20.
And 4, when the first terminal 10 detects that the second terminal 20 is located in the first area according to the first position information, sending an information inquiry instruction to the second terminal 20 through the UWB communication module.
And step 5, the second terminal 20 receives the information inquiry instruction sent by the first terminal 10, acquires the card information of the virtual card according to the information inquiry instruction, and returns the card information of the virtual card to the first terminal 10 through the UWB communication module.
In step 6, the first terminal 10 receives the card information of the virtual card transmitted from the second terminal 20 and registers the card information.
And 7, when the displacement data of the second terminal 20 meets the displacement condition, the first terminal 10 sends a state updating instruction to the second terminal 20.
And 8, the second terminal 20 receives the state updating instruction sent by the first terminal 10, and updates the state of the virtual card to the target function state according to the state updating instruction.
As shown in fig. 3, in an embodiment, a card information processing method is provided, which is applicable to the first terminal 10 described above, and the method may include the following steps:
in step 310, first position information of the second terminal is obtained through the UWB communication module.
The first terminal may include a UWB communication module, and the UWB communication module may perform data transmission using UWB communication technology. As an embodiment, the UWB communication module may include at least a UWB chip and a UWB antenna, and the UWB chip may control the UWB antenna to broadcast a first UWB signal, and may scan a second terminal supporting UWB communication within a certain range through the broadcasted first UWB signal.
The second terminal may also include a UWB communication module, and when the second terminal receives a first UWB signal broadcast by the first terminal through the UWB communication module, may return a second UWB signal in response to the first terminal. The first terminal receives a second UWB signal returned by the second terminal, can analyze the characteristic parameters of the second UWB signal, and positions the second terminal according to the characteristic parameters to acquire first position information of the second terminal. The characteristic parameters of the second UWB signal may include, but are not limited to, a wavelength, a transmission speed, a frequency, a fading characteristic, etc. of the second UWB signal.
As a specific implementation manner, after receiving the second UWB signal, the UWB antenna in the first terminal may send the second UWB signal to the UWB chip, and the UWB chip may determine a receiving angle at which the second UWB signal is received according to the characteristic parameter of the second UWB signal, and determine the direction information of the second terminal relative to the UWB module of the first terminal according to the receiving angle.
In some embodiments, each UWB signal may carry a transmission time stamp that characterizes the time of transmission of the UWB signal. After the UWB antenna of the first terminal receives the second UWB signal returned by the second terminal, the UWB chip may record a reception time at which the UWB antenna receives the second UWB signal. The UWB chip can analyze the received second UWB signal to obtain the emission time stamp of the second UWB signal, and the distance information between the first terminal and the second terminal is obtained through calculation according to the emission time stamp, the receiving time and the signal transmission speed of the second UWB signal. And obtaining the first position information of the second terminal according to the direction information and the distance information obtained by calculation.
Alternatively, the first location information may be location information with the UWB module of the first terminal as an origin, that is, the first location information refers to distance and direction information of the second terminal relative to the UWB module of the first terminal. The first position information may be coordinate position information with the world coordinate origin as the origin, and the expression form thereof is not limited herein.
As another embodiment, the UWB communication module of the first terminal may include at least a first receiving end and a second receiving end, and the second UWB signal returned by the second terminal may be received through the UWB antennas of the first receiving end and the second receiving end, respectively. The UWB chip of the first terminal may calculate a first distance between the first receiving terminal and the second terminal and a second distance between the second receiving terminal and the second terminal, respectively, according to information such as a receiving time at which the first receiving terminal and the second receiving terminal receive the second UWB signal, and a timestamp carried by the second UWB signal, and may determine first location information of the second terminal through the first distance and the second distance. Further, the UWB chip may calculate a distance difference between the first distance and the second distance and determine first location information of the second terminal according to the distance difference.
It should be noted that, the first manner of positioning the second terminal by using the UWB communication module may also adopt other manners, and is not limited to the above-described manners.
And step 320, registering the card information of the virtual card of the second terminal when the second terminal is detected to be positioned in the first area according to the first position information.
After the first terminal acquires the first position information of the second terminal obtained by the UWB communication module, whether the first position information belongs to a first area may be a preset area near the first terminal, and when the second terminal is in the first area, it may be preliminarily determined that the second terminal may perform a function operation using the virtual card. The functional operations may include, but are not limited to, check-in operations, data resource transfer operations, authentication operations, and the like. For example, if the first terminal is an inbound gate, the first zone may be an inbound zone defined near the inbound gate, and when the second terminal is in the inbound zone, it may be determined that a card swipe inbound operation is needed.
When the first terminal detects that the second terminal is located in the first area, the first terminal can send an information inquiry instruction to the second terminal through the UWB communication module. The second terminal can acquire the card information of the virtual card after receiving the information inquiry command through the UWB communication module, and sends the card information of the virtual card to the first terminal through the UWB communication module. The card information of the virtual card may include, but is not limited to, account information, card types, and the like corresponding to the virtual card, and the card types may include, but are not limited to, a transportation card (e.g., a bus card, a subway card, and the like), a transaction card (e.g., a bank card, a credit card, and the like), and an authority card (e.g., an entrance card, a car key card, and the like).
The first terminal can register the card information of the virtual card first and store the card information in the memory, and the second terminal is not controlled to execute the corresponding functional operation of the virtual card, so that the condition of misoperation is prevented.
FIG. 4 is a schematic illustration of a first region in one embodiment. As shown in fig. 4, the first terminal may be, for example, a subway gate, and a UWB communication module may be provided in the subway gate, and position information of terminals carried by users around the subway gate may be detected through the UWB communication module. A first area 410 may be disposed in front of a communication direction of the subway gate, and when the subway gate detects that a terminal carried by a user is in the first area 410, it may be determined that the user has a high probability of needing to pass through the subway gate, the subway gate may register card information of a virtual subway card of the terminal carried by the user first, and open the gate, but the virtual subway card is not temporarily recorded as a station entry.
First terminal and second terminal are direct through UWB data transmission who carries out virtual card, and the user need not be close to the card reader with the virtual card at second terminal, also need not sweep operations such as sign indicating number, realizes the noninductive operation, improves the convenience.
Step 330, when the displacement data of the second terminal meets the displacement condition, sending a state updating instruction to the second terminal, where the state updating instruction is used to instruct the second terminal to update the state of the virtual card to the target function state.
After the first terminal registers the card information of the virtual card of the second terminal, the first terminal may acquire the displacement data of the second terminal, and determine whether the displacement data of the second terminal satisfies a displacement condition, where the displacement data may include real-time position information and movement information (such as a movement speed and a movement direction) of the second terminal, but is not limited thereto. When the displacement data of the second terminal meets the displacement condition, it can be determined that the second terminal needs to execute the corresponding function operation of the virtual card, and then the first terminal can send a state updating instruction to the second terminal. And after receiving the state updating instruction, the second terminal can update the state of the virtual card to the target function state according to the state updating instruction.
Alternatively, the displacement condition may be set according to actual requirements, for example, but not limited to, the position information of the second terminal is in the set second area, or the direction in which the second terminal moves is a designated direction and the moving distance is greater than the distance threshold, or the moving speed of the second terminal is greater than the speed threshold, and the like.
In some embodiments, the state updating instruction may carry information related to a functional operation, the related information corresponding to different functional operations may be different, and the second terminal may analyze the state updating instruction after receiving the state updating instruction to obtain the information related to the functional operation, determine a target functional state according to the information related to the functional operation, and update the state of the virtual card to the target functional state. After the state of the virtual card is updated to the target function state, the corresponding function operation of the virtual card can be realized. Whether the displacement data of the second terminal meet the displacement conditions or not is judged, the real intention of the user can be further accurately analyzed, the state of the virtual card is updated to be the corresponding target function state when the functional operation of the virtual card needs to be executed, and the situation of misoperation of the virtual card can be prevented.
For example, the first terminal is an entry gate of a subway, and when the displacement data of the second terminal meets the displacement condition, it is determined that the second terminal has entered the station, and then a state update instruction carrying relevant information such as an entry state, station information of the entry and the like can be sent to the second terminal. After receiving the state updating instruction, the second terminal can determine that the target function state is the inbound state according to the inbound state, the inbound site information and other related information, and then can update the state of the virtual card to be the inbound state and store the inbound site information.
For another example, the first terminal is a card swiping machine of a public transport, and when the displacement data of the second terminal meets the displacement condition, it is determined that the second terminal has taken a bus, a state update instruction carrying relevant information such as the bus taking state, the bus taking stop information, the bus taking fee and the like can be sent to the second terminal. After receiving the state updating command, the second terminal can determine that the target function state is the riding state according to the riding state, the station information of riding, the riding fee and other related information, and can update the state of the virtual card to the riding state, so that the operations such as fee deduction and the like can be carried out according to the riding fee.
In the embodiment of the application, a first terminal acquires first position information of a second terminal through a UWB communication module, when the second terminal is detected to be positioned in a first area according to the first position information, card information of a virtual card is acquired from the second terminal and is registered, when position data of the second terminal meets a displacement condition, the first terminal sends a state updating instruction to the second terminal, the second terminal can update the state of the virtual card to a target function state according to the state updating instruction, when the second terminal is positioned in the first area, the first terminal only registers the card information of the virtual card, and when the displacement data of the second terminal further meets the displacement condition, the first terminal controls the second terminal to update the virtual card to the target function state, so that related functions of the virtual card can be realized, and the situation that the state of the virtual card is updated by mistake can be prevented, the condition of misoperation can be avoided when the card information of the virtual card is processed by using the UWB technology, and the processing accuracy is improved.
In some embodiments, the step of sending a state update instruction to the second terminal when the displacement data of the second terminal satisfies the displacement condition includes: and if the displacement data of the second terminal meets the displacement condition in the first time period, sending a state updating instruction to the second terminal.
The first time period may be set according to actual requirements, for example, 3 minutes, 2 minutes, 5 minutes, etc., but is not limited thereto. The virtual cards corresponding to different first terminals have different use scenes and can be set to different first time periods, for example, the first terminal is a subway gate, a shorter first time period (such as 2 minutes) can be set, the first terminal is a bus card reader, a longer first time period (such as 5 minutes) can be set, and the like. Optionally, the time length of the user using the virtual card in each different virtual card use scenario may be counted, and the first time period of each virtual card use scenario is set according to the counting result, so that the first time period is more suitable for the actual situation of the user.
If the first terminal does not determine that the displacement data of the second terminal meets the displacement condition in the first time period, the second terminal can be considered not to execute the corresponding function operation of the virtual card temporarily, and the registered card information of the virtual card is deleted.
In some embodiments, after receiving the information inquiry command sent by the first terminal through the UWB communication module and returning the card information of the virtual card to the first terminal according to the information inquiry command, the second terminal may change the state of the virtual card from a first state to a registered state, where the first state may refer to a current state of the virtual card, and the current state may be an initial state or a functional state during use of the virtual card. The registration state is used for representing that the card information of the virtual card is registered by the first terminal.
For example, the first terminal is an entry gate of a subway, the virtual card is a subway card, and if the user does not enter the subway and takes a bus, the first state of the virtual card may be an initial state, which may be a default state in which the virtual card is not used. For another example, the first terminal is an outbound gate of a subway, the virtual card is a subway card, and the first state of the virtual card may be an inbound state if the user has not outbound.
After the second terminal changes the state of the virtual card from the first state to the registration state, if the second terminal does not receive the state updating instruction sent by the first terminal within the first time period, it indicates that the corresponding functional operation of the virtual card is not required to be executed temporarily, and the state of the virtual card can be restored to the first state.
For example, the first terminal is an outbound gate of a subway, the virtual card is a subway card, if the first terminal does not determine that the displacement operation of the second terminal meets the displacement condition within the first time period, the second terminal can be determined not to be outbound temporarily, the state of the virtual card can be restored to an inbound state, if the first terminal determines that the displacement operation of the second terminal meets the displacement condition within the first time period, the second terminal can be determined to be outbound, and the state of the virtual card can be updated to an outbound state.
By increasing the registration state of the virtual card in the using process and registering the card information when the second terminal is in the first area without directly updating the state of the virtual card to the target function state, the situation that the state of the virtual card is updated by mistake can be prevented.
In some embodiments, the determining, by the first terminal, whether the displacement data of the second terminal satisfies the displacement condition within the first time period may include, but is not limited to, one or more of the following determination manners:
and judging whether the second terminal passes through the second area within the first time period. After the card information of the virtual card of the second terminal is registered by the first terminal, the second terminal can be continuously positioned through the UWB communication module, and the second position information of the second terminal is obtained. The first terminal may determine whether the second location information is located in a second area, where the second area may be a preset area different from the first area. When the second terminal is in the second area, it can be determined that the second terminal needs to execute the corresponding function operation of the virtual card through the first terminal.
For example, if the first terminal is an entry gate, the first area may be an area near the entry gate before the entry gate, and the second area may be an area near the entry gate after the entry gate, and if the second terminal is in the second area after the entry gate, it is determined that the user has entered the station, the function of registering the entry of the subway card may be performed. For another example, if the first terminal is a bus card reader, the first area may be an area on the front door of the bus, and the second area may be an area in the middle or at the tail of the bus (near the rear door getting-off position), and the like.
And if the second terminal is detected to be positioned in the second area according to the second position information in the first time period, determining that the displacement data of the second terminal meets the displacement condition. It should be noted that a manner of acquiring the second location information of the second terminal by the first terminal may be consistent with the manner of acquiring the first location information of the second terminal described in the foregoing embodiment, and details are not repeated herein.
In some embodiments, in order to prevent the signals of the UWB communication module from being blocked, interfered, and the like, a plurality of UWB tags may be provided at the first terminal, and the plurality of UWB tags may be respectively provided at different positions of the first terminal and broadcast UWB signals for locating the second terminal capable of receiving the UWB signals.
The UWB communication module of the first terminal may include at least a first UWB tag and a second UWB tag, the first UWB tag may be disposed at a side of the first terminal close to the first area, and the second UWB tag may be disposed at a side of the first terminal close to the second area. The first UWB tag can be used for collecting first position information of the second terminal before card information registration of the virtual card, and the second UWB tag can be used for collecting second position information of the second terminal after card information registration of the virtual card. The first terminal can acquire first position information of the second terminal through the first UWB tag, judge whether the second terminal is in a first area according to the first position information, after card information of the virtual card is registered, acquire second position information of the second terminal through the second UWB tag, and judge whether the second terminal is in a second area according to the second position information.
Fig. 5 is a diagram illustrating a first terminal provided with a plurality of UWB tags according to an embodiment. Illustratively, as shown in fig. 5, the first terminal may be provided with a UWB tag a502 and a UWB tag B504, wherein the UWB tag a502 is provided at a side close to the first area 410, the UWB tag B504 is provided at a side close to the second area 420, the UWB tag a502 may be used for position monitoring of the second terminal which does not pass through the gate, and the UWB tag B504 may be used for position monitoring of the second terminal which passes through the gate. The UWB tag a502 and the UWB tag B504 can accurately locate the second terminal in a non-passing gate and a passing gate, respectively, so as to prevent the situation that the UWB signal sent by the first terminal cannot be received by the second terminal due to being blocked, and thus the second terminal cannot be located.
It should be noted that fig. 5 is only used to illustrate an embodiment in which a plurality of UWB tags are disposed at the first terminal, and is not used to limit the manner in which the UWB tags are disposed, and a specific disposed position and disposed data of the UWB tags may be set according to actual needs, which is not limited in this application. For example, the gate of fig. 5 may also be provided with only one UWB tag, which may be provided on top of the gate, so that the second terminal, which does not pass through the gate and passes through the gate, may be located.
And judging whether the distance between the second terminal and the first terminal in the first time period is smaller than a distance threshold value. After registering card information of a virtual card of a second terminal, the first terminal can detect distance information between the first terminal and the second terminal in real time and judge whether the distance information is smaller than a distance threshold value, if the distance information is smaller than the distance threshold value in a first time period, the second terminal is not far away from the vicinity of the first terminal, it can be clear that the second terminal needs to execute corresponding function operation of the virtual card through the first terminal, and then it can be determined that displacement data of the second terminal meets displacement conditions.
As an implementation manner, the first terminal may continue to locate the second terminal through the UWB communication module, obtain second location information of the second terminal, and determine distance information with the second terminal according to the second location information.
As another embodiment, since the data transmission distance of the UWB technology is limited, in order to more accurately obtain the distance information between the first terminal and the second terminal, the first terminal may further include another Wireless communication module, such as a bluetooth communication module, a WiFi (Wireless Fidelity) module, and the like, which is different from the UWB zone module. After registering the card information of the virtual card of the second terminal, the first terminal can establish wireless communication connection with the second terminal through the other wireless communication module so as to detect the distance information between the first terminal and the second terminal through the other wireless communication module. If the distance information is smaller than the distance threshold value in the first time period, the first terminal can determine that the displacement data of the second terminal meets the displacement condition, and can send a state updating instruction to the second terminal through the other wireless communication modules.
Optionally, after registering the card information of the virtual card of the second terminal, the first terminal may initiate a wireless communication connection request to the second terminal through another wireless communication module, so as to request the second terminal to establish a wireless communication connection. For example, the first terminal may send a bluetooth connection request to the second terminal through the bluetooth communication module, and after the second terminal is successfully paired with the first terminal and agrees to establish a bluetooth connection, the bluetooth connection is successful. The second terminal can send a wireless signal to the first terminal through the established wireless communication connection, the first terminal can determine distance information between the first terminal and the second terminal according to the signal strength of the received wireless signal, the distance information can be in a negative correlation relation with the signal strength, and the distance is smaller when the signal strength is larger.
Optionally, the first terminal establishes a wireless communication connection with the second terminal, and may send a wireless signal to the second terminal when the establishment duration of the wireless communication connection reaches a first time period, determine distance information between the first terminal and the second terminal according to the signal strength of the wireless signal returned by the second terminal, and determine that the displacement data of the second terminal satisfies the displacement condition if the distance information is less than a distance threshold.
For example, taking the first terminal as a bus card reader as an example, when the bus card reader detects that the second terminal is located in a first area set near a front door of a bus, card information of a virtual card (i.e., a bus card) of the second terminal is registered, and a wireless communication connection such as bluetooth is established with the second terminal. If the bus card reader detects that the distance between the bus card reader and the second terminal is smaller than a distance threshold value (such as 7 meters, 10 meters and the like) within a first time period through the established wireless communication connection, the bus card reader can determine that the second terminal is always on the bus, and can send a state updating instruction to the second terminal through the wireless communication connection so as to update the state of the virtual card of the second terminal into a riding state and carry out riding fee deduction operation on the virtual card.
And judging whether an instruction command sent by the second terminal is received in the first time period. After the second terminal sends the card information of the virtual card to the first terminal, the second terminal can detect the moving speed of the second terminal in a second time period through an acceleration sensor and the like, and judge whether the moving speed in the second time period is larger than a speed threshold value or not. Optionally, the moving speed in the second time period may be an average moving speed of the second terminal in the second time period, or may be a maximum moving speed of the second terminal in the second time period. If the moving speed of the second terminal in the second time period is greater than the speed threshold, the second terminal can be determined to be located on the transportation means such as the public transport and the subway, and then the corresponding functional operation of the virtual card can be actively triggered and realized. When the second terminal detects that the moving speed in the second time period is greater than the speed threshold value, the generation of the indication command can be triggered, and the indication command is sent to the first terminal.
If the first terminal receives the instruction command sent by the second terminal within the first time period, it can be determined that the second terminal needs to execute the corresponding function operation of the virtual card, and a state updating instruction can be sent to the second terminal so as to update the state of the virtual card of the second terminal to the target function state.
For example, taking the first terminal as a bus card reader as an example, when the bus card reader detects that the second terminal is in a first area set near the front door of the bus, card information of a virtual card (i.e., a bus card) of the second terminal is registered. The second terminal can detect the moving speed of the second terminal in a second time period of 5 minutes, 7 minutes and the like, and if the moving speed is greater than a speed threshold (such as 10 kilometers per hour, 15 kilometers per hour and the like), the second terminal can be determined to be on the bus, and an indication command can be sent to the bus card reader. After receiving the instruction command, the bus card reader can send a state updating instruction to the second terminal so as to update the state of the virtual card of the second terminal to a riding state, and carry out riding fee deduction operation on the virtual card.
The second terminal determines whether the function operation of the virtual card needs to be executed or not by monitoring the moving speed within a certain time, so that the state of the second terminal can be more accurately determined, and the occurrence of misjudgment is prevented.
In the embodiment of the application, by setting a further displacement condition, when the displacement data of the second terminal further meets the displacement condition, the first terminal controls the second terminal to update the virtual card to the target function state, so that the use demand of a user for the virtual card can be more accurately identified, the virtual card is accurately operated, the misoperation is prevented, and the processing accuracy is improved.
As shown in fig. 6, in one embodiment, another card information processing method is provided, which is applicable to the first terminal, and the method may include the following steps:
step 602, obtaining first position information of the second terminal through the UWB communication module.
And step 604, when the second terminal is detected to be located in the first area according to the first position information, obtaining card information of the virtual card sent by the second terminal through the UWB communication module.
The descriptions of steps 602-604 can refer to the related descriptions in the above embodiments, and are not repeated here.
In some embodiments, the second terminal may store card information of the virtual card in an Embedded secure element (eSE) of an NFC (Near Field Communication) chip through which a card emulation function is implemented. The second terminal can read the card information of the virtual card from the embedded safety element of the NFC chip and sends the card information to the first terminal through the UWB communication module.
As an embodiment, a user may select a virtual card in an application run by the second terminal, and the second terminal may obtain an identifier of the virtual card selected by the application, for example, an Identity Document (ID) of the virtual card, and read card information matching the identifier from the embedded secure element of the NFC chip according to the identifier of the virtual card.
As another embodiment, the second terminal may also obtain the current geographic location information through a Global Positioning System (GPS), and determine the virtual card to be selected according to the geographic location information, for example, if the current geographic location information of the second terminal is a subway station, the virtual card to be selected is a subway card, and if the current geographic location information is a bus station, the virtual card to be selected is a bus card. And reading card information matched with the identification from the embedded type safety element of the NFC chip according to the identification of the virtual card needing to be selected.
As another embodiment, the UWB signal transmitted by the first terminal to the second terminal may carry a device identifier of the first terminal, and the device identifier may include, but is not limited to, a device number, a Media Access Control Address (MAC) Address, and the like of the first terminal. The second terminal can obtain the device identifier through the received UWB signal, and determine the device type to which the first terminal belongs according to the device identifier, for example, the device type is a subway gate, a bus card reader, an access control system, and the like. The second terminal may determine a virtual card to be selected according to the device type, where the virtual card to be selected may match the device type of the first terminal, for example, if the device type is a subway gate, the virtual card to be selected may be a subway card, and the like. And reading card information matched with the identification from the embedded type safety element of the NFC chip according to the identification of the virtual card needing to be selected.
Step 606, registering the card information, and freezing the resources of the target amount corresponding to the virtual card according to the card information.
After the first terminal registers the card information, the card information and the target amount can be sent to the server, the server can freeze the resources of the target amount corresponding to the virtual card according to the card information, and the frozen resources are in a state that the frozen resources cannot be used. The target amount can be a fixed amount or an amount set according to actual conditions, and the resource can be a value resource such as money, virtual currency and the like which can be traded.
For example, in a scene of taking a subway, the first terminal is an outbound gate, and after the outbound gate registers card information of the second terminal, a target amount can be determined according to an inbound station of the second terminal and an outbound station corresponding to the outbound gate, and resources of the target amount corresponding to a virtual card of the second terminal are frozen first.
Step 608, if it is determined that the displacement data of the second terminal meets the displacement condition within the first time period, a state update instruction is sent to the second terminal, and the state update instruction is used for instructing the second terminal to update the state of the virtual card to the target function state.
The description of step 608 may refer to the related descriptions in the above embodiments, and is not repeated herein.
Step 610, transferring the frozen target amount of resources to the target platform.
If the first terminal determines that the displacement data of the second terminal meets the displacement condition in the first time period, it can be determined that the second terminal needs to execute the corresponding functional operation of the virtual card, the resource transfer operation can be executed on the virtual card, and the frozen target amount of resources are transferred to the target platform. Optionally, the first terminal may send a transfer instruction to the server, and after receiving the transfer instruction, the server may transfer the frozen resources of the target amount of the virtual card to the target platform, so as to implement resource transfer operation of the virtual card.
For example, in a scene of taking a bus, the first terminal is a bus card reader, and when the bus card reader detects that the second terminal is located in a first area set near a front door of the bus, card information of a virtual card (namely, a bus card) of the second terminal is registered, and the corresponding bus fee of the bus card is frozen. And if the bus card reader determines that the displacement data of the second terminal meets the displacement condition in the first time period, sending a state updating instruction to the second terminal, updating the state of the virtual card of the second terminal into a riding state, and deducting the virtual card.
In some embodiments, after the frozen target amount of resources is transferred to the target platform, the first terminal may send a state recovery instruction to the second terminal, and the second terminal may recover the state of the virtual card to the initial state after receiving the state recovery instruction, so as to ensure that the virtual card can be normally used next time.
Step 612, if it is not determined that the displacement data of the second terminal meets the displacement condition in the first time period, deleting the registered card information, and unfreezing the resources of the target amount.
If the first terminal does not determine that the displacement data of the second terminal meets the displacement condition in the first time period, the second terminal does not need to execute the corresponding function operation of the virtual card, the registered card information can be deleted, and a unfreezing instruction is sent to the server. The server can unfreeze the frozen resources of the virtual card according to the unfreezing instruction.
Alternatively, the first terminal may directly perform operations such as freezing, transferring, and unfreezing on the resources of the virtual card of the second terminal without passing through the server, and may send a corresponding freezing instruction, transferring instruction, unfreezing instruction, or the like to the second terminal, and the second terminal may perform operations such as freezing, transferring, and unfreezing on the resources of the virtual card according to the freezing instruction, transferring instruction, unfreezing instruction, or the like.
In the above embodiments, the first terminal may transmit the state update command, the state recovery command, the freeze command, the transfer command, the unfreezing command, or the like to the second terminal, and may transmit the state update command, the state recovery command, the freeze command, the transfer command, the unfreezing command, or the like through the UWB communication module, or may transmit the state update command, the state recovery command, the freeze command, the transfer command, the unfreezing command, or the like through another wireless communication module (e.g., bluetooth, WiFi, or the like), which is not limited in the embodiments of the present application.
In the embodiment of the application, when the first terminal detects that the second terminal is located in the first area, the resource transfer operation is not executed on the virtual card for the moment, but the card information of the virtual card is registered and the resource is frozen, and when the displacement data of the second terminal further meets the displacement condition, the first terminal controls the second terminal to update the virtual card to be in the target function state and performs resource transfer, so that the situation of resource mis-transfer can be prevented, and the resource safety of the virtual card is ensured.
As shown in fig. 7, in one embodiment, another card information processing method is provided, which can be applied to the second terminal described above, where the second terminal may include a UWB communication module, and the method may include the following steps:
step 710, receiving an information query instruction sent by a first terminal through a UWB communication module, where the information query instruction is sent by the first terminal when detecting that a second terminal is located in a first area.
And 720, acquiring card information of the virtual card according to the information inquiry instruction, and sending the card information to the first terminal, wherein the card information is used for registering in the first terminal.
Step 730, when a state updating instruction sent by the first terminal is received, updating the state of the virtual card to a target function state according to the state updating instruction, wherein the state updating instruction is sent when the first terminal determines that the displacement data of the second terminal meets the displacement condition.
In the embodiment of the application, a first terminal acquires first position information of a second terminal through a UWB communication module, when the second terminal is detected to be positioned in a first area according to the first position information, card information of a virtual card is acquired from the second terminal and is registered, when position data of the second terminal meets a displacement condition, the first terminal sends a state updating instruction to the second terminal, the second terminal can update the state of the virtual card to a target function state according to the state updating instruction, when the second terminal is positioned in the first area, the first terminal only registers the card information of the virtual card, and when the displacement data of the second terminal further meets the displacement condition, the first terminal controls the second terminal to update the virtual card to the target function state, so that related functions of the virtual card can be realized, and the situation that the state of the virtual card is updated by mistake can be prevented, the condition of misoperation can be avoided when UWB technology is used to process the card information of the virtual card, and the processing accuracy is improved.
In one embodiment, step 730 includes: and if the state updating instruction sent by the first terminal is received in the first time period, updating the state of the virtual card to a target function state according to the state updating instruction.
In one embodiment, after step 720, the method further comprises: detecting the moving speed of the second terminal in a second time period; and if the moving speed is greater than the speed threshold, generating an indication command and sending the indication command to the first terminal, wherein the indication command is used for triggering the first terminal to send a state updating instruction to the second terminal.
In one embodiment, after step 720, the method further comprises: changing the state of the virtual card from the first state to a registered state; and if the state updating instruction sent by the first terminal is not received within the first time period, restoring the state of the virtual card to the first state.
It should be noted that, for the description of the card information processing method applied to the second terminal provided in the embodiment of the present application, reference may be made to the related description of the card information processing method applied to the first terminal provided in the foregoing embodiments, and details are not repeated herein.
In the embodiment of the application, by setting a further displacement condition, when the displacement data of the second terminal further meets the displacement condition, the first terminal controls the second terminal to update the virtual card to the target function state, so that the use demand of a user for the virtual card can be more accurately identified, the virtual card is accurately operated, the misoperation is prevented, and the processing accuracy is improved.
As shown in fig. 8, in an embodiment, a card information processing apparatus 800 is provided, which can be applied to the first terminal, and the card information processing apparatus 800 can include a positioning module 810, a registration module 820 and a status update module 830.
And a positioning module 810, configured to acquire first position information of the second terminal through the UWB communication module.
And a registering module 820, configured to register card information of the virtual card of the second terminal when it is detected that the second terminal is located in the first area according to the first position information.
And the state updating module 830 is configured to send a state updating instruction to the second terminal when the displacement data of the second terminal meets the displacement condition, where the state updating instruction is used to instruct the second terminal to update the state of the virtual card to the target function state.
In the embodiment of the application, a first terminal acquires first position information of a second terminal through a UWB communication module, when the second terminal is detected to be positioned in a first area according to the first position information, card information of a virtual card is acquired from the second terminal and is registered, when position data of the second terminal meets a displacement condition, the first terminal sends a state updating instruction to the second terminal, the second terminal can update the state of the virtual card to a target function state according to the state updating instruction, when the second terminal is positioned in the first area, the first terminal only registers the card information of the virtual card, and when the displacement data of the second terminal further meets the displacement condition, the first terminal controls the second terminal to update the virtual card to the target function state, so that related functions of the virtual card can be realized, and the situation that the state of the virtual card is updated by mistake can be prevented, the condition of misoperation can be avoided when the card information of the virtual card is processed by using the UWB technology, and the processing accuracy is improved.
In an embodiment, the status updating module 830 is further configured to send a status updating instruction to the second terminal if it is determined that the displacement data of the second terminal meets the displacement condition within the first time period.
In one embodiment, the card information processing apparatus 800 includes a condition determining module in addition to the positioning module 810, the registration module 820, and the status updating module 830.
The positioning module 810 is further configured to obtain second position information of the second terminal through the UWB communication module after the registration module 820 registers the card information of the virtual card of the second terminal.
And the condition determining module is further used for determining that the displacement data of the second terminal meets the displacement condition when the second terminal is detected to be located in the second area according to the second position information in the first time period.
In one embodiment, the UWB communication module includes at least a first UWB tag and a second UWB tag, the first UWB tag being disposed on a side of the first terminal close to the first area, the second UWB tag being disposed on a side of the first terminal close to the second area.
The positioning module 810 is further configured to obtain first position information of the second terminal through the first UWB tag, and obtain second position information of the second terminal through the second UWB tag.
In one embodiment, the positioning module 810 is further configured to detect distance information between the first terminal and the second terminal through another wireless communication module after the registration module 820 registers the card information of the virtual card of the second terminal, where the another wireless communication module is different from the UWB communication module.
The condition determining module is further configured to determine that the displacement data of the second terminal meets the displacement condition if the distance information is smaller than the distance threshold within the first time period.
In an embodiment, the condition determining module is further configured to determine that the displacement data of the second terminal satisfies the displacement condition if an instruction command sent by the second terminal is received within the first time period, where the instruction command is generated by triggering when the second terminal detects that a moving speed of the second terminal within the second time period is greater than a speed threshold.
In the embodiment of the application, by setting a further displacement condition, when the displacement data of the second terminal further meets the displacement condition, the first terminal controls the second terminal to update the virtual card to the target function state, so that the use demand of a user for the virtual card can be more accurately identified, the virtual card is accurately operated, the misoperation is prevented, and the processing accuracy is improved.
In one embodiment, the card information processing apparatus 800 includes a freezing module, a transferring module, and a thawing module in addition to the positioning module 810, the registration module 820, the status updating module 830, and the condition determining module.
And a registration module 820, configured to acquire card information of the virtual card sent by the second terminal through the UWB communication module, and register the card information.
And a freezing module, configured to freeze, after the registration module 820 registers the card information, the resource of the target amount corresponding to the virtual card according to the card information.
And a transferring module, configured to transfer the frozen resources of the target amount to the target platform after the state updating module 830 sends the state updating instruction to the second terminal.
And a unfreezing module, configured to delete the registered card information and unfreeze the target amount of resources if it is not determined that the displacement data of the second terminal meets the displacement condition within the first time period after the registration module 820 registers the card information.
In the embodiment of the application, when the first terminal detects that the second terminal is located in the first area, the resource transfer operation is not executed on the virtual card for the moment, but the card information of the virtual card is registered and the resource is frozen, and when the displacement data of the second terminal further meets the displacement condition, the first terminal controls the second terminal to update the virtual card to be in the target function state and performs resource transfer, so that the situation of resource mis-transfer can be prevented, and the resource safety of the virtual card is ensured.
As shown in fig. 9, in an embodiment, a card information processing apparatus 900 is provided, which can be applied to the second terminal, and the card information processing apparatus 900 can include a receiving module 910, a sending module 920 and an updating module 930.
A receiving module 910, configured to receive, through the UWB communication module, an information query instruction sent by the first terminal, where the information query instruction is sent by the first terminal when detecting that the second terminal is located in the first area.
The sending module 920 is configured to obtain card information of the virtual card according to the information query instruction, and send the card information to the first terminal, where the card information is used for registration in the first terminal.
The updating module 930 is configured to update the state of the virtual card to the target function state according to the state updating instruction when the receiving module receives the state updating instruction sent by the first terminal, where the state updating instruction is sent by the first terminal when the first terminal determines that the displacement data of the second terminal meets the displacement condition.
In the embodiment of the application, when the second terminal is in the first area, the first terminal only registers the card information of the virtual card, when the displacement data of the second terminal further meets the displacement condition, the first terminal controls the second terminal to update the virtual card to the target function state, so that the related functions of the virtual card can be realized, the situation that the state of the virtual card is updated by mistake can be prevented, the situation that misoperation occurs when the card information of the virtual card is processed by using the UWB technology can be avoided, and the processing accuracy is improved.
In an embodiment, the updating module 930 is further configured to update the state of the virtual card to the target function state according to the state updating instruction if the state updating instruction sent by the first terminal is received within the first time period.
In one embodiment, the card information processing apparatus 900 further includes a speed detection module in addition to the receiving module 910, the sending module 920 and the updating module 930.
And the speed detection module is used for detecting the moving speed of the second terminal in the second time period.
The sending module 920 is further configured to generate an instruction command if the moving speed is greater than the speed threshold, and send the instruction command to the first terminal, where the instruction command is used to trigger the first terminal to send a state update instruction to the second terminal.
In an embodiment, the updating module 930 is further configured to change the state of the virtual card from the first state to the registration state after the sending module 920 sends the card information to the first terminal, and to restore the state of the virtual card to the first state if a state updating instruction sent by the first terminal is not received within the first time period.
In the embodiment of the application, by setting a further displacement condition, when the displacement data of the second terminal further meets the displacement condition, the first terminal controls the second terminal to update the virtual card to the target function state, so that the use demand of a user for the virtual card can be more accurately identified, the virtual card is accurately operated, the misoperation is prevented, and the processing accuracy is improved.
Fig. 10 is a block diagram of a terminal device in one embodiment. As shown in fig. 10, terminal device 1000 can include one or more of the following: a processor 1010, a memory 1020 and a UWB communication module 1030 each coupled to the processor 1010. Wherein the UWB communication module 1030 may be configured to locate other terminal devices, and the memory 1020 may store one or more computer programs, which may be configured to be executed by the one or more processors 1010 to implement the card information processing method applied to the first terminal as described in the above embodiments.
Processor 1010 may include one or more processing cores. The processor 1010 connects various parts within the overall terminal device 1000 using various interfaces and lines, and performs various functions of the terminal device 1000 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1020 and calling data stored in the memory 1020. Alternatively, the processor 1010 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 1010 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 1010, but may be implemented by a communication chip.
The Memory 1020 may include a Random Access Memory (RAM) or a Read-Only Memory (ROM). The memory 1020 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 1020 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like. The storage data area may also store data created by terminal device 1000 in use, and the like.
It is understood that the terminal device 1000 may include more or less structural elements than those shown in the above structural block diagrams, for example, a bluetooth module, a display device, etc., and is not limited herein.
In one embodiment, another terminal device is provided, which includes a UWB communication module, a memory and a processor, wherein the memory stores a computer program, and the computer program, when executed by the processor, causes the processor to implement the card information processing method applied to the second terminal as described in the above embodiments.
The embodiment of the application discloses a computer readable storage medium, which stores a computer program, wherein the computer program realizes the card information processing method applied to the first terminal as described in the above embodiments when being executed by a processor.
The embodiment of the application discloses a computer readable storage medium, which stores a computer program, wherein the computer program realizes the card information processing method applied to the second terminal as described in the above embodiments when being executed by a processor.
An embodiment of the present application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program can be executed by a processor to implement the card information processing method applied to the first terminal as described in the above embodiments.
An embodiment of the present application discloses a computer program product, which includes a non-transitory computer readable storage medium storing a computer program, and the computer program can be executed by a processor to implement the card information processing method applied to the second terminal as described in the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. The storage medium may be a magnetic disk, an optical disk, a ROM, etc.
Any reference to memory, storage, database, or other medium as used herein may include non-volatile and/or volatile memory. Suitable non-volatile memory can include ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), and Direct Rambus DRAM (DRDRAM).
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. Those skilled in the art should also appreciate that the embodiments described in this specification are all alternative embodiments and that the acts and modules involved are not necessarily required for this application.
In various embodiments of the present application, it should be understood that the size of the serial number of each process described above does not mean that the execution sequence is necessarily sequential, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated units, if implemented as software functional units and sold or used as a stand-alone product, may be stored in a computer accessible memory. Based on such understanding, the technical solution of the present application, which is a part of or contributes to the prior art in essence, or all or part of the technical solution, may be embodied in the form of a software product, stored in a memory, including several requests for causing a computer device (which may be a personal computer, a server, a network device, or the like, and may specifically be a processor in the computer device) to execute part or all of the steps of the above-described method of the embodiments of the present application.
The card information processing method, device, terminal device and storage medium disclosed in the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present application. Meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (18)

1. A card information processing method is applied to a first terminal, wherein the first terminal comprises an ultra-wideband UWB communication module, and the method comprises the following steps:
acquiring first position information of a second terminal through the UWB communication module;
when the second terminal is detected to be located in a first area according to the first position information, registering card information of a virtual card of the second terminal;
and when the displacement data of the second terminal meets the displacement condition, sending a state updating instruction to the second terminal, wherein the state updating instruction is used for indicating the second terminal to update the state of the virtual card to a target function state.
2. The method according to claim 1, wherein the sending a status update instruction to the second terminal when the displacement data of the second terminal satisfies a displacement condition comprises:
and if the displacement data of the second terminal meets the displacement condition in the first time period, sending a state updating instruction to the second terminal.
3. The method according to claim 2, wherein after the registering of the card information of the virtual card of the second terminal, the method further comprises:
acquiring second position information of the second terminal through the UWB communication module;
and when the second terminal is detected to be positioned in a second area according to the second position information in a first time period, determining that the displacement data of the second terminal meets a displacement condition.
4. The method according to claim 3, wherein said UWB communication module comprises at least a first UWB tag and a second UWB tag, said first UWB tag being disposed on a side of said first terminal close to a first area, said second UWB tag being disposed on a side of said first terminal close to a second area;
the acquiring, by the UWB communication module, first location information of a second terminal includes:
acquiring first position information of a second terminal through the first UWB tag;
the obtaining of the second location information of the second terminal by the UWB communication module includes:
and acquiring second position information of the second terminal through the second UWB tag.
5. The method according to claim 2, wherein the first terminal further includes another wireless communication module different from the UWB communication module, and after the registering of the card information of the virtual card of the second terminal, the method further includes:
detecting, by the other wireless communication module, distance information between the first terminal and the second terminal;
and if the distance information is smaller than the distance threshold value in the first time period, determining that the displacement data of the second terminal meets the displacement condition.
6. The method according to claim 2, wherein after the registering of the card information of the virtual card of the second terminal, the method further comprises:
and if an instruction command sent by the second terminal is received in a first time period, determining that the displacement data of the second terminal meets a displacement condition, wherein the instruction command is generated by triggering when the second terminal detects that the moving speed of the second terminal in a second time period is greater than a speed threshold value.
7. The method according to any one of claims 1 to 6, wherein the registering card information of the virtual card of the second terminal includes:
acquiring card information of a virtual card sent by the second terminal through the UWB communication module;
registering the card information, and freezing the resources of the target amount corresponding to the virtual card according to the card information;
after the sending of the status update instruction to the second terminal, the method further comprises:
transferring the frozen target amount of resources to a target platform.
8. The method of claim 7, further comprising:
and if the displacement data of the second terminal is not determined to meet the displacement condition in the first time period, deleting the registered card information, and unfreezing the resources with the target amount.
9. A card information processing method, applied to a second terminal including a UWB communication module, the method comprising:
receiving an information query instruction sent by a first terminal through the UWB communication module, wherein the information query instruction is sent by the first terminal when the first terminal detects that the second terminal is located in a first area;
obtaining card information of a virtual card according to the information inquiry instruction, and sending the card information to the first terminal, wherein the card information is used for registering in the first terminal;
and when a state updating instruction sent by the first terminal is received, updating the state of the virtual card to a target function state according to the state updating instruction, wherein the state updating instruction is sent when the first terminal determines that the displacement data of the second terminal meets the displacement condition.
10. The method according to claim 9, wherein the updating the state of the virtual card to a target function state according to the state update instruction when receiving the state update instruction sent by the first terminal comprises:
and if a state updating instruction sent by the first terminal is received within a first time period, updating the state of the virtual card to a target function state according to the state updating instruction.
11. The method according to claim 9, wherein after the obtaining card information of the virtual card according to the information inquiry instruction and sending the card information to the first terminal, the method further comprises:
detecting the moving speed of the second terminal in a second time period;
and if the moving speed is greater than a speed threshold, generating an indication command, and sending the indication command to the first terminal, wherein the indication command is used for triggering the first terminal to send a state updating instruction to the second terminal.
12. The method of claim 9, wherein after said sending the card information to the first terminal, the method further comprises:
changing the state of the virtual card from a first state to a registered state;
and if the state updating instruction sent by the first terminal is not received within a first time period, restoring the state of the virtual card to the first state.
13. A card information processing apparatus applied to a first terminal including a UWB communication module, the apparatus comprising:
the positioning module is used for acquiring first position information of a second terminal through the UWB communication module;
the registration module is used for registering card information of a virtual card of the second terminal when the second terminal is detected to be positioned in a first area according to the first position information;
and the state updating module is used for sending a state updating instruction to the second terminal when the displacement data of the second terminal meets the displacement condition, wherein the state updating instruction is used for indicating the second terminal to update the state of the virtual card to a target function state.
14. A card information processing apparatus applied to a second terminal including a UWB communication module, the apparatus comprising:
a receiving module, configured to receive, through the UWB communication module, an information query instruction sent by a first terminal, where the information query instruction is sent by the first terminal when detecting that the second terminal is located in a first area;
the sending module is used for obtaining card information of a virtual card according to the information inquiry instruction and sending the card information to the first terminal, wherein the card information is used for registering in the first terminal;
and the updating module is used for updating the state of the virtual card to a target function state according to the state updating instruction when the receiving module receives the state updating instruction sent by the first terminal, wherein the state updating instruction is sent when the first terminal determines that the displacement data of the second terminal meets the displacement condition.
15. A terminal device comprising a memory and a processor, the memory having stored thereon a computer program which, when executed by the processor, causes the processor to carry out the method of any one of claims 1 to 8.
16. A terminal device comprising a memory and a processor, the memory having stored thereon a computer program which, when executed by the processor, causes the processor to carry out the method of any of claims 9 to 12.
17. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1 to 8.
18. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 9 to 12.
CN202011612402.9A 2020-12-30 2020-12-30 Card information processing method and device, terminal device and storage medium Pending CN114697927A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011612402.9A CN114697927A (en) 2020-12-30 2020-12-30 Card information processing method and device, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011612402.9A CN114697927A (en) 2020-12-30 2020-12-30 Card information processing method and device, terminal device and storage medium

Publications (1)

Publication Number Publication Date
CN114697927A true CN114697927A (en) 2022-07-01

Family

ID=82132174

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011612402.9A Pending CN114697927A (en) 2020-12-30 2020-12-30 Card information processing method and device, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN114697927A (en)

Similar Documents

Publication Publication Date Title
US11323865B2 (en) Vehicle tracking system using smart-phone as active transponder
CN109583877B (en) Location-based credential selection for wireless transactions
US10235816B2 (en) Methods and systems for electronic payment for parking in gated garages
AU2019101846A4 (en) Identity recognition method and apparatus based on dynamic rasterization management, and server
CN111432339A (en) Near field communication card switching method and device, storage medium and electronic equipment
US20180068315A1 (en) Short range wireless translation methods and systems for hands-free fare validation
CN108985748B (en) Mobile device and reader for facilitating transactions
US8532619B2 (en) System for authorizing the use of communication devices by proximity
CN109660949B (en) Wireless scanning control method, device, mobile terminal and storage medium
CN102215051B (en) Method for determining distance threshold in process of starting transaction by virtue of radio frequency SIM (subscriber identity model) card based on low-frequency magnetic communication
CN102215050A (en) Detection method for radio-frequency SIM (Subscriber Identity Module) card collision with low-frequency magnetic communication
US11049347B2 (en) Gate apparatus and method in gate apparatus
CN112492518B (en) Card determination method, device, electronic equipment and storage medium
CN110493455A (en) Apparatus control method, device and mobile terminal
CN114697927A (en) Card information processing method and device, terminal device and storage medium
WO2023024733A1 (en) Parking management methods and apparatus, parking management system, electronic device, computer-readable medium
CA3055031C (en) Short range wireless translation methods and systems for hands-free fare validation
CN115130485A (en) Card reader, card terminal equipment, card swiping method and control unit
CN115668989A (en) Scene recognition method and electronic equipment
US20240152900A1 (en) Method for contactless communication between a communicating object and a communication device
CN114493579A (en) Mobile payment method, mobile payment device, electronic equipment and storage medium
CN114038108A (en) Access control method and device and electronic equipment
KR20230158450A (en) Server and method for processing payment thereof
CN115270012A (en) Information pushing method and related device
CN117765628A (en) Vehicle identification method, device, equipment and storage medium

Legal Events

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