General-purpose human-machine language verification method, device, system and electronic device
By obtaining the MML command definition file and verifying the MML message in the pico base station to generate a verification report, the problem of the MML semantic syntax rule verification program occupying too much memory is solved, and the operating efficiency and memory utilization of the pico base station are improved.
Patent Information
- Application Number
- CN202111052843.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-07
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2041-09-07
AI Technical Summary
In the prior art, the code size of the MML semantic grammar rule verification program is large and occupies too much memory of the pico base station.
By obtaining the MML command definition file preset in the pico base station, receiving the MML message parsed by the Web server, and performing verification processing based on the definition information, a verification report is generated to reduce the size of the verification program code.
This reduces memory usage in pico base stations, improves operating efficiency, and can generate verification result reports.
Smart Images

Figure CN113918688B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of wireless communication, in particular to a general man-machine language verification method, device, system and electronic device. BACKGROUND
[0002] MML (man-machine-language) is a language for communication between man and machine, which is widely used in operation and maintenance of telecommunication equipment as a general solution and is a standard language for communication between operators and communication equipment.
[0003] In the related art, the rule verification program of the semantic syntax of MML is mainly generated by LEX (Lexical Analyzer Generator, lexical analyzer in computer field) and YACC (Yet Another Compiler Compiler, a classic tool for generating syntax analyzer) and other syntax lexical analysis software, and the program generated by the software has fast parsing speed of commands and is widely used in macro base stations. Compared with macro base stations, micro base stations are limited by product size and generally have low memory, and under the premise of guaranteeing system, protocol program and other necessary resource files, the remaining memory is not too much.
[0004] At present, there is no effective solution to the problem of large code size of the rule verification program of the semantic syntax of MML and the occupation of a large amount of memory in the related art. SUMMARY
[0005] A general man-machine language verification method, device, system and electronic device are provided in the embodiment to solve the problem of large code size of the rule verification program of the semantic syntax of MML and the occupation of a large amount of memory in the related art.
[0006] In a first aspect, a general man-machine language verification method is provided in the embodiment, and the method comprises:
[0007] obtaining a preset MML command definition file in a micro base station;
[0008] receiving an MML message parsed by a Web server in the micro base station, the MML message comprising user information and MML command information, and performing verification processing on the MML command information according to definition information in the MML command definition file to obtain a target verification result, wherein the definition information corresponds to the MML command information;
[0009] generating a verification report according to the target verification result.
[0010] In some embodiments, after the target verification result is generated, the method further comprises:
[0011] sending the verification report to the Web server; wherein the Web server sends the verification report to a terminal device for display according to the user information in the MML message.
[0012] In some embodiments, the verification processing is performed on the MML command information according to the definition information in the MML command definition file to obtain a target verification result, which comprises:
[0013] In the case where the definition information is a command group level, the user permission group in the MML command information is verified according to the command group level to obtain a first verification result for the user permission group;
[0014] In the case where the definition information is a preset operation object, the MML operation object in the MML command information is verified according to the preset operation object to obtain a second verification result for the MML operation object;
[0015] In the case where the definition information is a preset parameter value range, the MML parameter value in the MML command is verified according to the preset parameter value range to obtain a third verification result for the MML parameter value;
[0016] The target verification result is generated according to the first verification result, the second verification result and the third verification result.
[0017] In some embodiments, the target verification result is generated according to the first verification result, the second verification result and the third verification result, which comprises:
[0018] The parameter information in the MML command is verified to obtain a fourth verification result for the parameter information;
[0019] The target verification result is generated according to the first verification result, the second verification result, the third verification result and the fourth verification result.
[0020] In some embodiments, the target verification result is generated according to the first verification result, the second verification result, the third verification result and the fourth verification result, which comprises:
[0021] In the case where the first verification result indicates that the user permission group level verification fails, the target verification result is generated according to the first verification result; or,
[0022] In a case where the second check result indicates that the preset operation object check fails, the target check result is generated according to the second check result; or
[0023] In a case where the third check result indicates that the preset parameter value range check fails, the target check result is generated according to the third check result; or
[0024] In a case where the fourth check result indicates that the parameter information check fails, the target check result is generated according to the fourth check result.
[0025] In some embodiments, after the target check result is obtained, the method further includes:
[0026] In a case where the target check result indicates that the MML command information check passes, the MML command is subjected to a cutting process to obtain an MML cutting subsegment;
[0027] The MML cutting subsegment is stored in a preset data structure, and the preset data structure is sent to a command execution process of the skin base station.
[0028] In some embodiments, the MML message is obtained by the Web server configuring MML command parameters through the terminal device and identifying.
[0029] In a second aspect, a general man-machine language checking device is provided in the embodiment, and the device includes a semantic definition file loading module, a semantic syntax checking module, and a report generating module.
[0030] The semantic definition file loading module acquires a preset MML command definition file in a skin base station.
[0031] The semantic syntax checking module receives an MML message parsed by a Web server in a skin base station, the MML message includes user information and MML command information, and performs check processing on the MML command information according to definition information in the MML command definition file to obtain a target check result; the definition information corresponds to the MML command information.
[0032] The report generating module generates a check report according to the target check result.
[0033] In a third aspect, a general man-machine language checking system is provided in the embodiment, and the system includes a Web server and an MML server in a skin base station.
[0034] The Web server is configured to parse an MML message and send the MML message to the MML server.
[0035] The MML server is deployed in the skin base station and is configured to execute the general man-machine language checking method of the first aspect.
[0036] In a fourth aspect, an electronic device is provided in the present embodiment, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the general man-machine language checking method of the first aspect when executing the computer program.
[0037] Compared with the related art, the general man-machine language checking method, device, system and electronic device provided in the present embodiment receive the MML message parsed by the Web server in the skin base station, obtain the preset MML command definition file, and perform checking processing on the MML command information according to the definition information in the MML command definition file to obtain a target checking result, and generate a checking report according to the target checking result, thereby solving the problem that the rule checking program code generated by using the LEX and YACC parsers has a large size and occupies a large amount of memory, and achieving checking of the general man-machine language of the skin base station and display of the checking result report.
[0038] The details of one or more embodiments of the present application are presented in the following drawings and description to make other features, objects and advantages of the present application more apparent. BRIEF DESCRIPTION OF DRAWINGS
[0039] The accompanying drawings, which are included to provide a further understanding of the present application, constitute a part of the present application and illustrate the illustrative embodiments of the present application and their description serve to explain the present application, and do not constitute improper limitations on the present application. In the drawings:
[0040] Figure 1 It is a scenario diagram of the application of the general man-machine language checking method in one embodiment;
[0041] Figure 2 It is a flowchart of the general man-machine language checking method in one embodiment;
[0042] Figure 3 It is a flowchart of the general man-machine language checking method in another embodiment;
[0043] Figure 4 It is a timing diagram of the general man-machine language checking method in one preferred embodiment;
[0044] Figure 5 It is a diagram of the display of the checking report of the terminal device in one preferred embodiment;
[0045] Figure 6 It is a structural block diagram of the general man-machine language checking device in one embodiment;
[0046] Figure 7 Figure 1 is a diagram of an internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0047] In order to clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and explained below in conjunction with the accompanying drawings and embodiments.
[0048] Unless otherwise defined, technical terms or scientific terms used in the present application shall have the general meaning understood by one of ordinary skill in the art to which the present application pertains. In the present application, the terms "one", "a", "an", "the", "these", and similar words do not represent a quantitative limitation, but can be singular or plural. In the present application, the terms "include", "contain", "have" and any variants thereof have the purpose of encompassing non-exclusive inclusion; for example, a process, method and system, product or device containing a series of steps or modules (units) are not limited to the listed steps or modules (units), but can include steps or modules (units) not listed, or can include other steps or modules (units) inherent to the process, method, product or device. In the present application, the terms "connected", "connected", "coupled" and similar words do not limit to physical or mechanical connection, but can include electrical connection, whether direct or indirect. In the present application, "multiple" means two or more. The term "and / or" describes the relationship between the associated objects, which means that there can be three relationships, for example, "A and / or B" can mean that A exists alone, A and B exist together, and B exists alone. In general, the character " / " represents a "or" relationship between the associated objects. In the present application, the terms "first", "second", "third" and the like are only used to distinguish similar objects, and do not represent a specific order for the objects.
[0049] The general human-machine language verification method provided by the present application can be applied to, for example, Figure 1The application environment is shown. The terminal device 102 communicates with the skin base station 104 through the network. The terminal device of the skin base station 104 receives the MML command parameter, configures the MML command parameter, identifies the message as an MML message, and sends the message to the Web server of the skin base station 104; the Web server module in the skin base station 104 parses the MML message and forwards the MML message to the MML server module; the MML server saves the user information and the command information carried in the message and checks the MML command; after the checking is completed, a checking report is generated and returned to the Web server, and the Web server sends the message to the terminal device 102 for display according to the saved user information. The terminal device 102 can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices, and the skin base station 104 can be implemented by an independent skin base station or a skin base station cluster composed of multiple skin base stations.
[0050] In the embodiment, a general man-machine language checking method is provided, Figure 2 is a flowchart of the general man-machine language checking method of the embodiment, as Figure 2 shown, the flow includes the following steps:
[0051] In step S202, a preset MML command definition file in the skin base station is obtained. After obtaining the preset MML command definition file in the skin base station, the MML command definition file can be saved in the memory; the MML command definition file is a file pre-stored with definition information, the MML command definition file is an xml format file, saved in the form of xml nodes, with an operation object as a root node, a parameter name as a child node of the operation object, and parameter value, optional parameter mark and parameter value relationship as attributes of the parameter name child node; the definition information refers to information pre-defined for the format and parameter semantic of the MML command information, for example, the definition information can include: definition of user authority group level, definition of operation object, definition of parameter name, definition of parameter value, definition of optional parameter, and definition of parameter value relationship.
[0052] Step S204, receiving the MML message parsed by the Web server in the skin base station, the MML message including user information and MML command information, and performing checking processing on the MML command information according to definition information in a definition file of the MML command to obtain a target checking result; the definition information corresponding to the MML command information. The Web server is responsible for receiving messages from terminal devices on the Web side, and if it is known that the message is an MML message, the message is transmitted to the MML server, and the MML server parses the MML message; after the MML server receives the MML message, the MML message needs to be stored. The user information refers to identity information corresponding to the operator as a user interacting with the skin base station, and can include: a user name, a user permission group, a user permission group level, and a user IP address; the MML command information refers to a human-computer interaction operation instruction input by the operator as a user in human-computer interaction, and can include: an operation object, a parameter name, a parameter value, a mandatory parameter mark, and a parameter value relationship; in order to be able to execute the MML command on the command execution process of the skin base station, the MML command information needs to satisfy certain semantic syntax rules, and the format corresponding to the semantic syntax rules can be:
[0053] <operation command word> <space> <object name> <colon> <parameter name 1> <=> <parameter value 1> <comma> <parameter name i> <=> <parameter value i> <comma> <parameter name n> <=> <parameter value n> <semicolon>
[0054] The MML command information satisfies the above semantic syntax rules, and the MML server matches and compares the MML command information with the definition information, and then performs checking processing on the MML command information; the process of checking the MML command information can be a sub-module of an OAM (Operation Administration and Maintenance) program on the upper layer application of the skin base station, and the programming language can use C or C++.
[0055] Step S206, generating a checking report according to the target checking result. Before generating the checking report, a preset report constructor needs to be called to generate a report according to the execution result of the report constructor. The content of the checking report can include: a start time, a user name (operator), an IP address, an MML command, an operation result, an end time, an error code, or output of the checking content of the execution failure and output of the failure reason, or output of an indication statement of the execution success; when the MML command checking is successful, the error code can be 0.
[0056] The steps S202 to S206 described above, by receiving the MML message parsed by the Web server in the skin base station, obtaining the preset MML command definition file, and according to the definition information in the MML command definition file, the target verification result is obtained by checking the MML command information, and the verification report is generated according to the target verification result. The MML command verification method pre-sets the MML command definition file, and matches the compliance of the MML command according to the field definition in the definition file, so that the verification program code as a sub-module can reduce the volume occupation of the verification code in the skin base station running program under the condition of complete verification processing logic. Therefore, it will not cause too much memory occupation in the running process of the skin base station, solves the problem that the rule verification program code generated by the semantic grammar using LEX and YACC parsers and the like has large volume and occupies more memory in the current technology, and realizes the verification of the general man-machine language of the skin base station and the generation of the verification result report.
[0057] In some embodiments, after generating the verification report according to the target verification result, the verification report is sent to the Web server, and the Web server sends the verification report to the terminal device for display according to the user information in the MML message. Before generating the verification report, the verification result is organized into a verification report according to the format specified by the preset report constructor. Through the communication interface of the Web server, the corresponding user IP address and username in the user information are found, and the verification report is sent to the terminal device corresponding to the user information for display. The terminal device, as a terminal for issuing MML command parameters and configuration and a device for displaying the verification result, can directly display without analyzing the verification report result. The terminal device can be a device deployed with a WebLMT (Web Local Maintenance Terminal) and connected to the skin base station through the COM interface of the skin base station to access the switching host.
[0058] Through the above embodiments, after generating the verification report according to the target verification result, the verification report is sent to the Web server, and the Web server sends the verification report to the terminal device for display according to the user information in the MML message. Thus, the direct display of the verification report on the terminal device is realized, and the terminal device does not need to analyze the verification report, thereby improving the running efficiency of the skin base station.
[0059] In some embodiments, a general man-machine language verification method is also provided, Figure 3 is another flowchart of a general man-machine language verification method of the present embodiment, as shown in Figure 3 includes the following steps:
[0060] Step S302, in the case of the definition information being a command group level, the user authority group in the MML command information is checked according to the command group level, to obtain a first checking result for the user authority group. The command group level refers to the user authority level of the group to which the user sending the MML command belongs. In this step, the group of the MML command and its group level are obtained from the MML command definition file, and the user authority group of the MML command is also obtained. According to the definition of the level of the MML command group, it is determined whether the user has the authority to execute the MML command. If the user has the authority, a first checking result indicating that the user authority group passes the check is generated. If the user does not have the authority, the checking procedure is exited and a report of the failure of the user authority check is generated.
[0061] Step S304, in the case of the definition information being a preset operation object, the MML operation object in the MML command information is checked according to the preset operation object, to obtain a second checking result for the MML operation object. The preset operation object refers to an object that can be operated by the user and is pre-set and stored in the MML command definition file. In this step, the MML operation object in the MML command information is used to search for the preset operation object from the MML command definition file. If the corresponding preset operation object is found, that is, the MML operation object can be successfully matched with a preset operation object in the MML command definition file, it means that the MML operation object is qualified, and a second checking result indicating that the MML operation object passes the check is generated. If the corresponding preset operation object is not found, the checking procedure is exited and a report of the failure of the operation object check is generated.
[0062] Step S306, in the case of the definition information being a preset parameter value range, the MML parameter value in the MML command is checked according to the preset parameter value range, to obtain a third checking result for the MML parameter value. The preset parameter value range refers to the range of the value that the parameter of the MML command information can take, which is pre-set and stored in the MML command definition file. In this step, the value range of the corresponding parameter is obtained from the MML command definition file according to the data type of the parameter in the MML command, and the value range of the parameter in the MML command is checked in different ways. If the checked parameter satisfies the value range in the MML command definition file, a second checking result indicating that the MML parameter value passes the check is generated. If the checked parameter does not satisfy the value range, the checking procedure is exited and a report of the failure of the parameter value check is generated. The data type includes int (including 8, 16, 32, and 64 bits), uint (including 8, 16, 32, and 64 bits), double, boolean, time, date, timedate, string, and ip. The different checking ways include range value checking, enumeration value checking, and fixed format checking.
[0063] Step S308, generating the target check result according to the first check result, the second check result and the third check result. For example, if the first check result, the second check result and the third check result all indicate that the corresponding check passes, the target check result can be generated based on the above check results, which finally indicates that the MML command information check passes. It should be noted that the check processes in steps S302 to S306 can be executed simultaneously or sequentially to stop the check and generate a check report in time when a check result fails, thereby improving the check efficiency.
[0064] In some embodiments, generating the target check result according to the first check result, the second check result and the third check result comprises: checking the parameter information in the MML command to obtain a fourth check result for the parameter information; and generating the target check result according to the first check result, the second check result, the third check result and the fourth check result.
[0065] The fourth check result for the parameter information comprises: a parameter name check result, a check result of a mandatory check parameter and a check result of a parameter value relationship; the parameter name check result is a check result of a parameter name case insensitivity problem, which is obtained by comparing the input MML command parameter name with the parameter name of the definition object converted into a lowercase string, if the MML command parameter name string is equal to the string of the parameter name of the definition object, the MML command parameter name is replaced with the parameter name of the definition object, if not, the check program is exited and a parameter name check failure report is generated; the check result of the mandatory check parameter is a check result of a parameter that must be included in the MML command, which is obtained by checking whether the mandatory parameter exists in the MML command by obtaining the mandatory parameter mark in the MML command definition file, if the mandatory parameter does not exist in the MML command, the check program is exited and a mandatory check parameter check failure report is generated; and the check result of the parameter value relationship is a check result of a parameter value relationship in the MML command, which includes greater than, greater than or equal to, less than, less than or equal to, full equal and all equal, if the parameter value relationship in the MML command does not satisfy the above parameter value relationship, the check program is exited and a parameter value relationship check failure report is generated.
[0066] Through the above embodiments, the logical flow of the MML command check method is complete, the code size is small, and the check program size in the skin base station and the memory occupation space are small by checking the user permission group level, the MML command operation object, the MML parameter value range, the parameter name in the MML command, the mandatory check parameter and the parameter value relationship.
[0067] In some embodiments, generating a target verification result according to the first verification result, the second verification result, the third verification result, and the fourth verification result includes:
[0068] If the first verification result indicates that the user authority group level verification fails, generating the target verification result according to the first verification result; or
[0069] If the second verification result indicates that the preset operation object verification fails, generating the target verification result according to the second verification result; or
[0070] If the third verification result indicates that the verification of the preset parameter value range fails, generating the target verification result according to the third verification result; or
[0071] In a case where the fourth verification result indicates that the parameter information verification fails, the target verification result is generated according to the fourth verification result.
[0072] Through the above embodiment, by verifying the user authority group level, MML command operation object, MML parameter value range, parameter name in the MML command, mandatory verification parameters and parameter value relationship, in the process of MML command verification, as long as there is a verification parameter that does not meet the requirements specified in the MML command definition file, the verification process is directly interrupted and the program is jumped out. The MML command verification method has a complete logical flow and a small code size, so that the verification program in the pico base station can be small in size and memory space is small.
[0073] In some of the embodiments, after obtaining the target verification result, the following is further included: when the target verification result indicates that the MML command information has passed the verification, the MML command is cut to obtain an MML cut sub-segment; the MML cut sub-segment is stored in a preset data structure, and the preset data structure is sent to the command execution process of the pico base station. The preset data structure is stored in the memory of the pico base station in advance, and is used to convert the MML command into a statement suitable for execution by the command execution process of the pico base station, including configuration commands and maintenance commands; the command execution process of the pico base station refers to an OAM internal module or protocol process, and the command execution process can be located in the upper-layer application OAM of the pico base station, and is used to execute the MML command that has passed the verification; the configuration command, called ConfigMML, is a command for adding, deleting, and modifying configuration parameters; the maintenance command, called MaintainMML, refers to all operation commands other than the configuration command, and may include querying system status, program status, process running information, and setting information of the system and its programs, etc.
[0074] Through the above embodiment, all parameters in the MML command can be executed after being checked, and as long as one MML command fails in the checking, i.e. as long as one checked parameter does not conform to the condition defined in the MML command definition file, the checking process is directly interrupted, and the program is exited, so that the checking program in the skin base station is small in size and occupies small memory space.
[0075] In some of the embodiments, the MML message is obtained by the web server through terminal device configuration MML command parameters and identification.
[0076] The embodiment will be described and explained below through preferred embodiments.
[0077] Figure 4 is the timing diagram of the general man-machine language checking method of the preferred embodiment. First, the WebLMT in the web page connected with the skin base station configures the MML command parameters, identifies the message as the MML message, and sends it to the skin base station web server module; the skin base station web server parses the message, forwards the MML message to the skin base station MML server module; the MML server saves the operation information in the MML message, i.e. saves the user information and command information carried in the MML message.
[0078] Secondly, the MML server checks the MML command, including: 1) user authority check: the group and its group level of the MML command are obtained from the definition file, and the user authority group of the MML command is obtained, according to the definition of the level of the MML command group, it is judged whether the user has the authority to execute the MML command, if yes, the checking program is continued, if not, the checking program is exited and a user authority check failure report is generated; 2) checking operation object: the preset operation object is searched from the MML command definition file according to the MML operation object in the MML command information, if the corresponding preset operation object is found, the checking program is continued, if the corresponding preset operation object is not found, the checking program is exited and an operation object check failure report is generated; 3) checking parameter name: in order to avoid the case problem of the parameter name, the parameter of the MML command is checked in a case-insensitive manner, the input MML command parameter name and the parameter name of the definition object obtained from the MML command definition file are uniformly converted into lower case strings for comparison, if the MML command parameter name string is equal to the string of the parameter name of the definition object, the MML command parameter name is replaced by the parameter name of the definition object, if not, the checking program is exited and a parameter name check failure report is generated; 4) checking parameter value: according to the data type of the parameter in the MML command, the value range of the corresponding parameter is obtained from the MML command definition file, the value range of the parameter in the MML command is checked in different ways, if the checked parameter meets the value range in the MML command definition file, the checking program is continued, if not, the checking program is exited and a parameter value check failure report is generated; 5) checking optional parameter: by obtaining the optional parameter mark in the MML command definition file, it is checked whether the optional parameter exists in the MML command, if the optional parameter does not exist in the MML command, the checking program is exited and an optional check parameter check failure report is generated; 6) checking parameter value relationship: the parameter value relationship includes: greater than, greater than or equal to, less than, less than or equal to, equal to and all equal, if the parameter value relationship in the MML command does not meet the above parameter value relationship, the checking program is exited and a parameter value relationship check failure report is generated.
[0079] In the above checking process, as long as one MML command check fails, that is, as long as one checked parameter does not meet the condition specified in the MML command definition file, the checking process is directly interrupted and the program is exited, and if the above checking process is successful, the command is cut, the subsegment is put into the agreed data structure, and the command is sent to the configuration or maintenance module for processing.
[0080] Finally, the report constructor is called, the execution result is reported, and the report is forwarded to the Web server, the Web server sends the message to the webpage according to the saved user information, the webpage receives the report result, and directly displays the report on the interface without any processing.Figure 5 Fig. 8 is a schematic diagram showing a check report of a terminal device in a preferred embodiment, which shows the check report of the preferred embodiment, wherein the content of the check report can include: start time, user name (operator), IP address, MML command, operation result, end time, error code, or output the check content of the failure of execution and the reason of the failure, or output the indication sentence of the success of execution; when the MML command check is successful, the error code can be 0.
[0081] It should be understood that, although Figures 2-4 the steps in the flowchart of Fig. 7 are shown in a sequential order, such that each step is performed after another, the steps need not be performed in this order. Unless explicitly stated, the steps need not be performed in the order shown, but can be performed in other orders. Moreover, Figures 2-4 at least a part of the steps in Fig. 7 can include a plurality of sub-steps or a plurality of stages, which need not be performed at the same time, but can be performed at different times, and the order of the sub-steps or stages need not be sequential, but can be performed in a round-robin or alternating manner with other steps or sub-steps or stages of other steps.
[0082] In the embodiment, a general man-machine language checking device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and will not be described again. The terms "module", "unit", "sub-unit" and the like used below can be a combination of software and / or hardware that can implement a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware or a combination of software and hardware is also possible and is contemplated.
[0083] Figure 6 Fig. 8 is a structure block diagram of the general man-machine language checking device of the embodiment, as shown in Fig. 8, the device includes: a semantic definition file loading module 20, a semantic syntax checking module 30 and a report generating module 40; Figure 6
[0084] The semantic definition file loading module 20 acquires the preset MML command definition file in the skin base station, and saves the MML command definition file in the memory;
[0085] The semantic syntax checking module 30 receives the MML message parsed by the Web server in the skin base station, the MML message includes user information and MML command information, and according to the definition information in the MML command definition file, the MML command information is checked to obtain a target check result; wherein the definition information corresponds to the MML command information.
[0086] The report generation module 40 generates a check report according to the target check result. Before generating the check report, a report constructor needs to be called to generate a report of the execution result. The content of the check report can include: start time, user name (operator), IP address, MML command, operation result, end time, error code, or output of the check content of the failed execution and the reason for the failure, or output of an indication statement of the successful execution; when the MML command check is successful, the error code can be 0.
[0087] It should be noted that each of the above modules can be a functional module or a program module, and can be implemented by software or hardware. For the modules implemented by hardware, each of the above modules can be located in the same processor; or each of the above modules can also be located in different processors in any combination.
[0088] For specific limitations of the general human-machine language check device, refer to the limitations of the general human-machine language check method in the above, which will not be repeated here. Each module in the above general human-machine language check device can be implemented by software, hardware, or a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in hardware form, or can be stored in the memory in the computer device in software form, so that the processor can call and execute the operations corresponding to each of the above modules.
[0089] In one embodiment, a general human-machine language check system is provided, which includes: a Web server and an MML server in a skin base station; the Web server is configured to parse an MML message and send the MML message to the MML server; and the MML server, deployed in the skin base station, is configured to perform the steps in any of the above general human-machine language check method embodiments. The Web server is responsible for receiving messages from terminal devices on the Web side, and if it is known that the message is an MML message, the message is transmitted to the MML server, and the MML server parses the MML message; after the MML server receives the MML message, the MML message needs to be stored.
[0090] In one embodiment, a computer device is provided, which can be a server, and its internal structure diagram can be as shown in Figure 7As shown in the figure. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operating system and the computer program in the non-volatile storage medium to run. The network interface of the computer device is used to communicate with the external terminal through the network connection. The computer program is executed by the processor to implement a general human language verification method.
[0091] Those skilled in the art can understand that, Figure 7 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different component arrangement.
[0092] In the embodiment, an electronic device is also provided, including a memory and a processor, the memory stores a computer program, and the processor is configured to execute the computer program to perform the steps in any of the above method embodiments.
[0093] Optionally, the electronic device described above can further include a transmission device and an input and output device, wherein the transmission device is connected with the processor, and the input and output device is connected with the processor.
[0094] Optionally, in the embodiment, the processor can be configured to execute the following steps through the computer program:
[0095] S1, obtaining a preset MML command definition file in the skin base station;
[0096] S2, receiving an MML message parsed by a Web server in the skin base station, the MML message including user information and MML command information, and performing verification processing on the MML command information according to definition information in the MML command definition file to obtain a target verification result; wherein the definition information corresponds to the MML command information;
[0097] S3, generating a verification report according to the target verification result.
[0098] It should be noted that the specific examples in the embodiment can refer to the examples described in the above embodiments and optional implementation manners, which will not be described herein again.
[0099] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when the computer program is executed, the processes of the above-mentioned embodiments of the methods can be included. Any reference to memory, storage, databases, or other media in the embodiments provided by the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration but not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0100] The technical features of the above embodiments can be combined in any way. In order to make the description simple, not all possible combinations of the technical features in the above embodiments are described, but as long as the combinations of the technical features do not exist, they should be considered as the scope of the present application.
[0101] The above embodiments only express several implementation manners of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the scope of the patent. It should be pointed out that for ordinary skilled in the art, without departing from the concept of the present application, some modifications and improvements can be made, which are all within the scope of the present application. Therefore, the scope of the patent of the present application should be subject to the appended claims.
Claims
1. A universal human-machine language verification method, characterized in that: Executed by the OAM program running the pico base station, including: Get the MML command definition file preset in the Pico base station; Receive an MML message sent by the WebLMT and parsed by a web server in the pico base station, the MML message including user information and MML command information, and perform verification processing on the MML command information according to definition information in the MML command definition file to obtain a target verification result; wherein the definition information corresponds to the MML command information; and generate a verification report based on the target verification result; Sending the verification report to the Web server, so that the Web server sends the verification report to the WebLMT for display according to the user information in the MML message; The verifying process is performed on the MML command information according to the definition information in the MML command definition file to obtain a target verification result, including: According to the definition information in the MML command definition file, the user authority, operation object, parameter name, parameter value, required parameters and relationship between parameter values are verified for the MML command information.
2. The universal human-machine language verification method according to claim 1, characterized in that: The verifying process is performed on the MML command information according to the definition information in the MML command definition file to obtain a target verification result, which includes: In a case where the definition information is a command group level, verifying the user authority group in the MML command information according to the command group level to obtain a first verification result for the user authority group; In a case where the definition information is a preset operation object, performing verification processing on the MML operation object in the MML command information according to the preset operation object to obtain a second verification result for the MML operation object; In a case where the definition information is a preset parameter value range, performing verification processing on the MML parameter value in the MML command according to the preset parameter value range to obtain a third verification result for the MML parameter value; The target verification result is generated according to the first verification result, the second verification result, and the third verification result.
3. The universal human-machine language verification method according to claim 2, characterized in that: Generating the target verification result according to the first verification result, the second verification result, and the third verification result includes: Verifying the parameter information in the MML command to obtain a fourth verification result for the parameter information; The target verification result is generated according to the first verification result, the second verification result, the third verification result, and the fourth verification result.
4. The universal human-machine language verification method according to claim 3, characterized in that: Generating the target verification result according to the first verification result, the second verification result, the third verification result, and the fourth verification result includes: If the first verification result indicates that the user authority group level verification fails, generating the target verification result according to the first verification result; or If the second verification result indicates that the preset operation object verification fails, generating the target verification result according to the second verification result; or If the third verification result indicates that the verification of the preset parameter value range fails, generating the target verification result according to the third verification result; or In a case where the fourth verification result indicates that the parameter information verification fails, the target verification result is generated according to the fourth verification result.
5. The universal human-machine language verification method according to any one of claims 1 to 4, characterized in that: After obtaining the target verification result, the method further includes: If the target verification result indicates that the MML command information has passed verification, performing clipping processing on the MML command to obtain an MML clipping subsegment; The MML cut sub-segment is stored in a preset data structure, and the preset data structure is sent to the command execution process of the pico base station.
6. The universal human-machine language verification method according to claim 5, characterized in that: The MML message is obtained by configuring MML command parameters through the terminal device and performing identification.
7. A universal human-machine language verification device, characterized in that: The functions of the device are performed by running the OAM program of the pico base station, including: a semantic definition file loading module, a semantic syntax verification module, and a report generation module; The semantic definition file loading module obtains the MML command definition file preset in the pico base station; The semantic syntax verification module receives an MML message sent by the WebLMT and parsed by the Web server in the pico base station, the MML message including user information and MML command information, and performs verification processing on the MML command information according to the definition information in the MML command definition file to obtain a target verification result; wherein the MML command information includes several fields; the definition information corresponds to the MML command information; the report generation module generates a verification report according to the target verification result; The apparatus is further configured to send the verification report to the Web server, so that the Web server sends the verification report to the WebLMT for display according to the user information; According to the definition information in the MML command definition file, the user authority, the operation object, the parameter name, the parameter value, the required parameters and the relationship between the parameter values are sequentially checked for the MML command information.
8. A universal human-machine language verification system, characterized in that: The system includes: a Web server and an MML server in a pico base station; The Web server is used to parse the MML message and send the MML message to the MML server; The MML server is deployed at the pico base station and is used to execute the universal human-machine language verification method according to any one of claims 1 to 6.
9. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to execute the universal human-machine language verification method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method for processing message by interface machine and interface machine
CN103945287A