WO2024007777A1 - Card reader, card end device, card swiping method and control unit - Google Patents

Card reader, card end device, card swiping method and control unit Download PDF

Info

Publication number
WO2024007777A1
WO2024007777A1 PCT/CN2023/097619 CN2023097619W WO2024007777A1 WO 2024007777 A1 WO2024007777 A1 WO 2024007777A1 CN 2023097619 W CN2023097619 W CN 2023097619W WO 2024007777 A1 WO2024007777 A1 WO 2024007777A1
Authority
WO
WIPO (PCT)
Prior art keywords
card
ultra
swiping
distance
module
Prior art date
Application number
PCT/CN2023/097619
Other languages
French (fr)
Chinese (zh)
Inventor
王大耀
Original Assignee
深圳市汇顶科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市汇顶科技股份有限公司 filed Critical 深圳市汇顶科技股份有限公司
Publication of WO2024007777A1 publication Critical patent/WO2024007777A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10237Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves the reader and the record carrier being capable of selectively switching between reader and record carrier appearance, e.g. in near field communication [NFC] devices where the NFC device may function as an RFID reader or as an RFID tag
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10297Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves arrangements for handling protocols designed for non-contact record carriers such as RFIDs NFCs, e.g. ISO/IEC 14443 and 18092
    • G06K7/10306Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves arrangements for handling protocols designed for non-contact record carriers such as RFIDs NFCs, e.g. ISO/IEC 14443 and 18092 ultra wide band
    • 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/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/18TPC being performed according to specific parameters
    • H04W52/28TPC being performed according to specific parameters using user profile, e.g. mobile speed, priority or network state, e.g. standby, idle or non transmission
    • H04W52/283Power depending on the position of the mobile
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the field of communication technology, and in particular to a card reader, card terminal equipment, card swiping method and control unit.
  • NFC Near Field Communication
  • SE Secure Element security unit
  • the card swiping architecture of NFC combined with SE enables contactless card swiping, it still requires users to lift their watches, bracelets and other card-side devices to get close to the card reader to complete the card swiping operation.
  • the convenience and flexibility of card swiping are relatively low. Poor and unable to meet user needs.
  • This application provides a card reader, card terminal equipment, card swiping method and control unit, which realizes UWB-based senseless card swiping and improves the convenience and flexibility of card swiping operations.
  • this application provides a card reader, including: a Bluetooth module, an Ultra Wide Band (UWB) ranging module and a control unit; wherein, the Bluetooth module is used to support the Ultra Wideband card swiping function when scanning
  • the ultra-wideband ranging module is enabled; the ultra-wideband ranging module is used to detect the first distance to the card-side device; and the control unit is used to detect the first distance according to the first distance.
  • card-swiping communication is performed with the card-side device through the ultra-wideband ranging module.
  • the Bluetooth module is a low-power Bluetooth module, and is also used to determine the third distance to each card-side device.
  • the control unit is specifically configured to: sort each of the card-side devices in order from small to large in the third distance; according to the sorting result, order Obtain the first distance of each card-side device, and when it is determined that the card-side device is in a close state according to the first distance and the first distance is less than or equal to a first threshold, the ultra-wideband ranging module , perform card swiping communication with the card terminal device.
  • the card reader further includes a near field communication module
  • the card terminal device also supports the near field communication card swiping function
  • the control unit is also used to: when the card swiping function is based on the ultra-wideband ranging module
  • the ultra-wideband ranging module is prohibited from performing card swiping communication with the card terminal device, and uses the near field communication module to perform card swiping communication with the card terminal device. Communication; wherein the second threshold is less than the first threshold.
  • control unit is also configured to: after the card swiping operation of the card terminal device is successful, generate an opening instruction of the gate or the access control system to open the gate or the access control system. ; Acquire the second distance between the ultra-wideband ranging module and the card-side device detected by the gate or the access control system after the gate or the access control system is turned on; when it is determined that the card-side device is leaving based on the second distance In this state, card swipe communication with the card-side device is prohibited.
  • the number of the ultra-wideband ranging modules is multiple, and the distance between each of the ultra-wideband ranging modules is at least a preset distance; the control unit is specifically configured to: The distance to the card-side device detected by multiple ultra-wideband ranging modules is used to determine the spatial position of the card-side device; and the motion state of the card-side device is determined based on the spatial position within a preset time period, Wherein, the movement state includes approaching state and/or leaving state.
  • control unit is further configured to: before performing card swipe communication with the card terminal device, use the Bluetooth module or ultra-wideband ranging module to The type is sent to the card-side device; where the application type is used to characterize the type of card or simulated card that is supported or used.
  • the Bluetooth module is specifically configured to: when a card-side device supporting ultra-wideband card swiping function is scanned, initiate a connection to the card-side device; after the connection is successful, connect to the card-side device The device performs parameter interaction to obtain the negotiation parameters of the ultra-wideband ranging module; and enables the ultra-wideband ranging module to measure distance based on the negotiation parameters.
  • the low-power Bluetooth module is also used to determine a third distance to each card-side device.
  • control unit is specifically configured to: according to the first distance of each card-side device whose third distance is less than the third threshold, communicate with the third distance through the ultra-wideband ranging module or the near field communication module.
  • Each card terminal device whose distance is less than the third threshold carries out card swiping communication to complete the card swiping operation.
  • this application provides a card-side device, including: a card-side Bluetooth module and a card-side ultra-wideband ranging module; the card-side Bluetooth module is used to broadcast the card swiping function supported by the card-side device, and is used to communicate with the card-side device.
  • the card-side ultra-wideband ranging module is enabled.
  • the card-side card swiping function supported by the card-side device includes the ultra-wideband card swiping function; the card-side ultra-wideband ranging module is used to communicate with the reader.
  • the ultra-wideband ranging module of the card reader communicates to realize the measurement of the distance between the card terminal device and the card reader and the ultra-wideband card swiping function.
  • the card swiping function supported by the card terminal device also includes a near field communication card swiping function
  • the card terminal device also includes a card terminal near field communication module for communicating with the near field communication module of the card reader. Communication to achieve near field communication card swiping function.
  • the card-side device also includes an application type switching module, configured to: receive the application type of the card reader; and, according to the application type of the card reader, switch the currently used application type to match the card reader.
  • the application type of the device is the same.
  • the card-side device further includes a card-side security unit to complete the card swiping operation by accessing the card-side security unit; the card-side security unit is also used to: when the card swiping function is switched, Activate or deactivate the card swiping application in the card-side security unit to restore the status of the card swiping application and provide required data for the switched card swiping function, wherein the card swiping function includes near field communication card swiping function and ultra-wideband
  • the card swiping operation under the near field communication card swiping function, the card swiping operation is performed based on the card end near field communication module. Under the ultra-wideband card swiping function, the card swiping operation is performed based on the card end ultra-wideband ranging module.
  • this application provides a card swiping method.
  • the method is applied to a card reader.
  • the card reader includes a Bluetooth module, an ultra-wideband ranging module and a control unit, and can be executed by the control unit.
  • the method includes: When the Bluetooth module scans a card-side device that supports the ultra-wideband card swiping function, the ultra-wideband ranging module is enabled; based on the ultra-wideband ranging module, the first distance to the card-side device is detected; when When it is determined that the card-side device is in a close state according to the first distance, and the first distance is less than or equal to a first threshold, card-swiping communication is performed with the card-side device through the ultra-wideband ranging module.
  • the Bluetooth module is a Bluetooth Low Energy (BLE) module.
  • BLE Bluetooth Low Energy
  • the method further includes : Based on the low-power Bluetooth module, determine the third distance to each card-side device;
  • the ultra-wideband ranging module is used to communicate with the card terminal device by card swiping, including: obtaining the first distance of each card terminal device in sequence according to the sorting result, and determining the first distance according to the first distance.
  • card-swiping communication is performed with the card-side device through the ultra-wideband ranging module.
  • the card reader also includes a near field communication module
  • the card terminal device also supports a near field communication card swiping function.
  • the method further includes: when the card swiping operation based on the ultra-wideband ranging module fails and the first distance is less than At the second threshold, the ultra-wideband ranging module is prohibited from performing card swiping communication with the card terminal device, and uses the near field communication module to perform card swiping communication with the card terminal device; wherein the second threshold is less than the first threshold.
  • the method further includes: when the card terminal device swipes the card successfully, generating an opening instruction for the gate or the access control system to open the gate or the access control system; and obtaining the ultra-wideband ranging After the gate or the access control system is opened, the module detects the second distance from the card-side device; when it is determined that the card-side device is in the away state based on the second distance, the module is prohibited from communicating with the card-side device.
  • the terminal device performs card swiping communication.
  • the number of the ultra-wideband ranging modules is multiple, and the distance between each of the ultra-wideband ranging modules is at least a preset distance; the method further includes: detecting based on the multiple ultra-wideband ranging modules The distance from the card-end device to determine the spatial position of the card-end device; according to the spatial position within a preset time period, determine the motion state of the card-end device, wherein the motion state includes close proximity status and/or away status.
  • the method further includes: before performing card swiping communication with the card terminal device, sending the application type of the card reader to the card terminal device through the Bluetooth module or ultra-wideband ranging module. , to switch the application type of the card-side device; where the application type is used to characterize the type of card or simulated card that is supported or used.
  • enabling the ultra-wideband ranging module includes: when the Bluetooth module scans a card-side device that supports the ultra-wideband card swiping function. time, initiate a connection to the card-side device; after the connection is successful, perform parameter interaction with the card-side device to obtain the negotiation parameters of the ultra-wideband ranging module; enable the ultra-wideband ranging module to The negotiation parameters measure distance.
  • this application provides another card swiping method, which is applied to a card-side device.
  • the card-side device includes a card-side Bluetooth module and a card-side ultra-wideband ranging module; the method includes: based on the card-side Bluetooth module , broadcasting the card swiping function supported by the card terminal device, wherein the card swiping function supported by the card terminal device includes the ultra-wideband card swiping function; after the card-side Bluetooth module is connected to the Bluetooth module of the card reader, the card-side ultra-wideband is enabled Ranging module; communicates with the card-end ultra-wideband ranging module and the ultra-wideband ranging module of the card reader to realize the measurement of the distance between the card-end device and the card reader and the ultra-wideband card swiping function .
  • the card swiping function supported by the card terminal device also includes a near field communication card swiping function.
  • the card terminal device further includes a card terminal near field communication module.
  • the method further includes: when the field strength is detected, The terminal near field communication module communicates with the near field communication module of the card reader to realize the near field communication card swiping function.
  • the method further includes: obtaining the application type of the card reader; and switching the currently used application type according to the application type of the card reader to be consistent with the application type of the card reader.
  • the card terminal device further includes a card terminal security unit to complete the card swiping operation by accessing the card terminal security unit; the method further includes: activating or deactivating the card terminal security unit when the card swiping function is switched.
  • the card swiping application in the card swiping application is used to restore the state of the card swiping application to provide required data for the switched card swiping function, where the card swiping function includes a near field communication card swiping function and an ultra-wideband card swiping function.
  • this application provides a control unit including a memory and at least one processor
  • the memory stores computer-executed instructions; the at least one processor executes the computer-executed instructions stored in the memory, so that the at least one processor executes the card swiping method provided in the third or fourth aspect of this application.
  • the present application provides a computer-readable storage medium.
  • Computer-executable instructions are stored in the computer-readable storage medium.
  • the processor executes the computer-executable instructions, the third or fourth aspect of the present application is implemented.
  • the present application provides a computer program product, including a computer program.
  • the computer program is executed by a processor, the card swiping method as provided in the third or fourth aspect of the present application is implemented.
  • Embodiments of the present application provide a card reader, a card terminal device, a card swiping method and a control unit.
  • the card reader includes a Bluetooth module, an ultra-wideband ranging module and a control unit.
  • the Bluetooth module is configured to support the ultra-wideband card swiping function when scanning.
  • the distance module measures the first distance from the card-side device. When it is determined that the card-side device is in a close state based on the first distance and the first distance is less than or equal to the first threshold, the card-side device is swiped through the ultra-wideband ranging module. communication, thereby realizing UWB senseless card swiping.
  • the ultra-wideband ranging module is awakened through the Bluetooth module, which reduces power consumption. Through the precise distance measured by the ultra-wideband ranging module, it can intelligently determine whether to trigger the UWB card swiping operation, thereby realizing the card swiping operation with the card-side device. The entire process does not require the user. Manual card swiping-related operations improve the convenience and flexibility of card swiping and realize senseless card swiping.
  • Figure 1 is a schematic diagram of the card swiping operation process based on NFC
  • FIG. 2 is a schematic structural diagram of Embodiment 1 of the card reader provided by the embodiment of the present application;
  • FIG. 3 is a schematic structural diagram of Embodiment 2 of the card reader provided by the embodiment of this application;
  • FIG. 4 is a schematic structural diagram of Embodiment 1 of the card terminal device provided by the embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of Embodiment 1 of the card swiping system provided by the embodiment of this application;
  • Figure 6 is a schematic flow chart of Embodiment 1 of the card swiping method provided by the embodiment of this application;
  • Figure 7 is a schematic flow chart of Embodiment 2 of the card swiping method provided by the embodiment of this application;
  • FIG. 8 is a schematic structural diagram of Embodiment 1 of the control unit provided by the embodiment of the present application.
  • FIG. 1 shows brushing based on NFC A schematic diagram of the card operation process, as shown in Figure 1.
  • the card terminal device 10 a wearable device is used as an example in Figure 1
  • the user needs to bring the card terminal device 10 close to the card reader 20 , to conduct contactless data transmission through the NFC module, thereby realizing the exchange of relevant data to complete the corresponding card swiping operation.
  • the NFC module in the card reader 20 acts as a card reader to read the tag information stored in the NFC module in the card terminal device 10, thereby opening the access control based on the tag information.
  • the card-side device can be a portable or mobile device such as a mobile phone or tablet computer, or a wearable device such as a bracelet, watch, smart glasses, smart jewelry, or other device with SE that can implement the card function. .
  • the card reader may be a card reader in an access control system, a bus card swiping system, a bank card swiping system, or other systems.
  • the card reader is a card reader at a subway gate as an example.
  • NFC technology can be used to realize the card swiping function at close range, it still requires manual operation by the user, such as lifting the card-side device 10 such as a watch or bracelet, so as to bring the card-side device 10 close to the card reader 20, making card swiping less convenient.
  • this application provides a card reader that supports UWB card swiping. Since the UWB module consumes high power, in order to reduce power consumption, a Bluetooth module is added. The Bluetooth module detects When a card-side device supports the UWB card swiping function, wake up the UWB module and detect the precise distance between the card reader and the card-side device based on the UWB module. Based on the detected distance, it automatically determines whether the status of the card-side device meets the preset card swiping requirements. Condition, if yes, based on the UWB module, sensorless card swiping will be realized.
  • FIG. 2 is a structural diagram of Embodiment 1 of a card reader provided by the embodiment of the present application.
  • the card reader is applied to a payment system or an access control system.
  • the payment system can be a bus payment system, a subway payment system, a bank card payment system, etc.
  • the card reader 20 includes a Bluetooth module 210 , an ultra-wideband ranging module 220 and a control unit 240 .
  • the Bluetooth module 210 is used to enable the ultra-wideband ranging module 220 when a card-side device that supports the ultra-wideband card swiping function is scanned; the ultra-wideband ranging module 220 is used to detect the first distance to the card-side device; the control unit 240 is used when it is determined based on the first distance that the card-side device is in a close state, and the third When a distance is less than or equal to the first threshold, card swiping communication is performed with the card terminal device through the ultra-wideband ranging module 220 to realize UWB sensorless card swiping.
  • the Bluetooth module 210 Since the Bluetooth module 210 has low power consumption, it is used as a scanning device to scan the broadcast data of the card-side device. When the Bluetooth module 210 scans that the card-side device supports the UWB card swiping function, the ultra-wideband ranging module is enabled (or awakened). 220, such as sending an enable signal to the ultra-wideband ranging module 220, thereby preventing the ultra-wideband ranging module 220 from remaining turned on for scanning, resulting in high power consumption.
  • the ranging mode is turned on to detect the distance to peripheral devices (including the card-side device).
  • the bandwidth of the ultra-wideband ranging module 220 may be between 1000 and 7000 MHz, such as 3000 MHz.
  • the Bluetooth module 210 scans a card-side device that supports the UWB card swiping function, it enables the card-side ultra-wideband ranging module 220 of the card reader, and the card-side Bluetooth module of the card-side device enables the card-side ultra-wideband of the card-side device.
  • the ranging module based on the ultra-wideband ranging module 220 and the card-end ultra-wideband ranging module of the card-end device, detects the distance between the card reader and the card end, which is recorded as the first distance.
  • the Bluetooth module 210 when the Bluetooth module 210 scans a card-side device that supports the UWB card swiping function, it initiates a connection to the card-side device to interact with relevant parameters of the ultra-wideband ranging module 220 so that the ultra-wideband ranging module 220 performs ranging based on the interacted parameters.
  • the ultra-wideband ranging module 220 can perform ranging based on algorithms such as DS-TWR (Double Sided Two-way Ranging), TOA (Time of Arrival), and TDOA (Time Difference of Arrival). .
  • DS-TWR Double Sided Two-way Ranging
  • TOA Time of Arrival
  • TDOA Time Difference of Arrival
  • the first threshold may be 1m, 2m, 3m, 5m or other values.
  • whether the card-side device is in a close state can be determined based on the first distance between the card-side device and the card reader 20 detected within a continuous set period of time.
  • whether the card-side device is in a close state can be determined based on parameters such as the first distance detected within a continuous set time period, the difference between adjacent first distances, and so on.
  • the card reader provided in this embodiment includes a Bluetooth module 210, an ultra-wideband ranging module 220, and a control unit 240.
  • the Bluetooth module 210 is configured to enable ultra-wideband measurement when a card terminal device that supports the ultra-wideband card swiping function is scanned.
  • distance module 220 based on the ultra-wideband ranging module 220 measurement and card terminal equipment When it is determined based on the first distance that the card-side device is in a close state and the first distance is less than or equal to the first threshold, card-swiping communication is performed with the card-side device through the ultra-wideband ranging module 220, thereby realizing UWB No need to swipe your card.
  • the ultra-wideband ranging module 220 is awakened through the Bluetooth module 210, which reduces power consumption. Through the precise distance measured by the ultra-wideband ranging module 220, it is intelligently determined whether to trigger the UWB card swiping operation, thereby realizing the card swiping operation with the card-side device. The entire The process does not require users to manually perform card swiping related operations, which improves the convenience and flexibility of card swiping and realizes senseless card swiping.
  • a card terminal device that supports ultra-wideband card swiping function can be called a default card terminal device.
  • the Bluetooth module 210 is specifically used to: when a card-side device supporting the ultra-wideband card swiping function is scanned, initiate a connection to the card-side device; after the connection is successful, perform parameter interaction with the card-side device to Obtain the negotiation parameters of the ultra-wideband ranging module 220; enable the ultra-wideband ranging module 220 to measure distance based on the negotiation parameters.
  • the negotiation parameters include parameters such as the ranging interval and the ranging method of the ultra-wideband ranging module 220 .
  • the Bluetooth module 210 initiates a connection to the card-side Bluetooth module of the card-side device, and interacts with the card-side Bluetooth module of the card-side device for UWB related parameters, thereby obtaining the negotiation parameters of the ultra-wideband ranging module 220 .
  • the ultra-wideband ranging module 220 of the card reader is enabled or awakened.
  • the ultra-wideband ranging module 220 enters the ranging mode based on the negotiation parameters, thereby using the card-side ultra-wideband ranging module of the card-side device.
  • the broadband ranging module realizes the detection of the distance between the card reader and the card-side device.
  • the process of parameter interaction between the Bluetooth module 210 and the card device is as follows:
  • the card-side device Obtain the mac (Message Authentication Code, message authentication code) value sent by the card-side device and the first parameter; generate the mac value of the card reader based on the shared key and the first parameter; determine the mac value of the card-side device and the card reader Is the mac value consistent? If yes, the verification is successful and the negotiation parameters are the UWB parameters originally stored by the card device, that is, the first parameter mentioned above; if not, enter the parameter negotiation process to negotiate UWB related parameters. After the parameter negotiation is successful, , get the above negotiation parameters. The card-side device saves the negotiation parameters and backs up the original first parameter.
  • the negotiation parameters are the UWB parameters originally stored by the card device, that is, the first parameter mentioned above; if not, enter the parameter negotiation process to negotiate UWB related parameters.
  • the mac value of the card-side device is calculated based on the message authentication code algorithm and the shared key and the first parameter.
  • the card reader can also search for the UWB parameter whose mac value matches the mac value of the card-side device from the existing UWB parameters as the above-mentioned first parameter. If no UWB parameter with the same mac value is found, that is, there is a mac with UWB parameters. If the values are inconsistent with the mac value of the card-side device, the parameter negotiation process will be entered.
  • the Bluetooth module 210 follows the relevant specifications of the FiRa (Fine Ranging) Alliance during the parameter interaction process.
  • the parameters of the ultra-wideband ranging module 220 are negotiated, which improves the reliability and security of parameter interaction and reduces power consumption compared with parameter negotiation based on UWB.
  • the card reader may not include the Bluetooth module 210 and directly use the ultra-wideband ranging module 220 to perform operations such as scanning and UWB communication parameter negotiation.
  • the card-side device may not include a Bluetooth module and directly use the ultra-wideband ranging module to broadcast the supported card swiping functions and parameter negotiation, but the power consumption may be relatively large at this time.
  • FIG 3 is a structural diagram of Embodiment 2 of the card reader provided by the embodiment of the present application. As shown in combination with Figures 2 and 3, the card reader also includes a near field communication module 230.
  • the near field communication module 230 is used to read application information stored in the card terminal device based on near field communication technology to implement the NFC card swiping function.
  • the application information includes information related to credit card transactions.
  • control unit 240 can determine whether the card-side device meets the conditions corresponding to the UWB card swiping function based on the received first distance between the card reader 20 and the card-side device, such as whether the first distance is within a preset interval. If so, then Based on the ultra-wideband ranging module 220, the card-end ultra-wideband ranging module communicates with the card-side ultra-wideband ranging module of the card-end device to complete the UWB card swiping operation, thereby realizing senseless card swiping.
  • the card-side device does not meet the conditions corresponding to the UWB card swiping function, or the card swiping operation based on the ultra-wideband ranging module 220 fails, it is determined based on the first distance whether the conditions corresponding to the NFC card swiping function are met, such as whether the first distance is small enough. , if so, based on the near field communication module 230, the card terminal near field communication module of the card terminal device performs card swiping communication to complete the NFC card swiping operation, thereby improving the success rate of card swiping and preventing the user from manually swiping the card.
  • the card swiping operation can be an operation corresponding to swiping a card to pay or an operation corresponding to swiping a card to open an access control.
  • the control unit 240 is also configured to: when the card swiping operation based on the ultra-wideband ranging module 220 fails and the first distance is less than the second threshold, The ultra-wideband ranging module 220 is prohibited from performing card swiping communication with the card terminal device, and uses the near field communication module 230 to perform card swiping communication with the card terminal device.
  • the second threshold is smaller than the first threshold.
  • the second threshold can be 20cm, 10cm, 5cm or other values, such as 15cm.
  • the card reader 20 when the card reader 20 is used in a card payment system, the card reader 20 also includes a security element (Secure Element, SE) 250 to improve the security of card payment.
  • SE Secure Element
  • the security unit 250 is also called a security chip or security element, including security hardware and security software, and is used to provide a secure interaction mechanism to ensure the security of transaction data interaction between the card reader 20 and the card-side device.
  • the security unit can perform operations such as secure storage and secure calculation of payment data, thereby avoiding the problem of data leakage caused by direct interaction of payment data through the ultra-wideband ranging module 220 or the near field communication module 230 .
  • the ultra-wideband ranging module 220 or the near field communication module 230 can complete the corresponding card swiping operation by accessing the security unit 250 .
  • the security unit 250 in the card reader 20 is usually an eSE (Embedded Security Element).
  • the control unit 240 is also used to send the application type of the card reader 20 to the card terminal device through the Bluetooth module 210 or the ultra-wideband ranging module 220 before performing card swiping communication with the card terminal device.
  • the application type is used to characterize the type of card or simulated card that is supported or used, and can be used to characterize the type of card supported by the card reader 20 , or to characterize the type of card or simulated card currently used by the card terminal device.
  • the application type of the card terminal device and the card reader 20 is consistent, that is, the card or simulated card currently used by the card terminal device is consistent or the same as the card type supported by the card reader 20 .
  • control unit 240 is specifically configured to: when it is determined that the card-side device is in a close state according to the first distance, send the application type of the security unit 250 to the card-side device so that the card-side device
  • the application types of the card-side device and the card reader 20 are consistent; when it is determined that the application types of the card-side device and the card reader 20 are consistent, if the first distance between the card-side device and the card reader 20 is less than the first threshold, then the The ultra-wideband ranging module 220 performs card swiping communication with the card terminal device to complete subsequent card swiping operations through the access security unit 250; if they are inconsistent, the card terminal device automatically switches the application type to be consistent with the application type of the card reader. type.
  • the application type of the security unit 250 can be sent to the card terminal device through the Bluetooth module 210 or the ultra-wideband ranging module 220 .
  • the card-side device After receiving the application type of the security unit 250 of the card reader 20, the card-side device determines whether the application type currently used or run by the card-side security unit of the card-side device is consistent with the application type of the security unit 250. If not, it automatically Switch the application type currently used or run by the card-side security unit of the card-side device to a type consistent with the application type of the security unit 250 .
  • the control unit 240 determines whether the first distance is less than the first threshold, such as whether it changes from greater than the first threshold to less than or equal to the first threshold. If so, based on the ultra-wideband ranging module 220 and the card terminal The card-side ultra-wideband ranging module of the device performs card swiping communication to access the application data in the security unit 250 through the ultra-wideband ranging module 220 to complete the UWB card swiping operation.
  • control unit 240 is also used to generate an opening instruction of the gate or the access control system to open the gate or the access control system.
  • the card reader 20 can be prohibited from communicating with the card through the near field communication module 230
  • the terminal device performs card swipe communication, such as card swipe transactions.
  • the control unit 240 can also determine whether the first distance is less than the first threshold and greater than the second threshold, If so, the ultra-wideband ranging module 220 is controlled to re-perform one or more UWB card swiping operations to increase the probability of successful card swiping on the UWB channel (the channel corresponding to the ultra-wideband ranging module 220) and achieve senseless card swiping.
  • the application type is sent to the card-side device through the card reader 20, so that the card-side device automatically adjusts the application type to be consistent with the application type of the card reader 20, realizing intelligent card cutting and avoiding The user manually cuts the card; by adding the security unit 250, the security of card payment is improved.
  • the control unit 240 determines whether the first distance is less than the second threshold; if so, the card reader 20 is prohibited from communicating with the card-side device through the ultra-wideband ranging module 220 Swipe the card to communicate, and complete the corresponding card swiping operation through the near field communication module 230 to prevent the ultra-wideband ranging module 220 and the near field communication module 230 from accessing the card side security unit of the card side device at the same time, resulting in repeated deductions.
  • the card terminal device When the card terminal device detects the field strength, it can communicate with the near field communication module 230 of the card swipe device through the card terminal near field communication module, thereby performing card swiping communication based on the near field communication channel to complete the corresponding card swiping operation.
  • the card swipe communication corresponding to the ultra-wideband ranging module 220 and the card swipe communication corresponding to the near field communication module 230 are mutually exclusive operations to avoid repeated deductions.
  • the card swiping operation can be performed through the ultra-wideband ranging module 220. If it fails once, the card swiping operation can be repeated; when based on When the card swiping operations of the ultra-wideband ranging module 220 are unsuccessful, the card-side device and the reader If the first distance of the card device 20 is less than 0.2 (second threshold) meter, the ultra-wideband ranging module 220 is prohibited from performing card swiping communication with the card terminal device, and the near field communication module 230 is enabled. The card-side device detects the field strength of the radio frequency signal received by the card-side near field communication module.
  • the card-side near field communication module and the near field communication module 230 of the card reader 20 A channel is established, and card swiping communication is performed based on the established channel, so as to complete the corresponding card swiping operation in conjunction with the security unit 250 .
  • the corresponding access control or gate will be opened to allow users to pass.
  • near field communication module 230 may remain on.
  • the card reader 20 automatically switches to the NFC channel (the channel corresponding to the near field communication module 230).
  • the card-side device can activate or deactivate the card-swiping application (Applet) in the card-side security unit. ) state, use the switched channel to access data related to the card swiping application to complete card swiping payment under the corresponding card swiping function.
  • Priority is given to using the UWB channel for sensorless card swiping.
  • the near field communication module 230 is controlled to perform contactless card swiping based on the first distance.
  • duplication is avoided through mutually exclusive settings of the UWB channel and NFC channel card swiping operations. Deduction.
  • control unit 240 is also configured to: when the card terminal device swipes the card successfully, generate an opening instruction of the gate or the access control system to open the gate or the access control system; obtain the ultra-wideband After the gate or the access control system is opened, the ranging module detects the second distance to the card-side device; when it is determined that the card-side device is in the away state based on the second distance, it is prohibited to communicate with the card-side device.
  • the card terminal device performs card swiping communication.
  • the second distance the distance to the card-side device detected by the ultra-wideband ranging module 220 is called the second distance.
  • the card-side device being in the away state may indicate that the distance between the card-side device and the card reader 20 is getting farther and farther.
  • whether the card-side device is in the away state can be determined based on the second distance between the card-side device and the card reader 20 detected by the ultra-wideband ranging module 220 within a period of time. For example, based on the second distance within a period of time and the difference between adjacent second distances, etc., it is determined whether the card-side device is in the away state.
  • the card reader 20 is prohibited from communicating with the card-side device by swiping the card, To avoid repeated deductions.
  • whether the card-side device is in the away state can be determined based on the second distance and its corresponding measurement time.
  • the detected second distance sequence between multiple card-side devices and the card reader 20 can be input into the leaving state determination model, and whether the card-side device is in the leaving state is determined based on the model.
  • the second distance sequence consists of the second distance and its corresponding measurement time.
  • the leaving state determination model may be a neural network model.
  • the number of ultra-wideband ranging modules 220 is multiple, and the distance between each ultra-wideband ranging module 220 is at least a preset distance.
  • the preset distance can be 0.3m, 0.5m or other values.
  • control unit 240 When determining the motion state of the card-side device, the control unit 240 is specifically configured to: determine the distance to the card-side device detected by the multiple ultra-wideband ranging modules 220, such as the first distance and/or the second distance. The spatial position of the card-end device; according to the spatial position within a preset time period, the motion state of the card-end device is determined, wherein the motion state includes an approaching state and/or a leaving state.
  • control unit 240 can perform precise positioning of the card-side device based on the distances detected by multiple ultra-wideband ranging modules 220, thereby obtaining the spatial position of the card-side device. Then, combined with the spatial position of the card-side device within the preset time period, the motion state of the card-side device is determined, such as determining whether the card-side device is in the above-mentioned leaving state or the above-mentioned approaching state.
  • the motion trajectory of the card-side device can be drawn based on the spatial position within a preset time period, and the motion state of the card-side device can be determined based on the motion trajectory.
  • the motion state of the card-side device can be determined based on parameters such as the moving direction and moving speed of each motion node in the motion trajectory.
  • the card can be determined based on any positioning model, such as the positioning model corresponding to the TDOA algorithm, the positioning model corresponding to the TOA algorithm, etc., based on the distance to the card-side device detected by multiple ultra-wideband ranging modules 220 The spatial location of the terminal device.
  • any positioning model such as the positioning model corresponding to the TDOA algorithm, the positioning model corresponding to the TOA algorithm, etc., based on the distance to the card-side device detected by multiple ultra-wideband ranging modules 220 The spatial location of the terminal device.
  • the precise positioning of the card terminal device is realized, thereby determining the motion state of the card terminal device based on the positioning, and formulating a reasonable card swiping control strategy based on the motion state, thereby improving the accuracy of card swiping control. While realizing senseless card swiping, it effectively avoids repeated deductions. payment.
  • the Bluetooth module 210 is specifically a low-power Bluetooth module.
  • the card-side devices can be filtered in advance through the low-power Bluetooth module, that is, Filter the card-side device based on the third distance measured by the low-power Bluetooth module from the card-side device, thereby reducing the number of awakened card-side ultra-wideband ranging modules, thereby reducing the amount of data processed, such as the first distance , and the amount of data required to process based on the first distance to determine the conditions corresponding to the UWB card swiping function.
  • the optional low-power Bluetooth module is also used to determine the third distance to each card terminal device that supports ultra-wideband card swiping function.
  • the control unit 240 is specifically configured to: filter the card-side devices based on the third distance, and use the ultra-wideband ranging module 220 or the near-field communication module according to the first distance of each screened card-side device. 230. Carry out card swiping communication with each filtered card terminal device to complete the card swiping operation.
  • the third distance is the distance between the card reader 20 and the card-side device detected by the low-power Bluetooth module of the card reader 20 .
  • each card-side device can also be filtered based on the third distance, such as removing each card-side device whose third distance is greater than the third threshold.
  • the third threshold is greater than the first threshold and can be 3m, 5m, 6m, 7m or other values.
  • the low-power Bluetooth module can measure the above-mentioned third distance based on RSSI (Received Signal Strength Indicator, received signal strength indicator).
  • RSSI Received Signal Strength Indicator, received signal strength indicator
  • the low-power Bluetooth module can only establish a connection with each card-side device whose third distance is less than or equal to the third threshold to interact with negotiated data, and wake up the card-side Bluetooth low-energy module whose third distance is less than or equal to the third threshold.
  • the card-side ultra-wideband ranging module of each card-side device equals the third threshold to perform subsequent first distance measurements. Therefore, only the first distance between the card reader 20 and each card terminal device whose third distance is less than or equal to the third threshold is obtained, thereby reducing the number of first distances that need to be processed, thereby improving the efficiency of card swiping processing.
  • the low-power Bluetooth module can only wake up the card-side ultra-wideband ranging module of the card-side device whose third distance from the card reader 20 is within the range of 3m to 5m.
  • control unit 240 or the low-power Bluetooth module can filter the card-side devices based on the third distance, such as deleting the card-side devices whose third distance is greater than the third threshold, so that the control unit 240 can filter the card-side devices according to the filtered
  • the first distance between the card terminal device and the card reader 20 is measured by ultra-wideband
  • the distance module 220 or the near field communication module 230 performs card swiping communication with the screened card terminal device to complete the card swiping operation.
  • the Bluetooth module 210 is a low-power Bluetooth module, and is also used to determine the third distance to each card terminal device that supports the ultra-wideband card swiping function.
  • the control unit 240 is specifically configured to: sort each of the card-side devices according to the order of the third distance from small to large; according to the sorting result, obtain the first distance of each card-side device in sequence, and calculate the first distance according to the sorting result.
  • card swiping communication is performed with the card terminal device through the ultra-wideband ranging module 220 .
  • the control unit 240 can determine whether each card terminal device meets the conditions corresponding to the UWB card swiping function based on the sorting result, that is, obtain the first distance between the card terminal device and the card reader 20, and determine the card terminal device based on the first distance. Whether the end device is in a close state, and if so, when the first distance is less than or equal to the first threshold, card swipe communication is performed with the card end device through the ultra-wideband ranging module 220 to perform data interaction corresponding to the UWB card swipe function through the UWB channel. . Further, the card-side devices can be filtered and sorted based on the third distance, thereby obtaining sorting results corresponding to each card-side device whose third distance is less than or equal to the third threshold.
  • the card reader 20 By sorting the card-side devices based on the third distance, the card reader 20 prioritizes interactions corresponding to UWB ranging and card swiping operations with card-side devices that are closer to each other, thus avoiding the possibility of debiting when there are many card-side devices. The occurrence of wrong payment ensures the orderliness of UWB card payment.
  • FIG 4 is a schematic structural diagram of a card-side device according to Embodiment 1 of the present application.
  • the card-side device 40 includes a card-side Bluetooth module 410 and a card-side ultra-wideband ranging module 420.
  • the card-side Bluetooth module 410 is used to broadcast the card swiping function supported by the card-side device 40, and to enable the card-side ultra-wideband ranging module 420 after connecting with the Bluetooth module of the card reader.
  • the functions include an ultra-wideband card swiping function; a card-side ultra-wideband ranging module 420 for communicating with the ultra-wideband ranging module 220 of the card reader 20 to measure the distance between the card-side device 40 and the card reader 20; Ultra-wideband card swiping function.
  • the card terminal device 40 also includes a card terminal near field communication module 430 .
  • the card swiping function supported by the card terminal device 40 also includes a near field communication card swiping function.
  • the card terminal near field communication module 430 is used to communicate with the reader.
  • the near field communication module 230 of the card device 20 communicates to realize the near field communication card swiping function.
  • the card-side Bluetooth module 410 may be a low-power Bluetooth module, denoted as a card-side Bluetooth low energy module.
  • the card terminal device 40 also includes an application type switching module for: receiving the application of the card reader. Type; according to the application type of the card reader, switch the currently used application type to be consistent with the application type of the card reader.
  • the card terminal device 40 further includes a card terminal security unit 440 to complete the card swiping operation by accessing the card terminal security unit 440 .
  • the card-side security unit 440 can be set in the SIM card or memory card of the card-side device, or can be an eSE.
  • the card-side security unit 440 is also used to activate or deactivate the card-swiping application (applet) in the card-side security unit 440 when the card-swiping function is switched, so as to restore the status of the card-swiping application so as to maintain the switched card-swiping function.
  • the card swiping function includes a near field communication card swiping function and an ultra-wideband card swiping function. Under the near field communication card swiping function, the card swiping operation is performed based on the card terminal near field communication module. Under the ultra-wideband card swiping function , perform the card swiping operation based on the card-side ultra-wideband ranging module.
  • the card swiping application is an application set in the card-side security unit 440 and is used to perform card swiping operations, such as providing data required for payment, performing data calculations, etc.
  • the UWB card swiping function is usually switched to the NFC card swiping function, or the NFC card swiping function can be switched to the UWB card swiping function.
  • the switching of the card swiping function can be manifested in that the channel is switched, that is, the UWB channel is switched to the NFC channel.
  • the card swiping function is changed to the UWB card swiping function. Switch to the NFC card swiping function.
  • the card swiping application in the card-side security unit 440 is deactivated to restore the state of the application; when the NFC card swiping function is turned on or the NFC When the channel is established, the card swiping application in the card-side security unit 440 is activated, so that the card-side near field communication module 430 accesses the card swiping application in the card-side security unit 440 and performs corresponding card swiping communication to realize the NFC card swiping function.
  • FIG. 5 is a schematic structural diagram of a card swiping system according to Embodiment 1 of the present application.
  • the card swiping system can be an access control system, a card swiping payment system, etc.
  • the card swiping system includes a card reader 20 and multiple cards.
  • Terminal device 40 The card reader 20 includes a Bluetooth module 210, an ultra-wideband ranging module 220, a near-field communication module 230, a control unit 240 and a security unit 250;
  • the card-end device 40 includes a card-end Bluetooth module 410, a card-end ultra-wideband ranging module 420, The card-side near field communication module 430 and the card-side security unit 440.
  • the Bluetooth module 210 and the card-side Bluetooth module 410 are both low-power Bluetooth modules BLE as an example.
  • the control unit 240 of the card reader 20 is connected to the Bluetooth module 210, the ultra-wideband ranging module 220, and the near field communication module 230 respectively.
  • connection relationship shown in Figure 5 is only an example, and the actual connection relationship can be based on the data interaction process between the modules in the card swiping method.
  • the card reader 20 also includes an MCU (Motor Control Unit) to open the gate or access control system by controlling the motor.
  • MCU Motor Control Unit
  • control unit 240 may be integrated in at least one of the Bluetooth module 210, the ultra-wideband ranging module 220, and the near field communication module 230.
  • control unit 240 can be partially integrated into the Bluetooth module 210 to wake up the ultra-wideband ranging module 220 and filter the card-side devices 40 , and another part of the control unit can be integrated into the ultra-wideband ranging module 220 to perform Determine the motion status of the card-side device.
  • the control unit 240 is taken as a separate module as an example.
  • the card-side Bluetooth module 410 of the card-side device 40 is respectively connected to the card-side ultra-wideband ranging module 420, the card-side near field communication module 430, and the card-side security unit 440.
  • the card-side security unit 440 is respectively connected to the card-side Bluetooth module 410, the card-side Bluetooth module 410, and the card-side near field communication module 430.
  • the end ultra-wideband ranging module 420 is connected to the card-end near field communication module 430.
  • Card side device 40 may also include an electronic wallet application.
  • You can use the trusted service management module including the service provider's trusted service management (SP-TSM, Service Provider Trusted Service Manager) and the security module publisher's trusted service management (SEI-TSM Secure, Element Issuer Trusted Service Manager). and electronic wallet server (Wallet Server) to manage trusted services during the card payment process.
  • SP-TSM service provider's trusted service management
  • SEI-TSM Secure Service Enterprise Issuer Trusted Service Manager
  • Wallet Server electronic wallet server
  • FIG. 6 is a schematic flow chart of a card swiping method provided by the embodiment of the present application.
  • the card swiping method uses a card reader.
  • the card reader can be the card reader 20 provided in the above embodiment, or any card reader equipped with a Bluetooth module or ultra-wideband module.
  • the ranging module and the near field communication module can be executed by the control unit 240 on the card reader 20 .
  • the card swiping method includes the following steps:
  • the Bluetooth module is a Bluetooth Low Energy (BLE) module.
  • the method further includes : Based on the low-power Bluetooth module, determine the third distance to each card-side device; sort each of the card-side devices according to the order of the third distance from small to large; when according to the first When the distance determines that the card-side device is in a close state and the first distance is less than or equal to the first threshold, performing card swiping communication with the card-side device through the ultra-wideband ranging module includes: according to the sorting result, Obtain the first distance of each card-side device in turn, and when it is determined that the card-side device is in a close state according to the first distance and the first distance is less than or equal to a first threshold, use the ultra-wideband ranging Module to communicate with the card-side device by swiping the card.
  • BLE Bluetooth Low Energy
  • the card reader also includes a near field communication module
  • the card terminal device also supports a near field communication card swiping function.
  • the method further includes: when the card swiping operation based on the ultra-wideband ranging module fails and the first distance is less than At the second threshold, the ultra-wideband ranging module is prohibited from performing card swiping communication with the card terminal device, and uses the near field communication module to perform card swiping communication with the card terminal device; wherein the second threshold is less than the first threshold.
  • the method further includes: when the card terminal device swipes the card successfully, generating an opening instruction for the gate or the access control system to open the gate or the access control system; and obtaining the ultra-wideband ranging After the gate or the access control system is opened, the module detects the second distance from the card-side device; when it is determined that the card-side device is in the away state based on the second distance, the module is prohibited from communicating with the card-side device.
  • the terminal device performs card swiping communication.
  • the number of the ultra-wideband ranging modules is multiple, and the distance between each of the ultra-wideband ranging modules is at least a preset distance; the method further includes: detecting based on the multiple ultra-wideband ranging modules The distance from the card-end device to determine the spatial position of the card-end device; according to the spatial position within a preset time period, determine the motion state of the card-end device, wherein the motion state includes close proximity status and/or away status.
  • the method further includes: before performing card swiping communication with the card terminal device, sending the application type of the card reader to the card terminal device through the Bluetooth module or ultra-wideband ranging module. , to switch the application type of the card-side device; where the application type is used to characterize the supported or The type of card or emulated card used.
  • enabling the ultra-wideband ranging module includes: when the Bluetooth module scans a card-side device that supports the ultra-wideband card swiping function. time, initiate a connection to the card-side device; after the connection is successful, perform parameter interaction with the card-side device to obtain the negotiation parameters of the ultra-wideband ranging module; enable the ultra-wideband ranging module to The negotiation parameters measure distance.
  • FIG. 7 is a schematic flow chart of Embodiment 2 of the card swiping method provided by the embodiment of the present application.
  • This method uses a card-side device, such as the card-side device 40, or any card-side device equipped with a card-side broadband ranging module.
  • the card-side device also A card-side near field communication module may be included, and the method may be specifically executed by a control unit of the card-side device.
  • the card swiping method provided by this embodiment includes the following steps:
  • S701 Based on the card-side Bluetooth module, broadcast the card-swiping function supported by the card-side device, where the card-swiping function supported by the card-side device includes an ultra-wideband card swiping function.
  • S703 Communicate between the card-end ultra-wideband ranging module and the ultra-wideband ranging module of the card reader to implement the measurement of the distance between the card-end device and the card reader and the ultra-wideband card swiping function.
  • the card swiping function supported by the card terminal device also includes a near field communication card swiping function.
  • the card terminal device further includes a card terminal near field communication module.
  • the method further includes: when the field strength is detected, The terminal near field communication module communicates with the near field communication module of the card reader to realize the near field communication card swiping function.
  • the method further includes: obtaining the application type of the card reader; and switching the currently used application type according to the application type of the card reader to be consistent with the application type of the card reader.
  • the card terminal device further includes a card terminal security unit to complete the card swiping operation by accessing the card terminal security unit; the method further includes: activating or deactivating the card terminal security unit when the card swiping function is switched.
  • the card swiping application in the card swiping application is used to restore the state of the card swiping application to provide required data for the switched card swiping function, where the card swiping function includes a near field communication card swiping function and an ultra-wideband card swiping function.
  • FIG. 8 is a schematic structural diagram of Embodiment 1 of the control unit provided by the embodiment of the present application. As shown in FIG. 8 , the control unit includes: a memory 810 and at least one processor 820 .
  • the memory 810 stores computer execution instructions; at least one processor 820 executes the computer execution instructions stored in the memory 810, so that the at least one processor 820 executes the card swiping method provided by any embodiment of the present application.
  • the memory 810 and the processor 820 are connected through a bus 830.
  • Embodiments of the present application also provide a computer-readable storage medium.
  • Computer-executable instructions are stored in the computer-readable storage medium.
  • the processor executes the computer-executable instructions, the card swiping method provided by any embodiment of the present application is implemented. .
  • An embodiment of the present application also provides a computer program product, including a computer program.
  • the computer program is executed by a processor, the card swiping method as provided in any embodiment of the present application is implemented.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • General Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Near-Field Transmission Systems (AREA)

Abstract

The present application provides a card reader, a card end device, a card swiping method and a control unit. The card reader comprises a Bluetooth module, an ultra wide band (UWB) ranging module and a control unit, wherein the Bluetooth module is used for enabling the ultra wide band ranging module when a card end device, which supports an ultra wide band card swiping function, is scanned; the ultra wide band ranging module is used for measuring a first distance between same and the card end device; and the control unit is used for performing card-swiping communication with the card end device by means of the ultra wide band ranging module when it is determined, according to the first distance, that the card end device is in a proximity state and the first distance is less than or equal to a first threshold value. The present application provides a card reader which supports a UWB card swiping function, thereby improving the convenience and flexibility of card swiping by a user, and realizing non-inductive card swiping.

Description

读卡器、卡端设备、刷卡方法及控制单元Card reader, card terminal equipment, card swiping method and control unit
本申请要求于2022年07月05日提交中国专利局、申请号为202210783663.X、申请名称为“读卡器、卡端设备、刷卡方法及控制单元”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of the Chinese patent application submitted to the China Patent Office on July 5, 2022, with the application number 202210783663. The contents are incorporated into this application by reference.
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种读卡器、卡端设备、刷卡方法及控制单元。The present application relates to the field of communication technology, and in particular to a card reader, card terminal equipment, card swiping method and control unit.
背景技术Background technique
NFC(Near Field Communication,近场通信)技术结合SE(Secure Element安全单元)实现的刷卡架构,广泛应用于公交门禁系统、银行刷卡系统等刷卡系统中,其安全性较高,相对手动刷卡的方式,灵活性也较高。NFC (Near Field Communication) technology combined with the card swiping architecture implemented by SE (Secure Element security unit) is widely used in card swiping systems such as bus access control systems and bank card swiping systems. It has higher security than manual card swiping methods. , the flexibility is also higher.
然而,NFC结合SE的刷卡架构虽实现了无接触刷卡,但实际上仍需要用户抬起手表、手环等卡端设备以贴近读卡器,从而完成刷卡操作,刷卡便捷性和灵活性均较差,无法满足用户需求。However, although the card swiping architecture of NFC combined with SE enables contactless card swiping, it still requires users to lift their watches, bracelets and other card-side devices to get close to the card reader to complete the card swiping operation. The convenience and flexibility of card swiping are relatively low. Poor and unable to meet user needs.
发明内容Contents of the invention
本申请提供一种读卡器、卡端设备、刷卡方法及控制单元,实现了基于UWB的无感刷卡,提高了刷卡操作的便捷性和灵活性。This application provides a card reader, card terminal equipment, card swiping method and control unit, which realizes UWB-based senseless card swiping and improves the convenience and flexibility of card swiping operations.
第一方面,本申请提供一种读卡器,包括:蓝牙模块、超宽带(Ultra Wide Band,UWB)测距模块和控制单元;其中,所述蓝牙模块用于当扫描到支持超宽带刷卡功能的卡端设备时,使能所述超宽带测距模块;所述超宽带测距模块用于检测与所述卡端设备的第一距离;所述控制单元用于当根据所述第一距离确定所述卡端设备处于靠近状态,且所述第一距离小于或等于第一阈值时,通过所述超宽带测距模块,与所述卡端设备进行刷卡通信。In a first aspect, this application provides a card reader, including: a Bluetooth module, an Ultra Wide Band (UWB) ranging module and a control unit; wherein, the Bluetooth module is used to support the Ultra Wideband card swiping function when scanning When the card-side device is connected to the card-side device, the ultra-wideband ranging module is enabled; the ultra-wideband ranging module is used to detect the first distance to the card-side device; and the control unit is used to detect the first distance according to the first distance. When it is determined that the card-side device is in a close state and the first distance is less than or equal to the first threshold, card-swiping communication is performed with the card-side device through the ultra-wideband ranging module.
在一种可能的实现方式中,所述蓝牙模块为低功耗蓝牙模块,还用于:确定与各个卡端设备的第三距离。所述控制单元,具体用于:按照所述第三距离由小到大的顺序,对各个所述卡端设备进行排序;根据排序结果,依次 获取各个卡端设备的第一距离,并当根据所述第一距离确定所述卡端设备处于靠近状态,且所述第一距离小于或等于第一阈值时,通过所述超宽带测距模块,与所述卡端设备进行刷卡通信。In a possible implementation, the Bluetooth module is a low-power Bluetooth module, and is also used to determine the third distance to each card-side device. The control unit is specifically configured to: sort each of the card-side devices in order from small to large in the third distance; according to the sorting result, order Obtain the first distance of each card-side device, and when it is determined that the card-side device is in a close state according to the first distance and the first distance is less than or equal to a first threshold, the ultra-wideband ranging module , perform card swiping communication with the card terminal device.
在一种可能的实现方式中,读卡器还包括近场通信模块,所述卡端设备还支持近场通信刷卡功能;所述控制单元,还用于:当基于超宽带测距模块的刷卡操作失败,且所述第一距离小于第二阈值时,禁止所述超宽带测距模块与所述卡端设备进行刷卡通信,并通过所述近场通信模块,与所述卡端设备进行刷卡通信;其中,所述第二阈值小于所述第一阈值。In a possible implementation, the card reader further includes a near field communication module, and the card terminal device also supports the near field communication card swiping function; the control unit is also used to: when the card swiping function is based on the ultra-wideband ranging module When the operation fails and the first distance is less than the second threshold, the ultra-wideband ranging module is prohibited from performing card swiping communication with the card terminal device, and uses the near field communication module to perform card swiping communication with the card terminal device. Communication; wherein the second threshold is less than the first threshold.
在一种可能的实现方式中,所述控制单元,还用于:当所述卡端设备刷卡操作成功之后,生成闸机或门禁系统的开启指令,以开启所述闸机或所述门禁系统;获取所述超宽带测距模块在所述闸机或所述门禁系统开启后,检测的与所述卡端设备的第二距离;当根据所述第二距离确定所述卡端设备处于离开状态时,禁止与所述卡端设备进行刷卡通信。In a possible implementation, the control unit is also configured to: after the card swiping operation of the card terminal device is successful, generate an opening instruction of the gate or the access control system to open the gate or the access control system. ; Acquire the second distance between the ultra-wideband ranging module and the card-side device detected by the gate or the access control system after the gate or the access control system is turned on; when it is determined that the card-side device is leaving based on the second distance In this state, card swipe communication with the card-side device is prohibited.
在一种可能的实现方式中,所述超宽带测距模块的数量为多个,各所述超宽带测距模块之间的距离至少为预设距离;所述控制单元,具体用于:根据多个超宽带测距模块检测的与所述卡端设备的距离,确定所述卡端设备的空间位置;根据预设时间段内的所述空间位置,确定所述卡端设备的运动状态,其中,所述运动状态包括靠近状态和/或离开状态。In a possible implementation, the number of the ultra-wideband ranging modules is multiple, and the distance between each of the ultra-wideband ranging modules is at least a preset distance; the control unit is specifically configured to: The distance to the card-side device detected by multiple ultra-wideband ranging modules is used to determine the spatial position of the card-side device; and the motion state of the card-side device is determined based on the spatial position within a preset time period, Wherein, the movement state includes approaching state and/or leaving state.
在一种可能的实现方式中,所述控制单元,还用于:在与所述卡端设备进行刷卡通信之前,通过所述蓝牙模块或超宽带测距模块,将所述读卡器的应用类型发送至所述卡端设备;其中,应用类型用于表征所支持或使用的卡或模拟卡的类型。In a possible implementation, the control unit is further configured to: before performing card swipe communication with the card terminal device, use the Bluetooth module or ultra-wideband ranging module to The type is sent to the card-side device; where the application type is used to characterize the type of card or simulated card that is supported or used.
在一种可能的实现方式中,所述蓝牙模块,具体用于:当扫描到支持超宽带刷卡功能的卡端设备时,向所述卡端设备发起连接;连接成功后,与所述卡端设备进行参数交互,以获取所述超宽带测距模块的协商参数;使能所述超宽带测距模块,以基于所述协商参数进行距离的测量。In a possible implementation, the Bluetooth module is specifically configured to: when a card-side device supporting ultra-wideband card swiping function is scanned, initiate a connection to the card-side device; after the connection is successful, connect to the card-side device The device performs parameter interaction to obtain the negotiation parameters of the ultra-wideband ranging module; and enables the ultra-wideband ranging module to measure distance based on the negotiation parameters.
在一种可能的实现方式中,所述低功耗蓝牙模块,还用于:确定与各个卡端设备的第三距离。In a possible implementation, the low-power Bluetooth module is also used to determine a third distance to each card-side device.
相应的,控制单元,具体用于:根据第三距离小于第三阈值的各个卡端设备的第一距离,通过所述超宽带测距模块或所述近场通信模块,与第三距 离小于第三阈值的各个卡端设备进行刷卡通信,以完成刷卡操作。Correspondingly, the control unit is specifically configured to: according to the first distance of each card-side device whose third distance is less than the third threshold, communicate with the third distance through the ultra-wideband ranging module or the near field communication module. Each card terminal device whose distance is less than the third threshold carries out card swiping communication to complete the card swiping operation.
第二方面,本申请提供一种卡端设备,包括:卡端蓝牙模块和卡端超宽带测距模块;所述卡端蓝牙模块用于广播卡端设备支持的刷卡功能,以及用于在与读卡器的蓝牙模块连接后,使能所述卡端超宽带测距模块,其中,卡端设备支持的刷卡功能包括超宽带刷卡功能;所述卡端超宽带测距模块,用于与读卡器的超宽带测距模块进行通信,以实现卡端设备与所述读卡器之间距离的测量以及超宽带刷卡功能。In a second aspect, this application provides a card-side device, including: a card-side Bluetooth module and a card-side ultra-wideband ranging module; the card-side Bluetooth module is used to broadcast the card swiping function supported by the card-side device, and is used to communicate with the card-side device. After the Bluetooth module of the card reader is connected, the card-side ultra-wideband ranging module is enabled. The card-side card swiping function supported by the card-side device includes the ultra-wideband card swiping function; the card-side ultra-wideband ranging module is used to communicate with the reader. The ultra-wideband ranging module of the card reader communicates to realize the measurement of the distance between the card terminal device and the card reader and the ultra-wideband card swiping function.
在一种可能的实现方式中,卡端设备支持的刷卡功能还包括近场通信刷卡功能,所述卡端设备还包括卡端近场通信模块,用于与读卡器的近场通信模块进行通信,以实现近所述场通信刷卡功能。In a possible implementation, the card swiping function supported by the card terminal device also includes a near field communication card swiping function, and the card terminal device also includes a card terminal near field communication module for communicating with the near field communication module of the card reader. Communication to achieve near field communication card swiping function.
在一种可能的实现方式中,该卡端设备还包括应用类型切换模块,用于:接收读卡器的应用类型;根据读卡器的应用类型,切换当前使用的应用类型,以与读卡器的应用类型一致。In a possible implementation, the card-side device also includes an application type switching module, configured to: receive the application type of the card reader; and, according to the application type of the card reader, switch the currently used application type to match the card reader. The application type of the device is the same.
在一种可能的实现方式中,该卡端设备还包括卡端安全单元,以通过访问所述卡端安全单元完成刷卡操作;所述卡端安全单元还用于:当刷卡功能被切换时,激活或去激活所述卡端安全单元中的刷卡应用,以恢复所述刷卡应用的状态,为切换后的刷卡功能提供所需数据,其中,所述刷卡功能包括近场通信刷卡功能和超宽带刷卡功能,在近场通信刷卡功能下,基于所述卡端近场通信模块进行刷卡操作,在超宽带刷卡功能下,基于所述卡端超宽带测距模块进行刷卡操作。In a possible implementation, the card-side device further includes a card-side security unit to complete the card swiping operation by accessing the card-side security unit; the card-side security unit is also used to: when the card swiping function is switched, Activate or deactivate the card swiping application in the card-side security unit to restore the status of the card swiping application and provide required data for the switched card swiping function, wherein the card swiping function includes near field communication card swiping function and ultra-wideband For the card swiping function, under the near field communication card swiping function, the card swiping operation is performed based on the card end near field communication module. Under the ultra-wideband card swiping function, the card swiping operation is performed based on the card end ultra-wideband ranging module.
第三方面,本申请提供一种刷卡方法,所述方法应用于读卡器,所述读卡器包括蓝牙模块、超宽带测距模块和控制单元,可以由控制单元执行,所述方法包括:当所述蓝牙模块扫描到支持超宽带刷卡功能的卡端设备时,使能所述超宽带测距模块;基于所述超宽带测距模块,检测与所述卡端设备的第一距离;当根据所述第一距离确定所述卡端设备处于靠近状态,且所述第一距离小于或等于第一阈值时,通过所述超宽带测距模块,与所述卡端设备进行刷卡通信。In a third aspect, this application provides a card swiping method. The method is applied to a card reader. The card reader includes a Bluetooth module, an ultra-wideband ranging module and a control unit, and can be executed by the control unit. The method includes: When the Bluetooth module scans a card-side device that supports the ultra-wideband card swiping function, the ultra-wideband ranging module is enabled; based on the ultra-wideband ranging module, the first distance to the card-side device is detected; when When it is determined that the card-side device is in a close state according to the first distance, and the first distance is less than or equal to a first threshold, card-swiping communication is performed with the card-side device through the ultra-wideband ranging module.
可选的,所述蓝牙模块为低功耗蓝牙(BLE,Bluetooth Low Energy)模块,在基于所述超宽带测距模块,检测与所述卡端设备的第一距离之前,所述方法还包括:基于所述低功耗蓝牙模块,确定与各个卡端设备的第三距离; Optionally, the Bluetooth module is a Bluetooth Low Energy (BLE) module. Before detecting the first distance to the card terminal device based on the ultra-wideband ranging module, the method further includes : Based on the low-power Bluetooth module, determine the third distance to each card-side device;
按照所述第三距离由小到大的顺序,对各个所述卡端设备进行排序;当根据所述第一距离确定所述卡端设备处于靠近状态,且所述第一距离小于或等于第一阈值时,通过所述超宽带测距模块,与所述卡端设备进行刷卡通信,包括:根据排序结果,依次获取各个卡端设备的第一距离,并当根据所述第一距离确定所述卡端设备处于靠近状态,且所述第一距离小于或等于第一阈值时,通过所述超宽带测距模块,与所述卡端设备进行刷卡通信。Sort each of the card-side devices in ascending order of the third distance; when it is determined that the card-side device is in a close state according to the first distance, and the first distance is less than or equal to the third distance, When a threshold is reached, the ultra-wideband ranging module is used to communicate with the card terminal device by card swiping, including: obtaining the first distance of each card terminal device in sequence according to the sorting result, and determining the first distance according to the first distance. When the card-side device is in a close state and the first distance is less than or equal to the first threshold, card-swiping communication is performed with the card-side device through the ultra-wideband ranging module.
可选的,读卡器还包括近场通信模块,卡端设备还支持近场通信刷卡功能,所述方法还包括:当基于超宽带测距模块的刷卡操作失败,且所述第一距离小于第二阈值时,禁止所述超宽带测距模块与所述卡端设备进行刷卡通信,并通过所述近场通信模块,与所述卡端设备进行刷卡通信;其中,所述第二阈值小于所述第一阈值。Optionally, the card reader also includes a near field communication module, and the card terminal device also supports a near field communication card swiping function. The method further includes: when the card swiping operation based on the ultra-wideband ranging module fails and the first distance is less than At the second threshold, the ultra-wideband ranging module is prohibited from performing card swiping communication with the card terminal device, and uses the near field communication module to perform card swiping communication with the card terminal device; wherein the second threshold is less than the first threshold.
可选的,所述方法还包括:当所述卡端设备刷卡操作成功之后,生成闸机或门禁系统的开启指令,以开启所述闸机或所述门禁系统;获取所述超宽带测距模块在所述闸机或所述门禁系统开启后,检测的与所述卡端设备的第二距离;当根据所述第二距离确定所述卡端设备处于离开状态时,禁止与所述卡端设备进行刷卡通信。Optionally, the method further includes: when the card terminal device swipes the card successfully, generating an opening instruction for the gate or the access control system to open the gate or the access control system; and obtaining the ultra-wideband ranging After the gate or the access control system is opened, the module detects the second distance from the card-side device; when it is determined that the card-side device is in the away state based on the second distance, the module is prohibited from communicating with the card-side device. The terminal device performs card swiping communication.
可选的,所述超宽带测距模块的数量为多个,各所述超宽带测距模块之间的距离至少为预设距离;所述方法还包括:根据多个超宽带测距模块检测的与所述卡端设备的距离,确定所述卡端设备的空间位置;根据预设时间段内的所述空间位置,确定所述卡端设备的运动状态,其中,所述运动状态包括靠近状态和/或离开状态。Optionally, the number of the ultra-wideband ranging modules is multiple, and the distance between each of the ultra-wideband ranging modules is at least a preset distance; the method further includes: detecting based on the multiple ultra-wideband ranging modules The distance from the card-end device to determine the spatial position of the card-end device; according to the spatial position within a preset time period, determine the motion state of the card-end device, wherein the motion state includes close proximity status and/or away status.
可选的,所述方法还包括:在与所述卡端设备进行刷卡通信之前,通过所述蓝牙模块或超宽带测距模块,将所述读卡器的应用类型发送至所述卡端设备,以切换所述卡端设备的应用类型;其中,应用类型用于表征所支持或使用的卡或模拟卡的类型。Optionally, the method further includes: before performing card swiping communication with the card terminal device, sending the application type of the card reader to the card terminal device through the Bluetooth module or ultra-wideband ranging module. , to switch the application type of the card-side device; where the application type is used to characterize the type of card or simulated card that is supported or used.
可选的,当所述蓝牙模块扫描到支持超宽带刷卡功能的卡端设备时,使能所述超宽带测距模块,包括:当所述蓝牙模块扫描到支持超宽带刷卡功能的卡端设备时,向所述卡端设备发起连接;连接成功后,与所述卡端设备进行参数交互,以获取所述超宽带测距模块的协商参数;使能所述超宽带测距模块,以基于所述协商参数进行距离的测量。 Optionally, when the Bluetooth module scans a card-side device that supports the ultra-wideband card swiping function, enabling the ultra-wideband ranging module includes: when the Bluetooth module scans a card-side device that supports the ultra-wideband card swiping function. time, initiate a connection to the card-side device; after the connection is successful, perform parameter interaction with the card-side device to obtain the negotiation parameters of the ultra-wideband ranging module; enable the ultra-wideband ranging module to The negotiation parameters measure distance.
第四方面,本申请提供另一种刷卡方法,应用于卡端设备,所述卡端设备包括卡端蓝牙模块和卡端超宽带测距模块;所述方法包括:基于所述卡端蓝牙模块,广播卡端设备支持的刷卡功能,其中,卡端设备支持的刷卡功能包括超宽带刷卡功能;在所述卡端蓝牙模块与读卡器的蓝牙模块连接后,使能所述卡端超宽带测距模块;通过所述卡端超宽带测距模块与所述读卡器的超宽带测距模块进行通信,以实现卡端设备与所述读卡器之间距离的测量以及超宽带刷卡功能。In the fourth aspect, this application provides another card swiping method, which is applied to a card-side device. The card-side device includes a card-side Bluetooth module and a card-side ultra-wideband ranging module; the method includes: based on the card-side Bluetooth module , broadcasting the card swiping function supported by the card terminal device, wherein the card swiping function supported by the card terminal device includes the ultra-wideband card swiping function; after the card-side Bluetooth module is connected to the Bluetooth module of the card reader, the card-side ultra-wideband is enabled Ranging module; communicates with the card-end ultra-wideband ranging module and the ultra-wideband ranging module of the card reader to realize the measurement of the distance between the card-end device and the card reader and the ultra-wideband card swiping function .
可选的,卡端设备支持的刷卡功能还包括近场通信刷卡功能,所述卡端设备还包括卡端近场通信模块,所述方法还包括:当检测到场强时,通过所述卡端近场通信模块与读卡器的近场通信模块进行通信,以实现近所述场通信刷卡功能。Optionally, the card swiping function supported by the card terminal device also includes a near field communication card swiping function. The card terminal device further includes a card terminal near field communication module. The method further includes: when the field strength is detected, The terminal near field communication module communicates with the near field communication module of the card reader to realize the near field communication card swiping function.
可选的,所述方法还包括:获取读卡器的应用类型;根据读卡器的应用类型,切换当前使用的应用类型,以与读卡器的应用类型一致。Optionally, the method further includes: obtaining the application type of the card reader; and switching the currently used application type according to the application type of the card reader to be consistent with the application type of the card reader.
可选的,卡端设备还包括卡端安全单元,以通过访问所述卡端安全单元完成刷卡操作;所述方法还包括:当刷卡功能被切换时,激活或去激活所述卡端安全单元中的刷卡应用,以恢复所述刷卡应用的状态,以为切换后的刷卡功能提供所需数据,其中,所述刷卡功能包括近场通信刷卡功能和超宽带刷卡功能。Optionally, the card terminal device further includes a card terminal security unit to complete the card swiping operation by accessing the card terminal security unit; the method further includes: activating or deactivating the card terminal security unit when the card swiping function is switched. The card swiping application in the card swiping application is used to restore the state of the card swiping application to provide required data for the switched card swiping function, where the card swiping function includes a near field communication card swiping function and an ultra-wideband card swiping function.
第五方面,本申请提供一种控制单元,包括存储器和至少一个处理器;In a fifth aspect, this application provides a control unit including a memory and at least one processor;
所述存储器存储计算机执行指令;所述至少一个处理器执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行如本申请第三方面或第四方面提供的刷卡方法。The memory stores computer-executed instructions; the at least one processor executes the computer-executed instructions stored in the memory, so that the at least one processor executes the card swiping method provided in the third or fourth aspect of this application.
第六方面,本申请提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如本申请第三方面或第四方面提供的刷卡方法。In a sixth aspect, the present application provides a computer-readable storage medium. Computer-executable instructions are stored in the computer-readable storage medium. When the processor executes the computer-executable instructions, the third or fourth aspect of the present application is implemented. The card swiping method provided by the aspect.
第七方面,本申请提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如本申请第三方面或第四方面提供的刷卡方法。In a seventh aspect, the present application provides a computer program product, including a computer program. When the computer program is executed by a processor, the card swiping method as provided in the third or fourth aspect of the present application is implemented.
本申请实施例提供的读卡器、卡端设备、刷卡方法及控制单元,该读卡器包括蓝牙模块、超宽带测距模块和控制单元,蓝牙模块被配置为当扫描到支持超宽带刷卡功能的卡端设备时,使能超宽带测距模块,基于该超宽带测 距模块测量与卡端设备的第一距离,当基于该第一距离确定卡端设备处于靠近状态且第一距离小于或等于第一阈值时,通过超宽带测距模块与该卡端设备进行刷卡通信,从而实现UWB无感刷卡。通过蓝牙模块进行超宽带测距模块的唤醒,降低了功耗,通过超宽带测距模块测量的精确距离,智能判定是否触发UWB刷卡操作,从而实现与卡端设备的刷卡操作,整个过程无需用户手动进行刷卡相关操作,提高了刷卡的便捷性和灵活性,实现了无感刷卡。Embodiments of the present application provide a card reader, a card terminal device, a card swiping method and a control unit. The card reader includes a Bluetooth module, an ultra-wideband ranging module and a control unit. The Bluetooth module is configured to support the ultra-wideband card swiping function when scanning. When using the card-side device, enable the ultra-wideband ranging module. Based on the ultra-wideband measurement The distance module measures the first distance from the card-side device. When it is determined that the card-side device is in a close state based on the first distance and the first distance is less than or equal to the first threshold, the card-side device is swiped through the ultra-wideband ranging module. communication, thereby realizing UWB senseless card swiping. The ultra-wideband ranging module is awakened through the Bluetooth module, which reduces power consumption. Through the precise distance measured by the ultra-wideband ranging module, it can intelligently determine whether to trigger the UWB card swiping operation, thereby realizing the card swiping operation with the card-side device. The entire process does not require the user. Manual card swiping-related operations improve the convenience and flexibility of card swiping and realize senseless card swiping.
附图说明Description of the drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the embodiments of the present application or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting any creative effort.
图1为基于NFC进行刷卡操作过程的示意图;Figure 1 is a schematic diagram of the card swiping operation process based on NFC;
图2为本申请实施例提供的读卡器实施例一的结构示意图;Figure 2 is a schematic structural diagram of Embodiment 1 of the card reader provided by the embodiment of the present application;
图3为本申请实施例提供的读卡器实施例二的结构示意图;Figure 3 is a schematic structural diagram of Embodiment 2 of the card reader provided by the embodiment of this application;
图4为本申请实施例提供的卡端设备实施例一的结构示意图;Figure 4 is a schematic structural diagram of Embodiment 1 of the card terminal device provided by the embodiment of the present application;
图5为本申请实施例提供的刷卡系统实施例一的结构示意图;Figure 5 is a schematic structural diagram of Embodiment 1 of the card swiping system provided by the embodiment of this application;
图6为本申请实施例提供的刷卡方法实施例一的流程示意图;Figure 6 is a schematic flow chart of Embodiment 1 of the card swiping method provided by the embodiment of this application;
图7为本申请实施例提供的刷卡方法实施例二的流程示意图;Figure 7 is a schematic flow chart of Embodiment 2 of the card swiping method provided by the embodiment of this application;
图8为本申请实施例提供的控制单元实施例一的结构示意图。FIG. 8 is a schematic structural diagram of Embodiment 1 of the control unit provided by the embodiment of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments These are part of the embodiments of this application, but not all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
随着物联网技术的不断发展,为了提高刷卡操作的便捷性,如刷卡支付操作、刷卡解门禁等,NFC技术得到了广泛地应用。图1为基于NFC进行刷 卡操作过程的示意图,如图1所示,当卡端设备10(图1中以穿戴设备为例)需要进行刷卡支付或通过刷卡打开门禁时,用户需要将卡端设备10靠近读卡器20,以通过NFC模块,进行非接触数据传输,从而实现相关数据的交换,以完成相应的刷卡操作。以门禁系统为例,读卡器20中的NFC模块作为读卡器,读取卡端设备10中的NFC模块中存储的标记信息,从而基于该标记信息开启门禁。With the continuous development of Internet of Things technology, NFC technology has been widely used in order to improve the convenience of card swiping operations, such as card swiping payment operations and card swiping to unlock access control. Figure 1 shows brushing based on NFC A schematic diagram of the card operation process, as shown in Figure 1. When the card terminal device 10 (a wearable device is used as an example in Figure 1) needs to pay by swiping a card or open access control by swiping a card, the user needs to bring the card terminal device 10 close to the card reader 20 , to conduct contactless data transmission through the NFC module, thereby realizing the exchange of relevant data to complete the corresponding card swiping operation. Taking the access control system as an example, the NFC module in the card reader 20 acts as a card reader to read the tag information stored in the NFC module in the card terminal device 10, thereby opening the access control based on the tag information.
在一个实施例中,卡端设备可以为手机、平板电脑等便携式或移动设备,也可以是手环、手表、智能眼镜、智能首饰等可穿戴设备,或其他具有SE的能够实现卡片功能的设备。In one embodiment, the card-side device can be a portable or mobile device such as a mobile phone or tablet computer, or a wearable device such as a bracelet, watch, smart glasses, smart jewelry, or other device with SE that can implement the card function. .
在一个实施例中,读卡器可以为门禁系统、公交刷卡系统、银行刷卡系统等系统中的读卡器。图1中以读卡器为地铁闸机处的读卡器为例。In one embodiment, the card reader may be a card reader in an access control system, a bus card swiping system, a bank card swiping system, or other systems. In Figure 1, the card reader is a card reader at a subway gate as an example.
采用NFC技术虽可以实现近距离刷卡功能,但仍需要用户手动操作,如抬起手表、手环等卡端设备10,从而将卡端设备10贴近读卡器20,刷卡便捷性较差。Although NFC technology can be used to realize the card swiping function at close range, it still requires manual operation by the user, such as lifting the card-side device 10 such as a watch or bracelet, so as to bring the card-side device 10 close to the card reader 20, making card swiping less convenient.
为了提高刷卡的便捷性,实现无感刷卡,本申请提供了一种支持UWB刷卡的读卡器,由于UWB模块功耗较高,为了降低功耗,增加了蓝牙模块,通过蓝牙模块在检测到支持UWB刷卡功能的卡端设备时,唤醒UWB模块,基于UWB模块检测读卡器与卡端设备之间的精准距离,基于所检测的距离,自动判定卡端设备的状态是否满足预设的刷卡条件,若是,则基于UWB模块,实现无感刷卡。In order to improve the convenience of card swiping and achieve senseless card swiping, this application provides a card reader that supports UWB card swiping. Since the UWB module consumes high power, in order to reduce power consumption, a Bluetooth module is added. The Bluetooth module detects When a card-side device supports the UWB card swiping function, wake up the UWB module and detect the precise distance between the card reader and the card-side device based on the UWB module. Based on the detected distance, it automatically determines whether the status of the card-side device meets the preset card swiping requirements. Condition, if yes, based on the UWB module, sensorless card swiping will be realized.
下面以具体地实施例对本申请的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。The technical solution of the present application will be described in detail below with specific examples. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.
图2为本申请实施例提供的读卡器实施例一的结构意图,该读卡器应用于支付系统或门禁系统,该支付系统可以为公交支付系统、地铁支付系统、银行卡支付系统等,图2所示,该读卡器20包括蓝牙模块210、超宽带测距模块220和控制单元240。Figure 2 is a structural diagram of Embodiment 1 of a card reader provided by the embodiment of the present application. The card reader is applied to a payment system or an access control system. The payment system can be a bus payment system, a subway payment system, a bank card payment system, etc. As shown in FIG. 2 , the card reader 20 includes a Bluetooth module 210 , an ultra-wideband ranging module 220 and a control unit 240 .
其中,蓝牙模块210用于当扫描到支持超宽带刷卡功能的卡端设备时,使能超宽带测距模块220;超宽带测距模块220用于检测与卡端设备的第一距离;控制单元240用于当根据第一距离确定卡端设备处于靠近状态,且第 一距离小于或等于第一阈值时,通过超宽带测距模块220,与卡端设备进行刷卡通信,以实现UWB无感刷卡。Among them, the Bluetooth module 210 is used to enable the ultra-wideband ranging module 220 when a card-side device that supports the ultra-wideband card swiping function is scanned; the ultra-wideband ranging module 220 is used to detect the first distance to the card-side device; the control unit 240 is used when it is determined based on the first distance that the card-side device is in a close state, and the third When a distance is less than or equal to the first threshold, card swiping communication is performed with the card terminal device through the ultra-wideband ranging module 220 to realize UWB sensorless card swiping.
由于蓝牙模块210功耗较低,将其作为扫描设备,进行卡端设备广播数据的扫描,当蓝牙模块210扫描到卡端设备支持UWB刷卡功能时,使能(或唤醒)超宽带测距模块220,如发送使能信号至超宽带测距模块220,从而避免超宽带测距模块220保持开启进行扫描而导致功耗较高。Since the Bluetooth module 210 has low power consumption, it is used as a scanning device to scan the broadcast data of the card-side device. When the Bluetooth module 210 scans that the card-side device supports the UWB card swiping function, the ultra-wideband ranging module is enabled (or awakened). 220, such as sending an enable signal to the ultra-wideband ranging module 220, thereby preventing the ultra-wideband ranging module 220 from remaining turned on for scanning, resulting in high power consumption.
超宽带测距模块220被使能后,开启测距模式,以检测与周边设备(包括该卡端设备)的距离。After the ultra-wideband ranging module 220 is enabled, the ranging mode is turned on to detect the distance to peripheral devices (including the card-side device).
示例性的,超宽带测距模块220的带宽可以为位于1000~7000MHz之间,如可以为3000MHz。For example, the bandwidth of the ultra-wideband ranging module 220 may be between 1000 and 7000 MHz, such as 3000 MHz.
蓝牙模块210在扫描到支持UWB刷卡功能的卡端设备时,则使能读卡器的超宽带测距模块220,该卡端设备的卡端蓝牙模块使能该卡端设备的卡端超宽带测距模块,以基于超宽带测距模块220和该卡端设备的卡端超宽带测距模块,检测读卡器与卡端两者之间的距离,记为第一距离。When the Bluetooth module 210 scans a card-side device that supports the UWB card swiping function, it enables the card-side ultra-wideband ranging module 220 of the card reader, and the card-side Bluetooth module of the card-side device enables the card-side ultra-wideband of the card-side device. The ranging module, based on the ultra-wideband ranging module 220 and the card-end ultra-wideband ranging module of the card-end device, detects the distance between the card reader and the card end, which is recorded as the first distance.
在一个实施例中,当蓝牙模块210扫描到支持UWB刷卡功能的卡端设备时,向该卡端设备发起连接,从而进行超宽带测距模块220相关参数的交互,以使超宽带测距模块220基于所交互的参数进行测距。In one embodiment, when the Bluetooth module 210 scans a card-side device that supports the UWB card swiping function, it initiates a connection to the card-side device to interact with relevant parameters of the ultra-wideband ranging module 220 so that the ultra-wideband ranging module 220 performs ranging based on the interacted parameters.
超宽带测距模块220可以基于DS-TWR(Double Sided Two-way Ranging,双边双向测距)、TOA(Time of Arrival,达到时间)、TDOA(Time Difference of Arrival,到达时间差)等算法进行测距。The ultra-wideband ranging module 220 can perform ranging based on algorithms such as DS-TWR (Double Sided Two-way Ranging), TOA (Time of Arrival), and TDOA (Time Difference of Arrival). .
其中,第一阈值可以为1m、2m、3m、5m或者其他值。在靠近状态下卡端设备逐渐靠近读卡器20,即在靠近状态下,卡端设备与读卡器之间的第一距离逐渐减小。The first threshold may be 1m, 2m, 3m, 5m or other values. In the approaching state, the card-side device gradually approaches the card reader 20 , that is, in the approaching state, the first distance between the card-side device and the card reader gradually decreases.
具体的,可以根据连续设定时间段内检测的卡端设备与读卡器20的第一距离,判断卡端设备是否处于靠近状态。Specifically, whether the card-side device is in a close state can be determined based on the first distance between the card-side device and the card reader 20 detected within a continuous set period of time.
示例性的,可以基于连续设定时间段内检测的第一距离、相邻第一距离的差值等参数,判断卡端设备是否处于靠近状态。For example, whether the card-side device is in a close state can be determined based on parameters such as the first distance detected within a continuous set time period, the difference between adjacent first distances, and so on.
本实施例提供的读卡器,包括蓝牙模块210、超宽带测距模块220和控制单元240,蓝牙模块210被配置为当扫描到支持超宽带刷卡功能的卡端设备时,使能超宽带测距模块220,基于该超宽带测距模块220测量与卡端设 备的第一距离,当基于该第一距离确定卡端设备处于靠近状态且第一距离小于或等于第一阈值时,通过超宽带测距模块220与该卡端设备进行刷卡通信,从而实现UWB无感刷卡。通过蓝牙模块210进行超宽带测距模块220的唤醒,降低了功耗,通过超宽带测距模块220测量的精确距离,智能判定是否触发UWB刷卡操作,从而实现与卡端设备的刷卡操作,整个过程无需用户手动进行刷卡相关操作,提高了刷卡的便捷性和灵活性,实现了无感刷卡。The card reader provided in this embodiment includes a Bluetooth module 210, an ultra-wideband ranging module 220, and a control unit 240. The Bluetooth module 210 is configured to enable ultra-wideband measurement when a card terminal device that supports the ultra-wideband card swiping function is scanned. distance module 220, based on the ultra-wideband ranging module 220 measurement and card terminal equipment When it is determined based on the first distance that the card-side device is in a close state and the first distance is less than or equal to the first threshold, card-swiping communication is performed with the card-side device through the ultra-wideband ranging module 220, thereby realizing UWB No need to swipe your card. The ultra-wideband ranging module 220 is awakened through the Bluetooth module 210, which reduces power consumption. Through the precise distance measured by the ultra-wideband ranging module 220, it is intelligently determined whether to trigger the UWB card swiping operation, thereby realizing the card swiping operation with the card-side device. The entire The process does not require users to manually perform card swiping related operations, which improves the convenience and flexibility of card swiping and realizes senseless card swiping.
在一个实施例中,可以称支持超宽带刷卡功能的卡端设备为预设卡端设备。In one embodiment, a card terminal device that supports ultra-wideband card swiping function can be called a default card terminal device.
可选的,蓝牙模块210,具体用于:当扫描到支持超宽带刷卡功能的卡端设备时,向所述卡端设备发起连接;连接成功后,与所述卡端设备进行参数交互,以获取超宽带测距模块220的协商参数;使能超宽带测距模块220,以基于所述协商参数进行距离的测量。Optionally, the Bluetooth module 210 is specifically used to: when a card-side device supporting the ultra-wideband card swiping function is scanned, initiate a connection to the card-side device; after the connection is successful, perform parameter interaction with the card-side device to Obtain the negotiation parameters of the ultra-wideband ranging module 220; enable the ultra-wideband ranging module 220 to measure distance based on the negotiation parameters.
其中,协商参数包括超宽带测距模块220的测距间隔、测距方法等参数。Among them, the negotiation parameters include parameters such as the ranging interval and the ranging method of the ultra-wideband ranging module 220 .
具体的,蓝牙模块210向卡端设备的卡端蓝牙模块发起连接,与卡端设备的卡端蓝牙模块进行UWB相关参数的交互,从而得到超宽带测距模块220的协商参数。在连接成功后,使能或唤醒读卡器的超宽带测距模块220,超宽带测距模块220在被使能后,基于该协商参数进入测距模式,从而通过卡端设备的卡端超宽带测距模块,实现读卡器与卡端设备之间距离的检测。Specifically, the Bluetooth module 210 initiates a connection to the card-side Bluetooth module of the card-side device, and interacts with the card-side Bluetooth module of the card-side device for UWB related parameters, thereby obtaining the negotiation parameters of the ultra-wideband ranging module 220 . After the connection is successful, the ultra-wideband ranging module 220 of the card reader is enabled or awakened. After being enabled, the ultra-wideband ranging module 220 enters the ranging mode based on the negotiation parameters, thereby using the card-side ultra-wideband ranging module of the card-side device. The broadband ranging module realizes the detection of the distance between the card reader and the card-side device.
蓝牙模块210与卡端设备进行参数交互的过程如下:The process of parameter interaction between the Bluetooth module 210 and the card device is as follows:
获取卡端设备发送的mac(Message Authentication Code,消息认证码)值以及第一参数;基于共享密钥以及第一参数,生成读卡器的mac值;判断卡端设备的mac值与读卡器的mac值是否一致;若是,则验证成功,协商参数即为卡端设备原本存储的UWB参数,即上述第一参数;若否,则进入参数协商流程,以协商UWB相关参数,参数协商成功后,得到上述协商参数。卡端设备保存该协商参数,并备份原来的第一参数。Obtain the mac (Message Authentication Code, message authentication code) value sent by the card-side device and the first parameter; generate the mac value of the card reader based on the shared key and the first parameter; determine the mac value of the card-side device and the card reader Is the mac value consistent? If yes, the verification is successful and the negotiation parameters are the UWB parameters originally stored by the card device, that is, the first parameter mentioned above; if not, enter the parameter negotiation process to negotiate UWB related parameters. After the parameter negotiation is successful, , get the above negotiation parameters. The card-side device saves the negotiation parameters and backs up the original first parameter.
其中,卡端设备mac值是基于消息认证码算法,根据共享密钥以及第一参数计算得到的。Among them, the mac value of the card-side device is calculated based on the message authentication code algorithm and the shared key and the first parameter.
当卡端设备的mac值与读卡器的mac值不一致时,读卡器还可以从已有UWB参数中,查找mac值与卡端设备的mac值匹配的UWB参数作为上述第一参数。若未查找到mac值一致的UWB参数,即已有UWB参数的mac 值均与卡端设备的mac值不一致,则进入参数协商流程。When the mac value of the card-side device is inconsistent with the mac value of the card reader, the card reader can also search for the UWB parameter whose mac value matches the mac value of the card-side device from the existing UWB parameters as the above-mentioned first parameter. If no UWB parameter with the same mac value is found, that is, there is a mac with UWB parameters. If the values are inconsistent with the mac value of the card-side device, the parameter negotiation process will be entered.
蓝牙模块210在参数交互过程中遵循FiRa(Fine Ranging)联盟的相关规范。The Bluetooth module 210 follows the relevant specifications of the FiRa (Fine Ranging) Alliance during the parameter interaction process.
基于蓝牙模块210,进行超宽带测距模块220参数的协商,提高了参数交互的可靠性和安全性,同时相较于基于UWB进行参数协商的方式,降低了功耗。Based on the Bluetooth module 210, the parameters of the ultra-wideband ranging module 220 are negotiated, which improves the reliability and security of parameter interaction and reduces power consumption compared with parameter negotiation based on UWB.
需要说明的是,读卡器也可以不包括蓝牙模块210,直接使用超宽带测距模块220来进行扫描和UWB通信参数协商等操作。相应的,卡端设备也可以不包括蓝牙模块,直接使用超宽带测距模块来广播支持的刷卡功能和参数协商,但这时功耗可能会比较大。It should be noted that the card reader may not include the Bluetooth module 210 and directly use the ultra-wideband ranging module 220 to perform operations such as scanning and UWB communication parameter negotiation. Correspondingly, the card-side device may not include a Bluetooth module and directly use the ultra-wideband ranging module to broadcast the supported card swiping functions and parameter negotiation, but the power consumption may be relatively large at this time.
图3为本申请实施例提供的读卡器实施例二的结构意图,结合图2和图3所示,该读卡器还包括近场通信模块230。Figure 3 is a structural diagram of Embodiment 2 of the card reader provided by the embodiment of the present application. As shown in combination with Figures 2 and 3, the card reader also includes a near field communication module 230.
近场通信模块230用于基于近场通信技术读取卡端设备中存储的应用信息,以实现NFC刷卡功能。其中,应用信息包括刷卡交易相关的信息。The near field communication module 230 is used to read application information stored in the card terminal device based on near field communication technology to implement the NFC card swiping function. Among them, the application information includes information related to credit card transactions.
具体的,控制单元240可以基于所接收的读卡器20与卡端设备的第一距离,判断卡端设备是否满足UWB刷卡功能对应的条件,如第一距离是否位于预设区间,若是,则基于超宽带测距模块220与卡端设备的卡端超宽带测距模块进行刷卡通信,完成UWB刷卡操作,从而实现无感刷卡。当卡端设备不满足UWB刷卡功能对应的条件,或基于超宽带测距模块220的刷卡操作失败时,则基于第一距离,判断是否满足NFC刷卡功能对应的条件,如第一距离是否足够小,若是,则基于近场通信模块230与卡端设备的卡端近场通信模块进行刷卡通信,完成NFC刷卡操作,从而提高刷卡的成功率,避免用户手动刷卡。Specifically, the control unit 240 can determine whether the card-side device meets the conditions corresponding to the UWB card swiping function based on the received first distance between the card reader 20 and the card-side device, such as whether the first distance is within a preset interval. If so, then Based on the ultra-wideband ranging module 220, the card-end ultra-wideband ranging module communicates with the card-side ultra-wideband ranging module of the card-end device to complete the UWB card swiping operation, thereby realizing senseless card swiping. When the card-side device does not meet the conditions corresponding to the UWB card swiping function, or the card swiping operation based on the ultra-wideband ranging module 220 fails, it is determined based on the first distance whether the conditions corresponding to the NFC card swiping function are met, such as whether the first distance is small enough. , if so, based on the near field communication module 230, the card terminal near field communication module of the card terminal device performs card swiping communication to complete the NFC card swiping operation, thereby improving the success rate of card swiping and preventing the user from manually swiping the card.
其中,刷卡操作可以为刷卡支付对应的操作或刷卡打开门禁对应的操作。Among them, the card swiping operation can be an operation corresponding to swiping a card to pay or an operation corresponding to swiping a card to open an access control.
针对同时支持超宽带刷卡功能和近场通信刷卡功能的卡端设备,控制单元240还用于:当基于超宽带测距模块220的刷卡操作失败,且所述第一距离小于第二阈值时,禁止超宽带测距模块220与所述卡端设备进行刷卡通信,并通过近场通信模块230,与卡端设备进行刷卡通信。其中,所述第二阈值小于所述第一阈值。For card terminal devices that support both the ultra-wideband card swiping function and the near field communication card swiping function, the control unit 240 is also configured to: when the card swiping operation based on the ultra-wideband ranging module 220 fails and the first distance is less than the second threshold, The ultra-wideband ranging module 220 is prohibited from performing card swiping communication with the card terminal device, and uses the near field communication module 230 to perform card swiping communication with the card terminal device. Wherein, the second threshold is smaller than the first threshold.
示例性的,第二阈值可以20cm、10cm、5cm或者其他值,如15cm。 For example, the second threshold can be 20cm, 10cm, 5cm or other values, such as 15cm.
继续参见图3,当读卡器20应用于刷卡支付系统时,读卡器20还包括安全单元(Secure Element,SE)250,以提高刷卡支付的安全性。Continuing to refer to Figure 3, when the card reader 20 is used in a card payment system, the card reader 20 also includes a security element (Secure Element, SE) 250 to improve the security of card payment.
安全单元250又称为安全芯片、安全元件,包括安全硬件和安全软件,用于提供安全的交互机制,以确保读卡器20与卡端设备之间交易数据交互的安全。安全单元可以对支付数据进行安全存储、安全计算等操作,从而避免直接通过超宽带测距模块220或近场通信模块230进行支付数据交互,导致数据泄露的问题。The security unit 250 is also called a security chip or security element, including security hardware and security software, and is used to provide a secure interaction mechanism to ensure the security of transaction data interaction between the card reader 20 and the card-side device. The security unit can perform operations such as secure storage and secure calculation of payment data, thereby avoiding the problem of data leakage caused by direct interaction of payment data through the ultra-wideband ranging module 220 or the near field communication module 230 .
当进行刷卡操作时,超宽带测距模块220或近场通信模块230可以通过访问安全单元250,完成相应的刷卡操作。When a card swiping operation is performed, the ultra-wideband ranging module 220 or the near field communication module 230 can complete the corresponding card swiping operation by accessing the security unit 250 .
读卡器20中的安全单元250通常为eSE(Embedded Security Element,嵌入式安全单元)。The security unit 250 in the card reader 20 is usually an eSE (Embedded Security Element).
控制单元240还用于:在与卡端设备进行刷卡通信之前,通过蓝牙模块210或超宽带测距模块220,将读卡器20的应用类型发送至所述卡端设备。The control unit 240 is also used to send the application type of the card reader 20 to the card terminal device through the Bluetooth module 210 or the ultra-wideband ranging module 220 before performing card swiping communication with the card terminal device.
其中,应用类型用于表征所支持或使用的卡或模拟卡的类型,可以用于表征读卡器20所支持的卡的类型,或表征卡端设备当前使用的卡或模拟卡的类型。卡端设备与读卡器20的应用类型一致即为卡端设备当前使用的卡或模拟卡,与读卡器20支持的卡的类型一致或相同。The application type is used to characterize the type of card or simulated card that is supported or used, and can be used to characterize the type of card supported by the card reader 20 , or to characterize the type of card or simulated card currently used by the card terminal device. The application type of the card terminal device and the card reader 20 is consistent, that is, the card or simulated card currently used by the card terminal device is consistent or the same as the card type supported by the card reader 20 .
在一个实施例中,控制单元240,具体用于:当根据所述第一距离确定所述卡端设备处于靠近状态时,将安全单元250的应用类型发送至卡端设备,以使所述卡端设备与读卡器20的应用类型一致;当确定卡端设备与读卡器20的应用类型一致时,若卡端设备与读卡器20之间的第一距离小于第一阈值,则通过超宽带测距模块220,与所述卡端设备进行刷卡通信,以通过访问安全单元250完成后续的刷卡操作;若不一致,则卡端设备自动将应用类型切换为与读卡器的应用类型一致的类型。In one embodiment, the control unit 240 is specifically configured to: when it is determined that the card-side device is in a close state according to the first distance, send the application type of the security unit 250 to the card-side device so that the card-side device The application types of the card-side device and the card reader 20 are consistent; when it is determined that the application types of the card-side device and the card reader 20 are consistent, if the first distance between the card-side device and the card reader 20 is less than the first threshold, then the The ultra-wideband ranging module 220 performs card swiping communication with the card terminal device to complete subsequent card swiping operations through the access security unit 250; if they are inconsistent, the card terminal device automatically switches the application type to be consistent with the application type of the card reader. type.
在一个实施例中,可以通过蓝牙模块210或超宽带测距模块220,将安全单元250的应用类型发送至卡端设备。In one embodiment, the application type of the security unit 250 can be sent to the card terminal device through the Bluetooth module 210 or the ultra-wideband ranging module 220 .
卡端设备在接收到读卡器20的安全单元250的应用类型之后,判断卡端设备的卡端安全单元当前使用或运行的应用类型与安全单元250的应用类型是否一致,若不一致,则自动将卡端设备的卡端安全单元当前使用或运行的应用类型切换为与安全单元250的应用类型一致的类型。 After receiving the application type of the security unit 250 of the card reader 20, the card-side device determines whether the application type currently used or run by the card-side security unit of the card-side device is consistent with the application type of the security unit 250. If not, it automatically Switch the application type currently used or run by the card-side security unit of the card-side device to a type consistent with the application type of the security unit 250 .
在应用类型一致之后,控制单元240判断该第一距离是否小于第一阈值,如是否由大于第一阈值变为小于或等于第一阈值,若是,则基于超宽带测距模块220与该卡端设备的卡端超宽带测距模块进行刷卡通信,以通过超宽带测距模块220访问安全单元250中的应用数据,以完成UWB刷卡操作。After the application types are consistent, the control unit 240 determines whether the first distance is less than the first threshold, such as whether it changes from greater than the first threshold to less than or equal to the first threshold. If so, based on the ultra-wideband ranging module 220 and the card terminal The card-side ultra-wideband ranging module of the device performs card swiping communication to access the application data in the security unit 250 through the ultra-wideband ranging module 220 to complete the UWB card swiping operation.
当卡端设备刷卡操作成功之后,控制单元240还用于生成闸机或门禁系统的开启指令,以开启闸机或门禁系统。After the card swiping operation of the card terminal device is successful, the control unit 240 is also used to generate an opening instruction of the gate or the access control system to open the gate or the access control system.
当基于超宽带测距模块220的刷卡操作成功时,为了避免用户仍将卡端设备,如手机,贴近读卡器20进行刷卡,则可以禁止读卡器20通过近场通信模块230与该卡端设备进行刷卡通信,如刷卡交易。When the card swiping operation based on the ultra-wideband ranging module 220 is successful, in order to prevent the user from still bringing the card device, such as a mobile phone, close to the card reader 20 to swipe the card, the card reader 20 can be prohibited from communicating with the card through the near field communication module 230 The terminal device performs card swipe communication, such as card swipe transactions.
由于卡端设备移动过快,或者由于通信不稳定等原因,导致基于超宽带测距模块220的刷卡操作失败时,控制单元240还可以判断第一距离是否小于第一阈值且大于第二阈值,若是,则控制超宽带测距模块220重新进行一次或多次UWB刷卡操作,以提高UWB通道(超宽带测距模块220对应的通道)刷卡成功的概率,实现无感刷卡。When the card swiping operation based on the ultra-wideband ranging module 220 fails due to reasons such as the card device moving too fast or unstable communication, the control unit 240 can also determine whether the first distance is less than the first threshold and greater than the second threshold, If so, the ultra-wideband ranging module 220 is controlled to re-perform one or more UWB card swiping operations to increase the probability of successful card swiping on the UWB channel (the channel corresponding to the ultra-wideband ranging module 220) and achieve senseless card swiping.
当卡端设备携带多张卡时,通过读卡器20将应用类型发送给卡端设备,使卡端设备自动调整应用类型与读卡器20的应用类型一致,实现了智能切卡,避免了用户手动切卡;通过增加安全单元250,提高了刷卡支付的安全性。When the card-side device carries multiple cards, the application type is sent to the card-side device through the card reader 20, so that the card-side device automatically adjusts the application type to be consistent with the application type of the card reader 20, realizing intelligent card cutting and avoiding The user manually cuts the card; by adding the security unit 250, the security of card payment is improved.
具体的,当基于超宽带测距模块220的刷卡操作失败时,控制单元240判断第一距离是否小于第二阈值;若是,则禁止读卡器20通过超宽带测距模块220与卡端设备进行刷卡通信,并通过近场通信模块230完成相应的刷卡操作,以免超宽带测距模块220与近场通信模块230同时访问卡端设备的卡端安全单元,产生重复扣款。Specifically, when the card swiping operation based on the ultra-wideband ranging module 220 fails, the control unit 240 determines whether the first distance is less than the second threshold; if so, the card reader 20 is prohibited from communicating with the card-side device through the ultra-wideband ranging module 220 Swipe the card to communicate, and complete the corresponding card swiping operation through the near field communication module 230 to prevent the ultra-wideband ranging module 220 and the near field communication module 230 from accessing the card side security unit of the card side device at the same time, resulting in repeated deductions.
卡端设备可以在检测到场强时,通过卡端近场通信模块与刷卡器的近场通信模块230进行通信,从而基于近场通信通道,进行刷卡通信,以完成相应的刷卡操作。When the card terminal device detects the field strength, it can communicate with the near field communication module 230 of the card swipe device through the card terminal near field communication module, thereby performing card swiping communication based on the near field communication channel to complete the corresponding card swiping operation.
在一个实施例中,超宽带测距模块220对应的刷卡通信和近场通信模块230对应的刷卡通信为互斥操作,以免重复扣款。In one embodiment, the card swipe communication corresponding to the ultra-wideband ranging module 220 and the card swipe communication corresponding to the near field communication module 230 are mutually exclusive operations to avoid repeated deductions.
示例性的,当卡端设备与读卡器20的第一距离位于0.2~3米范围时,可以通过超宽带测距模块220进行刷卡操作,若一次不成功,则可重复尝试刷卡;当基于超宽带测距模块220的刷卡操作均不成功时,此时卡端设备与读 卡器20的第一距离小于0.2(第二阈值)米,则禁止超宽带测距模块220与卡端设备进行刷卡通信,使能近场通信模块230。卡端设备检测卡端近场通信模块接收到的射频信号的场强,当该场强高于预设场强时,则通过卡端近场通信模块与读卡器20的近场通信模块230建立通道,基于所建立的通道进行刷卡通信,以结合安全单元250完成相应的刷卡操作。当任意一次刷卡操作成功时,开启相应的门禁或闸机,以使用户通行。For example, when the first distance between the card terminal device and the card reader 20 is in the range of 0.2 to 3 meters, the card swiping operation can be performed through the ultra-wideband ranging module 220. If it fails once, the card swiping operation can be repeated; when based on When the card swiping operations of the ultra-wideband ranging module 220 are unsuccessful, the card-side device and the reader If the first distance of the card device 20 is less than 0.2 (second threshold) meter, the ultra-wideband ranging module 220 is prohibited from performing card swiping communication with the card terminal device, and the near field communication module 230 is enabled. The card-side device detects the field strength of the radio frequency signal received by the card-side near field communication module. When the field strength is higher than the preset field strength, the card-side near field communication module and the near field communication module 230 of the card reader 20 A channel is established, and card swiping communication is performed based on the established channel, so as to complete the corresponding card swiping operation in conjunction with the security unit 250 . When any card swiping operation is successful, the corresponding access control or gate will be opened to allow users to pass.
在一个实施例中,可以保持开启近场通信模块230。In one embodiment, near field communication module 230 may remain on.
当基于UWB的无感刷卡操作失败时,读卡器20自动切换至NFC通道(近场通信模块230对应的通道),同时卡端设备可以通过激活或去激活卡端安全单元中刷卡应用(Applet)的状态的方式,以使用切换后的通道访问刷卡应用相关的数据,完成对应刷卡功能下的刷卡支付。When the UWB-based sensorless card swiping operation fails, the card reader 20 automatically switches to the NFC channel (the channel corresponding to the near field communication module 230). At the same time, the card-side device can activate or deactivate the card-swiping application (Applet) in the card-side security unit. ) state, use the switched channel to access data related to the card swiping application to complete card swiping payment under the corresponding card swiping function.
优先使用UWB通道进行无感刷卡,当无感刷卡失败时,结合第一距离,控制近场通信模块230进行非接触式刷卡,同时通过UWB通道和NFC通道刷卡操作的互斥设置,避免了重复扣款。Priority is given to using the UWB channel for sensorless card swiping. When the sensorless card swiping fails, the near field communication module 230 is controlled to perform contactless card swiping based on the first distance. At the same time, duplication is avoided through mutually exclusive settings of the UWB channel and NFC channel card swiping operations. Deduction.
可选的,控制单元240,还用于:当所述卡端设备刷卡操作成功之后,生成闸机或门禁系统的开启指令,以开启所述闸机或所述门禁系统;获取所述超宽带测距模块在所述闸机或所述门禁系统开启后,检测的与所述卡端设备的第二距离;当根据所述第二距离确定所述卡端设备处于离开状态时,禁止与所述卡端设备进行刷卡通信。Optionally, the control unit 240 is also configured to: when the card terminal device swipes the card successfully, generate an opening instruction of the gate or the access control system to open the gate or the access control system; obtain the ultra-wideband After the gate or the access control system is opened, the ranging module detects the second distance to the card-side device; when it is determined that the card-side device is in the away state based on the second distance, it is prohibited to communicate with the card-side device. The card terminal device performs card swiping communication.
为了与第一距离形成区分,将卡端设备刷卡操作成功之后,超宽带测距模块220检测的与卡端设备之间的距离称为第二距离。In order to distinguish it from the first distance, after the card-side device swipes the card successfully, the distance to the card-side device detected by the ultra-wideband ranging module 220 is called the second distance.
卡端设备处于离开状态可以表示卡端设备与读卡器20之间的距离越来越远。The card-side device being in the away state may indicate that the distance between the card-side device and the card reader 20 is getting farther and farther.
具体的,可以基于超宽带测距模块220在一段时间内检测的卡端设备与读卡器20之间的第二距离,判断卡端设备是否处于离开状态。如基于一段时间内的第二距离以及相邻第二距离的差值等,判断卡端设备是否处于离开状态。Specifically, whether the card-side device is in the away state can be determined based on the second distance between the card-side device and the card reader 20 detected by the ultra-wideband ranging module 220 within a period of time. For example, based on the second distance within a period of time and the difference between adjacent second distances, etc., it is determined whether the card-side device is in the away state.
进一步地,若卡端设备处于离开状态或与读卡器20之间的第二距离小于设定的阈值,如1m、2m或者其他值,则禁止读卡器20与卡端设备进行刷卡通信,以免重复扣款。 Further, if the card-side device is in an away state or the second distance from the card reader 20 is less than a set threshold, such as 1m, 2m or other values, the card reader 20 is prohibited from communicating with the card-side device by swiping the card, To avoid repeated deductions.
进一步地,可以根据第二距离及其对应的测量时间,判断卡端设备是否处于离开状态。Further, whether the card-side device is in the away state can be determined based on the second distance and its corresponding measurement time.
在一个实施例中,可以将检测的多个卡端设备与读卡器20的第二距离序列,输入离开状态判定模型中,基于模型判定卡端设备是否处于离开状态。其中,第二距离序列由第二距离及其对应的测量时间组成。In one embodiment, the detected second distance sequence between multiple card-side devices and the card reader 20 can be input into the leaving state determination model, and whether the card-side device is in the leaving state is determined based on the model. Wherein, the second distance sequence consists of the second distance and its corresponding measurement time.
示例性的,离开状态判定模型可以为神经网络模型。For example, the leaving state determination model may be a neural network model.
当卡端设备已刷卡成功时,在卡端设备处于离开状态时,通过上述禁止与该卡端设备刷卡通信的方式,有效避免了对已刷卡成功的卡端设备的重复扣款,提高了刷卡控制的准确度。When the card-side device has successfully swiped the card, when the card-side device is in the away state, through the above method of prohibiting card-swiping communication with the card-side device, repeated deductions for the card-side device that has been successfully swiped are effectively avoided, and the card swiping efficiency is improved. Control accuracy.
在一个实施例中,为了实现卡端设备的精准定位,超宽带测距模块220的数量为多个,各超宽带测距模块220之间的距离至少为预设距离。In one embodiment, in order to achieve accurate positioning of the card terminal device, the number of ultra-wideband ranging modules 220 is multiple, and the distance between each ultra-wideband ranging module 220 is at least a preset distance.
其中,预设距离可以为0.3m、0.5m或者其他值。Among them, the preset distance can be 0.3m, 0.5m or other values.
在判定卡端设备的运动状态时,控制单元240,具体用于:根据多个超宽带测距模块220检测的与所述卡端设备的距离,如第一距离和/或第二距离,确定所述卡端设备的空间位置;根据预设时间段内的所述空间位置,确定所述卡端设备的运动状态,其中,所述运动状态包括靠近状态和/或离开状态。When determining the motion state of the card-side device, the control unit 240 is specifically configured to: determine the distance to the card-side device detected by the multiple ultra-wideband ranging modules 220, such as the first distance and/or the second distance. The spatial position of the card-end device; according to the spatial position within a preset time period, the motion state of the card-end device is determined, wherein the motion state includes an approaching state and/or a leaving state.
具体的,控制单元240可以基于多个超宽带测距模块220检测的距离,进行卡端设备的精准定位,从而得到卡端设备的空间位置。进而结合卡端设备在预设时间段内的空间位置,确定该卡端设备所处的运动状态,如判断该卡端设备是否处于上述离开状态或上述靠近状态。Specifically, the control unit 240 can perform precise positioning of the card-side device based on the distances detected by multiple ultra-wideband ranging modules 220, thereby obtaining the spatial position of the card-side device. Then, combined with the spatial position of the card-side device within the preset time period, the motion state of the card-side device is determined, such as determining whether the card-side device is in the above-mentioned leaving state or the above-mentioned approaching state.
在一个实施例中,可以基于预设时间段内的空间位置,绘制卡端设备的运动轨迹,基于该运动轨迹确定卡端设备的运动状态。In one embodiment, the motion trajectory of the card-side device can be drawn based on the spatial position within a preset time period, and the motion state of the card-side device can be determined based on the motion trajectory.
示例性的,可以基于运动轨迹中各运动节点的移动方向、移动速度等参数,确定卡端设备的运动状态。For example, the motion state of the card-side device can be determined based on parameters such as the moving direction and moving speed of each motion node in the motion trajectory.
在一个实施例中,可以基于任意一种定位模型,如TDOA算法对应的定位模型、TOA算法对应的定位模型等,基于多个超宽带测距模块220检测的与卡端设备的距离,确定卡端设备的空间位置。In one embodiment, the card can be determined based on any positioning model, such as the positioning model corresponding to the TDOA algorithm, the positioning model corresponding to the TOA algorithm, etc., based on the distance to the card-side device detected by multiple ultra-wideband ranging modules 220 The spatial location of the terminal device.
通过所设置的多个超宽带测距模块220实现了卡端设备的精准定位,从而基于定位判定卡端设备的运动状态,以基于运动状态制定合理的刷卡控制策略,提高了刷卡控制的精度,在实现无感刷卡的同时,有效避免了重复扣 款。Through the multiple ultra-wideband ranging modules 220 provided, the precise positioning of the card terminal device is realized, thereby determining the motion state of the card terminal device based on the positioning, and formulating a reasonable card swiping control strategy based on the motion state, thereby improving the accuracy of card swiping control. While realizing senseless card swiping, it effectively avoids repeated deductions. payment.
在一些场景中,如地铁站,存在较多的卡端设备,为了减少数据处理量,蓝牙模块210具体为低功耗蓝牙模块,可以通过低功耗蓝牙模块预先对卡端设备进行过滤,即基于低功耗蓝牙模块测量的与卡端设备的第三距离对卡端设备进行过滤,从而减少被唤醒的卡端超宽带测距模块的数量,进而减少所处理的数据量,如第一距离,以及基于第一距离进行UWB刷卡功能对应的条件判定所需处理的数据量。In some scenarios, such as subway stations, there are many card-side devices. In order to reduce the amount of data processing, the Bluetooth module 210 is specifically a low-power Bluetooth module. The card-side devices can be filtered in advance through the low-power Bluetooth module, that is, Filter the card-side device based on the third distance measured by the low-power Bluetooth module from the card-side device, thereby reducing the number of awakened card-side ultra-wideband ranging modules, thereby reducing the amount of data processed, such as the first distance , and the amount of data required to process based on the first distance to determine the conditions corresponding to the UWB card swiping function.
可选的,低功耗蓝牙模块,还用于:确定与各个支持超宽带刷卡功能的卡端设备的第三距离。相应的,控制单元240,具体用于:基于所述第三距离,对卡端设备进行筛选,根据筛选后的各个卡端设备的第一距离,通过超宽带测距模块220或近场通信模块230,与筛选后的各个卡端设备进行刷卡通信,以完成刷卡操作。The optional low-power Bluetooth module is also used to determine the third distance to each card terminal device that supports ultra-wideband card swiping function. Correspondingly, the control unit 240 is specifically configured to: filter the card-side devices based on the third distance, and use the ultra-wideband ranging module 220 or the near-field communication module according to the first distance of each screened card-side device. 230. Carry out card swiping communication with each filtered card terminal device to complete the card swiping operation.
其中,第三距离为读卡器20的低功耗蓝牙模块检测的读卡器20与卡端设备之间的距离。The third distance is the distance between the card reader 20 and the card-side device detected by the low-power Bluetooth module of the card reader 20 .
具体的,还可以基于第三距离对各个卡端设备进行筛选,如去除第三距离大于第三阈值的各个卡端设备。其中,第三阈值大于第一阈值,可以为3m、5m、6m、7m或者其他值。Specifically, each card-side device can also be filtered based on the third distance, such as removing each card-side device whose third distance is greater than the third threshold. The third threshold is greater than the first threshold and can be 3m, 5m, 6m, 7m or other values.
示例性的,低功耗蓝牙模块可以基于RSSI(Received Signal Strength Indicator,接收信号的强度指示),进行上述第三距离的测量。For example, the low-power Bluetooth module can measure the above-mentioned third distance based on RSSI (Received Signal Strength Indicator, received signal strength indicator).
具体的,低功耗蓝牙模块可以仅与第三距离小于或等于第三阈值的各卡端设备建立连接,以进行协商数据的交互,以及通过卡端低功耗蓝牙模块唤醒第三距离小于或等于第三阈值的各卡端设备的卡端超宽带测距模块,以进行后续第一距离的测量。从而仅得到读卡器20与第三距离小于或等于第三阈值的各卡端设备之间的第一距离,减少所需处理的第一距离的数量,从而提高刷卡处理的效率。Specifically, the low-power Bluetooth module can only establish a connection with each card-side device whose third distance is less than or equal to the third threshold to interact with negotiated data, and wake up the card-side Bluetooth low-energy module whose third distance is less than or equal to the third threshold. The card-side ultra-wideband ranging module of each card-side device equals the third threshold to perform subsequent first distance measurements. Therefore, only the first distance between the card reader 20 and each card terminal device whose third distance is less than or equal to the third threshold is obtained, thereby reducing the number of first distances that need to be processed, thereby improving the efficiency of card swiping processing.
在一个实施例中,低功耗蓝牙模块可以仅唤醒与读卡器20的第三距离位于3m~5m范围内的卡端设备的卡端超宽带测距模块。In one embodiment, the low-power Bluetooth module can only wake up the card-side ultra-wideband ranging module of the card-side device whose third distance from the card reader 20 is within the range of 3m to 5m.
在一个实施例中,控制单元240或低功耗蓝牙模块可以基于第三距离,对卡端设备进行筛选,如删除第三距离大于第三阈值的卡端设备,从而控制单元240根据筛选后的卡端设备与读卡器20之间的第一距离,通过超宽带测 距模块220或近场通信模块230,与筛选后的卡端设备进行刷卡通信,以完成刷卡操作。In one embodiment, the control unit 240 or the low-power Bluetooth module can filter the card-side devices based on the third distance, such as deleting the card-side devices whose third distance is greater than the third threshold, so that the control unit 240 can filter the card-side devices according to the filtered The first distance between the card terminal device and the card reader 20 is measured by ultra-wideband The distance module 220 or the near field communication module 230 performs card swiping communication with the screened card terminal device to complete the card swiping operation.
可选的,蓝牙模块210为低功耗蓝牙模块,还用于:确定与各个支持超宽带刷卡功能的卡端设备的第三距离。控制单元240,具体用于:按照所述第三距离由小到大的顺序,对各个所述卡端设备进行排序;根据排序结果,依次获取各个卡端设备的第一距离,并当根据所述第一距离确定所述卡端设备处于靠近状态,且所述第一距离小于或等于第一阈值时,通过超宽带测距模块220,与所述卡端设备进行刷卡通信。Optionally, the Bluetooth module 210 is a low-power Bluetooth module, and is also used to determine the third distance to each card terminal device that supports the ultra-wideband card swiping function. The control unit 240 is specifically configured to: sort each of the card-side devices according to the order of the third distance from small to large; according to the sorting result, obtain the first distance of each card-side device in sequence, and calculate the first distance according to the sorting result. When the first distance determines that the card terminal device is in a close state, and the first distance is less than or equal to the first threshold, card swiping communication is performed with the card terminal device through the ultra-wideband ranging module 220 .
具体的,控制单元240可以基于排序结果,依次判定各个卡端设备是否满足UWB刷卡功能对应的条件,即获取卡端设备与读卡器20之间的第一距离,基于第一距离,判定卡端设备是否处于靠近状态,若是,则在第一距离小于或等于第一阈值时,通过超宽带测距模块220,与卡端设备进行刷卡通信,以通过UWB通道进行UWB刷卡功能对应的数据交互。进一步地,可以基于第三距离对卡端设备进行筛选以及排序,从而得到第三距离小于或等于第三阈值的各个卡端设备对应的排序结果。Specifically, the control unit 240 can determine whether each card terminal device meets the conditions corresponding to the UWB card swiping function based on the sorting result, that is, obtain the first distance between the card terminal device and the card reader 20, and determine the card terminal device based on the first distance. Whether the end device is in a close state, and if so, when the first distance is less than or equal to the first threshold, card swipe communication is performed with the card end device through the ultra-wideband ranging module 220 to perform data interaction corresponding to the UWB card swipe function through the UWB channel. . Further, the card-side devices can be filtered and sorted based on the third distance, thereby obtaining sorting results corresponding to each card-side device whose third distance is less than or equal to the third threshold.
通过基于第三距离进行卡端设备的排序,使得读卡器20优先与距离较近的卡端设备进行UWB测距和刷卡操作对应的交互,避免了卡端设备较多的情况下,出现扣错款情况的发生,确保了UWB刷卡支付的有序性。By sorting the card-side devices based on the third distance, the card reader 20 prioritizes interactions corresponding to UWB ranging and card swiping operations with card-side devices that are closer to each other, thus avoiding the possibility of debiting when there are many card-side devices. The occurrence of wrong payment ensures the orderliness of UWB card payment.
图4为本申请实施例提供的卡端设备实施例一的结构示意图,如图4所示,该卡端设备40包括卡端蓝牙模块410和卡端超宽带测距模块420。Figure 4 is a schematic structural diagram of a card-side device according to Embodiment 1 of the present application. As shown in Figure 4, the card-side device 40 includes a card-side Bluetooth module 410 and a card-side ultra-wideband ranging module 420.
其中,卡端蓝牙模块410用于广播卡端设备40支持的刷卡功能,以及用于在与读卡器的蓝牙模块连接后,使能卡端超宽带测距模块420,卡端设备支持的刷卡功能包括超宽带刷卡功能;卡端超宽带测距模块420,用于与读卡器20的超宽带测距模块220进行通信,以实现卡端设备40与读卡器20之间距离的测量以及超宽带刷卡功能。Among them, the card-side Bluetooth module 410 is used to broadcast the card swiping function supported by the card-side device 40, and to enable the card-side ultra-wideband ranging module 420 after connecting with the Bluetooth module of the card reader. The functions include an ultra-wideband card swiping function; a card-side ultra-wideband ranging module 420 for communicating with the ultra-wideband ranging module 220 of the card reader 20 to measure the distance between the card-side device 40 and the card reader 20; Ultra-wideband card swiping function.
可选的,继续参见图4,卡端设备40还包括卡端近场通信模块430,卡端设备40支持的刷卡功能还包括近场通信刷卡功能,卡端近场通信模块430用于与读卡器20的近场通信模块230进行通信,以实现近场通信刷卡功能。Optionally, continuing to refer to FIG. 4 , the card terminal device 40 also includes a card terminal near field communication module 430 . The card swiping function supported by the card terminal device 40 also includes a near field communication card swiping function. The card terminal near field communication module 430 is used to communicate with the reader. The near field communication module 230 of the card device 20 communicates to realize the near field communication card swiping function.
卡端蓝牙模块410可以为低功耗蓝牙模块,记为卡端低功耗蓝牙模块。The card-side Bluetooth module 410 may be a low-power Bluetooth module, denoted as a card-side Bluetooth low energy module.
可选的,卡端设备40还包括应用类型切换模块用于:接收读卡器的应用 类型;根据读卡器的应用类型,切换当前使用的应用类型,以与所述读卡器的应用类型一致。Optionally, the card terminal device 40 also includes an application type switching module for: receiving the application of the card reader. Type; according to the application type of the card reader, switch the currently used application type to be consistent with the application type of the card reader.
继续参见图4,该卡端设备40还包括卡端安全单元440,以通过访问卡端安全单元440完成刷卡操作。Continuing to refer to FIG. 4 , the card terminal device 40 further includes a card terminal security unit 440 to complete the card swiping operation by accessing the card terminal security unit 440 .
其中,卡端安全单元440可以设置于卡端设备的SIM卡、内存卡中,或者可以为eSE。Among them, the card-side security unit 440 can be set in the SIM card or memory card of the card-side device, or can be an eSE.
卡端安全单元440还用于:当刷卡功能被切换时,激活或去激活所述卡端安全单元440中的刷卡应用(applet),以恢复所述刷卡应用的状态,以为切换后的刷卡功能提供所需数据,其中,所述刷卡功能包括近场通信刷卡功能和超宽带刷卡功能,在近场通信刷卡功能下,基于所述卡端近场通信模块进行刷卡操作,在超宽带刷卡功能下,基于所述卡端超宽带测距模块进行刷卡操作。The card-side security unit 440 is also used to activate or deactivate the card-swiping application (applet) in the card-side security unit 440 when the card-swiping function is switched, so as to restore the status of the card-swiping application so as to maintain the switched card-swiping function. Provide the required data, wherein the card swiping function includes a near field communication card swiping function and an ultra-wideband card swiping function. Under the near field communication card swiping function, the card swiping operation is performed based on the card terminal near field communication module. Under the ultra-wideband card swiping function , perform the card swiping operation based on the card-side ultra-wideband ranging module.
刷卡应用为卡端安全单元440中设置的一种应用,用于进行刷卡操作,如提供支付所需数据、进行数据计算等。The card swiping application is an application set in the card-side security unit 440 and is used to perform card swiping operations, such as providing data required for payment, performing data calculations, etc.
刷卡功能被切换时,通常是将UWB刷卡功能切换为NFC刷卡功能,还可以是将NFC刷卡功能切换为UWB刷卡功能。When the card swiping function is switched, the UWB card swiping function is usually switched to the NFC card swiping function, or the NFC card swiping function can be switched to the UWB card swiping function.
刷卡功能被切换具体可以表现为通道被切换,即由UWB通道切换为NFC通道。The switching of the card swiping function can be manifested in that the channel is switched, that is, the UWB channel is switched to the NFC channel.
具体的,当卡端设备40与读卡器20之间的第一距离小于第二阈值,且卡端设备40的卡端近场通信模块430检测到场强时,则刷卡功能由UWB刷卡功能切换为NFC刷卡功能,在刷卡功能切换的同时,当UWB刷卡功能关闭或UWB通道关闭时,去激活卡端安全单元440中的刷卡应用,以恢复该应用的状态;当NFC刷卡功能开启或NFC通道建立时,激活卡端安全单元440中的刷卡应用,以使卡端近场通信模块430访问卡端安全单元440中的刷卡应用,进行相应的刷卡通信,以实现NFC刷卡功能。图5为本申请实施例提供的刷卡系统实施例一的结构示意图,该刷卡系统可以为门禁系统、刷卡支付系统等系统,如图5所示,该刷卡系统包括读卡器20和多个卡端设备40。读卡器20包括蓝牙模块210、超宽带测距模块220、近场通信模块230、控制单元240和安全单元250;卡端设备40包括卡端蓝牙模块410、卡端超宽带测距模块420、卡端近场通信模块430和卡端安全单元440。 Specifically, when the first distance between the card terminal device 40 and the card reader 20 is less than the second threshold, and the card terminal near field communication module 430 of the card terminal device 40 detects the field strength, then the card swiping function is changed to the UWB card swiping function. Switch to the NFC card swiping function. While the card swiping function is switching, when the UWB card swiping function is turned off or the UWB channel is closed, the card swiping application in the card-side security unit 440 is deactivated to restore the state of the application; when the NFC card swiping function is turned on or the NFC When the channel is established, the card swiping application in the card-side security unit 440 is activated, so that the card-side near field communication module 430 accesses the card swiping application in the card-side security unit 440 and performs corresponding card swiping communication to realize the NFC card swiping function. Figure 5 is a schematic structural diagram of a card swiping system according to Embodiment 1 of the present application. The card swiping system can be an access control system, a card swiping payment system, etc. As shown in Figure 5, the card swiping system includes a card reader 20 and multiple cards. Terminal device 40. The card reader 20 includes a Bluetooth module 210, an ultra-wideband ranging module 220, a near-field communication module 230, a control unit 240 and a security unit 250; the card-end device 40 includes a card-end Bluetooth module 410, a card-end ultra-wideband ranging module 420, The card-side near field communication module 430 and the card-side security unit 440.
图5中以蓝牙模块210和卡端蓝牙模块410均为低功耗蓝牙模块BLE为例。In FIG. 5 , the Bluetooth module 210 and the card-side Bluetooth module 410 are both low-power Bluetooth modules BLE as an example.
读卡器20的控制单元240分别与蓝牙模块210、超宽带测距模块220、近场通信模块230连接。The control unit 240 of the card reader 20 is connected to the Bluetooth module 210, the ultra-wideband ranging module 220, and the near field communication module 230 respectively.
图5中所示连接关系仅作为示例,实际连接关系可以基于刷卡方法中各模块之间的数据交互过程进行。The connection relationship shown in Figure 5 is only an example, and the actual connection relationship can be based on the data interaction process between the modules in the card swiping method.
在一个实施例中,读卡器20还包括MCU(电机控制单元,Motor Control Unit)以通过控制电机,开启闸机或门禁系统。In one embodiment, the card reader 20 also includes an MCU (Motor Control Unit) to open the gate or access control system by controlling the motor.
在一个实施例中,控制单元240可以集成于蓝牙模块210、超宽带测距模块220和近场通信模块230中的至少一项中。In one embodiment, the control unit 240 may be integrated in at least one of the Bluetooth module 210, the ultra-wideband ranging module 220, and the near field communication module 230.
示例性的,控制单元240可以部分集成于蓝牙模块210,以进行超宽带测距模块220的唤醒以及卡端设备40的筛选,控制单元的另一部分可以集成于超宽带测距模块220中,以进行卡端设备运动状态的判定。图5中以控制单元240为单独的模块为例。For example, the control unit 240 can be partially integrated into the Bluetooth module 210 to wake up the ultra-wideband ranging module 220 and filter the card-side devices 40 , and another part of the control unit can be integrated into the ultra-wideband ranging module 220 to perform Determine the motion status of the card-side device. In FIG. 5 , the control unit 240 is taken as a separate module as an example.
卡端设备40的卡端蓝牙模块410分别与卡端超宽带测距模块420、卡端近场通信模块430和卡端安全单元440连接,卡端安全单元440分别与卡端蓝牙模块410、卡端超宽带测距模块420和卡端近场通信模块430连接。The card-side Bluetooth module 410 of the card-side device 40 is respectively connected to the card-side ultra-wideband ranging module 420, the card-side near field communication module 430, and the card-side security unit 440. The card-side security unit 440 is respectively connected to the card-side Bluetooth module 410, the card-side Bluetooth module 410, and the card-side near field communication module 430. The end ultra-wideband ranging module 420 is connected to the card-end near field communication module 430.
卡端设备40还可以包括电子钱包应用程序。可以通过可信服务管理模块,包括服务提供商的可信服务管理(SP-TSM,Service Provider Trusted Service Manager)、安全模块发行商的可信服务管理(SEI-TSM Secure,Element Issuer Trusted Service Manager)和电子钱包伺服器(Wallet Server),进行刷卡支付过程中的可信服务管理。Card side device 40 may also include an electronic wallet application. You can use the trusted service management module, including the service provider's trusted service management (SP-TSM, Service Provider Trusted Service Manager) and the security module publisher's trusted service management (SEI-TSM Secure, Element Issuer Trusted Service Manager). and electronic wallet server (Wallet Server) to manage trusted services during the card payment process.
图6为本申请实施例提供的刷卡方法实施例一的流程示意图,该刷卡方法应用读卡器,该读卡器可以为上述实施例提供的读卡器20,或者任意具备蓝牙模块、超宽带测距模块和近场通信模块的读卡器,如可以由读卡器20上的控制单元240执行。Figure 6 is a schematic flow chart of a card swiping method provided by the embodiment of the present application. The card swiping method uses a card reader. The card reader can be the card reader 20 provided in the above embodiment, or any card reader equipped with a Bluetooth module or ultra-wideband module. The ranging module and the near field communication module can be executed by the control unit 240 on the card reader 20 .
如图6所示,该刷卡方法包括以下步骤:As shown in Figure 6, the card swiping method includes the following steps:
S601,当所述蓝牙模块扫描到支持超宽带刷卡功能的卡端设备时,使能所述超宽带测距模块。S601: When the Bluetooth module scans a card terminal device that supports the ultra-wideband card swiping function, enable the ultra-wideband ranging module.
S602,基于所述超宽带测距模块,检测与所述卡端设备的第一距离。 S602. Based on the ultra-wideband ranging module, detect the first distance to the card terminal device.
S603,当根据所述第一距离确定所述卡端设备处于靠近状态,且所述第一距离小于或等于第一阈值时,通过所述超宽带测距模块,与所述卡端设备进行刷卡通信。S603: When it is determined that the card-side device is in a close state according to the first distance, and the first distance is less than or equal to the first threshold, use the ultra-wideband ranging module to swipe the card with the card-side device. communication.
可选的,所述蓝牙模块为低功耗蓝牙(BLE,Bluetooth Low Energy)模块,在基于所述超宽带测距模块,检测与所述卡端设备的第一距离之前,所述方法还包括:基于所述低功耗蓝牙模块,确定与各个卡端设备的第三距离;按照所述第三距离由小到大的顺序,对各个所述卡端设备进行排序;当根据所述第一距离确定所述卡端设备处于靠近状态,且所述第一距离小于或等于第一阈值时,通过所述超宽带测距模块,与所述卡端设备进行刷卡通信,包括:根据排序结果,依次获取各个卡端设备的第一距离,并当根据所述第一距离确定所述卡端设备处于靠近状态,且所述第一距离小于或等于第一阈值时,通过所述超宽带测距模块,与所述卡端设备进行刷卡通信。Optionally, the Bluetooth module is a Bluetooth Low Energy (BLE) module. Before detecting the first distance to the card terminal device based on the ultra-wideband ranging module, the method further includes : Based on the low-power Bluetooth module, determine the third distance to each card-side device; sort each of the card-side devices according to the order of the third distance from small to large; when according to the first When the distance determines that the card-side device is in a close state and the first distance is less than or equal to the first threshold, performing card swiping communication with the card-side device through the ultra-wideband ranging module includes: according to the sorting result, Obtain the first distance of each card-side device in turn, and when it is determined that the card-side device is in a close state according to the first distance and the first distance is less than or equal to a first threshold, use the ultra-wideband ranging Module to communicate with the card-side device by swiping the card.
可选的,读卡器还包括近场通信模块,卡端设备还支持近场通信刷卡功能,所述方法还包括:当基于超宽带测距模块的刷卡操作失败,且所述第一距离小于第二阈值时,禁止所述超宽带测距模块与所述卡端设备进行刷卡通信,并通过所述近场通信模块,与所述卡端设备进行刷卡通信;其中,所述第二阈值小于所述第一阈值。Optionally, the card reader also includes a near field communication module, and the card terminal device also supports a near field communication card swiping function. The method further includes: when the card swiping operation based on the ultra-wideband ranging module fails and the first distance is less than At the second threshold, the ultra-wideband ranging module is prohibited from performing card swiping communication with the card terminal device, and uses the near field communication module to perform card swiping communication with the card terminal device; wherein the second threshold is less than the first threshold.
可选的,所述方法还包括:当所述卡端设备刷卡操作成功之后,生成闸机或门禁系统的开启指令,以开启所述闸机或所述门禁系统;获取所述超宽带测距模块在所述闸机或所述门禁系统开启后,检测的与所述卡端设备的第二距离;当根据所述第二距离确定所述卡端设备处于离开状态时,禁止与所述卡端设备进行刷卡通信。Optionally, the method further includes: when the card terminal device swipes the card successfully, generating an opening instruction for the gate or the access control system to open the gate or the access control system; and obtaining the ultra-wideband ranging After the gate or the access control system is opened, the module detects the second distance from the card-side device; when it is determined that the card-side device is in the away state based on the second distance, the module is prohibited from communicating with the card-side device. The terminal device performs card swiping communication.
可选的,所述超宽带测距模块的数量为多个,各所述超宽带测距模块之间的距离至少为预设距离;所述方法还包括:根据多个超宽带测距模块检测的与所述卡端设备的距离,确定所述卡端设备的空间位置;根据预设时间段内的所述空间位置,确定所述卡端设备的运动状态,其中,所述运动状态包括靠近状态和/或离开状态。Optionally, the number of the ultra-wideband ranging modules is multiple, and the distance between each of the ultra-wideband ranging modules is at least a preset distance; the method further includes: detecting based on the multiple ultra-wideband ranging modules The distance from the card-end device to determine the spatial position of the card-end device; according to the spatial position within a preset time period, determine the motion state of the card-end device, wherein the motion state includes close proximity status and/or away status.
可选的,所述方法还包括:在与所述卡端设备进行刷卡通信之前,通过所述蓝牙模块或超宽带测距模块,将所述读卡器的应用类型发送至所述卡端设备,以切换所述卡端设备的应用类型;其中,应用类型用于表征所支持或 使用的卡或模拟卡的类型。Optionally, the method further includes: before performing card swiping communication with the card terminal device, sending the application type of the card reader to the card terminal device through the Bluetooth module or ultra-wideband ranging module. , to switch the application type of the card-side device; where the application type is used to characterize the supported or The type of card or emulated card used.
可选的,当所述蓝牙模块扫描到支持超宽带刷卡功能的卡端设备时,使能所述超宽带测距模块,包括:当所述蓝牙模块扫描到支持超宽带刷卡功能的卡端设备时,向所述卡端设备发起连接;连接成功后,与所述卡端设备进行参数交互,以获取所述超宽带测距模块的协商参数;使能所述超宽带测距模块,以基于所述协商参数进行距离的测量。Optionally, when the Bluetooth module scans a card-side device that supports the ultra-wideband card swiping function, enabling the ultra-wideband ranging module includes: when the Bluetooth module scans a card-side device that supports the ultra-wideband card swiping function. time, initiate a connection to the card-side device; after the connection is successful, perform parameter interaction with the card-side device to obtain the negotiation parameters of the ultra-wideband ranging module; enable the ultra-wideband ranging module to The negotiation parameters measure distance.
相关说明可以对应参见本申请读卡器对应的实施例提供的步骤所对应的相关描述和效果进行理解,此处不做过多赘述。Relevant descriptions can be understood by referring to the relevant descriptions and effects corresponding to the steps provided by the corresponding embodiments of the card reader of this application, and will not be described in detail here.
图7为本申请实施例提供的刷卡方法实施例二的流程示意图,该方法应用卡端设备,如卡端设备40,或者任意设置有卡端宽带测距模块的卡端设备,卡端设备还可以包括卡端近场通信模块,该方法具体可以由卡端设备的控制单元执行。Figure 7 is a schematic flow chart of Embodiment 2 of the card swiping method provided by the embodiment of the present application. This method uses a card-side device, such as the card-side device 40, or any card-side device equipped with a card-side broadband ranging module. The card-side device also A card-side near field communication module may be included, and the method may be specifically executed by a control unit of the card-side device.
如图7所示,本实施例提供的刷卡方法包括以下步骤:As shown in Figure 7, the card swiping method provided by this embodiment includes the following steps:
S701,基于所述卡端蓝牙模块,广播卡端设备支持的刷卡功能,其中,卡端设备支持的刷卡功能包括超宽带刷卡功能。S701: Based on the card-side Bluetooth module, broadcast the card-swiping function supported by the card-side device, where the card-swiping function supported by the card-side device includes an ultra-wideband card swiping function.
S702,在所述卡端蓝牙模块与读卡器的蓝牙模块连接后,使能所述卡端超宽带测距模块。S702: After the card-side Bluetooth module is connected to the Bluetooth module of the card reader, enable the card-side ultra-wideband ranging module.
S703,通过所述卡端超宽带测距模块与所述读卡器的超宽带测距模块进行通信,以实现卡端设备与所述读卡器之间距离的测量以及超宽带刷卡功能。S703: Communicate between the card-end ultra-wideband ranging module and the ultra-wideband ranging module of the card reader to implement the measurement of the distance between the card-end device and the card reader and the ultra-wideband card swiping function.
可选的,卡端设备支持的刷卡功能还包括近场通信刷卡功能,所述卡端设备还包括卡端近场通信模块,所述方法还包括:当检测到场强时,通过所述卡端近场通信模块与读卡器的近场通信模块进行通信,以实现近所述场通信刷卡功能。Optionally, the card swiping function supported by the card terminal device also includes a near field communication card swiping function. The card terminal device further includes a card terminal near field communication module. The method further includes: when the field strength is detected, The terminal near field communication module communicates with the near field communication module of the card reader to realize the near field communication card swiping function.
可选的,所述方法还包括:获取读卡器的应用类型;根据读卡器的应用类型,切换当前使用的应用类型,以与读卡器的应用类型一致。Optionally, the method further includes: obtaining the application type of the card reader; and switching the currently used application type according to the application type of the card reader to be consistent with the application type of the card reader.
可选的,卡端设备还包括卡端安全单元,以通过访问所述卡端安全单元完成刷卡操作;所述方法还包括:当刷卡功能被切换时,激活或去激活所述卡端安全单元中的刷卡应用,以恢复所述刷卡应用的状态,以为切换后的刷卡功能提供所需数据,其中,所述刷卡功能包括近场通信刷卡功能和超宽带刷卡功能。 Optionally, the card terminal device further includes a card terminal security unit to complete the card swiping operation by accessing the card terminal security unit; the method further includes: activating or deactivating the card terminal security unit when the card swiping function is switched. The card swiping application in the card swiping application is used to restore the state of the card swiping application to provide required data for the switched card swiping function, where the card swiping function includes a near field communication card swiping function and an ultra-wideband card swiping function.
本实施相关说明可以参见本申请上述实施例对应的相关描述和效果,此处不做过多赘述。For relevant descriptions of this implementation, please refer to the relevant descriptions and effects corresponding to the above-mentioned embodiments of this application, and will not be described in detail here.
图8为本申请实施例提供的控制单元实施例一的结构示意图,如图8所示该控制单元,包括:存储器810和至少一个处理器820。FIG. 8 is a schematic structural diagram of Embodiment 1 of the control unit provided by the embodiment of the present application. As shown in FIG. 8 , the control unit includes: a memory 810 and at least one processor 820 .
其中,存储器810存储计算机执行指令;至少一个处理器820执行存储器810存储的计算机执行指令,使得至少一个处理器820执行如本申请任意实施例提供的刷卡方法。The memory 810 stores computer execution instructions; at least one processor 820 executes the computer execution instructions stored in the memory 810, so that the at least one processor 820 executes the card swiping method provided by any embodiment of the present application.
其中,存储器810和处理器820通过总线830连接。Among them, the memory 810 and the processor 820 are connected through a bus 830.
相关说明可以对应参见本申请刷卡方法对应的实施例提供的步骤所对应的相关描述和效果进行理解,此处不做过多赘述。Relevant descriptions can be understood by referring to the relevant descriptions and effects corresponding to the steps provided in the corresponding embodiments of the card swiping method of this application, and will not be described in detail here.
本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如本申请任意实施例提供的刷卡方法。Embodiments of the present application also provide a computer-readable storage medium. Computer-executable instructions are stored in the computer-readable storage medium. When the processor executes the computer-executable instructions, the card swiping method provided by any embodiment of the present application is implemented. .
本申请实施例还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如本申请任意实施例提供的刷卡方法。An embodiment of the present application also provides a computer program product, including a computer program. When the computer program is executed by a processor, the card swiping method as provided in any embodiment of the present application is implemented.
可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。在本申请的实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请的实施例的实施过程构成任何限定。It can be understood that the various numerical numbers involved in the embodiments of the present application are only for convenience of description and are not used to limit the scope of the embodiments of the present application. In the embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its functions and internal logic, and should not constitute the implementation process of the embodiments of the present application. Any limitations.
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。 Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application, but not to limit it; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features can be equivalently replaced; and these modifications or substitutions do not deviate from the essence of the corresponding technical solutions from the technical solutions of the embodiments of the present application. scope.

Claims (15)

  1. 一种读卡器,其特征在于,包括:蓝牙模块、超宽带测距模块和控制单元;A card reader, characterized by including: a Bluetooth module, an ultra-wideband ranging module and a control unit;
    其中,所述蓝牙模块用于当扫描到支持超宽带刷卡功能的卡端设备时,使能所述超宽带测距模块;Wherein, the Bluetooth module is used to enable the ultra-wideband ranging module when a card terminal device that supports ultra-wideband card swiping function is scanned;
    所述超宽带测距模块用于检测与所述卡端设备的第一距离;The ultra-wideband ranging module is used to detect the first distance from the card terminal device;
    所述控制单元用于当根据所述第一距离确定所述卡端设备处于靠近状态,且所述第一距离小于或等于第一阈值时,通过所述超宽带测距模块,与所述卡端设备进行刷卡通信。The control unit is configured to communicate with the card through the ultra-wideband ranging module when it is determined that the card-side device is in a close state according to the first distance and the first distance is less than or equal to a first threshold. The terminal device performs card swiping communication.
  2. 根据权利要求1所述的读卡器,其特征在于,所述蓝牙模块为低功耗蓝牙模块,还用于:The card reader according to claim 1, wherein the Bluetooth module is a low-power Bluetooth module and is also used for:
    确定与各个支持超宽带刷卡功能的卡端设备的第三距离;Determine the third distance to each card terminal device that supports ultra-wideband card swiping function;
    所述控制单元,具体用于:The control unit is specifically used for:
    按照所述第三距离由小到大的顺序,对各个所述卡端设备进行排序;Sort each of the card-side devices in ascending order of the third distance;
    根据排序结果,依次获取各个卡端设备的第一距离,并当根据所述第一距离确定所述卡端设备处于靠近状态,且所述第一距离小于或等于第一阈值时,通过所述超宽带测距模块,与所述卡端设备进行刷卡通信。According to the sorting result, the first distance of each card-side device is obtained in turn, and when it is determined that the card-side device is in a close state according to the first distance, and the first distance is less than or equal to the first threshold, through the The ultra-wideband ranging module performs card swiping communication with the card terminal device.
  3. 根据权利要求1或2所述的读卡器,其特征在于,还包括近场通信模块,所述卡端设备还支持近场通信刷卡功能;The card reader according to claim 1 or 2, further comprising a near field communication module, and the card terminal device also supports a near field communication card swiping function;
    所述控制单元,还用于:The control unit is also used for:
    当基于超宽带测距模块的刷卡操作失败,且所述第一距离小于第二阈值时,禁止所述超宽带测距模块与所述卡端设备进行刷卡通信,并通过所述近场通信模块,与所述卡端设备进行刷卡通信;When the card swiping operation based on the ultra-wideband ranging module fails and the first distance is less than the second threshold, the ultra-wideband ranging module is prohibited from performing card swiping communication with the card terminal device, and the card-swiping communication is prohibited through the near field communication module. , perform card swiping communication with the card terminal device;
    其中,所述第二阈值小于所述第一阈值。Wherein, the second threshold is smaller than the first threshold.
  4. 根据权利要求1-3任一项所述的读卡器,其特征在于,所述控制单元,还用于:The card reader according to any one of claims 1-3, characterized in that the control unit is also used to:
    当所述卡端设备刷卡操作成功之后,生成闸机或门禁系统的开启指令,以开启所述闸机或所述门禁系统;When the card terminal device swipes the card successfully, an opening instruction for the gate or the access control system is generated to open the gate or the access control system;
    获取所述超宽带测距模块在所述闸机或所述门禁系统开启后,检测的与所述卡端设备的第二距离; Obtain the second distance detected by the ultra-wideband ranging module from the card terminal device after the gate or the access control system is turned on;
    当根据所述第二距离确定所述卡端设备处于离开状态时,禁止与所述卡端设备进行刷卡通信。When it is determined that the card terminal device is in the away state according to the second distance, card swiping communication with the card terminal device is prohibited.
  5. 根据权利要求1-4任一项所述的读卡器,其特征在于,所述超宽带测距模块的数量为多个,各所述超宽带测距模块之间的距离至少为预设距离;所述控制单元,具体用于:The card reader according to any one of claims 1 to 4, characterized in that the number of the ultra-wideband ranging modules is multiple, and the distance between each of the ultra-wideband ranging modules is at least a preset distance. ; The control unit is specifically used for:
    根据多个超宽带测距模块检测的与所述卡端设备的距离,确定所述卡端设备的空间位置;Determine the spatial position of the card-side device according to the distance to the card-side device detected by multiple ultra-wideband ranging modules;
    根据预设时间段内的所述空间位置,确定所述卡端设备的运动状态,其中,所述运动状态包括靠近状态和/或离开状态。According to the spatial position within a preset time period, the movement state of the card-end device is determined, wherein the movement state includes an approaching state and/or a leaving state.
  6. 根据权利要求1-4任一项所述的读卡器,其特征在于,所述控制单元,还用于:The card reader according to any one of claims 1 to 4, characterized in that the control unit is also used to:
    在与所述卡端设备进行刷卡通信之前,通过所述蓝牙模块或超宽带测距模块,将所述读卡器的应用类型发送至所述卡端设备;Before performing card swiping communication with the card-side device, send the application type of the card reader to the card-side device through the Bluetooth module or ultra-wideband ranging module;
    其中,应用类型用于表征所支持或使用的卡或模拟卡的类型。Among them, the application type is used to characterize the type of card or simulated card supported or used.
  7. 根据权利要求1-6任一项所述的读卡器,其特征在于,所述蓝牙模块,具体用于:The card reader according to any one of claims 1-6, characterized in that the Bluetooth module is specifically used for:
    当扫描到支持超宽带刷卡功能的卡端设备时,向所述卡端设备发起连接;When a card-side device supporting the ultra-wideband card swiping function is scanned, initiate a connection to the card-side device;
    连接成功后,与所述卡端设备进行参数交互,以获取所述超宽带测距模块的协商参数;After the connection is successful, perform parameter interaction with the card-side device to obtain the negotiation parameters of the ultra-wideband ranging module;
    使能所述超宽带测距模块,以基于所述协商参数进行距离的测量。The ultra-wideband ranging module is enabled to measure distance based on the negotiation parameters.
  8. 一种卡端设备,其特征在于,包括:卡端蓝牙模块和卡端超宽带测距模块;A card-side device, characterized by including: a card-side Bluetooth module and a card-side ultra-wideband ranging module;
    所述卡端蓝牙模块用于广播卡端设备支持的刷卡功能,以及用于在与读卡器的蓝牙模块连接后,使能所述卡端超宽带测距模块,其中,卡端设备支持的刷卡功能包括超宽带刷卡功能;The card-side Bluetooth module is used to broadcast the card swiping function supported by the card-side device, and to enable the card-side ultra-wideband ranging module after being connected to the Bluetooth module of the card reader, wherein the card-side device supports Card swiping functions include ultra-wideband swiping functions;
    所述卡端超宽带测距模块,用于与读卡器的超宽带测距模块进行通信,以实现卡端设备与所述读卡器之间距离的测量以及超宽带刷卡功能。The card-end ultra-wideband ranging module is used to communicate with the ultra-wideband ranging module of the card reader to realize the measurement of the distance between the card-end device and the card reader and the ultra-wideband card swiping function.
  9. 根据权利要求8所述的卡端设备,其特征在于,卡端设备支持的刷卡功能还包括近场通信刷卡功能,所述卡端设备还包括卡端近场通信模块,用于与读卡器的近场通信模块进行通信,以实现近所述场通信刷卡功能。 The card terminal device according to claim 8, characterized in that the card terminal device supports the card swiping function also includes a near field communication card swiping function, and the card terminal device further includes a card terminal near field communication module for communicating with the card reader. The near field communication module communicates to realize the near field communication card swiping function.
  10. 根据权利要求8或9所述的卡端设备,其特征在于,还包括应用类型切换模块,用于:The card terminal device according to claim 8 or 9, further comprising an application type switching module for:
    接收读卡器的应用类型;The application type of the receiving card reader;
    根据读卡器的应用类型,切换当前使用的应用类型,以与所述读卡器的应用类型一致。According to the application type of the card reader, the currently used application type is switched to be consistent with the application type of the card reader.
  11. 根据权利要求8-10任一项所述的卡端设备,其特征在于,还包括卡端安全单元,以通过访问所述卡端安全单元完成刷卡操作;The card terminal device according to any one of claims 8 to 10, further comprising a card terminal security unit to complete the card swiping operation by accessing the card terminal security unit;
    所述卡端安全单元还用于:The card-side security unit is also used for:
    当刷卡功能被切换时,激活或去激活所述卡端安全单元中的刷卡应用,以恢复所述刷卡应用的状态,为切换后的刷卡功能提供所需数据,其中,所述刷卡功能包括近场通信刷卡功能和超宽带刷卡功能。When the card swiping function is switched, activate or deactivate the card swiping application in the card-side security unit to restore the status of the card swiping application and provide the required data for the switched card swiping function, wherein the card swiping function includes nearly Field communication card swiping function and ultra-wideband card swiping function.
  12. 根据权利要求8-10任一项所述的卡端设备,其特征在于,所述卡端蓝牙模块,具体用于:The card terminal device according to any one of claims 8-10, characterized in that the card terminal Bluetooth module is specifically used for:
    在与读卡器的蓝牙模块连接后,获取所述卡端设备与读卡器的第三距离;当所述第三距离小于或等于第三阈值时,使能所述卡端设备的卡端超宽带测距模块。After connecting with the Bluetooth module of the card reader, obtain the third distance between the card terminal device and the card reader; when the third distance is less than or equal to the third threshold, enable the card terminal of the card terminal device Ultra-wideband ranging module.
  13. 一种刷卡方法,其特征在于,所述方法应用于读卡器,所述读卡器包括蓝牙模块、超宽带测距模块和控制单元;A card swiping method, characterized in that the method is applied to a card reader, and the card reader includes a Bluetooth module, an ultra-wideband ranging module and a control unit;
    所述方法包括:The methods include:
    当所述蓝牙模块扫描到支持超宽带刷卡功能的卡端设备时,使能所述超宽带测距模块;When the Bluetooth module scans a card terminal device that supports the ultra-wideband card swiping function, the ultra-wideband ranging module is enabled;
    基于所述超宽带测距模块,检测与所述卡端设备的第一距离;Based on the ultra-wideband ranging module, detect the first distance from the card terminal device;
    当根据所述第一距离确定所述卡端设备处于靠近状态,且所述第一距离小于或等于第一阈值时,通过所述超宽带测距模块,与所述卡端设备进行刷卡通信。When it is determined that the card-side device is in a close state according to the first distance and the first distance is less than or equal to a first threshold, card-swiping communication is performed with the card-side device through the ultra-wideband ranging module.
  14. 一种刷卡方法,其特征在于,所述方法应用于卡端设备,所述卡端设备包括卡端蓝牙模块和卡端超宽带测距模块;A card swiping method, characterized in that the method is applied to a card-side device, and the card-side device includes a card-side Bluetooth module and a card-side ultra-wideband ranging module;
    所述方法包括:The methods include:
    基于所述卡端蓝牙模块,广播卡端设备支持的刷卡功能,其中,卡端设备支持的刷卡功能包括超宽带刷卡功能; Based on the card-side Bluetooth module, the card-side device broadcasts the card-swiping function supported by the card-side device, where the card-side device supports the card-side card swiping function including the ultra-wideband card-swiping function;
    在所述卡端蓝牙模块与读卡器的蓝牙模块连接后,使能所述卡端超宽带测距模块;After the card-side Bluetooth module is connected to the Bluetooth module of the card reader, the card-side ultra-wideband ranging module is enabled;
    通过所述卡端超宽带测距模块与所述读卡器的超宽带测距模块进行通信,以实现卡端设备与所述读卡器之间距离的测量以及超宽带刷卡功能。The card-end ultra-wideband ranging module communicates with the ultra-wideband ranging module of the card reader to realize the measurement of the distance between the card-end device and the card reader and the ultra-wideband card swiping function.
  15. 一种控制单元,其特征在于,包括存储器和至少一个处理器;A control unit, characterized by including a memory and at least one processor;
    所述存储器存储计算机执行指令;The memory stores computer execution instructions;
    所述至少一个处理器执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行如权利要求13或14所述的刷卡方法。 The at least one processor executes the computer execution instructions stored in the memory, so that the at least one processor executes the card swiping method as claimed in claim 13 or 14.
PCT/CN2023/097619 2022-07-05 2023-05-31 Card reader, card end device, card swiping method and control unit WO2024007777A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210783663.XA CN115130485A (en) 2022-07-05 2022-07-05 Card reader, card terminal equipment, card swiping method and control unit
CN202210783663.X 2022-07-05

Publications (1)

Publication Number Publication Date
WO2024007777A1 true WO2024007777A1 (en) 2024-01-11

Family

ID=83381304

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/097619 WO2024007777A1 (en) 2022-07-05 2023-05-31 Card reader, card end device, card swiping method and control unit

Country Status (2)

Country Link
CN (1) CN115130485A (en)
WO (1) WO2024007777A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115130485A (en) * 2022-07-05 2022-09-30 深圳市汇顶科技股份有限公司 Card reader, card terminal equipment, card swiping method and control unit

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105931326A (en) * 2016-04-15 2016-09-07 刘双文 Access control device and method
CN105956845A (en) * 2016-04-20 2016-09-21 福建联迪商用设备有限公司 POS terminal with integrated Bluetooth iBeacon module, payment method thereof and POS system
CN110020569A (en) * 2019-03-11 2019-07-16 华为技术有限公司 Automatically select method, electronic equipment and the communication system of NFC analog card
CN111541995A (en) * 2020-04-03 2020-08-14 支付宝(杭州)信息技术有限公司 UWB-based sequential identification system, method, device and equipment
US20210312424A1 (en) * 2020-04-01 2021-10-07 Mastercard International Incorporated Ultra-wideband-enabled devices and systems
CN113947826A (en) * 2021-09-30 2022-01-18 熵基科技股份有限公司 Door lock control method, device, terminal and readable storage medium based on UWB
CN114430543A (en) * 2020-10-29 2022-05-03 Oppo广东移动通信有限公司 Communication control method and device of mobile terminal, storage medium and electronic equipment
CN115130485A (en) * 2022-07-05 2022-09-30 深圳市汇顶科技股份有限公司 Card reader, card terminal equipment, card swiping method and control unit

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112396709B (en) * 2020-11-13 2022-12-06 Oppo广东移动通信有限公司 Terminal interaction method and device based on ultra-wideband communication, medium and electronic equipment
CN113361293A (en) * 2021-06-02 2021-09-07 深圳市汇顶科技股份有限公司 Card swiping method, card controller, electronic device and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105931326A (en) * 2016-04-15 2016-09-07 刘双文 Access control device and method
CN105956845A (en) * 2016-04-20 2016-09-21 福建联迪商用设备有限公司 POS terminal with integrated Bluetooth iBeacon module, payment method thereof and POS system
CN110020569A (en) * 2019-03-11 2019-07-16 华为技术有限公司 Automatically select method, electronic equipment and the communication system of NFC analog card
US20210312424A1 (en) * 2020-04-01 2021-10-07 Mastercard International Incorporated Ultra-wideband-enabled devices and systems
CN111541995A (en) * 2020-04-03 2020-08-14 支付宝(杭州)信息技术有限公司 UWB-based sequential identification system, method, device and equipment
CN114430543A (en) * 2020-10-29 2022-05-03 Oppo广东移动通信有限公司 Communication control method and device of mobile terminal, storage medium and electronic equipment
CN113947826A (en) * 2021-09-30 2022-01-18 熵基科技股份有限公司 Door lock control method, device, terminal and readable storage medium based on UWB
CN115130485A (en) * 2022-07-05 2022-09-30 深圳市汇顶科技股份有限公司 Card reader, card terminal equipment, card swiping method and control unit

Also Published As

Publication number Publication date
CN115130485A (en) 2022-09-30

Similar Documents

Publication Publication Date Title
US10122841B2 (en) Smartphone proximity card emulation
JP6714654B2 (en) Location-based credential selection for wireless transactions
WO2022012173A1 (en) Emulated card switching method, terminal device, and storage medium
WO2024007777A1 (en) Card reader, card end device, card swiping method and control unit
US11922254B2 (en) Devices and methods for contactless card alignment with a foldable mobile device
CN108475372B (en) Access control bypass on mobile devices for public transportation
US8929805B2 (en) System, method, and device for radio frequency communication
CN102215051B (en) Method for determining distance threshold in process of starting transaction by virtue of radio frequency SIM (subscriber identity model) card based on low-frequency magnetic communication
CN102215050A (en) Detection method for radio-frequency SIM (Subscriber Identity Module) card collision with low-frequency magnetic communication
CN113902436A (en) Analog card switching method, terminal device, card reader and storage medium
CN102081823B (en) Method and device for reducing mobile payment transaction interferences and mobile terminal
CN103200325A (en) Peripheral device for mobile terminal and communication method for mobile terminal and peripheral device
WO2022142441A1 (en) Mobile payment method and apparatus, and device and storage medium
CN101996301B (en) Communication distance control method and radio frequency card reading device
CN105719141A (en) Payment method and device
CN210270975U (en) Safe and convenient charging terminal and payment system
CN204759461U (en) Bluetooth NFC device that possesses safe start control circuit
CN107526522A (en) Blank screen gesture identification method and device, and mobile terminal, storage medium
CN112150140B (en) Resource allocation method, device and system
JP2020529089A (en) Payment processing
TWI632512B (en) Anti-collision method between different frequency cards and dual frequency card reader
CN201993780U (en) Read-write device for mobile phone intelligent card
CN204883752U (en) Wireless NFC device that possesses safe start control circuit
WO2018161519A1 (en) Payment method and terminal
CN204759462U (en) Bluetooth IC -card management system who possesses safe start control circuit

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: 23834551

Country of ref document: EP

Kind code of ref document: A1