A RS485 cascade multi-user electric energy meter and its data transmission method
By designing a multi-user energy meter with DIN rail mounting and RS485 cascading, the problems of poor circuit expandability and maintenance of multi-user energy meters are solved, enabling flexible expansion and convenient maintenance, and reducing costs and operational complexity.
Patent Information
- Application Number
- CN202010375450.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-07
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2040-05-07
AI Technical Summary
Existing multi-user electricity meter circuit expansion methods suffer from poor scalability, complex structure, poor maintainability, and inconvenient operation. In particular, adding a detection circuit module requires disassembling the meter, which affects normal power consumption and results in high after-sales maintenance costs.
The multi-user energy meter design adopts RS485 cascading. Through DIN rail installation and modular structure, it uses RS485 communication interface to realize the connection and automatic addressing between modules. The display module and the expansion module are connected through network cable, which supports flexible expansion and fast addressing.
It enables more flexible and convenient loop expansion, saves space, reduces installation and maintenance costs, supports rapid expansion and automated management, and improves ease of use and maintenance efficiency.
Smart Images

Figure CN111323648B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of low-voltage switches and control equipment, and in particular to an RS485 cascaded multi-user electric energy meter and a data transmission method thereof. Background Art
[0002] The multi-user electric energy meter is an intelligent power consumption monitoring device that can detect the power consumption of multiple users at the same time. At present, there are many ways to expand the circuit of the multi-user electric energy meter. One way of circuit expansion is that the manufacturer directly installs the expanded circuit module inside the device according to the needs of the customer, but this method has the following disadvantages:
[0003] 1. Poor scalability. If the user needs to add a detection loop module, the meter must be disassembled and then the metering module must be added. However, this operation is more cumbersome and will affect the normal electricity consumption of other users.
[0004] 2. From a structural point of view, the layout is complex, the production efficiency is low, and the labor cost is increased. The detection module is installed inside the instrument, and the instrument control unit and the metering unit circuit board must be designed separately. The mutual connection and installation and fixation will increase the difficulty of structural design;
[0005] 3. From the perspective of after-sales maintenance, the maintainability is poor. It is inevitable that the components of the instrument are damaged. In order to ensure the accuracy, the current, voltage and other electrical parameters need to be calibrated with the aid of a standard source. The instrument can only be returned to the factory for repair, and the entire meter needs to be replaced. However, most user metering instruments are made of metal, which are large and heavy, and the express delivery fee is high, which increases the after-sales cost.
[0006] Another way to expand the circuit is to install the main module and the circuit expansion module on the same base plate. If expansion is required, the expansion modules are inserted into the base plate one by one. This method has the following disadvantages:
[0007] 1. The length of the substrate limits the number of circuit expansions;
[0008] 2. The expansion module is installed on the base plate, the structure is complex and not firm enough, and needs to be fixed with screws, which brings inconvenience to users in instrument installation and expansion;
[0009] 3. Manual addressing is required. Since the main module and the loop expansion module are designed separately, each loop module needs to be manually addressed before the master and slave modules transmit data, which limits its use and makes operation inconvenient. Untrained operators cannot directly and quickly expand the instrument functions according to user needs. Summary of the invention
[0010] The object of the present invention is to overcome the above-mentioned shortcomings and provide a RS485 cascaded multi-user electric energy meter and a data transmission method thereof, which makes the circuit expansion more flexible and convenient and the after-sales maintenance more convenient.
[0011] The object of the present invention is achieved in that:
[0012] An RS485 cascade multi-user electric energy meter comprises an instrument display module and a plurality of expansion modules; the display module is provided with a display module port, and the expansion module is provided with a rear-stage port and a front-stage port; the display module port is connected to the rear-stage port of the first loop expansion module through a network cable, and when the plurality of expansion modules are superimposed and cascaded, the rear-stage port of the loop expansion module of the latter stage is connected to the front-stage port of the loop expansion module of the former stage by inserting a network cable.
[0013] Furthermore, a main circuit module is provided in the display module, and the main circuit module includes a main processor and a second port RS4852 connected to the main processor. The second port RS4852 on the main circuit module in the display module is plugged into the first port RS4851 of the expansion circuit module in the expansion module located at the rear end.
[0014] Furthermore, an expansion circuit module is provided in the expansion module, and the expansion circuit module includes a processor and a first port RS4851 and a second port RS4852 connected to the processor. The second port RS4852 of the expansion circuit module in the expansion module of the previous level is plugged into and matched with the first port RS4851 of the expansion circuit module in the expansion module of the next level, and the plugging and matching is carried out through an RJ45 plug and an RJ45 socket.
[0015] Furthermore, the instrument display module and the plurality of expansion modules are arranged in sequence and side by side on the guide rail.
[0016] A data transmission method for a multi-user electric energy meter of RS485 cascade connection includes the following contents: the processor of the display module and the processor of the loop expansion module both store an address information and an address state, wherein the address information determines the corresponding position of each expansion module in the loop expansion module and determines the user corresponding to the current expansion module, and the address state is used to determine whether the current expansion module is automatically addressed;
[0017] After receiving the message information sent by the previous extension module, the latter extension module first extracts the address information in the message information and compares the address information with the address information in the processor of the extension module;
[0018] If the previous level message information contains the same address information as the current extension module, the address of the current extension module is considered correct, and the user power consumption data in the current module is actively transmitted to the previous level extension module, and the address information after +1 is sent to the next level extension module in the form of a message;
[0019] If the message information of the previous level is different from the address information in this extension module, the address status in the message information is determined;
[0020] If the address status is to enable automatic addressing, the address information of the current expansion module is modified to the address information in the previous level message information, and the user's power consumption data is transmitted to the previous level expansion module, and the address information after +1 is sent to the next level expansion module in the form of a message;
[0021] If the address status is to close automatic addressing, this module will not automatically address, will not actively upload user data, and will no longer send message information to the next-level expansion module.
[0022] Furthermore, the ports between the electric energy meter modules communicate using an RS485 communication interface.
[0023] Furthermore, if the instrument is operated for the first time after installation or after a new expansion module is added, the display module and the loop expansion module need to be paired and automatically addressed, and the automatic addressing needs to be set to open in the display module.
[0024] Furthermore, after each level of expansion module receives the user power usage data from the next level, it actively passes it to the expansion module of the previous level. This method is used until the user power usage data of all loop expansion modules are passed to the display module. After the display module receives the power usage data of all expansion modules and the time from the last sending of the call message information reaches 1 second, it will send a new round of call message information. If the display module has not received the power usage data of all expansion modules within 2 seconds after receiving the last expansion module power usage data, it will send a new round of call message information.
[0025] Compared with the prior art, the present invention has the following beneficial effects:
[0026] (1) The present invention is more convenient to install, because the present invention adopts 35mm rail installation, fixed by rail groove and buckle, the module size is small, and each module only needs to be connected by network cable, making the whole installation process more convenient and quick;
[0027] (2) Compared with the wall-mounted multi-circuit meter box, the present invention saves more space because the present invention adopts the form of splitting the main module and the circuit expansion module, and there is no need to reserve extra circuit expansion space inside the meter. In addition, the present invention adopts the guide rail installation, which saves a lot of space occupied by the meter box body.
[0028] (3) The circuit expansion of the present invention is more flexible and convenient. If the circuit needs to be expanded, it is only necessary to add a circuit expansion module at the end of the device cascade, and there is no need to disassemble the meter. In addition, automatic addressing is used to realize automatic addressing of the functional modules, so that the user can quickly perform cascade expansion operations.
[0029] (4) The present invention makes after-sales maintenance more convenient. The display module and the circuit expansion module are used to make the entire instrument easier to manage in a modular manner. When any module fails, only the corresponding module needs to be replaced without replacing the entire meter, thus saving high after-sales costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is a structural schematic diagram of the display module of the present invention.
[0031] Figure 2 It is a schematic diagram of the structure of the expansion module of the present invention.
[0032] Figure 3 It is a schematic diagram of the structure of the present invention after cascading.
[0033] Figure 4 It is a schematic diagram of the interface of the cascade module of the present invention.
[0034] Figure 5 It is a schematic diagram of the circuit state after cascading of the present invention.
[0035] in:
[0036] Display module 1, expansion module 2, display module port 3, rear stage port 4, front stage port 5, guide rail 6. DETAILED DESCRIPTION
[0037] In order to better understand the technical solution of the present invention, the following will be described in detail in conjunction with the relevant illustrations. It should be understood that the following specific embodiments are not intended to limit the specific implementation of the technical solution of the present invention, and are only implementations that can be adopted by the technical solution of the present invention. It should be noted that the description of the positional relationship of each component in this article, such as component A being located above component B, is based on the description of the relative positions of the components in the illustration, and is not intended to limit the actual positional relationship of the components.
[0038] Embodiment 1:
[0039] See also Figures 1 to 5 , Figure 1 and Figure 2 The structural schematic diagrams of the display module and the expansion module of the present invention are drawn respectively, Figure 3The structural schematic diagram of the present invention after cascading is drawn. As shown in the figure, the present invention relates to an RS485 cascade multi-user electric energy meter, which includes an instrument display module 1 and multiple expansion modules 2, and the loop expansion modules can be expanded to 12 at most; the display module 1 is provided with a display module port 3, and the expansion module 2 is provided with a rear-stage port 4 and a front-stage port 5; the display module port 3 is connected to the rear-stage port 4 of the first loop expansion module through a network cable, and when multiple expansion modules 2 are superimposed and cascaded, the rear-stage port 4 of the loop expansion module of the next stage is inserted into the network cable to be connected to the front-stage port 5 of the loop expansion module of the previous stage.
[0040] The instrument display module 1 and the plurality of expansion modules 2 are sequentially arranged side by side on a guide rail 6 , the guide rail 6 is a 35 mm guide rail, a guide rail groove is provided on the guide rail 6 , and the instrument display module 1 and the expansion modules 2 are mounted on the guide rail groove by snap-fitting.
[0041] The expansion module 2 is provided with an expansion circuit module, which includes a processor and a first port RS4851 and a second port RS4852 connected to the processor. The second port RS4852 of the expansion circuit module in the expansion module 2 at the previous level is plugged and matched with the first port RS4851 of the expansion circuit module in the expansion module 2 at the next level, and is plugged and matched through an RJ45 plug and an RJ45 socket; the display module 1 is provided with a main circuit module, which includes a main processor and a second port RS4852 connected to the main processor. The second port RS4852 on the main circuit module in the display module 1 is plugged and matched with the first port RS4851 of the expansion circuit module in the expansion module 2 at the rear end.
[0042] Working principle:
[0043] The display module collects data from the loop expansion module for processing and analysis, and then displays the processed data on the screen. The loop expansion module is used to collect the electricity consumption data of each user and then transmit the data to the display module for summary. The display module and each loop expansion module are connected one by one using a network cable. There is a port on the display module to collect loop expansion module data. Each loop expansion module has two ports, one of which is used to connect to the front-stage device to send the collected data to the front-stage device. The front-stage device can be a loop expansion module or a display module. The other port is used to connect to the rear-stage device to obtain the data collected by the rear-stage module. The rear-stage devices are all loop expansion modules.
[0044] See also Figure 5 , Figure 5 The present invention is a schematic diagram of the circuit state after cascading, and the present invention relates to a data transmission method of a multi-user electric energy meter of RS485 cascading, including the following contents:
[0045] The main processor in the display module and the processor of the expansion module both store an address information and an address status, wherein the address information determines the corresponding position of each expansion module in the loop expansion module and determines the user corresponding to the current expansion module, such as: address 1 represents that the current loop corresponds to user 1, and address 2 represents that the current loop corresponds to user 2; the address status is used to determine whether the current expansion module is automatically addressed.
[0046] If the instrument is running for the first time after installation or after adding a new circuit expansion module, the display module (i.e. main module) and the expansion module need to be paired and automatically addressed. The automatic addressing needs to be turned on in the main module, otherwise the expansion module will not automatically encode the address. This is to prevent the circuit from not matching the measurement circuit if one expansion module skips and directly connects the two expansion modules after the module is installed.
[0047] When the main module is working, it sends a message to the extension module at an interval of 1 second to call the extension module to upload the user's power consumption data. Each call message includes:
[0048] (1) The address information of the expansion module required to be called by the next level;
[0049] (2) The address status of the next-level expansion module;
[0050] (3) Control information of all expansion modules, opening or closing;
[0051] (4) Other parameter information of all extension modules, etc.
[0052] After receiving the message information sent by the previous extension module, the next extension module first extracts the address information in the message information and compares the address information with the address information bit in the processor of the extension module;
[0053] If the previous level message information contains the same address information as the current extension module, the address of the current extension module is considered correct, and the user power consumption data in the current module is actively transmitted to the previous level extension module, and the address information after +1 is sent to the next level extension module in the form of a message;
[0054] If the previous level message information is different from the address information of this extension module, the address status in the message information is determined. If the address status is to turn on automatic coding, the address information of this extension module is modified to the address information in the previous level message information, and the user's power consumption data is transmitted to the previous level extension module, and the address information after +1 is sent to the next level extension module in the form of a message.
[0055] If the address status is to turn off automatic addressing, this module will not automatically address and will not actively upload user data.
[0056] In this process, each level of expansion module actively passes the user power usage data from the next level to the expansion module of the previous level after receiving it. This method is used until the user power usage data of all loop expansion modules are passed to the display module. After the display module receives the power usage data of all expansion modules and the time from the last sending of the call message reaches 1 second, it will send a new round of call message information. If the display module has not received the power usage data of all expansion modules within 2 seconds after receiving the last expansion module power usage data, it will send a new round of call message information.
[0057] The display module uses this method to realize automatic management of the expansion module address and information collection. When any expansion module is added, it can be quickly and automatically addressed and the user power consumption data of each expansion module can be quickly obtained.
[0058] Example 1:
[0059] Address information, address status, description;
[0060] 1, 0, the first expansion module;
[0061] 2.0. The second expansion module;
[0062] 3.0. The third expansion module;
[0063] ……, …, …;
[0064] Example 2:
[0065] 1.1. The first expansion module;
[0066] 5(2),1, the second extension module;
[0067] 6(3),1, the third extension module;
[0068] ……, …, …;
[0069] After the RS4851 of the rear-stage expansion module correctly receives the message information of the RS4851 of the front-stage expansion module and parses it, assuming that the module address in the message is 2 and the address of this expansion module is also 2, it means that the address of this expansion module is correct, and the user power consumption data in this module is actively transmitted to the previous-stage expansion module, and the address information after +1 is sent to the next-stage expansion module in the form of a message; assuming that the module address in the message is 2 and the address of this expansion module is 5, it means that the address of this expansion module is inconsistent with the calling module information, and then it is determined whether the address status is turned on for automatic addressing. If the address status is 1, it means that automatic addressing is turned on, and the address information of this expansion module is modified to 2, and the user power consumption data is transmitted to the previous-stage expansion module, and the address information 3 and the address status are sent to the next-stage expansion module in the form of a message, and so on.
[0070] The above are only specific application examples of the present invention and do not constitute any limitation on the protection scope of the present invention. Any technical solution formed by equivalent transformation or equivalent replacement shall fall within the protection scope of the present invention.
Claims
1. A data transmission method for RS485 cascaded multi-user electric energy meters, It is characterized in that Includes the following: The RS485 cascade multi-user electric energy meter comprises a display module and a plurality of expansion modules; the display module is provided with a display module port, and the expansion module is provided with a rear-stage port and a front-stage port; the display module port is connected to the rear-stage port of the first loop expansion module through a network cable, and when the plurality of expansion modules are stacked and cascaded, the rear-stage port of the loop expansion module of the latter stage is connected to the front-stage port of the loop expansion module of the former stage by inserting a network cable; The display module is provided with a main circuit module, the main circuit module includes a main processor and a second port RS4852 connected to the main processor, the second port RS4852 on the main circuit module in the display module is plugged and matched with the first port RS4851 of the expansion circuit module in the rear expansion module; The expansion module is provided with an expansion circuit module, and the expansion circuit module includes a processor and a first port RS4851 and a second port RS4852 connected to the processor. The second port RS4852 of the expansion circuit module in the previous expansion module is plugged and matched with the first port RS4851 of the expansion circuit module in the next expansion module, and is plugged and matched through an RJ45 plug and an RJ45 socket; the display module and the plurality of expansion modules are sequentially arranged side by side on the guide rail; The processor of the display module and the processor of the loop expansion module both store an address information and an address status, wherein the address information determines the corresponding position of each expansion module in the loop expansion module and determines the user corresponding to the current expansion module, and the address status is used to determine whether the current expansion module is automatically addressed; After receiving the message information sent by the previous extension module, the latter extension module first extracts the address information in the message information and compares the address information with the address information in the processor of the extension module; If the previous level message information contains the same address information as that of the current extension module, the address of the current extension module is considered to be correct, and the user power consumption data in the current module is actively transmitted to the previous level extension module, and the address information in the previous level message information is increased by 1, and then sent to the next level extension module in the form of a message; If the message information of the previous level is different from the address information in this extension module, the address status in the message information is determined; If the address status is to enable automatic addressing, the address information of the current expansion module is modified to the address information in the previous level message information, and the user's power consumption data is transmitted to the previous level expansion module, and the address information after +1 is sent to the next level expansion module in the form of a message; If the address status is to close automatic addressing, this module will not automatically address, will not actively upload user data, and will no longer send message information to the next-level expansion module.
2. According to claim 1, a data transmission method of a RS485 cascaded multi-user electric energy meter, Features: The ports between the electric energy meter modules use RS485 communication interface for communication.
3. According to claim 1, a data transmission method of a RS485 cascaded multi-user electric energy meter, Features: If the instrument is running for the first time after installation or after adding a new expansion module, the display module and the loop expansion module need to be paired and automatically addressed. The automatic addressing needs to be turned on in the display module.
4. According to claim 1, a data transmission method of a RS485 cascaded multi-user electric energy meter, Features: After each level of expansion module receives the user power consumption data from the next level, it actively passes it to the expansion module of the previous level. This method is used until the user power consumption data of all loop expansion modules is passed to the display module. After the display module receives the power consumption data of all expansion modules and the time from the last sending of the call message information reaches 1 second, it will send a new round of call message information. If the display module has not received the power consumption data of all expansion modules within 2 seconds after receiving the last expansion module power consumption data, it will send a new round of call message information.
