Distribution network equipment data collection device and distribution network equipment ID automatic allocation method
By designing the data acquisition device of distribution network equipment and using bus address division to realize automatic ID allocation, the problem of high cost and low automation of multiple equipment data acquisition by a single device in the prior art is solved, and the degree of automation and product utilization is improved.
Patent Information
- Application Number
- CN202211020631.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-24
- Publication Date
- 2024-12-24
- Estimated Expiration
- 2042-08-24
AI Technical Summary
The existing distribution network equipment data acquisition device can only collect one equipment data. When adding nodes to collect multiple equipment, the cost is high and the degree of automation is low, the repetitive work is high, and the scalability is not strong.
Design a distribution network equipment data acquisition device, including processor module, RS485 bus module, SPIFlash storage module, UART module, WiFi module, USB module, Zigbee module, closed point detection module, relay module, DI module, Ethernet module etc., use bus address division to realize automatic ID allocation, reducing manual operations and errors.
Automatic data acquisition and ID allocation of multiple distribution network equipment is realized, reducing operational complexity and cost, and improving automation and product utilization.
Smart Images

Figure CN115499723B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data collection, and in particular to a data collection device for distribution network equipment and an automatic distribution network equipment ID allocation method. Background Art
[0002] With the construction and development of the power intelligent Internet of Things, distribution network equipment (central cabinets, ring network cabinets, low-voltage cabinets, transformers, etc.) has also taken a further step towards intensive and intelligent development. Distribution network equipment plays a very important role in the power grid. There are many parameters of distribution network equipment, such as voltage, current, temperature, density, etc. Timely and accurate acquisition, transmission and processing of various monitoring data of distribution network equipment is the core task of power system monitoring, which plays an irreplaceable role in maintaining the stability of the power grid system.
[0003] Currently, for data collection devices for distribution network equipment, generally one data collection device can only be used to collect data from one distribution network device. If you want to collect data from multiple distribution network devices, you need to add node data collectors and operate the main collection device to add corresponding collection nodes. This not only increases costs, but also causes staff to repeat work, has a low degree of automation, and is not scalable. Summary of the invention
[0004] In view of this, the purpose of the embodiments of the present application is to provide a distribution network equipment data collection device and a distribution network equipment ID automatic allocation method.
[0005] According to a first aspect of an embodiment of the present application, a distribution network equipment data acquisition device is provided, characterized in that it includes:
[0006] A processor module and a power module, an RS485 bus module, a SPI Flash storage module, an LED module, and a UART module respectively connected to the processor module, wherein:
[0007] The UART module is used to connect to the serial port screen to realize human-computer interaction. The serial port screen reads the operation data of the processor module and the instrument data collected by the RS485 bus module through the UART module; the serial port screen issues instructions to the processor module through the UART module to indirectly control the instrument;
[0008] The RS485 bus module is used as the ModbusRTU master station protocol to connect different numbers of instruments and meters to realize data collection and control of the instruments and meters.
[0009] Furthermore, it also includes:
[0010] The WiFi module is used to connect to the mobile terminal, and the user can view the collected distribution network equipment information in real time through the mobile terminal.
[0011] Furthermore, it also includes:
[0012] A USB module is used to connect to an external small-capacity storage device to implement encryption and customized operations of the data acquisition device.
[0013] Furthermore, it also includes:
[0014] Zigbee module, the Zigbee module is used to connect to the wireless temperature sensor.
[0015] Furthermore, it also includes:
[0016] A closing point detection module is used to read the external opening and closing point status.
[0017] Furthermore, it also includes:
[0018] A relay module is used for controlling external opening and closing points.
[0019] Furthermore, it also includes:
[0020] DI module, the DI module is used to connect to an external switch quantity device and detect the external signal level state.
[0021] Furthermore, it also includes:
[0022] The Ethernet module and the RS485 3# module are used to connect to upper layer devices respectively.
[0023] According to a second aspect of an embodiment of the present application, a method for automatically allocating a distribution network device ID is provided, which is applied to the distribution network device data acquisition device described in the first aspect. The method comprises the following steps:
[0024] Step 1: input the characteristic information of the instrument by operating the serial port screen, the serial port screen sends the characteristic information to the UART module through the UART protocol, the processor module processes the characteristic information received by the UART module, and stores the characteristic information in the SPIFlash module, thereby completing the input of the characteristic information of the instrument;
[0025] Step 2: According to the maximum number of addresses supported by the bus protocol addr n 、The maximum number of instruments and meters on the distribution network equipment dev n , dividing the maximum number of bus addresses addrn to obtain N address domains, where different address domains represent different distribution network equipment IDs, and storing the division results in the SPIFlash module;
[0026] Step 3: Get the division result from the SPIFlash module and get 1~dev n The address belongs to address domain 1, (dev n +1)~(2dev n ) address belongs to address domain 2, ((N-1)dev n +1)~(Ndev n ) address belongs to address domain N, the processor module controls the RS485 bus module to send data frames from address 1 and continuously detects until ndev n If there is a response, the characteristic information fed back by the instrument at the corresponding address will be recorded. If there is no response, the address will be skipped.
[0027] Step 4: The processor module compares the feature information received in step 3 with the feature information entered in step 1 to see if they are similar. If they are similar to any of the entered feature information, the comparison is successful and the current address of the instrument is recorded. It verifies whether there is similar feature information in the same address domain. If they are similar, it means that there are duplicate types of instruments in the same address domain, and the processor module sends a signal to the LED module to alarm.
[0028] Step 5: The processor module records the instrument addresses of each address domain recorded in step 4 and the bound distribution network equipment information into the SPI Flash module.
[0029] Furthermore, according to the maximum number of addresses supported by the bus protocol addr n 、The maximum number of instruments and meters on the distribution network equipment dev n , for the maximum number of bus addresses addr n Divide it into N address domains, including:
[0030] The number of address domains is calculated using the following formula:
[0031]
[0032] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0033] It can be seen from the above embodiments that the present application adopts the bus address division method to manage the distribution network equipment. The operator only needs to set the instrument slave address to the predetermined address domain without setting a specific address, and it can be automatically bound to the corresponding distribution network equipment, thereby reducing the repetitive work of the operator and reducing the human errors that occur during manual operation. It also supports dynamic allocation of device IDs, is flexible in use, improves product utilization, and reduces production costs.
[0034] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0036] Figure 1 The present invention is a schematic diagram of the structure of a data collection device for distribution network equipment in an embodiment of the present invention.
[0037] Figure 2 The figure is a schematic diagram of the steps of a method for automatically allocating IDs of distribution network equipment in an embodiment of the present invention.
[0038] Figure 3 The present invention provides an address domain allocation diagram for a method for automatically allocating IDs for distribution network equipment in an embodiment of the present invention.
[0039] Figure 4 This is an application scenario of the distribution network equipment data acquisition device of the present invention. DETAILED DESCRIPTION
[0040] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0041] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0042] refer to Figure 1 , an embodiment of the present invention provides a distribution network equipment data acquisition device, the device may include:
[0043] A processor module and a power module, an RS485 bus module, a SPI Flash storage module, an LED module, and a UART module respectively connected to the processor module, wherein:
[0044] The UART module is used to connect to the serial port screen to realize human-computer interaction. The serial port screen reads the operation data of the processor module and the instrument data collected by the RS485 bus module through the UART module; the serial port screen issues instructions to the processor module through the UART module to indirectly control the instrument;
[0045] The RS485 bus module is used as the ModbusRTU master station protocol to connect different numbers of instruments and meters to realize data collection and control of the instruments and meters.
[0046] The power supply module is composed of 220VAC to 24VDC and 24VDC to 5V, 3.3V DC, which provides power for the entire distribution network equipment data acquisition device.
[0047] The processor module adopts the Arm Cortex-M4 processor.
[0048] Furthermore, the RS485 bus module may include an RS485 1# module and an RS485 2# module, wherein the RS485 1# module and the RS485 2# module are used as ModbusRTU master station protocols, and the chip used by the RS485 bus module is TDA51S485HC, the chip has its own isolated power supply, and the output is connected to conventional protection devices such as diodes.
[0049] The SPI Flash module uses the MX25L3206EM2I chip, which is connected to the control module via the SPI protocol. It has a capacity of 32MByte and is used to store the data necessary for the collector to run, as well as the memory data of the run.
[0050] In this embodiment, the distribution network equipment data collection device may further include: a WiFi module, wherein the WiFi module is used to connect to a mobile terminal (such as a mobile phone), and a user can view the collected distribution network equipment information in real time through the mobile terminal.
[0051] In this embodiment, the distribution network equipment data acquisition device may further include: a USB module, which is used to connect to an external small-capacity storage device to achieve encryption and customized operations of the data acquisition device. The USB module is a USB-A interface, and the communication protocol adopts the IIC protocol, which is used for collector ID authentication and other purposes such as related encryption.
[0052] In this embodiment, the distribution network equipment data acquisition device may further include: a Zigbee module, and the Zigbee module is used to connect to the wireless temperature measurement sensor.
[0053] The LED module can include three LED lights, which are red, green and yellow. Red is an alarm indicator. When an error occurs in any module, the red light will flash with a period of 2S; green is an operation indicator. When the control module is running, it flashes with a period of 1S; yellow flashes for wireless communication. When the Zigbee module or WiFi module receives or sends data, it flashes once.
[0054] In this embodiment, the distribution network equipment data acquisition device may further include: a closing point detection module, and the closing point detection module is used to read the external open and closed point status.
[0055] In this embodiment, the distribution network equipment data acquisition device may further include: a relay module, which is used to control the external opening and closing points. The relay module adopts a single-pole double-throw relay, which consists of a normally open point and a normally closed point.
[0056] In this embodiment, the distribution network equipment data acquisition device may further include: a DI module, which is used to connect to an external switch quantity device and detect the external signal level state. The DI module is a switch quantity input signal detection circuit composed of an optical coupler, which supports 12V to 48V switch signal input.
[0057] In this embodiment, the distribution network equipment data acquisition device may further include: an Ethernet module and an RS4853# module, wherein the Ethernet module and the RS485 3# module are respectively used to connect to upper layer equipment. The Ethernet module uses a W5500 chip, which is connected to the processor module via the SPI protocol.
[0058] refer to Figure 2 The embodiment of the present invention further provides a method for automatically allocating a distribution network device ID, which is applied to the above-mentioned distribution network device data acquisition device. The method comprises the following steps:
[0059] S301: Entering characteristic information of the instrument by operating the serial port screen, the serial port screen sends the characteristic information to the UART module through the UART protocol, the processor module processes the characteristic information received by the UART module, and stores the characteristic information in the SPIFlash module, thereby completing the entry of characteristic information of the instrument;
[0060] S302: According to the maximum number of addresses supported by the bus protocol addr n 、The maximum number of instruments and meters on the distribution network equipment dev n , for the maximum number of bus addresses addr nDividing to obtain N address domains, wherein different address domains represent different distribution network equipment IDs, and storing the division results in the SPIFlash module;
[0061] The number of address fields is calculated using the following formula:
[0062]
[0063] Specifically, in this embodiment, addr n 209, dev n is 10, and according to the above formula, N is 20.
[0064] S303: Get the partition result from the SPIFlash module and get 1~dev n The address belongs to address domain 1, (dev n +1)~(2dev n ) address belongs to address domain 2, ((N-1)dev n +1)~(Ndev n ) address belongs to address domain N, the processor module controls the RS485 bus module to send data frames from address 1 and continuously detects until Ndev n If there is a response, the characteristic information fed back by the instrument at the corresponding address will be recorded. If there is no response, the address will be skipped.
[0065] Specifically, in this embodiment, addresses 1 to 10 belong to address domain 1, addresses 11 to 20 belong to address domain 2, and addresses 191 to 200 belong to address domain 20. The processor module controls the RS485 bus module to send data frames from address 1 and continuously detects until address 200. In order to more conveniently understand the address division in this embodiment, Figure 3 The subordinate relationship of each address is clearly shown. In the figure, each instrument occupies an actual bus address. According to the address division, addresses 1 to 10 correspond to 10 instruments and belong to the 1# address domain. And so on, a total of 20 address domains are divided.
[0066] S304: The processor module compares the feature information received in S303 with the feature information entered in S301 to see if they are similar. If they are similar to any of the entered feature information, the comparison is successful and the current address of the instrument is recorded. It verifies whether there is similar feature information in the same address domain. If they are similar, it means that there are duplicate types of instruments in the same address domain, and the processor module sends a signal to the LED module to alarm.
[0067] S305: The processor module records the instrument addresses of each address domain and the bound distribution network equipment information recorded in S304 into the SPI Flash module.
[0068] After completing the above steps, the number of distribution network devices connected to the data acquisition device, the number and type of corresponding instruments connected to each distribution network device can be confirmed, and the binding of each instrument with the distribution network device can be completed.
[0069] Figure 4 This is an application scenario diagram of the data acquisition device for distribution network equipment of the present invention. A data acquisition device is connected to a certain number of instruments and meters, and is connected to an edge gateway via Ethernet or RS485 bus. The gateway summarizes the collected data and uploads it to the cloud server.
[0070] Those skilled in the art will readily appreciate other embodiments of the present application after considering the description and practicing the contents disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The description and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the claims.
[0071] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A data acquisition device for distribution network equipment, characterized in that: include: A processor module and a power module, an RS485 bus module, an SPI Flash storage module, an LED module, and a UART module respectively connected to the processor module, wherein: The UART module is used to connect to the serial port screen to realize human-computer interaction. The serial port screen reads the operation data of the processor module and the instrument data collected by the RS485 bus module through the UART module; the serial port screen issues instructions to the processor module through the UART module to indirectly control the instrument; The RS485 bus module is used as a Modbus RTU master station protocol to connect different numbers of instruments and meters to realize data collection and control of the instruments and meters; The processor module supports the maximum number of addresses addr according to the bus protocol. n 、The maximum number of instruments and meters on the distribution network equipment n , for the maximum number of bus addresses addr n Divide to obtain N address domains, where different address domains represent different distribution network equipment IDs, and store the division results in the SPI Flash module; obtain the division results from the SPI Flash module to obtain 1~deυ n The address belongs to address domain 1, (deυ n +1)~(2deυ n ) address belongs to address domain 2, ((N-1)deυ n +1)~(Ndeυ n ) address belongs to address domain N, the processor module controls the RS485 bus module to send data frames from address 1 and continuously detects until ndeυ n If there is a response, the characteristic information fed back by the instrument at the corresponding address is recorded. If there is no response, the address is skipped.
2. A distribution network equipment data acquisition device according to claim 1, characterized in that: Also includes: The WiFi module is used to connect to the mobile terminal, and the user can view the collected distribution network equipment information in real time through the mobile terminal.
3. A distribution network equipment data acquisition device according to claim 1, characterized in that: Also includes: A USB module is used to connect to an external small-capacity storage device to implement encryption and customized operations of the data acquisition device.
4. A distribution network equipment data acquisition device according to claim 1, characterized in that: Also includes: Zigbee module, the Zigbee module is used to connect to the wireless temperature sensor.
5. A distribution network equipment data acquisition device according to claim 1, characterized in that: Also includes: A closing point detection module is used to read the external opening and closing point status.
6. A data acquisition device for distribution network equipment according to claim 1, characterized in that: Also includes: A relay module is used for controlling external opening and closing points.
7. A distribution network equipment data acquisition device according to claim 1, characterized in that: Also includes: DI module, the DI module is used to connect to an external switch quantity device and detect the external signal level state.
8. A distribution network equipment data acquisition device according to claim 1, characterized in that: Also includes: Ethernet module and RS485 3# module, the Ethernet module and the RS485 3# module are respectively used to connect to upper layer devices.
9. A method for automatically allocating distribution network equipment IDs, applied to the distribution network equipment data acquisition device according to claim 1, the method comprising the following steps: Step 1: input the characteristic information of the instrument by operating the serial port screen, the serial port screen sends the characteristic information to the UART module through the UART protocol, the processor module processes the characteristic information received by the UART module, and stores the characteristic information in the SPI Flash module, thereby completing the input of the characteristic information of the instrument; Step 2: According to the maximum number of addresses supported by the bus protocol addr n 、The maximum number of instruments and meters on the distribution network equipment n , for the maximum number of bus addresses addr n Dividing to obtain N address domains, where different address domains represent different distribution network equipment IDs, and storing the division results in the SPI Flash module; Step 3: Get the division result from the SPI Flash module and get 1~deυ n The address belongs to address domain 1, (deυ n +1)~(2deυ n ) address belongs to address domain 2, ((N-1)deυ n +1)~(Ndeυ n ) address belongs to address domain N, the processor module controls the RS485 bus module to send data frames from address 1 and continuously detects until ndeυ n If there is a response, the characteristic information fed back by the instrument at the corresponding address will be recorded. If there is no response, the address will be skipped. Step 4: The processor module compares the characteristic information received in step 3 with the characteristic information entered in step 1 to see if they are similar. If they are similar to any of the entered characteristic information, the comparison is successful, and the current address of the instrument is recorded; verify whether there is similar characteristic information in the same address domain. If they are similar, it means that there are repeated types of instruments in the same address domain, and the processor module sends a signal to the LED module to alarm; Step 5: The processor module records the instrument addresses of each address domain recorded in step 4 and the bound distribution network equipment information into the SPI Flash module.
10. A method for automatically allocating IDs for distribution network equipment according to claim 9, characterized in that: According to the maximum number of addresses supported by the bus protocol addr n 、The maximum number of instruments and meters on the distribution network equipment n , for the maximum number of bus addresses addr n Divide it into N address domains, including: The number of address domains is calculated using the following formula:
