Card-insertion power supply device and power supply method
By simulating RFID card card search instructions, the hardware circuit of card power extraction device is simplified, and the problem of waste of card reading chips in the prior art is solved, and the effect of cost saving and function satisfaction is achieved.
Patent Information
- Application Number
- CN202211034151.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-26
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2042-08-26
AI Technical Summary
In the use scenario where existing card power-out switches do not need to read card content, the card reading chip causes waste of resources and costs.
By simulating the card search instructions corresponding to the RFID card, the hardware circuit of the card power-up device is simplified, and only the MCU, communication module and preprocessing module are used, and the RFID card reading chip is omitted.
It realizes that in the use scenario where card content is not required, it saves costs and meets the functional requirements of card power-out switches. At the same time, the hardware circuit structure is simple and production is easy.
Smart Images

Figure CN115268343B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of smart home technology, and specifically to a card-insertion power supply device and a power supply method. Background Art
[0002] The card-operated power switch, also known as the power switch, power-saving switch, and energy-saving switch, is mainly used in hotels and guesthouses where the power supply to the room needs to be cut off when the room is vacant, so as to achieve the purpose of power safety and energy saving.
[0003] Among them, for low-frequency card power switches and high-frequency card power switches, in order to confirm whether the customer inserts the card according to regulations, the above-mentioned card power switches must at least include two hardware components: wired communication MCU (Microcontroller Unit) and RFID (Radio Frequency Identification) card reader chip. However, in the usage scenario where the card content does not need to be read, the card reader chip in the card power switch causes a waste of resources and costs. Summary of the invention
[0004] The purpose of the embodiments of the present disclosure is to provide a card-insertion power-drawing device and a power-drawing method. By simulating the card-searching instructions corresponding to the RFID card, the hardware circuit of the card-insertion power-drawing device is simplified to save costs, while meeting the functional requirements of the card-insertion power-drawing switch in most places (for example, hotels) in usage scenarios where there is little need to read the card content.
[0005] In order to achieve the above-mentioned purpose, the first aspect of the embodiment of the present disclosure provides a card insertion power extraction device, comprising: an MCU, a communication module and a preprocessing module. The MCU is used to simulate the card search instruction of the RFID card; the communication module is used to send the card search instruction and receive the response signal; the preprocessing module is used to preprocess the response signal; the MCU is also used to sample the preprocessed response signal in each card search cycle to obtain a set number of voltage signals, and determine whether the set number of voltage signals are all greater than or equal to the threshold voltage. When the set number of voltage signals are all greater than or equal to the threshold voltage, it is determined that the RFID card is inserted into the card insertion power extraction device.
[0006] In some embodiments of the present disclosure, the preprocessing module further includes: a diode envelope detector, a filter, and a power amplifier. The diode envelope detector is used to demodulate the response signal to obtain a basic signal corresponding to the response signal; the filter is used to filter the basic signal; and the power amplifier is used to amplify the filtered basic signal to obtain a preprocessed response signal.
[0007] In some embodiments of the present disclosure, the RFID card is a low-frequency RFID card or a high-frequency RFID card.
[0008] In some embodiments of the present disclosure, when the card insertion and power extraction device is used to identify a low-frequency RFID card, the frequency range of the square wave of the card search instruction is 125KHz to 134KHz.
[0009] In some embodiments of the present disclosure, when the card insertion and power extraction device is used to identify a high-frequency RFID card, the card search instruction is a 13.56 MHz square wave.
[0010] A second aspect of an embodiment of the present disclosure provides a power-drawing method, which is applied to a card-insertion power-drawing device, comprising: simulating a card-seeking instruction of an RFID card and sending the card-seeking instruction; when a response signal is received, preprocessing the response signal; in each card-seeking cycle, sampling a set number of voltage signals from the preprocessed response signal, and determining whether the set number of voltage signals are all greater than or equal to a threshold voltage; when the set number of voltage signals are all greater than or equal to the threshold voltage, determining that the RFID card is inserted into the card-insertion power-drawing device.
[0011] In some embodiments of the present disclosure, the preprocessing of the response signal includes: demodulating the response signal to obtain a basic signal corresponding to the response signal; filtering the basic signal and amplifying the filtered basic signal to obtain a preprocessed response signal.
[0012] In some embodiments of the present disclosure, the RFID card is a low-frequency RFID card or a high-frequency RFID card.
[0013] In some embodiments of the present disclosure, when the card insertion and power extraction device is used to identify a low-frequency RFID card, the frequency range of the square wave of the card search instruction is 125KHz to 134KHz.
[0014] In some embodiments of the present disclosure, when the card insertion and power extraction device is used to identify a high-frequency RFID card, the card search instruction is a 13.56 MHz square wave.
[0015] Through the above technical solution, by simulating the card search instructions corresponding to the RFID card, the hardware circuit of the card-insertion power-taking device is simplified, saving costs, and at the same time meeting the functional requirements of the card-insertion power-taking switch in most places (for example, hotels) in usage scenarios where the card content does not need to be read.
[0016] Other features and advantages of the embodiments of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the embodiments of the present disclosure, but do not constitute a limitation on the embodiments of the present disclosure. In the accompanying drawings:
[0018] Figure 1 is a schematic block diagram of a card-insertion power-collecting device 100 according to an embodiment of the present disclosure;
[0019] Figure 2 is a schematic block diagram of another card-insertion power-collecting device 100 according to an embodiment of the present disclosure;
[0020] Figure 3 It is a flowchart of a power supply method provided according to an embodiment of the present disclosure.
[0021] The elements in the drawings are schematic and not drawn to scale. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative work also fall within the scope of protection of the present disclosure.
[0023] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by a person skilled in the art to which the subject matter of the present disclosure belongs. It will be further understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the specification and the relevant art, and will not be interpreted in an idealized or overly formal form unless otherwise explicitly defined herein. As used herein, a statement that two or more parts are "connected" or "coupled" together shall mean that the parts are joined together directly or through one or more intermediate components.
[0024] In the current card-insertion power switch suitable for radio frequency cards, in order to confirm whether the user has inserted the card in accordance with regulations, the card-insertion power switch needs to include at least two hardware components: an MCU (Microcontroller Unit) for wired communication and an RFID (Radio Frequency Identification) card reader chip. However, the circuit structure is complex, production is difficult, and the cost is high. Especially in the usage scenario where there is no need to read the detailed content in the radio frequency card, the card-insertion power switch with this structure will cause a waste of resources and costs.
[0025] The embodiment of the present disclosure provides a card-insertion power supply device, which omits the RFID card reader chip and only uses the MCU of wired communication to realize the identification of the presence of the radio frequency card and thus provide power to the place. Figure 1 FIG. 1 shows a schematic block diagram of a card-insertion power-collecting device 100 according to an embodiment of the present disclosure. Figure 1 As shown, the card-insertion power supply device 100 may include: an MCU 110, a communication module 120 and a preprocessing module 130. The MCU 110 is connected to the communication module 120 and the preprocessing module 130 respectively, and the communication module 120 is connected to the preprocessing module 130.
[0026] Among them, the MCU 110 is used to simulate the card search instruction of the RFID card. The communication module 120 is used to send the card search instruction and receive the response signal. The preprocessing module 130 is used to preprocess the response signal. The MCU 110 is also used to sample the voltage signal of a set number of times in the preprocessed response signal in each card search cycle, and determine whether the voltage signals of the set number of times are all greater than or equal to the threshold voltage. When the voltage signals of the set number of times are all greater than or equal to the threshold voltage, it is determined that the RFID card is inserted into the card insertion and power extraction device.
[0027] Among them, the MCU in the embodiment of the present disclosure has a crystal oscillator input port, and supports outputting a square wave signal of a specific frequency through a designated pin, for example, the CCO pin supported by the STM8 series chip. The frequency of the output square wave can be the crystal oscillator frequency, or it can be a frequency division value or a frequency multiplication value of the crystal oscillator frequency. Among them, the frequency division value is the frequency obtained by dividing the crystal oscillator frequency by a certain integer. The frequency multiplication value is the frequency value obtained by multiplying the crystal oscillator frequency by a certain integer. The card-insertion power supply device in the embodiment of the present disclosure is suitable for identifying low-frequency RFID cards and high-frequency RFID cards. In response to the requirements of square waves of different frequencies, different crystal oscillators are connected to the MCU through the crystal oscillator input port. Among them, the card-insertion power-taking device in the embodiment of the present disclosure is suitable for identifying low-frequency RFID cards with a frequency range of 125KHz to 134KHz. When any one of the crystal oscillators with an output frequency is selected to be connected to the MCU, the card-insertion power-taking device will send a square wave of the output frequency to identify the low-frequency RFID card of the frequency. For example, when the MCU is connected to a 125KHz crystal oscillator, the card-insertion power-taking device outputs a square wave with a frequency of 125KHz, thereby identifying a low-frequency RFID card with a frequency of 125KHz; when the MCU is connected to a 130KHz crystal oscillator, the card-insertion power-taking device outputs a square wave with a frequency of 130KHz, thereby identifying a low-frequency RFID card with a frequency of 130KHz; when the MCU is connected to a 134KHz crystal oscillator, the card-insertion power-taking device outputs a square wave with a frequency of 134KHz, thereby identifying a low-frequency RFID card with a frequency of 134KHz. When the MCU is externally connected to a 13.56MHz crystal oscillator, the card-insertion power supply device outputs a square wave with a frequency of 13.56MHz, thereby identifying a high-frequency RFID card with a frequency of 13.56MHz. Taking a high-frequency RFID card as an example, according to the card-seeking instruction timing of the high-frequency RFID card of the ISO1443 protocol, the card-seeking instruction of the high-frequency RFID card is simulated by the MCU. The card-seeking instruction includes a start signal and a data signal, so the MCU also needs to simulate the start signal and data signal in the card-seeking instruction. For example, the start signal includes a 2.6 microsecond no-signal output and a subsequent 7.4 microsecond square wave signal, and the subsequent data signal also includes a 2.6 microsecond no-signal output and a subsequent 7.4 microsecond square wave signal. Thus, the MCU simulates the corresponding RFID card's card-seeking instruction and provides it to the communication module 120.
[0028] The communication module 120 may include an antenna. After the card-searching instruction is sent through the antenna, once an RFID card corresponding to the card-searching instruction exists in the electromagnetic field around the antenna, the RFID card receives the stimulation of the card-searching instruction and will reply with a corresponding response signal, so the antenna can receive the response signal.
[0029] In the embodiments of the present disclosure, Figure 2As shown, the pre-processing module 130 further includes: a diode envelope detector 210, a filter 220 and a power amplifier 230 connected in sequence.
[0030] The diode envelope detector 210 is used to demodulate the response signal to obtain a basic signal corresponding to the response signal. In other words, the diode envelope detector 210 can extract the basic signal of the response signal before amplitude modulation.
[0031] The filter 220 is used to filter the basic signal.
[0032] The power amplifier 230 is used to amplify the filtered basic signal to obtain a pre-processed response signal.
[0033] Afterwards, the MCU 110 obtains the pre-processed response signal, and samples the voltage signal for a set number of times in each card search cycle, and determines whether the voltage signals for the set number of times are all greater than or equal to the threshold voltage. When the voltage signals for the set number of times are all greater than or equal to the threshold voltage, it is determined that the RFID card is inserted into the card insertion power extraction device. Specifically, starting from the issuance of the card search instruction, a periodic card search time is set, which is the card search cycle. For example, the card search cycle is 80 microseconds. After the card insertion power extraction device sends the card search instruction, the timer in the MCU 110 starts timing. When the time of the card search cycle is reached, the MCU 110 starts the analog-to-digital conversion channel, samples the pre-processed response signal for a set number of times, obtains the voltage signal for a set number of times, and determines whether the voltage signals for the set number of times are all greater than or equal to the threshold voltage (for example, the threshold voltage is 58mV). When the voltage signals for the set number of times are all greater than or equal to the threshold voltage, it is determined that the RFID card is inserted into the card insertion power extraction device. For example, the set number of times can be 3 times. When it is determined that the RFID card exists in the card-insertion power-collecting device, the card presence status signal can be transmitted through the 485 communication line to the subsequent equipment that needs the signal, for example, the power supply equipment in the hotel room. When it is determined that the RFID card exists, the power supply equipment supplies power to the corresponding room.
[0034] The card-insertion power-taking device provided in the embodiment of the present disclosure has a simple hardware circuit structure, is easy to produce, and saves costs. At the same time, it meets the functional requirements of the card-insertion power-taking switch in most places (for example, hotels) in usage scenarios where there is little need to read card contents.
[0035] Accordingly, Figure 3 FIG. 1 is a flow chart of a method for obtaining electricity according to an embodiment of the present disclosure. Figure 3 As shown, the method is applied to a card-insertion power supply device, and the method comprises the following steps:
[0036] Step 301, simulating a card search instruction of an RFID card and sending the card search instruction;
[0037] Step 302, after receiving the response signal, pre-processing the response signal;
[0038] Step 303, in each card search cycle, sampling the pre-processed response signal to obtain a set number of voltage signals, and determining whether the set number of voltage signals are all greater than or equal to a threshold voltage;
[0039] Step 304: When the voltage signals of the set number of times are all greater than or equal to the threshold voltage, it is determined that the RFID card is inserted into the card insertion power extraction device.
[0040] Among them, according to the setting of the card-insertion power-taking device, the card-seeking instruction of the RFID card applicable to the card-insertion power-taking device is simulated. For example, when the card-insertion power-taking device in the embodiment of the present disclosure is applicable to identifying a low-frequency RFID card with a specified frequency in the frequency range of 125KHz to 134KHz, the card-seeking instruction is a square wave of the specified frequency. When the card-insertion power-taking device in the embodiment of the present disclosure is applicable to identifying a high-frequency RFID card, the card-seeking instruction simulates the 13.56MHz square wave of a high-frequency RFID card. The card-seeking instruction includes a start signal and a data signal. For example, the start signal includes 2.6 microseconds of no signal output and a subsequent 7.4 microseconds of a square wave signal, and the subsequent data signal also includes 2.6 microseconds of no signal output and a subsequent 7.4 microseconds of a square wave signal.
[0041] When the card search instruction is issued, once there is an RFID card corresponding to the card search instruction nearby, the RFID card will be stimulated by the card search instruction and send out a response signal. After receiving the response signal, the card insertion power extraction device pre-processes the response signal.
[0042] Specifically, the response signal is demodulated to obtain a basic signal corresponding to the response signal. Then, the basic signal is filtered and the filtered basic signal is amplified to obtain a pre-processed response signal.
[0043] For the pre-processed response signal, in each card search cycle, the voltage signal of the set number of times is sampled and obtained, and it is determined whether the voltage signals of the set number of times are all greater than or equal to the threshold voltage. When the voltage signals of the set number of times are all greater than or equal to the threshold voltage, it is determined that the RFID card is inserted into the card insertion power extraction device. If any one of the voltage signals of the set number of times is not greater than or equal to the threshold voltage, it is determined that the RFID card is not inserted into the card insertion power extraction device.
[0044] According to the embodiments of the present disclosure, the card-searching instructions corresponding to the RFID card can be simulated, thereby simplifying the hardware circuit of the card-insertion power-taking device and saving costs. At the same time, the functional requirements of the card-insertion power-taking switch in most places (for example, hotels) where there is little need to read the card content can be met.
[0045] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0046] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0047] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0048] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0049] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0050] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0051] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0052] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0053] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A card-insertion power supply device, characterized in that: The card-insertion power supply device without a radio frequency identification (RFID) card reader chip comprises: a microprocessor MCU, a communication module and a preprocessing module. Wherein, the MCU is used to simulate the card search instruction of the RFID card; The communication module is used to send the card search instruction and receive a response signal; The preprocessing module is used to preprocess the response signal; The MCU is also used to sample a set number of voltage signals in the pre-processed response signal in each card search cycle, and determine whether the voltage signals of the set number of times are all greater than or equal to a threshold voltage. When the voltage signals of the set number of times are all greater than or equal to the threshold voltage, it is determined that the RFID card is inserted into the card insertion and power extraction device, and the status signal of the RFID card is transmitted to the power supply device that subsequently needs the status signal.
2. The card-insertion power supply device according to claim 1, characterized in that: The pre-processing module also includes: a diode envelope detector, a filter and a power amplifier, Wherein, the diode envelope detector is used to demodulate the response signal to obtain a basic signal corresponding to the response signal; The filter is used to filter the basic signal; The power amplifier is used to amplify the filtered basic signal to obtain a pre-processed response signal.
3. The card-insertion power supply device according to claim 1, characterized in that: The RFID card is a low-frequency RFID card or a high-frequency RFID card.
4. The card-insertion power supply device according to claim 3, characterized in that: When the card insertion and power extraction device is used to identify a low-frequency RFID card, the frequency range of the square wave of the card search instruction is 125KHz to 134KHz.
5. The card-insertion power supply device according to claim 3, characterized in that: When the card insertion and power extraction device is used to identify a high-frequency RFID card, the card search instruction is a 13.56 MHz square wave.
6. A method for obtaining electricity, characterized in that: The method is applied to a card-insertion power supply device that does not include a radio frequency identification (RFID) card reader chip, and comprises: Simulate a card search instruction of an RFID card and send the card search instruction; After receiving the response signal, preprocessing the response signal; In each card search cycle, sampling the pre-processed response signal to obtain a set number of voltage signals, and determining whether the set number of voltage signals are all greater than or equal to a threshold voltage; When the voltage signals of the set number of times are all greater than or equal to the threshold voltage, it is determined that the RFID card is inserted into the card insertion and power extraction device, and the status signal of the RFID card existence is transmitted to the power supply device that subsequently needs the status signal.
7. The method for obtaining electricity according to claim 6, characterized in that: The pre-processing of the response signal comprises: Demodulating the response signal to obtain a basic signal corresponding to the response signal; The basic signal is filtered and the filtered basic signal is amplified to obtain a preprocessed response signal.
8. The method for obtaining electricity according to claim 6, characterized in that: The RFID card is a low-frequency RFID card or a high-frequency RFID card.
9. The method for obtaining electricity according to claim 8, characterized in that: When the card insertion and power extraction device is used to identify a low-frequency RFID card, the frequency range of the square wave of the card search instruction is 125KHz to 134KHz.
10. The power extraction method according to claim 8, characterized in that: When the card insertion and power extraction device is used to identify a high-frequency RFID card, the card search instruction is a 13.56 MHz square wave.
Citation Information
Patent Citations
Wireless card plug-in and power-on device for a room
CN103441753A
Device and method for detecting card-in-field
CN104636696A