Infrared-based low-power intelligent water meter reading system, method and intelligent water meter

By using a reed tube and a microcontroller in the intelligent water meter with the design of infrared communication modules, the problem of high power consumption of infrared communication modules in the existing intelligent water meter is solved, and a low-power intelligent water meter reading system is realized.

CN114222205BActive Publication Date: 2025-02-14FUJIAN SHUITOU DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111501337.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-09
Publication Date
2025-02-14
Estimated Expiration
2041-12-09

AI Technical Summary

Technical Problem

When reading the near-end meter through infrared communication module in existing smart water meters, the power consumption is high and cannot meet the requirements of low-power consumption scenarios.

Method used

A low-power smart water meter based on infrared was designed, using a reed tube and a microcontroller to cooperate with the first infrared communication module, activate the infrared communication module through magnetic field interruption, and then put it into sleep mode after the meter reading was completed to reduce power consumption. .

Benefits of technology

It effectively reduces the power consumption of infrared communication modules, meets the meter reading needs of smart water meters in low-power scenarios, and improves the energy efficiency performance of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114222205B_ABST
    Figure CN114222205B_ABST
Patent Text Reader

Abstract

The present invention relates to a low-power intelligent water meter reading system and method based on infrared, and an intelligent water meter. The intelligent water meter comprises a first infrared communication module, a reed switch and a single-chip microcomputer; one end of the reed switch is grounded, and the other end is connected to the single-chip microcomputer, and the reed switch is used to generate an interrupt to the single-chip microcomputer when receiving an external magnetic field; the first infrared communication module is connected to the single-chip microcomputer, and is used to send meter reading data to the meter reading device; the single-chip microcomputer is used to activate the first infrared communication module and establish a communication connection with the meter reading device after receiving the interrupt generated by the reed switch. The infrared communication module is activated only when the intelligent water meter needs to be read, so that the infrared communication module works, and when the intelligent water meter does not need to be read, the infrared communication module is in a sleep mode, thereby greatly reducing the power consumption of the infrared communication module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of smart water meters, and in particular to an infrared-based low-power smart water meter reading system, method and smart water meter. Background Art

[0002] Smart water meters are a new type of water meter that uses modern microelectronics technology, modern sensor technology, and smart IC card technology to measure water consumption, transmit water consumption data, and settle transactions. Compared with traditional water meters, which generally only have the functions of flow collection and mechanical pointer display of water consumption, smart water meters are a great improvement. In addition to recording and electronically displaying water consumption, smart water meters can also control water consumption according to agreements.

[0003] There are two common meter reading modes for existing smart water meters, namely remote meter reading and local meter reading. Local meter reading generally uses infrared communication modules for meter reading. However, there is a key problem with using infrared communication modules for meter reading, which is that the power consumption of infrared communication modules is high when powered on, which cannot meet the requirements of smart water meters for low power consumption scenarios. Summary of the invention

[0004] In view of the above problems, the present application provides a low-power infrared-based smart water meter reading system, method and smart water meter to solve the problem of high power consumption in existing smart water meters using infrared communication modules and near-end meter reading.

[0005] To achieve the above object, the inventor provides an infrared-based low-power intelligent water meter, comprising a first infrared communication module, a reed switch and a single-chip microcomputer;

[0006] One end of the reed switch is grounded, and the other end is connected to the single-chip microcomputer. The reed switch is used to interrupt the single-chip microcomputer when receiving an external magnetic field;

[0007] The first infrared communication module is connected to the single chip microcomputer and is used to send meter reading data to the meter reading device;

[0008] The single chip microcomputer is used to activate the first infrared communication module and establish a communication connection with the meter reading device after receiving the interruption generated by the reed switch.

[0009] Further optimization, the single chip microcomputer is also used to determine whether the interruption generated by the reed switch exceeds a preset time after detecting that the interruption generated by the reed switch. If the preset time is reached, the first infrared communication module is activated. If it is lower than the preset time, it is determined to be magnetic interference.

[0010] Further optimization, the single chip microcomputer is also used to determine whether the received infrared signal is correct when receiving the infrared signal sent by the external device after the first infrared communication module is activated. If correct, information exchange is performed with the external device through the first infrared communication module.

[0011] Further optimization, the single chip microcomputer is also used to collect the interruption generated by the reed switch at preset intervals after the first infrared communication module is activated. If the interruption generated by the reed switch is collected, the first infrared communication module is kept working; if the interruption generated by the reed switch is not collected, the first infrared communication module is turned off.

[0012] Further optimization further includes an activation unit, wherein the activation unit includes a first MOS tube and a second MOS tube;

[0013] The first MOS tube is an N-channel MOS tube, the gate of the first MOS tube is connected to the single-chip microcomputer, the drain is connected to the gate of the second MOS tube, and the source is grounded;

[0014] The second MOS tube is a P-channel MOS tube, a source of the second MOS tube is connected to a working power supply, and a drain of the second MOS tube is connected to the first infrared communication module.

[0015] Another technical solution is also provided, a low-power consumption smart water meter reading system based on infrared, comprising a smart water meter and a meter reading device, wherein the smart water meter is the low-power consumption smart water meter based on infrared as described above;

[0016] The meter reading device comprises a magnetic field generating module and a second infrared communication module, wherein the magnetic field generating module is used to generate a magnetic field;

[0017] The second infrared communication module is used to exchange information with the first infrared communication module of the smart water meter.

[0018] Another technical solution is also provided, a low-power intelligent water meter reading method based on infrared, comprising the following steps:

[0019] The meter reading device generates a magnetic field to the reed switch of the smart water meter through the magnetic field generation module;

[0020] When the reed switch of the smart water meter receives the magnetic field, it interrupts the microcontroller;

[0021] After the single chip microcomputer detects that the reed switch generates an interrupt, the first infrared communication module is activated;

[0022] The first communication module of the smart water meter exchanges information with the second communication module of the meter reading device, and sends the meter reading data to the meter reading device.

[0023] Further optimization, the step of "activating the first infrared communication module after the single-chip microcomputer detects that the reed switch generates an interrupt" specifically includes the following steps:

[0024] When the microcontroller detects that the reed switch generates an interrupt, it determines whether the interrupt generated by the reed switch exceeds the preset time;

[0025] If the preset time is reached, the first infrared communication module is activated;

[0026] If it is lower than the preset time, it is judged as magnetic interference.

[0027] Further optimization, the step of "activating the first infrared communication module after the single-chip microcomputer detects that the reed switch generates an interrupt" also includes the following steps:

[0028] When the single chip computer activates the first infrared communication module, an infrared signal sent by an external device is received through the first infrared communication module;

[0029] Determine whether the received infrared signal is correct;

[0030] If it is correct, information exchange is performed with the external device through the first infrared communication module.

[0031] Further optimization, the step of "activating the first infrared communication module after the single-chip microcomputer detects that the reed switch generates an interrupt" also includes the following steps:

[0032] When the first infrared communication module is activated, the single chip microcomputer collects interrupts generated by the reed switch at preset intervals;

[0033] And determine whether the interruption generated by the reed switch is collected;

[0034] If the interruption generated by the reed switch is collected, the first infrared communication module is kept working;

[0035] If the interruption generated by the reed switch is not collected, the first infrared communication module is turned off.

[0036] Different from the prior art, the above technical solution, when the meter reading device reads the smart water meter, sends a magnetic field to the reed switch of the smart water meter. Under the action of the magnetic field, the reed switch is turned on, a falling edge is generated, and the single-chip microcomputer is triggered to generate an interrupt. After the single-chip microcomputer detects the interrupt generated by the reed switch, it activates the first infrared communication module to transmit the meter reading data to the meter reading device. After the meter reading data is completed, the first infrared communication module re-enters the sleep mode. The infrared communication module is activated only when the smart water meter needs to be read, so that the infrared communication module works, and when the smart water meter does not need to be read, the infrared communication module is in the sleep mode, thereby greatly reducing the power consumption of the infrared communication module.

[0037] The above-mentioned records related to the invention content are only an overview of the technical solution of the present application. In order to enable ordinary technicians in the field to more clearly understand the technical solution of the present application, and then implement it according to the text of the specification and the contents recorded in the drawings, and to make the above-mentioned purpose and other purposes, features and advantages of the present application easier to understand, the following is an explanation in combination with the specific implementation mode and drawings of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The drawings are only used to illustrate the principles, implementation methods, applications, characteristics and effects of the specific embodiments of the present application and other related contents, and shall not be considered as limitations of the present application.

[0039] In the drawings of the specification:

[0040] Figure 1 A structural schematic diagram of a low-power consumption infrared-based smart water meter according to a specific implementation method;

[0041] Figure 2 A schematic diagram of a circuit principle of the reed switch described in the specific implementation method;

[0042] Figure 3 A schematic diagram of a circuit principle of the first infrared communication module in a specific implementation manner;

[0043] Figure 4 A schematic diagram of a circuit principle of the activation module described in the specific implementation method;

[0044] Figure 5 A schematic diagram of the structure and principle of a low-power consumption intelligent water meter reading system based on infrared according to a specific implementation method;

[0045] Figure 6 The present invention is a flow chart of a low-power consumption intelligent water meter reading method based on infrared according to a specific implementation method.

[0046] The reference numerals in the above drawings are described as follows:

[0047] 100, smart water meter;

[0048] 110. Single chip microcomputer;

[0049] 120. Reed switch;

[0050] 130. a first infrared communication module;

[0051] 200. Meter reading equipment;

[0052] 210. Magnetic field generating module;

[0053] 220. A second infrared communication module. DETAILED DESCRIPTION

[0054] In order to explain in detail the possible application scenarios, technical principles, specific schemes that can be implemented, and the purposes and effects that can be achieved, the following is a detailed description of the specific embodiments listed in conjunction with the accompanying drawings. The embodiments described herein are only used to more clearly illustrate the technical solutions of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.

[0055] Reference to "embodiment" herein means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present application. The term "embodiment" appearing in various places in the specification does not necessarily refer to the same embodiment, nor does it particularly limit its independence or association with other embodiments. In principle, in the present application, as long as there is no technical contradiction or conflict, the various technical features mentioned in the embodiments can be combined in any way to form a corresponding implementable technical solution.

[0056] Unless otherwise defined, the technical terms used in this document have the same meanings as those generally understood by those skilled in the art to which this application belongs; the use of relevant terms in this document is only for describing specific embodiments and is not intended to limit this application.

[0057] In the description of this application, the term "and / or" is an expression used to describe the logical relationship between objects, indicating that three relationships may exist, for example, A and / or B, which means: A exists, B exists, and A and B exist at the same time. In addition, the character " / " in this article generally indicates that the objects before and after are in an "or" logical relationship.

[0058] In the present application, terms such as “first” and “second” are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship of quantity, priority or sequence between these entities or operations.

[0059] Without further limitations, in this application, the words "include", "comprises", "has" or other similar expressions used in the sentences are intended to cover non-exclusive inclusion. These expressions do not exclude the presence of additional elements in the process, method or product including the elements, so that the process, method or product including a series of elements may include not only those limited elements, but also other elements not explicitly listed, or also include elements inherent to such process, method or product.

[0060] Similar to the understanding in the Examination Guidelines, in this application, expressions such as "greater than", "less than", "exceed" and the like are understood to exclude the number itself; expressions such as "above", "below", "within" and the like are understood to include the number itself. In addition, in the description of the embodiments of this application, "multiple" means more than two (including two), and similar expressions related to "multiple" are also understood in this way, such as "multiple groups", "multiple times", etc., unless otherwise clearly and specifically limited.

[0061] In the description of the embodiments of the present application, space-related expressions used, such as "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "vertical", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc., indicate the orientation or position relationship based on the orientation or position relationship shown in the specific embodiments or drawings, and are only for the convenience of describing the specific embodiments of the present application or facilitating the reader's understanding, and do not indicate or imply that the referred device or component must have a specific position, a specific orientation, or be constructed or operated in a specific orientation, and therefore cannot be understood as a limitation on the embodiments of the present application.

[0062] Unless otherwise expressly specified or limited, in the description of the embodiments of the present application, the terms such as "install", "connect", "connect", "fix", "set", etc. used should be understood in a broad sense. For example, the "connection" can be a fixed connection, a detachable connection, or an integrated setting; it can be a mechanical connection, an electrical connection, or a communication connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium; it can be the internal connection of two elements or the interaction relationship between two elements. For technicians in the technical field to which the present application belongs, the specific meanings of the above terms in the embodiments of the present application can be understood according to the specific circumstances.

[0063] See also Figure 1-3 , this embodiment provides an infrared-based low-power intelligent water meter 100, including a first infrared communication module 130, a reed switch 120 and a single-chip microcomputer 110;

[0064] One end of the reed switch 120 is grounded, and the other end is connected to the microcontroller 110. The reed switch 120 is used to interrupt the microcontroller 110 when receiving an external magnetic field. One end of the reed switch 120 is connected to GND, and the other end is connected to the pin Warning_ON of the microcontroller 110.

[0065] The first infrared communication module 130 is connected to the microcontroller 110 for sending meter reading data to the meter reading device; the first infrared communication module 130 is connected to the pins IRVCC and IRD_RX of the microcontroller 110, and the microcontroller 110 receives the external infrared signal received by the first infrared communication module 130 through the pin IRD_RX.

[0066] The single chip microcomputer 110 is used to activate the first infrared communication module 130 and establish a communication connection with the meter reading device after receiving an interruption generated by the reed switch 120.

[0067] The reed switch 120, also known as a reed switch, is an electrical switch operated by an applied magnetic field. The reed switch is composed of two magnetic reeds (usually made of two metals, iron and nickel) sealed in a glass tube. The two magnetic reeds are overlapped but separated by a small gap. An appropriate external magnetic field will cause the two magnetic reeds to contact.

[0068] When the meter reading device reads the smart water meter 100, a magnetic field is sent to the reed switch 120 of the smart water meter 100. Under the action of the magnetic field, the reed switch 120 is turned on, a falling edge is generated, and the single-chip microcomputer 110 is triggered to generate an interrupt. After the single-chip microcomputer 110 detects that the reed switch 120 has generated an interrupt, the first infrared communication module 130 is activated to transmit the meter reading data to the meter reading device. After the meter reading data is completed, the first infrared communication module 130 re-enters the sleep mode. The infrared communication module is activated only when the smart water meter 100 needs to be read, so that the infrared communication module works, and when the smart water meter 100 does not need to be read, the infrared communication module is in the sleep mode, thereby greatly reducing the power consumption of the infrared communication module.

[0069] In some embodiments, if the reed switch 120 is directly connected to the power supply, although the function of turning on the infrared communication module can be solved, the smart water meter 100 also lacks the detection of environmental magnetic interference; and if two reed switches 120 are selected, although the functional requirements can be met, due to the unknowability of the environment, when there is magnetic interference in the environment, the two reed switches 120 are simultaneously attracted, resulting in indirect opening of the infrared communication module, and the cost is also increased. By selecting a reed switch 120, through the single-chip microcomputer 110 detection, it is determined whether the current situation is infrared communication or magnetic interference, and then whether to activate the infrared communication module. Specifically, the single-chip microcomputer 110 is also used to determine whether the interruption generated by the reed switch 120 exceeds the preset time after detecting that the interruption is generated by the reed switch 120. If the preset time is reached, the first infrared communication module 130 is activated. If it is less than the preset time, it is determined to be magnetic interference. When the reed switch 120 is turned on due to the external magnetic field, the single-chip computer 110 detects an interruption. At this time, the single-chip computer 110 determines whether the conduction time of the reed switch 120 exceeds the preset time, that is, whether the interruption generated by the reed switch 120 exceeds the preset time, such as 10 seconds. When it is less than the preset time, it can be determined as magnetic interference. At this time, the first infrared communication module 130 is not activated. When the attraction time of the reed switch 120 is greater than the preset time, that is, the interruption generated by the reed switch 120 exceeds the preset time, it is first determined to be non-magnetic interference, and the first infrared communication module 130 is activated, and the first infrared communication module 130 starts to work.

[0070] In some embodiments, the single chip microcomputer 110 is also used to determine whether the received infrared signal is correct when receiving an infrared signal sent by an external device after the first infrared communication module 130 is activated. If correct, information is exchanged with the external device through the first infrared communication module 130.

[0071] After the single-chip computer 110 activates the first infrared communication module 130, the first infrared communication module 130 receives an external infrared signal. When the external device sends an infrared signal for meter reading, it is first determined whether the received infrared signal is correct, wherein it can be determined by whether the received infrared signal contains the device ID of the external device. If it does not contain the device ID, it is considered that the received infrared signal is wrong. If the received infrared signal contains the device ID, it is determined whether the device ID is consistent with the stored device ID. If it is consistent, it is determined that the received infrared signal is correct. If it is not consistent, it is determined that the received infrared signal is wrong. When it is determined that the received infrared signal is wrong, the first infrared communication module 130 is put into sleep again. If it is determined that the received infrared signal is correct, information is exchanged with the external device through the first infrared communication module 130. Further avoid external magnetic interference and prevent others from illegally obtaining meter reading data.

[0072] In some embodiments, the single chip computer 110 is also used to collect the interruption generated by the reed switch 120 at preset intervals after activating the first infrared communication module 130. If the interruption generated by the reed switch 120 is collected, the first infrared communication module 130 is kept working; if the interruption generated by the reed switch 120 is not collected, the first infrared communication module 130 is turned off.

[0073] After the single-chip microcomputer 110 activates the first infrared communication module 130, the input signal of the reed switch 120 is collected every period of time to determine whether the reed switch 120 is in the energized state, that is, whether the reed switch 120 continues to generate interrupts. If the interruption generated by the reed switch 120 is collected, it means that the reed switch 120 is in the energized state. At this time, the meter reading device exchanges information with the smart water meter 100 through the first infrared communication module 130. When the interruption generated by the reed switch 120 is not detected, it means that the reed switch 120 is in a disconnected state this time, and the meter reading device has completed the information exchange with the smart water meter 100. At this time, the single-chip microcomputer 110 turns off the first infrared communication module 130. When the reed switch 120 is in the energized state, the first infrared communication module 130 continues to work, thereby ensuring the sustainability of infrared information interaction; at the same time, it also ensures that after the infrared communication is completed, the single-chip microcomputer 110 can autonomously turn off the first infrared communication module 130 to reduce power consumption. In other embodiments, when the single-chip microcomputer 110 detects that the reed switch 120 is in the energized state, and does not receive an external infrared signal through the first infrared communication module 130 for a preset period of time, it is determined that this is magnetic interference, and the first infrared communication module 130 is disconnected. In some embodiments, an alarm module is also included, and the alarm module is connected to the single-chip microcomputer 110. The single-chip microcomputer 110 is used to alarm through an alarm when it is determined that the reed switch 120 receives external magnetic interference.

[0074] See also Figure 4 , in some embodiments, further comprising an activation unit, wherein the activation unit comprises a first MOS tube and a second MOS tube;

[0075] The first MOS transistor is an N-channel MOS transistor, the gate of the first MOS transistor is connected to the single-chip computer 110, the drain is connected to the gate of the second MOS transistor, and the source is grounded;

[0076] The second MOS transistor is a P-channel MOS transistor, a source of the second MOS transistor is connected to a working power supply, and a drain of the second MOS transistor is connected to the first infrared communication module 130 .

[0077] When the single-chip microcomputer 110 needs to activate the first infrared communication module 130, the pin IRVCC_EN of the single-chip microcomputer 110 outputs a high level, and this time the first MOS tube is turned on, the gate of the second MOS tube is grounded, and then the second MOS tube is turned on, so that the working power is input to the first infrared communication module 130, the first infrared communication module 130 is powered, the first infrared communication module 130 is activated, the first infrared communication module 130 works, and the pin IRD_RX of the single-chip microcomputer 110 receives the first infrared communication module 130 to receive external infrared signals.

[0078] See also Figure 5 In another embodiment, a low-power smart water meter reading system based on infrared includes a smart water meter 100 and a meter reading device 200, wherein the smart water meter 100 is the low-power smart water meter 100 based on infrared described above;

[0079] The meter reading device 200 includes a magnetic field generating module 210 and a second infrared communication module 220 . The magnetic field generating module 210 is used to generate a magnetic field. The magnetic field generating module may be an electromagnet.

[0080] The second infrared communication module 220 is used to exchange information with the first infrared communication module 130 of the smart water meter 100; the smart water meter 100 includes the first infrared communication module 130, the reed switch 120 and the single chip microcomputer;

[0081] One end of the reed switch 120 is grounded, and the other end is connected to the microcontroller 110. The reed switch 120 is used to interrupt the microcontroller 110 when receiving an external magnetic field. One end of the reed switch 120 is connected to GND, and the other end is connected to the pin Warning_ON of the microcontroller 110.

[0082] The first infrared communication module 130 is connected to the single-chip microcomputer 110 and is used to send meter reading data to the meter reading device 200; the first infrared communication module 130 is connected to the pins IRVCC and IRD_RX of the single-chip microcomputer 110, and the single-chip microcomputer 110 receives the external infrared signal received by the first infrared communication module 130 through the pin IRD_RX.

[0083] The single chip microcomputer 110 is used to activate the first infrared communication module 130 and establish a communication connection with the meter reading device 200 after receiving an interruption generated by the reed switch 120 .

[0084] The reed switch 120, also known as a reed switch, is an electrical switch operated by an applied magnetic field. The reed switch is composed of two magnetic reeds (usually made of two metals, iron and nickel) sealed in a glass tube. The two magnetic reeds are overlapped but separated by a small gap. An appropriate external magnetic field will cause the two magnetic reeds to contact.

[0085] When the meter reading device 200 reads the smart water meter 100, the magnetic field is sent to the reed switch 120 of the smart water meter 100 through the magnetic field generating module 210. Under the action of the magnetic field, the reed switch 120 is turned on and generates a falling edge, triggering the single-chip microcomputer 110 to generate an interrupt. After the single-chip microcomputer 110 detects that the reed switch 120 generates an interrupt, the meter reading device 200 exchanges information with the second infrared communication module 220 through the second infrared communication module 220 by activating the first infrared communication module 130. The single-chip microcomputer 110 transmits the meter reading data to the meter reading device 200 through the first infrared communication module 130. After the meter reading data is completed, the first infrared communication module 130 re-enters the sleep mode. The infrared communication module is activated only when the smart water meter 100 needs to be read, so that the infrared communication module works, and when the smart water meter 100 does not need to be read, the infrared communication module is in the sleep mode, thereby greatly reducing the power consumption of the infrared communication module.

[0086] In some embodiments, if the reed switch 120 is directly connected to the power supply, although the function of turning on the infrared communication module can be solved, the smart water meter 100 also lacks the detection of environmental magnetic interference; and if two reed switches 120 are selected, although the functional requirements can be met, due to the unknowability of the environment, when there is magnetic interference in the environment, the two reed switches 120 are simultaneously attracted, resulting in indirect opening of the infrared communication module, and the cost is also increased. By selecting a reed switch 120, through the single-chip microcomputer 110 detection, it is determined whether the current situation is infrared communication or magnetic interference, and then whether to activate the infrared communication module. Specifically, the single-chip microcomputer 110 is also used to determine whether the interruption generated by the reed switch 120 exceeds the preset time after detecting that the interruption is generated by the reed switch 120. If the preset time is reached, the first infrared communication module 130 is activated. If it is less than the preset time, it is determined to be magnetic interference. When the reed switch 120 is turned on due to the external magnetic field, the single-chip computer 110 detects an interruption. At this time, the single-chip computer 110 determines whether the conduction time of the reed switch 120 exceeds the preset time, that is, whether the interruption generated by the reed switch 120 exceeds the preset time, such as 10 seconds. When it is less than the preset time, it can be determined as magnetic interference. At this time, the first infrared communication module 130 is not activated. When the attraction time of the reed switch 120 is greater than the preset time, that is, the interruption generated by the reed switch 120 exceeds the preset time, it is first determined to be non-magnetic interference, and the first infrared communication module 130 is activated, and the first infrared communication module 130 starts to work.

[0087] In some embodiments, the single chip microcomputer 110 is also used to determine whether the received infrared signal is correct when receiving an infrared signal sent by an external device after the first infrared communication module 130 is activated. If correct, information is exchanged with the external device through the first infrared communication module 130.

[0088] After the single-chip computer 110 activates the first infrared communication module 130, the first infrared communication module 130 receives an external infrared signal. When the external device sends an infrared signal for meter reading, it is first determined whether the received infrared signal is correct, wherein it can be determined by whether the received infrared signal contains the device ID of the external device. If it does not contain the device ID, it is considered that the received infrared signal is wrong. If the received infrared signal contains the device ID, it is determined whether the device ID is consistent with the stored device ID. If it is consistent, it is determined that the received infrared signal is correct. If it is not consistent, it is determined that the received infrared signal is wrong. When it is determined that the received infrared signal is wrong, the first infrared communication module 130 is put into sleep again. If it is determined that the received infrared signal is correct, information is exchanged with the external device through the first infrared communication module 130. Further avoid external magnetic interference and prevent others from illegally obtaining meter reading data.

[0089] In some embodiments, the single chip computer 110 is also used to collect the interruption generated by the reed switch 120 at preset intervals after activating the first infrared communication module 130. If the interruption generated by the reed switch 120 is collected, the first infrared communication module 130 is kept working; if the interruption generated by the reed switch 120 is not collected, the first infrared communication module 130 is turned off.

[0090] After the single-chip microcomputer 110 activates the first infrared communication module 130, the input signal of the reed switch 120 is collected every period of time to determine whether the reed switch 120 is in the energized state, that is, whether the reed switch 120 continues to generate interrupts. If the interruption generated by the reed switch 120 is collected, it means that the reed switch 120 is in the energized state. At this time, the meter reading device 200 exchanges information with the smart water meter 100 through the first infrared communication module 130. When the interruption generated by the reed switch 120 is not detected, it means that the reed switch 120 is in the disconnected state this time, and the meter reading device 200 has completed the information exchange with the smart water meter 100. At this time, the single-chip microcomputer 110 turns off the first infrared communication module 130. When the reed switch 120 is in the energized state, the first infrared communication module 130 continues to work, ensuring the sustainability of infrared information interaction; at the same time, it also ensures that after the infrared communication is completed, the single-chip microcomputer 110 can autonomously turn off the first infrared communication module 130 to reduce power consumption. In other embodiments, when the single-chip microcomputer 110 detects that the reed switch 120 is in the energized state, and does not receive an external infrared signal through the first infrared communication module 130 for a preset period of time, it is determined that this is magnetic interference, and the first infrared communication module 130 is disconnected. In some embodiments, an alarm module is also included, and the alarm module is connected to the single-chip microcomputer 110. The single-chip microcomputer 110 is used to alarm through an alarm when it is determined that the reed switch 120 receives external magnetic interference.

[0091] See also Figure 4 , in some embodiments, further comprising an activation unit, wherein the activation unit comprises a first MOS tube and a second MOS tube;

[0092] The first MOS transistor is an N-channel MOS transistor, the gate of the first MOS transistor is connected to the single-chip computer 110, the drain is connected to the gate of the second MOS transistor, and the source is grounded;

[0093] The second MOS transistor is a P-channel MOS transistor, a source of the second MOS transistor is connected to a working power supply, and a drain of the second MOS transistor is connected to the first infrared communication module 130 .

[0094] When the single-chip microcomputer 110 needs to activate the first infrared communication module 130, the pin IRVCC_EN of the single-chip microcomputer 110 outputs a high level, and this time the first MOS tube is turned on, the gate of the second MOS tube is grounded, and then the second MOS tube is turned on, so that the working power is input to the first infrared communication module 130, the first infrared communication module 130 is powered, the first infrared communication module 130 is activated, the first infrared communication module 130 works, and the pin IRD_RX of the single-chip microcomputer 110 receives the first infrared communication module 130 to receive external infrared signals.

[0095] See also Figure 6In another embodiment, a low-power intelligent water meter reading method based on infrared is applied to the low-power intelligent water meter reading system based on infrared in the above embodiment, and the method comprises the following steps:

[0096] Step S610: the meter reading device generates a magnetic field to the reed switch of the smart water meter through the magnetic field generation module;

[0097] Step S620: After the reed switch of the smart water meter receives the magnetic field, an interrupt is generated to the single-chip microcomputer;

[0098] Step S630: After the single chip microcomputer detects that the reed switch generates an interrupt, the first infrared communication module is activated;

[0099] Step S640: the first communication module of the smart water meter exchanges information with the second communication module of the meter reading device, and sends the meter reading data to the meter reading device.

[0100] When the meter reading device reads the smart water meter, the magnetic field is sent to the reed switch of the smart water meter through the magnetic field generation module. Under the action of the magnetic field, the reed switch is turned on, a falling edge is generated, and the single-chip microcomputer is triggered to generate an interrupt. After the single-chip microcomputer detects that the reed switch has generated an interrupt, the meter reading device exchanges information with the second infrared communication module through the second infrared communication module by activating the first infrared communication module. The single-chip microcomputer transmits the meter reading data to the meter reading device through the first infrared communication module. After the meter reading data is completed, the first infrared communication module re-enters the sleep mode. The infrared communication module is activated only when the smart water meter needs to be read, so that the infrared communication module works, and when the smart water meter does not need to be read, the infrared communication module is in the sleep mode, thereby greatly reducing the power consumption of the infrared communication module.

[0101] In some embodiments, if the reed switch is directly connected to the power supply, although the function of turning on the infrared communication module can be solved, the smart water meter also lacks the detection of environmental magnetic interference; and if two reed switches are selected, although the functional requirements can be met, due to the unknowability of the environment, when there is magnetic interference in the environment, the two reed switches are simultaneously attracted, resulting in indirect opening of the infrared communication module, and the cost is also increased. By selecting a reed switch and detecting it through the single-chip microcomputer, it is determined whether the current situation is infrared communication or magnetic interference, and then whether to activate the infrared communication module. Specifically, the step of "activating the first infrared communication module after the single-chip microcomputer detects that the reed switch has generated an interrupt" specifically includes the following steps:

[0102] When the microcontroller detects that the reed switch generates an interrupt, it determines whether the interrupt generated by the reed switch exceeds the preset time;

[0103] If the preset time is reached, the first infrared communication module is activated;

[0104] If it is lower than the preset time, it is judged as magnetic interference.

[0105] When the reed switch is turned on due to the external magnetic field, the single-chip microcomputer detects an interruption. At this time, the single-chip microcomputer determines whether the conduction time of the reed switch exceeds the preset time, that is, whether the interruption caused by the reed switch exceeds the preset time, such as 10 seconds. When it is less than the preset time, it can be determined as magnetic interference. At this time, the first infrared communication module is not activated. When the attraction time of the reed switch is greater than the preset time, that is, the interruption caused by the reed switch exceeds the preset time, it is first determined to be non-magnetic interference, and the first infrared communication module is activated and starts working.

[0106] In some embodiments, the step of "activating the first infrared communication module after the microcontroller detects that the reed switch generates an interrupt" further includes the following steps:

[0107] When the single chip computer activates the first infrared communication module, an infrared signal sent by an external device is received through the first infrared communication module;

[0108] Determine whether the received infrared signal is correct;

[0109] If it is correct, information exchange is performed with the external device through the first infrared communication module.

[0110] After the single-chip computer activates the first infrared communication module, it receives an external infrared signal through the first infrared communication module. When the external device sends an infrared signal for meter reading, it first determines whether the received infrared signal is correct. It can be determined by whether the received infrared signal contains the device ID of the external device. If it does not contain the device ID, it is considered that the received infrared signal is wrong. If the received infrared signal contains the device ID, it is determined whether the device ID is consistent with the stored device ID. If it is consistent, it is determined that the received infrared signal is correct. If it is not consistent, it is determined that the received infrared signal is wrong. When it is determined that the received infrared signal is wrong, the first infrared communication module is put into sleep again. If it is determined that the received infrared signal is correct, information is exchanged with the external device through the first infrared communication module. Further avoid external magnetic interference and prevent others from illegally obtaining meter reading data.

[0111] In some embodiments, the step of "activating the first infrared communication module after the microcontroller detects that the reed switch generates an interrupt" further includes the following steps:

[0112] When the first infrared communication module is activated, the single chip microcomputer collects interrupts generated by the reed switch at preset intervals;

[0113] And determine whether the interruption generated by the reed switch is collected;

[0114] If the interruption generated by the reed switch is collected, the first infrared communication module is kept working;

[0115] If the interruption generated by the reed switch is not collected, the first infrared communication module is turned off.

[0116] After the single-chip microcomputer activates the first infrared communication module, it collects the input signal of the reed switch every period of time to determine whether the reed switch is in the energized state, that is, whether the reed switch continues to generate interrupts. If the interruption generated by the reed switch is collected, it means that the reed switch is in the energized state. At this time, the meter reading device exchanges information with the smart water meter through the first infrared communication module. When the interruption generated by the reed switch is not detected, it means that the reed switch is in the disconnected state this time, and the meter reading device has completed the information exchange with the smart water meter. At this time, the single-chip microcomputer turns off the first infrared communication module. When the reed switch is in the energized state, the first infrared communication module continues to work, ensuring the sustainability of infrared information interaction; at the same time, it also ensures that after the infrared communication is completed, the single-chip microcomputer can autonomously turn off the first infrared communication module to reduce power consumption. In other embodiments, when the single-chip microcomputer detects that the reed switch is in the energized state, and the external infrared signal is not received through the first infrared communication module for a preset period of time, it is determined that this is magnetic interference; then the first infrared communication module is disconnected. In some embodiments, an alarm module is further included, wherein the alarm module is connected to a single chip microcomputer, and the single chip microcomputer is used to generate an alarm through an alarm when it is determined that the reed switch receives external magnetic interference.

[0117] Finally, it should be noted that although the above embodiments have been described in the specification and drawings of this application, this does not limit the scope of patent protection of this application. All technical solutions generated by replacing or modifying equivalent structures or equivalent processes based on the essential concept of this application using the contents recorded in the specification and drawings of this application, as well as directly or indirectly implementing the technical solutions of the above embodiments in other related technical fields, are included in the scope of patent protection of this application.

Claims

1. A low-power intelligent water meter based on infrared, characterized in that: It includes a first infrared communication module, a reed switch and a single-chip microcomputer; One end of the reed switch is grounded, and the other end is connected to the single-chip microcomputer. The reed switch is used to interrupt the single-chip microcomputer when receiving an external magnetic field; The first infrared communication module is connected to the single chip microcomputer and is used to send meter reading data to the meter reading device; The single chip microcomputer is used to activate the first infrared communication module and establish a communication connection with the meter reading device after receiving the interruption generated by the reed switch; The single chip microcomputer is also used to determine whether the received infrared signal is correct when receiving the infrared signal sent by the external device after the first infrared communication module is activated, and if correct, to exchange information with the external device through the first infrared communication module; The single chip microcomputer is also used to determine whether the interruption generated by the reed switch exceeds a preset time after detecting that the interruption generated by the reed switch. If the preset time is reached, the first infrared communication module is activated. If it is less than the preset time, it is determined to be magnetic interference.

2. The infrared-based low-power smart water meter according to claim 1, characterized in that: The single chip microcomputer is also used to collect the interruption generated by the reed switch at preset intervals after activating the first infrared communication module. If the interruption generated by the reed switch is collected, the first infrared communication module is kept working; if the interruption generated by the reed switch is not collected, the first infrared communication module is turned off.

3. The infrared-based low-power smart water meter according to claim 1, characterized in that: Also includes an activation unit, the activation unit includes a first MOS tube and a second MOS tube; The first MOS tube is an N-channel MOS tube, the gate of the first MOS tube is connected to the single-chip microcomputer, the drain is connected to the gate of the second MOS tube, and the source is grounded; The second MOS tube is a P-channel MOS tube, a source of the second MOS tube is connected to a working power supply, and a drain of the second MOS tube is connected to the first infrared communication module.

4. A low-power intelligent water meter reading system based on infrared, characterized in that: It comprises a smart water meter and a meter reading device, wherein the smart water meter is an infrared-based low-power smart water meter as described in any one of claims 1 to 3; The meter reading device comprises a magnetic field generating module and a second infrared communication module, wherein the magnetic field generating module is used to generate a magnetic field; The second infrared communication module is used to exchange information with the first infrared communication module of the smart water meter.

5. A low-power intelligent water meter reading method based on infrared, characterized in that: The following steps are involved: The meter reading device generates a magnetic field to the reed switch of the smart water meter through the magnetic field generation module; When the reed switch of the smart water meter receives the magnetic field, it interrupts the microcontroller; After the single chip microcomputer detects that the reed switch generates an interrupt, the first infrared communication module is activated; The first communication module of the smart water meter exchanges information with the second communication module of the meter reading device, and sends the meter reading data to the meter reading device; The step of "activating the first infrared communication module after the single chip microcomputer detects that the reed switch generates an interrupt" also includes the following steps: When the single chip computer activates the first infrared communication module, the infrared signal sent by the external device is received through the first infrared communication module; Determine whether the received infrared signal is correct; If it is correct, information exchange is performed with the external device through the first infrared communication module; The step of "activating the first infrared communication module after the single chip microcomputer detects that the reed switch generates an interrupt" specifically includes the following steps: When the microcontroller detects that the reed switch generates an interrupt, it determines whether the interrupt generated by the reed switch exceeds the preset time; If the preset time is reached, the first infrared communication module is activated; If it is lower than the preset time, it is judged as magnetic interference.

6. According to claim 5, the infrared-based low-power intelligent water meter reading method is characterized in that: The step of "activating the first infrared communication module after the single chip microcomputer detects that the reed switch generates an interrupt" also includes the following steps: When the first infrared communication module is activated, the single chip microcomputer collects interrupts generated by the reed switch at preset intervals; And determine whether the interruption generated by the reed switch is collected; If the interruption generated by the reed switch is collected, the first infrared communication module is kept working; If the interruption generated by the reed switch is not collected, the first infrared communication module is turned off.