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

By establishing a communication connection between the terminal device and the card reader, switching the simulated card based on the parameter information sent by the card reader, the problem of low switching efficiency of multiple cards on the terminal device is solved, the switching efficiency and accuracy are improved, and the user experience is improved.

CN113902436BActive Publication Date: 2025-03-25GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202010574845.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-22
Publication Date
2025-03-25
Estimated Expiration
2040-06-22

AI Technical Summary

Technical Problem

After multiple cards are enabled on the terminal device, the efficiency is low when switching analog cards and the user experience is poor.

Method used

By establishing a communication connection between the terminal device and the card reader, the parameter information sent by the card reader is received, and the analog card is switched according to the target type indicated in the parameter information.

Benefits of technology

It realizes switching the analog card in advance before users use it, improving switching efficiency and accuracy, and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113902436B_ABST
    Figure CN113902436B_ABST
Patent Text Reader

Abstract

The present disclosure provides a simulation card switching method, a terminal device, a card reader and a computer-readable storage medium, and relates to the field of near field communication technology. The method comprises: after receiving a signal broadcasted by the card reader, establishing a communication connection with the card reader; receiving parameter information of the card reader itself; wherein the parameter information is used to indicate the target type of the simulation card supported by the card reader; when the type of the simulation card enabled in the terminal device is different from the target type, switching the simulation card enabled in the terminal device to the simulation card of the target type. The present disclosure can improve the efficiency of simulation card switching and enhance the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of near field communication, and in particular to an analog card switching method, a terminal device, a card reader, and a computer-readable storage medium. Background Art

[0002] At present, more and more terminal devices have NFC (Near Field Communication) function. After activating / binding bus cards, bank cards and access control cards on the terminal device, users can swipe the cards through the terminal device when taking the bus, buying goods or entering a building with access control.

[0003] However, after multiple cards are activated on the terminal device, when swiping the card, one of the cards is usually used for transaction, and the simulated card needs to be switched. The user can switch the simulated card manually, but the efficiency is low and the user experience is poor. Summary of the invention

[0004] The purpose 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 the problem of low efficiency in switching analog cards due to the limitations and defects of related technologies to a certain extent.

[0005] According to a first aspect of the present disclosure, a simulation card switching method is provided, which is applied to a terminal device and includes:

[0006] After receiving the signal broadcasted by the card reader, establishing a communication connection with the card reader;

[0007] Receiving the parameter information of the card reader itself sent by the card reader; the parameter information is used to indicate the target type of the simulated card supported by the card reader;

[0008] When the type of the enabled analog card in the terminal device is different from the target type, the enabled analog card in the terminal device is switched to a analog card of the target type.

[0009] According to a second aspect of the present disclosure, there is provided a simulated card switching method, which is applied to a card reader and includes:

[0010] Broadcasting a signal to establish a communication connection with a terminal device that receives the signal;

[0011] After establishing a communication connection with the terminal device, the card reader sends its own parameter information to the terminal device, wherein the parameter information is used to indicate the target type of the simulated card supported by the card reader, so that the terminal device switches the enabled simulated card to a simulated card of the target type when the type of the enabled simulated card is different from the target type.

[0012] According to a third aspect of the present disclosure, a terminal device is provided, including:

[0013] A first wireless communication module, configured to establish a communication connection with the card reader after receiving a signal broadcasted by the card reader, and receive parameter information of the card reader itself, wherein the parameter information is used to indicate a target type of a simulated card supported by the card reader;

[0014] A near field communication module is electrically connected to the first wireless communication module, and is used to switch the enabled analog card in the terminal device to an analog card of the target type when the type of the enabled analog card in the terminal device is different from the target type.

[0015] According to a fourth aspect of the present disclosure, there is provided a card reader, comprising:

[0016] The second wireless communication module is used to broadcast a signal to establish a communication connection with a terminal device that receives the signal; after establishing a communication connection with the terminal device, the module sends its own parameter information to the terminal device, wherein the parameter information is used to indicate a target type of analog cards supported by the card reader, so that when the type of an enabled analog card is different from the target type, the terminal device switches the enabled analog card to an analog card of the target type.

[0017] According to a fifth aspect of the present disclosure, there is provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the above-mentioned method of simulating card switching when executed by a processor.

[0018] The exemplary embodiments of the present disclosure may have some or all of the following beneficial effects:

[0019] In the analog card switching method provided in an example embodiment of the present disclosure, before swiping the card through the terminal device, the terminal device can establish a communication connection with the card reader in advance. And the card reader sends parameter information to the terminal device, so that the terminal device switches the analog card according to the target type of the analog 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 it. On the one hand, by intelligently switching the analog card, the user can avoid frequent manual operations and improve the efficiency of switching. On the other hand, directly switching according to the target type of the analog card indicated by the card reader can improve the accuracy of the switching and enhance the user experience.

[0020] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0022] Figure 1 A schematic diagram of the structure of an electronic device suitable for implementing an embodiment of the present disclosure is shown;

[0023] Figure 2 A flow chart of a simulation card switching method according to an embodiment of the present disclosure is shown;

[0024] Figure 3 Another flow chart of the analog card switching method according to the embodiment of the present disclosure is shown;

[0025] Figure 4 An interactive flow chart of the analog card switching method according to an embodiment of the present disclosure is shown;

[0026] Figure 5 A schematic diagram showing a plurality of different types of card readers broadcasting signals;

[0027] Figure 6 Another interactive flow chart of the analog card switching method according to the embodiment of the present disclosure is shown;

[0028] Figure 7 A schematic diagram of the structure of a terminal device according to an embodiment of the present disclosure is shown;

[0029] Figure 8 A structural schematic diagram of a card reader according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0030] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.

[0031] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0032] See also Figure 1 , Figure 1 FIG. 1 shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiment of the present disclosure. It should be noted that: Figure 1 The electronic device 100 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0033] like Figure 1 As shown, the electronic device 100 may specifically include: 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 and a sensor module 180, etc.

[0034] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0035] 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. Different processing units may be independent devices or integrated into one or more processors. The controller may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.

[0036] A memory may also be provided in the 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 the execution is controlled by the processor 110. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that have just been used or are cyclically used by the processor 110. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory, thereby avoiding repeated access, reducing the waiting time of the processor 110, and thus improving the efficiency of the system.

[0037] The wireless communication module 120 can provide wireless communication solutions including wireless LAN, Bluetooth, global navigation satellite system, frequency modulation, NFC technology, UWB (Ultra Wide Band) technology, infrared technology, etc. applied to the electronic device 100. The wireless communication module 120 can be one or more devices integrating at least one communication processing module. The wireless communication module 120 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 120 can also receive the signal to be sent from the processor 110, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0038] 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, so that electronic device 100 can communicate with the network and other devices through wireless communication technology.

[0039] Among them, NFC technology is a short-range (within 10 cm) wireless communication technology. Its operating frequency is 13.56MHz. At present, this technology is widely used in people's lives, such as common subways, buses, UnionPay QuickPass and access control systems.

[0040] UWB technology is a type of wireless communication technology that 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 the use of non-sinusoidal narrow pulses to transmit data, narrow pulses, and wide bandwidth (500MHz~1.3GHz). Because of these basic characteristics, UWB transmission is less affected by multipath, has low transmission power consumption, and a high transmission rate.

[0041] The charging management module 140 is used 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 through the USB interface 150. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.

[0042] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 161, the display screen 170 and the wireless communication module 120. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0043] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the wireless communication module 120, the mobile communication module 130, the modem processor, the baseband processor, and the like.

[0044] The technical solution of the embodiment of the present disclosure is described in detail below.

[0045] For terminal devices with NFC function, the terminal devices can simulate bus cards, bank cards, access control cards, etc. Therefore, users can directly swipe cards through the terminal devices. When swiping cards through terminal devices, there are often scenarios where it is necessary to switch simulated cards. For example, after the user swipes the bus through the terminal device, he may need to swipe the access control. At this time, the simulated card can be switched.

[0046] At present, since the efficiency of switching analog cards is low, it is possible to switch automatically based on preset time. Specifically, the analog card can be automatically switched according to the user's preset itinerary. For example, the attendance card is preset at 9:00 am, and different cards are automatically switched according to these preset itineraries. However, this method requires the user to set the itinerary in advance. If the itinerary is not set or the itinerary is temporarily changed, the incorrect action of switching the analog card will be made.

[0047] In addition, automatic switching can also be performed based on the characteristic code of the card reader transaction. The card reader refers to the party that actively transmits radio frequency signals and instructions during the NFC transaction process, such as UnionPay POS machines, subway gates, access control card readers, etc. The characteristic code based on the card reader transaction refers to extracting the characteristic fields in the instructions issued by the card reader during the transaction process, judging the card reader type based on these characteristic fields, and realizing automatic card switching. However, this method must obtain the instructions of the card reader before switching cards. From receiving the card reader instruction to parsing the instruction, to card switching, and finally completing the entire transaction, the execution of the entire process requires a certain amount of time (for example, 1 to 2 seconds), which will give users a sluggish card swiping experience, and may even cause card swiping failure due to waiting time.

[0048] In order to solve the above problems, the present disclosure provides a simulation card switching method, a terminal device, a card reader and a computer-readable storage medium to improve the efficiency and correctness of simulation card switching.

[0049] See also Figure 2 , Figure 2 A flowchart of the analog card switching method according to an embodiment of the present disclosure is shown, which is applied to a terminal device and may include the following steps:

[0050] Step S210: after receiving the signal broadcasted by the card reader, establish a communication connection with the card reader.

[0051] Step S220, receiving the parameter information of the card reader itself sent by the card reader; wherein the parameter information is used to indicate the target type of the simulated card supported by the card reader.

[0052] Step S230, when the type of the enabled analog card in the terminal device is different from the target type, the enabled analog card in the terminal device is switched to a analog card of the target type.

[0053] In the analog card switching method of the disclosed embodiment, before the user swipes the card through the terminal device, the terminal device can establish a communication connection with the card reader after receiving the signal sent by the card reader. The card reader sends parameter information to the terminal device, so that the terminal device switches the analog card according to the target type of the analog card supported by the card reader indicated in the parameter information. In this way, the analog card is switched in advance before the user uses it. On the one hand, by intelligently switching the analog card, the user can avoid frequent manual operations and improve the efficiency of switching. On the other hand, directly switching according to the target type of the analog card indicated by the card reader can improve the accuracy of the switching and enhance the user experience.

[0054] See also Figure 3 , Figure 3Another flowchart of the analog card switching method according to the embodiment of the present disclosure is shown, which is applied to a card reader and may include the following steps:

[0055] Step S310: broadcast a signal to establish a communication connection with a terminal device that receives the signal.

[0056] Step S320, after establishing a communication connection with the terminal device, sends its own parameter information to the terminal device, the parameter information is used to indicate the target type of the simulated card supported by the card reader, so that the terminal device switches the enabled simulated card to the simulated card of the target type when the type of the enabled simulated card is different from the target type.

[0057] In the analog card switching method of the disclosed embodiment, before the user swipes the card through the terminal device, the card reader sends a signal through broadcasting, thereby establishing a communication connection with the terminal device that receives the signal. Afterwards, the card reader sends parameter information to the terminal device, so that the terminal device switches the analog card according to the target type of the analog card supported by the card reader indicated in the parameter information. In this way, the analog card is switched in advance before the user uses it. On the one hand, by intelligently switching the analog card, the user can avoid frequent manual operations and improve the efficiency of switching. On the other hand, directly switching according to the target type of the analog card indicated by the card reader can improve the accuracy of the switching and enhance the user experience.

[0058] See also Figure 4 , Figure 4 An interactive flow chart of the analog card switching method according to an embodiment of the present disclosure is shown, which may include the following steps:

[0059] Step S410: the card reader broadcasts a signal.

[0060] Specifically, since the card reader refers to the party that actively transmits radio frequency signals and instructions during the NFC transaction, such as UnionPay POS machines, subway gates, access control card readers, etc. Usually, the card reader can read the cards of many users. For example, the subway gate can read the bus card of every user riding the subway; the access control card reader can read the access control card of every user entering the building, etc. Therefore, when the user swipes the card with a smartphone, the card reader can broadcast and send signals in order to communicate with multiple smartphones.

[0061] In one implementation of the present disclosure, the card reader can broadcast and send an ultra-wideband signal, that is, the card reader can have an ultra-wideband function. In this case, the smart phone can also have an ultra-wideband function. Figure 5 , Figure 5A schematic diagram showing a plurality of different types of card readers broadcasting signals. It can be seen that a plurality of 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 ultra-wideband communication. For example, the card reader can also broadcast GPS (Global Positioning System) signals, etc., which are not limited here.

[0062] Step S420: After receiving the above signal, the terminal device establishes a communication connection with the card reader.

[0063] In the disclosed embodiment, the location of the terminal device can be determined by positioning technology. If the location of the terminal device is within a preset area (e.g., near a subway station), the preset area can be a relatively large area, and the terminal device can also detect whether it can receive a signal sent by a card reader. When the distance between the terminal device and the card reader gradually approaches (e.g., 12 meters, etc.), the signal sent by the card reader can be received. At this time, a response signal can be returned to the card reader, and a communication connection can be established with the card reader.

[0064] It should be noted that the communication connection here may be a long-distance communication connection rather than a near-field communication connection. After receiving the ultra-wideband signal broadcasted by the card reader, the terminal device may establish an ultra-wideband communication connection with the card reader.

[0065] In step S430, the card reader continuously monitors the distance between itself and the terminal device, and when it detects that the distance is reduced to a distance threshold, it sends its own parameter information to the terminal device.

[0066] It should be noted that, since ultra-wideband has many functional features, the present disclosure can perform analog card switching based on the ultra-wideband high-precision positioning characteristics (positioning accuracy at the centimeter level). Based on ultra-wideband positioning technology, not only can the exact location of the terminal device be accurately located, but also the user's moving direction relative to a certain card reader can be accurately determined, for example, it can be getting closer or farther away.

[0067] Specifically, the card reader can continuously monitor the distance between itself and the terminal device, and determine whether the terminal is getting closer to the card reader or farther away from the card reader based on the change in the distance. The continuous monitoring can be continuous monitoring or periodic monitoring. For example, in the case of periodic monitoring, the monitoring can be performed every 0.5 seconds or 1 second.

[0068] When the distance between the terminal device and the card reader is monitored to decrease to the distance threshold, the card reader can send its own parameter information to the terminal device. Of course, the distance thresholds corresponding to different card readers may be different. For example, for a subway gate, the distance threshold may be 5 meters, and for an access control card reader, the distance threshold may be 10 meters, etc., which are not limited here. In addition, when the distance is monitored to increase, it indicates that the terminal device is gradually moving away from the card reader, and no processing is required.

[0069] In the disclosed embodiment, the card reader may send its own parameter information in the form of an ultra-wideband instruction. For example, the ultra-wideband instruction may carry parameter information. The parameter information may include the target type of the simulated card supported by the card reader. The types of simulated cards may include: access control cards, bank cards, bus cards, etc. Different card readers support different types of simulated cards. For example, the target type of the simulated card in the parameter information sent by the subway gate is a bus card, the target type of the simulated card in the parameter information sent by the access control card reader is an access control card, and the target type of the simulated card in the parameter information sent by the UnionPay POS machine is a bank card.

[0070] Step S440: after receiving the card reader parameter information sent by the card reader, the terminal device detects whether there is an enabled simulated card in the terminal device.

[0071] In the embodiment of the present disclosure, the NFC function in the terminal device may not be enabled. Therefore, after receiving the parameter information sent by the card reader, it is possible to first detect whether there is an enabled simulated card in the terminal device.

[0072] Step S450, when there is an enabled analog card in the terminal device, and when the type of the enabled analog card in the terminal device is different from the target type, the enabled analog card in the terminal device is switched to a simulated card of the target type.

[0073] Specifically, when the terminal device performs a card swiping operation, one of the simulated cards can be simulated. That is, one of the multiple simulated cards in the terminal device can be enabled. For example, when swiping the access control card, the access control card is enabled, and other cards are not enabled. When swiping the UnionPay POS machine, one of the bank cards is enabled, and other bank cards and access control cards are not enabled. It can be seen that different simulated cards can be enabled for different card readers.

[0074] Therefore, after receiving the parameter information sent by different card readers, the terminal device can directly switch the simulated card according to the target type. In the embodiment of the present disclosure, the switching of the enabled simulated card means setting another simulated card to the enabled state when the currently enabled simulated card is set to the disabled 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 simulated card is a bus card, no processing is required. If the currently enabled simulated card is a bank card, then the bank card can be set to the disabled state and the bus card can be set to the enabled state.

[0075] It should be noted that multiple cards of the same type may be activated in the terminal device, for example, the user has activated multiple bank cards. At this time, that is, when the number of simulated cards of the target type is multiple, the activated simulated card in the terminal device can be switched to the simulated card of the target type that the user used most recently. For example, when a user consumes at a convenience store, the target type is a bank card, and the user's terminal device has activated the first bank card, the second bank card, and the third bank card. If the user used the second bank card most recently, then the activated simulated card in the terminal device can be switched to the second bank card. In this way, it can be more in line with the user's usage habits, thereby improving the user experience.

[0076] Step S460: When there is no enabled analog card in the terminal device, a prompt message indicating enabling the analog card is displayed.

[0077] In the embodiment of the present disclosure, when the NFC function is not enabled, a prompt message may be displayed to prompt the user to enable the NFC function.

[0078] It should be noted that different card readers may require different NFC radio frequency parameters when performing NFC radio frequency communication. For example, although both Metro Line 1 and Line 2 can swipe bus cards, different subway lines may have subway gates manufactured by different equipment manufacturers, and these gates may require different NFC radio frequency parameters to adapt.

[0079] In one implementation of the present disclosure, the parameter information sent by the card reader may also include the address identification information of the card reader, which may be an IP (Internet Protocol) address, a physical address, etc. Thus, before the user swipes the card through the terminal device, in addition to performing the analog card switching, the radio frequency parameters matching the card reader may be determined according to the address identification information of the card reader. The analog card switching process and the radio frequency parameter setting process may be performed simultaneously or successively, which is not limited here.

[0080] Specifically, appropriate RF parameters can be saved when the terminal device is tested before leaving the factory, and the RF parameters and address identification information are formed into a mapping table, and the mapping table is stored in the memory of the terminal device. In the case where the RF parameters corresponding to the address identification information of the card reader are stored, the RF parameters of the terminal device can be set to the RF parameters corresponding to the address identification information of the card reader, and when the user swipes the card through the terminal device, near-field communication is performed with the card reader according to the RF parameters. In the case where the RF parameters corresponding to the address identification information of the card reader are not stored, the RF parameters of the terminal device can be set to the initial RF parameters, and when the user swipes the card through the terminal device, near-field communication is performed with the card reader according to the initial RF parameters. Among them, the initial RF parameters can be pre-set universal RF parameters, and near-field communication with most card readers is relatively smooth when using the RF parameters.

[0081] See also Figure 6 , Figure 6 Another interactive flow chart of the analog card switching method according to the embodiment of the present disclosure is shown, which may include the following steps:

[0082] Step S610: the card reader broadcasts a signal.

[0083] Step S620: After receiving the above signal, the terminal device establishes a communication connection with the card reader.

[0084] Step S630: the terminal device continuously monitors the distance between itself and the card reader, and when the distance decreases to a distance threshold, sends a request message to the card reader, wherein the parameter information is used to indicate the target type of the simulated card supported by the card reader.

[0085] Step S640: After receiving the request information, the card reader sends its own parameter information to the terminal device.

[0086] Step S650: After receiving the parameter information, the terminal device detects whether there is an enabled simulation card in the terminal device.

[0087] Step S660, when there is an enabled analog card in the terminal device, and when the type of the enabled analog card in the terminal device is different from the target type, the enabled analog card in the terminal device is switched to a simulated card of the target type.

[0088] Step S670: When there is no enabled analog card in the terminal device, a prompt message indicating enabling the analog card is displayed.

[0089] It should be noted that Figure 6 Steps S610, S620 and S650-S670 in the embodiment are respectively Figure 4The processing procedures of steps S410, S420 and S440 to S460 in the embodiment are the same, for details, see Figure 4 The description in the embodiments is sufficient and will not be repeated here.

[0090] In step S630, Figure 4 The difference between the embodiments is that, in addition to the card reader actively and continuously monitoring the distance between itself and the terminal device, the terminal device can also actively and continuously monitor the distance between itself and the card reader. When the distance between the two is monitored to be reduced to a distance threshold, the terminal device can send a request message to the card reader, and the request message is used to make the card reader send parameter information.

[0091] In step S640, after receiving the request information, the card reader may send parameter information to the terminal device.

[0092] In the disclosed embodiment, the above Figure 2 , Figure 3 , Figure 4 and Figure 6 The embodiments all belong to the process of automatically switching the simulation card. The present disclosure also supports the process of manual switching. Specifically, after the user performs a switching operation on the touch screen of the terminal device, the terminal device responds to the user's simulation card switching operation and switches the enabled simulation card in the terminal device to the target simulation card to be switched by the user.

[0093] It should be noted that the user can switch the simulated card at any time. For example, the user can switch manually before the terminal device automatically switches. Then, in this case, since the user has manually switched to the correct simulated card, the terminal device may no longer switch automatically before the user swipes the card.

[0094] In addition, the user can also manually switch after the terminal device automatically switches. For example, if there are multiple analog cards of the same type in the terminal device, the user can manually switch to the analog card they want to use after the terminal device automatically switches. The terminal device can also store the scene and the operation, so that the terminal device can automatically switch to the analog card manually selected by the user when the same scene occurs next time.

[0095] In the analog card switching method of the disclosed embodiment, since the communication distance of NFC technology is generally within 10 cm, compared with the interaction between the terminal device and the card reader only through NFC technology in the related art, before the user brings the terminal device close to the card reader and performs an NFC transaction, the terminal device and the card reader can interact through UWB technology. In this way, 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 meter to 5 meters), avoiding the problem of increased card swiping time or even card swiping failure caused by switching when approaching the card reader at a close distance, thereby improving the efficiency and accuracy of analog card switching and improving user experience.

[0096] It should be noted that although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0097] Furthermore, in this exemplary embodiment, a terminal device is also provided. Figure 7 , the terminal device 700 includes:

[0098] The first wireless communication module 710 is used to establish a communication connection with the card reader after receiving a signal broadcasted by the card reader; receive the parameter information of the card reader itself; the parameter information is used to indicate the target type of the simulated card supported by the card reader;

[0099] The near field communication module 720 is electrically connected to the first wireless communication module 710, and is used to switch the enabled analog card in the terminal device to an analog card of the target type when the type of the enabled analog card in the terminal device is different from the target type.

[0100] In an exemplary embodiment disclosed in the present application, the terminal device 700 further includes:

[0101] A processor, configured to set the radio frequency parameters of the terminal device to the radio frequency parameters corresponding to the address identification information of the card reader when radio frequency parameters corresponding to the address identification information of the card reader are stored, so as to perform near field communication with the card reader according to the radio frequency parameters;

[0102] The processor is also used to set the radio frequency parameters of the terminal device to initial radio frequency parameters when no radio frequency parameters corresponding to the address identification information of the card reader are stored, so as to perform near field communication with the card reader according to the initial radio frequency parameters.

[0103] In an exemplary embodiment disclosed in the present application, the first wireless communication module 710 is also used to continuously monitor the distance between the card reader and itself after establishing a communication connection with the card reader, and when the distance is reduced to a distance threshold, send a request message to the card reader so that the card reader returns parameter information.

[0104] 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 the distance between the terminal device and the card reader is less than a distance threshold.

[0105] 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 broadcasted by the card reader.

[0106] In an exemplary embodiment disclosed in the present application, the processor is also used to detect whether there is an enabled analog card in the terminal device; when there is an enabled analog card in the terminal device, the near field communication module 720 executes the step of switching the enabled analog card in the terminal device to an analog card of the target type when the type of the enabled analog card in the terminal device is different from the target type; when there is no enabled analog card in the terminal device, a prompt message indicating that the analog card is enabled is displayed.

[0107] In an exemplary embodiment disclosed in the present application, the near field communication module 720 is specifically used to switch the enabled analog card in the terminal device to the analog card of the target type most recently used by the user when there are multiple analog cards of the target type.

[0108] In an exemplary embodiment disclosed in the present application, the near field communication module 720 is further used to switch the enabled analog card in the terminal device to the target analog card to be switched by the user in response to the analog card switching operation of the user.

[0109] In this example implementation, a card reader is also provided. Figure 8 , card reader 800, including:

[0110] The second wireless communication module 810 is used to broadcast a signal to establish a communication connection with a terminal device that receives the signal; after establishing a communication connection with the terminal device, it sends its own parameter information to the terminal device, and the parameter information is used to indicate the target type of the analog card supported by the card reader, so that when the type of the enabled analog card is different from the target type, the terminal device switches the enabled analog card to the analog card of the target type.

[0111] In an exemplary embodiment disclosed in the present application, the above-mentioned second wireless communication module 810 is also used to continuously monitor the distance between the terminal device and itself, and when the distance decreases to a distance threshold, execute the step of sending its own parameter information to the terminal device, and when the distance increases, no processing is performed.

[0112] The specific details of each module or unit in the above-mentioned terminal device and card reader have been described in detail in the corresponding analog card switching method, so they will not be repeated here.

[0113] 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 as follows: Figure 1 The wireless communication module in the electronic device shown in FIG. Figure 1 The description in . The near field communication module 720 in the terminal device 700 can be an independent module or integrated in the first wireless communication module, which is not limited here. The processor in the terminal device 700 can be a general-purpose processor, including: a central processing unit, etc., and can also be a field programmable gate array or other programmable logic devices, discrete gates or transistor logic devices, etc.

[0114] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0115] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is further provided, on which a computer program is stored. When the computer program is executed by a processor, any one of the above-mentioned methods is implemented.

[0116] It should be noted that the computer-readable storage medium shown in the present disclosure may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, radio frequency, etc., or any suitable combination of the above.

[0117] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0118] It should be understood that the present disclosure is not limited to the exact structures that have been 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

1. A method for switching a simulated card, characterized in that: Applied to terminal equipment, including: After receiving the signal broadcasted by the card reader, a communication connection is established with the card reader, wherein the communication connection is a long-distance communication connection, and the communication distance of the long-distance communication connection is greater than the communication distance of the near-field communication; After establishing the communication connection with the card reader and before performing near field communication with the card reader, receiving parameter information of the card reader itself sent by the card reader, wherein the parameter information is used to indicate the target type of the simulated card supported by the card reader; When the type of the enabled analog card in the terminal device is different from the target type, the enabled analog card in the terminal device is switched to a analog card of the target type.

2. The method according to claim 1, characterized in that The parameter information also includes address identification information of the card reader; after receiving the parameter information, the method further includes: In the case where radio frequency parameters corresponding to the address identification information of the card reader are stored, setting the radio frequency parameters of the terminal device to the radio frequency parameters corresponding to the address identification information of the card reader, so as to perform near field communication with the card reader according to the radio frequency parameters; In the case that no radio frequency parameters corresponding to the address identification information of the card reader are stored, the radio frequency parameters of the terminal device are set to initial radio frequency parameters, so as to perform near field communication with the card reader according to the initial radio frequency parameters.

3. The method according to claim 1 or 2, characterized in that: The receiving the parameter information of the card reader itself sent by the card reader includes: When the distance between the terminal device and the card reader is less than a distance threshold, the parameter information of the terminal device sent by the card reader is received.

4. The method according to claim 1 or 2, characterized in that: Before receiving the parameter information of the card reader itself sent by the card reader, the method further includes: After establishing a communication connection with the card reader, continuously monitoring the distance between the card reader and itself; When the distance is reduced to a distance threshold, a request message is sent to the card reader so that the card reader returns the parameter information.

5. The method according to claim 1 or 2, characterized in that: After receiving the parameter information of the card reader itself sent by the card reader, the method further includes: Detecting whether there is an enabled analog card in the terminal device; When there is an enabled analog card in the terminal device, the step of switching the enabled analog card in the terminal device to an analog card of the target type is performed when the type of the enabled analog card in the terminal device is different from the target type.

6. The method according to claim 5, characterized in that After detecting whether there is an enabled analog card in the terminal device, the method further includes: When there is no enabled analog card in the terminal device, a prompt message indicating enabling the analog card is displayed.

7. The method according to claim 1 or 2, characterized in that: The step of switching the enabled analog card in the terminal device to an analog card of the target type includes: When there are multiple simulated cards of the target type, the enabled simulated card in the terminal device is switched to the simulated card of the target type that was most recently used by the user.

8. The method according to claim 1 or 2, characterized in that: Also includes: In response to the user's simulation card switching operation, the enabled simulation card in the terminal device is switched to the target simulation card to be switched by the user.

9. The method according to claim 1 or 2, characterized in that: After receiving the signal broadcasted by the card reader, establishing a communication connection with the card reader includes: After receiving the ultra-wideband signal broadcasted by the card reader, an ultra-wideband communication connection is established with the card reader.

10. A simulation card switching method, characterized in that: Applicable to card readers, including: Broadcasting a signal to establish a communication connection with a terminal device that receives the signal, wherein the communication connection is a long-distance communication connection, and the communication distance of the long-distance communication connection is greater than the communication distance of the near-field communication; After establishing a communication connection with the terminal device and before conducting near-field communication with the terminal device, the card reader sends its own parameter information to the terminal device, wherein the parameter information is used to indicate the target type of the simulated card supported by the card reader, so that the terminal device switches the enabled simulated card to a simulated card of the target type when the type of the enabled simulated card is different from the target type.

11. The method according to claim 10, characterized in that Before sending the parameter information of the terminal device, the method further includes: Continuously monitoring the distance between the terminal device and itself; When the distance is reduced to the distance threshold, executing the step of sending the parameter information of the terminal device itself to the terminal device; When the distance increases, no processing is performed.

12. A terminal device, characterized in that: include: a first wireless communication module, configured to establish a communication connection with the card reader after receiving a signal broadcasted by the card reader, and after establishing the communication connection with the card reader and before performing near field communication with the card reader, receive parameter information of the card reader itself, wherein the parameter information is used to indicate a target type of a simulated card supported by the card reader, and the communication connection is a long-distance communication connection, and the communication distance of the long-distance communication connection is greater than the communication distance of the near field communication; A near field communication module is electrically connected to the first wireless communication module, and is used to switch the enabled analog card in the terminal device to an analog card of the target type when the type of the enabled analog card in the terminal device is different from the target type.

13. A card reader, characterized in that: include: A second wireless communication module is used to broadcast a signal to establish a communication connection with a terminal device that receives the signal, wherein the communication connection is a long-distance communication connection, and the communication distance of the long-distance communication connection is greater than the communication distance of the near-field communication; after establishing a communication connection with the terminal device and before conducting near-field communication with the terminal device, the second wireless communication module is used to send its own parameter information to the terminal device, wherein the parameter information is used to indicate a target type of the analog card supported by the card reader, so that when the type of the enabled analog card is different from the target type, the terminal device switches the enabled analog card to an analog card of the target type.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.

Citation Information

Patent Citations

  • NFC mobile terminal and NFC simulation card switching control method

    CN105491243A

  • NFC (Near Field Communication) device, reader, system and configuration data transmission method

    CN105825158A

  • Method for automatically selecting NFC simulation card, electronic equipment and communication system

    CN110020569A