WO2022012173A1 - 模拟卡切换方法、终端设备及存储介质 - Google Patents

模拟卡切换方法、终端设备及存储介质 Download PDF

Info

Publication number
WO2022012173A1
WO2022012173A1 PCT/CN2021/095945 CN2021095945W WO2022012173A1 WO 2022012173 A1 WO2022012173 A1 WO 2022012173A1 CN 2021095945 W CN2021095945 W CN 2021095945W WO 2022012173 A1 WO2022012173 A1 WO 2022012173A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
card
enabled
type
analog
Prior art date
Application number
PCT/CN2021/095945
Other languages
English (en)
French (fr)
Inventor
高申俊
Original Assignee
Oppo广东移动通信有限公司
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
Priority claimed from CN202010694120.1A external-priority patent/CN111784334B/zh
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022012173A1 publication Critical patent/WO2022012173A1/zh

Links

Images

Classifications

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

Definitions

  • the present disclosure relates to the technical field of near field communication, and in particular, to an analog card switching method, a terminal device, and a computer-readable storage medium.
  • NFC Near Field Communication, near field communication
  • one of the emulated cards is usually enabled when the terminal device is in an idle state.
  • the card can be swiped successfully only after switching the analog card automatically or manually, which is inefficient and has poor user experience.
  • an analog card switching method is provided, applied to a terminal device, including:
  • the enabled emulation card in the terminal device is the first type of emulation card
  • the enabled emulation card in the terminal device is switched to the second type of emulation card.
  • a terminal device comprising:
  • a near field communication module for receiving radio frequency signals
  • a processor configured to continuously monitor whether the terminal device is in a motion state after the near-field communication module receives the radio frequency signal; when the terminal device is in a motion state, determine an enabled analog card in the terminal device ; when the enabled simulation card in the terminal device is the first type of simulation card, the control application program switches the enabled simulation card in the terminal device to the second type of simulation card.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned method for switching an analog card is implemented.
  • FIG. 1 shows a schematic structural diagram of an electronic device suitable for implementing an embodiment of the present disclosure
  • FIG. 2 shows a flowchart of a method for switching an analog card according to an embodiment of the present disclosure
  • FIG. 3 shows another flowchart of the method for switching an analog card according to an embodiment of the present disclosure
  • FIG. 4 shows a schematic structural diagram of a terminal device and a security inspection device in an embodiment of the present disclosure
  • FIG. 5 shows a schematic structural diagram of a terminal device and a gate in an embodiment of the present disclosure
  • FIG. 6 shows a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • Example embodiments will now be described more fully with reference to the accompanying drawings.
  • Example embodiments can be embodied in various 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.
  • numerous specific details are provided in order to give a thorough understanding of the embodiments of the present disclosure.
  • those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed.
  • well-known solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
  • 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 impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
  • 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, Universal Serial Bus) ) interface 150, antenna 1, antenna 2, internal memory 161, external memory interface 162, display screen 170, sensor module 180, etc.
  • the sensor module 180 may include: a gyro sensor 181 and the like.
  • the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different 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 , baseband processor and/or neural network processor, etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • 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 .
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be directly called from the memory, which avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
  • the wireless communication module 120 may provide a wireless communication solution applied on the electronic device 100 including wireless local area network, Bluetooth, global navigation satellite system, frequency modulation, NFC technology, infrared technology, and the like.
  • the wireless communication module 120 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 120 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 120 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and then convert it into electromagnetic waves for radiation through the antenna 2 .
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 130, and the antenna 2 is coupled with the wireless communication module 120, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the NFC technology is a short-range (within 10 cm) wireless communication technology. Its working 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.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 150 .
  • 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 charges the battery 142 , it can also supply power to the electronic device through the power management module 141 .
  • 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, the modulation and demodulation processor, the baseband processor, and the like.
  • the gyro sensor 181 may be used to determine the motion attitude of the electronic device 100 .
  • the angular velocity of the electronic device 100 about three axes ie, the x, y, and z axes
  • the gyro sensor 181 may also be used for navigation and the like.
  • the terminal devices can simulate bus cards, bank cards and access control cards, etc. Therefore, the user can directly swipe the card through the terminal device.
  • the analog card needs to be switched. For example, after the user has swiped the bus through the terminal device, he may need to swipe the access control. In this case, the analog card can be switched manually or automatically.
  • an analog card can be used as the default card, and the default card is enabled when the terminal device is in an idle state. That is, the default card is active and the other emulated cards are inactive.
  • the terminal device swipes the card, according to the ISO (International Organization for Standardization, International Organization for Standardization) protocol, at the ISO14443-3 protocol layer, the card reader can extract and identify UID (Unique Identifier, unique identification code) information, and according to its own rules , choose whether to end the transaction or continue to enter the ISO/IEC14443-4 layer or the private protocol layer.
  • ISO International Organization for Standardization
  • UID Unique Identifier, unique identification code
  • the card reader can determine whether the card is legal or illegal.
  • the card reader can enter the ISO14443-4 layer for further transactions (such as deduction, recharge, etc.).
  • the terminal device when the terminal device is in an idle state, it can switch to the bus card, that is, the bus card is used as the default card. In this way, when users take the bus/subway, they do not need to switch cards, which speeds up transactions and reduces congestion.
  • the terminal device When the terminal device is close to the card reader, the corresponding card will be selected according to the final confirmation information of ISO14443-3 layer.
  • the first card swiping will inevitably fail because the UID information is incorrect, and the access control system will give a prompt to the illegal user. Only when the user keeps the terminal device on the access control system until the terminal device is intelligently switched to the access control card, can the swipe succeed. It can be seen that in the related art, the card swiping efficiency is low when the card is swiped through an analog card, and the probability of successful card swiping is also low.
  • the present disclosure provides an analog card switching method, a terminal device, and a computer-readable storage medium, so as to improve the card swiping efficiency and the probability of successful card swiping.
  • FIG. 2 shows a flowchart of a method for switching an analog card according to an embodiment of the present disclosure, which is applied to a terminal device and may include the following steps:
  • Step S210 after receiving the radio frequency signal, continuously monitor whether the terminal device is in a motion state.
  • Step S220 when the terminal device is in a motion state, determine an enabled analog card in the terminal device.
  • Step S230 when the enabled emulation card in the terminal device is the first type of emulation card, switch the enabled emulation card in the terminal device to the second type of emulation card.
  • the terminal device when a user performs a card swipe operation through a terminal device, the terminal device is usually in a stationary state. When the user passes through the security gate or other security inspection equipment, the terminal device is in motion. Therefore, when it is determined that the motion state of the terminal device is motion, it can be determined that the terminal device has passed through the security inspection device. At this time, the enabled analog card in the terminal device is switched to a second type of analog card, such as a bus card, so that the analog card can be switched in advance, and the efficiency of the user entering the station by swiping the card and the probability of successful card swiping can be improved.
  • a second type of analog card such as a bus card
  • FIG. 3 shows another flowchart of the method for switching an analog card according to an embodiment of the present disclosure, which is applied to a terminal device and may include the following steps:
  • Step S310 after receiving the radio frequency signal, continuously monitor whether the terminal device is in a motion state.
  • the terminal device may perform radio frequency communication with the card reader, and may also communicate with other devices having a radio frequency transceiver module.
  • the terminal equipment can also perform radio frequency communication with the security inspection equipment.
  • the distance of the radio frequency communication is generally within 10cm.
  • the terminal device When a user swipes a card through a terminal device, the terminal device is basically in a stationary state. However, when the user takes the subway, he usually passes through the security inspection equipment first, and when the user passes through the security inspection equipment, the terminal device is in motion. On this basis, it can be judged whether the terminal device has passed the security inspection device according to the motion state of the terminal device, and whether to switch the analog card or not.
  • FIG. 4 shows a schematic structural diagram of a terminal device and a security inspection device in an embodiment of the present disclosure. It can be seen that the near field communication module 411 in the security inspection device 410 and the near field communication module 421 in the terminal device 420 for near field communication. After receiving the radio frequency signal sent by the near field communication module 411, the near field communication module 421 may report to the processor 423 that the radio frequency signal has been received. After that, the processor 423 continuously monitors the motion state of the terminal device.
  • the method for the processor 423 to continuously monitor the motion state of the terminal device 420 may specifically include: continuously acquiring the motion information of the terminal device 420 within a preset time period. Since the motion sensor 422 can be used to determine the motion posture of the terminal device 420 . Accordingly, the motion information provided by the motion sensor 422 can be acquired.
  • the motion sensor 422 may be a gyro sensor, an accelerometer, or the like.
  • the preset time period may be the time taken by the user to pass the security inspection device under normal circumstances, for example, may be 2s or 3s, etc., which is not specifically limited in the present disclosure.
  • the storage module 424 in the terminal device 420 may store near field communication information of the terminal device, etc., and the storage module 424 may be an embedded security storage unit or the like.
  • Step S320 when the terminal device is in a motion state, detect whether a radio frequency signal is received after a preset time period.
  • the terminal device when the user passes through the security inspection device, the terminal device is in motion. Therefore, when it is determined that the motion state of the terminal device is motion, it can be determined that the user has passed through the security inspection device. Since the distance of near field communication is generally within 10cm, during the movement of the user, the user will gradually move away from the security inspection equipment, the near field communication connection between the terminal device and the security inspection equipment will be disconnected, and the radio frequency signal sent by the security inspection equipment will no longer be received. . Alternatively, even if the radio frequency signal can still be received, the intensity of the radio frequency signal gradually decreases, and when the intensity of the received radio frequency signal is lower than a certain threshold, it can be considered that the radio frequency signal is no longer received.
  • the time spent by the user through the security inspection equipment is different. For example, during the rush hour, it takes a long time for the user to pass through the security check equipment, and the preset time may be 5s or 6s. In other time periods, the time it takes for the user to pass through the security inspection equipment is relatively short, and the preset time period may be 2s or 3s.
  • Step S330 when no radio frequency signal is received after a preset time period, determine an enabled analog card in the terminal device.
  • the terminal device does not receive the radio frequency signal after the preset time period, it can be further determined that the terminal device has left the security inspection device and the user is about to take the subway or other means of transportation.
  • An enabled analog card in a terminal device refers to an active analog card, and the number of enabled analog cards is 1, and other analog cards are in an inactive state. Enabled simulated card for swipe operation.
  • the analog card that has been enabled in the terminal device can be represented by the analog card type selection variable.
  • the enabled analog card in the terminal device can be set as an access control card, and the parameter value of the analog card type selection variable can be set as the first parameter value (for example, it can be 0, etc.) .
  • the parameter value of the analog card type selection variable can be modified, so that different parameter values correspond to different types of analog cards.
  • the parameter value corresponding to the access control card is the first parameter value
  • the parameter value corresponding to the bus card is the second parameter value 1
  • the parameter value corresponding to the bank card is the third parameter value 2, and so on.
  • the parameter value of the analog card type selection variable can be obtained; and based on the parameter value, the enabled analog card in the terminal device can be determined. For example, if the acquired value of this parameter is 0, it can be determined that the enabled analog card in the terminal device is an access control card.
  • Step S340 when the enabled emulation card in the terminal device is the first type of emulation card, switch the enabled emulation card in the terminal device to the second type of emulation card.
  • the present disclosure sets the enabled analog card in the terminal device as the access control card by default, that is, the first type of analog card. If the user does not manually switch, the enabled analog card in the terminal device is the first type of analog card. type of analog card. In this case, it is sufficient to directly switch the enabled emulation card in the terminal device to the emulation card of the second type.
  • the second type of simulation card is a bus card.
  • the parameter value of the analog card type selection variable may be set as the second parameter value.
  • the activated analog card is switched to the bus card, so that when the user passes through the gate and swipes the card through the terminal device, the card swiping efficiency and the probability of successful card swiping can be improved.
  • Step S350 acquiring the inbound and outbound status of the second type of analog card.
  • near field communication can be performed between the terminal device and the gate.
  • the near field communication module 521 in the terminal device 520 can perform near field communication with the near field communication module 511 in the gate 510 .
  • the gate confirms that the analog card is legal and the balance meets the requirements, and can send it to the terminal device through the corresponding application protocol data unit command. Simulate the entry station, entry time, and entry and exit status (inbound) of the card, and then open the gate.
  • the near field communication module 521 in the terminal device 520 can store the application protocol data unit instruction in the storage module 522, and store the application protocol data unit instruction.
  • Module 522 may be an embedded secure storage unit or the like.
  • the application program in the terminal device can obtain the application protocol data unit instruction from the storage module 522 , extract the inbound and outbound status from the application protocol data unit instruction, and report the inbound and outbound status to the processor 523 .
  • Step S360 when the inbound and outbound state is the inbound state, keep the emulation card enabled in the terminal device as the emulation card of the second type.
  • step S340 it can be known that the enabled analog card in the terminal device has been switched to the second type of analog card.
  • the user does not switch manually, after the user leaves the gate and enters the station for a period of time, the mobile phone enters the idle state, and the parameter value of the analog card type selection variable that can be read is still the second parameter value. Therefore, the enabled analog card in the terminal device is still the second type of analog card.
  • the user since the user needs to use the bus card when swiping the card next time, and no other analog cards can be used during this period, keep the The emulation card enabled in the terminal device may be the emulation card of the second type.
  • the user needs to swipe the card again when taking the subway out of the station, and the user will not perform the operation of manually switching the analog card.
  • the enabled emulation card in the terminal device is no longer the second type of emulation card, and the enabled emulation card in the terminal device can be switched to the second type of emulation card.
  • Step S370 when the inbound and outbound state is the outbound state, switch the emulation card that has been enabled in the terminal device to the emulation card of the first type.
  • the outbound process is similar to the inbound process, the difference is that, in addition to issuing the card status to the terminal device as outbound and opening the gate, the gate can also perform deduction, settlement and update according to the inbound site. card balance, etc.
  • the emulation card enabled in the terminal device is the emulation card of the second type.
  • the terminal device After the terminal device receives the outbound information, it switches the enabled analog card in the terminal device to the first type of analog card.
  • the parameter value of the analog card type selection variable is set as the first parameter value.
  • the terminal device After the user leaves the gate and exits the station for a period of time, the terminal device enters the idle state. At this time, it can be detected that the value of the parameter value of the analog card type selection variable is the first parameter value, then it is determined that the enabled analog card in the terminal device is the first parameter value. A type of analog card.
  • step S320 when the motion state of the terminal device is static, it means that the terminal device is not passing through the security inspection device, but is performing a card swiping operation.
  • the user may be swiping the access control system, or swiping the gate machine or the UnionPay POS (point of sale) machine. In this case, no processing is required.
  • the user when the user does not pass through the security inspection equipment, for example, when the user swipes the card at the bus stop, he may not pass through the security inspection equipment, because the simulated card enabled by the terminal device by default is the first type analog card. Therefore, the user can perform a manual switching operation, so that the enabled emulation card in the terminal device is the emulation card of the second type.
  • the terminal device can also acquire the inbound and outbound status of the second type of analog card.
  • the inbound and outbound state is the inbound state, it is sufficient to keep the enabled analog card in the terminal device as the second type of analog card.
  • the inbound and outbound state is the outbound state, the enabled analog card in the terminal device is switched to the first type of analog card.
  • the enabled analog card in the terminal device can be switched to the first type of analog card. That is, by default, the enabled emulation card in the terminal device is the first type of emulation card.
  • the above processes are all switching between the first type of emulation card and the second type of emulation card.
  • the user can perform manual switching at any time. For example, the user can manually switch the terminal device before the automatic switch. Then, in this case, since the user has manually switched to the correct analog card, the terminal device can no longer perform automatic switching before the user swipes the card.
  • the user can also perform manual switching after the terminal device is automatically switched. For example, there are multiple analog cards of the same type in the terminal device, and after the terminal device is automatically switched, the user manually switches to the desired analog card.
  • the terminal device can also store the scene and the operation, so that the terminal device can also automatically switch to the analog card manually selected by the user when the same scene occurs next time.
  • the terminal device may, in response to the user's analog card switching operation, switch the analog card enabled in the terminal device to the analog card of the target type to be switched by the user.
  • the target type is the third type
  • the enabled analog card in the terminal device can also be switched to the first type of analog card, so that the enabled analog card in the terminal device is the first type of analog card Card.
  • the third type of simulated cards may be other types of simulated cards such as bank cards.
  • the first type of simulated card may also be a bank card
  • the third type of simulated card is an access control card and the like.
  • the user can directly swipe the card when swiping the UnionPay POS machine, and before swiping the access control, the analog card enabled in the terminal device can be manually switched to the access control card.
  • the enabled analog card in the terminal device is set as the first type of analog card, and the user can simply swipe the access control through the terminal device.
  • the user can automatically switch to the second type of analog card according to the above method.
  • the present disclosure can enable the corresponding analog card according to the motion state of the terminal device and the inbound/outbound state of the analog card, instead of enabling a certain analog card all the time. Subway credit card transaction speed, which can improve the user experience.
  • the terminal device 600 includes:
  • a near field communication module 610 for receiving radio frequency signals
  • the processor 620 is configured to continuously monitor whether the terminal device is in a moving state after the near-field communication module 610 receives the radio frequency signal; when the terminal device is in a moving state, determine an enabled analog card in the terminal device; When the enabled simulation card is the first type of simulation card, the control application program switches the enabled simulation card in the terminal device to the second type of simulation card.
  • the processor 620 continuously monitors whether the terminal device is in a motion state through the following steps:
  • the near field communication module 610 is configured to detect whether a radio frequency signal is received after a preset time period
  • the processor 620 is specifically configured to perform the step of determining an enabled analog card in the terminal device when it is determined that the near field communication module has not received a radio frequency signal after a preset time period.
  • the processor is further configured to acquire the inbound and outbound status of the emulation card of the second type; when the inbound and outbound status is the inbound state, keep the enabled analog card in the terminal device as The second type of analog card.
  • the processor is further configured to switch the emulation card enabled in the terminal device to the emulation card of the first type when the inbound and outbound state is the outbound state.
  • the processor 620 determines an enabled analog card in the terminal device through the following steps:
  • the processor 620 is further configured to set the parameter value of the simulation card type selection variable to the first type of simulation card after switching the enabled simulation card in the terminal device to the first type of simulation card A parameter value; after switching the enabled simulation card in the terminal device to the second type of simulation card, the parameter value of the simulation card type selection variable is set as the second parameter value.
  • the processor 620 is further configured to not perform processing when the motion state of the terminal device is stationary.
  • the processor 620 is further configured to, in response to a user's analog card switching operation, switch an enabled analog card in the terminal device to an analog card of a target type to be switched by the user.
  • the processor 620 is further configured to, when the target type is the third type, switch the emulated card enabled in the terminal device to the emulated card of the first type after the card swiping operation is completed .
  • the near field communication module 610 in the terminal device 600 may be an independent module, or may be a sub-module in the wireless communication module in the electronic device as shown in FIG. 1 , which is not limited herein.
  • the processor 620 in the terminal device 600 may be the processor in the electronic device as shown in FIG. 1 , for example, it 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 Or transistor logic devices, etc.
  • modules or units of the apparatus for action performance are mentioned in the above detailed description, this division is not mandatory. Indeed, according to embodiments of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above may be further divided into multiple modules or units to be embodied.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements any one of the methods described above.
  • 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, apparatus or device, or any combination of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
  • RAM random access memory
  • ROM read only memory
  • EPROM or flash memory erasable Programmable read only memory
  • CD-ROM compact disk read only memory
  • optical storage devices magnetic storage devices, or any suitable combination of the foregoing.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .
  • Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, radio frequency, etc., or any suitable combination of the foregoing.

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

一种基于近场通信技术的模拟卡切换方法、终端设备及计算机可读存储介质,方法包括:在接收到射频信号后,持续监测终端设备是否处于运动状态(S210);在终端设备处于运动状态时,确定终端设备中已启用的模拟卡(S220);在终端设备中已启用的模拟卡为第一类型的模拟卡时,将终端设备中已启用的模拟卡切换为第二类型的模拟卡(S230)。本申请可以提高刷卡效率和刷卡成功的概率,从而可以提升用户体验。

Description

模拟卡切换方法、终端设备及存储介质
交叉引用
本公开要求于2020年7月17日提交的申请号为202010694120.1名称为“模拟卡切换方法、终端设备及存储介质”的中国专利申请的优先权,该中国专利申请的全部内容通过引用全部并入本文。
技术领域
本公开涉及近场通信技术领域,具体而言,涉及一种模拟卡切换方法、终端设备以及计算机可读存储介质。
背景技术
目前,越来越多的终端设备具备NFC(Near Field Communication,近场通信)功能。在终端设备上开通/绑定公交卡、银行卡以及门禁卡后,用户在乘坐公交车、购买商品或进入带有门禁的大楼时,均可以通过终端设备中的模拟卡进行刷卡等。
然而,在终端设备上开通了多张模拟卡之后,当终端设备处于空闲状态时,通常启用其中的一张模拟卡。在要使用其他模拟卡进行刷卡时,只有先自动或手动切换模拟卡之后才可以刷卡成功,效率较低,用户体验较差。
公开内容
根据本公开的第一方面,提供一种模拟卡切换方法,应用于终端设备,包括:
在接收到射频信号后,持续监测所述终端设备是否处于运动状态;
在所述终端设备处于运动状态时,确定所述终端设备中已启用的模拟卡;
在所述终端设备中已启用的模拟卡为第一类型的模拟卡时,将所述终端设备中已启用的模拟卡切换为第二类型的模拟卡。
根据本公开的第二方面,提供一种终端设备,包括:
近场通信模块,用于接收射频信号;
处理器,用于在所述近场通信模块接收到射频信号后,持续监测所述终端设备是否处于运动状态;在所述终端设备处于运动状态时,确定所述终端设备中已启用的模拟卡;在所述终端设备中已启用的模拟卡为第一类型的模拟卡时,控制应用程序将所述终端设备中已启用的模拟卡切换为第二类型的模拟卡。
根据本公开的第三方面,提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述模拟卡切换的方法。
附图说明
图1示出了适于用来实现本公开实施例的电子设备的结构示意图;
图2示出了本公开实施例的模拟卡切换方法的一种流程图;
图3示出了本公开实施例的模拟卡切换方法的又一种流程图;
图4示出了本公开实施例中终端设备和安检设备的一种结构示意图;
图5示出了本公开实施例中终端设备和闸机的一种结构示意图;
图6示出了本公开实施例的终端设备的一种结构示意图。
具体实施方式
现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。在下面的描述中,提供许多具体细节从而给出对本公开的实施方式的充分理解。然而,本领域技术人员将意识到,可以实践本公开的技术方案而省略所述特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知技术方案以避免喧宾夺主而使得本公开的各方面变得模糊。
此外,附图仅为本公开的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。
参见图1,图1示出了适于用来实现本公开实施例的电子设备的结构示意图。需要说明的是,图1示出的电子设备100仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图1所示,电子设备100具体可以包括:处理器110、无线通信模块120、移动通信模块130、充电管理模块140、电源管理模块141、电池142、USB(Universal Serial Bus,通用串行总线)接口150、天线1、天线2、内部存储器161、外部存储器接口162、显示屏170和传感器模块180等。传感器模块180可以包括:陀螺仪传感器181等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件、软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如,处理器110可以包括应用处理器、调制解调处理器、图形处理器、图像信号处理器、控制器、视频编解码器、数字信号处理器、基带处理器和/或神经网络处理器等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。存储器可以存储用于实现六个模块化功能的指令:检测指令、连接指令、信息管理指令、分析指令、数据传输指令和通知指令,并由处理器110来控制执行。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用,避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
无线通信模块120可以提供应用在电子设备100上的包括无线局域网、蓝牙、全球导航卫星系统、调频、NFC技术、红外技术等无线通信的解决方案。无线通信模块120可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块120经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块120还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块130耦合,天线2和无线通信模块120耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。
其中,NFC技术是一种近距离(10厘米以内)无线通信技术。其工作频率为13.56MHz,目前该技术广泛应用于人们的生活当中,比如常见的地铁、公交、银联闪付和门禁系统等。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口150接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电子设备100的无线通信功能可以通过天线1、天线2、无线通信模块120、移动通信模块130、调制解调处理器以及基带处理器等实现。
陀螺仪传感器181可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器181确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器181还可以用于导航等。
以下对本公开实施例的技术方案进行详细阐述。
对于具有NFC功能的终端设备,终端设备可以模拟公交卡、银行卡和门禁卡等等。因此,用户可以直接通过该终端设备进行刷卡操作。在通过终端设备进行刷卡操作时,经常存在需要切换模拟卡的场景,例如,在用户通过终端设备刷完公交之后,可能需要刷门 禁,此时,可以通过手动方式或自动方式切换模拟卡。
其中,手动方式切换模拟卡的效率较低。而自动方式切换模拟卡时,可以将一张模拟卡作为默认卡,当终端设备处于空闲状态时,启用该默认卡。也就是,该默认卡处于激活状态,而其他模拟卡处于未激活状态。当终端设备刷卡时,根据ISO(International Organization for Standardization,国际标准化组织)协议,在ISO14443-3协议层,读卡器可以提取和识别UID(Unique Identifier,唯一识别码)信息,并根据自身的规则,选择交易结束还是继续进入ISO/IEC14443-4层或私有协议层。
举例而言,对于门禁卡,读卡器在提取到门禁卡的UID信息后,可以判断该卡片是合法的,还是非法的。而对于公交卡和银行卡,读卡器在提取到UID信息后,可以进入ISO14443-4层,进行进一步的交易(例如扣费、充值等)。
相关技术中的模拟卡切换方案中,终端设备处于空闲状态时,可以切换到公交卡,也就是将公交卡作为默认卡。这样,当用户在乘坐公交/地铁时,不需要进行卡片切换,加快交易速度,减少拥堵。当终端设备靠近读卡器后,才会根据ISO14443-3层最后的确认信息选择相应的卡片。然而,当用户通过终端设备刷门禁系统时,因为UID信息不正确导致第一次刷卡必然失败,而且门禁系统会给出非法用户的提示。只有当用户将终端设备一直放在门禁系统上,直至终端设备智能切换到门禁卡,才能刷成功。可见,相关技术中,通过模拟卡刷卡时刷卡效率较低,刷卡成功的概率也较低。
为了解决上述问题,本公开提供了一种模拟卡切换方法、终端设备以及计算机可读存储介质,以提高刷卡效率以及刷卡成功的概率。
参见图2,图2示出了本公开实施例的模拟卡切换方法的一种流程图,应用于终端设备,可以包括以下步骤:
步骤S210,在接收到射频信号后,持续监测终端设备是否处于运动状态。
步骤S220,在终端设备处于运动状态时,确定终端设备中已启用的模拟卡。
步骤S230,在终端设备中已启用的模拟卡为第一类型的模拟卡时,将终端设备中已启用的模拟卡切换为第二类型的模拟卡。
本公开实施例的模拟卡切换方法中,在用户通过终端设备进行刷卡操作时,终端设备通常处于静止状态。而当用户经过安检门或其他安检设备时,终端设备是运动的。因此,在判断终端设备的运动状态为运动时,可以确定终端设备经过安检设备。此时,将终端设备中已启用的模拟卡切换为第二类型的模拟卡,例如公交卡,这样,可以提前切换好模拟卡,提高用户刷卡进站的效率以及刷卡成功的概率。
以下对本公开实施例的模拟卡切换方法进行更加详细的介绍。
参见图3,图3示出了本公开实施例的模拟卡切换方法的又一种流程图,应用于终端设备,可以包括以下步骤:
步骤S310,在接收到射频信号后,持续监测终端设备是否处于运动状态。
本公开实施例中,终端设备可以和读卡器进行射频通信,也可以和其他具有射频收发 模块的设备进行通信。例如,终端设备也可以和安检设备进行射频通信。其中,该射频通信的距离一般在10cm以内。
通常情况下,在用户通过终端设备刷卡时,终端设备基本处于静止状态。但是,在用户乘坐地铁时通常先经过安检设备,并且当用户经过安检设备时,终端设备是运动的。在此基础上,可以根据终端设备的运动状态来判断终端设备是否经过安检设备,并确定是否进行模拟卡的切换。
参见图4,图4示出了本公开实施例中终端设备和安检设备的一种结构示意图,可以看出,安检设备410中的近场通信模块411和终端设备420中的近场通信模块421进行近场通信。近场通信模块421在接收到近场通信模块411发送的射频信号后,可以向处理器423上报已接收到射频信号。之后,处理器423持续监测终端设备的运动状态。
在本公开的一种实现方式中,处理器423持续监测终端设备420的运动状态的方法具体可以为:在预设时间段内持续获取终端设备420的运动信息。由于运动传感器422可以用于确定终端设备420的运动姿态。因此,可以获取运动传感器422提供的运动信息。其中,运动传感器422可以是陀螺仪传感器、加速度计等。
之后,基于运动信息,确定终端设备420的运动状态。其中,预设时间段可以是在正常情况下用户通过安检设备时所花费的时间,例如,可以是2s或3s等,本公开对此不做具体限定。
其中,终端设备420中的存储模块424可以存储终端设备的近场通信信息等,存储模块424可以是嵌入式安全存储单元等。
步骤S320,在终端设备处于运动状态时,在预设时间段之后检测是否接收到射频信号。
如前所述,当用户经过安检设备时,终端设备是运动的。因此,在确定终端设备的运动状态为运动时,可以确定用户经过安检设备。由于近场通信的距离一般在10cm以内,因此,在用户运动过程中,将逐渐远离安检设备,终端设备与安检设备的近场通信连接将断开,不会再接收到安检设备发送的射频信号。或者,即使还能接收到射频信号,射频信号的强度也逐渐降低,在接收到的射频信号的强度低于一定阈值时,也可以认为不再接收到射频信号。
需要说明的是,由于在不同的时间段,用户通过安检设备所花费的时间不同。例如,在上下班高峰时间段,用户通过安检设备所花费的时间较长,预设时间可以是5s或6s等。而在其他时间段,用户通过安检设备所花费的时间较短,预设时间段可以是2s或3s等。
步骤S330,在预设时间段之后未接收到射频信号时,确定终端设备中已启用的模拟卡。
具体的,如果终端设备在预设时间段之后未接收到射频信号,可以进一步确定终端设备已经离开安检设备,用户将要乘坐地铁或其他交通工具。在此可以提前切换好终端设备中已启用的模拟卡,为用户通过闸机时的刷卡操作做准备。终端设备中已启用的模拟卡指 的是处于激活状态的模拟卡,并且,已启用的模拟卡的数量为1个,其他模拟卡均处于未启用状态,终端设备在进行刷卡操作时,通过已启用的模拟卡进行刷卡操作。
本公开实施例中,可以通过模拟卡类型选择变量来表示终端设备中已启用的模拟卡。例如,在终端设备不进行刷卡操作时,可以将终端设备中已启用的模拟卡设置为门禁卡,并且将模拟卡类型选择变量的参数值设置为第一参数值(例如,可以为0等)。在通过手动方式或自动方式切换模拟卡之后,可以对该模拟卡类型选择变量的参数值进行修改,使不同的参数值对应不同类型的模拟卡。例如,门禁卡对应的参数值为第一参数值0,公交卡对应的参数值为第二参数值1,银行卡对应的参数值是第三参数值2等等。
因此,可以获取模拟卡类型选择变量的参数值;并基于参数值,确定终端设备中已启用的模拟卡。例如,如果获取到该参数值为0,那么可以确定终端设备中已启用的模拟卡为门禁卡。
步骤S340,在终端设备中已启用的模拟卡为第一类型的模拟卡时,将终端设备中已启用的模拟卡切换为第二类型的模拟卡。
具体的,本公开默认将终端设备中已启用的模拟卡设置为门禁卡,即第一类型的模拟卡,在用户未进行手动切换的情况下,终端设备中已启用的模拟卡即为第一类型的模拟卡。此时,直接将终端设备中已启用的模拟卡切换为第二类型的模拟卡即可。其中,第二类型的模拟卡为公交卡。相应地,在切换完成之后,可以将模拟卡类型选择变量的参数值设置为第二参数值。
这样,在检测到用户经过安检设备后,将已启用的模拟卡切换为公交卡,使得用户经过闸机并通过终端设备刷卡时,可以提高刷卡效率以及刷卡成功的概率。
步骤S350,获取第二类型的模拟卡的进出站状态。
需要说明的是,在用户经过安检设备之后,再经过闸机进行刷卡操作时,终端设备和闸机之间可以进行近场通信。具体可参见图5,在用户通过终端设备进行刷卡操作时,终端设备520中的近场通信模块521可以和闸机510中的近场通信模块511进行近场通信。在用户进站或出站时,根据交易流程,在ISO/IEC14443-4协议层,闸机确认模拟卡合法,且余额满足要求后,可以通过相应的应用协议数据单元指令,向终端设备下发模拟卡的进站站点、进站时间以及进出站状态(已进站),然后,打开闸门。
终端设备520中的近场通信模块521在接收到闸机510中的近场通信模块511发送的射频信号以及应用协议数据单元指令后,可以将应用协议数据单元指令存储至存储模块522中,存储模块522可以是嵌入式安全存储单元等。
终端设备中的应用程序(例如钱包应用)可以从存储模块522中获取应用协议数据单元指令,从应用协议数据单元指令中提取进出站状态,并向处理器523上报进出站状态。
步骤S360,在进出站状态为进站状态时,保持终端设备中已启用的模拟卡为第二类型的模拟卡。
在用户先经过安检设备的情况下,根据步骤S340可知,已将终端设备中已启用的模 拟卡切换为第二类型的模拟卡。在用户没有进行手动切换的情况下,用户离开闸机进站一段时间后,手机进入空闲状态,可以读取到模拟卡类型选择变量的参数值仍然为第二参数值。因此,终端设备中已启用的模拟卡仍然为第二类型的模拟卡,此时,由于用户在下一次刷卡时,还需要使用公交卡,并且在此期间可以不再使用其他模拟卡,因此,保持终端设备中已启用的模拟卡为第二类型的模拟卡即可。
通常情况下,用户在乘坐地铁出站时,还需要再刷一次卡,用户不会进行手动切换模拟卡的操作。但是,如果用户手动切换了模拟卡,那么,终端设备中已启用的模拟卡不再是第二类型的模拟卡,可以将终端设备中已启用的模拟卡切换为第二类型的模拟卡。
步骤S370,在进出站状态为出站状态时,将终端设备中已启用的模拟卡切换为第一类型的模拟卡。
具体的,出站过程与进站过程类似,不同之处在于,闸机除了向终端设备下发卡片状态为已出站,并打开闸门之外,还可以根据进站站点进行扣费结算,更新卡片余额等。同样地,在用户没有进行手动切换的情况下,终端设备中已启用的模拟卡为第二类型的模拟卡。当终端设备收到已出站信息后,将终端设备中已启用的模拟卡切换为第一类型的模拟卡。相应地,在切换完成之后,将模拟卡类型选择变量的参数值设置为第一参数值。
在用户离开闸机出站一段时间后,终端设备进入空闲状态,此时可以检测到模拟卡类型选择变量的参数值的值为第一参数值,那么确定终端设备中已启用的模拟卡为第一类型的模拟卡。
与上述步骤S320相对应,在终端设备的运动状态为静止时,表示终端设备不是经过安检设备,而是在进行刷卡操作。用户可能在刷门禁系统,也可能在刷闸机或者银联POS(销售点)机等。在此情况下,可以不作处理。
在另一种场景下,即在用户未经过安检设备的情况下,例如,用户在公交站进行刷卡时,可以不经过安检设备,由于终端设备在默认情况下已启用的模拟卡为第一类型的模拟卡。因此,用户可以进行手动切换操作,使终端设备中已启用的模拟卡为第二类型的模拟卡。
需要说明的是,对于一些公交车,可能需要刷两次卡,即上车时刷一次卡,下车时再刷一次卡。此时,在用户进行刷卡操作时,终端设备同样可以获取第二类型的模拟卡的进出站状态。在进出站状态为进站状态时,保持终端设备中已启用的模拟卡为第二类型的模拟卡即可。在进出站状态为出站状态时,将终端设备中已启用的模拟卡切换为第一类型的模拟卡。
对于另一些公交车,可能需要刷一次卡,即上车时刷一次卡即可。那么在刷卡操作完成之后,可以再将终端设备中已启用的模拟卡切换为第一类型的模拟卡。也就是,在默认情况下,使终端设备中已启用的模拟卡为第一类型的模拟卡。
本公开实施例中,上述过程均为第一类型的模拟卡和第二类型的模拟卡之间的切换。除了上述自动切换的过程,用户可以在任意时刻进行手动切换。例如,用户可以在终端设 备自动切换之前进行手动切换。那么,在此情况下,由于用户已经手动切换到了正确的模拟卡,在用户刷卡之前,终端设备可以不再进行自动切换。
另外,用户还可以在终端设备自动切换之后再进行手动切换。例如,终端设备中同一类型的模拟卡有多个,在终端设备自动切换之后,用户再手动切换至想要使用的模拟卡。终端设备还可以存储该场景以及该操作,这样,在下一次出现相同场景的情况下,终端设备也可以自动切换至用户手动选择的模拟卡。
用户在终端设备中进行手动切换操作之后,终端设备可以响应于用户的模拟卡切换操作,将终端设备中已启用的模拟卡切换为用户要切换的目标类型的模拟卡。在目标类型为第三类型时,在刷卡操作完成之后,还可以将终端设备中已启用的模拟卡切换为第一类型的模拟卡,使终端设备中已启用的模拟卡为第一类型的模拟卡。其中,第三类型的模拟卡可以是银行卡等其他类型的模拟卡。
当然,第一类型的模拟卡也可以是银行卡,相应地,第三类型的模拟卡为门禁卡等。此时,用户在刷银联POS机的情况下直接刷卡即可,而在刷门禁之前,可以先将终端设备中已启用的模拟卡手动切换为门禁卡。
本公开实施例的模拟卡切换方法,默认情况下,将终端设备中已启用的模拟卡设置为第一类型的模拟卡,用户直接通过终端设备刷门禁即可。当用户经过安检设备时,可以按照上述方式自动切换为第二类型的模拟卡。在进站时,保持该第二类型的模拟卡;出站时,再切换为第一类型的模拟卡。可见,本公开可以根据终端设备的运动状态,以及模拟卡的进/出站状态启用相应的模拟卡,而不是一直启用某一种模拟卡,这样,可以在保证门禁刷卡成功的同时,也兼顾地铁刷卡交易速度,从而可以提升用户体验。
应当注意,尽管在附图中以特定顺序描述了本公开中方法的各个步骤,但是,这并非要求或者暗示必须按照该特定顺序来执行这些步骤,或是必须执行全部所示的步骤才能实现期望的结果。附加的或备选的,可以省略某些步骤,将多个步骤合并为一个步骤执行,以及/或者将一个步骤分解为多个步骤执行等。
进一步的,本示例实施方式中,还提供了一种终端设备,参见图6,终端设备600包括:
近场通信模块610,用于接收射频信号;
处理器620,用于在近场通信模块610接收到射频信号后,持续监测终端设备是否处于运动状态;在终端设备处于运动状态时,确定终端设备中已启用的模拟卡;在终端设备中已启用的模拟卡为第一类型的模拟卡时,控制应用程序将终端设备中已启用的模拟卡切换为第二类型的模拟卡。
在本公开的一种示例性实施例中,处理器620通过下述步骤持续监测终端设备是否处于运动状态:
在预设时间段内持续获取终端设备的运动信息;
基于运动信息,确定终端设备是否处于运动状态。
在本公开的一种示例性实施例中,近场通信模块610用于在预设时间段之后检测是否接收到射频信号;
处理器620,具体用于在确定近场通信模块在预设时间段之后未接收到射频信号时,执行确定终端设备中已启用的模拟卡的步骤。
在本公开的一种示例性实施例中,处理器,还用于获取第二类型的模拟卡的进出站状态;在进出站状态为进站状态时,保持终端设备中已启用的模拟卡为第二类型的模拟卡。
在本公开的一种示例性实施例中,处理器,还用于在进出站状态为出站状态时,将终端设备中已启用的模拟卡切换为第一类型的模拟卡。
在本公开的一种示例性实施例中,处理器620通过下述步骤确定终端设备中已启用的模拟卡:
获取模拟卡类型选择变量的参数值;
基于参数值,确定终端设备中已启用的模拟卡。
在本公开的一种示例性实施例中,处理器620还用于在将终端设备中已启用的模拟卡切换为第一类型的模拟卡之后,将模拟卡类型选择变量的参数值设置为第一参数值;在将终端设备中已启用的模拟卡切换为第二类型的模拟卡之后,将模拟卡类型选择变量的参数值设置为第二参数值。
在本公开的一种示例性实施例中,处理器620还用于在终端设备的运动状态为静止时,不作处理。
在本公开的一种示例性实施例中,处理器620还用于响应于用户的模拟卡切换操作,将终端设备中已启用的模拟卡切换为用户要切换的目标类型的模拟卡。
在本公开的一种示例性实施例中,处理器620还用于在目标类型为第三类型时,在刷卡操作完成之后,将终端设备中已启用的模拟卡切换为第一类型的模拟卡。
上述终端设备和读卡器中各模块或单元的具体细节已经在对应的模拟卡切换方法中进行了详细的描述,因此此处不再赘述。
需要说明的是,终端设备600中的近场通信模块610可以是独立的模块,也可以是如图1所示的电子设备中的无线通信模块中的子模块,在此不做限定。终端设备600中的处理器620可以如图1所示的电子设备中的处理器,例如可以是通用处理器,包括:中央处理器等,还可以是现场可编程门阵列或者其他可编程逻辑器件或者晶体管逻辑器件等。
应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。
在本公开的示例性实施例中,还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述任意一项所述的方法。
需要说明的是,本公开所示的计算机可读存储介质例如可以是—但不限于—电、磁、 光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、射频等等,或者上述的任意合适的组合。
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。

Claims (20)

  1. 一种模拟卡切换方法,其中,应用于终端设备,包括:
    在接收到射频信号后,持续监测所述终端设备是否处于运动状态;
    在所述终端设备处于运动状态时,确定所述终端设备中已启用的模拟卡;
    在所述终端设备中已启用的模拟卡为第一类型的模拟卡时,将所述终端设备中已启用的模拟卡切换为第二类型的模拟卡。
  2. 根据权利要求1所述的方法,其中,所述持续监测所述终端设备是否处于运动状态,包括:
    在预设时间段内持续获取所述终端设备的运动信息;
    基于所述运动信息,确定所述终端设备是否处于运动状态。
  3. 根据权利要求2所述的方法,其中,在所述终端设备处于运动状态时,在所述确定所述终端设备中已启用的模拟卡之前,所述方法还包括:
    在所述预设时间段之后未接收到射频信号时,执行所述确定所述终端设备中已启用的模拟卡的步骤。
  4. 根据权利要求1所述的方法,其中,在所述将所述终端设备中已启用的模拟卡切换为第二类型的模拟卡之后,所述方法还包括:
    获取所述第二类型的模拟卡的进出站状态;
    在所述进出站状态为进站状态时,保持所述终端设备中已启用的模拟卡为所述第二类型的模拟卡。
  5. 根据权利要求4所述的方法,其中,在所述获取所述第二类型的模拟卡的进出站状态之后,所述方法还包括:
    在所述进出站状态为出站状态时,将所述终端设备中已启用的模拟卡切换为所述第一类型的模拟卡。
  6. 根据权利要求1所述的方法,其中,所述确定所述终端设备中已启用的模拟卡,包括:
    获取模拟卡类型选择变量的参数值;
    基于所述参数值,确定所述终端设备中已启用的模拟卡。
  7. 根据权利要求5所述的方法,其中,所述方法还包括:
    在将所述终端设备中已启用的模拟卡切换为所述第一类型的模拟卡之后,将所述模拟卡类型选择变量的参数值设置为第一参数值;
    在将所述终端设备中已启用的模拟卡切换为所述第二类型的模拟卡之后,将所述模拟卡类型选择变量的参数值设置为第二参数值。
  8. 根据权利要求1所述的方法,其中,所述方法还包括:
    响应于用户的模拟卡切换操作,将所述终端设备中已启用的模拟卡切换为用户要切换的目标类型的模拟卡。
  9. 根据权利要求8所述的方法,其中,还包括:
    在所述目标类型为第三类型时,在刷卡操作完成之后,将所述终端设备中已启用的模拟卡切换为所述第一类型的模拟卡。
  10. 一种终端设备,其中,包括:
    近场通信模块,用于接收射频信号;
    处理器,用于在所述近场通信模块接收到射频信号后,持续监测所述终端设备是否处于运动状态;在所述终端设备处于运动状态时,确定所述终端设备中已启用的模拟卡;在所述终端设备中已启用的模拟卡为第一类型的模拟卡时,控制应用程序将所述终端设备中已启用的模拟卡切换为第二类型的模拟卡。
  11. 根据权利要求10所述的终端设备,其中,所述处理器还用于在预设时间段内持续获取所述终端设备的运动信息;基于所述运动信息,确定所述终端设备是否处于运动状态。
  12. 根据权利要求11所述的终端设备,其中,所述近场通信模块还用于在所述预设时间段之后检测是否接收到射频信号。
  13. 根据权利要求12所述的终端设备,其中,所述处理器还用于在确定所述近场通信模块在所述预设时间段之后未接收到射频信号时,执行所述确定所述终端设备中已启用的模拟卡的步骤。
  14. 根据权利要求10所述的终端设备,其中,所述处理器还用于获取所述第二类型的模拟卡的进出站状态;在所述进出站状态为进站状态时,保持所述终端设备中已启用的模拟卡为所述第二类型的模拟卡。
  15. 根据权利要求14所述的终端设备,其中,所述处理器还用于在所述进出站状态为出站状态时,将所述终端设备中已启用的模拟卡切换为所述第一类型的模拟卡。
  16. 根据权利要求10所述的终端设备,其中,所述处理器还用于获取模拟卡类型选择变量的参数值;基于所述参数值,确定所述终端设备中已启用的 模拟卡。
  17. 根据权利要求15所述的终端设备,其中,所述处理器还用于在将所述终端设备中已启用的模拟卡切换为所述第一类型的模拟卡之后,将所述模拟卡类型选择变量的参数值设置为第一参数值;在将所述终端设备中已启用的模拟卡切换为所述第二类型的模拟卡之后,将所述模拟卡类型选择变量的参数值设置为第二参数值。
  18. 根据权利要求10所述的终端设备,其中,所述处理器还用于响应于用户的模拟卡切换操作,将所述终端设备中已启用的模拟卡切换为用户要切换的目标类型的模拟卡。
  19. 根据权利要求18所述的终端设备,其中,所述处理器还用于在所述目标类型为第三类型时,在刷卡操作完成之后,将所述终端设备中已启用的模拟卡切换为所述第一类型的模拟卡。
  20. 一种计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序被处理器执行时实现权利要求1~9任一项所述的方法。
PCT/CN2021/095945 2020-07-17 2021-05-26 模拟卡切换方法、终端设备及存储介质 WO2022012173A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010694120.1 2020-07-17
CN202010694120.1A CN111784334B (zh) 2020-07-17 模拟卡切换方法、终端设备及存储介质

Publications (1)

Publication Number Publication Date
WO2022012173A1 true WO2022012173A1 (zh) 2022-01-20

Family

ID=72763537

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/095945 WO2022012173A1 (zh) 2020-07-17 2021-05-26 模拟卡切换方法、终端设备及存储介质

Country Status (1)

Country Link
WO (1) WO2022012173A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115175164A (zh) * 2022-06-28 2022-10-11 南京欧珀软件科技有限公司 通信控制方法及相关装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104933556A (zh) * 2015-05-27 2015-09-23 小米科技有限责任公司 模式设置方法及装置
CN106231090A (zh) * 2016-07-28 2016-12-14 宇龙计算机通信科技(深圳)有限公司 一种nfc移动终端的模拟卡切换方法及装置
US20170185995A1 (en) * 2014-04-18 2017-06-29 Ingenico Group Module for emulating at least one payment card, corresponding method, payment device, computer program product and storage medium
CN111093180A (zh) * 2019-12-31 2020-05-01 深圳Tcl新技术有限公司 基于nfc的模拟卡切换方法、终端及计算机存储介质
CN111784334A (zh) * 2020-07-17 2020-10-16 Oppo广东移动通信有限公司 模拟卡切换方法、终端设备及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170185995A1 (en) * 2014-04-18 2017-06-29 Ingenico Group Module for emulating at least one payment card, corresponding method, payment device, computer program product and storage medium
CN104933556A (zh) * 2015-05-27 2015-09-23 小米科技有限责任公司 模式设置方法及装置
CN106231090A (zh) * 2016-07-28 2016-12-14 宇龙计算机通信科技(深圳)有限公司 一种nfc移动终端的模拟卡切换方法及装置
CN111093180A (zh) * 2019-12-31 2020-05-01 深圳Tcl新技术有限公司 基于nfc的模拟卡切换方法、终端及计算机存储介质
CN111784334A (zh) * 2020-07-17 2020-10-16 Oppo广东移动通信有限公司 模拟卡切换方法、终端设备及存储介质

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115175164A (zh) * 2022-06-28 2022-10-11 南京欧珀软件科技有限公司 通信控制方法及相关装置

Also Published As

Publication number Publication date
CN111784334A (zh) 2020-10-16

Similar Documents

Publication Publication Date Title
CN105913246B (zh) 能够进行磁场通信的手持电子设备及使用其支付方法
US11741455B2 (en) Systems and methods for providing near field communications
CN108428451B (zh) 语音控制方法、电子设备和语音控制系统
WO2017151825A1 (en) Facial profile modification for hands free transactions
EP3118803A1 (en) Card registration method for payment service and mobile electronic device implementing the same
TWI752503B (zh) 資訊識別方法和系統
CN108475372B (zh) 用于公共交通的移动设备上的进入控制旁路
WO2017151815A1 (en) Facial template and token pre-fetching in hands free service requests
US20230098616A1 (en) Method for Invoking NFC Application, Electronic Device, and NFC Apparatus
EP3673467B1 (en) Electronic device and method of controlling electronic device
CN111581994B (zh) 近场通信nfc通信方法、装置及电子设备
US10810591B2 (en) Virtual reality headset device and payment method
CN103377517A (zh) 支付终端及采用支付终端对支付卡执行支付的方法
CN113902436A (zh) 模拟卡切换方法、终端设备、读卡器及存储介质
WO2022012173A1 (zh) 模拟卡切换方法、终端设备及存储介质
CN106503986B (zh) 虚拟资源转移方法及装置
EP3062272A1 (en) Method and apparatus for accumulating membership points
CN110191054B (zh) 路由处理方法及装置、存储介质和电子设备
CN105005893A (zh) 一种基于移动终端的支付密码输入处理方法及系统
US9654905B2 (en) Enabling near field communications using indicators
KR101178473B1 (ko) Nfc 단말기를 이용한 안전 결제 제공방법, nfc 단말기, 및 rf 결제장치
CN111913773A (zh) Nfc卡控制方法、控制装置及电子设备
US20210398374A1 (en) Gate pass management system, gate pass management method, mobile device, gate pass notification method, and program
CN115545696B (zh) 支付方法、服务器及移动终端
CN111784334B (zh) 模拟卡切换方法、终端设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21843072

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21843072

Country of ref document: EP

Kind code of ref document: A1