Distribution network terminal debugging tool and distribution network terminal
By designing distribution network terminal debugging tools, using the combination of data layer, service layer and application layer, the problems of inefficiency and complex operations during distribution network terminal debugging are solved, and simplified debugging operations and improved user experience are achieved.
Patent Information
- Application Number
- CN202510184632.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-19
- Publication Date
- 2025-06-06
AI Technical Summary
During the development and debugging of distribution network terminals, there are many types of configuration parameters and communication protocols, resulting in low work efficiency, complex debugging operations and poor user experience.
A distribution terminal debugging tool is designed, including the data layer, the service layer and the application layer. By responding to user operations, calling business logic services to determine user permissions, and receiving debugging and issuing instructions to realize the debugging of online data and offline data.
This tool simplifies debugging operations, provides a friendly interface, and significantly improves the efficiency and user experience of distribution network terminal debugging.
Smart Images

Figure CN120104465A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer software, and in particular to a distribution network terminal debugging tool and a distribution network terminal. Background Art
[0002] During the development and debugging of distribution network terminals, due to the large number of configuration parameters and downstream and upstream communication protocols, the database needs to use supporting database tools to manage and operate data tables. The modification and transmission of configuration parameters need to be downloaded to the local using the File Transfer Protocol (FTP) tool and then uploaded to the terminal after modification. Upstream and downstream communications need to switch to different host computer tools for debugging, etc., which makes the work efficiency extremely low and the debugging operation more complicated. Therefore, there is an urgent need for a debugging tool for distribution network terminals to solve the above technical problems. Summary of the invention
[0003] In view of this, the present invention provides a distribution network terminal debugging tool and a distribution network terminal, which can realize a debugging tool with simple debugging operation and user-friendly interface, thereby improving the efficiency of user debugging of the distribution network terminal and user experience.
[0004] According to one aspect of the present invention, an embodiment of the present invention provides a distribution network terminal debugging tool, the distribution network terminal debugging tool comprising: a data layer, a service layer and an application layer;
[0005] Wherein, the application layer is used to respond to the operation of the user logging into the debugging interface of the distribution network terminal, call the business logic service in the service layer to determine the user's user operation authority, and receive the debugging issuance instruction for the distribution network terminal within the scope of the user's operation authority; wherein, the debugging issuance instruction includes a first debugging issuance instruction and a second debugging issuance instruction; the first debugging issuance instruction is a debugging issuance instruction when debugging the online data of the distribution network terminal when the distribution network terminal is in a real-time communication state; the second debugging issuance instruction is a local configuration instruction when debugging the offline data of the distribution network terminal when the distribution network terminal is in an offline state;
[0006] The service layer is used to select a corresponding logic service interface from the business logic service according to the debugging instruction to obtain data information, and transmit the data information back to the application layer for debugging; wherein the data information includes online data obtained from the distribution network terminal, or offline data obtained from the data layer;
[0007] The data layer is used to store log information during the debugging process of the distribution network terminal, and the online data obtained by the application layer from the distribution network terminal.
[0008] According to another aspect of the present invention, an embodiment of the present invention further provides a distribution network terminal, characterized in that the distribution network terminal is specifically used for:
[0009] Receive a debugging and issuing instruction issued by a distribution network terminal debugging tool, and parse the debugging and issuing instruction to obtain a parsing result; wherein the debugging and issuing instruction includes: a debugging and issuing instruction for online data debugging when the distribution network terminal debugging tool is in a real-time communication state, or a debugging and issuing instruction for offline data after debugging when the distribution network terminal debugging tool is in an offline state;
[0010] The corresponding online data is returned to the distribution network debugging tool according to the analysis result, and the debugged online data is received.
[0011] The technical effect of the present invention is that, by responding to the operation of the user logging into the distribution network terminal debugging interface, the business logic service in the service layer is called to determine the user's user operation authority, and the debugging and issuing instructions for the distribution network terminal within the scope of the user's operation authority are received. The debugging and issuing instructions include debugging and issuing instructions when debugging the online data of the distribution network terminal when the distribution network terminal is in a real-time communication state, and local configuration instructions when debugging the offline data of the distribution network terminal when the distribution network terminal is in an offline state. Based on this, the service layer selects the corresponding logic service interface from the business logic service according to the debugging and issuing instructions to obtain data information, and transmits the data information back to the application layer for debugging. Finally, the data layer stores the log information in the debugging process of the distribution network terminal, and the online data obtained by the application layer from the distribution network terminal. The application layer, the service layer and the data layer can cooperate with each other to form a distribution network terminal debugging tool to debug the distribution network terminal. The debugging tool has a user-friendly interface and simple debugging operations, and can improve the efficiency of debugging the distribution network terminal and the user experience.
[0012] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0014] Figure 1 A structural diagram of a distribution network terminal debugging tool provided by an embodiment of the present invention;
[0015] Figure 2 A schematic diagram of a communication structure for real-time communication between a distribution network terminal debugging tool and a distribution network terminal provided by an embodiment of the present invention;
[0016] Figure 3 A schematic diagram of a process for online modification of terminal data provided by an embodiment of the present invention;
[0017] Figure 4 A schematic diagram of the functions of a distribution network terminal configuration module provided by an embodiment of the present invention;
[0018] Figure 5 A schematic diagram of interaction between a debugging tool and a terminal device provided by an embodiment of the present invention;
[0019] Figure 6 A schematic diagram of a process of starting or stopping monitoring a channel message of a terminal provided by an embodiment of the present invention;
[0020] Figure 7 A schematic diagram of the structure of another distribution network terminal debugging tool provided by an embodiment of the present invention;
[0021] Figure 8 A flow chart of a distribution network terminal debugging method provided by an embodiment of the present invention;
[0022] Fig. 9 A schematic diagram of a local configuration module provided in an embodiment of the present invention calling a data interface in a service layer to obtain a database editing interface in a data layer;
[0023] Fig.10 A schematic diagram of a local configuration module provided in an embodiment of the present invention calling a data interface in a service layer to obtain a configuration forwarding table editing interface in a data layer;
[0024] Fig.11 A schematic diagram of a terminal configuration remote signaling data interface in a distribution network terminal configuration module provided in an embodiment of the present invention;
[0025] Fig.12 A schematic diagram of a master station communication remote control data interface provided by an embodiment of the present invention;
[0026] Fig.13 A schematic diagram of a communication message interface provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] The development and debugging of distribution network terminals in the power system is the key to the operation and maintenance of the power system. Since the existing technology has problems such as low debugging efficiency, complex debugging operations and poor user experience in the process of development and debugging of distribution network terminals, in view of this, the present application proposes a distribution network terminal debugging tool for use in the debugging of distribution network terminals in the power system.
[0030] In one embodiment, Figure 1 This is a structural diagram of a distribution network terminal debugging tool provided by an embodiment of the present invention. This embodiment is applicable to the situation when the distribution network terminal is debugged.
[0031] like Figure 1 As shown, the distribution network terminal debugging tool in this embodiment includes: a data layer 110, a service layer 120 and an application layer 130;
[0032] Among them, the application layer 110 is used to respond to the operation of the user logging into the distribution network terminal debugging interface, call the business logic service in the service layer 120 to determine the user's user operation authority, and receive the debugging and issuing instructions for the distribution network terminal within the scope of the user's operation authority; wherein the debugging and issuing instructions include a first debugging and issuing instruction and a second debugging and issuing instruction; the first debugging and issuing instruction is a debugging and issuing instruction when debugging the online data of the distribution network terminal when the distribution network terminal is in a real-time communication state; the second debugging and issuing instruction is a local configuration instruction when debugging the offline data of the distribution network terminal when the distribution network terminal is in an offline state;
[0033] The service layer 120 is used to select the corresponding logic service interface from the business logic service according to the debugging instruction to obtain data information, and transmit the data information back to the application layer 120 for debugging; wherein the data information includes online data obtained from the distribution network terminal, or offline data obtained from the data layer 130;
[0034] The data layer 130 is used to store log information during the debugging process of the distribution network terminal, and the online data obtained by the application layer 110 from the distribution network terminal.
[0035] Among them, the service layer 120 can be understood as a communication service interface, which can also be called a business logic service in the service layer. The business logic service may include but is not limited to a communication interface between the application layer 110 and the data layer 130, an interface for communication between the application layer 110 and the distribution network terminal, an authority control interface, and a log monitoring service, etc. Among them, the communication interface between the application layer 110 and the data layer 130 may include but is not limited to a database service interface and a file operation interface; the interface for communication between the application layer 110 and the distribution network terminal may include but is not limited to a network port communication interface and a serial port communication interface. Communication with the distribution network terminal can be performed through the network port communication interface and the serial port communication interface in this embodiment.
[0036] In this embodiment, the application layer 110, in response to the user's operation of logging into the debugging interface of the distribution network terminal, calls the permission control service in the service layer 120 to first determine the user's user operation authority, and receives the debugging operation instructions for the distribution network terminal within the scope of the user's operation authority. It can be understood that when different users log in to the distribution network terminal debugging tool, due to different user roles, different user roles correspond to different user operation authorities. In this embodiment, when the user debugs the distribution network terminal, the higher the level of the user role, the higher the user's operation authority. Each user who logs in to the distribution network terminal interface needs to perform corresponding debugging operations on the distribution network terminal within the scope of his or her own operation authority.
[0037] In this embodiment, the debugging and issuing instructions for the distribution network terminal within the scope of the user's operation authority may include two types: one is the debugging and issuing instructions when the distribution network terminal debugging tool and the distribution network terminal are in real-time communication state, and the distribution network terminal debugging tool debugs the online data of the distribution network terminal; the other is the local configuration instructions when the distribution network terminal debugging tool and the distribution network terminal are in offline state. In this embodiment, different debugging operation instructions call different business logic services in the service layer 120, so the data information obtained is also different. The local configuration instructions in this embodiment may include but are not limited to the operation of modifying the terminal data table and the terminal configuration file contained in the database in the data layer 130; the debugging and issuing instructions when debugging the online data of the distribution network terminal may include but are not limited to the network monitoring instructions issued by the distribution network terminal, the modification instructions of the configuration file, the data reading instructions of the terminal data, the GNSS parameter setting instructions of the terminal and the line loss remote control commands of the terminal, etc., which are not limited in this embodiment.
[0038] In this embodiment, if it is a local configuration operation instruction in an offline state with the distribution network terminal, the database service interface can be called from the service layer 120 to call the offline data corresponding to the local configuration operation instruction from the database in the data layer 130, so as to debug the acquired offline data at the application layer; if it is a debugging and issuing instruction when debugging the online data of the distribution network terminal in a real-time communication state with the distribution network terminal, the communication service interface can be called from the service layer 120 to communicate with the distribution network terminal, so as to issue the instruction to the distribution network terminal, so that when the distribution network terminal receives the debugging and issuing instruction, it performs corresponding parsing operations on the debugging and issuing instruction to obtain the instruction content corresponding to the debugging and issuing instruction, and then transmits the instruction content back to the distribution network terminal, and performs debugging operations on the content at the distribution network terminal, and after the debugging operation is executed, the debugged content is transmitted to the distribution network terminal again.
[0039] It should be noted that in this embodiment, the distribution network terminal debugging tool and the distribution network terminal communicate according to the pre-agreed User Datagram Protocol (UDP); the UDP protocol pre-agreed the transmission format of the debugging instruction, and the transmission format includes the instruction identifier corresponding to the debugging instruction, and the instruction command identifier represents the field information corresponding to the debugging instruction. It can be understood that the UDP debugging protocol pre-agreed the instruction identifier used for communication, and each instruction issued corresponds to a unique instruction identifier. The distribution network terminal can determine the content of the issued instruction through the instruction identifier.
[0040] In this embodiment, the service layer 120 can implement access control of the terminal equipment and its external communication module in the distribution network terminal, select the corresponding logic service from the business logic service of the service layer 120 according to the debugging operation instruction transmitted by the application layer 110 to obtain data information, and return the obtained data information to the application layer, and perform display and debugging operations. In some embodiments, online data obtained from the distribution network terminal, or offline data obtained from the data layer; it should be noted that the online data at least includes: network monitoring data of the distribution network terminal, terminal configuration file, terminal four remote data, parameter settings of the external communication module, and terminal system information; offline data at least includes: terminal database and configuration file corresponding to the distribution network terminal; terminal database at least includes remote control data table, telemetry data table, telesignaling data table and electricity data table; configuration file at least includes: board parameters, network port serial port parameters, adjustment parameters, protocol parameters and transfer table.
[0041] In this embodiment, during the debugging of the distribution network terminal, certain debugging operation logs will be generated, and the debugging operation logs need to be saved in the database of the data layer 130. The data layer 130 is the user data storage. In addition to storing the generated debugging operation logs, each data information of the distribution network terminal debugged in the application layer 110 can also be saved, so as to display and facilitate the location of communication faults and trace back the operation process. It can be understood that the service interface in the service layer 120 is called by the user's operation in the application layer 110 to retrieve the corresponding data in the data layer 130, or the communication service interface in the service layer 120 communicates with the distribution network terminal (sends instructions to the terminal) to obtain the data information corresponding to the distribution network terminal, and the user's modification of the acquired data information in the application layer 110, etc., as well as the operation log on the debugging tool end, are stored in the data layer 130, that is, the network port or serial port in the service layer 120 interacts with the terminal, and the interactive data is also saved in the data layer 130.
[0042] According to the technical solution of the embodiment of the present invention, the application layer calls the business logic service in the service layer to determine the user's user operation authority, and receives the debugging and issuing instructions for the distribution network terminal within the scope of the user's operation authority. The debugging and issuing instructions include debugging and issuing instructions when debugging the online data of the distribution network terminal when the distribution network terminal is in real-time communication state, and local configuration instructions when debugging the offline data of the distribution network terminal when the distribution network terminal is in offline state. On this basis, the service layer selects the corresponding logic service interface from the business logic service according to the debugging and issuing instructions to obtain data information, and transmits the data information back to the application layer for debugging. Finally, the data layer stores the log information in the debugging process of the distribution network terminal and the online data obtained by the application layer from the distribution network terminal. The application layer, the service layer and the data layer cooperate with each other to form a distribution network terminal debugging tool to debug the distribution network terminal. The debugging tool has a user-friendly interface and simple debugging operation, and can improve the efficiency of debugging the distribution network terminal and the user experience.
[0043] In one embodiment, the network distribution terminal includes: a terminal device, and an external communication module of the terminal device; an application layer, including: a local configuration module, a terminal configuration module, a first communication configuration module, and a second communication configuration module;
[0044] A local configuration module is used to, when in an offline state with the distribution network terminal, respond to the user's local configuration instructions for the distribution network terminal, call the database service interface in the service layer to obtain the offline data corresponding to the local configuration instructions from the data layer, so that the user can modify the offline data, and when in a communication state with the distribution network terminal, transmit the debugged offline data to the distribution network terminal through the communication service interface in the service layer; wherein the offline data at least includes: a terminal database and a configuration file corresponding to the distribution network terminal; the terminal database at least includes a remote control data table, a telemetry data table, a telesignaling data table, and an electricity data table; the configuration file at least includes: board parameters, network port serial port parameters, adjustment parameters, protocol parameters, and a transfer table;
[0045] The terminal configuration module is used to respond to the user's debugging and issuing instructions to the terminal equipment when in communication with the distribution network terminal, call the communication service interface in the service layer to transmit the debugging and issuing instructions to the distribution network terminal, and receive the online data uploaded by the distribution network terminal; wherein the online data at least includes: network monitoring data of the distribution network terminal, terminal configuration files, terminal four remote control data, parameter settings of the external communication module and terminal system information;
[0046] A first communication configuration module is used to, when in communication with the distribution network terminal, respond to a user's communication mode setting instruction for the terminal device, call a communication service interface to transmit the communication mode setting instruction to the distribution network terminal to debug the communication mode between the terminal device and the distribution network terminal debugging tool;
[0047] The second communication configuration module is used to call the communication service interface to transmit the parameter setting instruction to the distribution network terminal in response to the user's parameter setting instruction for the external communication module of the terminal device when in communication with the distribution network terminal, so as to set the communication and parameters of the external communication module.
[0048] Among them, offline data refers to the parameters that the distribution network terminal debugging tool can debug when it is offline with the distribution network terminal. The parameters may include but are not limited to the terminal database and configuration file corresponding to the distribution network terminal; the terminal database at least includes remote control data table, telemetry data table, telesignaling data table and degree data table; the configuration file at least includes: board parameters, network port serial port parameters, adjustment parameters, protocol parameters and transfer table. Online data refers to the parameters that the distribution network terminal debugging tool can debug when it is in real-time communication with the distribution network terminal. The online data at least includes: network monitoring data of the distribution network terminal, terminal configuration file, terminal four remote data, parameter settings of the external communication module and terminal system information.
[0049] In this embodiment, the application layer may include: a local configuration module, a terminal configuration module, a first communication configuration module, and a second communication configuration module. Different modules have different functional implementations, and the terminal device in the distribution network terminal and the external communication module corresponding to the terminal device can be debugged respectively. In this embodiment, when the distribution network terminal is in an offline state, the local configuration module can be used to debug the offline data of the distribution network terminal, and after debugging, the debugged offline data is transmitted to the distribution network terminal when the distribution network terminal is in a communication state; specifically, the local configuration module included in the application layer 110 is used to respond to the user's local configuration instructions for the distribution network terminal when the distribution network terminal is in an offline state, call the database service interface in the service layer to obtain the offline data corresponding to the local configuration instruction from the data layer, so that the user can modify the offline data, and when the distribution network terminal is in a communication state, the debugged offline data is transmitted to the distribution network terminal through the communication service interface in the service layer. It can be understood that the data in the remote control data table and telemetry data table in the terminal database, as well as the various parameters in the configuration file can be modified, and after the modification, they are saved in the database of the data layer 130. When the two are subsequently detected to be in a communication state, the modified data is transmitted to the distribution network terminal through the communication service interface in the service layer 120. Specifically, the user's modification of offline data may include, but is not limited to, the process of adding, deleting, modifying, and checking each terminal data table of the distribution network terminal stored in the data layer, and modifying the configuration file of the distribution network terminal. Exemplarily, the terminal telemetry data table in the database of the data layer stores 10 telemetry point data, but the dispatch center only needs 5 telemetry point data. The required 5 telemetry point data are found from the terminal telemetry data table to form a transfer table. When the two communicate, it is given to the distribution network terminal through the communication service interface in the service layer, and the distribution network terminal then gives this transfer table to the dispatch center according to the order in the transfer table, so that the dispatch center verifies the correctness of the data.
[0050] In this embodiment, the terminal configuration module can be used to respond to the user's debugging instructions to the terminal device when it is in communication with the distribution network terminal, call the communication service interface in the service layer to transmit the debugging instructions to the distribution network terminal, and receive the online data uploaded by the distribution network terminal to modify the online data in the application layer and other debugging operations, and then transmit the modified online data back to the terminal device through the service layer. In this embodiment, the distribution network terminal debugging tool and the terminal device use a custom UDP protocol to communicate with the terminal to meet the functions of online configuration modification, file transmission, data reading and writing, command issuance, and terminal message monitoring.
[0051] In this embodiment, the first communication configuration module is a communication configuration module for debugging the communication protocol of the terminal device, which can be understood as a module for debugging and configuring the communication between the terminal device and the distribution network terminal debugging tool; specifically, when in a communication state with the distribution network terminal, the first communication configuration module responds to the user's communication mode setting instruction for the terminal device, calls the communication service interface to transmit the communication mode setting instruction to the distribution network terminal, so as to debug the communication mode between the terminal device and the distribution network terminal debugging tool. The communication mode may include but is not limited to the selection of the communication protocol between the distribution network terminal and the terminal device, the setting of the protocol parameters, and the transmission mode of the protocol, etc.
[0052] In this embodiment, the second communication configuration module refers to a configuration module for debugging the communication protocol of the external communication module of the terminal device, which can be understood as a configuration module for debugging the communication between the external communication module of the terminal device and the debugging tool of the distribution network terminal. Specifically, when in communication with the distribution network terminal, the second communication configuration module responds to the user's parameter setting instructions for the external communication module of the terminal device, calls the communication service interface to transmit the parameter setting instructions to the distribution network terminal, so as to set the communication and parameters of the external communication module. The external communication module in this embodiment can include a global navigation satellite system (GNSS) module and a line loss module, that is, to set the parameter information of the line loss module and the GNSS module.
[0053] In one embodiment, in order to better understand the communication between the distribution network terminal debugging tool and the distribution network terminal, Figure 2 A communication structure diagram of real-time communication between a distribution network terminal debugging tool and a distribution network terminal provided in one embodiment of the present invention. In this embodiment, the application layer of the terminal debugging tool includes a terminal configuration module, a master station communication module, a Simple Network Time Protocol (SNTP) server and a GNSS host computer, and the distribution network terminal includes a pre-agreed UDP debugging protocol, a terminal device, an SNTP client and an external module (GNSS module and line loss module) of the terminal device. Figure 2 As shown in , the master station communication is the first communication configuration module in the above embodiment, and the SNTP server and the GNSS host computer constitute the second communication configuration module.
[0054] In one embodiment, the terminal configuration module includes: a terminal network monitoring unit, a terminal file configuration unit, a terminal data unit, a terminal system setting unit and a terminal external communication unit; wherein the terminal external communication unit includes: a GNSS parameter setting unit and a remote control command unit;
[0055] The terminal network monitoring unit is used to receive a network monitoring instruction from a user to a terminal device, transmit the network monitoring instruction to the terminal device through a communication service interface, so that the terminal device can start the network monitoring function according to the network monitoring instruction, and transmit the network monitoring result back and display it to the application layer and / or store it in the data layer;
[0056] The terminal file configuration unit is used to receive a modification instruction from a user for a configuration file corresponding to a terminal device, transmit the modification instruction to the terminal device through a communication service interface, receive a terminal configuration file directory transmitted by the terminal device, select one or at least two configuration files from the configuration file directory for parameter debugging, and send the debugged configuration file parameters to the terminal device and / or store them in the data layer;
[0057] The terminal data unit is used to receive a data reading instruction from a user for the distribution network terminal data, transmit the data reading instruction to the terminal device through the communication service interface, receive the terminal data transmitted by the terminal device to the application layer to debug the terminal data, and send the debugged terminal data to the terminal device and / or store it in the data layer;
[0058] The terminal system setting unit is used to receive the system parameter setting instruction of the user for the terminal device, transmit the system parameter setting instruction to the terminal device through the communication service interface, and receive the system parameters transmitted by the terminal device to debug the terminal system parameters, and send the debugged system parameters to the terminal device and / or store them in the data layer;
[0059] A GNSS parameter setting unit, used to receive a GNSS parameter setting instruction from a user for an external GNSS module corresponding to a terminal device, transmit the GNSS parameter setting instruction to the external GNSS module of the terminal device through a communication service interface, receive the transmitted communication parameters of the external GNSS module, debug the communication parameters, and send the debugged communication parameters to the terminal device and / or store them in a data layer;
[0060] The remote control command unit is used to receive the line loss remote control command from the user to the external line loss module corresponding to the terminal device, transmit the line loss remote control command to the external line loss module of the terminal device through the communication service interface to debug the external line loss module, and store the debugged line loss command result in the data layer.
[0061] The network monitoring instructions may include network startup status instructions of the terminal device, network channel message monitoring instructions, network heartbeat setting instructions, and link test instructions, etc.
[0062] In this embodiment, the state of the terminal network can be set by the terminal network monitoring unit, and the state can include the network being in a closed state and the network being in an open state. When the network is in an open state, the user's network monitoring instructions for the terminal device in the distribution network terminal can be received, and the network monitoring instructions can be transmitted to the terminal device through the network port or serial port in the service layer, so that the terminal device can start network monitoring according to the network monitoring instructions, transmit the monitoring results back and display them, and store the monitoring results in the data layer. Among them, network monitoring can include but is not limited to heartbeat setting monitoring, test link monitoring and channel message monitoring. For example, the network monitoring function is sent down to enable the terminal device to turn on the message monitoring function. For example, the transmission message of a serial port of the terminal device is monitored, and the terminal starts the message monitoring function, and then the message data transmitted and received by the serial port to be monitored is stored in the buffer. When the monitored message is detected in the buffer, it is transmitted to the terminal through the UDP protocol and sent to the debugging tool at regular intervals.
[0063] In this embodiment, when the terminal is in communication with the terminal, the terminal file configuration of the terminal can be debugged in real time. Specifically, the terminal file configuration unit in the application layer can receive the user's modification instruction for the configuration file of the terminal device, transmit the modification instruction to the distribution network terminal through the network port or serial port in the service layer, and receive the terminal configuration file directory transmitted by the distribution network terminal. Select one or at least two configuration file parameters from the terminal configuration file directory for debugging, and send the debugged configuration file parameters to the distribution network terminal and / or store them in the data layer. It can be understood that the configuration file is read from the terminal to display different editing interfaces, and the data can be directly uploaded to the terminal after modification or saved locally.
[0064] In this embodiment, when in communication with the terminal, the terminal data unit can be used to receive a user's data reading instruction for the distribution network terminal data, and transmit the data reading instruction to the terminal device through the communication service interface to read the terminal data of the terminal device in the distribution network terminal in real time. The terminal data may include but is not limited to telemetry data, telesignaling data, remote control data and electricity data. Specifically, the user clicks on the terminal data unit to read the terminal data, and after receiving the user's data reading instruction for the distribution network terminal data, the data reading instruction is transmitted to the distribution network terminal through the communication service interface, and the terminal data transmitted by the distribution network terminal is received to debug the terminal data, and the debugged terminal data is sent to the distribution network terminal and / or stored in the data layer.
[0065] In one embodiment, the terminal data unit is also used to receive a user's data simulation operation on at least one data point in the terminal data, and send a data simulation value corresponding to the data simulation operation to the terminal device, so that the terminal device performs a simulation test operation according to the data simulation value; wherein the data simulation operation includes at least: remote control data simulation, telemetry data simulation, telesignaling data simulation, electricity data simulation, sequence of events (SOE) simulation and fault event information simulation.
[0066] Among them, data points may include telemetry points, telesignal points, remote control points and electricity data points; the data simulation operation of the data points in this embodiment is the simulation value corresponding to the point sent by the user; exemplarily, the current value and / or voltage value of the telemetry point, etc., which is not limited in this embodiment.
[0067] In this embodiment, in addition to reading the terminal data in the terminal device, the terminal data unit is also used to receive the user's data simulation operation on at least one data point in the terminal data, and send the data simulation value corresponding to the data simulation operation to the terminal device to perform a simulation test operation. It can be understood that the user sends a simulation value to a certain data point (such as a telemetry point) of the terminal at the application layer. For example, the current value of the telemetry point is sent, and the dispatch center can compare the sent simulation value with the real value generated by the telemetry point.
[0068] Specifically, the interaction process between the terminal data unit and the distribution network terminal includes: the terminal data unit receives the user's data reading instruction, transmits the data reading instruction to the terminal device in the distribution network terminal through the communication service interface, the terminal device receives the data reading instruction, parses the data reading instruction to obtain the parsing result, and transmits the file size information of the terminal data corresponding to the data reading instruction back to the terminal data unit according to the parsing result. After the terminal data unit receives the file size information, it opens a buffer and caches the received terminal data in the buffer. After the reception is completed, it displays and modifies the data, and after the modification is completed, it sends the modified file size information and the modified terminal data to the terminal device. After the terminal device receives the modified file size information and the modified terminal data, it opens a buffer and stores the modified terminal data in the buffer.
[0069] Exemplarily, in order to better understand the interaction process between the terminal data unit and the distribution network terminal, Figure 3 A schematic diagram of a process for online modification of terminal data provided by an embodiment of the present invention, such as Figure 3As shown in the figure, the debugging tool sends a command to read the configuration file directory to the terminal. After receiving it, the terminal parses it and sends the target to the debugging tool according to the parsed content. Then the debugging tool selects a parameter file from the directory to obtain the data of a target. After receiving it, it first opens a buffer according to the size of the returned file information. Figure 3 The type is the data type, and fun represents the information to be transmitted.
[0070] In this embodiment, the terminal system setting unit in the terminal configuration module can be used to receive system parameter setting instructions for the terminal device from the user, transmit the system parameter setting instructions to the terminal device through the communication service interface, and receive the system parameters transmitted by the terminal device to debug the terminal system parameters, and send the debugged system parameters to the terminal device and / or store them in the data layer. In this embodiment, the relevant operation settings of the terminal system setting unit may include command operations such as reading and writing clock, device reset, file transfer, system information and channel information on the terminal device. Afterwards, the operation data corresponding to the command operation can be saved in the database in the data layer and / or directly transmitted back.
[0071] In this embodiment, the GNSS parameter setting unit is used to receive the GNSS parameter setting instructions of the user for the external GNSS module corresponding to the terminal device, transmit the GNSS parameter setting instructions to the external GNSS module of the terminal device through the communication service interface, and receive the communication parameters of the transmitted external GNSS module to debug the communication parameters, and send the debugged communication parameters to the terminal device and / or store them in the data layer; the remote control command unit is used to receive the line loss remote control command of the user for the external line loss module corresponding to the terminal device, transmit the line loss remote control command to the external line loss module of the terminal device through the communication service interface to debug the external line loss module, and store the debugged line loss command result in the data layer. In this embodiment, the communication parameters of the external GNSS module may include one or more parameters of positioning time interval, working mode, output statement and factory reset; the line loss remote control command for the distribution network terminal may include one or more parameters of power clearing, event clearing and residual voltage reset.
[0072] For example, to better understand the function of the terminal configuration module, Figure 4 A schematic diagram of the functions of a distribution network terminal configuration module provided in one embodiment of the present invention.
[0073] In one embodiment, the terminal network monitoring unit includes: a heartbeat setting subunit, a test link subunit and a channel message subunit; wherein the heartbeat setting subunit is used to receive the user's heartbeat setting instruction for the terminal device, and transmit the heartbeat setting instruction to the terminal device through the communication service interface to set the heartbeat message sending period of the terminal device; the test link subunit is used to receive the user's link test instruction for the terminal device, and transmit the link test instruction to the terminal device through the communication service interface, so that the terminal device sends a link test message; the channel message subunit is used to receive the user's message monitoring instruction for the terminal device, and transmit the message monitoring instruction to the terminal device through the communication service interface, so that the terminal device starts or stops monitoring the channel message of the terminal device according to the message monitoring instruction. Exemplarily, let the terminal turn on the message monitoring function, for example, monitor the transmission message of a serial port of the terminal, the terminal starts the message monitoring function, and then the message (message data sent and received) transmitted by the serial port to be monitored is stored in the buffer, and when the monitored message is detected in the buffer, it is transmitted to the debugging terminal through the protocol, and it will be sent to the debugging tool at regular intervals.
[0074] Specifically, the monitoring process of the channel message may include: the application layer receives the start message monitoring instruction sent by the user, and sends the start message monitoring instruction to the terminal device in the distribution network terminal through the communication service interface in the service layer; the terminal device receives the start message monitoring instruction, parses the start message monitoring instruction to obtain the corresponding parsing result, and monitors the channel message transmitted by the target network port or the target serial port according to the parsing result, and returns the channel message to the application layer for display, and transmits it to the data layer for storage; wherein the parsing result includes: the target network port or target serial port to be monitored; the application layer receives the stop message monitoring instruction sent by the user, and sends the stop message monitoring instruction to the terminal device in the distribution network terminal through the communication service interface in the service layer; the terminal device receives the stop message monitoring instruction, parses the stop message monitoring instruction to obtain the corresponding parsing result, and cancels the monitoring of the channel message transmitted by the target network port or the target serial port according to the parsing result.
[0075] Exemplarily, to facilitate a better understanding of the channel message for starting or stopping monitoring a terminal, Figure 5 A schematic diagram of interaction between a debugging tool and a terminal device provided by an embodiment of the present invention, Figure 6 A schematic diagram of a flow chart of starting or stopping monitoring a channel message of a terminal provided by an embodiment of the present invention.
[0076] In one embodiment, the terminal system setting unit includes: a read-write clock subunit, a reset subunit, a file transfer subunit, a system information subunit, and a channel information subunit;
[0077] Among them, the read-write clock subunit receives the user's time reading operation on the terminal device, and transmits the time reading operation to the terminal device through the communication service interface, so that the terminal device uploads the current time; the reset subunit is used to receive the user's reset operation on the terminal device, and transmits the reset operation to the terminal device through the communication service interface, so that the terminal device performs a soft restart operation; the file transfer subunit is used to receive the file transfer operation issued by the user, and transmits the file transfer operation to the terminal device through the communication service interface, so that the terminal device selects the terminal file to be transmitted back to the data layer, and / or selects the file of the data layer to be uploaded to the terminal device; the system information subunit is used to receive The system information display operation sent by the user is transmitted to the terminal device through the communication service interface, so that the terminal device returns the memory usage and task running status and displays them to the application layer; wherein the task running status at least includes: task name, task sequence number, status, priority, remaining stack, running count and CPU usage rate; the channel information subunit is used to receive the channel information display operation sent by the user, and transmit the channel information display operation to the terminal device through the communication service interface, so that the distribution network terminal returns and displays the usage of the terminal communication channel; wherein the usage at least includes: channel name, channel status and number of bytes received and sent.
[0078] In one embodiment, the first communication configuration module includes: a communication management unit, a communication simulation unit and an event information unit;
[0079] Among them, the communication management unit is used to receive the communication management operations issued by the user, and transmit the communication management operations to the terminal device through the communication service interface to set the communication parameter information of the terminal device; wherein the communication parameter information at least includes communication protocol selection, communication protocol parameter setting and communication port parameter setting; the communication simulation unit is used to simulate the balanced transmission and unbalanced transmission of the terminal device; the event information unit is used to display the events actively uploaded by the terminal device in the event of a sudden change.
[0080] In this embodiment, the communication management operation includes communication protocol selection, protocol parameter setting and communication port parameter setting. After receiving the communication management operation issued by the user, the communication management unit transmits the communication management operation to the terminal device through the communication service interface to set the communication parameter information of the terminal device; the communication parameter information at least includes the communication protocol, the communication protocol parameter setting and the communication port parameter setting; wherein the communication protocol selection includes two optional items, IEC101 and IEC104. The protocol parameter setting is used to set the link address and public address of the selected protocol. In addition, it is also used to set the byte length corresponding to the link address, public address, and information body address, and the transmission mode of the protocol, such as the balanced transmission and unbalanced transmission selection of IEC101, and the client and server mode selection of IEC104. The communication port parameters are used to set the serial port parameters of IEC101 or the network parameters of IEC104.
[0081] In this embodiment, the event information unit is used to display the events actively uploaded by the distribution network terminal in the event of a sudden change, and specifically, may include an information window, position change information, and event information. The information window mainly displays the sending and receiving protocol instruction information during the communication process with the terminals 101 and 104. The position change information is used to display the telesignal position change and SOE information uploaded by the terminal in the event of a sudden change. The event information is used to display the fault event information uploaded by the terminal in the event of a sudden change.
[0082] More specifically, the event information unit includes: an information window subunit, a position change information subunit and an event information subunit; wherein the information window subunit is used to display the protocol instruction information during the communication process with the terminal device; the position change information subunit is used to display the telesignal position change and SOE information actively uploaded by the terminal device in the event of a sudden change; the event information subunit is used to display the fault event information actively uploaded by the distribution network terminal in the event of a sudden change.
[0083] In one embodiment, the network distribution terminal further includes an SNTP client, and the external communication module includes a GNSS module and a line loss module; the second communication configuration module includes: an SNTP server and a GNSS host computer, the SNTP server is connected to the SNTP client; the GNSS host computer is connected to the GNSS module;
[0084] The SNTP server is used to set the response message parameters of the SNTP client and the network port parameters of the SNTP client through the communication service interface;
[0085] The GNSS host computer is used to set the parameter information of the GNSS module through the communication service interface; wherein the parameter information at least includes: positioning time interval, working mode, output statement and factory reset.
[0086] The response message parameters may include but are not limited to leap second flag, version number, mode, clock level, polling interval, precision, round trip delay, error and response delay; the response delay in this embodiment can be understood as the delay setting time after the SNTP server receives the synchronization request message sent by the SNTP client and then sends the response message, which is used for the terminal SNTP client to calculate the network delay. The network port parameters may include but are not limited to the SNTP server client IP and port number.
[0087] In this practical building, the parameter information of the GNSS module can include positioning time interval, working mode, output statement and factory reset. Viewing the communication message through the message monitoring window can help the terminal GNSS host computer development or troubleshoot GNSS module communication failures. In addition, the time and longitude and latitude data can be used to simulate the GNSS slave computer to send messages to help the terminal develop the GNSS host computer.
[0088] In this embodiment, the SNTP server is used to perform communication debugging on the terminal SNTP client in the distribution network terminal through the communication service interface to set the response message parameters of the terminal SNTP client and the network port parameters of the terminal SNTP client; the GNSS host computer is used to debug the GNSS module in the distribution network terminal through the communication service interface to set the parameter information of the GNSS module, wherein the GNSS module communication parameters include but are not limited to positioning time interval, working mode, output statement and factory reset; the parameter information of the GNSS module may include but is not limited to remote control commands, power clearing, event clearing and residual voltage reset. Exemplarily, GNSS will send a bunch of messages in 1s, which can be used to close the statement, the statement (message) sent by the positioning system, and close the unnecessary messages.
[0089] For example, to better understand the distribution network terminal debugging tool, Figure 7 A schematic diagram of the structure of another distribution network terminal debugging tool provided by an embodiment of the present invention, Figure 7 The data template in is the data template corresponding to the terminal data table in the embodiment of the present invention, wherein the terminal data table includes a remote control data table, a telemetry data table, a telesignaling data table and an electricity data table. Figure 7 The master station communication in the embodiment is the first communication configuration module in the above embodiment, and the other communications are the second communication configuration module in the above embodiment.
[0090] like Figure 7As shown, the distribution network terminal debugging tool includes: an application layer 710, a service layer 720 and a data layer 730; wherein the application layer 710 includes: a local configuration module, a terminal configuration module, a communication configuration module and an external communication configuration module corresponding to the distribution network terminal; the service layer 720 is illustrated by taking as an example the permission control service, the log monitoring service, the database service interface, the file operation interface, the network port communication interface and the serial port communication interface; the data layer 730 includes: a database, file storage and cached data.
[0091] In one embodiment, Figure 8 A flow chart of a distribution network terminal debugging method provided by an embodiment of the present invention is provided. The distribution network terminal debugging method is applied to a distribution network terminal debugging tool. The distribution network terminal debugging tool includes: a data layer, a service layer and an application layer.
[0092] like Figure 8 As shown, the distribution network terminal debugging method in this embodiment may specifically include the following steps:
[0093] S810. In response to the user's operation of logging into the distribution network terminal debugging interface through the application layer, the business logic service in the service layer is called to determine the user's user operation authority, and a debugging instruction for the distribution network terminal is received within the scope of the user's operation authority; wherein the debugging instruction includes a first debugging instruction and a second debugging instruction; the first debugging instruction is a debugging instruction for debugging the online data of the distribution network terminal when the distribution network terminal is in real-time communication with the distribution network terminal; the second debugging instruction is a local configuration instruction for debugging the offline data of the distribution network terminal when the distribution network terminal is in an offline state.
[0094] S820. Select the corresponding logic service interface from the business logic service according to the debugging instruction through the service layer to obtain data information, and return the data information to the application layer for debugging; wherein the data information includes online data obtained from the distribution network terminal, or offline data obtained from the data layer.
[0095] S830. Store the log information during the debugging process of the distribution network terminal through the data layer, and the online data obtained from the distribution network terminal by the application layer.
[0096] For example, to better understand the application of the distribution network terminal debugging tool, Fig. 9 A schematic diagram of a local configuration module invoking a data interface in a service layer to obtain a database editing interface in a data layer is provided in an embodiment of the present invention. Fig.10 A schematic diagram of a local configuration module calling a data interface in a service layer to obtain a configuration forwarding table editing interface in a data layer is provided in an embodiment of the present invention. Fig.11A schematic diagram of a terminal configuration remote signaling data interface in a distribution network terminal configuration module provided in an embodiment of the present invention, Fig.12 A schematic diagram of a master station communication remote control data interface provided by an embodiment of the present invention, Fig.13 A schematic diagram of a communication message interface provided by an embodiment of the present invention.
[0097] like Fig. 9 As shown, the local configuration of the application layer calls the database operation interface of the service layer to open the database, edit the data table according to the project requirements and save the data layer.
[0098] like Fig.10 As shown, the local configuration of the application layer calls the file operation interface of the service layer to open the configuration file, edit the configuration file according to the project requirements and save the data layer.
[0099] In this embodiment, the application layer terminal configuration calls the service layer network port communication to upload the data layer database and configuration file to the terminal. The application layer terminal configuration sends the device reset instruction, restarts the terminal and reconnects. The application layer terminal configuration reads the system information to view the terminal memory usage and task running status. The application layer terminal configuration reads the configuration file, modifies and uploads the terminal online and restarts the terminal. The application layer terminal configuration starts the channel message, and monitors the terminal GNSS and line loss communication messages through the service layer message. The application layer terminal configuration sends GNSS parameters, sets the GNSS sending message, positioning interval and mode, etc. The application layer terminal configuration sends the line loss command to clear the electricity and time of the terminal external line loss module. The application layer terminal configuration reads the device data to view the terminal telemetry data, telesignal data and electricity data. The application layer terminal configuration sends the remote control command to view the action of the relay of the corresponding remote control point of the terminal.
[0100] like Fig.11 As shown, the terminal data opens the telesignal data, selects the telesignal point to set the open and close state to send the telesignal to the terminal, and the terminal data interface switches to the "Telesignal Data" tab page to view the telesignal data. The telesignal position change information can be viewed in the "Position Change Information" window; when sending SOE, the terminal data interface "Position Change Information" window can view the SOE information. The difference between SOE and position change information is that SOE has more time information than position change information. If the telesignal point corresponding to the simulated SOE is of the "accident" type, view the fault information in the "Fault Information" interface. The terminal data opens the electricity data, manually simulates or randomly generates batch simulation values and sends them to the terminal. Switch the terminal data interface to the "Electricity Data" tab page to view the electricity data point number and compare the simulation value to verify the forwarded electricity data point.
[0101] like Fig.12, switch the terminal data interface to the "Remote Control Data" tab page, select the point to be remotely controlled in the remote control data table, and the information body serial number of the point will be updated to the "Information Body Serial Number" edit box of the "Operation Bar" above the remote control table. Select single-point or double-point remote control, control open or close. Each remote control operation will have user permissions, operation steps blocked and operation timeout blocked processing, and the LED timeout countdown is displayed. Initially, the "Remote Control Select" button is activated, and the "Remote Control Execution" button and "Remote Control Cancel" button are disabled. "Remote Control Select" is issued, and the "Remote Control Select" button is disabled at this time. The remote control selection returns to school or the selection timeout activates the "Remote Control Select" button; "Remote Control Select" returns to school successfully, and the "Remote Control Execution" button and "Remote Control Cancel" button are activated at the same time. "Remote Control Select" returns to school successfully, waiting for the "Remote Control Execution" or "Remote Control Cancel" operation timeout, and the "Remote Control Execution" and "Remote Control Cancel" buttons are disabled. "Remote Control Execution" or "Remote Control Cancel" is issued, and the "Remote Control Select", "Remote Control Execution" and "Remote Control Cancel" buttons are disabled. When "Remote Control Execution" or "Remote Control Cancel" returns to school or times out, activate the "Remote Control Selection" button. After "Remote Control Execution" is successful, check the relay action of the corresponding remote control point on the terminal.
[0102] like Fig.13 As shown, the application layer master station communication selects the terminal protocol, the forwarding table and protocol parameters are consistent, and the network parameters and terminal parameters correspond. Fig.13 , check the message data in the "Communication Message" window to determine the communication process, and check the message instructions in the "Information Window" to determine the communication situation. The embedded terminal data interface will be displayed in a floating manner to facilitate multi-window operation. The terminal data opens the telemetry data, manually simulates or randomly generates batch simulation values and sends them to the terminal. The terminal data interface switches to the "Telemetry Data" tab page to view the telemetry data point number and compare the simulation value to verify the telemetry data point of the forwarding table.
[0103] In one embodiment, the embodiment of the present invention further provides a distribution network terminal, which is specifically used to: receive a debugging and issuing instruction issued by a distribution network terminal debugging tool, and parse the debugging and issuing instruction to obtain a parsing result; wherein the debugging and issuing instruction includes: a debugging and issuing instruction for online data debugging when the distribution network terminal debugging tool is in a real-time communication state, or a debugging and issuing instruction for offline data after debugging when the distribution network terminal debugging tool is in an offline state; return the corresponding online data to the distribution network debugging tool according to the parsing result, and receive the debugged online data.
[0104] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0105] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A distribution network terminal debugging tool, characterized in that: include: Data layer, service layer and application layer; Wherein, the application layer is used to respond to the operation of the user logging into the debugging interface of the distribution network terminal, call the business logic service in the service layer to determine the user's user operation authority, and receive the debugging issuance instruction for the distribution network terminal within the scope of the user's operation authority; wherein, the debugging issuance instruction includes a first debugging issuance instruction and a second debugging issuance instruction; the first debugging issuance instruction is a debugging issuance instruction when debugging the online data of the distribution network terminal when the distribution network terminal is in a real-time communication state; the second debugging issuance instruction is a local configuration instruction when debugging the offline data of the distribution network terminal when the distribution network terminal is in an offline state; The service layer is used to select a corresponding logic service interface from the business logic service according to the debugging instruction to obtain data information, and transmit the data information back to the application layer for debugging; wherein the data information includes online data obtained from the distribution network terminal, or offline data obtained from the data layer; The data layer is used to store log information during the debugging process of the distribution network terminal, and the online data obtained by the application layer from the distribution network terminal.
2. The distribution network terminal debugging tool according to claim 1, characterized in that: The network distribution terminal comprises: a terminal device, and an external communication module of the terminal device; The application layer includes: a local configuration module, a terminal configuration module, a first communication configuration module and a second communication configuration module; The local configuration module is used to, when in an offline state with the distribution network terminal, respond to the user's local configuration instructions for the distribution network terminal, call the database service interface in the service layer to obtain the offline data corresponding to the local configuration instructions from the data layer, so that the user can modify the offline data, and when in a communication state with the distribution network terminal, transmit the debugged offline data to the distribution network terminal through the communication service interface in the service layer; wherein the offline data at least includes: the terminal database and configuration file corresponding to the distribution network terminal; the terminal database at least includes a remote control data table, a telemetry data table, a telesignaling data table and an electricity data table; the configuration file at least includes: board parameters, network port serial port parameters, adjustment parameters, protocol parameters and transfer table; The terminal configuration module is used to, when in communication with the distribution network terminal, respond to the user's debugging and issuing instructions to the terminal device, call the communication service interface in the service layer to transmit the debugging and issuing instructions to the distribution network terminal, and receive online data uploaded by the distribution network terminal; wherein the online data at least includes: network monitoring data of the distribution network terminal, terminal configuration files, terminal four-remote data, parameter settings of the external communication module, and terminal system information; The first communication configuration module is used to, when in communication with the network distribution terminal, respond to the user's communication mode setting instruction for the terminal device, call the communication service interface to transmit the communication mode setting instruction to the network distribution terminal to debug the communication mode between the terminal device and the network distribution terminal debugging tool; The second communication configuration module is used to call the communication service interface to transmit the parameter setting instruction to the network distribution terminal in response to the user's parameter setting instruction for the external communication module of the terminal device when it is in a communication state with the network distribution terminal, so as to set the communication and parameters of the external communication module.
3. The distribution network terminal debugging tool according to claim 2, characterized in that: The terminal configuration module includes: a terminal network monitoring unit, a terminal file configuration unit, a terminal data unit, a terminal system setting unit and a terminal external communication unit; wherein the terminal external communication unit includes: a GNSS parameter setting unit and a remote control command unit; The terminal network monitoring unit is used to receive a network monitoring instruction from a user to the terminal device, transmit the network monitoring instruction to the terminal device through the communication service interface, so that the terminal device can start the network monitoring function according to the network monitoring instruction, and transmit the network monitoring result back and display it to the application layer and / or store it in the data layer; The terminal file configuration unit is used to receive a modification instruction from a user for a configuration file corresponding to the terminal device, transmit the modification instruction to the terminal device through the communication service interface, receive a terminal configuration file directory transmitted by the terminal device, select one or at least two configuration files from the configuration file directory for parameter debugging, and send the debugged configuration file parameters to the terminal device and / or store them in the data layer; The terminal data unit is used to receive a data reading instruction from a user for the distribution network terminal data, transmit the data reading instruction to the terminal device through the communication service interface, receive the terminal data transmitted by the terminal device to the application layer to debug the terminal data, and send the debugged terminal data to the terminal device and / or store it in the data layer; The terminal system setting unit is used to receive a system parameter setting instruction of the user for the terminal device, transmit the system parameter setting instruction to the terminal device through the communication service interface, and receive the system parameters transmitted by the terminal device to debug the terminal system parameters, and send the debugged system parameters to the terminal device and / or store them in the data layer; The GNSS parameter setting unit is used to receive a GNSS parameter setting instruction from a user for the external GNSS module corresponding to the terminal device, transmit the GNSS parameter setting instruction to the external GNSS module of the terminal device through the communication service interface, and receive the transmitted communication parameters of the external GNSS module to debug the communication parameters, and send the debugged communication parameters to the terminal device and / or store them in the data layer; The remote control command unit is used to receive the user's line loss remote control command for the external line loss module corresponding to the terminal device, transmit the line loss remote control command to the external line loss module of the terminal device through the communication service interface to debug the external line loss module, and store the debugged line loss command result in the data layer.
4. The distribution network terminal debugging tool according to claim 3, characterized in that: The terminal network monitoring unit comprises: a heartbeat setting subunit, a test link subunit and a channel message subunit; The heartbeat setting subunit is used to receive a heartbeat setting instruction from a user to the terminal device, and transmit the heartbeat setting instruction to the terminal device through the communication service interface to set the heartbeat message sending period of the terminal device; The link test subunit is used to receive a link test instruction from a user to the terminal device, and transmit the link test instruction to the terminal device through the communication service interface, so that the terminal device sends a link test message; The channel message subunit is used to receive a message monitoring instruction from a user to the terminal device, and transmit the message monitoring instruction to the terminal device through the communication service interface, so that the terminal device starts or stops monitoring the channel message of the terminal device according to the message monitoring instruction.
5. The distribution network terminal debugging tool according to claim 4, characterized in that: The terminal data unit is also used to receive a user's data simulation operation on at least one data point in the terminal data, and send the data simulation value corresponding to the data simulation operation to the terminal device, so that the terminal device performs a simulation test operation according to the data simulation value; wherein the data simulation operation includes at least: remote control data simulation, telemetering data simulation, telesignaling data simulation, electricity data simulation, event sequence recording SOE simulation and fault event information simulation.
6. The distribution network terminal debugging tool according to claim 4, characterized in that: The terminal system setting unit includes: a read-write clock subunit, a reset subunit, a file transfer subunit, a system information subunit and a channel information subunit; The read-write clock subunit receives a time reading operation of the terminal device by the user, and transmits the time reading operation to the terminal device through the communication service interface, so that the terminal device uploads the current time; The reset subunit is used to receive a reset operation of the terminal device by the user, and transmit the reset operation to the terminal device through the communication service interface, so that the terminal device performs a soft restart operation; The file transfer subunit is used to receive a file transfer operation issued by a user, and transmit the file transfer operation to the terminal device through the communication service interface, so that the terminal device selects a terminal file to be transmitted back to the data layer, and / or selects a file in the data layer to be uploaded to the terminal device; The system information subunit is used to receive the system information display operation issued by the user, and transmit the system information display operation to the terminal device through the communication service interface, so that the terminal device returns the memory usage and task running status and displays them to the application layer; wherein the task running status at least includes: task name, task sequence number, status, priority, remaining stack, running count and CPU usage rate; The channel information subunit is used to receive the channel information display operation issued by the user, and transmit the channel information display operation to the terminal device through the communication service interface, so that the distribution network terminal returns and displays the usage of the terminal communication channel; wherein the usage includes at least: channel name, channel status and number of bytes received and sent.
7. The distribution network terminal debugging tool according to claim 3, characterized in that: The first communication configuration module includes: a communication management unit, a communication simulation unit and an event information unit; Wherein, the communication management unit is used to receive the communication management operation issued by the user, and transmit the communication management operation to the terminal device through the communication service interface to set the communication parameter information of the terminal device; wherein the communication parameter information at least includes communication protocol selection, communication protocol parameter setting and communication port parameter setting; The communication simulation unit is used to simulate the balanced transmission and unbalanced transmission of the terminal device; The event information unit is used to display the events actively uploaded by the terminal device when a sudden change occurs.
8. The distribution network terminal debugging tool according to claim 7, characterized in that: The event information unit includes: an information window subunit, a position change information subunit and an event information subunit; Wherein, the information window subunit is used to display the protocol instruction information during the communication process with the terminal device; The position change information subunit is used to display the remote signal position change and SOE information actively uploaded by the terminal device in the event of a sudden change; The event information subunit is used to display the fault event information actively uploaded by the distribution network terminal when a sudden change occurs.
9. The distribution network terminal debugging tool according to claim 2, characterized in that: The network distribution terminal also includes an SNTP client, and the external communication module includes a GNSS module and a line loss module; The second communication configuration module includes: an SNTP server and a GNSS host computer, wherein the SNTP server is connected to the SNTP client; the GNSS host computer is connected to the GNSS module; The SNTP server is used to set the response message parameters of the SNTP client and the network port parameters of the SNTP client through the communication service interface; The GNSS host computer is used to set the parameter information of the GNSS module through the communication service interface; wherein the parameter information at least includes: positioning time interval, working mode, output statement and factory reset.
10. A distribution network terminal, characterized in that: The distribution network terminal is specifically used for: Receive a debugging and issuing instruction issued by a distribution network terminal debugging tool, and parse the debugging and issuing instruction to obtain a parsing result; wherein the debugging and issuing instruction includes: a debugging and issuing instruction for online data debugging when the distribution network terminal debugging tool is in a real-time communication state, or a debugging and issuing instruction for offline data after debugging when the distribution network terminal debugging tool is in an offline state; The corresponding online data is returned to the distribution network debugging tool according to the analysis result, and the debugged online data is received.