Modbus protocol water meter parameter acquisition device
By designing a modbus protocol water meter parameter acquisition device and using wireless communication and RS485 conversion modules to automatically collect and transmit water meter data, it solves the time-consuming and labor-intensive problem of manually transcribing water meter readings and achieves efficient and automatic water meter data collection and monitoring.
Patent Information
- Application Number
- CN202420261811.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-02
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2034-02-02
AI Technical Summary
In the existing technology, water meter readings need to be transcribed manually, which is time-consuming and labor-intensive and has low work efficiency.
Design a modbus protocol water meter parameter acquisition device, including a casing and an electronic circuit board, integrated controller, wireless communication module, channel switching module, address switching module and RS485 conversion module. It communicates remotely with terminal equipment through the wireless communication module to realize water meters. Automatic collection and transmission of data.
There is no need for manual meter reading, which reduces labor costs and improves work efficiency. It can collect and monitor water meter data in real time, which facilitates water consumption analysis and fault detection.
Smart Images

Figure CN221930131U_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Modbus protocol water meter parameter collection, and in particular to a Modbus protocol water meter parameter collection device. Background Art
[0002] Water and electricity are necessities of modern human life, and every household has installed water and electricity meters for billing. The traditional way of billing water and electricity meters is to read the readings manually from door to door. Even with the emergence of centralized meter boxes and meter readers, this work is still labor-intensive and error-prone. Utility Model Content
[0003] To this end, the present application provides a Modbus protocol water meter parameter collection device to solve the problem in the prior art that water meter readings need to be manually copied, which is time-consuming, labor-intensive and has low work efficiency.
[0004] In order to achieve the above-mentioned object, the present application provides the following technical solution: a Modbus protocol water meter parameter acquisition device, characterized in that it includes a housing and an electronic circuit board arranged in the housing;
[0005] The electronic circuit board is integrated with a controller, a wireless communication module, a channel switching module, an address switching module, an RS485 conversion module and a switch power module, the output ends of the channel switching module and the address switching module are both connected to the controller, the input end of the RS485 conversion module is connected to a modbus protocol water meter, the output end of the RS485 conversion module is connected to the controller, the controller remotely communicates with a terminal device through the wireless communication module, and the output end of the switch power module is respectively connected to the controller, the wireless communication module, the channel switching module, the address switching module, and the RS485 conversion module;
[0006] Among them, the channel switching module is used to set the channel of the water meter parameters, the address switching module is used to set the transmission address of the water meter parameters, and the RS485 conversion module is used to convert the data of the modbus protocol water meter into data that can be received by the controller.
[0007] Optionally, the controller is a STC32G12K128-LQFP32 controller.
[0008] Optionally, the wireless communication module is an A39-T400A21S1A wireless communication module, the first pin of the wireless communication module is connected to the sixth pin of the controller, the second pin of the wireless communication module is connected to the fifth pin of the controller, the third pin of the wireless communication module is connected to the 30th pin of the controller, and the fourth pin of the wireless communication module is connected to the 29th pin of the controller.
[0009] Optionally, the channel switching module includes a first switch module and a first electrostatic discharge protection module;
[0010] The switch module includes a first dial switch S201;
[0011] The first dip switch S201 is a four-channel dip switch, the 1st pin, the 2nd pin, the 3rd pin and the 4th pin of the first dip switch S201 are all grounded, the 5th pin of the first dip switch S201 is connected to the 15th pin of the controller, the 6th pin of the first dip switch S201 is connected to the 16th pin of the controller, the 7th pin of the first dip switch S201 is connected to the 17th pin of the controller, and the 8th pin of the first dip switch S201 is connected to the 18th pin of the controller.
[0012] Optionally, the first electrostatic discharge protection module includes a first electrostatic discharge protection device D201, a first resistor R201, a second resistor R202, a third resistor R204, a fourth resistor R206, a first capacitor C203, a second capacitor C204, a third capacitor C205 and a fourth capacitor C206;
[0013] The first pin of the first electrostatic discharge protection device D201 is connected to the fifth pin of the first dip switch S201, the second pin of the first electrostatic discharge protection device D201 is grounded, the third pin of the first electrostatic discharge protection device D201 is connected to the 19th pin of the controller, the fourth pin of the first electrostatic discharge protection device D201 is connected to the eighth pin of the first dip switch S201, the fifth pin of the first electrostatic discharge protection device D201 is connected to the seventh pin of the first dip switch S201, and the sixth pin of the first electrostatic discharge protection device D201 is connected to the sixth pin of the first dip switch S201;
[0014] One end of the first resistor R201, the second resistor R202, the third resistor R204 and the fourth resistor R206 are all connected to the +5V power supply output terminal, the other end of the first resistor R201 is connected to the 8th pin of the first dip switch S201, the other end of the second resistor R202 is connected to the 7th pin of the first dip switch S201, the other end of the third resistor R204 is connected to the 6th pin of the first dip switch S201, and the other end of the fourth resistor R206 is connected to the 5th pin of the first dip switch S201;
[0015] One end of the first capacitor C203 is connected to the 8th pin of the first dip switch S201, one end of the second capacitor C204 is connected to the 7th pin of the first dip switch S201, one end of the third capacitor C205 is connected to the 6th pin of the first dip switch S201, one end of the fourth capacitor C206 is connected to the 5th pin of the first dip switch S201, and the other ends of the first capacitor C203, the second capacitor C204, the third capacitor C205 and the fourth capacitor C206 are all grounded.
[0016] Optionally, the first electrostatic discharge protection device D201 is an ESD electrostatic diode, and a model of the ESD electrostatic diode is TPE05H5S6.
[0017] Optionally, the address switching module includes a second switch module and a second electrostatic discharge protection module;
[0018] The second switch module includes a second dial switch S202;
[0019] The second dip switch S202 is an eight-channel dip switch, and pin 1, pin 2, pin 3, pin 4, pin 5, pin 6, pin 7 and pin 8 of the second dip switch S202 are all grounded, pin 9 of the second dip switch S202 is connected to pin 21 of the controller, pin 10 of the second dip switch S202 is connected to pin 22 of the controller, pin 11 of the second dip switch S202 is connected to pin 23 of the controller, pin 12 of the second dip switch S202 is connected to pin 24 of the controller, pin 13 of the second dip switch S202 is connected to pin 25 of the controller, pin 14 of the second dip switch S202 is connected to pin 26 of the controller, pin 15 of the second dip switch S202 is connected to pin 27 of the controller, and pin 16 of the second dip switch S202 is connected to pin 28 of the controller.
[0020] Optionally, the second electrostatic discharge protection module includes a second electrostatic discharge protection device D202, a third electrostatic discharge protection device D203, a fifth resistor R203, a sixth resistor R205, a seventh resistor R207, an eighth resistor R208, a ninth resistor R209, a tenth resistor R210, an eleventh resistor R211, a twelfth resistor R212, a fifth capacitor C207, a sixth capacitor C208, a seventh capacitor C209, an eighth capacitor C210, a ninth capacitor C211, a tenth capacitor C212, an eleventh capacitor C213, and a twelfth capacitor C214.
[0021] Optionally, the first pin of the second electrostatic discharge protection device D202 is connected to the tenth pin of the second dip switch S202, the second pin of the second electrostatic discharge protection device D202 is grounded, the third pin of the second electrostatic discharge protection device D202 is connected to the ninth pin of the second dip switch S202, the fourth pin of the second electrostatic discharge protection device D202 is suspended, the fifth pin of the second electrostatic discharge protection device D202 is connected to the eleventh pin of the second dip switch S202, and the sixth pin of the second electrostatic discharge protection device D202 is connected to the twelfth pin of the second dip switch S202;
[0022] The first pin of the third electrostatic discharge protection device D203 is suspended, the second pin of the third electrostatic discharge protection device D203 is grounded, the third pin of the third electrostatic discharge protection device D203 is connected to the 13th pin of the second dip switch S202, the fourth pin of the third electrostatic discharge protection device D203 is connected to the 14th pin of the second dip switch S202, the fifth pin of the third electrostatic discharge protection device D203 is connected to the 15th pin of the second dip switch S202, and the sixth pin of the third electrostatic discharge protection device D203 is connected to the 16th pin of the second dip switch S202.
[0023] Optionally, one end of the fifth resistor R203, the sixth resistor R205, the seventh resistor R207, the eighth resistor R208, the ninth resistor R209, the tenth resistor R210, the eleventh resistor R211 and the twelfth resistor R212 are all connected to the +5V power supply output terminal, the other end of the fifth resistor R203 is connected to the 16th pin of the second dip switch S202, the other end of the sixth resistor R205 is connected to the 15th pin of the second dip switch S202, and the other end of the seventh resistor R207 is connected to the second The other end of the eighth resistor R208 is connected to the 13th pin of the second dip switch S202, the other end of the ninth resistor R209 is connected to the 12th pin of the second dip switch S202, the other end of the tenth resistor R210 is connected to the 11th pin of the second dip switch S202, the other end of the eleventh resistor R211 is connected to the 10th pin of the second dip switch S202, and the other end of the twelfth resistor R212 is connected to the 9th pin of the second dip switch S202;
[0024] One end of the fifth capacitor C207 is connected to the 16th pin of the second dial switch S202, one end of the sixth capacitor C208 is connected to the 15th pin of the second dial switch S202, one end of the seventh capacitor C209 is connected to the 14th pin of the second dial switch S202, one end of the eighth capacitor C210 is connected to the 13th pin of the second dial switch S202, one end of the ninth capacitor C211 is connected to the 12th pin of the second dial switch S202, and one end of the tenth capacitor C212 is connected to the The 11th pin of the second DIP switch S202 is connected, one end of the 11th capacitor C213 is connected to the 10th pin of the second DIP switch S202, one end of the twelfth capacitor C214 is connected to the 9th pin of the second DIP switch S202, and the other ends of the fifth capacitor C207, the sixth capacitor C208, the seventh capacitor C209, the eighth capacitor C210, the ninth capacitor C211, the tenth capacitor C212, the eleventh capacitor C213 and the twelfth capacitor C214 are all grounded.
[0025] Compared with the prior art, this application has at least the following beneficial effects:
[0026] The collection device of the present application can collect water meters with modbus protocol, without manual meter reading, reducing labor costs, saving time and effort, and high work efficiency; at the same time, the collection device of the present application can also collect data to the terminal equipment of the platform to facilitate data comparison and analysis and monitoring of faults of water meters with modbus protocol, which greatly facilitates and intuitively sees people's water consumption and makes relevant requirements on people's water consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more intuitively illustrate the prior art and the present application, exemplary drawings are given below. It should be understood that the specific shapes and structures shown in the drawings should not generally be regarded as limiting conditions for implementing the present application; for example, those skilled in the art are capable of easily making conventional adjustments or further optimizations to the addition / reduction / attribution division, specific shapes, positional relationships, connection methods, dimensional ratios, etc. of certain units (components) based on the technical concepts and exemplary drawings disclosed in the present application.
[0028] Figure 1 A circuit principle block diagram of a modbus protocol water meter parameter acquisition device provided in an embodiment of the present application;
[0029] Figure 2 A circuit schematic diagram of a controller of a modbus protocol water meter parameter acquisition device provided in an embodiment of the present application;
[0030] Figure 3 A circuit schematic diagram of a wireless communication module of a modbus protocol water meter parameter acquisition device provided in an embodiment of the present application;
[0031] Figure 4 A circuit schematic diagram of a channel switching module of a modbus protocol water meter parameter acquisition device provided in an embodiment of the present application;
[0032] Figure 5 A circuit schematic diagram of an address switching module of a modbus protocol water meter parameter acquisition device provided in an embodiment of the present application;
[0033] Figure 6 A circuit schematic diagram of an RS485 conversion module of a modbus protocol water meter parameter acquisition device provided in an embodiment of the present application;
[0034] Figure 7 A circuit schematic diagram of a switching power supply module of a modbus protocol water meter parameter acquisition device provided in an embodiment of the present application;
[0035] Figure 8 A 485 conversion circuit of a modbus protocol water meter parameter acquisition device provided in an embodiment of the present application;
[0036] Fig. 9 A reset button and indicator light of a burning program interface of a modbus protocol water meter parameter collection device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] The present application is further described below in detail through specific embodiments in conjunction with the accompanying drawings.
[0038] In the description of this application: unless otherwise specified, the meaning of "plurality" is two or more. The terms "first", "second", "third", etc. in this application are intended to distinguish the objects referred to, and do not have special meanings in terms of technical connotations (for example, they should not be understood as emphasizing the importance or order, etc.). Expressions such as "including", "comprising", "having", etc. also mean "not limited to" (certain units, components, materials, steps, etc.).
[0039] The terms such as "upper", "lower", "left", "right", "middle", etc. cited in this application are usually used to indicate the general relative position relationship for the purpose of intuitive understanding by referring to the drawings, and are not absolute limitations on the position relationship in the actual product.
[0040] like Figure 1 As shown, a Modbus protocol water meter parameter acquisition device includes a housing and an electronic circuit board arranged in the housing;
[0041] The electronic circuit board is integrated with a controller, a wireless communication module, a channel switching module, an address switching module, an RS485 conversion module and a switch power module, the output ends of the channel switching module and the address switching module are both connected to the controller, the input end of the RS485 conversion module is connected to a modbus protocol water meter, the output end of the RS485 conversion module is connected to the controller, the controller remotely communicates with a terminal device through the wireless communication module, and the output end of the switch power module is respectively connected to the controller, the wireless communication module, the channel switching module, the address switching module, and the RS485 conversion module;
[0042] Among them, the channel switching module is used to set the channel of the water meter parameters, the address switching module is used to set the transmission address of the water meter parameters, and the RS485 conversion module is used to convert the data of the modbus protocol water meter into data that can be received by the controller.
[0043] It should be noted that the circuit schematic diagram of the RS485 conversion module is as follows Figure 6 As shown, the circuit schematic diagram of the switching power supply module is as follows Figure 7 shown.
[0044] In the embodiment of the present application, the switching power supply module is connected to the AC power supply, converting the AC 220V into DC power to provide voltage for the logic circuit; the wireless communication module transmits the collected data through this module to the gateway for data transmission; the RS485 conversion module is responsible for collecting the received modbus protocol and converting it into data that can be received by the microcontroller serial port for conversion; the channel switching module and the address switching module can define the channel and address according to user needs, eliminating the tediousness of adjusting through the program.
[0045] It should be noted that the controller is used to send the collected water pressure data to the background terminal device through the wireless communication module, realizing the breakpoint resumption and breakpoint memory functions of the pressure data, avoiding data congestion and data packet loss when sending data to the background terminal; the RS485 conversion module connects the converted signal to the serial port of the chip through the serial port pin and hands it over to the controller to process the data.
[0046] In the embodiment of the present application, the Lora module (wireless communication module) and the processor (wireless communication module) use low-power versions for logic control and signal transmission, which reduces power consumption and creates useful value for energy conservation and emission reduction; after testing, the power consumption is reduced by up to 80% compared with ordinary processors.
[0047] In the embodiment of the present application, an AC / DC dual power supply and a wide voltage input power supply method is adopted, which has a strong ability to adapt to the on-site environment and can provide power supply according to on-site needs.
[0048] In the embodiment of the present application, the collection device of the present application can not only collect the parameters of the water meter but also the parameters of the electricity meter.
[0049] In the embodiments of the present application, the advantages of the present invention compared with the existing technology are that it utilizes low-power technology and lora wireless transmission methods, and the dial-up channel can be adjusted according to the customer's own needs, and one gateway can drag multiple nodes, which saves the cost of producing gateways, and the upgrade and transformation saves the engineering measures and power consumption of re-wiring.
[0050] In the embodiment of the present application, the STC32G12K128 chip is used as the controller, ldo is used as the power supply, and the 433 frequency antenna and channel dip switch can set the channel and address.
[0051] like Figure 2 As shown, in a possible implementation manner, the controller is a STC32G12K128-LQFP32 controller.
[0052] like Figure 3As shown, in a possible implementation, the wireless communication module is an A39-T400A21S1A wireless communication module, the first pin of the wireless communication module is connected to the sixth pin of the controller, the second pin of the wireless communication module is connected to the fifth pin of the controller, the third pin of the wireless communication module is connected to the 30th pin of the controller, and the fourth pin of the wireless communication module is connected to the 29th pin of the controller.
[0053] like Figure 4 As shown, in a possible implementation, the channel switching module includes a first switch module and a first electrostatic discharge protection module;
[0054] The switch module includes a first dial switch S201;
[0055] The first dip switch S201 is a four-channel dip switch, the 1st pin, the 2nd pin, the 3rd pin and the 4th pin of the first dip switch S201 are all grounded, the 5th pin of the first dip switch S201 is connected to the 15th pin of the controller, the 6th pin of the first dip switch S201 is connected to the 16th pin of the controller, the 7th pin of the first dip switch S201 is connected to the 17th pin of the controller, and the 8th pin of the first dip switch S201 is connected to the 18th pin of the controller.
[0056] like Figure 4 As shown, in a possible implementation manner, the first electrostatic discharge protection module includes a first electrostatic discharge protection device D201, a first resistor R201, a second resistor R202, a third resistor R204, a fourth resistor R206, a first capacitor C203, a second capacitor C204, a third capacitor C205 and a fourth capacitor C206;
[0057] The first pin of the first electrostatic discharge protection device D201 is connected to the fifth pin of the first dip switch S201, the second pin of the first electrostatic discharge protection device D201 is grounded, the third pin of the first electrostatic discharge protection device D201 is connected to the 19th pin of the controller, the fourth pin of the first electrostatic discharge protection device D201 is connected to the eighth pin of the first dip switch S201, the fifth pin of the first electrostatic discharge protection device D201 is connected to the seventh pin of the first dip switch S201, and the sixth pin of the first electrostatic discharge protection device D201 is connected to the sixth pin of the first dip switch S201;
[0058] One end of the first resistor R201, the second resistor R202, the third resistor R204 and the fourth resistor R206 are all connected to the +5V power supply output terminal, the other end of the first resistor R201 is connected to the 8th pin of the first dip switch S201, the other end of the second resistor R202 is connected to the 7th pin of the first dip switch S201, the other end of the third resistor R204 is connected to the 6th pin of the first dip switch S201, and the other end of the fourth resistor R206 is connected to the 5th pin of the first dip switch S201;
[0059] One end of the first capacitor C203 is connected to the 8th pin of the first dip switch S201, one end of the second capacitor C204 is connected to the 7th pin of the first dip switch S201, one end of the third capacitor C205 is connected to the 6th pin of the first dip switch S201, one end of the fourth capacitor C206 is connected to the 5th pin of the first dip switch S201, and the other ends of the first capacitor C203, the second capacitor C204, the third capacitor C205 and the fourth capacitor C206 are all grounded.
[0060] In a possible implementation manner, the first electrostatic discharge protection device D201 is an ESD electrostatic diode, and the model of the ESD electrostatic diode is TPE05H5S6.
[0061] like Figure 5 As shown, in a possible implementation, the address switching module includes a second switch module and a second electrostatic discharge protection module;
[0062] The second switch module includes a second dial switch S202;
[0063] The second dip switch S202 is an eight-channel dip switch, and pin 1, pin 2, pin 3, pin 4, pin 5, pin 6, pin 7 and pin 8 of the second dip switch S202 are all grounded, pin 9 of the second dip switch S202 is connected to pin 21 of the controller, pin 10 of the second dip switch S202 is connected to pin 22 of the controller, pin 11 of the second dip switch S202 is connected to pin 23 of the controller, pin 12 of the second dip switch S202 is connected to pin 24 of the controller, pin 13 of the second dip switch S202 is connected to pin 25 of the controller, pin 14 of the second dip switch S202 is connected to pin 26 of the controller, pin 15 of the second dip switch S202 is connected to pin 27 of the controller, and pin 16 of the second dip switch S202 is connected to pin 28 of the controller.
[0064] like Figure 5 As shown, in a possible implementation, the second electrostatic discharge protection module includes a second electrostatic discharge protection device D202, a third electrostatic discharge protection device D203, a fifth resistor R203, a sixth resistor R205, a seventh resistor R207, an eighth resistor R208, a ninth resistor R209, a tenth resistor R210, an eleventh resistor R211, a twelfth resistor R212, a fifth capacitor C207, a sixth capacitor C208, a seventh capacitor C209, an eighth capacitor C210, a ninth capacitor C211, a tenth capacitor C212, an eleventh capacitor C213, and a twelfth capacitor C214.
[0065] like Figure 5 As shown, in a possible implementation manner, the first pin of the second electrostatic discharge protection device D202 is connected to the tenth pin of the second dip switch S202, the second pin of the second electrostatic discharge protection device D202 is grounded, the third pin of the second electrostatic discharge protection device D202 is connected to the ninth pin of the second dip switch S202, the fourth pin of the second electrostatic discharge protection device D202 is suspended, the fifth pin of the second electrostatic discharge protection device D202 is connected to the eleventh pin of the second dip switch S202, and the sixth pin of the second electrostatic discharge protection device D202 is connected to the twelfth pin of the second dip switch S202;
[0066] The first pin of the third electrostatic discharge protection device D203 is suspended, the second pin of the third electrostatic discharge protection device D203 is grounded, the third pin of the third electrostatic discharge protection device D203 is connected to the 13th pin of the second dip switch S202, the fourth pin of the third electrostatic discharge protection device D203 is connected to the 14th pin of the second dip switch S202, the fifth pin of the third electrostatic discharge protection device D203 is connected to the 15th pin of the second dip switch S202, and the sixth pin of the third electrostatic discharge protection device D203 is connected to the 16th pin of the second dip switch S202.
[0067] like Figure 5As shown, in a possible implementation manner, one end of the fifth resistor R203, the sixth resistor R205, the seventh resistor R207, the eighth resistor R208, the ninth resistor R209, the tenth resistor R210, the eleventh resistor R211 and the twelfth resistor R212 are all connected to the +5V power supply output terminal, the other end of the fifth resistor R203 is connected to the 16th pin of the second dip switch S202, the other end of the sixth resistor R205 is connected to the 15th pin of the second dip switch S202, and the other end of the seventh resistor R207 is connected to the 16th pin of the second dip switch S202. The other end of the eighth resistor R208 is connected to the 13th pin of the second dip switch S202, the other end of the ninth resistor R209 is connected to the 12th pin of the second dip switch S202, the other end of the tenth resistor R210 is connected to the 11th pin of the second dip switch S202, the other end of the eleventh resistor R211 is connected to the 10th pin of the second dip switch S202, and the other end of the twelfth resistor R212 is connected to the 9th pin of the second dip switch S202;
[0068] One end of the fifth capacitor C207 is connected to the 16th pin of the second dial switch S202, one end of the sixth capacitor C208 is connected to the 15th pin of the second dial switch S202, one end of the seventh capacitor C209 is connected to the 14th pin of the second dial switch S202, one end of the eighth capacitor C210 is connected to the 13th pin of the second dial switch S202, one end of the ninth capacitor C211 is connected to the 12th pin of the second dial switch S202, and one end of the tenth capacitor C212 is connected to the The 11th pin of the second DIP switch S202 is connected, one end of the 11th capacitor C213 is connected to the 10th pin of the second DIP switch S202, one end of the twelfth capacitor C214 is connected to the 9th pin of the second DIP switch S202, and the other ends of the fifth capacitor C207, the sixth capacitor C208, the seventh capacitor C209, the eighth capacitor C210, the ninth capacitor C211, the tenth capacitor C212, the eleventh capacitor C213 and the twelfth capacitor C214 are all grounded.
[0069] The technical features of the above embodiments can be combined arbitrarily as long as there is no contradiction in the combination of these technical features. In order to make the description concise, not all possible combinations of the technical features in the above embodiments are described; these embodiments that are not explicitly written should also be considered to be within the scope of this specification.
Claims
1. A Modbus protocol water meter parameter acquisition device, characterized by: comprising a housing and an electronic circuit board disposed in the housing; The electronic circuit board is integrated with a controller, a wireless communication module, a channel switching module, an address switching module, an RS485 conversion module and a switching power supply module. The output ends of the channel switching module and the address switching module are both connected to the controller, the input end of the RS485 conversion module is connected to a modbus protocol water meter, the output end of the RS485 conversion module is connected to the controller, the controller remotely communicates with the terminal device through the wireless communication module, and the output end of the switching power supply module is respectively connected to the controller, the wireless communication module, the channel switching module, the address switching module, and the RS485 conversion module; Among them, the channel switching module is used to set the channel of the water meter parameters, the address switching module is used to set the transmission address of the water meter parameters, and the RS485 conversion module is used to convert the data of the modbus protocol water meter into data that can be received by the controller.
2. The device according to claim 1, characterized in that: The controller is an STC32G12K128-LQFP32 controller.
3. The device according to claim 2, characterized in that: The wireless communication module is an A39-T400A21S1A wireless communication module, the first pin of the wireless communication module is connected to the sixth pin of the controller, the second pin of the wireless communication module is connected to the fifth pin of the controller, the third pin of the wireless communication module is connected to the 30th pin of the controller, and the fourth pin of the wireless communication module is connected to the 29th pin of the controller.
4. The device according to claim 2, characterized in that: The channel switching module includes a first switch module and a first electrostatic discharge protection module; The switch module includes a first dial switch S201; The first dip switch S201 is a four-channel dip switch, wherein pins 1, 2, 3, and 4 of the first dip switch S201 are all grounded, pin 5 of the first dip switch S201 is connected to pin 15 of the controller, pin 6 of the first dip switch S201 is connected to pin 16 of the controller, pin 7 of the first dip switch S201 is connected to pin 17 of the controller, and pin 8 of the first dip switch S201 is connected to pin 18 of the controller.
5. The device according to claim 4, characterized in that: The first electrostatic discharge protection module includes a first electrostatic discharge protection device D201, a first resistor R201, a second resistor R202, a third resistor R204, a fourth resistor R206, a first capacitor C203, a second capacitor C204, a third capacitor C205 and a fourth capacitor C206; The first pin of the first ESD protection device D201 is connected to the fifth pin of the first DIP switch S201, the second pin of the first ESD protection device D201 is grounded, the third pin of the first ESD protection device D201 is connected to the 19th pin of the controller, the fourth pin of the first ESD protection device D201 is connected to the eighth pin of the first DIP switch S201, the fifth pin of the first ESD protection device D201 is connected to the seventh pin of the first DIP switch S201, and the sixth pin of the first ESD protection device D201 is connected to the sixth pin of the first DIP switch S201; One end of the first resistor R201, the second resistor R202, the third resistor R204, and the fourth resistor R206 are all connected to the +5V power supply output terminal, the other end of the first resistor R201 is connected to the 8th pin of the first dip switch S201, the other end of the second resistor R202 is connected to the 7th pin of the first dip switch S201, the other end of the third resistor R204 is connected to the 6th pin of the first dip switch S201, and the other end of the fourth resistor R206 is connected to the 5th pin of the first dip switch S201; One end of the first capacitor C203 is connected to the 8th pin of the first dip switch S201, one end of the second capacitor C204 is connected to the 7th pin of the first dip switch S201, one end of the third capacitor C205 is connected to the 6th pin of the first dip switch S201, and one end of the fourth capacitor C206 is connected to the 5th pin of the first dip switch S201. The other ends of the first capacitor C203, the second capacitor C204, the third capacitor C205, and the fourth capacitor C206 are all grounded.
6. The device according to claim 5, characterized in that: The first electrostatic discharge protection device D201 is an ESD electrostatic diode, and the model of the ESD electrostatic diode is TPE05H5S6.
7. The device according to claim 2, characterized in that: The address switching module includes a second switch module and a second electrostatic discharge protection module; The second switch module includes a second dip switch S202; The second dip switch S202 is an eight-channel dip switch, and pins 1, 2, 3, 4, 5, 6, 7, and 8 of the second dip switch S202 are all grounded. Pin 9 of the second dip switch S202 is connected to pin 21 of the controller, pin 10 of the second dip switch S202 is connected to pin 22 of the controller, pin 11 of the second dip switch S202 is connected to pin 23 of the controller, pin 12 of the second dip switch S202 is connected to pin 24 of the controller, pin 13 of the second dip switch S202 is connected to pin 25 of the controller, pin 14 of the second dip switch S202 is connected to pin 26 of the controller, pin 15 of the second dip switch S202 is connected to pin 27 of the controller, and pin 16 of the second dip switch S202 is connected to pin 28 of the controller.
8. The device according to claim 7, characterized in that: The second electrostatic discharge protection module includes a second electrostatic discharge protection device D202, a third electrostatic discharge protection device D203, a fifth resistor R203, a sixth resistor R205, a seventh resistor R207, an eighth resistor R208, a ninth resistor R209, a tenth resistor R210, an eleventh resistor R211, a twelfth resistor R212, a fifth capacitor C207, a sixth capacitor C208, a seventh capacitor C209, an eighth capacitor C210, a ninth capacitor C211, a tenth capacitor C212, an eleventh capacitor C213, and a twelfth capacitor C214.
9. The device according to claim 8, characterized in that: The first pin of the second electrostatic discharge protection device D202 is connected to the 10th pin of the second dip switch S202, the second pin of the second electrostatic discharge protection device D202 is grounded, the third pin of the second electrostatic discharge protection device D202 is connected to the 9th pin of the second dip switch S202, the fourth pin of the second electrostatic discharge protection device D202 is left floating, the fifth pin of the second electrostatic discharge protection device D202 is connected to the 11th pin of the second dip switch S202, and the sixth pin of the second electrostatic discharge protection device D202 is connected to the 12th pin of the second dip switch S202; The first pin of the third electrostatic discharge protection device D203 is suspended, the second pin of the third electrostatic discharge protection device D203 is grounded, the third pin of the third electrostatic discharge protection device D203 is connected to the 13th pin of the second dip switch S202, the fourth pin of the third electrostatic discharge protection device D203 is connected to the 14th pin of the second dip switch S202, the fifth pin of the third electrostatic discharge protection device D203 is connected to the 15th pin of the second dip switch S202, and the sixth pin of the third electrostatic discharge protection device D203 is connected to the 16th pin of the second dip switch S202.
10. The device according to claim 8, characterized in that: One end of the fifth resistor R203, the sixth resistor R205, the seventh resistor R207, the eighth resistor R208, the ninth resistor R209, the tenth resistor R210, the eleventh resistor R211, and the twelfth resistor R212 are all connected to the +5V power supply output terminal, the other end of the fifth resistor R203 is connected to the 16th pin of the second dip switch S202, the other end of the sixth resistor R205 is connected to the 15th pin of the second dip switch S202, and the other end of the seventh resistor R207 is connected to the second dip switch S202. the fourth pin of the second DIP switch S202 is connected to the fourth pin of the second DIP switch S202, the other end of the eighth resistor R208 is connected to the 13th pin of the second DIP switch S202, the other end of the ninth resistor R209 is connected to the 12th pin of the second DIP switch S202, the other end of the tenth resistor R210 is connected to the 11th pin of the second DIP switch S202, the other end of the eleventh resistor R211 is connected to the 10th pin of the second DIP switch S202, and the other end of the twelfth resistor R212 is connected to the 9th pin of the second DIP switch S202; One end of the fifth capacitor C207 is connected to the 16th pin of the second dip switch S202, one end of the sixth capacitor C208 is connected to the 15th pin of the second dip switch S202, one end of the seventh capacitor C209 is connected to the 14th pin of the second dip switch S202, one end of the eighth capacitor C210 is connected to the 13th pin of the second dip switch S202, one end of the ninth capacitor C211 is connected to the 12th pin of the second dip switch S202, and one end of the tenth capacitor C212 is connected to the 14th pin of the second dip switch S202. The 11th pin of the second DIP switch S202 is connected, one end of the 11th capacitor C213 is connected to the 10th pin of the second DIP switch S202, one end of the 12th capacitor C214 is connected to the 9th pin of the second DIP switch S202, and the other ends of the fifth capacitor C207, the sixth capacitor C208, the seventh capacitor C209, the eighth capacitor C210, the ninth capacitor C211, the tenth capacitor C212, the eleventh capacitor C213, and the twelfth capacitor C214 are all grounded.
