Power distribution terminal communication system based on configuration modularization and communication method thereof
By introducing modular configuration and multi-process methods into the power distribution terminal communication system, combined with communication management modules and configuration and maintenance tools, the problems of system abnormalities caused by difficulty in adding and deleting functional modules and errors in single modules in the prior art are solved, and the independent operation of functional modules and system flexibility and maintainability are realized.
Patent Information
- Application Number
- CN202411636293.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-15
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2044-11-15
AI Technical Summary
The communication system of the existing power distribution terminal adopts a single-process multi-thread structure, which causes the entire system to be modified when the functional module is added, deleted or modified. The error of a certain functional module will cause the entire communication module to exit abnormally, making it inconvenient to use.
The communication system based on configuration modular distribution terminals is adopted, and the independent operation of functional modules is managed through the communication management module, and the independent configuration and operation of functional modules are realized, the start and stop of a single functional module is supported, and the addition and configuration of functional modules are realized through SQL database and configuration maintenance tools.
It realizes the configurable and independent operation of functional modules, supports the start and stop of a single functional module, avoids abnormal exit of the entire system caused by single module errors, and improves the flexibility and maintainability of the system.
Smart Images

Figure CN119629045A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power distribution terminal communication systems, and in particular to a power distribution terminal communication system based on configuration modularization and a communication method thereof. Background Art
[0002] The distribution terminal is an intelligent terminal of the distribution automation system, which has functions such as data collection, remote control, fault detection and location, communication and information sharing. It is suitable for distribution ring network cabinets, switch stations, distributed power access points and user-side substations.
[0003] The communication system of the existing distribution terminal adopts a single-process multi-threaded structure, but the single-process multi-threaded communication system architecture requires hard-coding to add threads to achieve communication with other devices. When it is necessary to add, delete or modify the function of a single functional module of the communication system, the entire communication system needs to be changed. In addition, a stubborn error in a functional module of the communication system will cause the entire communication module to exit abnormally, which brings inconvenience to actual use. Summary of the invention
[0004] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a distribution terminal communication system based on configuration modularization and a communication method thereof. The distribution terminal communication system based on configuration modularization of the present application operates in a configuration modularization mode and a multi-process mode to realize the independent configuration and operation of the functional modules, and through the communication management module, it is possible to realize the start and stop of a single functional module.
[0005] In a first aspect, an embodiment of the present invention provides a power distribution terminal communication system based on configuration modularization, including:
[0006] A communication management module, the communication management module is used to manage multiple independently running functional modules of the communication system, the communication management module is in communication connection with the multiple functional modules, the functional modules include a 101 / 104 master station forwarding module, an upward forwarding module and a downward acquisition module, the distribution terminal exchanges data with the distribution master station through the 101 / 104 master station forwarding module, and the distribution terminal exchanges data with the communication device through the upward forwarding module and the downward acquisition module;
[0007] SQL database, the SQL database includes system operation management configuration information and configuration files of the functional modules, and the SQL database is connected to a plurality of the functional modules via a central data bus;
[0008] A configuration maintenance tool, wherein the configuration maintenance tool is connected to the communication management module and configures the functional modules of the communication system through the communication management module. The configuration maintenance tool is communicatively connected to the SQL database. The communication system obtains the system operation management configuration information and the configuration file through the configuration maintenance tool to realize the addition of the functional modules.
[0009] According to some embodiments of the present invention, the power distribution master station includes a data acquisition and monitoring control system, and the protocol parameters of the distribution terminal are configured through the configuration maintenance tool so that the protocol parameters of the distribution terminal match the protocol parameters of the data acquisition and monitoring control system.
[0010] According to some embodiments of the present invention, the configuration and maintenance tool includes a device set, a port set, a forwarding set and a monitoring set, the device set is used to generate pairs of virtual communication devices and device IDs, the port set is used to specify and bind the ports of the distribution terminal for the virtual communication devices, the forwarding set is used to generate a forwarding table, the monitoring set is used to bind the ports of the distribution master station and the distribution terminal, and associate the monitoring objects of the data acquisition and monitoring control system with the forwarding table.
[0011] According to some embodiments of the present invention, the SQL database includes the device ID of the virtual communication device, a devid generated based on the device ID, an overall ID, a port binding result between the virtual communication device and the power distribution terminal, system operation management configuration information, and a configuration file corresponding to the functional module.
[0012] According to some embodiments of the present invention, the virtual communication device is bound to the port of the power distribution terminal, the configuration and maintenance tool includes a communication device template library, the communication device template library includes multiple communication device templates, the communication device template includes an original point table, and the original point table included in each communication device template is unique.
[0013] According to some embodiments of the present invention, the functional module is communicatively connected to a physical communication device, the configuration and maintenance tool assigns the device ID of the virtual communication device and the original point table to the physical communication device, the physical communication device includes a device point table, the device point table of the physical communication device communicatively connected to the same functional module is generated based on the same original point table, and the four remote control information of the device point table is different from the four remote control information of the original point table.
[0014] In a second aspect, an embodiment of the present invention provides a distribution terminal communication method based on configuration modularization, which is applied to the distribution terminal communication system based on configuration modularization described in the first aspect, and the method includes:
[0015] The configuration maintenance tool generates a communication device template library based on a preset communication protocol and an externally imported original template, generates pairs of virtual communication devices and device IDs, and devid based on the communication device template library, and performs port binding between the power distribution terminal and the virtual communication device;
[0016] The configuration maintenance tool generates a transfer table based on the demand table sent by the power distribution master station, and associates the monitoring objects of the data acquisition and monitoring control system based on the transfer table;
[0017] The power distribution terminal generates an overall ID based on the connected physical communication device, and selects and downloads the configuration file corresponding to the functional module required by the physical communication device and the system operation management configuration information to the power distribution terminal through the configuration maintenance tool, and the functional module downloading the configuration file operates normally;
[0018] The distribution terminal exchanges data with the distribution master station through the 101 / 104 master station forwarding module, and the distribution terminal exchanges data with the communication equipment through the upward forwarding module and the downward acquisition module. The communication management module monitors the functional module, and the communication management module stops the function module that is working abnormally.
[0019] According to some embodiments of the present invention, the configuration and maintenance tool generates the virtual communication device and the device ID, completes port binding between the virtual communication device and the power distribution terminal, and performs four remote information configurations and fixed value information configurations based on the original point table to generate a device point table, and the device point table facilitates the power distribution terminal to be externally connected to the physical communication device.
[0020] In the third aspect, an embodiment of the present invention provides a distribution terminal communication device based on configuration modularization, comprising at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions executable by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the distribution terminal communication method based on configuration modularization as described in the second aspect above.
[0021] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the distribution terminal communication system based on configuration modularization as described in the first aspect above.
[0022] The distribution terminal communication system based on configuration modularization according to the embodiment of the present invention has at least the following beneficial effects: a communication management module, the communication management module is used to manage multiple independently running functional modules of the communication system, the communication management module is communicatively connected with the multiple functional modules, the functional modules include a 101 / 104 master station forwarding module, an upward forwarding module and a downward acquisition module, the distribution terminal exchanges data with the distribution master station through the 101 / 104 master station forwarding module, and the distribution terminal exchanges data with the communication device through the upward forwarding module and the downward acquisition module; an SQL database, the SQL database includes system operation management configuration information and configuration files of the functional modules, the SQL database is connected with the multiple functional modules through a central data bus; a configuration maintenance tool, the configuration maintenance tool configures the functional modules of the communication system through the communication management module, the configuration maintenance tool is communicatively connected with the SQL database, the communication system obtains the system operation management configuration information and the configuration file through the configuration maintenance tool to realize the addition of the functional modules. According to the technical solution of the embodiment of the present invention, the communication system realizes the operation of the communication system in a configured modular manner and a multi-process manner by configuring the maintenance tool and the central data bus, realizes the configurable operation and independent operation of the functional modules, and through the communication management module, can realize the start and stop of a single functional module. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 is a schematic diagram of a power distribution terminal communication system based on configuration modularization provided by an embodiment of the present invention;
[0024] Figure 2 is a flow chart of a power distribution terminal communication method based on configuration modularization provided by another embodiment of the present invention;
[0025] Figure 3 It is the result of binding a port of a communication device by a configuration maintenance tool provided by another embodiment of the present invention;
[0026] Figure 4 It is the network port communication address and port of the power distribution terminal communication system matching the data acquisition and monitoring control system implemented by the 101 protocol provided by another embodiment of the present invention;
[0027] Figure 5 It is a serial communication address and port of a distribution terminal communication system matching a data acquisition and monitoring control system implemented by the 104 protocol provided by another embodiment of the present invention;
[0028] Figure 6 It is a structural diagram of a power distribution terminal communication device based on configuration modularization provided in another embodiment of the present invention. DETAILED DESCRIPTION
[0029] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0030] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0031] In the description of the present invention, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed" etc. are understood as not including the number itself, and "above", "below", "within" etc. are understood as including the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0032] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.
[0033] The distribution terminal communication system based on configuration modularization according to the embodiment of the present invention has at least the following beneficial effects: a communication management module, the communication management module is used to manage multiple independently running functional modules of the communication system, the communication management module is communicatively connected with the multiple functional modules, the functional modules include a 101 / 104 master station forwarding module, an upward forwarding module and a downward acquisition module, the distribution terminal exchanges data with the distribution master station through the 101 / 104 master station forwarding module, and the distribution terminal exchanges data with the communication device through the upward forwarding module and the downward acquisition module; an SQL database, the SQL database includes system operation management configuration information and configuration files of the functional modules, the SQL database is connected with the multiple functional modules through a central data bus; a configuration maintenance tool, the configuration maintenance tool configures the functional modules of the communication system through the communication management module, the configuration maintenance tool is communicatively connected with the SQL database, the communication system obtains the system operation management configuration information and the configuration file through the configuration maintenance tool to realize the addition of the functional modules. According to the technical solution of the embodiment of the present invention, the communication system realizes the operation of the communication system in a configured modular manner and a multi-process manner by configuring the maintenance tool and the central data bus, realizes the configurable operation and independent operation of the functional modules, and through the communication management module, can realize the start and stop of a single functional module.
[0034] First, refer to Figure 1 , Figure 1 A schematic diagram of a power distribution terminal communication system based on configuration modularization provided in an embodiment of the present invention.
[0035] like Figure 1 As shown, the power distribution terminal communication system based on configuration modularization provided in this embodiment is characterized by comprising:
[0036] Communication management module, the communication management module is used to manage multiple independently running functional modules of the communication system, the communication management module is in communication connection with multiple functional modules, the functional modules include 101 / 104 master station forwarding module, upward forwarding module and downward collection module, the distribution terminal exchanges data with the distribution master station through the 101 / 104 master station forwarding module, and the distribution terminal exchanges data with the communication equipment through the upward forwarding module and the downward collection module;
[0037] SQL database, which includes system operation management configuration information and configuration files of functional modules. The SQL database is connected with multiple functional modules through a central data bus;
[0038] Configuration maintenance tool, the configuration maintenance tool is connected with the communication management module and configures the functional modules of the communication system through the communication management module, the configuration maintenance tool is connected with the SQL database communication, the communication system obtains the system operation management configuration information and configuration files through the configuration maintenance tool to realize the addition of functional modules.
[0039] It should be noted that the communication system is a component of the distribution terminal. The communication system runs on the Linux system. The distribution terminal completes the data interaction between the distribution terminal and the distribution master station, the distribution terminal and the communication equipment through the communication system. The communication system adopts a data input / data output control system architecture. Multiple functional modules share a central data bus. The central data bus includes a real-time library / command queue / event queue, etc. Multiple functional modules work on the central data bus and realize data interaction and data synchronization between data through the central data bus.
[0040] It should be noted that there is data interaction between the communication management module and the configuration maintenance tool to realize functions such as data interaction, message monitoring, application start and stop, and online debugging. The communication management module is used to connect with multiple functional modules, and can control the start and stop of a single functional module without affecting the normal operation of other functional modules.
[0041] It should be noted that the functional modules include M4Core protection core communication module, 101 / 104 master station acquisition module, 101 / 104 master station forwarding module, historical data storage module, satellite GPS communication module, panel indicator communication module, LCD display module, management machine module, etc. Among them, the communication equipment includes the upper forwarding equipment and the lower acquisition equipment. The distribution terminal exchanges data with the communication equipment through the upper forwarding module and the lower acquisition module of the functional module; and exchanges data with the distribution master station system through the 101 / 104 master station forwarding module of the functional module, so as to realize the data exchange between the distribution terminal and the distribution master station. The distribution master station system runs on the Unix platform.
[0042] It should be noted that the system operation management configuration information determines which functional modules can be run by the current distribution terminal. The communication system realizes the configurable operation of each APP of the communication module through the system operation management configuration information. A functional module has a unique configuration file. The configuration file corresponding to the functional module is downloaded from the SQL database to the distribution terminal through the configuration maintenance tool, which can realize the normal operation of the functional module corresponding to the configuration file.
[0043] It should be noted that the configuration and maintenance tool runs on the Windows platform and is used to change the communication parameters and protection settings of the communication system.
[0044] It should be noted that, through the distribution terminal communication system based on configuration modularization provided in this embodiment, the communication system of the distribution terminal can configure the functional modules in a configuration modularization manner, select the functional modules required by the communication device based on the communication device connected to the distribution terminal, and download the system operation management configuration information and the configuration file of the selected functional module to the distribution terminal through the configuration maintenance tool, that is, through the configuration maintenance tool, the system operation management configuration information and the configuration file, the addition of a single functional module is realized. Correspondingly, according to the actual needs of operation, the functional module can be deleted and the function modified in the communication system through the configuration maintenance tool, the system operation management configuration information and the configuration file, without affecting the normal operation of other functional modules. Data sharing of each functional module of the communication system is realized through the central data bus, and each functional module operates independently; the communication management module monitors the operation status of the functional module. When a stubborn error occurs in a functional module, the communication management module can be used to suspend the operation of the functional module without affecting the normal operation of other functional modules, thereby ensuring that the communication system is in working condition.
[0045] In addition, in one embodiment, the power distribution master station includes a data acquisition and monitoring control system, and the protocol parameters of the power distribution terminal are configured by configuring a maintenance tool so that the protocol parameters of the power distribution terminal match the protocol parameters of the data acquisition and monitoring control system.
[0046] It should be noted that the communication system of the distribution terminal has information interaction with the data acquisition and monitoring control system. The communication system belongs to the communication monitoring end. There are two main communication protocols: 101 serial communication protocol and 104 network protocol. The communication system configures the communication parameters in the 101 protocol and 104 protocol through the configuration maintenance tool, and saves them in the scada_tab le data table in the SQL database. The configuration maintenance tool is used to configure the protocol parameters of the distribution terminal, complete the communication monitoring, and complete the forwarding to the distribution master station.
[0047] In addition, in one embodiment, the configuration and maintenance tool includes a device set, a port set, a forwarding set and a monitoring set. The device set is used to generate pairs of virtual communication devices and device IDs, the port set is used to specify and bind the ports of the distribution terminal for the virtual communication devices, the forwarding set is used to generate a forwarding table, and the monitoring set is used to bind the ports of the distribution master station and the distribution terminal, and to associate the monitoring objects and forwarding tables of the data acquisition and monitoring control system.
[0048] It should be noted that the device set of the configuration maintenance tool records the generated virtual communication device and device ID, and the distribution terminal can generate configuration files based on the devices in the device set; the port set records the binding results, and the distribution terminal can generate system operation management configuration information based on the port set; the forwarding set generates a forwarding table based on the device point table of the communication device; through the monitoring set, the port binding between the distribution terminal and the distribution master station and the association between the monitoring object of the data acquisition and monitoring control system and the forwarding table are realized. The configuration maintenance tool pre-configures the virtual communication device to facilitate the subsequent external connection of the physical communication device.
[0049] In addition, in one embodiment, the SQL database includes the device ID of the virtual communication device, the devid generated based on the device ID, the overall ID, the port binding result between the virtual communication device and the power distribution terminal, the system operation management configuration information and the configuration file corresponding to the functional module.
[0050] It should be noted that SQL obtains the paired virtual communication devices and device IDs generated by the configuration maintenance tool, where the device ID is unique; devid is generated based on the device ID, and the forwarding table includes devid. At the end of the overall configuration of the communication system, a continuous and unique overall ID is generated based on the external devices of the communication system. A functional module corresponds to a configuration file. The distribution terminal downloads a configuration file and system operation management configuration information through the configuration maintenance tool. The distribution terminal can only run the functional module corresponding to the configuration file. The system operation management configuration information and the configuration files corresponding to the functional modules are stored in the configuration library of the SQL database.
[0051] In addition, in one embodiment, the virtual communication device is bound to the port of the power distribution terminal, and the configuration maintenance tool includes a communication device template library, the communication device template library includes multiple communication device templates, and the communication device template includes an original point table, and the original point table included in each communication device template is unique.
[0052] It should be noted that the configuration maintenance tool generates a communication device template library based on a preset communication protocol and an original template, and one communication device template corresponds to one functional module.
[0053] In addition, in one embodiment, the functional module is communicatively connected to the physical communication device, and the configuration maintenance tool assigns the device ID and original point table of the virtual communication device to the physical communication device. The physical communication device includes a device point table, and the device point table of the physical communication device communicatively connected to the same functional module is generated based on the same original point table. The four remote information of the device point table is different from the four remote information of the original point table.
[0054] It should be noted that communication equipment needs to work normally through corresponding functional modules. One functional module can correspond to multiple communication devices. Communication devices that call the same functional module must first be assigned the same original point table. The parameters in the original point table are configured based on actual implementation requirements through the configuration maintenance tool to obtain the device point table.
[0055] In addition, the embodiment of the present invention provides a distribution terminal communication method based on configuration modularization, which is applied to Figure 1 The distribution terminal communication system based on configuration modularization of the embodiment shown in FIG. Figure 2 The method includes but is not limited to the following steps:
[0056] S110, the configuration maintenance tool generates a communication device template library based on the preset communication protocol and the externally imported original template, generates pairs of virtual communication devices and device IDs, and devid based on the communication device template library, and performs port binding between the power distribution terminal and the virtual communication device;
[0057] S120, configuring the maintenance tool to generate a forwarding table based on the demand table sent by the power distribution master station, and associating the monitoring objects of the data acquisition and monitoring control system based on the forwarding table;
[0058] S130, the power distribution terminal generates an overall ID based on the connected physical communication device and selects and downloads the configuration file and system operation management configuration information corresponding to the functional module required by the physical communication device to the power distribution terminal through the configuration maintenance tool, and the functional module with the downloaded configuration file operates normally;
[0059] S140, the distribution terminal exchanges data with the distribution master station through the 101 / 104 master station forwarding module, the distribution terminal exchanges data with the communication equipment through the upward forwarding module and the downward acquisition module, the communication management module monitors the functional module, and the communication management module stops the function module that is working abnormally.
[0060] It should be noted that the configuration maintenance tool is based on the self-description of the communication protocol. According to the functional division of the functional module, a corresponding data model is established for the data input and output realized by the functional module. According to the data model, a database table is generated through the SQL database. The database table includes a telesignal table, a telemetering table, a remote control table, etc. Generating a database table is to generate a communication protocol library. Each functional module has different communication protocols. After completing the generation of the communication protocols of all functional modules, proceed to the next step.
[0061] Exemplarily, a protection core communication protocol library is established based on the M4Core protection communication module and protection core communication, which involves the establishment of tables such as basic configuration table, telesignaling table, telemetering table and remote control table. After the basic configuration table, telesignaling table, telemetering table and remote control table are written into the SQL database, the equipment table, telesignaling table, telemetering table, telepulse table, remote control table and constant value table will be established.
[0062] Exemplarily, based on the 101 / 104 master station acquisition module and the 101 / 104 acquisition protocol, a distribution acquisition master station 101 / 104 protocol library is established, and a library is built for collecting four remote information from distribution terminals. After the four remote information collected by the distribution terminals is written into the SQL database, the TABLE structures such as telemetry ai, teleregulation ao, telepulse ci, basic configuration device, telesignal di, remote control do and set value setting can be queried in the library, and the structure definition of the telemetry table and the telemetry table can be seen.
[0063] It should be noted that, based on the generated communication protocol library, a set of universal standards for communication equipment suitable for the protocol is established, namely, the communication equipment template library. For the same type of equipment, the function of reusing the original point numbers of the four remote controls is achieved. A template_tab le table is created in the SQL database, and all templates created according to the communication protocol are inserted into the original template in the table. After the original template is inserted, the communication equipment template library is generated. A functional module corresponds to a communication equipment template in a communication equipment template library. After the communication equipment template is established, the telesignaling, telemetry, remote control and set value information associated with the communication equipment template are automatically configured through the configuration maintenance tool, so as to facilitate the subsequent establishment of external communication equipment.
[0064] It should be noted that the original templates include empty template, Beidou / GPS time synchronization template, serial port recording file transfer template, State Grid standard power supply protocol-standard template, State Grid standard power supply protocol-Southern Grid template, dual-core communication protocol template (recording type DTU), gateway machine template (M151 platform), inter-board serial communication template (conventional DTU), State Grid power panel template (DTU), and external battle damage device template (DTU). The content field of the original template saves the detailed four-remote definition of the corresponding protocol template. The original template has been designed before configuring the communication system and imported from the outside through the configuration maintenance tool.
[0065] It should be noted that for the same communication equipment template, there are multiple devices of the same type connected to the distribution terminal. Each device of the same type uses the original point table of the same communication equipment template. During configuration design, a unique device ID is generated for each communication device. At the same time, for the same type of information (such as telemetry) in the corresponding protocol library table, the original inf is the same, and different id sequences are generated, and devid is used to distinguish the devices. The communication equipment is established based on the communication equipment template through the device set of the configuration maintenance tool. The basic information of the communication equipment is modified based on the communication equipment template according to the operation needs. The parameters of the communication equipment are the actual operation parameters, and the template is the basic information and default information agreed upon for the same type of equipment. Among them, the same type of equipment is the communication equipment that calls the same functional module.
[0066] Exemplarily, based on the protection core communication template, a protection communication device is established, and basic information of the protection communication device is related to the actual use of the functional module.
[0067] For example, an external serial port communication device is established. According to the external serial port communication template, the external device is connected through the serial port. The communication template is derived from the four-remote point table forwarded by the external serial port device. The protocol library used by the external serial port communication template is the power distribution acquisition master station 101 / 104 protocol library. According to the communication requirements of the power distribution terminal, other downstream acquisition devices can be created based on the communication device template.
[0068] It should be noted that, refer to Figure 3 , Figure 3 The result of binding the port of the communication device to the configuration maintenance tool provided in this embodiment is as follows: Figure 3 The left side is the communication device bound to the port, and the right side shows the network port or serial port configuration information corresponding to the port. The communication device port binding result is to specify the port of the communication system of the power distribution terminal for the communication device through the port set of the configuration maintenance tool to achieve hardware binding; the communication device includes the downward acquisition device (network port 104, specify the IP and port number; serial port 101, specify the link address and public address, baud rate, data bit, stop bit, parity check) and the upward forwarding device (network port 104, specify the IP and port number; serial port 101, specify the link address and public address, baud rate, data bit, stop bit, parity check). The result of the communication device binding port is written into the port_table in the SQL database through the configuration maintenance tool.
[0069] It should be noted that the configuration maintenance tool extracts the four remote point tables that the communication equipment needs to forward based on the demand table sent by the distribution master station to generate a forwarding table to meet the real-time monitoring requirements of the distribution master station. The forwarding set configuration of the configuration maintenance tool needs to forward the point table to the distribution master station and update it to the forwarding table database. The distribution terminal can have multiple forwarding tables, which are saved in the forward_table table in the SQL database. The specific telesignaling sub-table, telemetry sub-table and remote control sub-table are saved in the forward_d i_table table, forward_ai_table table and forward_do_table table, and the fixed value sub-table is saved in the forward_settling_table table.
[0070] It should be noted that, refer to Figure 4 and Figure 5 , Figure 4 To match the network communication address and port of the data acquisition and monitoring control system for the power distribution terminal communication system implemented through the 101 protocol, Figure 5 Match the serial communication address and port of the data acquisition and monitoring control system for the distribution terminal communication system implemented through the 104 protocol. Configure the protocol parameters of the data acquisition and monitoring control system on the distribution terminal through the configuration maintenance tool to complete the communication monitoring; the distribution terminal communication system communicates with the data acquisition and monitoring control system, and the distribution terminal communication system is the communication monitoring end. The communication protocols mainly include the 101 serial communication protocol and the 104 network protocol. The communication terminal configures the communication parameters in the 101 protocol and the 104 protocol through the configuration maintenance tool, and saves them in the scada_table data table in the SQL library.
[0071] It should be noted that a continuous ID is generated for all external communication devices of the communication system through the configuration maintenance tool; after all files generated by the configuration maintenance tool are updated to the SQL database through the configuration maintenance tool, the information required for the operation of the functional module is extracted from the corresponding SQL database with the help of the configuration maintenance tool, and the self-description file of the distribution terminal is generated. The system operation management configuration information sysmgt__.xml file is automatically generated according to the port set and historical library set of the configuration maintenance tool. According to the communication equipment in the device set of the configuration maintenance tool, the four remote configuration information files appdbXXX.xml of the functional modules corresponding to each communication device are automatically generated. The sysmgt__.xml file determines which functional modules can be run by the current distribution terminal. According to the functional modules configured by the system operation management information sysmgt__.xml and the corresponding XML configuration files, the configuration software architecture of the distribution terminal is packaged, and after being downloaded to the distribution terminal through the configuration maintenance tool, the actual installation and operation of the distribution terminal is realized.
[0072] It should be noted that after the communication system of the distribution terminal is put into operation, data interaction between the distribution terminal and the distribution master station is realized, and data interaction between the distribution terminal and the communication device is realized. If a new type of external communication device is added during the implementation process, the connection between the external communication device and the distribution terminal is realized through the distribution terminal communication method based on configuration modularization of this application; if an external communication device with an existing communication device template is added, the functional module required by the external communication device is selected, and the configuration file and system operation management configuration information of the selected functional module are downloaded to the distribution terminal through the configuration maintenance tool to realize the normal operation of the functional module. Correspondingly, the functional module can also be deleted or modified through the configuration maintenance tool; the newly added functional module is connected to the central data bus to realize global data sharing, and the communication system does not need to add additional threads through hard coding to add new functional modules; for transient errors of a single functional module, the communication system can be restored and started through a script, and for stubborn errors of a single functional module, the communication management module can be used to suspend the work of the module separately, so that the communication system is in working state.
[0073] In addition, in one embodiment, the configuration maintenance tool generates a virtual communication device and a device ID, completes port binding between the virtual communication device and the power distribution terminal, and generates a device point table based on the original point table for four remote information configurations and fixed value information configurations. The device point table facilitates the external connection of the power distribution terminal to the physical communication device.
[0074] It should be noted that the power distribution terminal is connected to multiple external communication devices. In order to distinguish the data of the external communication devices, the communication devices are numbered to distinguish each external communication device. First, the configuration maintenance tool generates virtual communication devices and device IDs, and allocates an original point table to each newly created virtual communication device. Based on the original point table, the four remote information configurations are performed according to the operation requirements to obtain the device point table. The power distribution terminal obtains the demand table sent by the power distribution master station, selects the corresponding device point table of the corresponding device according to the content of the demand table and imports it into the forwarding set, generates a forwarding table, and provides an implementation basis for the subsequent association of the forwarding table with the monitoring object.
[0075] like Figure 6 As shown, Figure 6 The present invention also provides a power distribution terminal communication device based on configuration modularization, including:
[0076] The processor 501 may be implemented by a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0077] The memory 502 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 502 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 502, and the processor 501 calls and executes the distribution terminal communication method based on configuration modularization in the embodiment of this application;
[0078] Input / output interface 503, used to implement information input and output;
[0079] Communication interface 504, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WI FI, Bluetooth, etc.);
[0080] A bus 505 that transmits information between the various components of the device (e.g., the processor 501, the memory 502, the input / output interface 503, and the communication interface 504);
[0081] The processor 501 , the memory 502 , the input / output interface 503 and the communication interface 504 are connected to each other in communication within the device via the bus 505 .
[0082] An embodiment of the present application further provides a storage medium, which is a computer-readable storage medium and stores a computer program. When the computer program is executed by a processor, the above-mentioned distribution terminal communication method based on configuration modularization is implemented.
[0083] As a non-transient computer-readable storage medium, the memory can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and are implemented to be located in one place, or may also be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0084] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically include computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0085] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions under the shared conditions without violating the spirit of the present invention. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present invention.
Claims
1. A power distribution terminal communication system based on configuration modularization, characterized in that: include: A communication management module, the communication management module is used to manage multiple independently running functional modules of the communication system, the communication management module is in communication connection with the multiple functional modules, the functional modules include a 101 / 104 master station forwarding module, an upward forwarding module and a downward acquisition module, the distribution terminal exchanges data with the distribution master station through the 101 / 104 master station forwarding module, and the distribution terminal exchanges data with the communication device through the upward forwarding module and the downward acquisition module; SQL database, the SQL database includes system operation management configuration information and configuration files of the functional modules, and the SQL database is connected to a plurality of the functional modules via a central data bus; A configuration maintenance tool, wherein the configuration maintenance tool is connected to the communication management module and configures the functional modules of the communication system through the communication management module. The configuration maintenance tool is communicatively connected to the SQL database. The communication system obtains the system operation management configuration information and the configuration file through the configuration maintenance tool to realize the addition of the functional modules.
2. The power distribution terminal communication system based on configuration modularization according to claim 1 is characterized in that: The power distribution master station includes a data acquisition and monitoring control system, and the protocol parameters of the power distribution terminal are configured through the configuration maintenance tool so that the protocol parameters of the power distribution terminal match the protocol parameters of the data acquisition and monitoring control system.
3. The power distribution terminal communication system based on configuration modularization according to claim 2 is characterized in that: The configuration and maintenance tool includes a device set, a port set, a forwarding set and a monitoring set. The device set is used to generate pairs of virtual communication devices and device IDs. The port set is used to specify and bind the ports of the distribution terminal for the virtual communication devices. The forwarding set is used to generate a forwarding table. The monitoring set is used to bind the ports of the distribution master station and the distribution terminal, and associate the monitoring objects of the data acquisition and monitoring control system with the forwarding table.
4. The power distribution terminal communication system based on configuration modularization according to claim 3 is characterized in that: The SQL database includes the device ID of the virtual communication device, a devid generated based on the device ID, an overall ID, a port binding result between the virtual communication device and the power distribution terminal, system operation management configuration information and a configuration file corresponding to the functional module.
5. The power distribution terminal communication system based on configuration modularization according to claim 3 is characterized in that: The virtual communication device is bound to the port of the power distribution terminal, the configuration maintenance tool includes a communication device template library, the communication device template library includes multiple communication device templates, the communication device template includes an original point table, and the original point table included in each communication device template is unique.
6. The power distribution terminal communication system based on configuration modularization according to claim 5, characterized in that: The functional module is communicatively connected to a physical communication device, the configuration maintenance tool assigns the device ID of the virtual communication device and the original point table to the physical communication device, the physical communication device includes a device point table, the device point table of the physical communication device communicatively connected to the same functional module is generated based on the same original point table, and the four remote control information of the device point table is different from the four remote control information of the original point table.
7. A distribution terminal communication method based on configuration modularization, characterized in that: Applied to the distribution terminal communication system based on configuration modularization according to any one of claims 1 to 6, the method comprising: The configuration maintenance tool generates a communication device template library based on a preset communication protocol and an externally imported original template, generates pairs of virtual communication devices and device IDs, and devid based on the communication device template library, and performs port binding between the power distribution terminal and the virtual communication device; The configuration maintenance tool generates a transfer table based on the demand table sent by the power distribution master station, and associates the monitoring objects of the data acquisition and monitoring control system based on the transfer table; The power distribution terminal generates an overall ID based on the connected physical communication device, and selects and downloads the configuration file corresponding to the functional module required by the physical communication device and the system operation management configuration information to the power distribution terminal through the configuration maintenance tool, and the functional module downloading the configuration file operates normally; The distribution terminal exchanges data with the distribution master station through the 101 / 104 master station forwarding module, and exchanges data with the communication equipment through the upward forwarding module and the downward acquisition module. The communication management module monitors the functional module, and the communication management module stops the functional module that is working abnormally.
8. The power distribution terminal communication method based on configuration modularization according to claim 7, characterized in that: The configuration maintenance tool generates the virtual communication device and the device ID, completes port binding between the virtual communication device and the power distribution terminal, and performs four-remote information configuration and fixed value information configuration based on the original point table to generate a device point table, which facilitates the power distribution terminal to connect to the physical communication device.
9. A power distribution terminal communication device based on configuration modularization, characterized in that: It includes at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions that can be executed by the at least one control processor, and the instructions are executed by the at least one control processor to enable the at least one control processor to execute the distribution terminal communication method based on configuration modularization as described in claim 7 or claim 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the distribution terminal communication method based on configuration modularization as described in claim 7 or claim 8.
Citation Information
Patent Citations
A monitoring system for a series capacitor compensation device
CN102299562A
NETCONF-based network equipment configuration management method
CN106301956A
Modularized distribution automation terminal implementation method and device
CN116846081A
Method and system for software modularization and automatic code generation for embedded systems
US20030056193A1