CN1256663C - Management method possessing real time helping function in insertion type system - Google Patents

Management method possessing real time helping function in insertion type system Download PDF

Info

Publication number
CN1256663C
CN1256663C CN 03118862 CN03118862A CN1256663C CN 1256663 C CN1256663 C CN 1256663C CN 03118862 CN03118862 CN 03118862 CN 03118862 A CN03118862 A CN 03118862A CN 1256663 C CN1256663 C CN 1256663C
Authority
CN
China
Prior art keywords
order
command
catalogue
real
parameter
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.)
Expired - Fee Related
Application number
CN 03118862
Other languages
Chinese (zh)
Other versions
CN1534460A (en
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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN 03118862 priority Critical patent/CN1256663C/en
Publication of CN1534460A publication Critical patent/CN1534460A/en
Application granted granted Critical
Publication of CN1256663C publication Critical patent/CN1256663C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention provides a command line management method possessing real time helping function in an insertion type system. A command line terminal display comprises instruction input display and information prompting display; a command array is a tree-shaped data structure and is composed of various nodes of a root, a catalogue, commands, keywords and parameters; each command is composed of a keyword and a parameter; commands of near functions, similar functions or associated functions are arranged in the same catalogue, and the catalogue realizing different functions is arranged on root nodes of a command matrix; when a system receives a user's input in a command input zone, command elements and the searching and the matching of the parameters are simultaneously triggered; the system matches suitable keywords or parameters in the command array according to the contents input by the user; once the matching is successful, the system gives matched contents in an information prompting zone; if the matching is not successful, the system gives wrong prompt in the information prompting zone.

Description

The command line management method that has real-time help function in a kind of embedded system
Technical field
The present invention relates to have in a kind of embedded system the command line management method of real-time help function, a kind of Command Line Interface way to manage at embedded systems such as conventional network equipment is provided, the method that promptly a kind of new real-time online helps.
Background technology
Under present digital network environment, the management method of embedded systems such as the network equipment divided with form mainly contain dual mode: 1, the Command Line Interface way to manage of being undertaken by serial ports; 2, the Windows graphical interfaces way to manage of being undertaken by network interface.
Though the order line way to manage do not have Windows graphical interfaces mode directly perceived, clear, be imbued with aesthetic feeling, it is relatively simple, directly that it possesses administration interface, the advantage that consume system resources is less.For those network size smaller applications, perhaps engineering staff's occasion of opening, debugging, the order line way to manage is not lost a kind of simple and efficient selection yet.Therefore, the equipment supplier generally can provide these two kinds of way to manages simultaneously in different application.
The order line way to manage also can be divided into two types haply: 1, direct input command; 2, adopt menu mode to select.
First kind of command line mode, promptly directly input command is more flexible, and the main problem of existence is, because the function of embedded systems such as the network equipment becomes increasingly complex, order with and required parameter also become increasingly complex, the user need remember and grasp hundreds and thousands of orders, and is very inconvenient.For this reason, the manufacturer of some main flows improves, and some help command are provided.
For example, in the at present popular order line style, provide " help " order (or similarly order), the information of offering help; Provide "? " instruction, when keying in order, be used "? " key, possible content inventory after the content keyed in can be pointed out by system; " Tab " is provided instruction, when keying in order, is used " Tab " key, system can be the rest parts polishing.More than these improve, improved the friendly of command line interface to a certain extent.But, when obtaining help, need to cooperate some other instruction, still not very convenient.
Second kind of command line mode, the form input instruction and the parameter that promptly adopt menu to select.This method has improved the intuitive of order line, and the user by the menu item of selecting to design, just can finish management function basically without the memoric instruction grammer.But this method exists efficiency, and an instruction that has a plurality of parameters often needs user's choice menus layer by layer, and the user is easy to get lost in the menus at different levels.Simultaneously, because this mode possesses some graphical interfaces, also increased complexity of developing.
Summary of the invention
Purpose of the present invention is at the deficiency of embedded system order line way to manages such as above-mentioned conventional network equipment, the method that provides a kind of new real-time online to help.The user does not need other instructions, when keying in each time, promptly can obtain the information of the remainder of key entry in real time.
Technical scheme of the present invention:
The command line management method that has real-time help function in a kind of embedded system of the present invention comprises order line hyper terminal display mode, the definition and the storage of order, the searching and mate of command element and parameter thereof, its order line hyper terminal shows that the input demonstration and the information indicating that comprise instruction show two parts content, definition and storage to system command are to take the order matrix-style, the order matrix is a tree-like data structure, it is by root, catalogue, order, the various nodes of key word and parameter are formed, their hierarchical relationship is: each bar order is made up of key word and parameter, function is close, similar or relevant order is organized in the same catalogue, and the catalogue that realizes difference in functionality is installed on the order matrix root node, search and the matching process of command element and parameter thereof are: when system is instructing the input field to receive user's input, searching and mate while trigger command element and parameter thereof, the content that system has imported according to the user, suitable key word or the parameter of coupling in the mentioned order matrix, in case the match is successful, system provides the content of coupling in the information district, if coupling is unsuccessful, then provide bomp in the information district.
The command line management method that has real-time help function in the described embedded system, the order line way to manage is divided into two zones with the order line hyper terminal, two function differences that the zone has, the former offers the user specially and imports usefulness, and the latter then supplies the real-time display reminding of system.
The command line management method that has real-time help function in the described embedded system, being written into by dual circulation of matrix of order constitutes, and a circulation is the order catalogue that is written into all definition, and another is the order that is written on all assigned catalogues.
The command line management method that has real-time help function in the described embedded system, it is written into order circulation quilt cover and is used in and is written in the order catalogue circulation, and promptly it is to be written into order catalogue round-robin ingredient.
The command line management method that has real-time help function in the described embedded system, the order of finishing a catalogue is written into will sort to the order on this catalogue afterwards, and ordering is to arrange according to the lexicographic order of the key word of order and parameter.
The command line management method that has real-time help function in the described embedded system, when its order matrix is written into an order of flow process installation catalogue, set up a call number at first will for order catalogue to be installed, the index of different catalogues is unique, second step was distributed a memory headroom to this order catalogue, be used for installation order, the entrance function of the order on this catalogue is installed in the flow process below the 3rd step specified command matrix.
The command line management method that has real-time help function in the described embedded system, search and the matching process of its command element and parameter thereof are counted with counting variable i, when system received a space, variable i added 1, and i represents which command element the instruction that the active user imports is.If the user imports the space continuously, count value only adds up once.When user input be the character of ASCII character between 31 and 127 time, what expression was imported is one of them character of a command element, need to use and search algorithm, compare with i the element that is installed in the order under the current directory, list all command element that the match is successful, if the match is successful for neither one, then show error message.
Beneficial effect:
This command line management method has improved traditional order line way to manage and has used deficiency not directly perceived, inconvenient.Adopt this command line management method, the user can get help in real time in the information indicating district of screen when each character of instruction is keyed in the instruction input field of screen.The user need not use other instruction, just can very clear and definite knowing in real time, and remaining operation part has those may situation, and whether input is correct or the like.Can be described as and offer a kind of real-time online help function of user, improved the efficiency of management.Also notice and traditional order line way to manage compatibility simultaneously.
Description of drawings
Fig. 1 is the institutional framework synoptic diagram of definition command system.
Fig. 2 is the process flow diagram flow chart that is written into of realizing the order matrix.
Fig. 3 is the process flow diagram of installation order catalogue.
Fig. 4 is the process flow diagram of installation order.
Fig. 5 is suitable key word or the parameter main flow chart of coupling in the order matrix.
Embodiment
The problem that mainly will solve of the present invention is:
The definition and the storage of a, order matrix and command element;
The searching and mate of b, command element and parameter thereof;
What c, hyper terminal showed makes rational planning for and the cursor positioning technology;
This order line way to manage is furtherd investigate and is analyzed traditional embedded system administrative skill, has taken into full account the compatibility with traditional command line mode in design; Solved the efficiency that the real-time online help system exists well; Also paid close attention to the both artistic and practical of interface simultaneously.Technical scheme is made up of three parts, specifies as follows:
What one, hyper terminal showed makes rational planning for;
This order line way to manage is divided into two zones with the order line hyper terminal.For example, 0 row~21 of screen can be gone as the input field of instructing; 22 row~23 of screen are gone as the information district.(certainly, also can unconspicuous subregion, but directly in the next line display reminding information of each bar command input line.)
Two function differences that the zone has, the former offers the user specially and imports usefulness; The latter then supplies the real-time display reminding of system.Divide owing to carried out above screen area, just need cursor to come and go between these two zones, the cursor positioning technology becomes key.In this programme, used the ANSI output format of standard to carry out the cursor positioning technology.
Two, the definition of order matrix and command element:
All instructions that system provides are classified,, instruction is associated with in the different catalogues according to the relevant principle of function.Also need simultaneously the parameter of having planned that each order need be carried, each parameter (comprising help information) and instruction is associated.
Fig. 1 is the institutional framework synoptic diagram that has defined command system:
The order matrix of this programme definition is a tree-like data structure.It is made up of 5 kinds of nodes such as root, catalogue, order, key word and parameters.Their hierarchical relationship is: each bar order is made up of key word and parameter; The order that function is close, similar or relevant is organized in the same catalogue; And the catalogue that realizes difference in functionality is installed on the order matrix root node.
Three, being written into of order matrix:
Whole embedded system carries out need carrying out the initialization of order matrix initialized the time, promptly realizes the process that is written into of order matrix, and flow process is seen Fig. 2:
Arthmetic statement:
The loading flow process of order matrix is made of the order catalogue of all definition of first CYCLIC LOADING (loading command catalogue flow process is seen Fig. 3) dual circulation; It two is: the order on all assigned catalogues of CYCLIC LOADING (the loading command flow process is seen Fig. 4).The loading flow process of the order matrix of being described by Fig. 2 can be seen, has applied mechanically the order loaded cycle in the order catalogue loaded cycle.Specify as follows:
1, loading command catalogue circulation:
System at first checks whether also have the order catalogue of definition not load.If in the time of the order catalogue that discovery is not written in addition, will call the flow process of loading command catalogue, be written into a uninstalled order catalogue.Enter the loading command circulation then, corresponding order is installed on this catalogue.Finish this and take turns after the circulation, system continues to check whether also have the order catalogue of definition not load.If also have, then begin the circulation of a new round, load a uninstalled catalogue, and corresponding order is installed on this catalogue.Loaded order catalogue (comprising all orders in the order catalogue) in the order matrix of finishing all definition up to system's identification.Since then, finished the loading of order matrix.
2, loading command circulation:
Loading command circulation quilt cover is used in the circulation of loading command catalogue, and promptly it is a loading command catalogue round-robin ingredient.Flow process is as follows: system at first checks whether also have the order of definition not load in this catalogue.If during the order that discovery is not written in addition, will call the flow process of loading command, be written into a uninstalled order.Finish this and take turns after the circulation, system continues to check whether also have the order of definition not load.If also have, then begin the circulation of a new round, load a uninstalled order.All orders of finishing in this order catalogue have been loaded up to system's identification.
To sort to the instruction on this catalogue afterwards.Ordering is according to the key word of order and the lexicographic order of parameter, and doing like this is can adopt in the information of offering help in order move in system to search algorithm efficiently, thus the efficient of raising system.For sort algorithm and search algorithm, the deviser can take some classic algorithm in " data structure " flexibly, repeats no more here.
The flow process of installation order catalogue:
The flow process of this flow process and the installation order introduced has below constituted the order matrix jointly and has been written into flow process.Process flow diagram such as Fig. 3:
Arthmetic statement:
When the uninstalled order catalogue of one of system discovery, call this flow process an order catalogue is installed.At first, set up a call number for order catalogue to be installed.Index that it should be noted that different catalogues is unique.The order catalogue of promptly having ordered the directory index unique identification.Second step, distribute a memory headroom to this order catalogue, be used for installation order.The size of allocation space can be according to developer's needs definition.In the 3rd step, the entrance function of the order on this catalogue is installed in the flow process below the specified command matrix.Promptly tell system, command set on this catalogue is installed with what function.Function below being exactly in fact.
The flow process of installation order:
The flow process of this flow process and the installation order catalogue introduced has above constituted the order matrix jointly and has been written into flow process.Process flow diagram such as Fig. 4:
Arthmetic statement:
When the order of whether installing on the system discovery assigned catalogue, call this flow process an order is installed.At first, whether the order catalogue of systems inspection appointment exists, promptly whether initialization designated directory.The purpose of checking is in order to guarantee enough memory headroom installation orders.If the order catalogue of appointment is not carried out initialization, then print error message, withdraw from then.
If the order catalogue of appointment exists, then in the order space that the key word and the parameter of order is kept at appointment, and set up good order and key word 1~n, the mapping relations between parameter 1~n.Where or the like set up order and key word 1~n, in fact the mapping relations between parameter 1~n are exactly the system that tells, what each key word and the parameter of this instruction be respectively, be kept at the relevant information of memory headroom.
After good each key word of mapping and parameter, need to specify the execution function of good this order.When just telling system to work as the user to key in this instruction, call any function and carry out this instruction, finish the function of this instruction.
When system discovery also is not written into when finishing all order catalogues, will circulate to carry out this flow process, be written into a uninstalled order catalogue earlier.Installation order (comprising the setting of key word and parameter) on this catalogue then is up to install all orders on this catalogue.To sort to the instruction on the catalogue afterwards.Ordering is according to the key word of instruction and the lexicographic order of parameter, and doing like this is can adopt in the information of offering help in order move in system to search algorithm efficiently, thus the efficient of raising system.
Four, the searching and mate of Ming Ling key word and parameter:
When system in instruction when the input field receives user's input, searching and mate the content that system has imported according to the user, suitable key word or the parameter of coupling in the mentioned order matrix while trigger command element and parameter thereof; In case the match is successful, system provides the content of coupling in the information district; If coupling is unsuccessful, then provide bomp in the information district.
Fig. 5 is suitable key word or the main process flow diagram of parameter of coupling in the order matrix:
Arthmetic statement:
This flow process is made up of an endless loop.System opens a task, will wait for the also input of listen for user always.Receive the character of user's input when system after, handle accordingly according to user's input.Here used counting variable i (i is since 1 counting), what its represented active user's input is which command element of instruction.Suppose that current command element is the 5th, at this moment i=5.When system receives a space, mean that the nonspace character of input is the 6th command element thereafter, so i=6.If the user imports the space continuously, count value only adds up once.
If user's input is the character of ASCII character between 31 and 127, what expression was imported is one of them character of a command element, so, need to use and search algorithm, compare with i the element that is installed in the order under the current directory, list all command element that the match is successful,, then show error message if the match is successful for neither one.For searching algorithm, the deviser can take some classic algorithm in " data structure " flexibly, repeats no more here.
If user's input is the space, the current command element (key word or parameter) of expression order has been imported and has been finished, and later input is the Next Command element.
If input is enter key, represent that current order has been imported to finish this order of execution function operation of appointment when then being invoked at this order of installation.
System designer can also define some other input character, finishes specific treatment scheme.Here repeat no more.
Five, the load-on module main flow source code of order matrix:
Command_matrix_init () { int dir_index, command_index; / * initializing variable */for (dir_index=1; Dir_index<=_ MAX_DIR_INDEX; Dir_index++)/* installation order catalogue circulation */{ install_dir (dir_index); / * installation order catalogue dir_index* // * installation order circulation */for (command_index=1; Command_index<=_ MAX_COMMAND_INDEX; Command_index++) { install_command (dir_index, command_index); / * on dir_index order catalogue installation order command_index*/sort_command (dir_index); / * to the command history on the order catalogue dir_index sort */
Six, operating process example:
System definition an Admin catalogue, two orders are wherein arranged, be respectively " cd " and " clear " order." cd " order comprises key word " cd " and parameter " ../device/fdb/igmp/port/service/snmp/stp/vlan ", and "/" wherein represents optional parameter.The result of " cd " command execution enters corresponding catalogue.For example, the user wishes to enter the Service catalogue, and command line mode in the past is directly input " cdservice ", carriage return then behind current prompt.The user need remember this instruction.The command line mode that is to use this programme to provide below:
According to above-mentioned designing requirement, initialization command matrix in system initialization is installed " Admin " catalogue, and above-mentioned two instructions are installed on this catalogue.Open a task simultaneously, the input of snoop command row, and handle accordingly.
1. the user keys in " c ", system matches to two command element, and corresponding is " cd " or " clear " in the possible instruction of prompting of information district, system wait user's further input.
2. the user then keys in " d ", system matches instruction " cd ", and wait for input parameter.
3. when the user then keys in " " (space bar); System thinks that first command element has been imported and finishes that the command element (parameter) below the prompting of information district may be " .. ", " device ", " fdb ", " igmp ", " port ", " service ", " snmp ", " stp " or " vlan ".
4. the user then keys in " s ", and system begins to mate in the 2nd command element of order, and information district prompting this moment possible parameter be " service ", " snmp " or " stp ".
5. the user then keys in " e ", and system continues to mate in the 2nd command element of order, information district prompting this moment possible parameter have only " service ".At this moment, directly carriage return of user enters " Service " catalogue.
6 users are key entry<cr then〉(enter key), " cd service " instruction runs succeeded.

Claims (4)

1. the command line management method that has real-time help function in the embedded system comprises searching and mating of the definition of system command and storage, order line hyper terminal display mode, command element and parameter thereof, and the step of this method is:
1) function of Implementation of Embedded System is analyzed, realized the definition of system command;
2) with the institutional framework of matrix form, order line is loaded in the storage space, waits for inquiry in real time;
3) the order line hyper terminal is divided into instruction input field and real-time display reminding district;
4) when system was instructing the input field to receive user's input, system carried out searching of command element and parameter thereof and mates, and provides prompting according to matching result in real time in the information district.
2. the command line management method that has real-time help function in the embedded system according to claim 1, it is characterized in that: the definition of system command and storage are to take the order matrix-style, the order matrix is a tree-like data structure, it is made up of the various nodes of root, catalogue, order, key word and parameter, and the step that is written into of order matrix is:
1) order matrix root node initialization;
2) installation order catalogue;
3) order on this catalogue is sorted.
3. the command line management method that has real-time help function in the embedded system according to claim 1, it is characterized in that: the order line hyper terminal is divided into instruction input field and real-time display reminding district, the former offers the user specially and imports usefulness, and the latter then supplies the real-time display reminding of system.
4. have the command line management method of real-time help function in the embedded system according to claim 1 and 2, it is characterized in that: searching and mating step of command element and parameter thereof is:
1) receives the command character input;
2) in the order space of matrices, use and search algorithm, the content of user's input is mated with the current command element that is installed in the order under the current directory one by one;
3) show the command element of all couplings;
4) if the match is successful for neither one, then show error message.
CN 03118862 2003-03-28 2003-03-28 Management method possessing real time helping function in insertion type system Expired - Fee Related CN1256663C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 03118862 CN1256663C (en) 2003-03-28 2003-03-28 Management method possessing real time helping function in insertion type system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 03118862 CN1256663C (en) 2003-03-28 2003-03-28 Management method possessing real time helping function in insertion type system

Publications (2)

Publication Number Publication Date
CN1534460A CN1534460A (en) 2004-10-06
CN1256663C true CN1256663C (en) 2006-05-17

Family

ID=34284962

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 03118862 Expired - Fee Related CN1256663C (en) 2003-03-28 2003-03-28 Management method possessing real time helping function in insertion type system

Country Status (1)

Country Link
CN (1) CN1256663C (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100390794C (en) * 2005-04-27 2008-05-28 华为技术有限公司 Method for organizing command set of telecommunciation apparatus by navigation tree mode
CN100452706C (en) * 2006-06-14 2009-01-14 杭州奇智信息科技有限公司 Method and apparatus for identifying terminal command line
CN101179799B (en) * 2007-12-13 2011-07-06 华为技术有限公司 Command identifying method and apparatus
CN101216768B (en) * 2008-01-14 2010-10-13 北京中星微电子有限公司 Embedded platform command analysis system and operation process
CN102737184B (en) * 2012-06-12 2014-12-10 飞天诚信科技股份有限公司 Method for safely displaying user-defined information
CN103744701B (en) * 2014-01-06 2017-06-30 浪潮电子信息产业股份有限公司 A kind of order completion intelligent under linux and the method for installation system
CN103995740A (en) * 2014-05-21 2014-08-20 深圳市新格林耐特通信技术有限公司 Achieving method of command line human-computer interaction interface
CN106301870A (en) * 2015-06-25 2017-01-04 中兴通讯股份有限公司 A kind of method and device realizing command lookup on network devices
CN106445480B (en) * 2015-08-12 2019-11-29 成都华为技术有限公司 Command Line Interface display methods and device
CN113467868B (en) * 2016-08-26 2023-12-15 成都华为技术有限公司 Method and device for creating equipment resources
CN108647043B (en) * 2018-04-03 2021-03-16 烽火通信科技股份有限公司 Method and system for realizing command line input
CN111143006B (en) * 2019-12-25 2022-11-01 杭州迪普科技股份有限公司 Method and device for acquiring command help information

Also Published As

Publication number Publication date
CN1534460A (en) 2004-10-06

Similar Documents

Publication Publication Date Title
CN1256663C (en) Management method possessing real time helping function in insertion type system
US20050160104A1 (en) System and method for generating and deploying a software application
CN1231734A (en) Systems and methods for providing dynamic data referencing in a generic data exchange environment
CN1530817A (en) Guide of effective content: execution of task and structural content
CN1378732A (en) Control property is mapped onto modally compatible GUI element
Camurri et al. Toward real-time multimodal processing: EyesWeb 4.0
CN1855009A (en) Searchable task-based interface to control panel functionality
CN1224875A (en) Dynamic modification of database management system
CN1906585A (en) Method, system and product for identifying, reserving, and logically provisioning resources in provisioning data processing systems
CN101079737A (en) An automatic structuring and parsing method and system of command line interface command
CN1609789A (en) Modular object serialization architecture
US20110258620A1 (en) Method and Apparatus for Making a BPM Application Available to Multiple Tenants
US20080104250A1 (en) Identity migration system apparatus and method
CN113326264A (en) Data processing method, server and storage medium
CN103186455A (en) Method and system for generating automatic test script on page
CN1716960A (en) Methods and devices for generating XML expressed management transactions that include an XPATH expression
CN102945264A (en) Method for intelligently starting distributed transaction
CN105677693A (en) Method and device for accessing databases
CN112328231A (en) Quick conversion method between python dictionary and structure
CN1855052A (en) Method for generating target source code from tree structural data and a set of fragment structure
CN116820535A (en) Task processing method, device, computer readable storage medium and electronic device
US7826386B2 (en) Facilitating the configuring of communications environments
CN102540966A (en) Control device and method for photoetching machines
CN1588411A (en) Flow custom managing platform
CN116011943A (en) Robot automation flow service system, method and medium based on low codes

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20060517

Termination date: 20150328

EXPY Termination of patent right or utility model