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

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

Info

Publication number
CN113902436A
CN113902436A CN202010574845.7A CN202010574845A CN113902436A CN 113902436 A CN113902436 A CN 113902436A CN 202010574845 A CN202010574845 A CN 202010574845A CN 113902436 A CN113902436 A CN 113902436A
Authority
CN
China
Prior art keywords
card
card reader
terminal equipment
analog
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
CN202010574845.7A
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 CN202010574845.7A priority Critical patent/CN113902436A/en
Publication of CN113902436A publication Critical patent/CN113902436A/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
    • 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, a card reader and a computer readable storage medium, and relates to the technical field of near field communication. The method comprises the following steps: after receiving a signal broadcast by the card reader, establishing communication connection with the card reader; receiving self parameter information sent by a card reader; the parameter information is used for indicating the target type of the simulation card supported by the card reader; and when the type of the enabled simulation card in the terminal equipment is different from the target type, switching the enabled simulation card in the terminal equipment into the simulation card of the target type. The method and the device can improve the efficiency of switching the analog cards and improve the user experience.

Description

Analog card switching method, terminal device, card reader 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, a card reader, 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 the terminal equipment when taking a bus, purchasing goods or entering a building with an access control.
However, after a plurality of cards are opened on the terminal device, when the cards are swiped, one of the cards is usually used for transaction, and at this time, the analog cards need to be switched. The user can switch the analog card in a manual mode, but 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, a card reader, and a computer-readable storage medium, thereby overcoming, to some extent, the problem of low efficiency in switching analog cards due to 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 a signal broadcast by the card reader, establishing communication connection with the card reader;
receiving self parameter information sent by the card reader; the parameter information is used for indicating the target type of the simulation card supported by the card reader;
and when the type of the enabled simulation card in the terminal equipment is different from the target type, switching the enabled simulation card in the terminal equipment into the simulation card of the target type.
According to a second aspect of the present disclosure, there is provided an analog card switching method applied to a card reader, including:
broadcasting a transmission signal to establish a communication connection with a terminal device which receives the signal;
after communication connection is established with the terminal equipment, sending parameter information of the terminal equipment to the terminal equipment, wherein the parameter information is used for indicating a target type of an analog card supported by the card reader, so that the terminal equipment switches the enabled analog card to the analog card of the target type when the type of the enabled analog card is different from the target type.
According to a third aspect of the present disclosure, there is provided a terminal device comprising:
the first wireless communication module is used for establishing communication connection with a card reader after receiving a signal broadcast by the card reader, and receiving parameter information of the first wireless communication module, wherein the parameter information is used for indicating a target type of an analog card supported by the card reader;
and the near field communication module is electrically connected with the first wireless communication module and is used for switching the enabled analog card in the terminal equipment into the analog card of the target type when the type of the enabled analog card in the terminal equipment is different from the target type.
According to a fourth aspect of the present disclosure, there is provided a card reader comprising:
the second wireless communication module is used for broadcasting a sending signal so as to establish communication connection with the terminal equipment receiving the signal; after communication connection is established with the terminal equipment, sending parameter information of the terminal equipment to the terminal equipment, wherein the parameter information is used for indicating a target type of an analog card supported by the card reader, so that the terminal equipment switches the enabled analog card to the analog card of the target type when the type of the enabled analog card is different from the target type.
According to a fifth 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 by an example embodiment of the present disclosure, before a card is swiped through a terminal device, the terminal device may establish a communication connection with a card reader in advance. And the card reader sends the parameter information to the terminal equipment, so that the terminal equipment performs simulated card switching according to the target type of the simulated card supported by the card reader indicated in the parameter information. In this way, the analog card can be switched in advance before the user uses the card. On the one hand, frequent manual operation of a user can be omitted by intelligently switching the analog cards, and switching efficiency is improved. On the other hand, switching is directly performed according to the target type of the analog card indicated by the card reader, so that the switching accuracy can be improved, and the user experience is 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 illustrates an interactive flow diagram of an analog card switching method of an embodiment of the present disclosure;
FIG. 5 shows a schematic diagram of a plurality of different types of reader broadcast transmission signals;
FIG. 6 illustrates yet another interaction flow diagram of an analog card switching method of an embodiment of the present disclosure;
fig. 7 shows a schematic structural diagram of a terminal device according to an embodiment of the present disclosure;
fig. 8 shows a schematic structural diagram of a card reader according to an embodiment of the 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.
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, UWB (Ultra Wide Band) 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 and access control systems.
The UWB technology is a wireless communication technology, and uses narrow pulses (nanosecond or even picosecond pulses) to transmit information, and has the advantages of high bandwidth and low power consumption. The basic characteristics of UWB include narrow pulse transmission of data using non-sinusoidal waves, narrow pulse, and wide bandwidth (500MHz to 1.3GHz), and because of these basic characteristics, UWB transmission is less affected by multipath, and has low transmission power consumption and high transmission rate.
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 power management module 141 is used for connecting the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives an input of the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 161, the display screen 170, the wireless communication module 120, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
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 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 switching operation of the analog card can be performed.
At present, the method is low in efficiency when the analog card is switched, so that automatic switching can be performed based on preset time. Specifically, the analog cards can be automatically switched according to the preset routes of the user, for example, the attendance cards of 9:00 am are preset, and different cards are automatically switched according to the preset routes. However, this method requires the user to set a trip in advance, and when no trip is set or the trip is temporarily changed, an erroneous operation of switching the analog card is performed.
In addition, automatic switching can be performed based on the characteristic code of the card reader transaction. The card reader is a party which actively transmits radio frequency signals and instructions in the NFC transaction process, such as a UnionPay POS machine, a subway gate machine, an entrance guard card reader and the like. The characteristic code based on the card reader transaction refers to extracting characteristic fields in an instruction issued by the card reader in the transaction process, and judging the type of the card reader according to the characteristic fields to realize automatic card switching. However, the method must acquire the command of the card reader before the card switching action is performed, and the whole transaction is completed after the command of the card reader is received, the command is analyzed, the card switching is performed, and finally, the whole process needs a certain time (for example, 1 to 2 seconds), which may cause a slow card swiping experience for the user, and may even cause a card swiping failure due to too long waiting time.
In order to solve the above problems, the present disclosure provides an analog card switching method, a terminal device, a card reader, and a computer-readable storage medium, so as to improve the efficiency and correctness of analog card switching.
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:
and step S210, after receiving the signal broadcast by the card reader, establishing communication connection with the card reader.
Step S220, receiving self parameter information sent by the card reader; wherein the parameter information is used for indicating the target type of the simulation card supported by the card reader.
Step S230, when the type of the enabled emulation card in the terminal device is different from the target type, switching the enabled emulation card in the terminal device to an emulation card of the target type.
In the analog card switching method of the embodiment of the disclosure, before a user swipes a card through a terminal device, the terminal device can establish communication connection with a card reader after receiving a signal sent by the card reader. The card reader sends the parameter information to the terminal equipment, so that the terminal equipment performs simulated card switching according to the target type of the simulated card supported by the card reader indicated in the parameter information. Thus, the analog card is switched in advance before the user uses it. On the one hand, frequent manual operation of a user can be omitted by intelligently switching the analog cards, and switching efficiency is improved. On the other hand, switching is directly performed according to the target type of the analog card indicated by the card reader, so that the switching accuracy can be improved, and the user experience is improved.
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 card reader and may include the following steps:
in step S310, a transmission signal is broadcast to establish a communication connection with the terminal device that received the signal.
Step S320, after establishing a communication connection with the terminal device, sending parameter information of the terminal device to the terminal device, where the parameter information is used to indicate a target type of the analog card supported by the card reader, so that the terminal device switches the enabled analog card to an analog card of the target type when the type of the enabled analog card is different from the target type.
In the analog card switching method according to the embodiment of the present disclosure, before a user swipes a card through a terminal device, a card reader sends a signal through broadcasting, so that a communication connection is established with the terminal device that receives the signal. And then, the card reader sends the parameter information to the terminal equipment, so that the terminal equipment performs simulated card switching according to the target type of the simulated card supported by the card reader indicated in the parameter information. Thus, the analog card is switched in advance before the user uses it. On the one hand, frequent manual operation of a user can be omitted by intelligently switching the analog cards, and switching efficiency is improved. On the other hand, switching is directly performed according to the target type of the analog card indicated by the card reader, so that the switching accuracy can be improved, and the user experience is improved.
Referring to fig. 4, fig. 4 shows an interactive flowchart of an analog card switching method according to an embodiment of the present disclosure, which may include the following steps:
step S410, the card reader broadcasts a sending signal.
Specifically, the card reader is a party which actively transmits radio frequency signals and instructions in the NFC transaction process, such as a union pay POS machine, a subway gate, an entrance guard card reader, and the like. In general, a card reader can read cards of many users, for example, a subway gate can read a bus card of each user who takes a subway; the access card reader can read the access card of each user entering the building. Therefore, when a user swipes a card through the smart phone, the card reader can broadcast a transmission signal to communicate with a plurality of smart phones.
In an implementation manner of the present disclosure, the card reader may broadcast and transmit an ultra-wideband signal, that is, the card reader may have an ultra-wideband function, and in this case, the smart phone may also have an ultra-wideband function. Referring to fig. 5, fig. 5 shows a schematic diagram of the broadcast transmission of signals by a plurality of different types of readers. It can be seen that many different types of card readers can broadcast ultra-wideband signals. Of course, the communication between the card reader and the terminal device is not limited to the ultra-wideband communication, and for example, the card reader may broadcast a GPS (global positioning system) signal or the like, which is not limited herein.
Step S420, after receiving the signal, the terminal device establishes a communication connection with the card reader.
In the embodiment of the disclosure, the location of the terminal device may be determined through a positioning technology, and if the location of the terminal device is within a preset area range (for example, near a subway station), the preset area range may be a larger range, and the terminal device may also detect whether a signal sent by a card reader may be received. As the distance between the terminal device and the reader approaches gradually (e.g., 12 meters, etc.), a signal transmitted by the reader may be received. At this time, a response signal can be returned to the card reader, and communication connection can be established with the card reader.
It should be noted that the communication connection here may be a communication connection at a longer distance, not a near field communication connection. After receiving the ultra-wideband signal broadcast by the card reader, the terminal device can establish ultra-wideband communication connection with the card reader.
And step S430, the card reader continuously monitors the distance between the card reader and the terminal equipment, and sends the parameter information of the card reader to the terminal equipment when the monitored distance is reduced to a distance threshold value.
It should be noted that, because the ultra-wideband has many functional features, the present disclosure can perform the switching of the analog card based on the high-precision positioning characteristic (the positioning precision is in the centimeter level) of the ultra-wideband. Based on the ultra-wideband positioning technology, not only the accurate position of the terminal device can be accurately positioned, but also the moving direction of the user relative to a certain card reader can be accurately determined, for example, the user can get closer to or get farther away from the certain card reader.
Specifically, the card reader may continuously monitor the distance between itself and the terminal device, and determine whether the terminal is closer to the card reader or farther away from the card reader according to the change of the distance. The continuous monitoring may be a constant monitoring or a periodic monitoring. For example, in the periodic monitoring, the monitoring may be performed every 0.5 seconds, 1 second, or the like.
When it is monitored that the distance between the terminal device and the card reader is reduced to a distance threshold value, the card reader can send parameter information of the card reader to the terminal device. Of course, the distance thresholds may be different for different readers. For example, the distance threshold may be 5 meters for a subway gate, 10 meters for an entrance guard reader, and the like, which is not limited herein. In addition, when the distance is monitored to be increased, the fact that the terminal equipment is gradually far away from the card reader is indicated, and the terminal equipment can be not processed.
In the embodiment of the disclosure, the card reader may send its own parameter information in an ultra-wideband command manner, for example, the ultra-wideband command may carry the parameter information. The target types of the simulated cards supported by the card reader can be included in the parameter information. The types of analog cards may include: access cards, bank cards, bus cards, etc., and the types of analog cards supported by different card readers are different. For example, the target type of the analog card in the parameter information sent by the subway gate is a bus card, the target type of the analog card in the parameter information sent by the entrance guard card reader is an entrance guard card, and the target type of the analog card in the parameter information sent by the Unionpay POS machine is a bank card.
Step S440, after receiving the parameter information of the card reader sent by the card reader, the terminal device detects whether there is an enabled analog card in the terminal device.
In the embodiment of the present disclosure, there may be a case that the NFC function in the terminal device is not turned on, and therefore, after receiving the parameter information sent by the card reader, it may be detected whether an enabled analog card exists in the terminal device.
Step S450, when the enabled analog card exists in the terminal device and the type of the enabled analog card in the terminal device is different from the target type, switching the enabled analog card in the terminal device to the analog card of the target type.
Specifically, when the terminal device performs the card swiping operation, one of the simulated cards can be simulated. That is, one of the analog cards may be enabled among the plurality of analog cards in the terminal device. For example, when swiping the gate, the gate card is enabled and the other cards are not. When the bank POS machine is swiped, one bank card is started, and other bank cards, access control cards and the like are not started. It can be seen that different analog cards may be enabled for different card readers.
Therefore, after receiving the parameter information sent by different card readers, the terminal equipment can directly switch the simulation cards according to the target types. In the embodiment of the disclosure, the switching of the enabled analog card means that when the currently enabled analog card is set to the disabled state, another analog card is set to the enabled state. For example, after receiving the parameter information sent by the subway gate, the terminal device can be simulated as a bus card. If the currently enabled analog card is a bus card, no processing may be performed. If the currently enabled analog card is a bank card, the bank card can be set to be in an enabled state, and the bus card can be set to be in an disabled state.
It should be noted that a plurality of cards of the same type may be opened in the terminal device, for example, a user opens a plurality of bank cards. At this time, that is, when the number of the target type of the emulation cards is plural, the emulation card that has been enabled in the terminal device may be switched to the emulation card of the target type that the user used last time. For example, when the user consumes in a convenience store, the target type is a bank card, the first bank card, the second bank card and the third bank card are opened in the terminal device of the user, and if the second bank card is used by the user last time, the enabled analog card in the terminal device can be switched to the second bank card. Therefore, the use habit of the user can be better met, and the user experience can be improved.
Step S460, when the enabled analog card does not exist in the terminal device, displaying a prompt message indicating that the analog card is enabled.
In the embodiment of the present disclosure, when the NFC function is not enabled, a prompt message may be displayed for prompting a user to start the NFC function.
It should be noted that, when different card readers perform NFC radio frequency communication, required NFC radio frequency parameters may be different. For example, although both subway line No. 1 and subway line No. 2 can be swiped for bus cards, different subway lines may be subway gates made by different equipment manufacturers, which may require different NFC radio frequency parameters to adapt.
In an implementation manner of the present disclosure, the parameter information sent by the card reader may further include address identification information of the card reader, where the address identification information may be an IP (Internet Protocol) address, a physical address, and the like. Therefore, before the user swipes the card through the terminal equipment, the radio frequency parameters matched with the card reader can be determined according to the address identification information of the card reader besides the simulated card switching. The process of switching the analog card and the process of setting the radio frequency parameter may be performed simultaneously or sequentially, which is not limited herein.
Specifically, the appropriate radio frequency parameters may be saved when performing a background test before the terminal device leaves the factory, the radio frequency parameters and the address identification information may form a mapping table, and the mapping table may be stored in the memory of the terminal device. Under the condition that the radio frequency parameters corresponding to the address identification information of the card reader are stored, the radio frequency parameters of the terminal equipment can be set as the radio frequency parameters corresponding to the address identification information of the card reader, and near field communication is carried out with the card reader according to the radio frequency parameters when a user carries out card swiping operation through the terminal equipment. Under the condition that the radio frequency parameters corresponding to the address identification information of the card reader are not stored, the radio frequency parameters of the terminal equipment can be set as initial radio frequency parameters, and near field communication is carried out with the card reader according to the initial radio frequency parameters when a user carries out card swiping operation through the terminal equipment. The initial radio frequency parameters can be preset general radio frequency parameters, and the radio frequency parameters are smooth when the radio frequency parameters are in near field communication with most card readers.
Referring to fig. 6, fig. 6 shows another interaction flowchart of the analog card switching method according to the embodiment of the disclosure, which may include the following steps:
step S610, the card reader broadcasts a transmission signal.
And step S620, after receiving the signal, the terminal equipment establishes communication connection with the card reader.
Step S630, the terminal device continuously monitors the distance between itself and the card reader, and sends request information to the card reader when the distance decreases to the distance threshold. Wherein the parameter information is used for indicating the target type of the simulation card supported by the card reader.
And step S640, after receiving the request information, the card reader sends the parameter information of the card reader to the terminal equipment.
Step S650, after receiving the parameter information, the terminal device detects whether there is an enabled analog card in the terminal device.
Step S660, when the enabled analog card exists in the terminal device and the type of the enabled analog card in the terminal device is different from the target type, switching the enabled analog card in the terminal device to the analog card of the target type.
Step S670, when the enabled analog card does not exist in the terminal device, displaying a prompt message indicating that the analog card is enabled.
It should be noted that steps S610, S620, and S650 to S670 in the embodiment of fig. 6 are the same as the processing procedures of steps S410, S420, and S440 to S460 in the embodiment of fig. 4, and specific reference may be made to the description in the embodiment of fig. 4, which is not described herein again.
In step S630, unlike the embodiment of fig. 4, in addition to the card reader actively and continuously monitoring the distance between itself and the terminal device, the terminal device may also actively and continuously monitor the distance between itself and the card reader. When the distance between the terminal device and the card reader is monitored to be reduced to the distance threshold value, the terminal device can send request information to the card reader, and the request information is used for enabling the card reader to send parameter information.
In step S640, the card reader may send the parameter information to the terminal device after receiving the request information.
In the embodiment of the present disclosure, the above embodiments in fig. 2, fig. 3, fig. 4, and fig. 6 all belong to a process of automatically switching analog cards. The disclosure also supports a manual switching process, specifically, after a user performs a switching operation on a touch screen of the terminal device, the terminal device responds to the analog card switching operation of the user, and switches an enabled analog card in the terminal device to a target analog card to be switched by the user.
It should be noted that the user can switch the analog card 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.
In the analog card switching method according to the embodiment of the disclosure, since the communication distance of the NFC technology is generally within 10 centimeters, compared with the interaction between the terminal device and the card reader only through the NFC technology in the related art, before the user brings the terminal device close to the card reader and executes the NFC transaction, the terminal device and the card reader may interact through the UWB technology. Therefore, the user can complete the switching of the analog card and the switching of the radio frequency parameters in advance at a longer distance (for example, within 1-5 meters), and the problems of increased card swiping time and even card swiping failure caused by switching when the user is close to the card reader at a short distance are avoided, so that the efficiency and the accuracy of the switching of the analog card can be improved, and the user experience is 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, referring to fig. 7, a terminal device 700, including:
the first wireless communication module 710 is configured to establish communication connection with a card reader after receiving a signal broadcast by the card reader; receiving self parameter information sent by a card reader; the parameter information is used for indicating the target type of the simulation card supported by the card reader;
the near field communication module 720, electrically connected to the first wireless communication module 710, is configured to switch the enabled analog card in the terminal device to an analog card of a target type when the type of the enabled analog card in the terminal device is different from the target type.
In an exemplary embodiment disclosed in the present application, the terminal device 700 further includes:
the processor is used for setting the radio frequency parameters of the terminal equipment as the radio frequency parameters corresponding to the address identification information of the card reader under the condition that the radio frequency parameters corresponding to the address identification information of the card reader are stored, so as to carry out near field communication with the card reader according to the radio frequency parameters;
the processor is further configured to set the radio frequency parameter of the terminal device to an initial radio frequency parameter under the condition that the radio frequency parameter corresponding to the address identification information of the card reader is not stored, so as to perform near field communication with the card reader according to the initial radio frequency parameter.
In an exemplary embodiment disclosed in the present application, the first wireless communication module 710 is further configured to continuously monitor a distance between the card reader and the first wireless communication module after establishing a communication connection with the card reader, and send request information to the card reader when the distance decreases to a distance threshold value, so that the card reader returns parameter information.
In an exemplary embodiment disclosed in the present application, the first wireless communication module 710 is specifically configured to receive parameter information of the terminal device sent by the card reader when a distance between the terminal device and the card reader is smaller than a distance threshold.
In an exemplary embodiment disclosed in the present application, the first wireless communication module 710 is specifically configured to establish an ultra-wideband communication connection with the card reader after receiving an ultra-wideband signal broadcast by the card reader.
In an exemplary embodiment disclosed in the present application, the processor is further configured to detect whether an enabled analog card exists in the terminal device; when the enabled analog card exists in the terminal equipment, the near field communication module 720 executes a step of switching the enabled analog card in the terminal equipment to the analog card of the target type when the type of the enabled analog card in the terminal equipment is different from the target type; when the enabled analog card does not exist in the terminal equipment, prompt information indicating that the analog card is enabled is displayed.
In an exemplary embodiment disclosed in the present application, the near field communication module 720 is specifically configured to switch the enabled analog card in the terminal device to the target type analog card that is used by the user last time when the number of the target type analog cards is multiple.
In an exemplary embodiment disclosed in the present application, the near field communication module 720 is further configured to switch, in response to an analog card switching operation of a user, an enabled analog card in the terminal device to a target analog card to be switched by the user.
In this example embodiment, there is also provided a card reader, referring to fig. 8, a card reader 800 comprising:
a second wireless communication module 810 for broadcasting a transmission signal to establish a communication connection with a terminal device that receives the signal; after the communication connection with the terminal equipment is established, the parameter information of the terminal equipment is sent to the terminal equipment, and the parameter information is used for indicating the target type of the simulation card supported by the card reader, so that the terminal equipment switches the enabled simulation card into the simulation card of the target type when the type of the enabled simulation card is different from the target type.
In an exemplary embodiment disclosed in the present application, the second wireless communication module 810 is further configured to continuously monitor a distance between the terminal device and the second wireless communication module, and when the distance decreases to a distance threshold, execute a step of sending parameter information of the second wireless communication module to the terminal device, and when the distance increases, do not perform processing.
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 first wireless communication module 710 in the terminal device 700 and the second wireless communication module 810 in the card reader 800 may be wireless communication modules in the electronic device shown in fig. 1, and refer to the description in fig. 1 specifically. The near field communication module 720 in the terminal device 700 may be a stand-alone module, or may be integrated into the first wireless communication module, which is not limited herein. The processor in the terminal device 700 may be a general-purpose processor including: a central processing unit, etc., and may also be a field programmable gate array or other programmable logic device, discrete gate 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 (14)

1. An analog card switching method is applied to terminal equipment and comprises the following steps:
after receiving a signal broadcast by a card reader, establishing communication connection with the card reader;
receiving self parameter information sent by the card reader, wherein the parameter information is used for indicating the target type of the simulation card supported by the card reader;
and when the type of the enabled simulation card in the terminal equipment is different from the target type, switching the enabled simulation card in the terminal equipment into the simulation card of the target type.
2. The method according to claim 1, wherein the parameter information further includes address identification information of the card reader; after receiving the parameter information, the method further comprises:
under the condition that radio frequency parameters corresponding to the address identification information of the card reader are stored, setting the radio frequency parameters of the terminal equipment as the radio frequency parameters corresponding to the address identification information of the card reader so as to carry out near field communication with the card reader according to the radio frequency parameters;
and under the condition that the radio frequency parameter corresponding to the address identification information of the card reader is not stored, setting the radio frequency parameter of the terminal equipment as an initial radio frequency parameter so as to carry out near field communication with the card reader according to the initial radio frequency parameter.
3. The method according to claim 1 or 2, wherein the receiving the own parameter information sent by the card reader comprises:
and when the distance between the terminal equipment and the card reader is smaller than a distance threshold value, receiving the self parameter information sent by the card reader.
4. The method according to claim 1 or 2, wherein before the receiving the own parameter information sent by the reader, the method further comprises:
continuously monitoring the distance between the card reader and the card reader after the communication connection with the card reader is established;
and when the distance is reduced to a distance threshold value, sending request information to the card reader so that the card reader returns the parameter information.
5. The method according to claim 1 or 2, wherein after receiving the own parameter information sent by the reader, the method further comprises:
detecting whether a started simulation card exists in the terminal equipment;
when the enabled simulation card exists in the terminal equipment, the step of switching the enabled simulation card in the terminal equipment to the simulation card of the target type when the type of the enabled simulation card in the terminal equipment is different from the target type is executed.
6. The method of claim 5, wherein after said detecting whether an enabled analog card is present in the terminal device, the method further comprises:
and when the enabled simulation card does not exist in the terminal equipment, displaying prompt information indicating that the simulation card is enabled.
7. The method according to claim 1 or 2, wherein the switching the enabled emulation card in the terminal device to the emulation card of the target type comprises:
and when the number of the target type simulation cards is multiple, switching the enabled simulation cards in the terminal equipment into the target type simulation cards used by the user last time.
8. The method of claim 1 or 2, further comprising:
and responding to the analog card switching operation of the user, and switching the enabled analog card in the terminal equipment to a target analog card to be switched by the user.
9. The method according to claim 1 or 2, wherein the establishing of the communication connection with the card reader after receiving the signal broadcast by the card reader comprises:
and after receiving an ultra-wideband signal broadcast and sent by a card reader, establishing ultra-wideband communication connection with the card reader.
10. A method for switching analog cards is applied to a card reader and comprises the following steps:
broadcasting a transmission signal to establish a communication connection with a terminal device which receives the signal;
after communication connection is established with the terminal equipment, sending parameter information of the terminal equipment to the terminal equipment, wherein the parameter information is used for indicating a target type of an analog card supported by the card reader, so that the terminal equipment switches the enabled analog card to the analog card of the target type when the type of the enabled analog card is different from the target type.
11. The method according to claim 10, wherein before said sending parameter information of itself to said terminal device, said method further comprises:
continuously monitoring the distance between the terminal equipment and the terminal equipment;
when the distance is reduced to the distance threshold value, executing the step of sending the parameter information of the terminal equipment to the terminal equipment;
when the distance increases, no processing is performed.
12. A terminal device, comprising:
the first wireless communication module is used for establishing communication connection with a card reader after receiving a signal broadcast by the card reader, and receiving parameter information of the first wireless communication module, wherein the parameter information is used for indicating a target type of an analog card supported by the card reader;
and the near field communication module is electrically connected with the first wireless communication module and is used for switching the enabled analog card in the terminal equipment into the analog card of the target type when the type of the enabled analog card in the terminal equipment is different from the target type.
13. A card reader, comprising:
the second wireless communication module is used for broadcasting a sending signal so as to establish communication connection with the terminal equipment receiving the signal; after communication connection is established with the terminal equipment, sending parameter information of the terminal equipment to the terminal equipment, wherein the parameter information is used for indicating a target type of an analog card supported by the card reader, so that the terminal equipment switches the enabled analog card to the analog card of the target type when the type of the enabled analog card is different from the target type.
14. 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 11.
CN202010574845.7A 2020-06-22 2020-06-22 Analog card switching method, terminal device, card reader and storage medium Pending CN113902436A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010574845.7A CN113902436A (en) 2020-06-22 2020-06-22 Analog card switching method, terminal device, card reader and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010574845.7A CN113902436A (en) 2020-06-22 2020-06-22 Analog card switching method, terminal device, card reader and storage medium

Publications (1)

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

Family

ID=79186508

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010574845.7A Pending CN113902436A (en) 2020-06-22 2020-06-22 Analog card switching method, terminal device, card reader and storage medium

Country Status (1)

Country Link
CN (1) CN113902436A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115175164A (en) * 2022-06-28 2022-10-11 南京欧珀软件科技有限公司 Communication control method and related device
CN115665314A (en) * 2022-10-18 2023-01-31 杭州逗酷软件科技有限公司 Screen display method, terminal, and computer-readable storage medium
CN115866134A (en) * 2023-02-27 2023-03-28 小米汽车科技有限公司 Near Field Communication (NFC) card determination method and device, electronic equipment and storage medium
WO2024045486A1 (en) * 2022-08-31 2024-03-07 湖北星纪魅族科技有限公司 Smart card application selection method and apparatus, electronic device, and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115175164A (en) * 2022-06-28 2022-10-11 南京欧珀软件科技有限公司 Communication control method and related device
WO2024045486A1 (en) * 2022-08-31 2024-03-07 湖北星纪魅族科技有限公司 Smart card application selection method and apparatus, electronic device, and storage medium
CN115665314A (en) * 2022-10-18 2023-01-31 杭州逗酷软件科技有限公司 Screen display method, terminal, and computer-readable storage medium
CN115866134A (en) * 2023-02-27 2023-03-28 小米汽车科技有限公司 Near Field Communication (NFC) card determination method and device, electronic equipment and storage medium
CN115866134B (en) * 2023-02-27 2023-06-06 小米汽车科技有限公司 Near field communication NFC card determination method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN113902436A (en) Analog card switching method, terminal device, card reader and storage medium
CN111784334A (en) Analog card switching method, terminal device and storage medium
CN111241856B (en) Method for selecting NFC analog card and watch
CN109257071A (en) Apparatus control method, device and equipment
KR20150139170A (en) Information Providing Method associated with Position And Electronic Device supporting the same
CN104918325A (en) Positioning guide and parking guide methods and device
CN113364490B (en) NFC application calling method, electronic equipment and NFC device
CN106549451A (en) A kind of wireless charging method and device
CN105554834A (en) Antenna switching method of user terminal and user terminal
CN103141142A (en) System and method for collaborative spectrum analysis
US20230261903A1 (en) Signal transmission method and apparatus, terminal device, smart device, and electronic device
CN106959779A (en) A kind of apparatus and method for reducing touch screen wrong report point
CN106295861A (en) The acquisition methods of weather forecast information, device and equipment
CN104937914A (en) Information processing device, information processing method, and program
CN113392661A (en) Card copying method and device, electronic equipment and readable storage medium
CN108833033A (en) RF calibration determination method for parameter, device, storage medium and mobile terminal
CN106503986B (en) Virtual resource transfer method and device
CN116761234A (en) Equipment code matching method and system
CN114494795A (en) Parking detection method, device and equipment based on chassis detection and storage medium
CN104931847A (en) Terminal of determining whether NFC antenna to be in poor contact state and method thereof
CN108960811A (en) A kind of method of payment and client
CN107566215A (en) Wireless network cutout detection method, device, storage medium and mobile terminal
CN111711942B (en) Electronic device, control method of electronic device, and readable storage medium
CN201993780U (en) Read-write device for mobile phone intelligent card
CN108833660B (en) Parking space information processing method and device and mobile terminal

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