WO2017193705A1 - Method and apparatus for monitoring communication power supply device, and storage medium - Google Patents

Method and apparatus for monitoring communication power supply device, and storage medium Download PDF

Info

Publication number
WO2017193705A1
WO2017193705A1 PCT/CN2017/077474 CN2017077474W WO2017193705A1 WO 2017193705 A1 WO2017193705 A1 WO 2017193705A1 CN 2017077474 W CN2017077474 W CN 2017077474W WO 2017193705 A1 WO2017193705 A1 WO 2017193705A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
communication power
monitoring
instruction
command
Prior art date
Application number
PCT/CN2017/077474
Other languages
French (fr)
Chinese (zh)
Inventor
杨枝
陶安祥
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017193705A1 publication Critical patent/WO2017193705A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/10Current supply arrangements

Definitions

  • the present invention relates to the field of communication power supply technologies, and in particular, to a method, an apparatus, and a storage medium for monitoring a communication power supply device.
  • the communication power equipment monitoring technology is developing rapidly.
  • many sites have no need to configure the LCD interface for foreground monitoring, and can directly adopt the background monitoring mode, thereby reducing the hardware cost of the communication power supply device, but the existing communication power supply equipment background monitoring software
  • the installation and configuration process is complicated, and the software occupies a large amount of resources. It is not suitable for scenarios such as production line commissioning and rapid configuration of products. Therefore, it is difficult to implement the liquid crystal configuration of the communication power equipment front-end monitoring unit.
  • the communication interface between the communication power supply device and the background has 232 serial port, Ethernet network port, etc.
  • the background communication protocol type is 1104, 1363 protocol specified by the telecommunication standard, and also has a customized A interface protocol.
  • the diversity of communication interface and communication protocol of communication power supply equipment makes the development and debugging of background monitoring software extremely cumbersome.
  • it is a background communication background development and debugging for a certain communication power supply device.
  • Even a certain communication power supply device is often compatible with a variety of background communication protocols, but the current specific monitoring background software often cannot resolve various background communication protocols compatible with the communication power supply device, and thus cannot meet the diversification requirements of the communication protocol.
  • Embodiments of the present invention provide a monitoring method, device, and storage medium for a communication power supply device.
  • the invention aims to solve the problem that the background monitoring software installed and configured in the background communication technology of the existing communication power supply device is complicated and cannot resolve various background communication protocols.
  • the embodiment of the invention provides a monitoring method for a communication power supply device, including:
  • the monitoring instruction includes a command name of a command information in a communication protocol with the communication power supply device;
  • the monitoring instruction includes a command name of a command information in a communication protocol between the monitoring communication power source device;
  • the extracting all the command information in the communication protocol between the communication power supply device includes:
  • the receiving the monitoring instruction for monitoring the communication power device includes:
  • the monitoring command is generated according to the command name.
  • the generating the instruction information based on the monitoring instruction, and sending the instruction information to the communication power device includes:
  • the instruction information is transmitted to the communication power supply device.
  • the monitoring instruction further includes: acquiring a first instruction of all parameter information of the communication power supply device; correspondingly, the generating the instruction information based on the monitoring instruction, and sending the instruction information to the communication power supply Equipment, including:
  • a corresponding set of instruction information is sent to the communication power device.
  • the acquiring, by the communication power supply device, the response information that is fed back according to the instruction information, and monitoring the communication power device based on the response message including:
  • the method further includes:
  • the batch parameter information is changed according to the first parameter information, and the changed batch parameter information is imported into the control Communication power supply equipment;
  • the communication power device is configured with parameters and monitored in real time.
  • the method before the extracting all the command information in the communication protocol between the communication power supply device, the method further includes:
  • Switching the configuration file according to the corresponding language and the language determination instruction switch the language supported by the current operating system to the language corresponding to the language determination instruction.
  • the embodiment of the invention further provides a monitoring device for a communication power supply device, the device comprising:
  • An extraction module configured to extract all command information in a communication protocol in a different format from the communication power device, where the communication protocol includes a plurality of command information distinguished by the command name;
  • Monitoring a sending module configured to receive a monitoring instruction for monitoring the communication power device, wherein the monitoring command includes a command name of a command information in a communication protocol with the communication power device;
  • the monitoring module is configured to obtain response information fed back by the communication power device according to the instruction information, and monitor the communication power device based on the response information.
  • the extraction module includes:
  • Importing a submodule configured to import a communication protocol in a corresponding format with the communication power device
  • the first extraction submodule is configured to parse the communication protocol and extract all command information in the communication protocol.
  • the monitoring and sending module includes:
  • the processing submodule is configured to generate the monitoring instruction according to the command name when any one of the command names configured to monitor all the command information in the communication protocol displayed on the display interface with the communication power device is selected.
  • the monitoring and sending module includes:
  • the first obtaining submodule is configured to acquire command information corresponding to the command name in the monitoring instruction
  • a first generation submodule configured to generate the instruction information according to the obtained command information
  • the first sending submodule is configured to send the instruction information to the communication power device.
  • the monitoring instruction further includes: a first instruction for acquiring all parameter information of the communication power device; and correspondingly, the monitoring and transmitting module includes:
  • the second extraction submodule is configured to extract all the acquisition parameter command information included in the first instruction, and form a collection parameter command information set;
  • a second generation submodule configured to generate a corresponding instruction information set according to the acquisition parameter command information set
  • a second sending submodule configured to send the corresponding instruction information set to the communication power device.
  • the monitoring module includes:
  • a second obtaining sub-module configured to acquire batch parameter information of the communication power device carried in the response information set fed back by the communication power device according to the corresponding instruction information set;
  • the first monitoring submodule is configured to monitor the communication power device according to the obtained batch parameter information.
  • the monitoring module further includes:
  • Comparing the submodule configured to compare the pre-acquired first parameter information with the batch parameter information
  • Changing the sub-module configured to: when the first parameter information and the batch parameter information have different parameters, modify the batch parameter information according to the first parameter information, and change the batch Parameter information is imported into the communication power supply device;
  • the second monitoring submodule is configured to perform parameter configuration and real-time monitoring on the communication power device according to the batch parameter information that is imported into the communication power device.
  • the content displayed on the display interface is displayed in a language supported by the current operating system, and the device further includes:
  • the calling module is configured to acquire a language determining instruction according to the language determining instruction and a language supported by the current operating system to preset a corresponding language switching configuration before extracting all command information in the communication protocol between the communication power device and the communication power device file;
  • a switching module configured to switch the configuration file according to the corresponding language and the language determining instruction to switch the language supported by the current operating system to a language corresponding to the language determining instruction.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the monitoring method of the communication power supply device according to the embodiment of the present invention.
  • the communication power supply device to be monitored sends the instruction information generated according to the monitoring instruction, wherein the monitoring instruction includes the corresponding command name, and obtains the data information of the communication power supply device to be monitored carried in the response information fed back by the communication power supply device to be monitored according to the instruction information, and treats Monitor communication power supplies for monitoring.
  • the solution can support a variety of background communication protocols, save background software development and debugging time, improve the flexibility of background communication protocol analysis, has strong versatility and scalability, is suitable for different application scenarios, and is for remote background monitoring and
  • the communication power supply system is convenient to provide, and the communication power supply device in the solution does not need to be configured with a liquid crystal display, which reduces the hardware cost of the communication power supply device.
  • FIG. 1 is a schematic diagram of a monitoring method of a communication power supply device according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a monitoring method of a communication power supply device according to Embodiment 2 of the present invention.
  • FIG. 3 is a flowchart of a method for implementing language switching by a monitoring platform according to an embodiment of the present invention
  • FIG. 4 is a flowchart of acquiring batch parameter information by a monitoring platform according to an embodiment of the present invention
  • FIG. 5 is a flowchart of monitoring a communication power device according to batch parameter information by a monitoring platform according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram 1 of a monitoring device for a communication power supply device according to an embodiment of the present invention.
  • FIG. 7 is a second schematic diagram of a monitoring device for a communication power supply device according to an embodiment of the present invention.
  • FIG. 1 is a schematic diagram of a monitoring method of a communication power supply device according to an embodiment of the present invention, including:
  • Step 101 Extract all command information in a communication protocol with the communication power device.
  • the monitoring platform first obtains a communication protocol with each communication power device, wherein different communication power devices have different communication protocol formats, the monitoring platform can support different format communication protocols, and one communication protocol includes multiple command information, one command The information corresponds to a command name, and each command information is distinguished by a different command name.
  • Step 102 Receive a monitoring instruction for monitoring the communication power supply device, generate instruction information based on the monitoring instruction, and send the instruction information to the communication power supply device.
  • the monitoring instruction includes a command name of a command information in a communication protocol between the communication power supply device to be monitored.
  • the command name of all the command information in the communication protocol with the communication power device to be monitored needs to be displayed on the display interface.
  • the command name is displayed in the form of a tree structure control TreeView tree node in the display interface provided by the monitoring platform. Because different communication power supply devices have different communication protocols, The command names of the command information in the protocol are also different. The display interface of the monitoring platform established by the TreeView tree node of the tree structure control is also different.
  • the process of generating the monitoring instruction is specifically: when any one of the command names of all the command information in the communication protocol displayed on the display interface and the communication power supply device to be monitored is selected, according to the command The name generates a monitoring command.
  • the corresponding command name may be clicked on the display interface, a monitoring instruction is formed according to the obtained command name, command information is generated according to the monitoring instruction, and then the command information is sent to Communication power supply equipment to be monitored.
  • Step 103 Acquire response information fed back by the communication power device according to the instruction information, and monitor the communication power device based on the response information.
  • the communication power supply device to be monitored feeds back response information to the monitoring platform according to the instruction information, and after obtaining the response information fed back by the communication power supply device to be monitored, the response information is parsed to obtain response information.
  • the data information of the communication power supply device to be monitored carried in is monitored according to the data information to be monitored by the communication power supply device.
  • the incoming and outgoing messages between the monitoring platform and the communication power supply device to be monitored are transmitted in the form of data packets.
  • the response information is encapsulated. After receiving the response information, the monitoring platform needs to perform parsing to obtain the data information of the communication power device to be monitored.
  • the present invention is a monitoring platform established by using the C# language based on the Windows Forms application development, and utilizes rich Microsoft Visual Studio software resources to extract and parse the command information of the communication power supply device through serial communication, and can Controlling the communication power supply device provides convenience for the user to monitor and operate the communication power supply device.
  • C# is an object-oriented high-level programming language that runs on the .NET Framework. It simplifies the C++ language's operations in classes, namespaces, method overloading, and exception handling. It eliminates the complexity of C++, makes it easier to use, and less error-prone.
  • C# language based on Windows Forms application development to create a display interface for Windows The form control adds an event function to complete the specified function, which is beneficial to shorten the development time of the background software, and facilitate the function expansion and daily maintenance of the background.
  • Embodiment 1 of the present invention extracts all command information that is distinguished by a command name in a communication protocol of a different format pre-established between different communication power supply devices; when monitoring a monitoring instruction of the communication power supply device to be monitored on the display interface, The communication power supply device to be monitored sends the instruction information generated according to the monitoring instruction, wherein the monitoring instruction includes the corresponding command name, and obtains the data information of the communication power supply device to be monitored carried in the response information fed back by the communication power supply device to be monitored according to the instruction information, and treats Monitor communication power supplies for monitoring.
  • the solution can support multiple background communication protocols, save background software development and debugging time, improve the flexibility of background communication protocol parsing, and provide convenience for remote background monitoring and operation of communication power system, and the communication power supply device does not need to be configured in this solution.
  • the liquid crystal display reduces the hardware cost of the communication power supply device.
  • FIG. 2 is a schematic diagram of a monitoring method of a communication power supply device according to Embodiment 2 of the present invention, including:
  • Step 201 Import, for each communication power device, a communication protocol in a corresponding format with the communication power device, parse the communication protocol, and extract all command information in the communication protocol.
  • a communication protocol corresponding to the format of the communication power supply device is required, wherein the communication protocol of the different communication power supply devices has different formats, and the monitoring platform can support communication protocols of different formats.
  • the communication protocol is parsed to obtain a plurality of command information stored in the communication protocol, and each command information is distinguished by a different command name.
  • the command name is displayed in the form of a tree structure control TreeView tree node in the display interface provided by the monitoring platform.
  • the text content displayed on the display interface is displayed in a language supported by the current operating system.
  • Step 202 When monitoring the monitoring instruction of the communication power supply device to be monitored on the display interface, obtain Take the command information corresponding to the command name in the monitoring command.
  • the corresponding command name may be clicked on the display interface, and the monitoring platform forms a monitoring instruction according to the obtained command name, and obtains command information corresponding to the command name in the monitoring instruction.
  • One of the command information includes a command name and a corresponding data packet.
  • the command information is any one of the following information: real-time data command information, control command information, real-time alarm command information, parameter setting command information, and historical data command information;
  • the corresponding command name is any one of the following names: Real-time data command name, control command name, real-time alarm command name, parameter setting command name, and historical data command name.
  • Step 203 Generate instruction information according to the acquired command information, and send the instruction information to the communication power supply device to be monitored.
  • the command information is generated according to the acquired data of the command information, and the command information is sent to the communication power supply device to be monitored, wherein the monitoring platform and the communication power supply device to be monitored perform information transmission in the form of a data packet.
  • Step 204 Obtain the data information of the to-be-monitored communication power supply device carried in the response information fed back by the communication power supply device to be monitored according to the instruction information, and monitor the communication power supply device to be monitored.
  • the communication power supply device to be monitored feeds back the response information to the monitoring platform according to the instruction information, and after obtaining the response information fed back by the communication power supply device to be monitored, acquiring the carried information to be monitored in the response information
  • the data information of the communication power supply device is monitored according to the data information to be monitored by the communication power supply device.
  • a response message according to an instruction information feedback is any one of the following information: real-time data information, control information, real-time alarm information, parameter setting information, and historical data information.
  • Real-time data information includes: general segment information of communication power system, AC segment information, rectifier segment information, DC segment information, environmental segment information, lead-acid battery segment information, iron-lithium battery segment information, and other parts of analog quantity, alarm amount, and switch Information such as quantity and device properties and system version.
  • the control information includes all control quantity command information required by the communication protocol, and the communication power supply device can be remotely controlled by the control information.
  • the real-time alarm information includes all alarm information sent by the communication protocol.
  • the real-time alarm information When the real-time alarm information is refreshed, it includes: auto-refresh mode and manual refresh mode.
  • auto-refresh mode the interval is set to be refreshed.
  • manual refresh mode the user needs to perform operations before refreshing.
  • the parameter setting information includes the parameter quantity command information required by the communication protocol, and the parameter setting information is used to separately obtain and set parameters of different sub-device segments such as general segment information, AC segment information, and rectifier segment information, and the same sub-device can also be set at the same time. One or more parameters of the segment.
  • the monitoring platform reads the communication protocol corresponding to the communication power device by importing the protocol file information, and performs parsing processing to convert it into identifiable instruction information.
  • the monitoring platform switches the Chinese and English language operating system installation environment through language setting information. It is a Chinese operating environment on the Chinese WINDOWS (WIN7/WIN8) operating system; it is an English operating environment in the English WINDOWS operating system. It can be switched to the English interface on the Chinese operating system. Switch to Chinese interface on English operating system.
  • the monitoring platform realizes the serial port RS232 communication function through the serial port configuration information, and completes the underlying communication serial port configuration, including the serial port number, baud rate, parity bit, stop bit and data bit, and can be set. Set the serial port and baud rate.
  • the historical data information includes all historical records required by the communication protocol, mainly including historical data and historical alarm information, and the monitoring platform downloads historical data information according to the EXCEL format and saves it on the local PC.
  • the monitoring platform performs data exchange of the serial communication protocol by displaying the communication frame information, provides the user with a detailed serial communication frame to send the data packet and receive the data packet, and can export the data to the local for viewing in the form of a txt text file, or can be cleared in time. Window communication frame packet information.
  • a method for displaying interface language switching is also provided, as shown in FIG. 3, including:
  • Step 301 Generate a language switching configuration file.
  • the language switching configuration file may include a Chinese-English switching configuration file, a Chinese-Chinese switching configuration file, an English-French switching configuration file, and the like.
  • the language switching configuration file in the embodiment of the present invention is described by taking the Chinese and English switching configuration files as an example.
  • all the Chinese information and its corresponding English translations are stored in a table named Chinese-English Switch.xls, and the Chinese and English switching configuration files are generated.
  • the Chinese information in the Chinese-English switching configuration file and the corresponding English translation can cover all the data names in the communication protocol commonly used by the communication power supply device as much as possible, so that the monitoring platform of the embodiment of the present invention can support the communication power supply device by using the Chinese-English interface. monitor.
  • Step 302 Store the language switching configuration file in a completely qualified path of the current working directory.
  • the key technologies used to achieve Chinese and English display are: generic dictionary Dictionary, singleton mode, multi-threading.
  • the monitoring platform can realize the multi-language display customization requirement, and only needs to modify the Chinese-English configuration table file in the installation path to translate the Chinese-English translation into other languages, and change the display interface control button name text attribute in the corresponding monitoring platform code. Without modifying the business module code such as other protocol parsing and serial data processing.
  • Chinese and English information Dictionary is as follows:
  • Step 303 Acquire a language determination instruction, and invoke a preset corresponding language switching configuration file according to the language determination instruction and a language supported by the current operating system.
  • the language determination instruction input by the user and then call the corresponding switching configuration file.
  • the current operating system supports the English display.
  • the Chinese and English switching configuration file needs to be called.
  • the monitoring platform can be adaptively adjusted to the Chinese or English interface according to the Chinese/English operating system of the computer, and only needs to be obtained according to the main interface object constructor when adjusting.
  • System.Threading.Thread.CurrentThread.CurrentCulture.ThreeLetterWind owsLanguageName can be, if the statement is "CHS" or "CHT", then the current PC (personal computer, personal computer) operating system is Chinese operating system, otherwise it is considered English operating system At the same time, the single-case mode single-class variable is used to record the Chinese and English status.
  • the Chinese and English states saved by the singleton class variables are obtained in addition to the PC/English operating system.
  • the Chinese and English display can be switched on the monitoring platform visual language setting sub-window interface, thereby changing the current Chinese and English display state, thereby changing the value of the single-case variable, so that the Chinese interface can be switched to the English interface display, also in English.
  • the operating system can be switched to the Chinese interface display.
  • Step 304 Switch the language supported by the current operating system to the language corresponding to the language determination instruction according to the corresponding language switching configuration file and the language determination instruction.
  • the Chinese information to be displayed is directly used to read the corresponding English value in the Dictionary type variable ChinTOEngList for display; when the obtained Chinese and English display status is Chinese scene, the direct display is based on Chinese information parsed by the communication protocol.
  • the display related to the control on the display platform of the monitoring platform can modify the Text property of the control according to the value of the single-case variable in the English-Chinese state of the record.
  • the display of the visual information such as real-time data and real-time alarm generated on the interface is adopted.
  • the Dictionary method implements the display of corresponding Chinese and English information.
  • the monitoring platform provides a method for displaying interfaces in different languages.
  • the switching language interface displays high real-time performance, and the information analysis and display of real-time data command information and real-time alarm command information are accurate and timely, which proves the feasibility of realizing the display method in different language interfaces.
  • the monitoring instruction further includes: when acquiring the first instruction of all the parameter information of the communication power supply device to be monitored, as shown in FIG. 4, the method may further include the following steps:
  • Step 401 Extract all the acquisition parameter command information included in the first instruction, and form a collection parameter command information set.
  • Step 402 Generate a corresponding instruction information set according to the acquiring parameter command information set.
  • Step 403 Send a corresponding instruction information set to the communication power supply device to be monitored.
  • Step 404 Obtain batch parameter information of the to-be-monitored communication power device carried in the response information set fed back by the communication power device to be monitored according to the corresponding instruction information set;
  • Step 405 Monitor the communication power supply device according to the obtained batch parameter information.
  • the communication power supply device to be monitored receives the batch parameter information of the communication power supply device to be monitored carried in the response information set fed back according to the corresponding instruction information set, and monitors the communication power supply device according to the obtained batch parameter information.
  • the method further includes:
  • Step 501 Compare the first parameter information acquired in advance with the batch parameter information.
  • Step 502 When there are different parameters in the first parameter information and the batch parameter information, the batch parameter information is changed according to the first parameter information, and the changed batch parameter information is imported into the communication power supply device to be monitored;
  • Step 503 Perform parameter configuration and real-time monitoring on the communication power supply device to be monitored according to the batch parameter information of the communication power supply device to be monitored.
  • the batch parameter information fed back by the communication power supply device to be monitored is stored in the List type structure variable V1
  • the obtained first parameter information is stored in the List type structure variable V2
  • each of the structural variable variables V1 and V2 is compared. Whether the current value of the parameter is equal.
  • the first parameter information is parameter information required by the user.
  • the information in the structure variable V1 is saved, and the monitoring information is generated based on the information in the structure variable V1.
  • the batch parameter information in the structure variable V1 is changed according to the current value of the parameter in V2, and the batch parameter information in the changed structure variable V1 is saved, and The batch parameter information in the changed structure variable V1 is sent to the communication power supply to be monitored.
  • the batch parameter information in the modified structure variable V1 is imported into the communication power supply device to be monitored, and the parameters of the communication power supply device to be monitored are determined according to the batch parameter information of the communication power supply device to be monitored, that is, the batch parameter information saved by the monitoring platform. Configure and monitor in real time to generate monitoring information.
  • the monitoring platform can realize the rapid import and export of all parameters of the communication power supply device, and can export all the parameter information of the communication power supply device to generate an EXCEL form file, which can be stored in the computer; and can import the parameter configuration EXCEL form file in the computer into the communication power supply device. It is convenient for users to quickly complete batch configuration of parameters.
  • the generated monitoring information is notified to the user through the display interface, and the user obtains corresponding monitoring information according to the display interface.
  • different menu options are set on the display interface, and the user clicks the corresponding option according to the requirement.
  • select the corresponding option through the submenu of the main interface to enter the history downloading process.
  • the monitoring platform includes a UI thread unit, which is responsible for display and corresponding scheduling of various function applications, and provides function menu layout, real-time information, real-time alarm, parameter setting, remote control, history, automatic refresh setting, serial port configuration and topology.
  • UI thread unit responsible for display and corresponding scheduling of various function applications, and provides function menu layout, real-time information, real-time alarm, parameter setting, remote control, history, automatic refresh setting, serial port configuration and topology.
  • Such interface display through this interface can also enter other functional interfaces, and interface integration and beautification design, improve the interactive and easy to use monitoring platform.
  • the UI thread unit creates a command sub-thread, and the sub-thread can send real-time data command information, real-time data refresh command information, control command information, real-time alarm command information, real-time alarm refresh command information, and parameter setting command information.
  • the function menu module of the monitoring platform display interface mainly includes submenus such as files, settings, functions, and the like.
  • the file submenu includes import protocol files, import parameter files, and export parameter files. Its function is to import and parse a variety of different communication protocol files, and batch import and export all parameters of the currently monitored communication power supply device.
  • the setting submenu can be used to control the RS232 serial port data communication, and at the same time, the display interface of the monitoring platform can be switched between languages and displayed in different languages, that is, the configuration file is switched by changing the language of the monitoring platform installation package without changing the software. Display of different languages for all data content of different protocols.
  • the function submenu is used to display all data frame information of the serial communication communication between the communication power supply device to be monitored and the monitoring platform in real time, and save the communication frame data information to the local. It can also be used to download and save all historical data information and historical alarm information of the communication power supply to be monitored.
  • the communication power supply device to be monitored sends the instruction information generated according to the monitoring instruction, wherein the monitoring instruction includes the corresponding command name, and obtains the data information of the communication power supply device to be monitored carried in the response information fed back by the communication power supply device to be monitored according to the instruction information, and treats Monitor communication power supplies for monitoring.
  • the solution can support multiple background communication protocols, save background software development and debugging time, improve the flexibility of background communication protocol parsing, and provide convenience for remote background monitoring and operation of communication power system, and the communication power supply device does not need to be configured in this solution.
  • the liquid crystal display reduces the hardware cost of the communication power supply device.
  • Embodiment 3 of the present invention provides a monitoring device for a communication power supply device, as shown in FIG.
  • the extraction module 10 is configured to extract all the command information in the communication protocol with the communication power device, where the communication protocol includes a plurality of command information distinguished by the command name;
  • the monitoring sending module 20 is configured to receive a monitoring instruction for monitoring the communication power device, wherein the monitoring command includes a command name of a command information in a communication protocol with the communication power device;
  • the monitoring module 30 is configured to acquire response information fed back by the communication power device according to the instruction information, and monitor the communication power device based on the response information.
  • the extraction module 10 includes:
  • the first extraction sub-module 12 is configured to parse the communication protocol and extract all the command information in the communication protocol.
  • the monitoring and transmitting module 20 includes:
  • the processing sub-module 21 is configured to generate a monitoring instruction according to the command name when it is configured to monitor any one of the command names of all the command information in the communication protocol displayed on the display interface with the communication power supply device.
  • the monitoring and transmitting module 20 includes:
  • the first obtaining submodule 22 is configured to acquire command information corresponding to the command name in the monitoring instruction
  • the first generation submodule 23 is configured to generate instruction information according to the acquired command information
  • the first sending submodule 24 is configured to send the command information to the communication power device.
  • the monitoring instruction further includes: obtaining a first instruction of all parameter information of the communication power device, and the monitoring sending module 20 includes:
  • the second extraction sub-module 25 is configured to extract all the acquisition parameter command information included in the first instruction, and compose the acquisition parameter command information set;
  • the second generation sub-module 26 is configured to generate a corresponding instruction information set according to the acquisition parameter command information set;
  • a second sending submodule 27 configured to send a corresponding instruction information set to the communication power Source device.
  • the monitoring module 30 includes:
  • the second obtaining sub-module 31 is configured to acquire batch parameter information of the to-be-monitored communication power device carried in the response information set fed back by the communication power device to be monitored according to the corresponding instruction information set;
  • the first monitoring submodule 32 is configured to monitor the communication power device according to the obtained batch parameter information.
  • the monitoring module 30 further includes:
  • the comparison sub-module 33 is configured to: after the second acquisition sub-module 31 acquires the batch parameter information of the to-be-monitored communication power supply device carried in the response information set fed back by the communication power supply device to be monitored according to the corresponding instruction information set, the pre-acquired A parameter information is compared with batch parameter information;
  • the change sub-module 34 is configured to: when the first parameter information and the batch parameter information have different parameters, modify the batch parameter information according to the first parameter information, and import the changed batch parameter information into the communication power device;
  • the second monitoring sub-module 35 is configured to perform parameter configuration and real-time monitoring on the communication power device according to the batch parameter information of the communication power device to be monitored.
  • the content displayed on the display interface is displayed in a language supported by the current operating system, and the device further includes:
  • the calling module 40 is configured to acquire a language determining instruction before the extraction module 10 extracts all the command information in the communication protocol with the communication power source device, and invoke the preset corresponding language according to the language determining instruction and the language supported by the current operating system. Switch configuration files;
  • the switching module 50 is configured to switch the language supported by the current operating system to the language corresponding to the language determining instruction according to the corresponding language switching configuration file and the language determining instruction.
  • the module is extracted and pre-established with different communication power devices. All command information in the communication protocol of different formats is distinguished by the command name; when monitoring the monitoring command of the communication power supply device to be monitored on the display interface, the command information generated according to the monitoring instruction is sent to the communication power supply device to be monitored, wherein the monitoring information is generated.
  • the command includes a corresponding command name, and obtains data information of the communication power supply device to be monitored carried in the response information fed back by the communication power supply device to be monitored according to the instruction information, and monitors the communication power supply device to be monitored.
  • the solution can support multiple background communication protocols, save background software development and debugging time, improve the flexibility of background communication protocol parsing, and provide convenience for remote background monitoring and operation of communication power system, and the communication power supply device does not need to be configured in this solution.
  • the liquid crystal display reduces the hardware cost of the communication power supply device.
  • the device for performing background monitoring on the communication power supply device provided by the embodiment of the present invention is a device applying the foregoing method, and all embodiments of the foregoing method are applicable to the device, and all of the same or similar beneficial effects can be achieved. .
  • the functions performed by the extraction module 10, the monitoring and transmitting module 20, the monitoring module 30, the calling module 40, and the switching module 50 in the monitoring device of the communication power supply device proposed in the embodiment of the present invention can be implemented by a processor, and of course The specific logic circuit is implemented; wherein the processor may be a processor on a server, and in practical applications, the processor may be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or Field programmable gate array (FPGA), etc.
  • CPU central processing unit
  • MPU microprocessor
  • DSP digital signal processor
  • FPGA Field programmable gate array
  • the monitoring method of the communication power supply device is implemented in the form of a software function module and sold or used as a stand-alone product, it may also be stored in a computer readable storage medium.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk, and the like.
  • the medium of the code includes: a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk, and the like.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a computer program, and the computer program is used to execute the monitoring method of the communication power supply device according to the embodiment of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Communication Control (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention provides a method and an apparatus for monitoring a communication power supply device, and a storage medium. The method comprises: extracting all command messages in a communication protocol with a communication power supply device, wherein the communication protocol comprises multiple command messages distinguished with command names; receiving a monitoring instruction for monitoring the communication power supply device, wherein the monitoring instruction comprises a command name of a command message in the communication protocol with the communication power supply device; generating an instruction message on the basis of the monitoring instruction, and sending the instruction message to the communication power supply device; and obtaining a response message fed back by the communication power supply device according to the instruction message, and monitoring the communication power supply device on the basis of the response message.

Description

一种通信电源设备的监控方法、装置及存储介质Monitoring method, device and storage medium for communication power supply device 技术领域Technical field
本发明涉及通信电源技术领域,尤其涉及一种通信电源设备的监控方法、装置及存储介质。The present invention relates to the field of communication power supply technologies, and in particular, to a method, an apparatus, and a storage medium for monitoring a communication power supply device.
背景技术Background technique
目前通信电源设备监控技术发展迅速,针对现场使用场景,很多站点前台监控无需再配置液晶界面,可直接采用后台监控的方式,从而可以降低通信电源设备硬件成本,但现有通信电源设备后台监控软件安装和配置过程复杂,软件占用资源庞大,不适用于生产线调测和用户快速配置产品等场景,因此通信电源设备前台监控单元无液晶配置很难实施。At present, the communication power equipment monitoring technology is developing rapidly. For the scene use scenario, many sites have no need to configure the LCD interface for foreground monitoring, and can directly adopt the background monitoring mode, thereby reducing the hardware cost of the communication power supply device, but the existing communication power supply equipment background monitoring software The installation and configuration process is complicated, and the software occupies a large amount of resources. It is not suitable for scenarios such as production line commissioning and rapid configuration of products. Therefore, it is difficult to implement the liquid crystal configuration of the communication power equipment front-end monitoring unit.
另外通信电源设备与后台之间通讯接口有232串口、以太网网口等,后台通讯协议类型为电信标准规定的1104、1363协议,也有自定义的A接口协议等。通信电源设备通讯接口和通讯协议的多样性,使其后台监控软件开发和调测极其繁琐,目前均是针对某一款特定通信电源设备支持的某一种后台通讯协议开发后台,并进行调测,即使是某一款特定通信电源设备,往往兼容多种后台通讯协议,但目前的特定监控后台软件往往不能解析通信电源设备兼容的多种后台通讯协议,因此也不能满足通讯协议多样化要求,此时需根据协议组包生成命令,并通过各种通讯接口的调试助手发送命令,再对响应信息进行解析,在后台通讯协议繁琐且其参数配置、实时和历史数据量大的通信电源设备中,工作量大,调测成本高。In addition, the communication interface between the communication power supply device and the background has 232 serial port, Ethernet network port, etc., the background communication protocol type is 1104, 1363 protocol specified by the telecommunication standard, and also has a customized A interface protocol. The diversity of communication interface and communication protocol of communication power supply equipment makes the development and debugging of background monitoring software extremely cumbersome. Currently, it is a background communication background development and debugging for a certain communication power supply device. Even a certain communication power supply device is often compatible with a variety of background communication protocols, but the current specific monitoring background software often cannot resolve various background communication protocols compatible with the communication power supply device, and thus cannot meet the diversification requirements of the communication protocol. At this time, it is necessary to generate a command according to the protocol group package, and send a command through the debugging assistants of various communication interfaces, and then parse the response information, in a communication power supply device with complicated background communication parameters, real-time and historical data volume. The workload is large and the commissioning cost is high.
发明内容Summary of the invention
本发明实施例提供一种通信电源设备的监控方法、装置及存储介质, 旨在解决现有通信电源设备后台监控技术中存在的后台监控软件安装、配置过程复杂且不能解析多种后台通讯协议的问题。Embodiments of the present invention provide a monitoring method, device, and storage medium for a communication power supply device. The invention aims to solve the problem that the background monitoring software installed and configured in the background communication technology of the existing communication power supply device is complicated and cannot resolve various background communication protocols.
本发明实施例提供一种通信电源设备的监控方法,包括:The embodiment of the invention provides a monitoring method for a communication power supply device, including:
提取与通信电源设备之间的通讯协议中的所有命令信息,其中所述通讯协议中包括多个以命令名称进行区别的命令信息;Extracting all command information in a communication protocol with the communication power device, wherein the communication protocol includes a plurality of command information distinguished by a command name;
接收对所述通信电源设备进行监控的监控指令,其中所述监控指令包括与所述通信电源设备之间的通讯协议中的一命令信息的命令名称;Receiving a monitoring instruction for monitoring the communication power supply device, wherein the monitoring instruction includes a command name of a command information in a communication protocol with the communication power supply device;
其中,所述监控指令包括与所述监控通信电源设备之间的通讯协议中的一命令信息的命令名称;The monitoring instruction includes a command name of a command information in a communication protocol between the monitoring communication power source device;
基于所述监控指令生成指令信息,发送所述指令信息至所述通信电源设备;Generating the instruction information based on the monitoring instruction, and transmitting the instruction information to the communication power supply device;
获取所述通信电源设备根据所述指令信息反馈的响应信息,基于所述响应信息对所述通信电源设备进行监控。Acquiring the response information fed back by the communication power device according to the instruction information, and monitoring the communication power device based on the response information.
上述方案中,所述提取与通信电源设备之间的通讯协议中的所有命令信息,包括:In the above solution, the extracting all the command information in the communication protocol between the communication power supply device includes:
导入与所述通信电源设备之间的相应格式的通讯协议;Importing a communication protocol in a corresponding format with the communication power supply device;
对所述通讯协议进行解析,提取所述通讯协议中所有的命令信息。Parsing the communication protocol and extracting all command information in the communication protocol.
上述方案中,所述接收对所述通信电源设备进行监控的监控指令,包括:In the above solution, the receiving the monitoring instruction for monitoring the communication power device includes:
监测到显示界面上显示的与所述通信电源设备之间的通讯协议中的所有命令信息的命令名称中的任一个被选择时,根据该命令名称生成所述监控指令。When any one of the command names of all the command information in the communication protocol displayed on the display interface with the communication power source device is selected, the monitoring command is generated according to the command name.
上述方案中,所述基于所述监控指令生成指令信息,发送所述指令信息至所述通信电源设备,包括:In the above solution, the generating the instruction information based on the monitoring instruction, and sending the instruction information to the communication power device, includes:
获取所述监控指令中的命令名称对应的命令信息; Obtaining command information corresponding to the command name in the monitoring instruction;
根据获取的命令信息生成所述指令信息;Generating the instruction information according to the obtained command information;
将所述指令信息发送至所述通信电源设备。The instruction information is transmitted to the communication power supply device.
上述方案中,所述监控指令还包括:获取所述通信电源设备的所有参数信息的第一指令;相应的,所述基于所述监控指令生成指令信息,发送所述指令信息至所述通信电源设备,包括:In the above solution, the monitoring instruction further includes: acquiring a first instruction of all parameter information of the communication power supply device; correspondingly, the generating the instruction information based on the monitoring instruction, and sending the instruction information to the communication power supply Equipment, including:
提取所述第一指令中包含的所有的获取参数命令信息,组成获取参数命令信息集合;Extracting all the acquisition parameter command information included in the first instruction to form a collection parameter command information set;
根据获取参数命令信息集合生成相应的指令信息集合;Generating a corresponding instruction information set according to the acquisition parameter command information set;
将相应的指令信息集合发送至所述通信电源设备。A corresponding set of instruction information is sent to the communication power device.
上述方案中,所述获取所述通信电源设备根据所述指令信息反馈的响应信息,基于所述响应消息对所述通信电源设备进行监控,包括:In the above solution, the acquiring, by the communication power supply device, the response information that is fed back according to the instruction information, and monitoring the communication power device based on the response message, including:
获取所述通信电源设备根据相应的指令信息集合反馈的响应信息集合中携带的所述通信电源设备的批量参数信息;Obtaining batch parameter information of the communication power device carried in the response information set fed back by the communication power device according to the corresponding instruction information set;
根据获取的所述批量参数信息对所述通信电源设备进行监控。And monitoring the communication power device according to the obtained batch parameter information.
上述方案中,所述获取所述通信电源设备根据相应的指令信息集合反馈的响应信息集合中携带的所述通信电源设备的批量参数信息之后,所述方法还包括:In the above solution, after the obtaining the batch parameter information of the communication power device carried in the response information set fed back by the communication power device according to the corresponding instruction information set, the method further includes:
将预先获取的第一参数信息与所述批量参数信息进行比较;Comparing the pre-acquired first parameter information with the batch parameter information;
当所述第一参数信息与所述批量参数信息中存在不同的参数时,根据所述第一参数信息对所述批量参数信息进行更改,并将更改后的所述批量参数信息导入所述控通信电源设备;When the first parameter information and the batch parameter information have different parameters, the batch parameter information is changed according to the first parameter information, and the changed batch parameter information is imported into the control Communication power supply equipment;
根据导入所述通信电源设备的批量参数信息,对所述通信电源设备进行参数配置并实时监控。According to the batch parameter information imported into the communication power device, the communication power device is configured with parameters and monitored in real time.
上述方案中,所述提取与通信电源设备之间的通讯协议中的所有命令信息之前,所述方法还包括: In the above solution, before the extracting all the command information in the communication protocol between the communication power supply device, the method further includes:
获取语言确定指令,根据所述语言确定指令和当前操作系统所支持的语言调用预设的相应语言切换配置文件;Obtaining a language determining instruction, and calling a preset corresponding language switching configuration file according to the language determining instruction and a language supported by the current operating system;
根据相应语言切换配置文件以及所述语言确定指令将当前操作系统所支持的语言切换为所述语言确定指令对应的语言。Switching the configuration file according to the corresponding language and the language determination instruction switch the language supported by the current operating system to the language corresponding to the language determination instruction.
本发明实施例还提供一种通信电源设备的监控装置,所述装置包括:The embodiment of the invention further provides a monitoring device for a communication power supply device, the device comprising:
提取模块,配置为提取与通信电源设备之间的不同格式的通讯协议中的所有命令信息,其中一通讯协议中包括多个以命令名称进行区别的命令信息;An extraction module configured to extract all command information in a communication protocol in a different format from the communication power device, where the communication protocol includes a plurality of command information distinguished by the command name;
监测发送模块,配置为接收对所述通信电源设备进行监控的监控指令,其中所述监控指令包括与所述通信电源设备之间的通讯协议中的一命令信息的命令名称;Monitoring a sending module, configured to receive a monitoring instruction for monitoring the communication power device, wherein the monitoring command includes a command name of a command information in a communication protocol with the communication power device;
基于所述监控指令生成指令信息,发送所述指令信息至所述通信电源设备;Generating the instruction information based on the monitoring instruction, and transmitting the instruction information to the communication power supply device;
监控模块,配置为获取所述通信电源设备根据所述指令信息反馈的响应信息,基于所述响应信息对所述通信电源设备进行监控。The monitoring module is configured to obtain response information fed back by the communication power device according to the instruction information, and monitor the communication power device based on the response information.
上述方案中,所述提取模块包括:In the above solution, the extraction module includes:
导入子模块,配置为导入与所述通信电源设备之间的相应格式的通讯协议;Importing a submodule configured to import a communication protocol in a corresponding format with the communication power device;
第一提取子模块,配置为对所述通讯协议进行解析,提取所述通讯协议中所有的命令信息。The first extraction submodule is configured to parse the communication protocol and extract all command information in the communication protocol.
上述方案中,所述监测发送模块包括:In the above solution, the monitoring and sending module includes:
处理子模块,配置为监测到显示界面上显示的与所述通信电源设备之间的通讯协议中的所有命令信息的命令名称中的任一个被选择时,根据该命令名称生成所述监控指令。The processing submodule is configured to generate the monitoring instruction according to the command name when any one of the command names configured to monitor all the command information in the communication protocol displayed on the display interface with the communication power device is selected.
上述方案中,所述监测发送模块包括: In the above solution, the monitoring and sending module includes:
第一获取子模块,配置为获取所述监控指令中的命令名称对应的命令信息;The first obtaining submodule is configured to acquire command information corresponding to the command name in the monitoring instruction;
第一生成子模块,配置为根据获取的命令信息生成所述指令信息;a first generation submodule configured to generate the instruction information according to the obtained command information;
第一发送子模块,配置为将所述指令信息发送至所述通信电源设备。The first sending submodule is configured to send the instruction information to the communication power device.
上述方案中,所述监控指令还包括:获取所述通信电源设备的所有参数信息的第一指令;相应的,所述监测发送模块包括:In the above solution, the monitoring instruction further includes: a first instruction for acquiring all parameter information of the communication power device; and correspondingly, the monitoring and transmitting module includes:
第二提取子模块,配置为提取所述第一指令中包含的所有的获取参数命令信息,组成获取参数命令信息集合;The second extraction submodule is configured to extract all the acquisition parameter command information included in the first instruction, and form a collection parameter command information set;
第二生成子模块,配置为根据获取参数命令信息集合生成相应的指令信息集合;a second generation submodule configured to generate a corresponding instruction information set according to the acquisition parameter command information set;
第二发送子模块,配置为将相应的指令信息集合发送至所述通信电源设备。And a second sending submodule configured to send the corresponding instruction information set to the communication power device.
上述方案中,所述监控模块包括:In the above solution, the monitoring module includes:
第二获取子模块,配置为获取所述通信电源设备根据相应的指令信息集合反馈的响应信息集合中携带的所述通信电源设备的批量参数信息;a second obtaining sub-module configured to acquire batch parameter information of the communication power device carried in the response information set fed back by the communication power device according to the corresponding instruction information set;
第一监控子模块,配置为根据获取的所述批量参数信息对所述通信电源设备进行监控。The first monitoring submodule is configured to monitor the communication power device according to the obtained batch parameter information.
上述方案中,所述监控模块还包括:In the above solution, the monitoring module further includes:
比较子模块,配置为将预先获取的第一参数信息与所述批量参数信息进行比较;Comparing the submodule, configured to compare the pre-acquired first parameter information with the batch parameter information;
更改子模块,配置为当所述第一参数信息与所述批量参数信息中存在不同的参数时,根据所述第一参数信息对所述批量参数信息进行更改,并将更改后的所述批量参数信息导入所述通信电源设备;Changing the sub-module, configured to: when the first parameter information and the batch parameter information have different parameters, modify the batch parameter information according to the first parameter information, and change the batch Parameter information is imported into the communication power supply device;
第二监控子模块,配置为根据导入所述通信电源设备的批量参数信息,对所述通信电源设备进行参数配置并实时监控。 The second monitoring submodule is configured to perform parameter configuration and real-time monitoring on the communication power device according to the batch parameter information that is imported into the communication power device.
上述方案中,在显示界面上显示的内容以当前操作系统所支持的语言进行显示,且所述装置还包括:In the above solution, the content displayed on the display interface is displayed in a language supported by the current operating system, and the device further includes:
调用模块,配置为在提取与通信电源设备之间的通讯协议中的所有命令信息之前,获取语言确定指令,根据所述语言确定指令和当前操作系统所支持的语言调用预设的相应语言切换配置文件;The calling module is configured to acquire a language determining instruction according to the language determining instruction and a language supported by the current operating system to preset a corresponding language switching configuration before extracting all command information in the communication protocol between the communication power device and the communication power device file;
切换模块,配置为根据相应语言切换配置文件以及所述语言确定指令将当前操作系统所支持的语言切换为所述语言确定指令对应的语言。And a switching module configured to switch the configuration file according to the corresponding language and the language determining instruction to switch the language supported by the current operating system to a language corresponding to the language determining instruction.
本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行本发明实施例上述的通信电源设备的监控方法。The embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the monitoring method of the communication power supply device according to the embodiment of the present invention.
本发明实施例的上述技术方案的有益效果如下:The beneficial effects of the above technical solutions of the embodiments of the present invention are as follows:
本发明的方案中,提取与不同通信电源设备之间预先建立的不同格式的通讯协议中的以命令名称进行区别的所有命令信息;监测到显示界面上对待监控通信电源设备的监控指令时,向待监控通信电源设备发送根据监控指令生成的指令信息,其中监控指令中包括相应的命令名称,获取待监控通信电源设备根据指令信息反馈的响应信息中携带的待监控通信电源设备的数据信息,对待监控通信电源设备进行监控。本方案可支持多种后台通讯协议,节省后台软件开发和调试时间,提高了后台通讯协议解析的灵活性,具有较强的通用性和扩展性,适用于不同的应用场景,为远程后台监控和操作通信电源系统提供了便利,且该方案中通信电源设备无需配置液晶显示,降低了通信电源设备的硬件成本。In the solution of the present invention, all the command information distinguished by the command name in the communication protocol of different formats pre-established between different communication power supply devices is extracted; when the monitoring instruction of the communication power supply device to be monitored is displayed on the display interface, The communication power supply device to be monitored sends the instruction information generated according to the monitoring instruction, wherein the monitoring instruction includes the corresponding command name, and obtains the data information of the communication power supply device to be monitored carried in the response information fed back by the communication power supply device to be monitored according to the instruction information, and treats Monitor communication power supplies for monitoring. The solution can support a variety of background communication protocols, save background software development and debugging time, improve the flexibility of background communication protocol analysis, has strong versatility and scalability, is suitable for different application scenarios, and is for remote background monitoring and The communication power supply system is convenient to provide, and the communication power supply device in the solution does not need to be configured with a liquid crystal display, which reduces the hardware cost of the communication power supply device.
附图说明DRAWINGS
图1为本发明实施例一通信电源设备的监控方法示意图;1 is a schematic diagram of a monitoring method of a communication power supply device according to an embodiment of the present invention;
图2为本发明实施例二通信电源设备的监控方法示意图;2 is a schematic diagram of a monitoring method of a communication power supply device according to Embodiment 2 of the present invention;
图3为本发明实施例监控平台实现语言切换的方法流程图; 3 is a flowchart of a method for implementing language switching by a monitoring platform according to an embodiment of the present invention;
图4为本发明实施例监控平台获取批量参数信息的流程图;4 is a flowchart of acquiring batch parameter information by a monitoring platform according to an embodiment of the present invention;
图5为本发明实施例监控平台根据批量参数信息对通信电源设备进行监控的流程图;FIG. 5 is a flowchart of monitoring a communication power device according to batch parameter information by a monitoring platform according to an embodiment of the present invention;
图6为本发明实施例通信电源设备的监控装置示意图一;6 is a schematic diagram 1 of a monitoring device for a communication power supply device according to an embodiment of the present invention;
图7为本发明实施例通信电源设备的监控装置示意图二。FIG. 7 is a second schematic diagram of a monitoring device for a communication power supply device according to an embodiment of the present invention.
具体实施方式detailed description
为使本发明要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。The technical problems, the technical solutions, and the advantages of the present invention will be more clearly described in the following description.
实施例一Embodiment 1
如图1所示,为本发明实施例一通信电源设备的监控方法示意图,包括:FIG. 1 is a schematic diagram of a monitoring method of a communication power supply device according to an embodiment of the present invention, including:
步骤101、提取与通信电源设备之间的通讯协议中的所有命令信息。Step 101: Extract all command information in a communication protocol with the communication power device.
监控平台首先获取与各个通信电源设备之间的通讯协议,其中不同通信电源设备的通讯协议的格式不同,监控平台可支持不同格式的通讯协议,且一个通讯协议中包括多个命令信息,一命令信息对应一命令名称,各个命令信息以不同的命令名称进行区分。The monitoring platform first obtains a communication protocol with each communication power device, wherein different communication power devices have different communication protocol formats, the monitoring platform can support different format communication protocols, and one communication protocol includes multiple command information, one command The information corresponds to a command name, and each command information is distinguished by a different command name.
步骤102、接收对所述通信电源设备进行监控的监控指令,基于所述监控指令生成指令信息,发送所述指令信息至所述通信电源设备;Step 102: Receive a monitoring instruction for monitoring the communication power supply device, generate instruction information based on the monitoring instruction, and send the instruction information to the communication power supply device.
其中,所述监控指令包括与待监控通信电源设备之间的通讯协议中的一命令信息的命令名称。The monitoring instruction includes a command name of a command information in a communication protocol between the communication power supply device to be monitored.
需要说明的是,在监测到显示界面上对待监控通信电源设备的监控指令之前,需要在显示界面上显示与待监控通信电源设备之间的通讯协议中的所有命令信息的命令名称。It should be noted that, before monitoring the monitoring command of the communication power device to be monitored on the display interface, the command name of all the command information in the communication protocol with the communication power device to be monitored needs to be displayed on the display interface.
命令名称在监控平台提供的显示界面中以树结构控件TreeView树节点的形式进行显示。由于不同的通信电源设备对应的通讯协议不同,因此通 讯协议中的命令信息的命令名称也有差异,由树结构控件TreeView树节点建立的监控平台的显示界面也不同。The command name is displayed in the form of a tree structure control TreeView tree node in the display interface provided by the monitoring platform. Because different communication power supply devices have different communication protocols, The command names of the command information in the protocol are also different. The display interface of the monitoring platform established by the TreeView tree node of the tree structure control is also different.
需要说明的是,生成监控指令的过程具体为:监测到显示界面上显示的与待监控通信电源设备之间的通讯协议中的所有命令信息的命令名称中的任一个被选择时,根据该命令名称生成监控指令。It should be noted that the process of generating the monitoring instruction is specifically: when any one of the command names of all the command information in the communication protocol displayed on the display interface and the communication power supply device to be monitored is selected, according to the command The name generates a monitoring command.
具体的,当用户需要获取待监控通信电源设备的相关信息时,可以在显示界面上点击相应的命令名称,根据获取的命令名称形成监控指令,根据监控指令生成指令信息,然后将指令信息发送至待监控通信电源设备。Specifically, when the user needs to obtain related information of the communication power device to be monitored, the corresponding command name may be clicked on the display interface, a monitoring instruction is formed according to the obtained command name, command information is generated according to the monitoring instruction, and then the command information is sent to Communication power supply equipment to be monitored.
步骤103、获取所述通信电源设备根据指令信息反馈的响应信息,基于所述响应信息对所述通信电源设备进行监控。Step 103: Acquire response information fed back by the communication power device according to the instruction information, and monitor the communication power device based on the response information.
在将指令信息发送至待监控通信电源设备之后,待监控通信电源设备根据指令信息向监控平台反馈响应信息,在获取待监控通信电源设备反馈的响应信息之后,对响应信息进行解析,获取响应信息中的携带的待监控通信电源设备的数据信息,根据数据信息对待监控通信电源设备进行监控。After the command information is sent to the communication power supply device to be monitored, the communication power supply device to be monitored feeds back response information to the monitoring platform according to the instruction information, and after obtaining the response information fed back by the communication power supply device to be monitored, the response information is parsed to obtain response information. The data information of the communication power supply device to be monitored carried in is monitored according to the data information to be monitored by the communication power supply device.
需要说明的是,监控平台与待监控通信电源设备之间的往来消息以数据包的形式进行传递。且响应信息是进行封装的,监控平台在接收到响应信息之后,需要进行解析,才可以获得待监控通信电源设备的数据信息。It should be noted that the incoming and outgoing messages between the monitoring platform and the communication power supply device to be monitored are transmitted in the form of data packets. The response information is encapsulated. After receiving the response information, the monitoring platform needs to perform parsing to obtain the data information of the communication power device to be monitored.
需要说明的是,本发明是采用C#语言基于Windows窗体应用程序开发建立的监控平台,利用丰富的Microsoft Visual Studio软件资源,通过串口通讯实现对通信电源设备的命令信息进行提取并解析,并能对通信电源设备进行控制,为用户对通信电源设备的监控和操作提供了便利。It should be noted that the present invention is a monitoring platform established by using the C# language based on the Windows Forms application development, and utilizes rich Microsoft Visual Studio software resources to extract and parse the command information of the communication power supply device through serial communication, and can Controlling the communication power supply device provides convenience for the user to monitor and operate the communication power supply device.
其中,C#是微软公司发布的一种面向对象的、运行于.NET Framework之上的高级程序设计语言。它简化了C++语言在类、命名空间、方法重载和异常处理等方面的操作,它摒弃了C++的复杂性,更易使用,更少出错。使用C#语言基于Windows窗体应用程序开发建立的显示界面,为Windows 窗体控件添加事件函数,完成指定的功能,有利于缩短后台软件的开发时间,方便后台的功能扩展和日常维护。Among them, C# is an object-oriented high-level programming language that runs on the .NET Framework. It simplifies the C++ language's operations in classes, namespaces, method overloading, and exception handling. It eliminates the complexity of C++, makes it easier to use, and less error-prone. Using C# language based on Windows Forms application development to create a display interface for Windows The form control adds an event function to complete the specified function, which is beneficial to shorten the development time of the background software, and facilitate the function expansion and daily maintenance of the background.
本发明实施例一,提取与不同通信电源设备之间预先建立的不同格式的通讯协议中的以命令名称进行区别的所有命令信息;监测到显示界面上对待监控通信电源设备的监控指令时,向待监控通信电源设备发送根据监控指令生成的指令信息,其中监控指令中包括相应的命令名称,获取待监控通信电源设备根据指令信息反馈的响应信息中携带的待监控通信电源设备的数据信息,对待监控通信电源设备进行监控。本方案可支持多种后台通讯协议,节省后台软件开发和调试时间,提高了后台通讯协议解析的灵活性,为远程后台监控和操作通信电源系统提供了便利,且该方案中通信电源设备无需配置液晶显示,降低了通信电源设备的硬件成本。Embodiment 1 of the present invention extracts all command information that is distinguished by a command name in a communication protocol of a different format pre-established between different communication power supply devices; when monitoring a monitoring instruction of the communication power supply device to be monitored on the display interface, The communication power supply device to be monitored sends the instruction information generated according to the monitoring instruction, wherein the monitoring instruction includes the corresponding command name, and obtains the data information of the communication power supply device to be monitored carried in the response information fed back by the communication power supply device to be monitored according to the instruction information, and treats Monitor communication power supplies for monitoring. The solution can support multiple background communication protocols, save background software development and debugging time, improve the flexibility of background communication protocol parsing, and provide convenience for remote background monitoring and operation of communication power system, and the communication power supply device does not need to be configured in this solution. The liquid crystal display reduces the hardware cost of the communication power supply device.
实施例二Embodiment 2
如图2所示,为本发明实施例二通信电源设备的监控方法示意图,包括:FIG. 2 is a schematic diagram of a monitoring method of a communication power supply device according to Embodiment 2 of the present invention, including:
步骤201、针对每一通信电源设备,导入与该通信电源设备之间的相应格式的通讯协议,对通讯协议进行解析,提取通讯协议中所有的命令信息。Step 201: Import, for each communication power device, a communication protocol in a corresponding format with the communication power device, parse the communication protocol, and extract all command information in the communication protocol.
首先需要针对每一个通信电源设备,导入与该通信电源设备之间的相应格式的通讯协议,其中不同通信电源设备的通讯协议的格式不同,监控平台可支持不同格式的通讯协议。在针对一通信电源设备,导入与该通信电源设备之间的通讯协议后,对通讯协议进行解析,获取通讯协议中存储的多个命令信息,各个命令信息采用不同的命令名称进行区别。Firstly, for each communication power supply device, a communication protocol corresponding to the format of the communication power supply device is required, wherein the communication protocol of the different communication power supply devices has different formats, and the monitoring platform can support communication protocols of different formats. After importing a communication protocol with the communication power supply device for a communication power supply device, the communication protocol is parsed to obtain a plurality of command information stored in the communication protocol, and each command information is distinguished by a different command name.
命令名称在监控平台提供的显示界面中以树结构控件TreeView树节点的形式进行显示。其中,显示界面上显示的文字内容以当前操作系统所支持的语言进行显示。The command name is displayed in the form of a tree structure control TreeView tree node in the display interface provided by the monitoring platform. The text content displayed on the display interface is displayed in a language supported by the current operating system.
步骤202、监测到显示界面上对待监控通信电源设备的监控指令时,获 取监控指令中的命令名称对应的命令信息。Step 202: When monitoring the monitoring instruction of the communication power supply device to be monitored on the display interface, obtain Take the command information corresponding to the command name in the monitoring command.
用户需要获取待监控通信电源设备的相关信息时,可以在显示界面上点击相应的命令名称,监控平台根据获取的命令名称形成监控指令,获取监控指令中的命令名称对应的命令信息。其中一命令信息包括一命令名称以及对应的数据包。When the user needs to obtain the related information of the communication power device to be monitored, the corresponding command name may be clicked on the display interface, and the monitoring platform forms a monitoring instruction according to the obtained command name, and obtains command information corresponding to the command name in the monitoring instruction. One of the command information includes a command name and a corresponding data packet.
其中,命令信息为以下信息中的任一种:实时数据命令信息、控制命令信息、实时告警命令信息、参数设置命令信息以及历史数据命令信息;相应的命令名称为以下名称中的任一种:实时数据命令名称、控制命令名称、实时告警命令名称、参数设置命令名称以及历史数据命令名称。The command information is any one of the following information: real-time data command information, control command information, real-time alarm command information, parameter setting command information, and historical data command information; the corresponding command name is any one of the following names: Real-time data command name, control command name, real-time alarm command name, parameter setting command name, and historical data command name.
步骤203、根据获取的命令信息生成指令信息,将指令信息发送至待监控通信电源设备。Step 203: Generate instruction information according to the acquired command information, and send the instruction information to the communication power supply device to be monitored.
根据获取的命令信息的数据包生成指令信息,将指令信息发送至待监控通信电源设备,其中监控平台与待监控通信电源设备之间以数据包的形式进行信息传输。The command information is generated according to the acquired data of the command information, and the command information is sent to the communication power supply device to be monitored, wherein the monitoring platform and the communication power supply device to be monitored perform information transmission in the form of a data packet.
步骤204、获取待监控通信电源设备根据指令信息反馈的响应信息中携带的待监控通信电源设备的数据信息,对待监控通信电源设备进行监控。Step 204: Obtain the data information of the to-be-monitored communication power supply device carried in the response information fed back by the communication power supply device to be monitored according to the instruction information, and monitor the communication power supply device to be monitored.
在将指令信息发送至待监控通信电源设备之后,待监控通信电源设备根据指令信息向监控平台反馈响应信息,在获取待监控通信电源设备反馈的响应信息之后,获取响应信息中的携带的待监控通信电源设备的数据信息,根据数据信息对待监控通信电源设备进行监控。After the command information is sent to the communication power supply device to be monitored, the communication power supply device to be monitored feeds back the response information to the monitoring platform according to the instruction information, and after obtaining the response information fed back by the communication power supply device to be monitored, acquiring the carried information to be monitored in the response information The data information of the communication power supply device is monitored according to the data information to be monitored by the communication power supply device.
根据一指令信息反馈的一响应信息为以下信息中的任一种:实时数据信息、控制信息、实时告警信息、参数设置信息以及历史数据信息。A response message according to an instruction information feedback is any one of the following information: real-time data information, control information, real-time alarm information, parameter setting information, and historical data information.
实时数据信息包括:通信电源系统通用段信息、交流段信息、整流段信息、直流段信息、环境段信息、铅酸电池段信息、铁锂电池段信息等各部分的模拟量、告警量、开关量以及设备属性和系统版本等信息。 Real-time data information includes: general segment information of communication power system, AC segment information, rectifier segment information, DC segment information, environmental segment information, lead-acid battery segment information, iron-lithium battery segment information, and other parts of analog quantity, alarm amount, and switch Information such as quantity and device properties and system version.
在对实时数据进行刷新时,包括自动刷新和手动刷新两种方式,自动刷新模式下,可以自定义设置自动刷新间隔时间。实时数据手动刷新模式下,用户点击监控平台显示界面的实时数据命令名称,就可以发送该命令名称对应的命令信息的数据包至被待监控通信电源设备,并接收和解析响应信息,将响应信息按照该命令名称详细对应的具体数据名称和当前值进行显示界面输出显示。在自动刷新模式下,不需要手动双击实时数据命令名称,就会按照设定的时间要求间隔发送选定的树节点命令名称对应的命令信息的数据包,并不断地更新当前响应信息解析后的显示界面。When refreshing real-time data, it includes automatic refresh and manual refresh. In the automatic refresh mode, you can customize the automatic refresh interval. In the real-time data manual refresh mode, the user clicks the real-time data command name of the monitoring platform display interface, and can send the data packet of the command information corresponding to the command name to the communication power supply device to be monitored, and receive and parse the response information, and the response information The display interface output is displayed according to the specific data name and current value corresponding to the command name. In the automatic refresh mode, it is not necessary to manually double-click the real-time data command name, and the data packet of the command information corresponding to the selected tree node command name is sent according to the set time requirement interval, and the current response information is continuously updated. UI.
控制信息包括通讯协议要求的所有控制量命令信息,通过控制信息可以实现对通信电源设备进行远程遥控。The control information includes all control quantity command information required by the communication protocol, and the communication power supply device can be remotely controlled by the control information.
实时告警信息包括通讯协议要求上送的所有告警信息。The real-time alarm information includes all alarm information sent by the communication protocol.
在对实时告警信息进行刷新时包括:自动刷新模式和手动刷新模式,自动刷新模式下采用设置的间隔时间进行刷新,手动刷新模式下需要用户进行操作后才可刷新。When the real-time alarm information is refreshed, it includes: auto-refresh mode and manual refresh mode. In the auto-refresh mode, the interval is set to be refreshed. In the manual refresh mode, the user needs to perform operations before refreshing.
参数设置信息包括通讯协议要求的参数量命令信息,通过参数设置信息实现对通用段信息、交流段信息、整流段信息等不同子设备段的参数进行分别获取和设置,也可以同时设置相同子设备段的一个或多个参数。The parameter setting information includes the parameter quantity command information required by the communication protocol, and the parameter setting information is used to separately obtain and set parameters of different sub-device segments such as general segment information, AC segment information, and rectifier segment information, and the same sub-device can also be set at the same time. One or more parameters of the segment.
监控平台通过导入协议文件信息读取通信电源设备所对应的通讯协议,并进行解析处理,转换成可识别的指令信息。The monitoring platform reads the communication protocol corresponding to the communication power device by importing the protocol file information, and performs parsing processing to convert it into identifiable instruction information.
监控平台通过语言设置信息进行中、英文语言操作系统安装环境的切换,在中文的WINDOWS(WIN7/WIN8)操作系统上为中文操作环境;在英文的WINDOWS操作系统上为英文操作环境。在中文操作系统上能够切换为英文界面。在英文操作系统上能够切换为中文界面。The monitoring platform switches the Chinese and English language operating system installation environment through language setting information. It is a Chinese operating environment on the Chinese WINDOWS (WIN7/WIN8) operating system; it is an English operating environment in the English WINDOWS operating system. It can be switched to the English interface on the Chinese operating system. Switch to Chinese interface on English operating system.
监控平台通过串口配置信息实现进行串口RS232通讯功能,完成底层通讯串口配置,包括串口号、波特率、校验位、停止位和数据位,能够设 置串口及波特率。The monitoring platform realizes the serial port RS232 communication function through the serial port configuration information, and completes the underlying communication serial port configuration, including the serial port number, baud rate, parity bit, stop bit and data bit, and can be set. Set the serial port and baud rate.
历史数据信息包括通讯协议要求的所有历史记录,主要包括历史数据和历史告警信息,监控平台按照EXCEL格式下载历史数据信息并保存在本地PC。The historical data information includes all historical records required by the communication protocol, mainly including historical data and historical alarm information, and the monitoring platform downloads historical data information according to the EXCEL format and saves it on the local PC.
监控平台通过显示通讯帧信息进行串口通讯协议的数据交互,为用户提供详细的串口通讯帧发送数据包和接收数据包,并可以用txt文本文件形式导出该数据到本地进行查看,也可以及时清除窗口通讯帧数据包信息。The monitoring platform performs data exchange of the serial communication protocol by displaying the communication frame information, provides the user with a detailed serial communication frame to send the data packet and receive the data packet, and can export the data to the local for viewing in the form of a txt text file, or can be cleared in time. Window communication frame packet information.
需要说明的是,在显示界面上显示相应的内容之前,还提供了一种显示界面语言切换的方法,如图3所示,包括:It should be noted that before displaying the corresponding content on the display interface, a method for displaying interface language switching is also provided, as shown in FIG. 3, including:
步骤301、生成语言切换配置文件。Step 301: Generate a language switching configuration file.
其中,语言切换配置文件可以包括中英文切换配置文件、中法文切换配置文件、英法文切换配置文件等等。本发明实施例中的语言切换配置文件以中英文切换配置文件为例进行阐述。根据通信电源设备的通讯协议中需要显示的所有中文信息以及其对应的英文翻译存放在命名为Chinese-English Switch.xls的表格中,生成中英文切换配置文件。中英文切换配置文件中的中文信息及对应的英文翻译可以尽可能全面覆盖通信电源设备常用的通讯协议中所有的数据名称,使本发明实施例的监控平台可以使用中英文界面支持通信电源设备的监控。The language switching configuration file may include a Chinese-English switching configuration file, a Chinese-Chinese switching configuration file, an English-French switching configuration file, and the like. The language switching configuration file in the embodiment of the present invention is described by taking the Chinese and English switching configuration files as an example. According to the communication protocol of the communication power supply device, all the Chinese information and its corresponding English translations are stored in a table named Chinese-English Switch.xls, and the Chinese and English switching configuration files are generated. The Chinese information in the Chinese-English switching configuration file and the corresponding English translation can cover all the data names in the communication protocol commonly used by the communication power supply device as much as possible, so that the monitoring platform of the embodiment of the present invention can support the communication power supply device by using the Chinese-English interface. monitor.
步骤302、将语言切换配置文件存放在当前工作目录的完全限定路径下。Step 302: Store the language switching configuration file in a completely qualified path of the current working directory.
其中,实现中英文显示采用的关键技术主要是:泛型字典Dictionary、单例模式、多线程。另外,该监控平台可以实现多语言显示定制需求,仅需修改安装路径下中英文配置表格文件中英文翻译为其它语言,且将相应的监控平台代码中显示界面控件按钮名称text属性进行更改即可,而不用修改其它协议解析和串口数据处理等业务模块代码。 Among them, the key technologies used to achieve Chinese and English display are: generic dictionary Dictionary, singleton mode, multi-threading. In addition, the monitoring platform can realize the multi-language display customization requirement, and only needs to modify the Chinese-English configuration table file in the installation path to translate the Chinese-English translation into other languages, and change the display interface control button name text attribute in the corresponding monitoring platform code. Without modifying the business module code such as other protocol parsing and serial data processing.
将中英文切换配置文件中的中文信息和对应的英文翻译采用泛型字典Dictionary方法进行初始化并存储。采用Dictionary<string,string>来存储中英文切换配置文件信息时,将所有中文信息作为键(Key),对应的英文翻译作为值(Value),而不需要进行任何数据类型转化。具体定义中英文信息Dictionary如下:The Chinese information in the Chinese-English switching configuration file and the corresponding English translation are initialized and stored using the generic dictionary Dictionary method. When Dictionary<string,string> is used to store Chinese and English switching profile information, all Chinese information is used as a key (Key), and the corresponding English translation is used as a value (Value), without any data type conversion. The definition of Chinese and English information Dictionary is as follows:
public Dictionary<String,String>ChinTOEngList=new Dictionary<String,String>()。Public Dictionary<String,String>ChinTOEngList=new Dictionary<String,String>().
采用Dictionary<String,String>具体实现中英文显示的方法为:如果某一串中文字符比如“电池电压”需显示成英文,那么只需要在中英文切换配置文件Chinese-English Switch.xls中添加“电池电压”以及其英文翻译“Batt.Volt.”,并在需要显示“电池电压”为英文处直接使用ChinTOEngList“电池电压”即可。The method of displaying Chinese and English by using Dictionary<String, String> is: If a string of Chinese characters such as "battery voltage" needs to be displayed in English, then only need to add "Chinese-English Switch.xls" in the Chinese-English switch configuration file. "Battery voltage" and its English translation "Batt.Volt.", and you can use ChinTOEngList "battery voltage" directly when you need to display "battery voltage" in English.
步骤303、获取语言确定指令,根据语言确定指令和当前操作系统所支持的语言调用预设的相应语言切换配置文件。Step 303: Acquire a language determination instruction, and invoke a preset corresponding language switching configuration file according to the language determination instruction and a language supported by the current operating system.
获取用户输入的语言确定指令,然后调用相应的切换配置文件,例如当前操作系统支持英文显示,在获取用户输入的中文确定指令之后,需要调用中英文切换配置文件。Obtain the language determination instruction input by the user, and then call the corresponding switching configuration file. For example, the current operating system supports the English display. After obtaining the Chinese determination instruction input by the user, the Chinese and English switching configuration file needs to be called.
需要说明的是,为了满足中文和英文语言自适应环境,即监控平台可根据电脑中/英文操作系统自适应调整为中文或英文界面,在调整时,只需根据在主界面对象构造函数中获取电脑操作系统的类型,然后采用相应的语句代码:C#语句:It should be noted that, in order to meet the Chinese and English language adaptive environment, the monitoring platform can be adaptively adjusted to the Chinese or English interface according to the Chinese/English operating system of the computer, and only needs to be obtained according to the main interface object constructor when adjusting. The type of computer operating system, and then use the corresponding statement code: C# statement:
System.Threading.Thread.CurrentThread.CurrentCulture.ThreeLetterWind owsLanguageName即可,如果该语句为“CHS”或“CHT”,那么当前PC(personal computer,个人计算机)操作系统为中文操作系统,否则认为是英文操作系统,同时采用单例模式单例类变量记录该中英文状态。System.Threading.Thread.CurrentThread.CurrentCulture.ThreeLetterWind owsLanguageName can be, if the statement is "CHS" or "CHT", then the current PC (personal computer, personal computer) operating system is Chinese operating system, otherwise it is considered English operating system At the same time, the single-case mode single-class variable is used to record the Chinese and English status.
单例类变量保存的中英文状态除了根据PC中/英文操作系统获取,也 可以在监控平台可视化语言设置子窗口界面上切换中英文显示,从而改变当前中英文显示状态,进而改变单例类变量的取值,实现在中文操作系统上能够切换为英文界面显示,同样在英文操作系统上能够切换为中文界面显示。The Chinese and English states saved by the singleton class variables are obtained in addition to the PC/English operating system. The Chinese and English display can be switched on the monitoring platform visual language setting sub-window interface, thereby changing the current Chinese and English display state, thereby changing the value of the single-case variable, so that the Chinese interface can be switched to the English interface display, also in English. The operating system can be switched to the Chinese interface display.
步骤304、根据相应语言切换配置文件以及语言确定指令将当前操作系统所支持的语言切换为语言确定指令对应的语言。Step 304: Switch the language supported by the current operating system to the language corresponding to the language determination instruction according to the corresponding language switching configuration file and the language determination instruction.
当获取到的中英文显示状态为英文场景,以需要显示的中文信息为键直接读取Dictionary类型变量ChinTOEngList中对应的英文值进行显示;当获取到的中英文显示状态为中文场景,直接显示根据通讯协议解析的中文信息。When the obtained Chinese and English display status is an English scene, the Chinese information to be displayed is directly used to read the corresponding English value in the Dictionary type variable ChinTOEngList for display; when the obtained Chinese and English display status is Chinese scene, the direct display is based on Chinese information parsed by the communication protocol.
监控平台显示界面上所有与控件相关的显示均根据记录中英文状态单例类变量的取值情况修改控件的Text属性即可,在界面生成的实时数据、实时告警等可视化信息内容的显示是采用Dictionary方法实现对应的中、英文信息的显示。The display related to the control on the display platform of the monitoring platform can modify the Text property of the control according to the value of the single-case variable in the English-Chinese state of the record. The display of the visual information such as real-time data and real-time alarm generated on the interface is adopted. The Dictionary method implements the display of corresponding Chinese and English information.
监控平台提供的实现界面不同语言显示的方法,切换语言界面显示实时性高,实时数据命令信息和实时告警命令信息等信息解析和显示准确及时,证明了实现以不同语言界面显示方法的可行性。The monitoring platform provides a method for displaying interfaces in different languages. The switching language interface displays high real-time performance, and the information analysis and display of real-time data command information and real-time alarm command information are accurate and timely, which proves the feasibility of realizing the display method in different language interfaces.
本发明实施例中,所述监控指令还包括:获取待监控通信电源设备的所有参数信息的第一指令时,如图4所示,该方法还可以包括以下步骤:In the embodiment of the present invention, the monitoring instruction further includes: when acquiring the first instruction of all the parameter information of the communication power supply device to be monitored, as shown in FIG. 4, the method may further include the following steps:
步骤401、提取第一指令中包含的所有的获取参数命令信息,组成获取参数命令信息集合;Step 401: Extract all the acquisition parameter command information included in the first instruction, and form a collection parameter command information set.
步骤402、根据获取参数命令信息集合生成相应的指令信息集合;Step 402: Generate a corresponding instruction information set according to the acquiring parameter command information set.
步骤403、将相应的指令信息集合发送至待监控通信电源设备;Step 403: Send a corresponding instruction information set to the communication power supply device to be monitored.
步骤404、获取待监控通信电源设备根据相应的指令信息集合反馈的响应信息集合中携带的待监控通信电源设备的批量参数信息; Step 404: Obtain batch parameter information of the to-be-monitored communication power device carried in the response information set fed back by the communication power device to be monitored according to the corresponding instruction information set;
步骤405、根据获取的批量参数信息对待监控通信电源设备进行监控。Step 405: Monitor the communication power supply device according to the obtained batch parameter information.
具体为:提取第一指令中包含的所有的获取参数命令信息之后,组成获取参数命令信息集合,然后针对每一获取参数命令信息生成相应的指令信息,组成指令信息集合,然后将指令信息集合发送至待监控通信电源设备,接收待监控通信电源设备根据相应的指令信息集合反馈的响应信息集合中携带的待监控通信电源设备的批量参数信息,根据获取的批量参数信息对待监控通信电源设备进行监控。Specifically, after extracting all the acquisition parameter command information included in the first instruction, composing the acquisition parameter command information set, and then generating corresponding instruction information for each acquisition parameter command information, forming an instruction information set, and then sending the instruction information set The communication power supply device to be monitored receives the batch parameter information of the communication power supply device to be monitored carried in the response information set fed back according to the corresponding instruction information set, and monitors the communication power supply device according to the obtained batch parameter information. .
需要说明的是,在获取待监控通信电源设备根据相应的指令信息集合反馈的响应信息集合中携带的待监控通信电源设备的批量参数信息之后,如图5所示,该方法还包括:It is to be noted that after obtaining the batch parameter information of the to-be-monitored communication power supply device carried in the response information set that is to be monitored by the communication power supply device to be monitored according to the corresponding instruction information set, as shown in FIG. 5, the method further includes:
步骤501、将预先获取的第一参数信息与批量参数信息进行比较;Step 501: Compare the first parameter information acquired in advance with the batch parameter information.
步骤502、当第一参数信息与批量参数信息中存在不同的参数时,根据第一参数信息对批量参数信息进行更改,并将更改后的批量参数信息导入待监控通信电源设备;Step 502: When there are different parameters in the first parameter information and the batch parameter information, the batch parameter information is changed according to the first parameter information, and the changed batch parameter information is imported into the communication power supply device to be monitored;
步骤503、根据导入待监控通信电源设备的批量参数信息,对待监控通信电源设备进行参数配置并实时监控。Step 503: Perform parameter configuration and real-time monitoring on the communication power supply device to be monitored according to the batch parameter information of the communication power supply device to be monitored.
具体的,将待监控通信电源设备反馈的批量参数信息存于List类型结构体变量V1中,将获取的第一参数信息存于List类型结构体变量V2中,比较结构体变量V1和V2中各个参数当前值是否相等。其中第一参数信息为用户需求的参数信息。Specifically, the batch parameter information fed back by the communication power supply device to be monitored is stored in the List type structure variable V1, and the obtained first parameter information is stored in the List type structure variable V2, and each of the structural variable variables V1 and V2 is compared. Whether the current value of the parameter is equal. The first parameter information is parameter information required by the user.
当V1和V2中各个参数当前值相等时,将结构体变量V1中的信息进行保存,根据结构体变量V1中的信息生成监控信息。当V1和V2中各个参数当前值不相等时,根据V2中参数当前值对结构体变量V1中的批量参数信息进行更改,将更改后的结构体变量V1中的批量参数信息进行保存,并将更改后的结构体变量V1中的批量参数信息发送至待监控通信电源设 备,实现更改后的结构体变量V1中的批量参数信息导入待监控通信电源设备,根据导入待监控通信电源设备的批量参数信息,即监控平台保存的批量参数信息,对待监控通信电源设备进行参数配置并实时监控,生成监控信息。When the current values of the respective parameters in V1 and V2 are equal, the information in the structure variable V1 is saved, and the monitoring information is generated based on the information in the structure variable V1. When the current values of the respective parameters in V1 and V2 are not equal, the batch parameter information in the structure variable V1 is changed according to the current value of the parameter in V2, and the batch parameter information in the changed structure variable V1 is saved, and The batch parameter information in the changed structure variable V1 is sent to the communication power supply to be monitored. The batch parameter information in the modified structure variable V1 is imported into the communication power supply device to be monitored, and the parameters of the communication power supply device to be monitored are determined according to the batch parameter information of the communication power supply device to be monitored, that is, the batch parameter information saved by the monitoring platform. Configure and monitor in real time to generate monitoring information.
监控平台可以实现通信电源设备所有参数的快速导入导出,能够将通信电源设备的全部参数信息导出生成EXCEL表格文件,存储于电脑中;能够将电脑中的参数配置EXCEL表格文件导入到通信电源设备中,方便用户快速完成参数的批量配置。The monitoring platform can realize the rapid import and export of all parameters of the communication power supply device, and can export all the parameter information of the communication power supply device to generate an EXCEL form file, which can be stored in the computer; and can import the parameter configuration EXCEL form file in the computer into the communication power supply device. It is convenient for users to quickly complete batch configuration of parameters.
需要说明的是,在对待监控通信电源设备进行监控时,产生的监控信息通过显示界面告知用户,用户根据显示界面获得相应的监控信息。其中,在显示界面上设置有不同的菜单选项,用户根据需求点击相应的选项。当用户需要查看通信电源设备的历史数据信息时,通过主界面下子菜单选择相应的选项,进入历史记录下载流程。It should be noted that, when monitoring the communication power supply device to be monitored, the generated monitoring information is notified to the user through the display interface, and the user obtains corresponding monitoring information according to the display interface. Among them, different menu options are set on the display interface, and the user clicks the corresponding option according to the requirement. When the user needs to view the historical data information of the communication power device, select the corresponding option through the submenu of the main interface to enter the history downloading process.
其中监控平台包括一UI线程单元,负责各个功能应用的显示和相应的调度工作,提供了功能菜单布局、实时信息、实时告警、参数设置、遥控、历史记录、自动刷新设置、串口配置和拓扑结构等界面显示,通过此界面也可以进入其他功能界面,且进行界面整合和美化设计,提升监控平台的交互性和易用性。The monitoring platform includes a UI thread unit, which is responsible for display and corresponding scheduling of various function applications, and provides function menu layout, real-time information, real-time alarm, parameter setting, remote control, history, automatic refresh setting, serial port configuration and topology. Such interface display, through this interface can also enter other functional interfaces, and interface integration and beautification design, improve the interactive and easy to use monitoring platform.
且UI线程单元创建命令子线程,通过该命令子线程可以发送实时数据命令信息、实时数据刷新命令信息、控制命令信息、实时告警命令信息、实时告警刷新命令信息、参数设置命令信息。The UI thread unit creates a command sub-thread, and the sub-thread can send real-time data command information, real-time data refresh command information, control command information, real-time alarm command information, real-time alarm refresh command information, and parameter setting command information.
需要补充的是,当进行中英文界面切换时,可以通过命令子线程更新监控平台的显示界面所有信息为需要显示的语言状态。It should be added that when the Chinese-English interface is switched, all the information of the display interface of the monitoring platform can be updated by the command sub-thread to the language state to be displayed.
其中,监控平台显示界面的功能菜单模块主要包括文件、设置、功能等子菜单。文件子菜单包括导入协议文件、导入参数文件、导出参数文件, 其功能是导入和解析多种不同通讯协议文件,批量完成当前所监控的通信电源设备的所有参数导入和导出。The function menu module of the monitoring platform display interface mainly includes submenus such as files, settings, functions, and the like. The file submenu includes import protocol files, import parameter files, and export parameter files. Its function is to import and parse a variety of different communication protocol files, and batch import and export all parameters of the currently monitored communication power supply device.
设置子菜单可用于控制RS232串口数据通讯,同时可以使得监控平台的显示界面实现语言的切换,以不同语言进行显示,即在不改动软件的情况下通过更改监控平台安装包的语言切换配置文件即可实现不同协议所有数据内容的不同语言的显示。The setting submenu can be used to control the RS232 serial port data communication, and at the same time, the display interface of the monitoring platform can be switched between languages and displayed in different languages, that is, the configuration file is switched by changing the language of the monitoring platform installation package without changing the software. Display of different languages for all data content of different protocols.
功能子菜单用于实时显示当前待监控通信电源设备和监控平台串口通讯交互的所有数据帧信息,并保存该通讯帧数据信息到本地。还可用于下载并保存待监控通信电源设备所有历史数据信息和历史告警信息。The function submenu is used to display all data frame information of the serial communication communication between the communication power supply device to be monitored and the monitoring platform in real time, and save the communication frame data information to the local. It can also be used to download and save all historical data information and historical alarm information of the communication power supply to be monitored.
本发明实施例二,提取与不同通信电源设备之间预先建立的不同格式的通讯协议中的以命令名称进行区别的所有命令信息;监测到显示界面上对待监控通信电源设备的监控指令时,向待监控通信电源设备发送根据监控指令生成的指令信息,其中监控指令中包括相应的命令名称,获取待监控通信电源设备根据指令信息反馈的响应信息中携带的待监控通信电源设备的数据信息,对待监控通信电源设备进行监控。本方案可支持多种后台通讯协议,节省后台软件开发和调试时间,提高了后台通讯协议解析的灵活性,为远程后台监控和操作通信电源系统提供了便利,且该方案中通信电源设备无需配置液晶显示,降低了通信电源设备的硬件成本。In the second embodiment of the present invention, all the command information distinguished by the command name in the communication protocol of different formats pre-established between different communication power supply devices is extracted; when the monitoring instruction of the communication power supply device to be monitored is displayed on the display interface, The communication power supply device to be monitored sends the instruction information generated according to the monitoring instruction, wherein the monitoring instruction includes the corresponding command name, and obtains the data information of the communication power supply device to be monitored carried in the response information fed back by the communication power supply device to be monitored according to the instruction information, and treats Monitor communication power supplies for monitoring. The solution can support multiple background communication protocols, save background software development and debugging time, improve the flexibility of background communication protocol parsing, and provide convenience for remote background monitoring and operation of communication power system, and the communication power supply device does not need to be configured in this solution. The liquid crystal display reduces the hardware cost of the communication power supply device.
实施例三Embodiment 3
本发明实施例三提供一种通信电源设备的监控装置,如图6所示包括:Embodiment 3 of the present invention provides a monitoring device for a communication power supply device, as shown in FIG.
提取模块10,配置为提取与通信电源设备之间的通讯协议中的所有命令信息,其中一通讯协议中包括多个以命令名称进行区别的命令信息;The extraction module 10 is configured to extract all the command information in the communication protocol with the communication power device, where the communication protocol includes a plurality of command information distinguished by the command name;
监测发送模块20,配置为接收对所述通信电源设备进行监控的监控指令,其中所述监控指令包括与所述通信电源设备之间的通讯协议中的一命令信息的命令名称; The monitoring sending module 20 is configured to receive a monitoring instruction for monitoring the communication power device, wherein the monitoring command includes a command name of a command information in a communication protocol with the communication power device;
基于所述监控指令生成指令信息,发送所述指令信息至所述通信电源设备;Generating the instruction information based on the monitoring instruction, and transmitting the instruction information to the communication power supply device;
监控模块30,配置为获取所述通信电源设备根据指令信息反馈的响应信息,基于所述响应信息对所述通信电源设备进行监控。The monitoring module 30 is configured to acquire response information fed back by the communication power device according to the instruction information, and monitor the communication power device based on the response information.
在一具体实施方式中,如图7所示,提取模块10包括:In a specific embodiment, as shown in FIG. 7, the extraction module 10 includes:
导入子模块11,配置为导入与所述通信电源设备之间的相应格式的通讯协议;Importing the sub-module 11 configured to import a communication protocol in a corresponding format with the communication power supply device;
第一提取子模块12,配置为对所述通讯协议进行解析,提取所述通讯协议中所有的命令信息。The first extraction sub-module 12 is configured to parse the communication protocol and extract all the command information in the communication protocol.
在一具体实施方式中,监测发送模块20包括:In a specific implementation, the monitoring and transmitting module 20 includes:
处理子模块21,配置为监测到显示界面上显示的与所述通信电源设备之间的通讯协议中的所有命令信息的命令名称中的任一个被选择时,根据该命令名称生成监控指令。The processing sub-module 21 is configured to generate a monitoring instruction according to the command name when it is configured to monitor any one of the command names of all the command information in the communication protocol displayed on the display interface with the communication power supply device.
在一具体实施方式中,监测发送模块20包括:In a specific implementation, the monitoring and transmitting module 20 includes:
第一获取子模块22,配置为获取监控指令中的命令名称对应的命令信息;The first obtaining submodule 22 is configured to acquire command information corresponding to the command name in the monitoring instruction;
第一生成子模块23,配置为根据获取的命令信息生成指令信息;The first generation submodule 23 is configured to generate instruction information according to the acquired command information;
第一发送子模块24,配置为将指令信息发送至所述通信电源设备。The first sending submodule 24 is configured to send the command information to the communication power device.
在一具体实施方式中,监控指令还包括:获取所述通信电源设备的所有参数信息的第一指令,则监测发送模块20包括:In a specific implementation, the monitoring instruction further includes: obtaining a first instruction of all parameter information of the communication power device, and the monitoring sending module 20 includes:
第二提取子模块25,配置为提取第一指令中包含的所有的获取参数命令信息,组成获取参数命令信息集合;The second extraction sub-module 25 is configured to extract all the acquisition parameter command information included in the first instruction, and compose the acquisition parameter command information set;
第二生成子模块26,配置为根据获取参数命令信息集合生成相应的指令信息集合;The second generation sub-module 26 is configured to generate a corresponding instruction information set according to the acquisition parameter command information set;
第二发送子模块27,配置为将相应的指令信息集合发送至所述通信电 源设备。a second sending submodule 27 configured to send a corresponding instruction information set to the communication power Source device.
在一具体实施方式中,监控模块30包括:In a specific implementation, the monitoring module 30 includes:
第二获取子模块31,配置为获取待监控通信电源设备根据相应的指令信息集合反馈的响应信息集合中携带的待监控通信电源设备的批量参数信息;The second obtaining sub-module 31 is configured to acquire batch parameter information of the to-be-monitored communication power device carried in the response information set fed back by the communication power device to be monitored according to the corresponding instruction information set;
第一监控子模块32,配置为根据获取的批量参数信息对所述通信电源设备进行监控。The first monitoring submodule 32 is configured to monitor the communication power device according to the obtained batch parameter information.
在一具体实施方式中,监控模块30还包括:In a specific implementation, the monitoring module 30 further includes:
比较子模块33,配置为在第二获取子模块31获取待监控通信电源设备根据相应的指令信息集合反馈的响应信息集合中携带的待监控通信电源设备的批量参数信息之后,将预先获取的第一参数信息与批量参数信息进行比较;The comparison sub-module 33 is configured to: after the second acquisition sub-module 31 acquires the batch parameter information of the to-be-monitored communication power supply device carried in the response information set fed back by the communication power supply device to be monitored according to the corresponding instruction information set, the pre-acquired A parameter information is compared with batch parameter information;
更改子模块34,配置为当第一参数信息与批量参数信息中存在不同的参数时,根据第一参数信息对批量参数信息进行更改,并将更改后的批量参数信息导入所述通信电源设备;The change sub-module 34 is configured to: when the first parameter information and the batch parameter information have different parameters, modify the batch parameter information according to the first parameter information, and import the changed batch parameter information into the communication power device;
第二监控子模块35,配置为根据导入待监控通信电源设备的批量参数信息,对所述通信电源设备进行参数配置并实时监控。The second monitoring sub-module 35 is configured to perform parameter configuration and real-time monitoring on the communication power device according to the batch parameter information of the communication power device to be monitored.
在一具体实施方式中,在显示界面上显示的内容以当前操作系统所支持的语言进行显示,且该装置还包括:In a specific implementation, the content displayed on the display interface is displayed in a language supported by the current operating system, and the device further includes:
调用模块40,配置为在提取模块10提取与通信电源设备之间的通讯协议中的所有命令信息之前,获取语言确定指令,根据语言确定指令和当前操作系统所支持的语言调用预设的相应语言切换配置文件;The calling module 40 is configured to acquire a language determining instruction before the extraction module 10 extracts all the command information in the communication protocol with the communication power source device, and invoke the preset corresponding language according to the language determining instruction and the language supported by the current operating system. Switch configuration files;
切换模块50,配置为根据相应语言切换配置文件以及语言确定指令将当前操作系统所支持的语言切换为语言确定指令对应的语言。The switching module 50 is configured to switch the language supported by the current operating system to the language corresponding to the language determining instruction according to the corresponding language switching configuration file and the language determining instruction.
本发明实施例,通过上述模块提取与不同通信电源设备之间预先建立 的不同格式的通讯协议中的以命令名称进行区别的所有命令信息;监测到显示界面上对待监控通信电源设备的监控指令时,向待监控通信电源设备发送根据监控指令生成的指令信息,其中监控指令中包括相应的命令名称,获取待监控通信电源设备根据指令信息反馈的响应信息中携带的待监控通信电源设备的数据信息,对待监控通信电源设备进行监控。本方案可支持多种后台通讯协议,节省后台软件开发和调试时间,提高了后台通讯协议解析的灵活性,为远程后台监控和操作通信电源系统提供了便利,且该方案中通信电源设备无需配置液晶显示,降低了通信电源设备的硬件成本。In the embodiment of the present invention, the module is extracted and pre-established with different communication power devices. All command information in the communication protocol of different formats is distinguished by the command name; when monitoring the monitoring command of the communication power supply device to be monitored on the display interface, the command information generated according to the monitoring instruction is sent to the communication power supply device to be monitored, wherein the monitoring information is generated. The command includes a corresponding command name, and obtains data information of the communication power supply device to be monitored carried in the response information fed back by the communication power supply device to be monitored according to the instruction information, and monitors the communication power supply device to be monitored. The solution can support multiple background communication protocols, save background software development and debugging time, improve the flexibility of background communication protocol parsing, and provide convenience for remote background monitoring and operation of communication power system, and the communication power supply device does not need to be configured in this solution. The liquid crystal display reduces the hardware cost of the communication power supply device.
需要说明的是,本发明实施例提供的对通信电源设备进行后台监控的装置是应用上述方法的装置,则上述方法的所有实施例均适用于该装置,且均能达到相同或相似的有益效果。It should be noted that, the device for performing background monitoring on the communication power supply device provided by the embodiment of the present invention is a device applying the foregoing method, and all embodiments of the foregoing method are applicable to the device, and all of the same or similar beneficial effects can be achieved. .
本发明实施例中提出的通信电源设备的监控装置中的提取模块10、监测发送模块20、监控模块30、调用模块40和切换模块50执行的功能都可以通过处理器来实现,当然也可通过具体的逻辑电路实现;其中所述处理器可以是服务器上的处理器,在实际应用中,处理器可以为中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)或现场可编程门阵列(FPGA)等。The functions performed by the extraction module 10, the monitoring and transmitting module 20, the monitoring module 30, the calling module 40, and the switching module 50 in the monitoring device of the communication power supply device proposed in the embodiment of the present invention can be implemented by a processor, and of course The specific logic circuit is implemented; wherein the processor may be a processor on a server, and in practical applications, the processor may be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or Field programmable gate array (FPGA), etc.
本发明实施例中,如果以软件功能模块的形式实现上述通信电源设备的监控方法,并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read Only Memory,ROM)、磁碟或者光盘等各种可以存储程序 代码的介质。这样,本发明实施例不限制于任何特定的硬件和软件结合。In the embodiment of the present invention, if the monitoring method of the communication power supply device is implemented in the form of a software function module and sold or used as a stand-alone product, it may also be stored in a computer readable storage medium. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. A computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk, and the like. The medium of the code. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
相应地,本发明实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机程序,该计算机程序用于执行本发明实施例的上述通信电源设备的监控方法。Correspondingly, the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a computer program, and the computer program is used to execute the monitoring method of the communication power supply device according to the embodiment of the present invention.
以上是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。 The above is a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make a number of improvements and retouchings without departing from the principles of the present invention. These improvements and retouchings should also be considered as The scope of protection of the invention.

Claims (17)

  1. 一种通信电源设备的监控方法,所述方法包括:A method for monitoring a communication power supply device, the method comprising:
    提取与通信电源设备之间的通讯协议中的所有命令信息,其中所述通讯协议中包括多个以命令名称进行区别的命令信息;Extracting all command information in a communication protocol with the communication power device, wherein the communication protocol includes a plurality of command information distinguished by a command name;
    接收对所述通信电源设备进行监控的监控指令,其中所述监控指令包括与所述通信电源设备之间的通讯协议中的一命令信息的命令名称;Receiving a monitoring instruction for monitoring the communication power supply device, wherein the monitoring instruction includes a command name of a command information in a communication protocol with the communication power supply device;
    基于所述监控指令生成指令信息,发送所述指令信息至所述通信电源设备;Generating the instruction information based on the monitoring instruction, and transmitting the instruction information to the communication power supply device;
    获取所述通信电源设备根据所述指令信息反馈的响应信息,基于所述响应信息对所述通信电源设备进行监控。Acquiring the response information fed back by the communication power device according to the instruction information, and monitoring the communication power device based on the response information.
  2. 根据权利要求1所述的方法,其中,所述提取与通信电源设备之间的通讯协议中的所有命令信息,包括:The method of claim 1, wherein the extracting all command information in a communication protocol with the communication power device comprises:
    导入与所述通信电源设备之间的相应格式的通讯协议;Importing a communication protocol in a corresponding format with the communication power supply device;
    对所述通讯协议进行解析,提取所述通讯协议中所有的命令信息。Parsing the communication protocol and extracting all command information in the communication protocol.
  3. 根据权利要求1所述的方法,其中,所述接收对所述通信电源设备进行监控的监控指令,包括:The method of claim 1, wherein the receiving the monitoring instruction for monitoring the communication power device comprises:
    监测到显示界面上显示的与所述通信电源设备之间的通讯协议中的所有命令信息的命令名称中的任一个被选择时,根据该命令名称生成所述监控指令。When any one of the command names of all the command information in the communication protocol displayed on the display interface with the communication power source device is selected, the monitoring command is generated according to the command name.
  4. 根据权利要求1所述的方法,其中,所述基于所述监控指令生成指令信息,发送所述指令信息至所述通信电源设备,包括:The method of claim 1, wherein the generating the instruction information based on the monitoring instruction to send the instruction information to the communication power device comprises:
    获取所述监控指令中的命令名称对应的命令信息;Obtaining command information corresponding to the command name in the monitoring instruction;
    根据获取的命令信息生成所述指令信息;Generating the instruction information according to the obtained command information;
    将所述指令信息发送至所述通信电源设备。The instruction information is transmitted to the communication power supply device.
  5. 根据权利要求1所述的方法,其中,所述监控指令还包括:获取所 述通信电源设备的所有参数信息的第一指令;The method of claim 1, wherein the monitoring instruction further comprises: acquiring the location a first instruction for all parameter information of the communication power device;
    相应的,所述基于所述监控指令生成指令信息,发送所述指令信息至所述通信电源设备,包括:Correspondingly, the generating the instruction information based on the monitoring instruction, and sending the instruction information to the communication power device, includes:
    提取所述第一指令中包含的所有的获取参数命令信息,组成获取参数命令信息集合;Extracting all the acquisition parameter command information included in the first instruction to form a collection parameter command information set;
    根据获取参数命令信息集合生成相应的指令信息集合;Generating a corresponding instruction information set according to the acquisition parameter command information set;
    将相应的指令信息集合发送至所述通信电源设备。A corresponding set of instruction information is sent to the communication power device.
  6. 根据权利要求5所述的方法,其中,所述获取所述通信电源设备根据所述指令信息反馈的响应信息,基于所述响应消息对所述通信电源设备进行监控,包括:The method of claim 5, wherein the obtaining, by the communication power device, the monitoring of the communication power device based on the response message according to the response information fed back by the instruction information comprises:
    获取所述通信电源设备根据相应的指令信息集合反馈的响应信息集合中携带的所述通信电源设备的批量参数信息;Obtaining batch parameter information of the communication power device carried in the response information set fed back by the communication power device according to the corresponding instruction information set;
    根据获取的所述批量参数信息对所述通信电源设备进行监控。And monitoring the communication power device according to the obtained batch parameter information.
  7. 根据权利要求6所述的方法,其中,所述获取所述通信电源设备根据相应的指令信息集合反馈的响应信息集合中携带的所述通信电源设备的批量参数信息之后,所述方法还包括:The method of claim 6, wherein the method further comprises: after acquiring the batch parameter information of the communication power device carried in the response information set fed back by the communication power device according to the corresponding instruction information set, the method further comprising:
    将预先获取的第一参数信息与所述批量参数信息进行比较;Comparing the pre-acquired first parameter information with the batch parameter information;
    当所述第一参数信息与所述批量参数信息中存在不同的参数时,根据所述第一参数信息对所述批量参数信息进行更改,并将更改后的所述批量参数信息导入所述通信电源设备;When the first parameter information and the batch parameter information have different parameters, the batch parameter information is changed according to the first parameter information, and the changed batch parameter information is imported into the communication. Power supply equipment;
    根据导入所述通信电源设备的批量参数信息,对所述通信电源设备进行参数配置并实时监控。According to the batch parameter information imported into the communication power device, the communication power device is configured with parameters and monitored in real time.
  8. 根据权利要求1所述的方法,其中,所述提取与通信电源设备之间的通讯协议中的所有命令信息之前,所述方法还包括:The method of claim 1, wherein before the extracting all of the command information in the communication protocol with the communication power supply device, the method further comprises:
    获取语言确定指令,根据所述语言确定指令和当前操作系统所支持的 语言调用预设的相应语言切换配置文件;Acquiring a language determination instruction, determining instructions according to the language and supported by the current operating system The language calls the preset corresponding language switching configuration file;
    根据相应语言切换配置文件以及所述语言确定指令将当前操作系统所支持的语言切换为所述语言确定指令对应的语言。Switching the configuration file according to the corresponding language and the language determination instruction switch the language supported by the current operating system to the language corresponding to the language determination instruction.
  9. 一种通信电源设备的监控装置,所述装置包括:A monitoring device for a communication power supply device, the device comprising:
    提取模块,配置为提取与通信电源设备之间的通讯协议中的所有命令信息,其中一通讯协议中包括多个以命令名称进行区别的命令信息;An extraction module configured to extract all command information in a communication protocol with the communication power device, where the communication protocol includes a plurality of command information distinguished by the command name;
    监测发送模块,配置为接收对所述通信电源设备进行监控的监控指令,其中所述监控指令包括与所述通信电源设备之间的通讯协议中的一命令信息的命令名称;Monitoring a sending module, configured to receive a monitoring instruction for monitoring the communication power device, wherein the monitoring command includes a command name of a command information in a communication protocol with the communication power device;
    基于所述监控指令生成指令信息,发送所述指令信息至所述通信电源设备;Generating the instruction information based on the monitoring instruction, and transmitting the instruction information to the communication power supply device;
    监控模块,配置为获取所述通信电源设备根据所述指令信息反馈的响应信息,基于所述响应信息对所述通信电源设备进行监控。The monitoring module is configured to obtain response information fed back by the communication power device according to the instruction information, and monitor the communication power device based on the response information.
  10. 根据权利要求9所述的装置,其中,所述提取模块包括:The apparatus of claim 9, wherein the extraction module comprises:
    导入子模块,配置为导入与所述通信电源设备之间的相应格式的通讯协议;Importing a submodule configured to import a communication protocol in a corresponding format with the communication power device;
    第一提取子模块,配置为对所述通讯协议进行解析,提取所述通讯协议中所有的命令信息。The first extraction submodule is configured to parse the communication protocol and extract all command information in the communication protocol.
  11. 根据权利要求9所述的装置,其中,所述监测发送模块包括:The apparatus of claim 9, wherein the monitoring and transmitting module comprises:
    处理子模块,配置为监测到显示界面上显示的与所述通信电源设备之间的通讯协议中的所有命令信息的命令名称中的任一个被选择时,根据该命令名称生成所述监控指令。The processing submodule is configured to generate the monitoring instruction according to the command name when any one of the command names configured to monitor all the command information in the communication protocol displayed on the display interface with the communication power device is selected.
  12. 根据权利要求9所述的装置,其中,所述监测发送模块包括:The apparatus of claim 9, wherein the monitoring and transmitting module comprises:
    第一获取子模块,配置为获取所述监控指令中的命令名称对应的命令信息; The first obtaining submodule is configured to acquire command information corresponding to the command name in the monitoring instruction;
    第一生成子模块,配置为根据获取的命令信息生成所述指令信息;a first generation submodule configured to generate the instruction information according to the obtained command information;
    第一发送子模块,配置为将所述指令信息发送至所述通信电源设备。The first sending submodule is configured to send the instruction information to the communication power device.
  13. 根据权利要求9所述的装置,其中,所述监控指令还包括:获取所述通信电源设备的所有参数信息的第一指令;The apparatus according to claim 9, wherein the monitoring instruction further comprises: a first instruction to acquire all parameter information of the communication power supply device;
    相应的,所述监测发送模块包括:Correspondingly, the monitoring and sending module comprises:
    第二提取子模块,配置为提取所述第一指令中包含的所有的获取参数命令信息,组成获取参数命令信息集合;The second extraction submodule is configured to extract all the acquisition parameter command information included in the first instruction, and form a collection parameter command information set;
    第二生成子模块,配置为根据获取参数命令信息集合生成相应的指令信息集合;a second generation submodule configured to generate a corresponding instruction information set according to the acquisition parameter command information set;
    第二发送子模块,配置为将相应的指令信息集合发送至所述通信电源设备。And a second sending submodule configured to send the corresponding instruction information set to the communication power device.
  14. 根据权利要求13所述的装置,其中,所述监控模块包括:The apparatus of claim 13 wherein said monitoring module comprises:
    第二获取子模块,配置为获取所述通信电源设备根据相应的指令信息集合反馈的响应信息集合中携带的所述通信电源设备的批量参数信息;a second obtaining sub-module configured to acquire batch parameter information of the communication power device carried in the response information set fed back by the communication power device according to the corresponding instruction information set;
    第一监控子模块,配置为根据获取的所述批量参数信息对所述通信电源设备进行监控。The first monitoring submodule is configured to monitor the communication power device according to the obtained batch parameter information.
  15. 根据权利要求14所述的装置,其中,所述监控模块还包括:The device of claim 14, wherein the monitoring module further comprises:
    比较子模块,配置为将预先获取的第一参数信息与所述批量参数信息进行比较;Comparing the submodule, configured to compare the pre-acquired first parameter information with the batch parameter information;
    更改子模块,配置为当所述第一参数信息与所述批量参数信息中存在不同的参数时,根据所述第一参数信息对所述批量参数信息进行更改,并将更改后的所述批量参数信息导入所述通信电源设备;Changing the sub-module, configured to: when the first parameter information and the batch parameter information have different parameters, modify the batch parameter information according to the first parameter information, and change the batch Parameter information is imported into the communication power supply device;
    第二监控子模块,配置为根据导入所述通信电源设备的批量参数信息,对所述通信电源设备进行参数配置并实时监控。The second monitoring submodule is configured to perform parameter configuration and real-time monitoring on the communication power device according to the batch parameter information that is imported into the communication power device.
  16. 根据权利要求9所述的装置,其中,所述装置还包括: The apparatus of claim 9 wherein said apparatus further comprises:
    调用模块,配置为在提取与通信电源设备之间的通讯协议中的所有命令信息之前,获取语言确定指令,根据所述语言确定指令和当前操作系统所支持的语言调用预设的相应语言切换配置文件;The calling module is configured to acquire a language determining instruction according to the language determining instruction and a language supported by the current operating system to preset a corresponding language switching configuration before extracting all command information in the communication protocol between the communication power device and the communication power device file;
    切换模块,配置为根据相应语言切换配置文件以及所述语言确定指令将当前操作系统所支持的语言切换为所述语言确定指令对应的语言。And a switching module configured to switch the configuration file according to the corresponding language and the language determining instruction to switch the language supported by the current operating system to a language corresponding to the language determining instruction.
  17. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行权利要求1至8任一项所述的通信电源设备的监控方法。 A computer storage medium storing computer executable instructions for performing the monitoring method of the communication power supply device according to any one of claims 1 to 8.
PCT/CN2017/077474 2016-05-10 2017-03-21 Method and apparatus for monitoring communication power supply device, and storage medium WO2017193705A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610303448.X 2016-05-10
CN201610303448.XA CN107360049B (en) 2016-05-10 2016-05-10 Method and device for carrying out background monitoring on communication power supply equipment

Publications (1)

Publication Number Publication Date
WO2017193705A1 true WO2017193705A1 (en) 2017-11-16

Family

ID=60266009

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/077474 WO2017193705A1 (en) 2016-05-10 2017-03-21 Method and apparatus for monitoring communication power supply device, and storage medium

Country Status (2)

Country Link
CN (1) CN107360049B (en)
WO (1) WO2017193705A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110196810A (en) * 2019-05-30 2019-09-03 浪潮商用机器有限公司 A kind of information collecting device and method
CN110769448A (en) * 2019-11-01 2020-02-07 天津中新智冠信息技术有限公司 Monitoring method, monitoring device and monitoring system
CN111241020A (en) * 2019-12-31 2020-06-05 广州展讯信息科技有限公司 Serial port switching device and method based on FPGA and storage medium
CN112235346A (en) * 2020-09-11 2021-01-15 华帝股份有限公司 Data communication method and system based on serial port connection

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110264294A1 (en) * 2010-04-27 2011-10-27 Hon Hai Precision Industry Co., Ltd. Set-top box and energy management method
CN103279076A (en) * 2013-04-24 2013-09-04 深圳市生波尔机电设备有限公司 Text language-based power supply control method and device
CN104507101A (en) * 2014-12-11 2015-04-08 华侨大学 Test platform for network communication protocol of heterogeneous wireless sensor and test method of test platform
CN105281930A (en) * 2014-06-09 2016-01-27 中兴通讯股份有限公司 Embedded monitoring equipment management method and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101854522B (en) * 2010-05-06 2012-02-22 福建鑫诺通讯技术有限公司 Home wireless intelligent monitoring method
US8872700B2 (en) * 2011-04-06 2014-10-28 Javad Gnss, Inc. GNSS surveying receiver with multiple RTK engines
CN102323806B (en) * 2011-07-08 2012-12-19 中冶南方(武汉)自动化有限公司 Inverter monitoring platform and monitoring method thereof
CN102880124B (en) * 2012-09-07 2016-05-11 上海华兴数字科技有限公司 A kind of controller data monitoring system and method and excavator
CN104731477A (en) * 2015-03-24 2015-06-24 上海富士施乐有限公司 Copying machine parameter adjusting method
CN105488985B (en) * 2015-12-29 2021-01-26 国网浙江省电力公司湖州供电公司 Low-voltage acquisition terminal supporting object-oriented communication protocol

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110264294A1 (en) * 2010-04-27 2011-10-27 Hon Hai Precision Industry Co., Ltd. Set-top box and energy management method
CN103279076A (en) * 2013-04-24 2013-09-04 深圳市生波尔机电设备有限公司 Text language-based power supply control method and device
CN105281930A (en) * 2014-06-09 2016-01-27 中兴通讯股份有限公司 Embedded monitoring equipment management method and system
CN104507101A (en) * 2014-12-11 2015-04-08 华侨大学 Test platform for network communication protocol of heterogeneous wireless sensor and test method of test platform

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110196810A (en) * 2019-05-30 2019-09-03 浪潮商用机器有限公司 A kind of information collecting device and method
CN110769448A (en) * 2019-11-01 2020-02-07 天津中新智冠信息技术有限公司 Monitoring method, monitoring device and monitoring system
CN110769448B (en) * 2019-11-01 2023-03-31 天津中新智冠信息技术有限公司 Monitoring method, monitoring device and monitoring system
CN111241020A (en) * 2019-12-31 2020-06-05 广州展讯信息科技有限公司 Serial port switching device and method based on FPGA and storage medium
CN111241020B (en) * 2019-12-31 2022-04-22 广州展讯信息科技有限公司 Serial port switching device and method based on FPGA and storage medium
CN112235346A (en) * 2020-09-11 2021-01-15 华帝股份有限公司 Data communication method and system based on serial port connection

Also Published As

Publication number Publication date
CN107360049B (en) 2022-11-18
CN107360049A (en) 2017-11-17

Similar Documents

Publication Publication Date Title
WO2017193705A1 (en) Method and apparatus for monitoring communication power supply device, and storage medium
EP3399715A1 (en) Protocol conversion method, platform, and protocol conversion gateway
US20140358256A1 (en) Systems, methods, and software to present human machine interfaces on a mobile device
CN105208358B (en) A kind of video monitoring system for video wall configuration
CN112905210B (en) Server and gray level publishing method
US20060168526A1 (en) Platform-specific application user interface remoting
CN103176789A (en) Method and system used for realizing function extension of open platform
CN104866272A (en) Control treatment system and method of monitor screen wall
US10664551B2 (en) Intuitive user interface (UI) for device or vendor independent network switch management via embedded management controller
WO2022104612A1 (en) Data distribution flow configuration method and apparatus, electronic device, and storage medium
CN105786302A (en) Management controller and management control method
KR101475789B1 (en) Microblog client, method for aggregating microblog messages, and instant messaging client
CN114302201A (en) Method for automatically switching on and off screen in loudspeaker box mode, intelligent terminal and display device
CN114253652A (en) Method and system for realizing cloud application window list of android mobile terminal by simulating local App
WO2022104611A1 (en) Data distribution system and data distribution method
CN112650653A (en) Plug-and-play and visual operation and maintenance system and method for equipment
US8856651B2 (en) Remote user interface cooperative application
CN113708955A (en) Equipment configuration method, device and system
Chandramouli et al. Model-driven analytics in SDN networks
KR100934221B1 (en) Plug-in based management application system and management method using the same
CN117834325A (en) Plug-in type internet of things equipment data access system and access method
CN108848398A (en) A kind of distribution method, device, terminal and the storage medium of local barrage message
TW201908989A (en) High-expandability Internet of Things (IoT) cloud service system capable of being used for multi-person connection and the use of cross-platform mobile devices
Stoicuta et al. An OpenNetInf-based cloud computing solution for cross-layer QoS: Monitoring part using iOS terminals
CN115866069A (en) Method and system for processing remote call request and electronic equipment

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17795323

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17795323

Country of ref document: EP

Kind code of ref document: A1