Entity card identification method, entity card protection method, device, equipment and medium
By controlling the switch of the radio frequency field in the radio frequency card reading device, determining whether the card to be detected is a physical card based on the length of the response data, and controlling the working status of the wireless charging device in the main control device, the problem of physical card being easily damaged in the radio frequency card reading device and the wireless charging device is solved, and the accurate identification and protection of the physical card is achieved.
Patent Information
- Application Number
- CN202411799227.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-09
- Publication Date
- 2025-03-25
AI Technical Summary
When radio frequency card reading equipment and wireless charging equipment are working, they will cause damage to physical cards due to electromagnetic interference and other reasons, and it is difficult for the prior art to accurately identify physical cards.
By opening the radio frequency field in the radio frequency card reading device and sending card search data, closing the radio frequency field after receiving the response data, determining whether the card to be detected is a physical card based on the actual length of the response data, and controlling the working status of the wireless charging device in the main control device based on the recognition results.
It realizes accurate identification and protection of physical cards, avoids physical cards damage caused by electromagnetic interference, and improves the safety and reliability of the equipment.
Smart Images

Figure CN119692373A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of wireless technology, and in particular to a physical card identification method, a physical card protection method, a device, a equipment and a medium. Background Art
[0002] RFID card readers communicate with RFID cards through radio waves and are widely used in vehicles, access control, payment and other fields. Wireless charging devices charge electronic devices through electromagnetic induction or resonant coupling technology and are widely used in vehicles, mobile phones, wearable devices and other fields. At present, in order to meet users' demand for diversified product functions, more and more products have both RFID card reader functions and wireless charging functions. For example, the central control position of a vehicle includes both automotive-grade RFID card readers and wireless charging devices.
[0003] However, if the RFID card reader and the wireless charging device are close to each other, the wireless charging device may damage the physical card (i.e., the physical RFID card) when it is working due to electromagnetic interference and other reasons. The key to solving this problem is how to determine whether the RFID card to be read by the RFID card reader is a physical card, because only when the RFID card to be read is determined to be a physical card can targeted protection measures be implemented. Therefore, there is an urgent need for a method that can identify physical cards. Summary of the invention
[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the embodiments of the present disclosure provide a physical card identification method, a physical card protection method, an apparatus, a device and a medium.
[0005] A first aspect of an embodiment of the present disclosure provides a physical card protection method, which is applied to a radio frequency card reader device, and the method includes:
[0006] Turning on the radio frequency field and sending card search data, wherein the card search data is used to make the card to be detected return response data;
[0007] During the period of receiving the response data, the radio frequency field is turned off;
[0008] After the operation of receiving the response data is completed, it is determined whether the card to be detected is a physical card according to the actual length of the response data actually received.
[0009] A second aspect of an embodiment of the present disclosure provides a physical card protection method, which is applied to a main control device, and the method includes:
[0010] Receiving an identification result of the card to be detected sent by a radio frequency card reader, wherein the identification result is obtained by the radio frequency card reader performing physical card identification on the card to be detected using the method described in the first aspect;
[0011] If the identification result indicates that the card to be detected is a physical card, the working state of the wireless charging device is controlled to be a closed state.
[0012] A third aspect of the embodiments of the present disclosure provides a physical card protection device, which is applied to a radio frequency card reader, and the device includes:
[0013] A first sending module, used to turn on the radio frequency field and send card search data, wherein the card search data is used to make the card to be detected return response data;
[0014] A first closing module is used to close the radio frequency field during the period of receiving the response data;
[0015] The first determination module is used to determine whether the card to be detected is a physical card according to the actual length of the response data actually received after completing the operation of receiving the response data.
[0016] A fourth aspect of the embodiments of the present disclosure provides a physical card protection device, which is applied to a main control device, and the device includes:
[0017] A first receiving module, configured to receive an identification result of a card to be detected sent by a radio frequency card reader, wherein the identification result is obtained by the radio frequency card reader performing physical card identification on the card to be detected using the method described in the first aspect;
[0018] The first control module is used to control the working state of the wireless charging device to be a closed state if the identification result indicates that the card to be detected is a physical card.
[0019] The fifth aspect of an embodiment of the present disclosure provides an electronic device, which includes: a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the method of the first aspect or the method of the second aspect mentioned above.
[0020] A sixth aspect of an embodiment of the present disclosure provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method of the first aspect or the method of the second aspect can be implemented.
[0021] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:
[0022] In the disclosed embodiment, the radio frequency card reader device can turn on the radio frequency field and send card search data; after receiving the response data of the response length returned by the card to be detected, the radio frequency field is turned off, wherein the response length is less than the response length corresponding to the card to be detected, and the response length is the length of the response data that the card to be detected should return to the radio frequency card reader device according to the communication protocol; after receiving, it is determined whether the card to be detected is a physical card according to the actual length of the response data actually received. It can be seen that by adopting the above technical solution, based on the essential difference between physical cards and analog cards (physical cards rely on radio frequency fields for power supply, and analog cards do not rely on radio frequency fields for power supply), the radio frequency field can be controlled to be turned off during the reception of response data, so that when the card to be detected is a physical card, the response data will be interrupted, and when the card to be detected is a simulated card, the response data will continue to be sent, thereby distinguishing whether the card to be detected is a physical card according to the actual length of the response data actually received after receiving, thereby accurately identifying the physical card. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0024] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0025] Figure 1 is a flow chart of a physical card identification method provided by an embodiment of the present disclosure;
[0026] Figure 2 is a flow chart of a physical card protection method provided by an embodiment of the present disclosure;
[0027] Figure 3 It is a structural schematic diagram of a radio frequency card reading device provided by an embodiment of the present disclosure;
[0028] Figure 4 It is a physical card identification and protection system provided by the embodiment of the present disclosure;
[0029] Figure 5 is a flow chart of an example of physical card identification and protection provided by an embodiment of the present disclosure;
[0030] Figure 6 is a structural schematic diagram of a physical card recognition device provided by an embodiment of the present disclosure;
[0031] Figure 7 is a structural schematic diagram of a physical card protection device provided by an embodiment of the present disclosure;
[0032] Figure 8 It is a structural schematic diagram of an electronic device in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0033] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0034] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0035] To solve the problems mentioned in the background technology, the applicant has found through research that there is an essential difference between a physical card and an analog card: a physical card is powered on based on the transmission of a radio frequency field. Once the radio frequency field is turned off, the physical card will lose power, and all functions including transmission and reception will be turned off. However, since the analog card is powered by the battery of the mobile terminal, there is no power failure. After the radio frequency field is turned off, it will not affect the current transmission and reception process. Therefore, physical card identification can be performed based on the essential difference between physical cards and analog cards. Based on this, the present disclosure proposes a physical card identification method, a physical card protection method, an apparatus, a device and a medium. Below, the physical card identification method is first described in detail.
[0036] Figure 1 This is a flow chart of a physical card identification method provided by an embodiment of the present disclosure, which can be executed by a radio frequency card reader device. The radio frequency card reader device communicates with a radio frequency card based on radio frequency principles such as near field communication (NFC) or radio frequency identification (RFID), and the radio frequency card reader device can be exemplarily understood as a radio frequency card reader device such as a vehicle-grade radio frequency card reader, but is not limited thereto.
[0037] like Figure 1 As shown, the method provided in this embodiment includes the following steps:
[0038] S110, turning on the radio frequency field and sending card-seeking data, wherein the card-seeking data is used to make the card to be detected return response data.
[0039] In the disclosed embodiment, the radio frequency card reader turns on the radio frequency field and sends card search data. After receiving the card search data, the card to be detected returns corresponding response data according to the card search data.
[0040] Specifically, the card search data is specific data sent by the radio frequency card reader and is used to search for nearby radio frequency cards.
[0041] Specifically, since different types of radio frequency cards have different communication protocols with radio frequency card readers, the card search data and response data vary with different radio frequency card types. Based on this, the radio frequency card reader has different specific implementations of S110 in two different scenarios: "the type of the card to be detected is known in advance" and "the type of the card to be detected is not known in advance".
[0042] In some embodiments, the radio frequency card reading device has known in advance the type of the card to be detected. In this case, S110 includes: turning on the radio frequency field and sending card search data matching the type of the card to be detected.
[0043] In some other embodiments, the radio frequency card reading device does not know in advance the type of the card to be detected. In this case, S110 includes: turning on the radio frequency field, and sending card search data of multiple types of radio frequency cards in sequence.
[0044] Specifically, the various types of radio frequency cards include at least two of the following: A card, B card, F card and V card, etc., but are not limited thereto. Among them, A card is a radio frequency card that complies with the ISO / IEC 14443-A standard, and common ones include access cards, transportation cards, student cards, etc. B card is a radio frequency card that complies with the ISO / IEC 14443-B standard, and common ones include access cards, medical cards, etc. F card is a radio frequency card that complies with the ISO / IEC14443-4 standard, and common ones include smart cards, bank IC cards, etc. V card is a radio frequency card that complies with the ISO / IEC 15693 standard, and common ones include logistics tags, asset management tags, etc.
[0045] It should be noted that, for the card search data of multiple types of radio frequency cards, the sending order can be pre-set by the user, or determined according to the number of various types of radio frequency cards found in the history (for example, the more radio frequency cards of a certain type are found in the history, the earlier the card search data of this type of radio frequency card is sent), or it can be set randomly, but is not limited to this.
[0046] In some examples, sending the card search data of multiple types of radio frequency cards in sequence includes: immediately sending the card search data of another type of radio frequency card after sending the card search data of one type of radio frequency card, until the card search data of multiple types of radio frequency cards are sent in sequence. For example, after the radio frequency card reader turns on the radio frequency field, it first sends the card search data of card A, immediately sends the card search data of card B after sending the card search data of card A, immediately sends the card search data of card F after sending the card search data of card B, and immediately sends the card search data of card V after sending the card search data of card F.
[0047] In other examples, the card search data of multiple types of radio frequency cards are sent in sequence, including: after sending the card search data of one type of radio frequency card, if no response data is received after a preset time, the card search data of another type of radio frequency card is immediately sent; if the response data is received within the preset time, after completing the operation of receiving the response data of the radio frequency card of this type, the card search data of another type of radio frequency card is immediately sent, and so on, until the card search data of multiple types of radio frequency cards are sent in sequence. It should be noted that the specific value of the preset time can be set by those skilled in the art according to actual conditions and is not limited here.
[0048] Specifically, regarding "the operation of receiving the response data of this type of radio frequency card is completed", "the operation of receiving the response data is completed (i.e., the reception is completed)" is understood as follows: the card search process of the radio frequency card reader device includes the following three steps: the radio frequency card reader device sends the card search data, the radio frequency card receives the card search data and feeds back the response data, and the radio frequency card reader device receives the response data. The radio frequency card reader device executes the step or action of receiving the response data, and it is considered that "the operation of receiving the response data is completed (i.e., the reception is completed)" regardless of whether the response data is actually received.
[0049] In some other examples, the card search data of multiple types of radio frequency cards are sent in sequence, including: after sending the card search data of one type of radio frequency card and completing the operation of receiving the response data of the radio frequency card of this type, immediately sending the card search data of another type of radio frequency card and completing the operation of receiving the response data of the radio frequency card of this type, and so on, until the card search data of multiple types of radio frequency cards are sent in sequence.
[0050] It can be understood that by setting up the sending of card search data of multiple types of radio frequency cards in sequence, the radio frequency card reading device can search for multiple types of cards to be detected, and then identify whether the multiple types of cards to be detected are physical cards, so that the physical card identification method of the embodiment of the present disclosure is applicable to multiple types of cards to be detected, thereby improving applicability and compatibility.
[0051] S120 , while receiving the response data, turning off the radio frequency field.
[0052] In the disclosed embodiment, the radio frequency card reader device controls the radio frequency field to be turned off during the reception of response data, that is, the radio frequency field is turned off before the operation of receiving the response data is completed. In this way, if the card to be detected is a physical card, since the card to be detected loses its energy source and the internal circuit stops working, the card to be detected will interrupt sending response data. If the card to be detected is an analog card, since the analog card relies on the energy provided by the built-in battery of the terminal device where it is located, it is not affected by the external radio frequency field and always has power supply, so it will continue to send response data.
[0053] Specifically, the meaning of "while receiving response data" is as follows: As mentioned above, for any type of RFID card, the card search process of the RFID card reader device includes the following three steps: the RFID card reader device sends the card search data, the RFID card receives the card search data and feeds back the response data, and the RFID card reader device receives the response data. Therefore, if the RFID card reader device sends the card search data of multiple types of RFID cards in sequence, "while receiving response data" means that for any type of RFID card, the RFID field is turned off during the period of receiving the response data of the RFID card of that type.
[0054] In some embodiments, the RF field is turned off during the reception of response data, including: after receiving response data of a preset length, the RF field is turned off, wherein the preset length is less than the response length corresponding to the card to be detected, and the response length is the length of the response data that the card to be detected should return to the RF card reader device according to the communication protocol.
[0055] Specifically, the preset length is smaller than the response length corresponding to the type of the card to be detected. For example, the response length of card A is 2 bytes, in which case the preset length may be 1 byte, and the response lengths of card B, card F, and card V are more than a dozen bytes, in which case the preset length may be several bytes, but is not limited thereto.
[0056] Optionally, the “length difference between the preset length and the response length” is positively correlated with the response length corresponding to the type of the card to be detected.
[0057] In other embodiments, the radio frequency field is turned off during the reception of response data, including: after the operation of receiving the response data continues for a preset time, the radio frequency field is turned off, wherein the preset time is less than the response time corresponding to the card to be detected, the response time is the time taken by the radio frequency card reader device to receive response data of a response length, and the response length is the length of the response data that the card to be detected should return to the radio frequency card reader device according to the communication protocol.
[0058] Specifically, the preset duration is less than the response duration corresponding to the type of the card to be detected. Exemplarily, the response duration corresponding to the type of the card to be detected is T1, in which case the preset duration may be T2, where T2<T1. Exemplarily, after receiving the card search data, card A will reply with response data within a fixed delay time FDT (Fixed Delay Time), in which case the preset duration may be any duration less than FDT.
[0059] Optionally, the “time difference between the preset time and the response time” is positively correlated with the response time corresponding to the type of the card to be detected.
[0060] It can be understood that by setting the radio frequency field to be turned off after receiving response data of a preset length or after the operation of receiving response data continues for a preset time, the radio frequency card reader can turn off the radio frequency field in time during the reception of response data, which is beneficial to improving the accuracy of physical card recognition.
[0061] S130. After the operation of receiving the response data is completed, determine whether the card to be detected is a physical card according to the actual length of the response data actually received.
[0062] It should be noted that for the understanding of "completing the operation of receiving response data", please refer to the previous text and will not be repeated here.
[0063] In some embodiments, whether the card to be detected is a physical card is determined based on the actual length of the response data actually received, including: if the actual length is less than the response length, determining that the card to be detected is a physical card; if the actual length is equal to the response length, determining that the card to be detected is a simulated card.
[0064] Specifically, a physical card refers to a physically existing radio frequency card, which is usually made of plastic or other materials and has an RFID or NFC chip and antenna built in. The physical card communicates with the radio frequency card reader device through radio frequency signals.
[0065] Specifically, an emulated card refers to a virtual RFID card that simulates the functions of a physical card through software or hardware. An emulated card is usually present in mobile terminals such as mobile phones or tablets, and communicates with RFID card readers through NFC or RFID modules.
[0066] Specifically, the radio frequency card reader device controls the radio frequency field to be closed during the period of receiving the response data. If the card to be detected is a physical card, the card to be detected will interrupt the sending of the response data, that is, the card to be detected cannot continue to send the remaining response data. In this way, after completing the operation of receiving the response data, the actual length of the response data actually received by the radio frequency card reader device will be less than the response length. If the card to be detected is an analog card, the card to be detected will continue to send the response data until all the response data are sent. In this way, after completing the operation of receiving the response data, the actual length of the response data actually received by the radio frequency card reader device will be equal to the response length. Therefore, by comparing the actual length and the response length, it is possible to identify whether the card to be detected is a physical card.
[0067] It can be understood that by comparing the actual length and the response length to identify whether the card to be detected is a physical card, the physical card identification method is simple and accurate, which is conducive to reducing the difficulty of identification and improving the identification efficiency.
[0068] Of course, in other embodiments, the actually received response data may be input into a pre-trained recognition model, and a recognition result output by the recognition model as to whether the card to be detected is a physical card may be obtained.
[0069] In the disclosed embodiment, the radio frequency card reader device can turn on the radio frequency field and send card search data; after receiving the response data of the response length returned by the card to be detected, the radio frequency field is turned off, wherein the response length is less than the response length corresponding to the card to be detected, and the response length is the length of the response data that the card to be detected should return to the radio frequency card reader device according to the communication protocol; after receiving, according to the actual length of the response data actually received, it is determined whether the card to be detected is a physical card. It can be seen that by adopting the above technical solution, based on the essential difference between physical cards and analog cards (physical cards rely on radio frequency fields for power supply, and analog cards do not rely on radio frequency fields for power supply), the radio frequency field can be controlled to be turned off during the reception of response data, so that when the card to be detected is a physical card, the response data will be interrupted, and when the card to be detected is a simulated card, the response data will continue to be sent, thereby distinguishing whether the card to be detected is a physical card according to the actual length of the response data actually received after receiving, thereby accurately identifying the physical card.
[0070] Figure 2 1 is a flow chart of a physical card protection method provided by an embodiment of the present disclosure, and the method can be executed by a main control device. The main control device can be exemplarily understood as a control device such as an MCU. Figure 2 As shown, the method provided in this embodiment includes the following steps:
[0071] S210: Receive the recognition result of the card to be detected sent by the radio frequency card reader.
[0072] The recognition result is obtained by the radio frequency card reader using the entity recognition method described in any of the above embodiments to perform entity card recognition on the card to be detected.
[0073] S220: If the recognition result indicates that the card to be detected is a physical card, control the working state of the wireless charging device to be turned off.
[0074] Optionally, the method further includes: if the identification result indicates that the card to be detected is an analog card, controlling the charging state of the wireless charging device to be a working state.
[0075] Specifically, if the card to be detected is a physical card, the main control device will control the wireless charging device not to start charging or stop charging, and stop high-power transmission to avoid damaging the physical card to be detected; if the card to be detected is an analog card, the main control device will control the wireless charging device to start charging or continue charging to ensure that the charging device charges normally.
[0076] It is understandable that in current high-power charging environments such as wireless charging, if a physical card is mistakenly placed in the environment, the physical card will be burned and cannot be used. There are currently physical cards on the market that have been optimized to add protection functions for such situations, but there is no solution for high-power environments. In view of this, the embodiment of the present disclosure, after identifying whether the card to be detected is a physical card, the main control device can control whether the wireless charger is transmitting high power, thereby protecting the physical card from damage, and can also not abnormally interrupt the charging process.
[0077] The following is a detailed description of the physical card identification method and physical card protection method provided by the embodiment of the present disclosure with reference to a specific example. Figure 3 It is a structural schematic diagram of a radio frequency card reader provided in an embodiment of the present disclosure. Figure 4 A physical card identification and protection system is provided in an embodiment of the present disclosure. Figure 5 1 is a flow chart of an example of physical card identification and protection provided by an embodiment of the present disclosure. Figure 3-Figure 5 As shown, the radio frequency card reader device includes a radio frequency module, a matching circuit and a radio frequency antenna, wherein the radio frequency module can control the radio frequency field to open, close, send and receive data. The physical card identification and protection system includes a main control device (such as MCU, etc.), a radio frequency card reader device (such as NFC card reader device, etc.) and a wireless charging device. After the radio frequency card reader device turns on the radio frequency field, it sends card search data (i.e., transmits a card search waveform), including but not limited to sending card search data of A card, B card, F card and V card in sequence. For each type of radio frequency card, according to the communication protocol of the type of radio frequency card, during the period of receiving response data of the type of radio frequency card, the radio frequency field is turned off, for example, after receiving the response data of a preset length, the radio frequency field is turned off, or after the preset time length after sending the card search data, the radio frequency field is turned off. In this way, after the operation of receiving the response data is completed, it is determined whether the actual length of the response data actually received is less than the response length. If so, it is identified as a physical card, and if not, it is identified as a simulated card. After the RFID card reader identifies the physical card, it will feed back to the main control device, which will control the wireless charging module to not start charging or stop charging and stop high-power transmission; if it identifies an analog card, the main control device will control the charging module to start charging or continue charging.
[0078] Figure 6 Schematic diagram of the structure of a physical card recognition device provided by an embodiment of the present disclosure. The physical card protection device can be understood as the above-mentioned radio frequency electronic device or a part of the functional modules in the above-mentioned radio frequency electronic device. Figure 6 As shown, the physical card recognition device includes:
[0079] A first sending module 610, configured to turn on the radio frequency field and send card search data, wherein the card search data is used to enable the card to be detected to return response data;
[0080] A first closing module 620, used to close the radio frequency field during the period of receiving the response data;
[0081] The first determination module 630 is used to determine whether the card to be detected is a physical card according to the actual length of the response data actually received after completing the operation of receiving the response data.
[0082] Optionally, the first closing module 620 is specifically used to close the radio frequency field after receiving response data of a preset length, wherein the preset length is less than the response length corresponding to the card to be detected, and the response length is the length of the response data that the card to be detected should return to the radio frequency card reader device according to the communication protocol.
[0083] Optionally, the first closing module 620 is specifically used to close the radio frequency field after the operation of receiving response data continues for a preset time period, wherein the preset time period is less than the response time period corresponding to the card to be detected, the response time period is the time period consumed by the radio frequency card reader device to receive response data of a response length, and the response length is the length of the response data that the card to be detected should return to the radio frequency card reader device according to the communication protocol.
[0084] Optionally, the first determination module 630 is specifically configured to determine that the card to be detected is a physical card if the actual length is less than a response length, wherein the response length is the length of response data that the card to be detected should return to the radio frequency card reader according to the communication protocol;
[0085] If the actual length is equal to the response length, it is determined that the card to be detected is an analog card.
[0086] Optionally, the first sending module 610 is specifically used to open the radio frequency field and send card search data of multiple types of radio frequency cards in sequence, wherein the multiple types of radio frequency cards include at least two of the following: A card, B card, F card and V card.
[0087] The device provided in this embodiment can execute the physical card recognition method described in any of the above embodiments, and its execution method and beneficial effects are similar, which will not be repeated here.
[0088] Figure 7 1 is a schematic diagram of the structure of a physical card protection device provided by an embodiment of the present disclosure. The physical card protection device can be understood as the above-mentioned main control device or a part of the functional modules in the above-mentioned main control device. Figure 7 As shown, the physical card protection device includes:
[0089] The first receiving module 710 is used to receive the recognition result of the card to be detected sent by the radio frequency card reader, where the recognition result is obtained by the radio frequency card reader performing physical card recognition on the card to be detected using the method described in any of the above embodiments;
[0090] The first control module 720 is configured to control the working state of the wireless charging device to be turned off if the identification result indicates that the card to be detected is a physical card.
[0091] Optionally, the first control module 720 is further configured to control the charging state of the wireless charging device to be a working state if the identification result indicates that the card to be detected is an analog card.
[0092] The device provided in this embodiment can execute the physical card protection method described in any of the above embodiments, and its execution method and beneficial effects are similar, which will not be repeated here.
[0093] An embodiment of the present disclosure further provides an electronic device, which includes: a memory, in which a computer program is stored; and a processor, for executing the computer program. When the computer program is executed by the processor, the method of any of the above embodiments can be implemented.
[0094] For example, Figure 8 Schematic diagram of the structure of an electronic device in the embodiment of the present disclosure. Figure 8 , which shows a schematic diagram of the structure of an electronic device 800 suitable for implementing the embodiment of the present disclosure. The electronic device 800 in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0095] like Figure 8 As shown, the electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0096] Typically, the following devices may be connected to the I / O interface 805: input devices 806 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 8 The electronic device 800 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0097] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 809, or installed from a storage device 808, or installed from a ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0098] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0099] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0100] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0101] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: turns on the radio frequency field and sends card-seeking data, wherein the card-seeking data is used to make the card to be detected return response data. During the reception of the response data, the radio frequency field is turned off. After the operation of receiving the response data is completed, it is determined whether the card to be detected is a physical card according to the actual length of the response data actually received; or, the electronic device: receives the recognition result of the card to be detected sent by the radio frequency card reader, wherein the recognition result is obtained by the radio frequency card reader performing physical card recognition on the card to be detected using the method described in any of the above embodiments; if the recognition result indicates that the card to be detected is a physical card, the working state of the wireless charging device is controlled to be closed.
[0102] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0103] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0104] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.
[0105] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0106] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0107] The embodiments of the present disclosure further provide a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method of any of the above embodiments can be implemented. The execution method and beneficial effects are similar and will not be repeated here.
[0108] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0109] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A physical card recognition method, characterized in that: Applied to a radio frequency card reader, the method comprises: Turning on the radio frequency field and sending card search data, wherein the card search data is used to make the card to be detected return response data; During the period of receiving the response data, the radio frequency field is turned off; After the operation of receiving the response data is completed, it is determined whether the card to be detected is a physical card according to the actual length of the response data actually received.
2. The method according to claim 1, characterized in that: The step of turning off the radio frequency field during the period of receiving the response data includes: After receiving response data of a preset length, the radio frequency field is turned off, wherein the preset length is less than the response length corresponding to the card to be detected, and the response length is the length of the response data that the card to be detected should return to the radio frequency card reader device according to the communication protocol.
3. The method according to claim 1, characterized in that The step of turning off the radio frequency field during the period of receiving the response data includes: After the operation of receiving response data continues for a preset time, the radio frequency field is turned off, wherein the preset time is less than the response time corresponding to the card to be detected, the response time is the time consumed by the radio frequency card reader device to receive response data of a response length, and the response length is the length of the response data that the card to be detected should return to the radio frequency card reader device according to the communication protocol.
4. The method according to claim 1, characterized in that: The determining whether the card to be detected is a physical card according to the actual length of the response data actually received includes: If the actual length is less than the response length, it is determined that the card to be detected is a physical card, wherein the response length is the length of the response data that the card to be detected should return to the radio frequency card reader according to the communication protocol; If the actual length is equal to the response length, it is determined that the card to be detected is an analog card.
5. The method according to claim 1, characterized in that: The step of opening the radio frequency field and sending the card search data includes: The radio frequency field is turned on, and card search data of multiple types of radio frequency cards are sent in sequence, wherein the multiple types of radio frequency cards include at least two of the following: A card, B card, F card and V card.
6. A physical card protection method, characterized in that: Applied to a master control device, the method comprises: Receiving an identification result of the card to be detected sent by a radio frequency card reader, wherein the identification result is obtained by the radio frequency card reader performing physical card identification on the card to be detected using the method described in any one of claims 1 to 5; If the identification result indicates that the card to be detected is a physical card, the working state of the wireless charging device is controlled to be a closed state.
7. The method according to claim 6, characterized in that Also includes: If the identification result indicates that the card to be detected is an analog card, the charging state of the wireless charging device is controlled to be a working state.
8. A physical card recognition device, characterized in that: Applied to a radio frequency card reader, the device comprises: A first sending module, used to turn on the radio frequency field and send card-seeking data, wherein the card-seeking data is used to make the card to be detected return response data; A first closing module, used for closing the radio frequency field during the period of receiving the response data; The first determination module is used to determine whether the card to be detected is a physical card according to the actual length of the response data actually received after completing the operation of receiving the response data.
9. A physical card protection device, characterized in that: Applied to a main control device, the device comprises: A first receiving module, configured to receive an identification result of a card to be detected sent by a radio frequency card reader, wherein the identification result is obtained by the radio frequency card reader performing physical card identification on the card to be detected using the method described in any one of claims 1 to 4; The first control module is used to control the working state of the wireless charging device to be a closed state if the identification result indicates that the card to be detected is a physical card.
10. An electronic device, characterized in that: include: A processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the method of any one of claims 1-5 or the method of any one of claims 6-7.
11. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 5 or the method according to any one of claims 6 to 7 is implemented.