CN111784334A - Analog card switching method, terminal device and storage medium - Google Patents

Analog card switching method, terminal device and storage medium Download PDF

Info

Publication number
CN111784334A
CN111784334A CN202010694120.1A CN202010694120A CN111784334A CN 111784334 A CN111784334 A CN 111784334A CN 202010694120 A CN202010694120 A CN 202010694120A CN 111784334 A CN111784334 A CN 111784334A
Authority
CN
China
Prior art keywords
card
analog card
terminal equipment
type
enabled
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
CN202010694120.1A
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 CN202010694120.1A priority Critical patent/CN111784334A/en
Publication of CN111784334A publication Critical patent/CN111784334A/en
Priority to PCT/CN2021/095945 priority patent/WO2022012173A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • G06Q20/3278RFID or NFC payments by means of M-devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/34Payment architectures, schemes or protocols characterised by the use of specific devices or networks using cards, e.g. integrated circuit [IC] cards or magnetic cards
    • G06Q20/351Virtual cards
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/20Individual registration on entry or exit involving the use of a pass
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Abstract

The disclosure provides an analog card switching method, terminal equipment and a computer readable storage medium, and relates to the technical field of near field communication. The method comprises the following steps: after receiving the radio frequency signal, continuously monitoring whether the terminal equipment is in a motion state; when the terminal equipment is in a motion state, determining a started analog card in the terminal equipment; and when the enabled analog card in the terminal equipment is the first type analog card, switching the enabled analog card in the terminal equipment into the second type analog card. The method and the device can improve the card swiping efficiency and the card swiping success probability, so that the user experience can be improved.

Description

Analog card switching method, terminal device and storage medium
Technical Field
The present disclosure relates to the field of near field communication technologies, and in particular, to an analog card switching method, a terminal device, and a computer-readable storage medium.
Background
Currently, more and more terminal devices are equipped with NFC (Near Field Communication) functions. After opening/binding a bus card, a bank card and an access control card on the terminal equipment, a user can swipe the card through a simulation card in the terminal equipment when taking a bus, purchasing commodities or entering a building with access control.
However, after a plurality of analog cards are opened on the terminal device, one of the analog cards is usually activated when the terminal device is in an idle state. When other analog cards are used for swiping, the card swiping can be successful only after the analog cards are automatically or manually switched, so that the efficiency is low, and the user experience is poor.
Disclosure of Invention
An object of the present disclosure is to provide an analog card switching method, a terminal device, and a computer-readable storage medium, thereby overcoming, to some extent, the problems of low efficiency and success rate when swiping a card through an analog card due to the limitations and disadvantages of the related art.
According to a first aspect of the present disclosure, an analog card switching method is provided, which is applied to a terminal device, and includes:
after receiving the radio frequency signal, continuously monitoring whether the terminal equipment is in a motion state;
when the terminal equipment is in a motion state, determining a started analog card in the terminal equipment;
and when the enabled analog card in the terminal equipment is the first type analog card, switching the enabled analog card in the terminal equipment into a second type analog card.
According to a second aspect of the present disclosure, there is provided a terminal device comprising:
the near field communication module is used for receiving radio frequency signals;
the processor is used for continuously monitoring whether the terminal equipment is in a motion state or not after the near field communication module receives the radio frequency signal; when the terminal equipment is in a motion state, determining a started analog card in the terminal equipment; and when the enabled simulation card in the terminal equipment is the first type simulation card, the control application program switches the enabled simulation card in the terminal equipment into the second type simulation card.
According to a third aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the above-described method of emulating card switching.
Exemplary embodiments of the present disclosure may have some or all of the following benefits:
in the analog card switching method provided in an example embodiment of the present disclosure, when a user performs a card swiping operation through a terminal device, the terminal device is usually in a stationary state. And when the user passes through a security door or other security equipment, the terminal equipment is in motion. Therefore, when the motion state of the terminal device is judged to be motion, the terminal device can be determined to pass through the security check device. At the moment, the started analog card in the terminal equipment is switched to the analog card of the second type, such as a bus card, so that the analog card can be switched in advance, and the card swiping and arrival efficiency and the card swiping success probability of a user are improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
FIG. 1 illustrates a schematic structural diagram of an electronic device suitable for use in implementing embodiments of the present disclosure;
FIG. 2 illustrates a flow chart of an analog card switching method of an embodiment of the present disclosure;
FIG. 3 illustrates yet another flow chart of an analog card switching method of an embodiment of the present disclosure;
fig. 4 shows a schematic structural diagram of a terminal device and a security inspection device in an embodiment of the present disclosure;
FIG. 5 is a schematic diagram illustrating an architecture of a terminal device and a gate in an embodiment of the disclosure;
fig. 6 shows a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
Referring to fig. 1, fig. 1 shows a schematic structural diagram of an electronic device suitable for implementing an embodiment of the present disclosure. It should be noted that the electronic device 100 shown in fig. 1 is only an example, and should not bring any limitation to the functions and the scope of the application of the embodiments of the present disclosure.
As shown in fig. 1, the electronic device 100 may specifically include: the mobile terminal includes a processor 110, a wireless communication module 120, a mobile communication module 130, a charging management module 140, a power management module 141, a battery 142, a USB (Universal Serial Bus) interface 150, an antenna 1, an antenna 2, an internal memory 161, an external memory interface 162, a display screen 170, a sensor module 180, and the like. The sensor module 180 may include: a gyro sensor 181, and the like.
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor, a modem processor, a graphics processor, an image signal processor, a controller, a video codec, a digital signal processor, a baseband processor, and/or a neural network processor, among others. The different processing units may be separate devices or may be integrated into one or more processors. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. The memory may store instructions for implementing six modular functions: detection instructions, connection instructions, information management instructions, analysis instructions, data transmission instructions, and notification instructions, and are controlled to be executed by the processor 110. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory, avoiding repeated accesses, reducing the latency of the processor 110, and thus increasing the efficiency of the system.
The wireless communication module 120 may provide a solution for wireless communication applied to the electronic device 100, including wireless local area network, bluetooth, global navigation satellite system, frequency modulation, NFC technology, infrared technology, and the like. The wireless communication module 120 may be one or more devices integrating at least one communication processing module. The wireless communication module 120 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 120 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 130 and antenna 2 is coupled to wireless communication module 120, such that electronic device 100 may communicate with networks and other devices via wireless communication techniques.
Among them, the NFC technology is a near field (within 10 cm) wireless communication technology. The working frequency is 13.56MHz, and the technology is widely applied to the life of people at present, such as common subway, public transport, UnionPay flash payment, access control systems and the like.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 150. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the wireless communication module 120, the mobile communication module 130, a modem processor, a baseband processor, and the like.
The gyro sensor 181 may be used to determine the motion pose of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., the x, y, and z axes) may be determined by gyroscope sensor 181. The gyro sensor 181 may also be used for navigation and the like.
The technical solutions of the embodiments of the present disclosure are explained in detail below.
For terminal equipment with an NFC function, the terminal equipment can simulate a bus card, a bank card, an access control card and the like. Therefore, the user can directly carry out card swiping operation through the terminal equipment. When the card swiping operation is performed through the terminal device, a scene that the analog card needs to be switched often exists, for example, after a user swipes a bus through the terminal device, an entrance guard may need to be swiped, and at this time, the analog card can be switched in a manual mode or an automatic mode.
The efficiency of switching the analog card in a manual mode is low. When the analog cards are automatically switched, one analog card can be used as a default card, and when the terminal equipment is in an idle state, the default card is started. That is, the default card is in an active state, while the other emulated cards are in an inactive state. When the terminal equipment is used for swiping a card, according to an ISO (International organization for Standardization) protocol, at an ISO14443-3 protocol layer, the card reader can extract and identify UID (Unique Identifier) information, and according to a rule of the card reader, the card reader selects whether the transaction is ended or continues to enter an ISO/IEC14443-4 layer or a proprietary protocol layer.
For example, for an access card, after extracting UID information of the access card, the card reader may determine whether the card is legal or illegal. For the bus card and the bank card, after the UID information is extracted by the card reader, the card reader can enter an ISO14443-4 layer to perform further transactions (such as fee deduction, recharging and the like).
In the analog card switching scheme in the related art, when the terminal device is in an idle state, the terminal device can be switched to a bus card, namely, the bus card is used as a default card. Therefore, when a user takes a bus or a subway, card switching is not needed, the transaction speed is increased, and congestion is reduced. When the terminal equipment approaches the card reader, the corresponding card is selected according to the final confirmation information of the ISO14443-3 layer. However, when the user swipes the access control system through the terminal device, the first card swiping is inevitably failed because the UID information is incorrect, and the access control system can give a prompt of an illegal user. Only when the user puts the terminal equipment on the access control system all the time, the terminal equipment can be swiped successfully until the terminal equipment is intelligently switched to the access control card. Therefore, in the related art, the card swiping efficiency is low and the card swiping success probability is low by simulating card swiping.
In order to solve the above problems, the present disclosure provides an analog card switching method, a terminal device, and a computer-readable storage medium, so as to improve card swiping efficiency and card swiping success probability.
Referring to fig. 2, fig. 2 shows a flowchart of an analog card switching method according to an embodiment of the present disclosure, which is applied to a terminal device, and may include the following steps:
step S210, after receiving the radio frequency signal, continuously monitoring whether the terminal device is in a motion state.
Step S220, when the terminal device is in a motion state, determining the enabled analog card in the terminal device.
Step S230, when the enabled analog card in the terminal device is the first type analog card, switching the enabled analog card in the terminal device to the second type analog card.
In the analog card switching method of the embodiment of the present disclosure, when a user performs a card swiping operation through a terminal device, the terminal device is usually in a stationary state. And when the user passes through a security door or other security equipment, the terminal equipment is in motion. Therefore, when the motion state of the terminal device is judged to be motion, the terminal device can be determined to pass through the security check device. At the moment, the started analog card in the terminal equipment is switched to the analog card of the second type, such as a bus card, so that the analog card can be switched in advance, and the card swiping and arrival efficiency and the card swiping success probability of a user are improved.
The analog card switching method according to the embodiment of the present disclosure is described in more detail below.
Referring to fig. 3, fig. 3 shows another flowchart of an analog card switching method according to an embodiment of the present disclosure, which is applied to a terminal device, and may include the following steps:
step S310, after receiving the radio frequency signal, continuously monitoring whether the terminal equipment is in a motion state.
In the embodiment of the disclosure, the terminal device may perform radio frequency communication with the card reader, and may also perform communication with other devices having a radio frequency transceiver module. For example, the terminal device may also communicate with a security device via radio frequency. Wherein the radio frequency communication distance is generally within 10 cm.
In general, when a user swipes a card through a terminal device, the terminal device is basically in a static state. However, the user usually passes through the security check device first while taking a subway, and the terminal device is moved when the user passes through the security check device. On the basis, whether the terminal equipment passes through the security check equipment or not can be judged according to the motion state of the terminal equipment, and whether the analog card is switched or not is determined.
Referring to fig. 4, fig. 4 shows a schematic structural diagram of a terminal device and a security check device in the embodiment of the present disclosure, and it can be seen that the near field communication module 411 in the security check device 410 and the near field communication module 421 in the terminal device 420 perform near field communication. After receiving the rf signal transmitted by the nfc module 411, the nfc module 421 may report the received rf signal to the processor 423. Processor 423 then continuously monitors the state of motion of the terminal device.
In an implementation manner of the present disclosure, the method for the processor 423 to continuously monitor the motion state of the terminal device 420 may specifically be: the motion information of the terminal device 420 is continuously acquired for a preset period of time. Since the motion sensor 422 may be used to determine the motion pose of the terminal device 420. Accordingly, motion information provided by motion sensor 422 may be acquired. Among other things, motion sensor 422 may be a gyroscope sensor, an accelerometer, or the like.
Thereafter, based on the motion information, the motion state of the terminal device 420 is determined. The preset time period may be time spent by the user when the user passes through the security inspection device under normal conditions, and may be, for example, 2s or 3s, which is not specifically limited by the present disclosure.
The storage module 424 in the terminal device 420 may store near field communication information of the terminal device, and the storage module 424 may be an embedded secure storage unit.
Step S320, when the terminal device is in a motion state, detecting whether a radio frequency signal is received after a preset time period.
As previously mentioned, the terminal device is in motion when the user passes the security check device. Therefore, when the motion state of the terminal device is determined to be motion, it can be determined that the user passes through the security check device. Because the distance of the near field communication is generally within 10cm, the user gradually gets away from the security check device in the movement process, the near field communication connection between the terminal device and the security check device is disconnected, and the radio frequency signal sent by the security check device can not be received. Or, even if the rf signal can be received, the strength of the rf signal is gradually decreased, and when the strength of the received rf signal is lower than a certain threshold, it can be considered that the rf signal is no longer received.
It should be noted that, at different time periods, the time spent by the user through the security check device is different. For example, in the peak time period between work and off duty, the time spent by the user through the security check equipment is long, and the preset time can be 5s or 6 s. And in other time periods, the time spent by the user through the security check device is shorter, and the preset time period can be 2s or 3s and the like.
Step S330, when the radio frequency signal is not received after the preset time period, the enabled analog card in the terminal equipment is determined.
Specifically, if the terminal device does not receive the radio frequency signal after the preset time period, it may be further determined that the terminal device has left the security inspection device and the user is about to take a subway or other transportation. The enabled analog card in the terminal equipment can be switched in advance, and preparation is made for the card swiping operation when the user passes through the gate. The enabled analog cards in the terminal equipment refer to the analog cards in an activated state, the number of the enabled analog cards is 1, the other analog cards are all in an inactivated state, and when the terminal equipment conducts card swiping operation, the enabled analog cards conduct card swiping operation.
In the embodiment of the disclosure, the enabled analog card in the terminal device can be represented by the analog card type selection variable. For example, when the terminal device does not perform a card swiping operation, an enabled analog card in the terminal device may be set as an access card, and a parameter value of the analog card type selection variable may be set as a first parameter value (e.g., may be 0, etc.). After the analog cards are switched manually or automatically, the parameter values of the analog card type selection variables can be modified, so that different parameter values correspond to different types of analog cards. For example, the parameter value corresponding to the access control card is a first parameter value 0, the parameter value corresponding to the bus card is a second parameter value 1, the parameter value corresponding to the bank card is a third parameter value 2, and the like.
Therefore, the parameter value of the analog card type selection variable can be obtained; and determining the enabled analog card in the terminal equipment based on the parameter value. For example, if the obtained parameter value is 0, it may be determined that the enabled analog card in the terminal device is an access card.
Step S340, when the enabled analog card in the terminal device is the first type analog card, switching the enabled analog card in the terminal device to the second type analog card.
Specifically, the enabled analog card in the terminal device is set as an access control card by default, namely, the first type of analog card, and the enabled analog card in the terminal device is the first type of analog card when the user does not perform manual switching. At this time, the enabled analog card in the terminal device may be directly switched to the second type of analog card. Wherein the second type of analog card is a bus card. Accordingly, after the switching is completed, the parameter value of the analog card type selection variable may be set to the second parameter value.
Therefore, after the user is detected to pass through the security check equipment, the started analog card is switched to the bus card, so that the card swiping efficiency and the card swiping success probability can be improved when the user passes through the gate and swipes the card through the terminal equipment.
And step S350, acquiring the in-and-out state of the second type of simulation card.
It should be noted that, after the user passes through the security inspection device, and then passes through the gate to perform the card swiping operation, near field communication may be performed between the terminal device and the gate. Referring to fig. 5 in particular, when the user performs a card swiping operation through the terminal device, the near field communication module 521 in the terminal device 520 may perform near field communication with the near field communication module 511 in the gate 510. When a user enters or leaves the station, according to a transaction process, the gate machine confirms that the analog card is legal in an ISO/IEC14443-4 protocol layer, and after the balance meets the requirement, the station entering station, the station entering time and the station entering/leaving state (station entering) of the analog card can be issued to the terminal equipment through a corresponding application protocol data unit instruction, and then the gate is opened.
After receiving the radio frequency signal and the application protocol data unit instruction sent by the near field communication module 511 in the gate 510, the near field communication module 521 in the terminal device 520 may store the application protocol data unit instruction in the storage module 522, where the storage module 522 may be an embedded secure storage unit or the like.
An application program (e.g., a wallet application) in the terminal device may obtain the application protocol data unit command from the storage module 522, extract an inbound and outbound status from the application protocol data unit command, and report the inbound and outbound status to the processor 523.
And step S360, when the station entering and exiting state is the station entering state, the enabled simulation card in the terminal equipment is kept to be the second type simulation card.
In the case that the user passes through the security inspection device first, it can be known from step S340 that the enabled analog card in the terminal device is switched to the second type of analog card. Under the condition that the user does not perform manual switching, after the user leaves the gate and enters the station for a period of time, the mobile phone enters an idle state, and the parameter value of the analog card type selection variable can be read to be still the second parameter value. Therefore, the enabled analog card in the terminal device is still the second type analog card, and at this time, since the user needs to use the bus card when swiping the card next time, and may not use other analog cards in the meantime, it is enough to keep the enabled analog card in the terminal device as the second type analog card.
Under the normal condition, when a user takes a subway to go out of a station, the user needs to swipe the card once again, and the user cannot manually switch the simulation card. However, if the user manually switches the analog card, the analog card enabled in the terminal device is no longer the second type of analog card, and the analog card enabled in the terminal device may be switched to the second type of analog card.
Step S370, when the inbound and outbound status is the outbound status, switching the enabled analog card in the terminal device to the first type analog card.
Specifically, the outbound process is similar to the inbound process, except that the gate issues the card to the terminal device in the outbound state and opens the gate, and the gate can also deduct fees according to the inbound site, and update the card balance. Likewise, in the case where the user does not perform manual switching, the enabled analog card in the terminal device is an analog card of the second type. And after the terminal equipment receives the outbound information, switching the enabled analog card in the terminal equipment into the first type of analog card. Accordingly, after the switching is completed, the parameter value of the analog card type selection variable is set to the first parameter value.
After the user leaves the gate and goes out of the gate for a period of time, the terminal equipment enters an idle state, the value of the parameter value of the analog card type selection variable can be detected to be a first parameter value, and then the enabled analog card in the terminal equipment is determined to be the first type analog card.
Corresponding to the above step S320, when the motion state of the terminal device is still, it indicates that the terminal device is not passing through the security check device, but performing the card swiping operation. The user may be swiping the access control system, or may be swiping the gate or a unionpay POS (point of sale) machine, etc. In this case, no processing may be performed.
In another scenario, that is, in a case where the user does not pass through the security check device, for example, when the user swipes a card at a bus station, the user may not pass through the security check device, since the enabled analog card of the terminal device is the first type of analog card by default. Therefore, the user can perform manual switching operation to enable the enabled simulation card in the terminal device to be the second type simulation card.
It should be noted that, for some buses, the card may need to be swiped twice, that is, the card is swiped once when getting on the bus and the card is swiped once again when getting off the bus. At this time, when the user performs the card swiping operation, the terminal device may also acquire the in-and-out state of the second type of analog card. And when the station entering and exiting state is the station entering state, keeping the enabled analog card in the terminal equipment as the second type analog card. And when the in-out state is the out-of-station state, switching the enabled analog card in the terminal equipment into the first type of analog card.
For other buses, the card may need to be swiped once, namely, the card is swiped once when getting on the bus. The enabled analog card in the terminal device may be switched to the first type of analog card again after the card swiping operation is completed. That is, by default, the enabled emulation card in the terminal device is made to be the first type of emulation card.
In the embodiment of the present disclosure, the above processes are all switching between the first type of analog card and the second type of analog card. In addition to the automatic switching process described above, the user can make manual switching at any time. For example, the user may manually switch before the terminal device automatically switches. In this case, then, the terminal device may no longer automatically switch until the user swipes the card, since the user has manually switched to the correct emulation card.
In addition, the user can perform manual switching after the terminal equipment is automatically switched. For example, there are a plurality of analog cards of the same type in the terminal device, and after the terminal device is automatically switched, the user manually switches to the analog card that the user wants to use. The terminal device may also store the scene and the operation, so that the terminal device may also automatically switch to the simulated card manually selected by the user in the case that the same scene appears next time.
After the user performs the manual switching operation in the terminal device, the terminal device may switch the enabled analog card in the terminal device to the target type analog card to be switched by the user in response to the analog card switching operation of the user. When the target type is the third type, after the card swiping operation is completed, the enabled simulation card in the terminal device can be switched to the first type simulation card, so that the enabled simulation card in the terminal device is the first type simulation card. The third type of analog card may be other types of analog cards such as a bank card.
Of course, the first type of analog card may also be a bank card, and correspondingly, the third type of analog card may be an access card or the like. At this moment, the user can directly swipe the card under the condition of swiping the bank-connected POS machine, and before swiping the entrance guard, the started analog card in the terminal equipment can be manually switched into the entrance guard card.
According to the analog card switching method, the started analog card in the terminal equipment is set to be the first type of analog card under the default condition, and a user can directly swipe the door through the terminal equipment. When the user passes through the security check device, the second type of analog card can be automatically switched to in the above manner. Holding the second type of analog card while inbound; when the user goes out of the station, the user is switched to the first type of analog card. Therefore, the corresponding simulation card can be started according to the motion state of the terminal equipment and the in/out state of the simulation card instead of starting a certain simulation card all the time, so that the subway card swiping transaction speed can be considered while the access control card swiping success is guaranteed, and the user experience can be improved.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Further, in this exemplary embodiment, there is also provided a terminal device, and referring to fig. 6, the terminal device 600 includes:
a near field communication module 610 for receiving radio frequency signals;
the processor 620 is configured to continuously monitor whether the terminal device is in a motion state after the near field communication module 610 receives the radio frequency signal; when the terminal equipment is in a motion state, determining a started analog card in the terminal equipment; and when the enabled simulation card in the terminal equipment is the first type simulation card, the control application program switches the enabled simulation card in the terminal equipment into the second type simulation card.
In an exemplary embodiment of the disclosure, the processor 620 continuously monitors whether the terminal device is in motion by:
continuously acquiring motion information of the terminal equipment within a preset time period;
and determining whether the terminal equipment is in the motion state or not based on the motion information.
In an exemplary embodiment of the present disclosure, the near field communication module 610 is configured to detect whether a radio frequency signal is received after a preset time period;
the processor 620 is specifically configured to execute the step of determining the enabled analog card in the terminal device when it is determined that the near field communication module does not receive the radio frequency signal after the preset time period.
In an exemplary embodiment of the present disclosure, the processor is further configured to obtain an inbound and outbound status of the second type of analog card; and when the station entering and exiting state is the station entering state, the enabled analog card in the terminal equipment is kept to be the second type analog card.
In an exemplary embodiment of the disclosure, the processor is further configured to switch the enabled analog card in the terminal device to the first type of analog card when the inbound and outbound status is the outbound status.
In an exemplary embodiment of the disclosure, the processor 620 determines the enabled analog card in the terminal device by:
acquiring parameter values of analog card type selection variables;
based on the parameter values, the enabled analog cards in the terminal device are determined.
In an exemplary embodiment of the present disclosure, the processor 620 is further configured to set a parameter value of the emulation card type selection variable to a first parameter value after switching an emulation card that has been enabled in the terminal device to an emulation card of a first type; and after the enabled analog card in the terminal equipment is switched into the analog card of the second type, setting the parameter value of the analog card type selection variable as the second parameter value.
In an exemplary embodiment of the disclosure, the processor 620 is further configured to not process when the motion state of the terminal device is still.
In an exemplary embodiment of the present disclosure, the processor 620 is further configured to switch the enabled emulation card in the terminal device to the emulation card of the target type to be switched by the user in response to the emulation card switching operation of the user.
In an exemplary embodiment of the present disclosure, the processor 620 is further configured to switch the enabled emulated card in the terminal device to the emulated card of the first type after the card swiping operation is completed when the target type is the third type.
The specific details of each module or unit in the terminal device and the card reader have been described in detail in the corresponding analog card switching method, and therefore are not described herein again.
It should be noted that the near field communication module 610 in the terminal device 600 may be an independent module, or may be a sub-module in a wireless communication module in the electronic device shown in fig. 1, which is not limited herein. The processor 620 in the terminal device 600 may be a processor in an electronic device as shown in fig. 1, for example, may be a general processor, including: a central processing unit, etc., and may also be a field programmable gate array or other programmable logic device or transistor logic device, etc.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
In an exemplary embodiment of the disclosure, there is also provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any one of the above.
It should be noted that the computer readable storage medium shown in the present disclosure can be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer-readable signal medium may include a propagated data signal with computer-readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, radio frequency, etc., or any suitable combination of the foregoing.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (11)

1. An analog card switching method is applied to terminal equipment and comprises the following steps:
after receiving the radio frequency signal, continuously monitoring whether the terminal equipment is in a motion state;
when the terminal equipment is in a motion state, determining a started analog card in the terminal equipment;
and when the enabled analog card in the terminal equipment is the first type analog card, switching the enabled analog card in the terminal equipment into a second type analog card.
2. The method of claim 1, wherein the continuously monitoring whether the terminal device is in motion comprises:
continuously acquiring motion information of the terminal equipment within a preset time period;
and determining whether the terminal equipment is in a motion state or not based on the motion information.
3. The method of claim 2, wherein before said determining an enabled emulation card in said terminal device while said terminal device is in motion, said method further comprises:
and when the radio frequency signal is not received after the preset time period, executing the step of determining the enabled analog card in the terminal equipment.
4. The method according to claim 1, wherein after said switching the enabled analog card in the terminal device to the second type of analog card, the method further comprises:
acquiring the station entering and exiting states of the second type of simulation card;
and when the station entering and exiting state is the station entering state, keeping the enabled analog card in the terminal equipment as the second type analog card.
5. The method of claim 4, wherein after said obtaining the inbound and outbound status of the second type of analog card, the method further comprises:
and when the station entering and exiting state is the station exiting state, switching the enabled analog card in the terminal equipment into the first type of analog card.
6. The method of claim 1, wherein the determining the enabled analog card in the terminal device comprises:
acquiring parameter values of analog card type selection variables;
and determining the enabled analog card in the terminal equipment based on the parameter value.
7. The method of claim 5, further comprising:
after the enabled analog card in the terminal equipment is switched to the analog card of the first type, setting the parameter value of the analog card type selection variable as a first parameter value;
and after the enabled analog card in the terminal equipment is switched to the analog card of the second type, setting the parameter value of the analog card type selection variable as a second parameter value.
8. The method of claim 1, further comprising:
and responding to the analog card switching operation of the user, and switching the enabled analog card in the terminal equipment into the target type analog card to be switched by the user.
9. The method of claim 8, further comprising:
and when the target type is a third type, after the card swiping operation is completed, switching the enabled analog card in the terminal equipment into the analog card of the first type.
10. A terminal device, comprising:
the near field communication module is used for receiving radio frequency signals;
the processor is used for continuously monitoring whether the terminal equipment is in a motion state or not after the near field communication module receives the radio frequency signal; when the terminal equipment is in a motion state, determining a started analog card in the terminal equipment; and when the enabled simulation card in the terminal equipment is the first type simulation card, the control application program switches the enabled simulation card in the terminal equipment into the second type simulation card.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of any one of claims 1 to 9.
CN202010694120.1A 2020-07-17 2020-07-17 Analog card switching method, terminal device and storage medium Pending CN111784334A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010694120.1A CN111784334A (en) 2020-07-17 2020-07-17 Analog card switching method, terminal device and storage medium
PCT/CN2021/095945 WO2022012173A1 (en) 2020-07-17 2021-05-26 Emulated card switching method, terminal device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010694120.1A CN111784334A (en) 2020-07-17 2020-07-17 Analog card switching method, terminal device and storage medium

Publications (1)

Publication Number Publication Date
CN111784334A true CN111784334A (en) 2020-10-16

Family

ID=72763537

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010694120.1A Pending CN111784334A (en) 2020-07-17 2020-07-17 Analog card switching method, terminal device and storage medium

Country Status (2)

Country Link
CN (1) CN111784334A (en)
WO (1) WO2022012173A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112287708A (en) * 2020-10-29 2021-01-29 维沃移动通信有限公司 Near Field Communication (NFC) analog card switching method, device and equipment
CN113837752A (en) * 2021-08-18 2021-12-24 深圳市雪球科技有限公司 Method, device and equipment for automatically switching virtual cards
CN113840279A (en) * 2021-09-22 2021-12-24 Oppo广东移动通信有限公司 Analog card activation method, device, terminal and storage medium
WO2022012173A1 (en) * 2020-07-17 2022-01-20 Oppo广东移动通信有限公司 Emulated card switching method, terminal device, and storage medium
CN113962232A (en) * 2021-10-14 2022-01-21 深圳市欢太数字科技有限公司 Analog card switching method and device, computer readable medium and mobile terminal
WO2022083551A1 (en) * 2020-10-21 2022-04-28 华为技术有限公司 Emulation card switching method, electronic device, and communication system
CN114489868A (en) * 2021-08-04 2022-05-13 荣耀终端有限公司 Subway trip detection method and electronic equipment
CN116703391A (en) * 2022-09-23 2023-09-05 荣耀终端有限公司 Electronic card activation method and device
CN116703391B (en) * 2022-09-23 2024-04-26 荣耀终端有限公司 Electronic card activation method and device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115175164B (en) * 2022-06-28 2023-06-27 南京欧珀软件科技有限公司 Communication control method and related device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104933556A (en) * 2015-05-27 2015-09-23 小米科技有限责任公司 Mode setting method and apparatus
CN105491243A (en) * 2016-01-18 2016-04-13 努比亚技术有限公司 NFC mobile terminal and NFC simulation card switching control method
CN106170808A (en) * 2016-06-22 2016-11-30 北京小米移动软件有限公司 Pay changing method and device
CN106231090A (en) * 2016-07-28 2016-12-14 宇龙计算机通信科技(深圳)有限公司 The analog card changing method of a kind of NFC mobile terminal and device
CN110557742A (en) * 2019-09-26 2019-12-10 珠海市魅族科技有限公司 Default binding card switching method, device, equipment and storage medium for near field communication

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR3020164B1 (en) * 2014-04-18 2020-10-16 Compagnie Ind Et Financiere Dingenierie Ingenico EMULATION MODULE OF AT LEAST ONE PAYMENT CARD, METHOD, PAYMENT DEVICE, COMPUTER PROGRAM PRODUCT AND CORRESPONDING STORAGE MEDIUM
CN111093180A (en) * 2019-12-31 2020-05-01 深圳Tcl新技术有限公司 NFC-based analog card switching method, terminal and computer storage medium
CN111784334A (en) * 2020-07-17 2020-10-16 Oppo广东移动通信有限公司 Analog card switching method, terminal device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104933556A (en) * 2015-05-27 2015-09-23 小米科技有限责任公司 Mode setting method and apparatus
CN105491243A (en) * 2016-01-18 2016-04-13 努比亚技术有限公司 NFC mobile terminal and NFC simulation card switching control method
CN106170808A (en) * 2016-06-22 2016-11-30 北京小米移动软件有限公司 Pay changing method and device
CN106231090A (en) * 2016-07-28 2016-12-14 宇龙计算机通信科技(深圳)有限公司 The analog card changing method of a kind of NFC mobile terminal and device
CN110557742A (en) * 2019-09-26 2019-12-10 珠海市魅族科技有限公司 Default binding card switching method, device, equipment and storage medium for near field communication

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022012173A1 (en) * 2020-07-17 2022-01-20 Oppo广东移动通信有限公司 Emulated card switching method, terminal device, and storage medium
WO2022083551A1 (en) * 2020-10-21 2022-04-28 华为技术有限公司 Emulation card switching method, electronic device, and communication system
CN112287708A (en) * 2020-10-29 2021-01-29 维沃移动通信有限公司 Near Field Communication (NFC) analog card switching method, device and equipment
CN114489868A (en) * 2021-08-04 2022-05-13 荣耀终端有限公司 Subway trip detection method and electronic equipment
CN114489868B (en) * 2021-08-04 2022-12-09 荣耀终端有限公司 Subway trip detection method and electronic equipment
CN113837752A (en) * 2021-08-18 2021-12-24 深圳市雪球科技有限公司 Method, device and equipment for automatically switching virtual cards
CN113837752B (en) * 2021-08-18 2023-10-03 深圳市雪球科技有限公司 Method, device and equipment for automatically switching virtual cards
CN113840279A (en) * 2021-09-22 2021-12-24 Oppo广东移动通信有限公司 Analog card activation method, device, terminal and storage medium
WO2023045628A1 (en) * 2021-09-22 2023-03-30 Oppo广东移动通信有限公司 Analog card activation method and apparatus, and terminal and storage medium
CN113962232A (en) * 2021-10-14 2022-01-21 深圳市欢太数字科技有限公司 Analog card switching method and device, computer readable medium and mobile terminal
CN116703391A (en) * 2022-09-23 2023-09-05 荣耀终端有限公司 Electronic card activation method and device
CN116703391B (en) * 2022-09-23 2024-04-26 荣耀终端有限公司 Electronic card activation method and device

Also Published As

Publication number Publication date
WO2022012173A1 (en) 2022-01-20

Similar Documents

Publication Publication Date Title
CN111784334A (en) Analog card switching method, terminal device and storage medium
CN105913246B (en) Handheld electronic device capable of magnetic field communication and payment method using same
US11741455B2 (en) Systems and methods for providing near field communications
CN108428451B (en) Voice control method, electronic equipment and voice control system
EP3118803A1 (en) Card registration method for payment service and mobile electronic device implementing the same
CN108475372B (en) Access control bypass on mobile devices for public transportation
CN113364490B (en) NFC application calling method, electronic equipment and NFC device
CN113902436A (en) Analog card switching method, terminal device, card reader and storage medium
CN111784335A (en) Analog card management method, analog card management device, storage medium, and electronic apparatus
CN111738736B (en) Method and system for data feedback
WO2021223672A1 (en) Near field communication (nfc) method and apparatus, and electronic device
US10810591B2 (en) Virtual reality headset device and payment method
CN112396709A (en) Terminal interaction method and device based on ultra-wideband communication, medium and electronic equipment
CN110191054B (en) Route processing method and device, storage medium and electronic equipment
EP3062272A1 (en) Method and apparatus for accumulating membership points
CN106503986B (en) Virtual resource transfer method and device
CN108944542B (en) Method for performing charging station identification for electric vehicle charging
CN115577724A (en) Card reading method and device, electronic equipment and readable storage medium
US10931814B2 (en) Service recommendation
CN110533432B (en) Service processing method, device, server and client
CN114647653A (en) Face library updating method and related product
CN113409520A (en) Charging method, charging device, electronic equipment and storage medium
CN114946202A (en) NFC card simulation mode starting method and device, terminal and storage medium
CN111311851A (en) Heartbeat sending method and device suitable for payment equipment
CN114899922A (en) Wireless charging equipment, electronic equipment and charging method and device thereof

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