Protocol-based command configuration method and device, and electronic equipment

By deploying a protocol configuration predictive prompt structure in communication devices, and determining the function item configuration interface based on the target command line, the problems of dependency and sequence errors during manual configuration are solved, thus improving configuration efficiency.

CN116827771BActive Publication Date: 2026-06-23HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO LTD
Filing Date
2023-06-30
Publication Date
2026-06-23

Smart Images

  • Figure CN116827771B_ABST
    Figure CN116827771B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a protocol-based command configuration method and device and electronic equipment. In the embodiments, a target communication device determines a target protocol matched with a target command line for protocol configuration of the target communication device through a protocol configuration association prompt structure, determines a function item matched with the target command line based on a protocol configuration association prompt structure of the target protocol, and outputs a function item configuration prompt interface corresponding to the function item matched with the target command line to a client for display, so that a configuration personnel configures the function item according to a command line configuration step prompted by the function item configuration prompt interface, thereby avoiding configuration errors caused by negligence of a dependency relationship and a sequence between command lines during manual configuration. Further, the configuration is performed through the command line configuration step prompted by the function item configuration prompt interface, and the configuration personnel does not need to understand configuration command lines of each protocol and a dependency relationship between each command line, thereby improving configuration efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communications, and more particularly to a protocol-based command configuration method, apparatus, and electronic device. Background Technology

[0002] Currently, the protocol configuration (e.g., IP protocol configuration) of communication devices (such as switches and routers) in communication networks is usually achieved through manual configuration command lines. Here, the command line is a prompt in the operating system that prompts for command input. By issuing instructions to the communication device through the configuration command line, the protocol can be configured and thus made effective.

[0003] Communication device protocol configuration is generally achieved through command-line configuration. There are various dependencies and configuration order between command lines. If these dependencies and order are ignored during manual configuration, configuration errors can easily occur. Summary of the Invention

[0004] In view of this, embodiments of this application provide a protocol-based command configuration method, apparatus, and electronic device, which provides configuration step prompts through a function item configuration prompt interface, avoiding configuration errors caused by neglecting the dependencies and order of command lines during manual configuration.

[0005] According to a first aspect of the embodiments of this application, a protocol-based command configuration method is provided, the method comprising:

[0006] Based on an instruction to configure the target communication device according to a protocol, the client responds to a command-line input operation and sends the target command line entered in the command-line input operation to the target communication device; the target command line is used to configure the target communication device according to a protocol.

[0007] Based on the target command line sent by the client, the target communication device determines the target protocol that the target command line matches from the protocol configuration association prompt structures configured in the device. Each protocol configuration association prompt structure includes at least: a function item, the command line required by the function item, and the dependency relationship between the command lines required by the same function item or different function items.

[0008] The target communication device determines the function item matching the target command line from the protocol configuration association prompt structure of the target protocol based on the target command line, and outputs the function item configuration prompt interface corresponding to the function item matching the target command line to the client for display; the function item configuration prompt interface includes at least: a command line prompt area, which is used to prompt the command line required to be entered when configuring the function item, and the function item configuration prompt interface is used to instruct the function item to be configured according to the command line prompt area.

[0009] According to a second aspect of the embodiments of this application, a protocol-based command configuration apparatus is provided, the apparatus being applied to a communication device, the apparatus comprising:

[0010] The target command line sending module is used by the client to respond to a command line input operation based on an instruction to configure the target communication device according to a protocol, and to send the target command line entered in the command line input operation to the target communication device; the target command line is used to configure the target communication device according to a protocol.

[0011] The target protocol determination module is used by the target communication device to determine the target protocol that matches the target command line based on the target command line sent by the client, from the protocol configuration association prompt structures configured in the device; each protocol configuration association prompt structure includes at least: a function item, the command line required by the function item, and the dependency relationship between the command lines required by the same function item or different function items.

[0012] The command-line configuration module is used by the target communication device to determine the function item matching the target command line from the protocol configuration association prompt structure of the target protocol based on the target command line, and output the function item configuration prompt interface corresponding to the function item matching the target command line to the client for display; the function item configuration prompt interface includes at least: a command line prompt area, which is used to prompt the command line required to be entered when configuring the function item, and the function item configuration prompt interface is used to instruct the function item to be configured according to the command line prompt area.

[0013] According to a third aspect of the embodiments of this application, an electronic device is provided, the electronic device comprising: a processor and a memory;

[0014] The memory is used to store machine-executable instructions;

[0015] The processor is configured to read and execute machine-executable instructions stored in the memory to implement the method as described in the first aspect.

[0016] The technical solutions provided in this application embodiment may include the following beneficial effects:

[0017] In this embodiment, the target communication device determines the target protocol that matches the target command line for protocol configuration of the target communication device through the protocol configuration association prompt structure of each protocol configuration. Then, based on the protocol configuration association prompt structure of the target protocol, it determines the function item that matches the target command line and outputs the function item configuration prompt interface corresponding to the function item that matches the target command line to the client for display. This allows the configuration personnel to configure the function item according to the command line configuration steps prompted by the function item configuration prompt interface, avoiding configuration errors caused by neglecting the dependencies and order between command lines during manual configuration.

[0018] Furthermore, configuration can be performed through command-line configuration steps prompted by the function item configuration prompt interface, eliminating the need for configuration personnel to understand the configuration command lines for each protocol and the dependencies between each command line, thus improving configuration efficiency. Attached Figure Description

[0019] Figure 1 This is a flowchart illustrating a protocol command-based configuration method in an embodiment of the application.

[0020] Figure 2 This is an example diagram of the protocol configuration association prompt structure shown in the embodiments of this application.

[0021] Figure 3-1 This is an example diagram of a function item configuration prompt interface for function item 1, which includes command line 1-1 and command line 1-2, as shown in the embodiments of this application.

[0022] Figure 3-2 This is an example diagram of a function item configuration prompt interface for function item 1, which includes command lines 1-3, as shown in the embodiments of this application.

[0023] Figure 3-3 This is an example diagram of a function item configuration prompt interface including command lines 1-4, as shown in the embodiments of this application.

[0024] Figure 3-4 This is an example diagram of the function item configuration completion interface shown in the embodiments of this application.

[0025] Figure 4 This is a flowchart illustrating the processing of external input command lines in an embodiment of this application.

[0026] Figure 5 This is a block diagram illustrating a protocol-based command configuration device according to an embodiment of this application.

[0027] Figure 6 This is a block diagram of an electronic device illustrated in an embodiment of this application. Detailed Implementation

[0028] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0029] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.

[0030] It should be understood that although the terms first, second, third, etc., may be used in this application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."

[0031] The embodiments described in this specification will now be described in detail.

[0032] See Figure 1 , Figure 1 This is a flowchart illustrating a method provided in an embodiment of this application. The method is applied to a configuration system consisting of a client and communication devices. As an example, the communication devices may be devices requiring protocol configuration, such as switches or firewalls; however, this embodiment is not specifically limited to these.

[0033] As an example, each communication device is equipped with a command prompt system at the factory. This system outputs command-line configuration prompts to the client when protocol configuration is required, based on the received command line for protocol configuration. This allows the configuration personnel to perform command-line configuration based on the prompts displayed on the client. Simultaneously, the communication device stores pre-configured protocol configuration association prompt structures for each protocol in its memory. These structures are determined based on the protocol's command-line manual. The protocols can be IP, the modular QoS command-line interface (MQC) for Quality of Service (QoS), access control lists (ACLs), etc., and this embodiment does not specifically limit the specific protocols.

[0034] In this embodiment, the protocol configuration suggestion structure for each protocol can take various forms, such as text, images (e.g., Figure 2 The embodiments in this application are not specifically limited to these.

[0035] Based on the two forms of protocol configuration auto-completion structures mentioned above, this embodiment offers two configuration methods: text import and block diagram drawing. The text import method involves storing the protocol's command-line manual text, including the protocol name, included functions, and command-line prompts for each function, according to a specified format. This forms the protocol configuration auto-completion structure. Here, the specified format can be, for example, the format of each command-line indentation, such as... Figure 2 The command line 1-1 shown is preceded by two spaces, and the command line 1-2 is preceded by two spaces. This application embodiment does not specifically limit the specified format, and it can be determined according to the actual situation.

[0036] The configuration method for drawing the block diagram is as follows: draw the node block diagram corresponding to the protocol based on the command line manual of the protocol. The block diagram stores the necessary information for command prompts (e.g., protocol name, functions included in the protocol, etc.). Arrows are used between the block diagrams to indicate the dependencies between command lines, forming the protocol configuration association prompt structure of the protocol.

[0037] In this embodiment, for each protocol, while generating its protocol configuration association prompt structure, the function item configuration prompt interface for each function item in the protocol is generally automatically generated. Of course, it may not be generated. This embodiment of the application does not specifically limit this.

[0038] When the protocol configuration association prompt structure is generated but the function item configuration prompt interface for each function item in the protocol is not generated at the same time, the configuration personnel can manually create at least one blank display interface on their operable terminal, and then fill in the protocol name, the function items included in the protocol, etc. according to the configuration personnel's configuration habits and save it to obtain the function item configuration prompt interface for each function item.

[0039] It should be noted that, in this embodiment, based on the function item configuration prompt interface that has already been generated for each function item in the communication device, the configuration personnel can also create their own function item configuration prompt interface according to their own configuration habits, so as to achieve the functions of reminder and prompt.

[0040] This application embodiment allows configuration personnel to generate a function item configuration prompt interface that suits their own habits through a customized mode. This interface can be used to familiarize or learn the protocol command line, and can also supplement implementation scenarios not provided by the manufacturer, thereby expanding usability.

[0041] Figure 2The image shows an example of how the protocol configuration associative hint structure is stored in the form of a graph. Figure 2 As shown, Figure 2 The “protocol” in this application can be a single protocol, such as the IP protocol, or it can be a combination of at least two protocols, such as the combined configuration of QoS MQC and ACL. This application does not specifically limit the protocol.

[0042] like Figure 2 As shown, the protocol includes: Function Item 1, Function Item 2, and so on. To implement each function item, a corresponding command line needs to be configured. For example, to implement Function Item 1, command line 1-1 needs to be configured, followed by command line 1-1-1 and command line 1-1-2; command line 1-2 needs to be configured, followed by command line 1-2-1 and command line 1-2-2; command line 1-3 needs to be configured, and command line 1-3-1 needs to be configured. However, there is a dependency when configuring command line 1-3-1; the configuration of command line 1-3-1 depends on the completion of the configuration of command line 1-1 and command line 1-2. Similarly, after configuring command line 1-4, there is also a dependency when configuring command line 1-4-1, which depends on the completion of the configuration of command line 1-3.

[0043] Here, dependency means that a command line can only be configured if other command lines have already been completed.

[0044] like Figure 1 As shown, the process may include the following steps:

[0045] S110: Based on the instruction to configure the target communication device according to the protocol, the client responds to the command line input operation and sends the target command line entered in the command line input operation to the target communication device; the target command line is used to configure the target communication device according to the protocol.

[0046] For example, in this embodiment, before configuring the target communication device, the client that can be operated by the configuration personnel first establishes a connection with the communication device. The method of establishing a connection between the client and the communication device is not limited, as long as communication between the client and the communication device can be achieved.

[0047] Here, the client (e.g., APP, mini-program, etc.) is deployed on a smart terminal. As an example, the smart terminal can be, for example, a computer, tablet, mobile phone, etc. This application embodiment is not specifically limited.

[0048] In this embodiment, when protocol configuration of the target communication device is required, the configuration personnel can click the target communication device identifier or enter the name of the target communication device in the command configuration interface of the client. The client obtains the instruction to configure the target communication device according to the click or input operation. The configuration personnel can also enter the target command line in the command configuration interface of the client. This target command line is used to configure the target communication device. The client responds to the command line input operation and sends the entered target command line to the target communication device.

[0049] Here, the target command line can be any command line corresponding to the protocol to be configured, or it can be a command line specified by the protocol. This application embodiment does not specifically limit it.

[0050] It should be noted that when designing the command lines for each protocol, each protocol's command line is unique, and the command lines for each protocol are different.

[0051] S120: Based on the target command line sent by the client, the target communication device determines the target protocol that matches the target command line from the associative prompt structure of the various protocols configured on the device.

[0052] For example, in this embodiment, any protocol configuration suggestion structure includes at least: a function item, the command line required by the function item, and the dependency relationship between the command lines required by the same function item or different function items.

[0053] Here, a function item refers to a function that can be implemented based on a protocol, such as packet transmission function, packet acknowledgment function, etc.; the command line required by a function item refers to the various command lines required to implement a function item.

[0054] Figure 2 The diagram shows the protocol configuration auto-completion prompt structure, as follows: Figure 2 As shown, the protocol includes: Function Item 1, Function Item 2, and so on. To implement each function item, a corresponding command line needs to be configured. For example, to implement Function Item 1, command line 1-1 needs to be configured, followed by command line 1-1-1 and command line 1-1-2; command line 1-2 needs to be configured, followed by command line 1-2-1 and command line 1-2-2; command line 1-3 needs to be configured, and command line 1-3-1 needs to be configured. However, there is a dependency when configuring command line 1-3-1; the configuration of command line 1-3-1 depends on the completion of the configuration of command line 1-1 and command line 1-2. Similarly, after configuring command line 1-4, there is also a dependency when configuring command line 1-4-1, which depends on the completion of the configuration of command line 1-3. All of the above command lines are the command lines required by Function Item 1.

[0055] In this embodiment, in step S120, based on the target command line, the target protocol matching the command line is determined from the protocol configuration association prompt structure configured by the device. Specifically, the command line matching the target command line is determined from the protocol configuration association prompt structure configured by the device, and the protocol to which the matching command line belongs is determined as the target protocol.

[0056] As an example, a configuration user enters a command line through the command configuration interface of their operable client. The client then sends this command line to the target communication device. Here, the command line entered by the configuration user may not be a complete command line; for example, only a part of the command line may be entered, or the command line entered by the configuration user may be complete but incorrect. After receiving the command line, the target communication device first determines whether the command line is correct. Specifically, it searches for it in the protocol configuration association prompt structure. If it is not found, the command line is considered incorrect and no action is taken. If it is found, the protocol corresponding to the protocol configuration association prompt structure containing the command line is taken as the target protocol.

[0057] As another embodiment, after receiving a command line, this device can obtain the target command line through conventional fuzzy matching, and then determine the target protocol to which the fuzzy-matched command line belongs.

[0058] S130: The target communication device determines the function item that matches the target command line from the protocol configuration association prompt structure of the target protocol based on the target command line, and outputs the function item configuration prompt interface corresponding to the function item that matches the target command line to the client for display.

[0059] For example, in this embodiment, the number of function items determined by the target communication device from the protocol configuration association prompt structure of the target protocol according to the target command line can be one or more, and this embodiment of the application does not specifically limit it.

[0060] In this embodiment, when at least two functional items matching the target command line are determined from the protocol configuration association prompt structure of the target protocol based on the target command line, the target communication device can send the functional item interfaces corresponding to each determined functional item to the client for display. The configuration personnel select one of the functional item interfaces displayed on the client for configuration. Here, the configuration personnel can select any functional item as the target functional item. After selection, the client responds to the functional item selection operation by sending the selected target functional item to the target communication device. The target communication device receives the target functional item fed back by the client and outputs the functional item configuration prompt interface corresponding to the target functional item based on the received target functional item. Here, the functional item configuration prompt interface output by the target communication device is floating above the command configuration interface.

[0061] In this embodiment, in step S130, the target communication device determines the function item matching the target command line from the protocol configuration association prompt structure of the target protocol based on the command line. Specifically, this can be done by searching for a function item containing the command line in the protocol configuration association prompt structure of the target protocol, using the command line as the keyword. Figure 2 As shown, for example, for command line 1-1, function item 1 and function item 2 are found.

[0062] For example, in this embodiment, the function item configuration prompt interface includes at least: a command line prompt area, which is used to prompt the command line required to be entered when configuring the function item, and the function item configuration prompt interface is used to instruct the function item to be configured according to the command line prompt area.

[0063] Here, the command line required when configuring a function item refers to the command line needed to implement the function item displayed in the configuration command line prompt area, that is, the command line required to complete the function item configuration.

[0064] like Figures 3-1 to 3-3 As shown, Figures 3-1 to 3-3 What is shown is Figure 2 The configuration prompt interface for function item 1 shown includes a command line prompt area. This area displays at least the following: the command line, its purpose, and its format. Figure 3-1 As shown: a. Command line 1-1 that needs to be configured; the function of the command is: ...; the command line format is: ...

[0065] In addition to the command-line prompt area mentioned above, the function item configuration prompt interface may also include: a protocol prompt area, a function item prompt area, and a page number prompt area. The protocol prompt area displays the name of the target protocol, and the function item prompt area displays the function items that match the target command line. For example, for... Figure 3-1 The protocol prompt area contains: Protocol: Protocol Name; the function prompt area contains: Function 1; the page number prompt area contains: Page 1 / 4.

[0066] The page number display area shows numbers based on the dependencies between command lines, divided by page number. When the configuration user enters the command "1-1", they will be directed to page 1. Figure 3-1 Only when all command lines on page 1 are configured successfully will page 1 automatically redirect to page 2, such as... Figure 3-2 The same principle applies to the rest. Because there is a dependency between page numbers, you can only switch to the feature configuration completion screen after all the preceding pages are in a completed state. Figure 3-4 .

[0067] This concludes the process. Figure 1 The process is shown below.

[0068] pass Figure 1 As can be seen from the process shown, in this embodiment, the target communication device determines the target protocol that matches the target command line for protocol configuration of the target communication device through the protocol configuration association prompt structure of each protocol configuration. Then, based on the protocol configuration association prompt structure of the target protocol, it determines the function item that matches the target command line and outputs the function item configuration prompt interface corresponding to the function item that matches the target command line to the client for display. This allows the configuration personnel to configure the function item according to the command line configuration steps prompted by the function item configuration prompt interface, avoiding configuration errors caused by neglecting the dependencies and order between command lines during manual configuration.

[0069] Furthermore, configuration can be performed through command-line configuration steps prompted by the function item configuration prompt interface, eliminating the need for configuration personnel to understand the configuration command lines for each protocol and the dependencies between each command line, thus improving configuration efficiency.

[0070] As an optional implementation of this application, the command prompt area includes at least one primary command prompt area, and each primary command prompt area displays at least: the primary command line required for configuring function items, the function of the primary command line, and the format of the primary command line;

[0071] For any level command line, if the level command line has at least one subordinate command line, the command line prompt area also includes the subordinate command line prompt area corresponding to each subordinate command line. Each subordinate command prompt area displays at least: the subordinate command line required for configuring the function item, the function of the subordinate command line, and the format of the subordinate command line.

[0072] For example, in this embodiment, a first-level command line refers to a command line that does not depend on other command lines that have already been configured when configuring it. A lower-level command line refers to a command line that depends on other command lines that have already been configured when configuring it, that is, other command lines that need to be configured after the first-level command line is configured.

[0073] For example, such as Figure 2 As shown, for Figure 2 The protocol shown has the following sub-command lines: command line 1-1, command line 1-2, and command line 1-3 are first-level command lines; command line 1-1-1 and command line 1-1-2 are subordinate command lines of command line 1-1; command line 1-2-1 and command line 1-2-2 are subordinate command lines of command line 1-2; command line 1-3-1 is subordinate command line of command line 1-3; and command line 1-4-1 is subordinate command line of command line 1-4.

[0074] Based on the above description, the command prompt area includes at least one first-level command prompt area, such as... Figure 3-1 As shown, the command prompt area includes two primary command prompt areas (i.e., the command prompt area containing command line 1-1 and the command prompt area containing command line 1-2), as follows: Figure 3-2 As shown, the command prompt area includes a first-level command prompt area (i.e., the command prompt area where commands 1-3 are located), such as... Figure 3-3 As shown, the command prompt area includes a first-level command prompt area (i.e., the command prompt area where commands 1-4 are located).

[0075] For any given level command line, if that level command line has at least one subordinate command line, then the command line prompt area also includes a subordinate command line prompt area corresponding to each subordinate command line. Each subordinate command prompt area displays at least: the subordinate command line required for configuring function items, the function of the subordinate command line, and the format of the subordinate command line. For example, the command line prompt area corresponding to a subordinate command line could be: Figure 3-1 The command prompt areas for command line 1-1-1, command line 1-1-2, command line 1-2-1, and command line 1-2-2 are shown in the image; as follows: Figure 3-2 The command prompt area where command line 1-3-1 is shown is located; as shown Figure 3-3 The command prompt area where command line 1-4-1 is located.

[0076] In this embodiment, each lower-level command line prompt area is hidden below the corresponding first-level command line prompt area, or each lower-level command line prompt area is displayed below the corresponding first-level command line prompt area.

[0077] When each lower-level command prompt is hidden below the corresponding first-level command prompt, the client responds to the lower-level command prompt display operation by displaying the lower-level command prompt below the corresponding first-level command prompt. Here, the lower-level command prompt display operation is implemented by the configuration personnel in the client's command configuration interface by clicking the relevant button.

[0078] In this embodiment, the prompt area of ​​the first-level command line corresponding to the first-level command line and the prompt areas of the lower-level command lines corresponding to different lower-level command lines are set in a set order. The set order is related to the dependency relationship of the command lines required when configuring the function item. That is, the set order refers to the order in which each command line is configured when configuring the function item. For example, first configure command line 1-1, then configure command lines 1-1-1 and 1-1-2.

[0079] As an optional implementation of this application, each command prompt area also has a command line status completion area. After the command line corresponding to the command prompt area is entered and the corresponding configuration is completed based on the entered command line, the target communication device sends configuration completion information to the client, so that the client displays a completion mark in the command line status completion area of ​​the command prompt area based on the configuration completion information.

[0080] In this embodiment, each command prompt area has a status completion area. The status completion area is used to indicate whether the corresponding command line input to the command prompt area has completed the corresponding configuration based on the input command line. If it has been completed, the target communication device sends configuration completion information to the client, so that the client displays a completion mark in the command line status completion area of ​​the command prompt area based on the configuration completion information. The mark information here can be, for example, "completed" or "√". If it has not been completed, no mark information is added to the status completion area.

[0081] When the status completion area of ​​all command line prompts displayed in the current function item configuration prompt interface shows a completed indicator, jump to the next function item configuration prompt interface, and configure based on the command lines required to be entered when configuring the function item as prompted by each command line prompt area displayed in the next function item configuration prompt interface;

[0082] The status completion area of ​​each command line prompt area in the configuration prompt interface for each function item displays a "completed" indicator, and then jumps to the function item configuration completion interface. The function item configuration completion interface includes at least: the function item status completion area. When the status completion area of ​​the command line prompt area in all function item configuration prompt interfaces displays a "completed" indicator, the function item status completion area displays a "completed" indicator.

[0083] For example, in this embodiment, when the status completion area of ​​all command line prompt areas displayed in the current function item configuration prompt interface shows a completion mark, it indicates that all command lines displayed in the current function item configuration prompt interface have been configured. Then, the user jumps to the next function item configuration prompt interface, so that the configuration personnel can configure the function item based on the command lines required to be entered when configuring the function item, as prompted by each command line prompt area displayed in the next function item configuration prompt interface.

[0084] For example Figure 3-1 and Figure 3-2 As shown, when Figure 3-1 When the status completion area of ​​all command-line prompts in the configuration prompt interface shows a "completed" indicator, it will automatically jump to... Figure 3-2 The interface showing the configuration prompts for the shown functions allows configuration personnel to... Figure 3-2 Configure the functions using the command lines shown in the configuration prompt interface.

[0085] In this embodiment, the status completion area of ​​each command line prompt area displayed in the configuration prompt interface of each function item displays a completed indicator, and then jumps to the function item configuration completion interface. Here, the function item configuration completion interface includes at least: the function item status completion area. When the status completion area of ​​the command line prompt area of ​​all function item configuration prompt interfaces displays a completed indicator, the function item status completion area displays a completed indicator.

[0086] like Figure 3-4 As shown, Figure 3-4 Here is an example of a configuration completion interface for a function item. This interface may include: a protocol prompt area, a function item prompt area, a page number prompt area, and a status completion area. The protocol prompt area displays the following information: Protocol: Protocol Name; the function item prompt area displays the following information: Function Item 1; and the page number prompt area displays the following information: Page Number 4 / 4. It should be noted that the value displayed in the page number prompt area of ​​the function item configuration completion interface is the value displayed in the page number prompt area of ​​the last function item configuration prompt interface corresponding to that function item plus 1.

[0087] As an optional implementation of this application, the protocol-based command configuration method further includes:

[0088] When the target communication device is unable to perform the corresponding configuration based on any command line prompted on the function item configuration prompt interface sent by the target command line or the client, it outputs a configuration failure prompt to the client for display.

[0089] For example, in this embodiment, if the target communication device cannot perform the corresponding configuration based on any command line prompted on the function item configuration prompt interface sent by the target command line or the client, it outputs a configuration failure prompt. The configuration failure prompt can be displayed on the client in the form of a pop-up window, specifically, floating on the command configuration interface. The configuration failure prompt is used to indicate that a reference command line should be entered first for configuration. The reference command line refers to the command line that needs to be configured before the command line that failed to configure.

[0090] For example, such as Figure 3-1 As shown, after configuring all the command lines on page 1, i.e., command line 1-1, command line 1-1-1, command line 1-1-2, command line 1-2, command line 1-2-1, and command line 1-2-2, it will automatically jump to page 2 (i.e., ... Figure 3-2 Configure commands 1-3 first. However, if you configure the command line on page 2 first, then when configuring commands 1-3, it will be based on... Figure 2 We know that command line 1-3-1 depends on command line 1-1 and command line 1-2, but command line 1-3 does not have this dependency. When the configuration user enters command line 1-3, it will automatically redirect to page 2. Figure 3-2The page is marked as complete. At this point, page 1 is not configured and command 1-3-1 cannot be configured, which prevents the user from jumping to page 3. A configuration failure message is output to prompt the user to first enter the reference command line for configuration. The reference command line refers to the command line that needs to be configured before the command line that failed to be configured. Specifically, the user can use the left arrow key to manually jump to the next page and complete the configuration of the command line that needs to be configured before the command line that failed to be configured.

[0091] Figure 4 This is a flowchart illustrating the processing of an external input command line in an embodiment of this application. The client is connected to a target communication device, and the target communication device is configured with a command prompt system. Figure 4 As shown, firstly, when protocol configuration of the target communication device is required, the configuration personnel enter the target command line for protocol configuration on the client. The client then sends the target command line to the target communication device. Upon receiving the target command line, the target communication device determines whether the configuration was successful. If the configuration failed, the target communication device sends an error message to the client and does not process the command line. If the configuration was successful, the command prompt system is activated, navigating to the configuration prompt interface for the corresponding function item of the target command line. After the configuration is completed, the status of the target command line is changed to "completed".

[0092] At this point, the system scans the configuration prompt interface for any other command lines that have not been configured. If any command lines have not been configured, the system checks for any dependencies. If a dependency prevents configuration from being performed, the configuration personnel can use the left arrow key (←) to view the configuration dependencies of the previous configuration prompt interface, or they can directly use the left arrow key to start configuring from the first page of the configuration prompt interface.

[0093] If all command lines in the current function item configuration prompt interface have been configured successfully, the system will jump to the next function item configuration prompt interface according to the logical relationship. If there are still previous function item configuration prompt interfaces that have not been configured, the configuration personnel need to return to the previous function item configuration prompt interface and enter the command line required for that function item configuration prompt interface. If the status completion area of ​​all command lines in all function item configuration prompt interfaces is in the configuration success state, the system will enter the final interface and prompt that the configuration is successful. At this time, all function items of the protocol have been configured and the protocol has taken effect.

[0094] This concludes the process. Figure 4 Description of the process shown.

[0095] Corresponding to the embodiments of the foregoing methods, this specification also provides embodiments of the apparatus and the terminal to which it is applied.

[0096] like Figure 5 As shown, Figure 5 This is a block diagram illustrating a protocol-based command configuration apparatus according to an embodiment of this application. The apparatus includes:

[0097] The target command line sending module is used by the client to respond to command line input operations based on instructions for protocol configuration of the target communication device, and to send the target command line entered in the command line input operation to the target communication device; the target command line is used to configure the protocol of the target communication device;

[0098] The target protocol determination module is used by the target communication device to determine the target protocol that matches the target command line based on the target command line sent by the client from the protocol configuration association prompt structures configured in the device. Each protocol configuration association prompt structure includes at least: a function item, the command line required by the function item, and the dependency relationship between the command lines required by the same function item or different function items.

[0099] The command-line configuration module is used by the target communication device to determine the function item matching the target command line from the protocol configuration association prompt structure of the target protocol based on the target command line, and output the function item configuration prompt interface corresponding to the function item matching the target command line to the client for display; the function item configuration prompt interface includes at least: a command line prompt area, which is used to prompt the command line required to be entered when configuring the function item, and the function item configuration prompt interface is used to instruct the function item to be configured according to the command line prompt area.

[0100] As an optional implementation of this application, the command prompt area includes at least one primary command prompt area, and each primary command prompt area displays at least: the primary command line required for configuring function items, the function of the primary command line, and the format of the primary command line;

[0101] For any first-level command line, if the first-level command line has at least one subordinate command line, the command line prompt area also includes the subordinate command line prompt area corresponding to each subordinate command line. Each subordinate command prompt area displays at least: the subordinate command line required for function item configuration, the function of the subordinate command line, and the format of the subordinate command line. The first-level command line prompt area corresponding to the first-level command line and the subordinate command line prompt areas corresponding to different subordinate command lines are set in the order of their settings. The order of their settings is related to the dependency relationship of the command lines required for function item configuration.

[0102] As an optional implementation of this application, each lower-level command prompt area is hidden under the first-level command prompt area corresponding to each lower-level command prompt area. In response to the lower-level command prompt area display operation, the client displays the lower-level command prompt area below the first-level command prompt area corresponding to the lower-level command prompt area display operation.

[0103] Alternatively, each lower-level command prompt area is displayed below the corresponding first-level command prompt area.

[0104] As an optional implementation of this application, each command prompt area also has a command line status completion area. The command line status completion area is used to indicate whether the corresponding configuration has been completed based on the input command line after the command line corresponding to the command prompt area is entered. After the command line corresponding to the command prompt area is entered 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 a completion mark in the command line status completion area of ​​the command prompt area based on the configuration completion information.

[0105] As an optional implementation of this application embodiment, the function item configuration prompt interface further includes: a protocol prompt area, a function item prompt area, and a page number prompt area. The protocol prompt area is used to display the name of the target protocol; the function item prompt area is used to display function items that match the target command line; the page number displayed in the page number prompt area is divided according to the dependency relationship between the command lines displayed in the function item configuration prompt interface; the protocol-based command configuration device further includes:

[0106] The first interface jump module is used to jump to the next function item configuration prompt interface when the status completion area of ​​all command line prompt areas displayed in the current function item configuration prompt interface shows a completed indicator, so as to perform configuration based on the command lines required to be entered when configuring the function item as prompted by each command line prompt area displayed in the next function item configuration prompt interface.

[0107] The second interface jump module is used to display a completed status indicator in the status completion area of ​​each command line prompt area displayed in the configuration prompt interface for each function item, and jump to the configuration completion interface for the function item. The configuration completion interface for the function item includes at least: a status completion area for the function item. When the status completion area of ​​the command line prompt area of ​​all function item configuration prompt interfaces displays a completed status indicator, the status completion area for the function item displays a completed status indicator.

[0108] As an optional implementation of this application, the protocol-based command configuration device further includes:

[0109] The configuration failure prompt module is used to output a configuration failure prompt to the client for display when the target communication device cannot perform the corresponding configuration based on any command line prompted on the function item configuration prompt interface sent by the target command line or the client. The configuration failure prompt is used to indicate that a reference command line should be entered first for configuration. The reference command line is the command line that needs to be configured before the configuration failure command line.

[0110] As an optional implementation of this application, the target command line is entered in the command configuration interface of the client; the function item configuration prompt interface and the configuration failure prompt are both floating in the command configuration interface.

[0111] As an optional implementation of this application, if at least two function items matching the command line are determined from the protocol configuration association prompt structure of the target protocol based on the command line, the protocol-based command configuration device further includes:

[0112] The function item interface sending module is used by the target communication device to send the function item interface corresponding to each determined function item to the client for display.

[0113] The function selection module is used by the client in response to the function selection operation to send the selected target function to the target communication device. The function selection operation is performed on the interface of each function displayed on the client.

[0114] The target function item receiving module is used for the target communication device to receive target function items fed back by the client.

[0115] The command-line configuration module outputs a configuration prompt interface for the function items that match the command-line options, including:

[0116] Output the configuration prompt interface for the function item corresponding to the target function item.

[0117] The specific implementation process of the functions and roles of each unit in the above device can be found in the implementation process of the corresponding steps in the above method, and will not be repeated here.

[0118] This completes the work on... Figure 5 Description of the device shown.

[0119] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative, and the modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of the solution in this specification according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0120] Correspondingly, embodiments of this application also provide Figure 5 The hardware structure diagram of the device shown is as follows: Figure 6 As shown, the electronic device can be a device implementing the above-described method. Figure 6 As shown, the hardware architecture includes a processor and memory.

[0121] The memory is used to store machine-executable instructions;

[0122] The processor is used to read and execute machine-executable instructions stored in the memory to implement the corresponding protocol-based command configuration method embodiment shown above.

[0123] As one embodiment, the memory can be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, etc. For example, the memory can be volatile memory, non-volatile memory, or similar storage media. Specifically, the memory can be RAM (Random Access Memory), flash memory, storage drives (such as hard disk drives), solid-state drives, any type of storage disk (such as optical discs, DVDs, etc.), or similar storage media, or combinations thereof.

[0124] This concludes the process. Figure 6 Description of the electronic device shown.

[0125] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.

[0126] Other embodiments of this specification will readily occur to those skilled in the art upon consideration of the specification and practice of the invention claimed herein. This specification is intended to cover any variations, uses, or adaptations that follow the general principles of this specification and include common knowledge or customary techniques in the art not claimed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this specification are indicated by the following claims.

[0127] It should be understood that this specification is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this specification is limited only by the appended claims.

[0128] The above description is merely a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this specification should be included within the scope of protection of this specification.

Claims

1. A protocol-based command configuration method, characterized in that, The method includes: Based on an instruction to configure the target communication device according to a protocol, the client responds to a command-line input operation and sends the target command line entered in the command-line input operation to the target communication device; the target command line is used to configure the target communication device according to a protocol. Based on the target command line sent by the client, the target communication device determines the target protocol that the target command line matches from the protocol configuration association prompt structures configured in the device. Each protocol configuration association prompt structure includes at least: a function item, the command line required by the function item, and the dependency relationship between the command lines required by the same function item or different function items. The protocol configuration association prompt structure of each protocol is determined based on the command line manual of that protocol. The target communication device determines the function item matching the target command line from the protocol configuration association prompt structure of the target protocol based on the target command line, and outputs the function item configuration prompt interface corresponding to the function item matching the target command line to the client for display; the function item configuration prompt interface includes at least: a command line prompt area, which is used to prompt the command line required to be entered when configuring the function item, and the function item configuration prompt interface is used to instruct the function item to be configured according to the command line prompt area.

2. The method according to claim 1, characterized in that, The command line prompt area includes at least one first-level command line prompt area, and each first-level command line prompt area displays at least: the first-level command line required for configuring function items, the function of the first-level command line, and the format of the first-level command line; For any first-level command line, if the first-level command line has at least one subordinate command line, then the command line prompt area also includes a subordinate command line prompt area corresponding to each subordinate command line. Each subordinate command prompt area displays at least: the subordinate command line required for function item configuration, the function of the subordinate command line, and the format of the subordinate command line; wherein, the first-level command line prompt area corresponding to the first-level command line and the subordinate command line prompt areas corresponding to different subordinate command lines are set in a set order, and the set order is related to the dependency relationship of the command lines required for function item configuration.

3. The method according to claim 2, characterized in that, Each lower-level command prompt area is hidden below the corresponding first-level command prompt area. When the client responds to the lower-level command prompt area display operation, it displays the lower-level command prompt area below the first-level command prompt area corresponding to the lower-level command prompt area display operation. Alternatively, each lower-level command prompt area is displayed below the corresponding first-level command prompt area.

4. The method according to claim 1 or 2, characterized in that, Each command prompt area also has a command line status completion area, which indicates whether the corresponding configuration has been completed based on the input command line after the command line corresponding to the command prompt area is entered. After the command line corresponding to the command prompt area is entered 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 a completion mark in the command line status completion area of ​​the command prompt area based on the configuration completion information.

5. The method according to claim 4, characterized in that, The function item configuration prompt interface further includes: a protocol prompt area, a function item prompt area, and a page number prompt area. The protocol prompt area is used to display the name of the target protocol; the function item prompt area is used to display function items that match the target command line; the page number prompt area displays the page number based on the dependency relationships between command lines displayed in the function item configuration prompt interface; the method further includes: When the status completion area of ​​all command line prompts displayed in the current function item configuration prompt interface shows a completed indicator, jump to the next function item configuration prompt interface, and configure based on the command lines required to be entered when configuring the function item as prompted by each command line prompt area displayed in the next function item configuration prompt interface; The status completion area of ​​each command line prompt area in the configuration prompt interface for each function item displays a "completed" indicator, and then jumps to the function item configuration completion interface. The function item configuration completion interface includes at least a function item status completion area. When the status completion area of ​​the command line prompt area in all function item configuration prompt interfaces displays a "completed" indicator, the function item status completion area displays a "completed" indicator.

6. The method according to claim 1, characterized in that, The method further includes: When the target communication device is unable to perform the corresponding configuration based on any command line prompted on the function item configuration prompt interface sent by the target command line or the client, it outputs a configuration failure prompt to the client for display; the configuration failure prompt is used to indicate that a reference command line should be entered first for configuration, and the reference command line refers to the command line that needs to be configured before the configuration failure command line.

7. The method according to claim 1, characterized in that, The target command line is entered in the command configuration interface of the client; the function item configuration prompt interface and the configuration failure prompt are both floating in the command configuration interface.

8. The method according to claim 1, characterized in that, If at least two function items matching the command line are determined from the protocol configuration predictive prompt structure of the target protocol based on the command line, the method further includes: The target communication device will send the interface of each function item to the client for display. In response to a function selection operation, the client sends the selected target function to the target communication device. The function selection operation is performed on the interface of each function displayed on the client. The target communication device receives the target function items fed back by the client; The function item configuration prompt interface corresponding to the function item that matches the command line output includes: Output the configuration prompt interface for the function item corresponding to the target function item.

9. A protocol-based command configuration device, characterized in that, include: The target command line sending module is used by the client to respond to the command line input operation based on the instruction to configure the target communication device according to the protocol, and to send the target command line entered in the command line input operation to the target communication device; The target command line is used to configure the protocol of the target communication device; The target protocol determination module is used by the target communication device to determine the target protocol that matches the target command line based on the target command line sent by the client, from the protocol configuration association prompt structure configured in the device. The configuration suggestion structure for any protocol includes at least: a function item, the command line required by the function item, and the dependencies between the command lines required by the same or different function items; the configuration suggestion structure for each protocol is determined based on the command line manual of that protocol. The command-line configuration module is used by the target communication device to determine the function item matching the target command line from the protocol configuration association prompt structure of the target protocol based on the target command line, and output the function item configuration prompt interface corresponding to the function item matching the target command line to the client for display; the function item configuration prompt interface includes at least: a command line prompt area, which is used to prompt the command line required to be entered when configuring the function item, and the function item configuration prompt interface is used to instruct the function item to be configured according to the command line prompt area.

10. An electronic device, characterized in that, Electronic devices include: processors and memory; The memory is used to store machine-executable instructions; The processor is configured to read and execute machine-executable instructions stored in the memory to implement the method as described in any one of claims 1 to 8.