CN116827771A - Command configuration method and device based on protocol and electronic equipment - Google Patents

Command configuration method and device based on protocol and electronic equipment Download PDF

Info

Publication number
CN116827771A
CN116827771A CN202310792860.2A CN202310792860A CN116827771A CN 116827771 A CN116827771 A CN 116827771A CN 202310792860 A CN202310792860 A CN 202310792860A CN 116827771 A CN116827771 A CN 116827771A
Authority
CN
China
Prior art keywords
command line
configuration
function item
prompt
target
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202310792860.2A
Other languages
Chinese (zh)
Inventor
芦文婷
李炳根
肖飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN202310792860.2A priority Critical patent/CN116827771A/en
Publication of CN116827771A publication Critical patent/CN116827771A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0883Semiautomatic configuration, e.g. proposals from system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/03Protocol definition or specification 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the application provides a command configuration method and device based on a protocol and electronic equipment. In this embodiment, the target communication device determines, through each protocol configuration association prompt structure, a target protocol that matches a target command line configured for the target communication device, and then determines, based on the protocol configuration association prompt structure of the target protocol, a function item that matches the target command line, and outputs a function item configuration prompt interface corresponding to the function item that matches the target command line to the client for display, so that a configurator configures the function item according to a command line configuration step prompted by the function item configuration prompt interface, thereby avoiding a situation of configuration errors caused by a dependency relationship and a sequencing between inattentive command lines during manual configuration; further, the configuration is carried out through the command line configuration step prompted by the function item configuration prompt interface, configuration personnel are not required to know the configuration command lines of each protocol and the dependency relationship of each command line, and the configuration efficiency is improved.

Description

Command configuration method and device based on protocol and electronic equipment
Technical Field
The present application relates to the field of communications, and in particular, to a method and an apparatus for configuring commands based on a protocol, and an electronic device.
Background
Currently, protocol configuration (e.g., IP protocol configuration) of communication devices (e.g., switches, routers, etc.) in a communication network is typically implemented by manually configuring command lines. Here, the command line is a work prompt for prompting command input in the operating system, and issues a command to the communication device by means of configuring the command line, so as to achieve the effect of configuring the protocol and thus validating the protocol.
Communication equipment protocol configuration is generally realized by adopting command line configuration, various dependency relationships and configuration sequence exist between command lines, and configuration errors can easily occur once the dependency relationships and the sequence are neglected in manual configuration.
Disclosure of Invention
In view of this, embodiments of the present application provide a method, an apparatus, and an electronic device for configuring a command based on a protocol, so as to prompt a configuration step through a function item configuration prompt interface, thereby avoiding a configuration error caused by a dependency relationship and a sequencing between command lines neglected during manual configuration.
According to a first aspect of an embodiment of the present application, there is provided a method for configuring a command based on a protocol, the method including:
the client responds to the command line input operation based on the instruction of the protocol configuration of the target communication equipment and sends the target command line input in the command line input operation to the target communication equipment; the target command line is used for carrying out protocol configuration on the target communication equipment;
the target communication equipment determines a target protocol matched with the target command line from each protocol configuration association prompt structure configured by the equipment based on the target command line sent by the client; any protocol configuration association hint structure at least comprises: function items, command lines required by function items, and dependencies between command lines required by the same function item or different function items;
the target communication equipment determines the function item matched with the target command line from a protocol configuration association prompt structure of the target protocol according to the target command line, and outputs a function item configuration prompt interface corresponding to the function item matched with the target command line to a client for display; the function item configuration prompt interface at least comprises: the command line prompting area is used for prompting a command line required to be input when the function item configuration is carried out, and the function item configuration prompting interface is used for indicating the function item configuration according to the command line prompting area.
According to a second aspect of an embodiment of the present application, there is provided a protocol-based command configuration apparatus, the apparatus being applied to a communication device, the apparatus comprising:
the target command line sending module is used for responding to the command line input operation based on the instruction of the protocol configuration of the target communication equipment by the client and sending the target command line input in the command line input operation to the target communication equipment; the target command line is used for carrying out protocol configuration on the target communication equipment;
the target protocol determining module is used for determining a target protocol matched with the target command line from each protocol configuration association prompt structure configured by the target communication equipment based on the target command line sent by the client; any protocol configuration association hint structure at least comprises: function items, command lines required by function items, and dependencies between command lines required by the same function item or different function items;
the command line configuration module is used for determining the function items matched with the target command line from the protocol configuration association prompt structure of the target protocol according to the target command line, and outputting a function item configuration prompt interface corresponding to the function items matched with the target command line to a client for display; the function item configuration prompt interface at least comprises: the command line prompting area is used for prompting a command line required to be input when the function item configuration is carried out, and the function item configuration prompting interface is used for indicating the function item configuration according to the command line prompting area.
According to a third aspect of an embodiment of the present application, there is provided an electronic apparatus including: a processor and a memory;
wherein the memory is configured to store machine-executable instructions;
the processor is configured to read and execute the machine executable instructions stored in the memory, so as to implement the method according to the first aspect.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
in this embodiment, the target communication device determines, through each protocol configuration association prompt structure, a target protocol that matches a target command line configured for the target communication device, and then determines, based on the protocol configuration association prompt structure of the target protocol, a function item that matches the target command line, and outputs a function item configuration prompt interface corresponding to the function item that matches the target command line to the client for display, so that a configurator configures the function item according to a command line configuration step prompted by the function item configuration prompt interface, thereby avoiding a situation of configuration errors caused by a dependency relationship and a sequencing between inattentive command lines during manual configuration;
further, the configuration is carried out through the command line configuration step prompted by the function item configuration prompt interface, configuration personnel are not required to know the configuration command lines of each protocol and the dependency relationship of each command line, and the configuration efficiency is improved.
Drawings
Fig. 1 is a flowchart of a protocol command based configuration method according to an embodiment of the application.
FIG. 2 is a diagram illustrating an example of a protocol configuration association hint structure according to an embodiment of the present application.
FIG. 3-1 is an exemplary diagram of a function item 1 containing a command line 1-1 and a function item configuration hint interface of a command line 1-2, according to an embodiment of the present application.
Fig. 3-2 are exemplary diagrams of a function item configuration hint interface of a function item 1 including a command line 1-3 according to an embodiment of the present application.
Fig. 3-3 are exemplary diagrams of function item 1 including function item configuration hint interfaces of command lines 1-4 according to embodiments of the present application.
Fig. 3-4 are exemplary diagrams of a function item configuration completion interface according to embodiments of the present application.
FIG. 4 is a flow chart illustrating the processing of an external input command line in accordance with an embodiment of the present application.
Fig. 5 is a block diagram of a protocol-based command configuration apparatus according to an embodiment of the present application.
Fig. 6 is a block diagram of an electronic device shown in an embodiment of the application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the application. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
Next, embodiments of the present specification will be described in detail.
Referring to fig. 1, fig. 1 is a flowchart of a method provided in an embodiment of the present application. The method is applied to a configuration system composed of a client and a communication device, and as an embodiment, the communication device is a device that needs to perform protocol configuration, such as a switch, a firewall, and the like, and the embodiment is not particularly limited.
As an embodiment, for each communication device, a command prompt system is deployed in the communication device when leaving the factory, where the command prompt system is configured to output a command line configuration prompt to the client according to the received command line configuration prompt for configuring the communication device according to the protocol, so that a configurator configures the command line based on the command line configuration prompt displayed by the client. Meanwhile, the memory of the communication device stores a configured protocol configuration association prompt structure of each protocol, where the protocol configuration association prompt structure of each protocol is determined based on a command line manual of the protocol, and here, the protocol may be an IP protocol, a modularized QoS command line interface MQC of quality of service QoS, an access control list ACL, or the like, and embodiments of the present application are not limited specifically.
In this embodiment, the protocol configuration association prompt structure of each protocol may have various forms, for example, text, a diagram (for example, fig. 2), and the like, and embodiments of the present application are not particularly limited.
Based on the above 2 forms of the protocol configuration association hint structure, in this embodiment, there are 2 configuration methods of the protocol configuration association hint structure, which are text import and block diagram drawing, respectively. The configuration method for text import comprises the following steps: for a certain protocol, storing the text of a command line manual of the protocol according to a specified format, such as a protocol name, function items included in the protocol, command line prompt information of each function item and the like, and forming a protocol configuration association prompt structure of the protocol. Here, the specified format may be a format that is retracted for each command line, for example, a space 2 cell in front of the command line 1-1 and a space 2 cell in front of the command line 1-2 shown in fig. 2, which is not specifically limited in the embodiment of the present application, and may be determined according to practical situations.
The configuration method for drawing the block diagram comprises the following steps: and drawing a node block diagram corresponding to the protocol based on a command line manual of the protocol, storing necessary information (such as a protocol name, functional items included in the protocol and the like) of command prompt information in the block diagram, and expressing the dependence relationship of the command line between the block diagram and the block diagram by using arrows to form a protocol configuration association prompt structure of the protocol.
In this embodiment, for each protocol, the protocol configuration association prompt structure is generated, and at the same time, the function item configuration prompt interface of each function item in the protocol is generally automatically generated, which may not be generated, and the embodiment of the present application is not limited specifically.
When the protocol configuration association prompt structure is generated and the function item configuration prompt interface of each function item in the protocol is not generated, a configurator can manually create at least one blank display interface on an operable terminal of the configurator, and then fill in and save the protocol name, the function item included in the protocol and the like according to the configuration habit of the configurator, so as to obtain the function item configuration prompt interface of each function item.
In this embodiment, on the basis that the communication device has generated the function item configuration prompt interface of each function item, the configurator may also create the function item configuration prompt interface according to its configuration habit to achieve the memo and prompt functions.
According to the embodiment of the application, through the custom mode, a configurator can generate the function item configuration prompt interface conforming to own habit for familiarity with or learning of protocol command lines, and can also supplement the realization scenes not provided by manufacturers, so that the usability is expanded.
Fig. 2 shows an example in which a protocol configuration association hint structure is stored in a form of a graph, as shown in fig. 2, the "protocol" in fig. 2 may be only one protocol, for example, an IP protocol, or may be a combination of at least 2 protocols, for example, MQC and ACL of QoS are configured in a combined manner, and the embodiment of the present application is not limited to this protocol specifically.
As shown in fig. 2, the protocol includes: function item 1, function item 2 … …, to implement each function item, require configuration of the corresponding command line, e.g., to implement function item 1, require configuration of command line 1-1, followed by configuration of command line 1-1-1 and command line 1-1-2; configuration of command line 1-2 is required, followed by configuration of command line 1-2-1 and command line 1-2-2; command line 1-3 needs to be configured, command line 1-3-1 is configured, but there is a dependency in configuring command line 1-3-1, the configuration of which command line 1-3-1 depends on command line 1-1 and command line 1-2 having been configured. Similarly, after configuring command line 1-4, there is a dependency in configuring command line 1-4-1, depending on the completion of the configuration of command line 1-3.
Here, a dependency refers to a command line that must be configured if other command lines have been completed.
As shown in fig. 1, the process may include the steps of:
s110: the client responds to the command line input operation based on the instruction of the protocol configuration of the target communication device, and sends the target command line input in the command line input operation to the target communication device; the target command line is used to perform protocol configuration for the target communication device.
Illustratively, in the present embodiment, before the target communication device is configured in the protocol, the client operable by the configurator establishes a connection with the communication device, and the manner of establishing the connection between the client and the communication device is not limited, as long as the communication between the client and the communication device can be achieved.
Here, the client (e.g., APP, applet, etc.) is deployed on the intelligent terminal, which may be, for example, as an embodiment: computers, tablets, cell phones, etc., embodiments of the present application are not particularly limited.
In this embodiment, when the protocol configuration needs to be performed on the target communication device, the configurator may click on the target communication device identifier or input the name of the target communication device on the command configuration interface of the client, where the client obtains an instruction for performing the protocol configuration on the target communication device corresponding to the click operation or the input operation; the configurator may enter a target command line at a command configuration interface of the client, the target command line being used for protocol configuration of the target communication device. The client responds to the command line input operation and transmits the target command line input in the command line input operation to the target communication device.
Here, the target command line may be any command line corresponding to the protocol to be configured, or may be a command line specified by the protocol, and embodiments of the present application are not particularly limited.
It should be noted that, in designing command lines of each protocol, the command lines of each protocol are unique, and the command lines of each protocol are different.
S120: the target communication equipment determines a target protocol matched with the target command line from each protocol configuration association prompt structure configured by the equipment based on the target command line sent by the client.
Illustratively, in this embodiment, any protocol configuration association hint structure includes at least: function item, command line required by function item, and dependency relationship between command lines required by the same function item or different function items.
Here, the function item refers to a function that can be realized based on a protocol, for example, a packet transmission function, a packet response function, and the like; the command lines required for a function item refer to the individual command lines required to implement a function item.
Fig. 2 shows a protocol configuration association prompt structure, and as shown in fig. 2, the protocol includes: function item 1, function item 2 … …, to implement each function item, require configuration of the corresponding command line, e.g., to implement function item 1, require configuration of command line 1-1, followed by configuration of command line 1-1-1 and command line 1-1-2; configuration of command line 1-2 is required, followed by configuration of command line 1-2-1 and command line 1-2-2; command line 1-3 needs to be configured, command line 1-3-1 is configured, but there is a dependency in configuring command line 1-3-1, the configuration of which command line 1-3-1 depends on command line 1-1 and command line 1-2 having been configured. Similarly, after command line 1-4 is configured, there is a dependency in configuring command line 1-4-1, depending on the completion of command line 1-3 configuration. All the command lines are the command lines required by the function item 1.
In this embodiment, in step S120, based on the target command line, the target protocol that matches the command line is determined from the configured association hint structures of the protocols of the device, which may specifically be: and taking the target command line as a keyword, determining the command line matched with the keyword in each configured protocol configuration association prompt structure of the equipment, and determining the protocol to which the matched command line belongs as the target protocol.
As one embodiment, the configurator inputs a command line through a command configuration interface of the client operable by the configurator, the client transmits the command line to the target communication device, where the configurator inputs a command line which may not be a complete command line, for example, only a part of the command line is input, or the command line input by the configurator is complete but the input command line is wrong, the target communication device determines whether the command line is correct or not first after receiving the command line, specifically, searches from each protocol configuration association prompt structure, and if not, considers that the command line is wrong and does not process; if the protocol configuration association prompt structure is found, the protocol corresponding to the protocol configuration association prompt structure with the command line is taken as the target protocol.
As another embodiment, after receiving the command line, the device may obtain the target command line through conventional fuzzy matching, so as to determine the target protocol to which the command line after fuzzy matching belongs.
S130: and the target communication equipment determines the function item matched with the target command line from the protocol configuration association prompt structure of the target protocol according to the target command line, and outputs a function item configuration prompt interface corresponding to the function item matched with the target command line to the client for display.
In this embodiment, the number of the function items determined by the target communication device from the protocol configuration association hint structure of the target protocol according to the target command line may be one or more, and the embodiment of the present application is not particularly limited.
In this embodiment, when at least 2 function items matched with a target command line are determined from a protocol configuration association prompt structure of the target protocol according to the target command line, the target communication device may send the determined function item interfaces corresponding to the function items to the client for display, and a configurator selects one of the function item interfaces displayed by the client for configuration, where the configurator may select any one of the function items as the target function item, after the selection, the client responds to the function item selection operation, sends the selected target function item in the function item selection operation to the target communication device, and the target communication device receives the target function item fed back by the client and outputs the function item configuration prompt interface corresponding to the target function item based on the received target function item, where the function item configuration prompt interface output by the target communication device is suspended in the command configuration interface.
In this embodiment, in step S130, the function item of determining that the target command line matches from the protocol configuration association hint structure of the target protocol according to the command line may specifically be: with the command line as a key word, the function item containing the command line is searched in the protocol configuration association prompt structure of the target protocol, as shown in fig. 2, for example, for command line 1-1, function item 1 and function item 2 are searched.
Illustratively, in this embodiment, the function item configuration prompt interface includes at least: the command line prompt area is used for prompting a command line required to be input when the function item configuration is carried out, and the function item configuration prompt interface is used for indicating the function item configuration according to the command line prompt area.
Here, the command line required to be input when performing the function item configuration refers to a command line required to implement the function item displayed in the configuration command line prompt area, that is, a command line required to be input when completing the function item configuration.
As shown in fig. 3-1 to 3-3, the function item configuration prompt interfaces shown in fig. 3-1 to 3-3 are the function item 1 shown in fig. 2, and each function item configuration prompt interface includes: a command line prompt area, wherein at least: command line, role of command line, format of command line, etc., as shown in fig. 3-1: a. command line 1-1 to be configured; the role of the command is: … …; the command line format is: … ….
In addition to the command line prompt field, the function item configuration prompt interface may further include: the system comprises a protocol prompt area, a function item prompt area and a page number prompt area, wherein the protocol prompt area is used for displaying the name of a target protocol, the function item prompt area is used for displaying the function item matched with the target command line, for example, for the purposes of fig. 3-1, the content of the protocol prompt area is as follows: protocol: a protocol name; the content of the function item prompt area is as follows: a function item 1; the content of the page number prompt area is as follows: page number 1/4.
The number displayed in the page number prompting area is divided by page numbers according to the dependency relationship between command lines, when a configurator inputs the command line 1-1, the configurator enters the page 1, as shown in fig. 3-1, and only when all command lines of the page 1 are successfully configured, the page 1 automatically jumps to the page 2, as shown in fig. 3-2, and otherwise, as the dependency relationship between page numbers exists, only the previous page numbers are in the completion state, and the configurator interface can be switched to the function item configuration completion interface, as shown in fig. 3-4.
Thus, the flow shown in fig. 1 is completed.
As can be seen from the flow shown in fig. 1, in this embodiment, the target communication device determines, through each protocol configuration association prompt structure, a target protocol that matches a target command line configured for the target communication device, determines a function item that matches the target command line based on the protocol configuration association prompt structure of the target protocol, and outputs a function item configuration prompt interface corresponding to the function item that matches the target command line to the client for display, so that a configurator performs function item configuration according to a command line configuration step prompted by the function item configuration prompt interface, thereby avoiding a configuration error caused by dependency relationship and sequencing between inattentive command lines during manual configuration;
Further, the configuration is carried out through the command line configuration step prompted by the function item configuration prompt interface, configuration personnel are not required to know the configuration command lines of each protocol and the dependency relationship of each command line, and the configuration efficiency is improved.
As an optional implementation manner of the embodiment of the present application, the command line prompt area includes at least one primary command line prompt area, and at least one primary command line prompt area is displayed in each primary command line prompt area: the function of the first-level command line and the first-level command line required to be input when the prompt function item is configured is used for prompting the format of the first-level command line;
for any one of the primary command lines, if the primary command line has at least one of the secondary command lines, the command line prompt area further includes a secondary command line prompt area corresponding to each of the secondary command lines, and at least one of the secondary command prompt areas is displayed in each of the secondary command prompt areas: the function prompting device is used for prompting a lower order line, the role of the lower order line and the format of the lower order line which are required to be input when the function item is configured.
Illustratively, in this embodiment, a primary command line refers to a command line that does not need to rely on other command lines to have been configured to complete when configuring the command line. The lower command line refers to a command line which needs to be configured according to other command lines when the command is configured, namely, the command line is configured according to the other command lines after the first-level command line is configured.
For example, as shown in FIG. 2, for the protocol shown in FIG. 2, command lines 1-1, 1-2, 1-3 are primary command lines, command lines 1-1-1, 1-1-2 are the downstream command lines of command line 1-1, command lines 1-2-1, 1-2-2 are the downstream command lines of command line 1-2, command line 1-3-1 is the downstream command line of command line 1-3, and command line 1-4-1 is the downstream command line of command line 1-4.
Based on the above description, the command line hint area includes at least one primary command line hint area, for example, as shown in fig. 3-1, the command line hint area includes 2 primary command line hint areas (i.e., a command line hint area where command line 1-1 is located and a command line hint area where command line 1-2 is located), as shown in fig. 3-2, the command line hint area includes one primary command line hint area (i.e., a command line hint area where command line 1-3 is located), as shown in fig. 3-3, and the command line hint area includes one primary command line hint area (i.e., a command line hint area where command line 1-4 is located).
For any one of the primary command lines, if the primary command line has at least one of the secondary command lines, the command line prompt area further includes a secondary command line prompt area corresponding to each of the secondary command lines, and at least one of the secondary command prompt areas is displayed in each of the secondary command prompt areas: the function prompting device is used for prompting a lower order line, the role of the lower order line and the format of the lower order line which are required to be input when the function item is configured. The command line prompt area corresponding to the subordinate command line may be, for example: 3-1 shows a command line prompt area where a command line 1-1-1 is located, a command line prompt area where a command line 1-1-2 is located, a command line prompt area where a command line 1-2-1 is located, and a command line prompt area where a command line 1-2-2 is located; 3-2, a command line prompt area in which the command line 1-3-1 is located; the command line hint area where command line 1-4-1 is located is shown in fig. 3-3.
In this embodiment, each lower command line prompting area is hidden under the first level command line prompting area corresponding to each lower command line prompting area, or each lower command line prompting area is displayed under the first level command line prompting area corresponding to each lower command line prompting area.
When each lower command line prompting area is hidden under the first-level command line prompting area corresponding to each lower command line prompting area, the client responds to the display operation of the lower command line prompting area, the lower command line prompting area is displayed below the first-level command line prompting area corresponding to the lower command line prompting area corresponding to the display operation of the lower command line prompting area, and the display operation of the lower command line prompting area is realized by clicking related buttons on a command configuration interface of the client by configuration personnel.
In this embodiment, the first-level command line prompt area corresponding to the first-level command line and the lower-level command line prompt areas corresponding to different lower-level command lines are set according to a set sequence, where the set sequence is related to the dependency relationship of the command lines required in the configuration of the function item, that is, the set sequence refers to the configured sequence of each command line in the configuration of the function item, for example, the command line 1-1 is configured first, and then the command lines 1-1-1 and 1-1-2 are configured.
As an optional implementation manner of the embodiment of the present application, each command line prompting area further has a command line status completion area, and after a command line corresponding to the command line prompting area is input and a corresponding configuration is completed based on the input command line, the target communication device sends configuration completion information to the client, so that the client displays a completed identifier in the command line status completion area of the command line prompting area based on the configuration completion information.
In this embodiment, each command line prompting area has a status completion area, where the status completion area is used to indicate whether the command line corresponding to the command line prompting area is input to complete the corresponding configuration based on the input command line, and if so, the target communication device sends configuration completion information to the client, so that the client displays a completed identifier in the command line status completion area of the command line prompting area based on the configuration completion information, where the identifier information may be, for example: "completed" or "v", if not completed, no identification information is added to the status completion area.
When the state completion areas of all command line prompt areas displayed by the current function item configuration prompt interface display complete the identification, jumping to the next function item configuration prompt interface of the current function item configuration prompt interface to configure the command line required to be input when the function item configuration is performed based on the command line prompt areas displayed by the next function item configuration prompt interface;
Displaying a finished mark in a state finishing area of each command line prompting area displayed on each function item configuration prompting interface, and jumping to the function item configuration finishing interface, wherein the function item configuration finishing interface at least comprises: and the function item state completion area displays the completed identification when the state completion area of the command line prompt area of the all function item configuration prompt interface displays the completed identification.
In this embodiment, when the status completion area display of all command line prompt areas displayed by the current function item configuration prompt interface has completed, it is characterized that all command lines displayed by the current function item configuration prompt interface are configured to complete, and the configuration personnel jumps to the next function item configuration prompt interface of the current function item configuration prompt interface, so that the configuration personnel configures the command lines required to be input when performing the function item configuration, which are prompted by each command line prompt area displayed by the next function item configuration prompt interface.
As also shown in fig. 3-1 and 3-2, when the status completion area of all command line prompt areas displayed by the function item configuration prompt interface shown in fig. 3-1 shows that the identification has been completed, automatically jumping to the function item configuration prompt interface shown in fig. 3-2 to enable the configurator to perform configuration based on the command lines prompted in the function item configuration prompt interface shown in fig. 3-2.
In this embodiment, the status completion area of each command line prompt area displayed on each function item configuration prompt interface displays a completed identifier, and jumps to the function item configuration completion interface, where the function item configuration completion interface at least includes: and the function item state completion area displays the completed identification when the state completion area of the command line prompt area of the all function item configuration prompt interface displays the completed identification.
As shown in fig. 3-4, fig. 3-4 are examples of a function item configuration completion interface that may include: the system comprises a protocol prompt area, a function item prompt area, a page number prompt area and a state completion area, wherein the protocol prompt area displays the following contents: protocol: a protocol name; the content displayed in the function item prompt area is as follows: a function item 1; the page number prompt area displays the following contents: the page number 4/4, it should be noted that, the value displayed in the page number prompting area of the function item configuration completion interface is the value displayed in the page number prompting area of the last function item configuration prompting interface corresponding to the function item plus 1.
As an optional implementation manner of the embodiment of the present application, the protocol-based command configuration method further includes:
And when the target communication equipment cannot configure corresponding configuration based on the target command line or any command line prompted on the function item configuration prompt interface sent by the client, outputting a configuration failure prompt to the client for display.
In this embodiment, if the target communication device cannot perform corresponding configuration based on the target command line or any command line prompted on the function item configuration prompt interface sent by the client, a configuration failure prompt is output, where the configuration failure prompt may be displayed on the client in a popup window, specifically, suspended in the command configuration interface, where the configuration failure prompt is used to instruct to input a reference command line for configuration, and the reference command line refers to a command line that needs to be configured before the command line that fails in configuration.
For example, as shown in FIG. 3-1, after all command lines of page 1, i.e., command line 1-1-1, command line 1-1-2, command line 1-2-1, command line 1-2-2 are configured, the configuration of commands 1-3 is automatically skipped to page 2 (i.e., FIG. 3-2). However, if the command line 1-3 of the page 2 is configured first, it can be known from fig. 2 that the command line 1-3-1 depends on the command line 1-1 and the command line 1-2, but the command line 1-3 does not have such a dependence, when the configurator inputs the command line 1-3, the configurator automatically jumps to the page 2 (fig. 3-2) and marks the completion, at this time, the page 1 is not configured, and cannot configure the command line 1-3-1, which results in a failure to jump to the page 3, and output configuration failure prompt information to prompt that the reference command line is input first for configuration, where the reference command line refers to the command line that needs to be configured before the command line that fails in configuration, specifically, the configurator can input keyboard key for manually jumping the number of pages, and complete the configuration of the command line that needs to be configured before the command line that fails in configuration.
FIG. 4 is a flow chart illustrating a process of externally inputting a command line, where a client is connected to a target communication device, and the target communication device is configured with a command prompt system, according to an embodiment of the present application. As shown in fig. 4, first, when a target communication device needs to be configured in a protocol, after a configurator inputs a target command line for configuring the target communication device in a protocol, the client sends the target command line to the target communication device, after receiving the target command line, the target communication device determines whether the target command line is configured successfully, if the target command line is configured unsuccessfully, the target communication device sends an error prompt message to the client, and does not process the target command line. If the configuration of the target command line is successful, activating a command prompt system, positioning the command prompt system into a function item configuration prompt interface corresponding to the target command line, and changing a state completion area of the target command line into completed after the configuration of the target command line is completed.
At this time, scanning whether other command lines with incomplete configuration exist in the function item configuration prompt interface, if the command lines with incomplete configuration exist, detecting whether the command lines have a dependency relationship, if the configuration cannot be performed due to the dependency, at this time, the configurator can check the configuration dependent item of the previous function item configuration prompt interface through the keyboard 'key' and can also directly start configuration from the first page of the function item configuration prompt interface through the 'key'.
If all command lines in the current function item configuration prompt interface are configured successfully, jumping to the next function item configuration prompt interface according to a logic relation, if the front function item configuration prompt interface is not configured, then needing configuration personnel to return to the front function item configuration prompt interface to input the command lines required by the function item configuration prompt interface, if all command lines of all function item configuration prompt interfaces are in a configuration success state, entering a final interface, prompting that the configuration is successful, and if all function items of the protocol are configured completely, the protocol is effective.
Thus, the description of the flow shown in fig. 4 is completed.
Corresponding to the embodiments of the aforementioned method, the present specification also provides embodiments of the apparatus and the terminal to which it is applied.
As shown in fig. 5, fig. 5 is a block diagram of a protocol-based command configuration apparatus according to an embodiment of the present application, the apparatus comprising:
the target command line sending module is used for responding to the command line input operation based on the instruction of the protocol configuration of the target communication equipment by the client and sending the target command line input in the command line input operation to the target communication equipment; the target command line is used for carrying out protocol configuration on the target communication equipment;
The target protocol determining module is used for determining a target protocol matched with the target command line from each protocol configuration association prompt structure configured by the target communication equipment based on the target command line sent by the client; any protocol configuration association hint structure at least comprises: function items, command lines required by function items, and dependencies between command lines required by the same function item or different function items;
the command line configuration module is used for determining the function items matched with the target command line from the protocol configuration association prompt structure of the target protocol according to the target command line, and outputting a function item configuration prompt interface corresponding to the function items matched with the target command line to the client for display; the function item configuration prompt interface at least comprises: the command line prompt area is used for prompting a command line required to be input when the function item configuration is carried out, and the function item configuration prompt interface is used for indicating the function item configuration according to the command line prompt area.
As an optional implementation manner of the embodiment of the present application, the command line prompt area includes at least one primary command line prompt area, and at least one primary command line prompt area is displayed in each primary command line prompt area: the function of the first-level command line and the first-level command line required to be input when the prompt function item is configured is used for prompting the format of the first-level command line;
For any one of the primary command lines, if the primary command line has at least one of the secondary command lines, the command line prompt area further includes a secondary command line prompt area corresponding to each of the secondary command lines, and at least one of the secondary command prompt areas is displayed in each of the secondary command prompt areas: the function of the lower command line and the lower command line required to be input when the prompt function item is configured and the format of the lower command line are used for prompting the function item configuration; the first-level command line prompt areas corresponding to the first-level command lines and the lower-level command line prompt areas corresponding to different lower-level command lines are arranged according to a set sequence, and the set sequence is related to the dependence relationship of the command lines required during function item configuration.
As an optional implementation manner of the embodiment of the application, each lower command line prompting area is hidden under a first-level command line prompting area corresponding to each lower command line prompting area, the client responds to the display operation of the lower command line prompting area, and the lower command line prompting area is displayed below the first-level command line prompting area corresponding to the display operation of the lower command line prompting area;
or, each lower command line prompting area is displayed below the corresponding one-level command line prompting area.
As an optional implementation manner of the embodiment of the present application, each command line prompting area further has a command line status completion area, where the command line status completion area is used to indicate whether the corresponding configuration is completed based on the input command line after the command line corresponding to the command line prompting area is input, and after the corresponding configuration is completed based on the input command line and the command line corresponding to the command line prompting area is input, the target communication device sends configuration completion information to the client, so that the client displays the completed identifier in the command line status completion area of the command line prompting area based on the configuration completion information.
As an optional implementation manner of the embodiment of the present application, the function item configuration prompt interface further includes: the protocol prompt area, the function item prompt area and the page number prompt area are used for displaying the name of the target protocol; the function item prompt area is used for displaying the function item matched with the target command line; the page number displayed in the page number prompt area is divided according to the dependency relationship between command lines displayed in the function item configuration prompt interface; the protocol-based command configuration apparatus further includes:
the first interface jump module is used for jumping to the next function item configuration prompt interface of the current function item configuration prompt interface when the state completion areas of all command line prompt areas displayed by the current function item configuration prompt interface display are marked completely, so as to configure the command line required to be input when the function item configuration is carried out, which is prompted by each command line prompt area displayed by the next function item configuration prompt interface;
The second interface jump module is used for displaying a completed mark in a state completion area of each command line prompt area displayed in each function item configuration prompt interface, jumping to the function item configuration completion interface, and the function item configuration completion interface at least comprises: and the function item state completion area displays the completed identification when the state completion area of the command line prompt area of the all function item configuration prompt interface displays the completed identification.
As an optional implementation manner of the embodiment of the present application, the command configuration device based on the protocol further includes:
the configuration failure prompting module is used for outputting a configuration failure prompt to the client for display when the target communication equipment cannot perform corresponding configuration based on the target command line or any command line prompted on the function item configuration prompting interface sent by the client; the configuration failure prompt is used for indicating that a reference command line is input first to perform configuration, and the reference command line refers to a command line needing to be configured before the command line with the configuration failure.
As an optional implementation of the embodiment of the application, the target command line is input in a command configuration interface of the client; the function item configuration prompt interface and the configuration failure prompt are suspended in the command configuration interface.
As an optional implementation manner of the embodiment of the present application, if at least 2 function items matching with the command line are determined from the protocol configuration association hint structure of the target protocol according to the command line, the protocol-based command configuration device further includes:
the function item interface sending module is used for sending the function item interfaces corresponding to the determined function items to the client for display by the target communication equipment;
the function item selection module is used for responding to the function item selection operation by the client, sending the selected target function item in the function item selection operation to the target communication equipment, wherein the function item selection operation is executed on each function item interface displayed by the client;
the target function item receiving module is used for receiving the target function item fed back by the client by the target communication equipment;
the function item configuration prompt interface in the command line configuration module, which outputs the function item corresponding to the function item matched with the command line, comprises:
and outputting a function item configuration prompt interface corresponding to the target function item.
The implementation process of the functions and roles of each unit in the above device is specifically shown in the implementation process of the corresponding steps in the above method, and will not be described herein again.
The description of the apparatus shown in fig. 5 is thus completed.
For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The apparatus embodiments described above are merely illustrative, in which the modules illustrated as separate components may or may not be physically separate, and the components shown as modules may or may not be physical, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purposes of the present description. Those of ordinary skill in the art will understand and implement the present application without undue burden.
Correspondingly, the embodiment of the application also provides a hardware structure diagram of the device shown in fig. 5, and in particular, as shown in fig. 6, the electronic device may be a device for implementing the method. As shown in fig. 6, the hardware structure includes: a processor and a memory.
Wherein the memory is configured to store machine-executable instructions;
the processor is configured to read and execute the machine executable instructions stored in the memory to implement the corresponding protocol-based command configuration method embodiment as shown above.
The memory may be any electronic, magnetic, optical, or other physical storage device that may contain or store information, such as executable instructions, data, or the like, for one embodiment. For example, the memory may be: volatile memory, nonvolatile memory, or similar storage medium. In particular, the memory may be RAM (Radom Access Memory, random access memory), flash memory, a storage drive (e.g., hard drive), a solid state disk, any type of storage disk (e.g., optical disk, DVD, etc.), or a similar storage medium, or a combination thereof.
Thus, the description of the electronic device shown in fig. 6 is completed.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Other embodiments of the present description will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This specification is intended to cover any variations, uses, or adaptations of the specification following, in general, the principles of the specification and including such departures from the present disclosure as come within known or customary practice within the art to which the specification pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the specification being indicated by the following claims.
It is to be understood that the present description is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.
The foregoing description of the preferred embodiments is provided for the purpose of illustration only, and is not intended to limit the scope of the disclosure, since any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the disclosure are intended to be included within the scope of the disclosure.

Claims (10)

1. A method for configuring a protocol-based command, the method comprising:
The client responds to the command line input operation based on the instruction of the protocol configuration of the target communication equipment and sends the target command line input in the command line input operation to the target communication equipment; the target command line is used for carrying out protocol configuration on the target communication equipment;
the target communication equipment determines a target protocol matched with the target command line from each protocol configuration association prompt structure configured by the equipment based on the target command line sent by the client; any protocol configuration association hint structure at least comprises: function items, command lines required by function items, and dependencies between command lines required by the same function item or different function items;
the target communication equipment determines the function item matched with the target command line from a protocol configuration association prompt structure of the target protocol according to the target command line, and outputs a function item configuration prompt interface corresponding to the function item matched with the target command line to a client for display; the function item configuration prompt interface at least comprises: the command line prompting area is used for prompting a command line required to be input when the function item configuration is carried out, and the function item configuration prompting interface is used for indicating the function item configuration according to the command line prompting area.
2. The method of claim 1, wherein the command line hint area comprises at least one primary command line hint area, each primary command line hint area displaying at least: the system comprises a primary command line used for prompting the required input in the configuration of function items, the role of the primary command line and the format of the primary command line;
for any one of the primary command lines, if the primary command line has at least one of the secondary command lines, the command line prompt area further includes a secondary command line prompt area corresponding to each of the secondary command lines, and at least one of the secondary command prompt areas is displayed in each of the secondary command prompt areas: a lower order line for prompting the required input when the function item is configured, the role of the lower order line and the format of the lower order line; the first-level command line prompt areas corresponding to the first-level command lines and the lower-level command line prompt areas corresponding to different lower-level command lines are arranged according to a set sequence, and the set sequence is related to the dependence relationship of the command lines required during function item configuration.
3. The method of claim 2, wherein each lower command line hint area is hidden under a level one command line hint area corresponding to each lower command line hint area, the client is responsive to a lower command line hint area display operation to display a lower command line hint area below a level one command line hint area corresponding to the lower command line hint area;
Or, each lower command line prompting area is displayed below the corresponding one-level command line prompting area.
4. The method according to claim 1 or 2, wherein each command line prompting area further has a command line status completion area, the command line status completion area is used for indicating whether the corresponding configuration is completed based on the input command line after the command line corresponding to the command line prompting area is input, and after the command line corresponding to the command line prompting area is input and the corresponding configuration is completed based on the input command line, the target communication device sends configuration completion information to the client, so that the client displays the completed identifier in the command line status completion area of the command line prompting area based on the configuration completion information.
5. The method of claim 4, wherein the function item configuration hint interface further comprises: the system comprises a protocol prompt area, a function item prompt area and a page number prompt area, wherein the protocol prompt area is used for displaying the name of a target protocol; the function item prompt area is used for displaying function items matched with the target command line; the page number displayed in the page number prompt area is divided according to the dependency relationship between command lines displayed on the function item configuration prompt interface; the method further comprises the steps of:
When the state completion areas of all command line prompt areas displayed by the current function item configuration prompt interface display complete the identification, jumping to the next function item configuration prompt interface of the current function item configuration prompt interface to configure the command line required to be input when the function item configuration is performed based on the command line prompt areas displayed by the next function item configuration prompt interface;
displaying a finished mark in a state finishing area of each command line prompting area displayed in each function item configuration prompting interface, and jumping to the function item configuration finishing interface, wherein the function item configuration finishing interface at least comprises: and the function item state completion area displays the completed identification when the state completion area of the command line prompt area of the all function item configuration prompt interface displays the completed identification.
6. The method according to claim 1, characterized in that the method further comprises:
when the target communication equipment cannot carry out corresponding configuration based on the target command line or any command line prompted on the function item configuration prompt interface sent by the client, outputting a configuration failure prompt to the client for display; the configuration failure prompt is used for indicating that a reference command line is input first to perform configuration, and the reference command line refers to a command line needing to be configured before the command line with the configuration failure.
7. The method of claim 1, wherein the target command line is entered at a command configuration interface of the client; and the function item configuration prompt interface and the configuration failure prompt are suspended in the command configuration interface.
8. The method of claim 1, wherein if at least 2 functional items matching the command line are determined from a protocol configuration association hint structure of the target protocol according to the command line, the method further comprises:
the target communication equipment sends the function item interfaces corresponding to the determined function items to the client for display;
the method comprises the steps that a client responds to a function item selection operation, a target function item selected in the function item selection operation is sent to target communication equipment, and the function item selection operation is executed on each function item interface displayed on the client;
the target communication equipment receives the target function item fed back by the client;
the function item configuration prompt interface for outputting the function item corresponding to the function item matched with the command line comprises:
and outputting a function item configuration prompt interface corresponding to the target function item.
9. A protocol-based command configuration apparatus, comprising:
The target command line sending module is used for responding to the command line input operation based on the instruction of the protocol configuration of the target communication equipment by the client and sending the target command line input in the command line input operation to the target communication equipment; the target command line is used for carrying out protocol configuration on the target communication equipment;
the target protocol determining module is used for determining a target protocol matched with the target command line from each protocol configuration association prompt structure configured by the target communication equipment based on the target command line sent by the client; any protocol configuration association hint structure at least comprises: function items, command lines required by function items, and dependencies between command lines required by the same function item or different function items;
the command line configuration module is used for determining the function items matched with the target command line from the protocol configuration association prompt structure of the target protocol according to the target command line, and outputting a function item configuration prompt interface corresponding to the function items matched with the target command line to a client for display; the function item configuration prompt interface at least comprises: the command line prompting area is used for prompting a command line required to be input when the function item configuration is carried out, and the function item configuration prompting interface is used for indicating the function item configuration according to the command line prompting area.
10. An electronic device, characterized in that the electronic device comprises: a processor and a memory;
wherein the memory is configured to store machine-executable instructions;
the processor is configured to read and execute the machine executable instructions stored in the memory to implement the method according to any one of claims 1 to 8.
CN202310792860.2A 2023-06-30 2023-06-30 Command configuration method and device based on protocol and electronic equipment Pending CN116827771A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310792860.2A CN116827771A (en) 2023-06-30 2023-06-30 Command configuration method and device based on protocol and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310792860.2A CN116827771A (en) 2023-06-30 2023-06-30 Command configuration method and device based on protocol and electronic equipment

Publications (1)

Publication Number Publication Date
CN116827771A true CN116827771A (en) 2023-09-29

Family

ID=88118133

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310792860.2A Pending CN116827771A (en) 2023-06-30 2023-06-30 Command configuration method and device based on protocol and electronic equipment

Country Status (1)

Country Link
CN (1) CN116827771A (en)

Similar Documents

Publication Publication Date Title
CN109816116B (en) Method and device for optimizing hyper-parameters in machine learning model
EP3376389A1 (en) Data processing method and device
US7899000B2 (en) Communication method, communication system, and communication apparatus
CN102207835A (en) Terminal device
CN106126414B (en) Application software testing method and system
CN112286485B (en) Method and device for controlling application through voice, electronic equipment and storage medium
CN103731733B (en) A kind of version upgrading method and electronic equipment
EP4092524A1 (en) Ota differential upgrade method and system of master-slave architecture
US20070174701A1 (en) Selective test method and test apparatus thereof
JPH11203122A (en) Program rewriting device, program output device, communication system and storage medium
CN112399222A (en) Voice instruction learning method and device for smart television, smart television and medium
CN109547259A (en) Application configuration method, apparatus, storage medium and electronic equipment
CN112367230A (en) Household appliance control method, mobile terminal, household appliance and household appliance control system
CN115827111A (en) Method and device for adjusting server startup items, storage medium and electronic device
CN109547632B (en) Auxiliary call response method, user terminal device and server
CN116827771A (en) Command configuration method and device based on protocol and electronic equipment
CN112788576A (en) Equipment offline processing method and system, storage medium and electronic device
US5774644A (en) Method and apparatus for generating a pair of interoperating communications programs
CN112346366A (en) Control method, device and equipment of terminal equipment and computer readable storage medium
CN114154526A (en) Two-dimensional code processing method and system, storage medium and electronic equipment
CN112765041A (en) Game automatic testing method and device and electronic equipment
JP2006092580A (en) Communication system and storage medium
CN111488283B (en) Task generation method and device, electronic equipment and storage medium
US11356239B2 (en) Information processing apparatus, network system, and medium
CN113849207B (en) ARM server and reservation mode selection method for option configuration of ARM server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination