A communication module AT command set compatibility evaluation method, device and equipment
By evaluating and processing the AT command set documents of the two communication modules, the problem that the AT command compatibility evaluation results in the prior art are affected by subjective judgments, and an automated and objective compatibility evaluation is achieved.
Patent Information
- Application Number
- CN202210711938.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-22
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2042-06-22
AI Technical Summary
In the prior art, the evaluation results obtained by evaluating the compatibility of AT commands of two communication modules are subjectively judged by the evaluator, and it is difficult to ensure its objectivity.
Provide a communication module AT command set compatibility evaluation method, by obtaining the AT command set documents of two modules, evaluating and processing them, and obtaining the AT command set compatibility evaluation results. This method includes effective information extraction, functional command matching and determination of compatibility evaluation scores to ensure the objectivity of evaluation results.
Automatic evaluation of the AT command compatibility of the two communication modules is realized to ensure the objectivity of the evaluation results, reduce the evaluation time and workload, and avoid evaluation omissions.
Smart Images

Figure CN117319508B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a method, device and equipment for evaluating the compatibility of an AT command set of a communication module. Background Art
[0002] The wireless cellular communication module (hereinafter referred to as the module) integrates baseband chips, memory, and power amplifier devices on a circuit board, and provides standard interface function modules, which enable various terminals to achieve communication functions with the help of wireless modules. The AT command set is a control protocol invented by the inventor of the dial-up modem (Modem) to control the modem. AT is the abbreviation of Attention, and the protocol itself uses text. Each command starts with AT, hence the name. AT commands are simple and easy to understand, and use standard serial ports to send and receive AT commands. The easier serial port programming greatly simplifies the control of the device. AT commands are full-featured and highly extensible. A set of commands can be used to control the device and complete services such as calls, text messages, phone books, data transmission, and faxes. At present, a large part of the basic AT command sets of various module manufacturers comply with standardized protocols and are generally universal. However, each module manufacturer will also add some self-encapsulated AT commands. A large part of these AT commands have similar functions, but are not universal. They can only be used on modules of some manufacturers. Applying these module manufacturer-defined AT commands on modules of other manufacturers will return error information. When terminal manufacturers currently select and design terminals using modules from different manufacturers, they need to design two sets of application processes for the AT command sets provided by different module manufacturers. For example, when terminal manufacturer M designs a terminal device, it currently uses the source module solution. If it switches to the target module solution, it needs to evaluate the AT command compatibility of the two communication modules. Currently, this is mainly done manually, and the evaluation results are subject to the subjective judgment of the evaluators, making it difficult to guarantee their objectivity. Summary of the invention
[0003] The embodiment of the present invention provides a communication module AT command set compatibility evaluation method, device and equipment, which are used to solve the problem in the prior art that the evaluation result obtained by evaluating the AT command compatibility of two communication modules is subject to the subjective judgment of the evaluator and it is difficult to ensure its objectivity.
[0004] In order to solve the above technical problems, the embodiments of the present invention provide the following technical solutions:
[0005] An embodiment of the present invention provides a communication module AT command set compatibility evaluation method, including:
[0006] Obtain a first AT command set document of the first module;
[0007] Obtain a second AT command set document of the second module;
[0008] The first AT command set document and the second AT command set document are evaluated and processed to obtain an AT command set compatibility evaluation result of the first module and the second module.
[0009] Optionally, the evaluating the first AT command set document and the second AT command set document to obtain an AT command set compatibility evaluation result of the first module and the second module includes:
[0010] Extracting effective information from the first AT command set document and the second AT command set document respectively to obtain first command function information of the first AT command set document and second command function information of the second AT command set document;
[0011] An AT command set compatibility evaluation result of the first module and the second module is obtained according to the first command function information and the second command function information.
[0012] Optionally, obtaining an AT command set compatibility evaluation result of the first module and the second module according to the first command function information and the second command function information includes:
[0013] Determine, according to the first command function information and the second command function information, a function matching result of function commands in the first AT command set document and the second AT command set document;
[0014] The AT command set compatibility evaluation result is obtained according to the function matching result of the function command, the first command function information and the second command function information.
[0015] Optionally, before respectively extracting effective information from the first AT command set document and the second AT command set document to obtain first command function information of the first AT command set document and second command function information of the second AT command set document, the method further includes:
[0016] Determining a language version of the first AT command set document and a language version of the second AT command set document;
[0017] When the language version of the first AT command set document and the language version of the second AT command set document are inconsistent, the language version of the first AT command set document and the language version of the second AT command set document are adjusted to be the same language version.
[0018] Optionally, respectively extracting effective information from the first AT command set document and the second AT command set document to obtain first command function information of the first AT command set document and second command function information of the second AT command set document includes:
[0019] Extracting first valid information of the first AT command set document and second valid information of the second AT command set document respectively; the first valid information includes first initial command function information of the first AT command set document, and the second valid information includes second initial command function information of the second AT command set document;
[0020] The different expressions of the same semantic information in the first initial command function information and the second initial command function information are converted into the same expression to obtain the first command function information and the second command function information.
[0021] Optionally, converting different expressions of the same semantic information in the first initial command function information and the second initial command function information into the same expression to obtain the first command function information and the second command function information includes:
[0022] According to a preset semantic information table and / or a preset natural language processing module, different expressions of the same semantic information in the first initial command function information and the second initial command function information are converted into the same expression to obtain the first command function information and the second command function information.
[0023] Optionally, the command function information includes function command parameters;
[0024] The determining, according to the first command function information and the second command function information, function matching results of function commands in the first AT command set document and the second AT command set document includes:
[0025] Determine, according to the first function command parameter in the first command function information and the second function command parameter in the second command function information, corresponding results of the function commands in the first AT command set document and the second AT command set document;
[0026] Obtaining function matching results of function commands in the first AT command set document and the second AT command set document according to the corresponding result, the first function command parameter, and the second function command parameter;
[0027] The corresponding result includes at least one of the following:
[0028] A function command in the first AT command set document corresponds to a function command in the second AT command set document;
[0029] A function command in the first AT command set document corresponds to a plurality of function commands in the second AT command set document;
[0030] The plurality of function commands in the first AT command set document correspond to the function of one function command in the second AT command set document;
[0031] The multiple function commands in the first AT command set document correspond to the multiple function commands in the second AT command set document.
[0032] Optionally, obtaining, according to the corresponding result, the first function command parameter, and the second function command parameter, a function matching result of function commands in the first AT command set document and the second AT command set document includes:
[0033] In a case where the first target parameter corresponding to the first function command includes all the second target parameters corresponding to the second function command, determining that the first function command and the second function command have functional matches;
[0034] The first function command is one or more function commands in the first AT command set document, and the second function command is one or more function commands in the second AT command set document;
[0035] The first function command and the second function command function match;
[0036] The second module is a communication module currently used by the terminal, and the first module is a communication module used by the terminal after being switched by the second module;
[0037] The first target parameter is determined according to a first function command parameter corresponding to the first function command, and the second target parameter is determined according to a second function command parameter corresponding to the second function command.
[0038] Optionally, when the first function command is a plurality of function commands in the first AT command set document, and / or when the second function command is a plurality of function commands in the second AT command set document, and when the first target parameter corresponding to the first function command includes a second target parameter corresponding to the second function command, before determining that the first function command and the second function command function match, the method includes:
[0039] Taking a union of the first function command parameters corresponding to each of the first function commands to obtain the first target parameter;
[0040] and / or,
[0041] The second target parameter is obtained by taking a union of the second function command parameters corresponding to each of the second function commands.
[0042] Optionally, the AT command set compatibility evaluation result includes an AT command set compatibility evaluation score;
[0043] The command function information includes return information and error code information of the function command;
[0044] The obtaining the AT command set compatibility evaluation result according to the function matching result of the function command, the first command function information and the second command function information includes:
[0045] In the case where the first function command and the second function command function match, the AT command set compatibility evaluation score is determined according to at least one of the following:
[0046] a first score determined according to a comparison result between the name of the first function command and the name of the function of the second function command;
[0047] A second score determined according to the first step number; the first step number is the minimum number of movement steps required to adjust the first target function command parameter corresponding to the second function command to be consistent with the second target function command parameter corresponding to the first function command; the first target function command parameter is any parameter of the second function command parameters corresponding to the second function command; the second target function command parameter is any parameter of the first function command parameters corresponding to the first function command; the first target function command parameter and the first target function command parameter have the same name;
[0048] a third score determined according to the first number and the first preset score; the first number being the number of mismatches between the mandatory parameters preset in the first target parameter corresponding to the first function command and the second target parameter corresponding to the second function command;
[0049] a fourth score determined according to a second number and a second preset score; the second number being the number of mismatches between the optional parameters preset in the first target parameter corresponding to the first function command and the second target parameter corresponding to the second function command;
[0050] a fifth score determined according to the absolute value of the difference between the parameter value range rates and the preset first gradient score; the absolute value of the difference between the parameter value range rates is determined according to the first parameter value range rate and the second parameter value coverage rate; the first parameter value coverage rate is determined according to the length of the overlapping parameter value range and the length of the first target parameter value range corresponding to the first function command; the second parameter value coverage rate is determined according to the length of the overlapping parameter value range and the length of the second target parameter value range corresponding to the second function command; the overlapping parameter is a parameter that overlaps between the first target parameter and the second target parameter;
[0051] a sixth score determined according to a correspondence between the number of function commands corresponding to the first function command and the number of function commands corresponding to the second function command;
[0052] a seventh score determined according to the content of the return information corresponding to the first function command and the return information corresponding to the second function command;
[0053] an eighth score determined according to the format of the return information corresponding to the first function command and the return information corresponding to the second function command;
[0054] A ninth score is determined according to content of the error code information corresponding to the first function command and the error code information corresponding to the second function command.
[0055] Optionally, the AT command set compatibility evaluation result includes an AT command set compatibility evaluation report;
[0056] The obtaining the AT command set compatibility evaluation result according to the function matching result of the function command, the first command function information and the second command function information includes:
[0057] In the case where the first function command and the second function command function match, determining the AT command set compatibility evaluation report;
[0058] The AT command set compatibility assessment report includes at least one of the following:
[0059] a first report determined according to a comparison result of the name of the first functional command and the name of the function of the second functional command;
[0060] A second report determined according to the first step number; the first step number is the minimum number of movement steps required to adjust the first target function command parameter corresponding to the second function command to be consistent with the second target function command parameter corresponding to the first function command; the first target function command parameter is any parameter of the second function command parameter corresponding to the second function command; the second target function command parameter is any parameter of the first function command parameter corresponding to the first function command; the first target function command parameter and the first target function command parameter have the same name;
[0061] a third report determined according to a first number; the first number being the number of mismatches between a preset mandatory parameter in a first target parameter corresponding to the first function command and a second target parameter corresponding to the second function command;
[0062] a fourth report determined according to a second number; the second number being the number of mismatches between the optional parameters preset in the first target parameter corresponding to the first function command and the second target parameter corresponding to the second function command;
[0063] A fifth report determined according to the absolute value of the difference in parameter value range rates; the absolute value of the difference in parameter value range rates is determined according to the first parameter value range rate and the second parameter value coverage rate; the first parameter value coverage rate is determined according to the length of the overlapping parameter value range and the length of the first target parameter value range corresponding to the first function command; the second parameter value coverage rate is determined according to the length of the overlapping parameter value range and the length of the second target parameter value range corresponding to the second function command; the overlapping parameter is a parameter that overlaps between the first target parameter and the second target parameter;
[0064] a sixth report determined according to a correspondence between the number of function commands corresponding to the first function command and the number of function commands corresponding to the second function command;
[0065] a seventh report determined according to the contents of the return information corresponding to the first function command and the return information corresponding to the second function command;
[0066] an eighth report determined according to the format of the return information corresponding to the first function command and the return information corresponding to the second function command;
[0067] A ninth report is determined according to the contents of the error code information corresponding to the first function command and the error code information corresponding to the second function command.
[0068] Optionally, the function command includes at least one of the following:
[0069] General function commands;
[0070] Serial port control function commands;
[0071] Function commands related to user identity card SIM card or universal user identity card USIM;
[0072] Functional commands related to network services;
[0073] Hardware related function commands;
[0074] Transmission Control Protocol or Internet Protocol related function commands;
[0075] Functional commands related to the IoT platform;
[0076] Delta firmware upgrade related function commands.
[0077] Optionally, the method further comprises:
[0078] Obtaining log information corresponding to the second module in a preset application process;
[0079] Obtaining an application process compatibility assessment report according to the log information and the AT command set compatibility assessment result;
[0080] Obtaining application process compatibility adaptation suggestions based on the application process compatibility assessment report;
[0081] The second module is a communication module currently used by the terminal.
[0082] The embodiment of the present invention further provides a communication module AT command set compatibility evaluation device, comprising:
[0083] A first acquisition module, used to acquire a first AT command set document of a first module;
[0084] A second acquisition module, used to acquire a second AT command set document of a second module;
[0085] The first processing module is used to evaluate the first AT command set document and the second AT command set document to obtain an AT command set compatibility evaluation result of the first module and the second module.
[0086] Optionally, the first processing module includes:
[0087] A first processing unit, configured to extract effective information from the first AT command set document and the second AT command set document respectively, to obtain first command function information of the first AT command set document and second command function information of the second AT command set document;
[0088] The first processing submodule is used to obtain an AT command set compatibility evaluation result of the first module and the second module according to the first command function information and the second command function information.
[0089] Optionally, the first processing submodule includes:
[0090] A second processing unit, configured to determine a function matching result of function commands in the first AT command set document and the second AT command set document according to the first command function information and the second command function information;
[0091] The third processing unit is used to obtain the AT command set compatibility evaluation result according to the function matching result of the function command, the first command function information and the second command function information.
[0092] Optionally, the first processing module further includes:
[0093] A first determining unit, configured to determine a language version of the first AT command set document and a language version of the second AT command set document;
[0094] The conversion unit is used to adjust the language version of the first AT command set document and the language version of the second AT command set document to the same language version when the language version of the first AT command set document and the language version of the second AT command set document are inconsistent.
[0095] Optionally, the first processing unit is specifically configured to:
[0096] Extracting first valid information of the first AT command set document and second valid information of the second AT command set document respectively; the first valid information includes first initial command function information of the first AT command set document, and the second valid information includes second initial command function information of the second AT command set document;
[0097] The different expressions of the same semantic information in the first initial command function information and the second initial command function information are converted into the same expression to obtain the first command function information and the second command function information.
[0098] Optionally, the first processing unit is specifically configured to:
[0099] According to a preset semantic information table and / or a preset natural language processing module, different expressions of the same semantic information in the first initial command function information and the second initial command function information are converted into the same expression to obtain the first command function information and the second command function information.
[0100] Optionally, the command function information includes function command parameters;
[0101] The second processing unit is specifically configured to:
[0102] Determine, according to the first function command parameter in the first command function information and the second function command parameter in the second command function information, corresponding results of the function commands in the first AT command set document and the second AT command set document;
[0103] Obtaining function matching results of function commands in the first AT command set document and the second AT command set document according to the corresponding result, the first function command parameter, and the second function command parameter;
[0104] The corresponding result includes at least one of the following:
[0105] A function command in the first AT command set document corresponds to a function command in the second AT command set document;
[0106] A function command in the first AT command set document corresponds to a plurality of function commands in the second AT command set document;
[0107] The plurality of function commands in the first AT command set document correspond to the function of one function command in the second AT command set document;
[0108] The multiple function commands in the first AT command set document correspond to the multiple function commands in the second AT command set document.
[0109] Optionally, the second processing unit is specifically configured to:
[0110] In a case where the first target parameter corresponding to the first function command includes all the second target parameters corresponding to the second function command, determining that the first function command and the second function command have functional matches;
[0111] The first function command is one or more function commands in the first AT command set document, and the second function command is one or more function commands in the second AT command set document;
[0112] The first function command and the second function command function match;
[0113] The second module is a communication module currently used by the terminal, and the first module is a communication module used by the terminal after being switched by the second module;
[0114] The first target parameter is determined according to a first function command parameter corresponding to the first function command, and the second target parameter is determined according to a second function command parameter corresponding to the second function command.
[0115] Optionally, when the first function command is a plurality of function commands in the first AT command set document, and / or when the second function command is a plurality of function commands in the second AT command set document, and when the first target parameter corresponding to the first function command includes the second target parameter corresponding to the second function command, the second processing unit is further specifically used to:
[0116] Taking a union of the first function command parameters corresponding to each of the first function commands to obtain the first target parameter;
[0117] and / or,
[0118] The second target parameter is obtained by taking a union of the second function command parameters corresponding to each of the second function commands.
[0119] Optionally, the AT command set compatibility evaluation result includes an AT command set compatibility evaluation score;
[0120] The command function information includes return information and error code information of the function command;
[0121] The third processing unit is specifically configured to:
[0122] In the case where the first function command and the second function command function match, the AT command set compatibility evaluation score is determined according to at least one of the following:
[0123] a first score determined according to a comparison result between the name of the first function command and the name of the function of the second function command;
[0124] A second score determined according to the first step number; the first step number is the minimum number of movement steps required to adjust the first target function command parameter corresponding to the second function command to be consistent with the second target function command parameter corresponding to the first function command; the first target function command parameter is any parameter of the second function command parameters corresponding to the second function command; the second target function command parameter is any parameter of the first function command parameters corresponding to the first function command; the first target function command parameter and the first target function command parameter have the same name;
[0125] a third score determined according to the first number and the first preset score; the first number being the number of mismatches between the mandatory parameters preset in the first target parameter corresponding to the first function command and the second target parameter corresponding to the second function command;
[0126] a fourth score determined according to a second number and a second preset score; the second number being the number of mismatches between the optional parameters preset in the first target parameter corresponding to the first function command and the second target parameter corresponding to the second function command;
[0127] a fifth score determined according to the absolute value of the difference between the parameter value range rates and the preset first gradient score; the absolute value of the difference between the parameter value range rates is determined according to the first parameter value range rate and the second parameter value coverage rate; the first parameter value coverage rate is determined according to the length of the overlapping parameter value range and the length of the first target parameter value range corresponding to the first function command; the second parameter value coverage rate is determined according to the length of the overlapping parameter value range and the length of the second target parameter value range corresponding to the second function command; the overlapping parameter is a parameter that overlaps between the first target parameter and the second target parameter;
[0128] a sixth score determined according to a correspondence between the number of function commands corresponding to the first function command and the number of function commands corresponding to the second function command;
[0129] a seventh score determined according to the content of the return information corresponding to the first function command and the return information corresponding to the second function command;
[0130] an eighth score determined according to the format of the return information corresponding to the first function command and the return information corresponding to the second function command;
[0131] A ninth score is determined according to content of the error code information corresponding to the first function command and the error code information corresponding to the second function command.
[0132] Optionally, the AT command set compatibility evaluation result includes an AT command set compatibility evaluation report;
[0133] The third processing unit is specifically configured to:
[0134] In the case where the first function command and the second function command function match, determining the AT command set compatibility evaluation report;
[0135] The AT command set compatibility assessment report includes at least one of the following:
[0136] a first report determined according to a comparison result of the name of the first functional command and the name of the function of the second functional command;
[0137] A second report determined according to the first step number; the first step number is the minimum number of movement steps required to adjust the first target function command parameter corresponding to the second function command to be consistent with the second target function command parameter corresponding to the first function command; the first target function command parameter is any parameter of the second function command parameter corresponding to the second function command; the second target function command parameter is any parameter of the first function command parameter corresponding to the first function command; the first target function command parameter and the first target function command parameter have the same name;
[0138] a third report determined according to a first number; the first number being the number of mismatches between a preset mandatory parameter in a first target parameter corresponding to the first function command and a second target parameter corresponding to the second function command;
[0139] a fourth report determined according to a second number; the second number being the number of mismatches between the optional parameters preset in the first target parameter corresponding to the first function command and the second target parameter corresponding to the second function command;
[0140] A fifth report determined according to the absolute value of the difference in parameter value range rates; the absolute value of the difference in parameter value range rates is determined according to the first parameter value range rate and the second parameter value coverage rate; the first parameter value coverage rate is determined according to the length of the overlapping parameter value range and the length of the first target parameter value range corresponding to the first function command; the second parameter value coverage rate is determined according to the length of the overlapping parameter value range and the length of the second target parameter value range corresponding to the second function command; the overlapping parameter is a parameter that overlaps between the first target parameter and the second target parameter;
[0141] a sixth report determined according to a correspondence between the number of function commands corresponding to the first function command and the number of function commands corresponding to the second function command;
[0142] a seventh report determined according to the contents of the return information corresponding to the first function command and the return information corresponding to the second function command;
[0143] an eighth report determined according to the format of the return information corresponding to the first function command and the return information corresponding to the second function command;
[0144] A ninth report is determined according to the contents of the error code information corresponding to the first function command and the error code information corresponding to the second function command.
[0145] Optionally, the function command includes at least one of the following:
[0146] General function commands;
[0147] Serial port control function commands;
[0148] Function commands related to user identity card SIM card or universal user identity card USIM;
[0149] Functional commands related to network services;
[0150] Hardware related function commands;
[0151] Transmission Control Protocol or Internet Protocol related function commands;
[0152] Functional commands related to the IoT platform;
[0153] Delta firmware upgrade related function commands.
[0154] Optionally, the device further comprises:
[0155] A third acquisition module, used to acquire log information corresponding to the second module in a preset application process;
[0156] A second processing module, configured to obtain an application process compatibility assessment report according to the log information and the AT command set compatibility assessment result;
[0157] A third processing module is used to obtain application process compatibility adaptation suggestions according to the application process compatibility assessment report;
[0158] The second module is a communication module currently used by the terminal.
[0159] An embodiment of the present invention also provides a communication module AT command set compatibility evaluation device, characterized in that it includes: a processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of the communication module AT command set compatibility evaluation method described in any one of the above are implemented.
[0160] An embodiment of the present invention further provides a readable storage medium, on which a program is stored. When the program is executed by a processor, the steps in the communication module AT command set compatibility evaluation method as described above are implemented.
[0161] The beneficial effects of the present invention are:
[0162] The scheme of the present invention directly obtains the AT command set compatibility evaluation result of the first module and the second module by acquiring the first AT command set document of the first module and acquiring the second AT command set document of the second module, and evaluating and processing the first AT command set document and the second AT command set document, so as to realize automatic evaluation of the AT command compatibility of the two communication modules, obtain the evaluation result, and ensure the objectivity of the evaluation result. BRIEF DESCRIPTION OF THE DRAWINGS
[0163] Figure 1 A flowchart showing a method for evaluating the compatibility of an AT command set of a communication module provided by an embodiment of the present invention;
[0164] Figure 2 A schematic diagram showing an input process of an AT command set document provided by an embodiment of the present invention;
[0165] Figure 3 A flowchart showing the translation of an AT command set document and the extraction of effective information provided by an embodiment of the present invention;
[0166] Figure 4 A flowchart showing the compatibility evaluation of an AT command set provided by an embodiment of the present invention;
[0167] Figure 5 A flowchart showing application process compatibility evaluation provided by an embodiment of the present invention;
[0168] Figure 6 A schematic diagram showing the structure of a communication module AT command set compatibility evaluation device provided by an embodiment of the present invention;
[0169] Figure 7 A schematic diagram showing the structure of a communication module AT command set compatibility evaluation device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0170] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.
[0171] The present invention aims to solve the problem in the prior art that the evaluation results obtained by evaluating the AT command compatibility of two communication modules are subject to the subjective judgment of the evaluator and it is difficult to ensure their objectivity. The present invention provides a communication module AT command set compatibility evaluation method, device and equipment.
[0172] like Figure 1 As shown, an embodiment of the present invention provides a communication module AT command set compatibility evaluation method, including:
[0173] Step 101: Obtain a first AT command set document of a first module.
[0174] It should be noted that in order to help customers understand the basic usage of the module, the module manufacturer will provide the AT command set (or AT command manual) in the form of a document. This document introduces the specific usage of different commands according to the module, that is, the parameter interpretation, and generally includes command explanation, command format, command parameters and interpretation, command return, usage examples and other information.
[0175] The communication module AT command set compatibility evaluation method provided by the embodiment of the present invention is applied to an evaluation device, which includes two input modules, wherein the first input module of the two input modules is used to input a first AT command set document of the first module.
[0176] Step 102: Obtain a second AT command set document of the second module.
[0177] The second input module of the two input modules in the evaluation device is used to input a second AT command set document of the second module.
[0178] One of the first module and the second module is the communication module currently used by the terminal, namely the source module, and the other is the communication module used after the terminal switches, namely the target module. The two modules correspond to two AT command set documents. Please note that the direction of the source module AT command set document and the target module AT command set document is clear, and the source module AT command set document points to the target module AT command set document. Please refer to Figure 2 After inputting the AT command set documents of the two modules, the AT command set documents of the two modules are input into the AT command set compatibility evaluation module in the evaluation device for compatibility evaluation.
[0179] Step 103: Evaluate the first AT command set document and the second AT command set document to obtain AT command set compatibility evaluation results of the first module and the second module.
[0180] After the AT command set compatibility evaluation module in the evaluation device receives the first AT command set document and the second AT command set document, the compatibility of the two AT command set documents is automatically evaluated and processed to obtain the AT command set compatibility evaluation results of the first module and the second module. The AT command compatibility of the two communication modules can be automatically evaluated to obtain the evaluation results, thereby ensuring the objectivity of the evaluation results, reducing the evaluation time, alleviating the workload of personnel, and avoiding evaluation omissions.
[0181] Optionally, the evaluating the first AT command set document and the second AT command set document to obtain an AT command set compatibility evaluation result of the first module and the second module includes:
[0182] Extracting effective information from the first AT command set document and the second AT command set document respectively to obtain first command function information of the first AT command set document and second command function information of the second AT command set document;
[0183] An AT command set compatibility evaluation result of the first module and the second module is obtained according to the first command function information and the second command function information.
[0184] When evaluating the AT command compatibility of two communication modules, it is necessary to extract effective information from the two AT command set documents to obtain command function information. The command function information includes function commands, function command parameters, number of parameters, parameter meaning, parameter type, command return information, error information, etc.
[0185] After extracting valid information from the AT command set document, a specific compatibility evaluation is performed based on the first command function information obtained from the first AT command set document and the second command function information obtained from the second AT command set document to obtain the AT command set compatibility evaluation results of the first module and the second module.
[0186] Further, obtaining the AT command set compatibility evaluation result of the first module and the second module according to the first command function information and the second command function information includes:
[0187] Determine, according to the first command function information and the second command function information, a function matching result of function commands in the first AT command set document and the second AT command set document;
[0188] The AT command set compatibility evaluation result is obtained according to the function matching result of the function command, the first command function information and the second command function information.
[0189] When performing a compatibility evaluation based on the first command function information and the second command function information, first determine the function matching results of the function commands in the first AT command set document and the second AT command set document based on the first command function information and the second command function information. When the function command match is determined based on the function command matching results, perform a specific parameter evaluation based on the function parameters corresponding to the function commands to obtain the AT command set compatibility evaluation result.
[0190] Optionally, before respectively extracting effective information from the first AT command set document and the second AT command set document to obtain first command function information of the first AT command set document and second command function information of the second AT command set document, the method further includes:
[0191] Determining a language version of the first AT command set document and a language version of the second AT command set document;
[0192] When the language version of the first AT command set document and the language version of the second AT command set document are inconsistent, the language version of the first AT command set document and the language version of the second AT command set document are adjusted to be the same language version.
[0193] It should be noted that before extracting effective information from the AT command set document, it is necessary to ensure that the two AT command set documents can be compared in the same language. Therefore, the language version of the first AT command set document and the language version of the second AT command set document are first determined. When the language version of the first AT command set document and the language version of the second AT command set document are inconsistent, the language version of the first AT command set document and the language version of the second AT command set document are adjusted to the same language version. For example, when the language version of the first AT command set document is an English version, the first AT command set document is converted into a Chinese version through an English-Chinese translation application programming interface (API).
[0194] Preferably, when the language version of the first AT command set document and the language version of the second AT command set document are both English versions, the language version of the first AT command set document and the language version of the second AT command set document are both adjusted to Chinese versions.
[0195] The following specifically describes the process of extracting effective information from the AT command set document.
[0196] Optionally, respectively extracting effective information from the first AT command set document and the second AT command set document to obtain first command function information of the first AT command set document and second command function information of the second AT command set document includes:
[0197] Extracting first valid information of the first AT command set document and second valid information of the second AT command set document respectively; the first valid information includes first initial command function information of the first AT command set document, and the second valid information includes second initial command function information of the second AT command set document;
[0198] The different expressions of the same semantic information in the first initial command function information and the second initial command function information are converted into the same expression to obtain the first command function information and the second command function information.
[0199] The main purpose of effective information extraction from AT command set documents is to further clarify all textual and symbolic descriptions in AT command set documents into a scheme that is conducive to format unification, and to convert multiple expressions of unified expression content in different documents or in the same document into a unified expression.
[0200] Specifically, the first valid information of the first AT command set document and the second valid information of the second AT command set document are extracted respectively, and the different expressions of the same semantic information (same expression content) in the first initial command function information in the first valid information and the second initial command function information in the second valid information are converted into the same expression to obtain the first command function information and the second command function information. The initial command function information includes function commands, function command parameters, parameter number, parameter meaning, parameter type, command return information, error information, etc.
[0201] For example, when creating a Transmission Control Protocol / Internet Protocol (TCP / IP) connection according to an AT function command, the function commands "create a TCP connection" and "create a TCP socket" are expressed as the same meaning (the same expression content), and "create a TCP connection" and "create a TCP socket" are converted into the same expression, and can be both converted into "create a TCP connection", or both converted into "create a TCP socket", or can be converted into other expressions with the same meaning as "create a TCP connection" and "create a TCP socket"; for another example, "synchronize network time" and "network time synchronization" in the parameter meaning are expressed as the same meaning (the same expression content), and "synchronize network time" and "network time synchronization" are converted into the same expression, and can be both converted into "synchronize network time", or both converted into "network time synchronization", or can be converted into other expressions with the same meaning as "synchronize network time" and "network time synchronization".
[0202] The purpose of converting different expressions of the same semantic information in the first initial command function information and the second initial command function information into the same expression is to achieve pre-processing unification of content expression.
[0203] Further, converting different expressions of the same semantic information in the first initial command function information and the second initial command function information into the same expression to obtain the first command function information and the second command function information includes:
[0204] According to a preset semantic information table and / or a preset natural language processing module, different expressions of the same semantic information in the first initial command function information and the second initial command function information are converted into the same expression to obtain the first command function information and the second command function information.
[0205] In this embodiment, the different expressions of the same semantic information in the first initial command function information and the second initial command function information are converted into the same expression using a preset semantic information table and / or a preset natural language processing module. Preferably, the preset semantic information table is a manually maintained same semantic information table, and the preset natural language processing module is a natural language processing module driven by a neural network.
[0206] During the conversion process, the content in the manually maintained same semantic information table shall be given priority. If the content in the manually maintained same semantic information table cannot be matched, the natural language processing module driven by a neural network shall be used for unified processing to obtain the first command function information and the second command function information as input for subsequent compatibility evaluation for subsequent processing.
[0207] Manually maintained tables with the same semantic information can be maintained by themselves, with higher flexibility and autonomy in problem handling. The natural language processing module driven by neural networks uses existing mature neural networks as the driving engine, and has autonomous learning and self-updating capabilities, and becomes smarter the more it is used.
[0208] Combine the following Figure 3 , specifically describes the process of translating the first AT command set document and the second AT command set document and extracting effective information.
[0209] A first AT command set document is obtained as input, and a second AT command set document is obtained as input. It is determined whether the language versions of the first AT command set document and the second AT command set document are both Chinese versions, that is, it is determined whether the first AT command set document and the second AT command set document are both Chinese documents. If not, the first AT command set document and the second AT command set document are both converted into Chinese documents. After the first AT command set document and the second AT command set document are both Chinese documents, all expressions (initial command function information) in the first AT command set document and the second AT command set document are matched with the manually maintained same semantic information table. If the match is successful, different expression modes with the same meaning in the document are modified into the same expression mode according to the manually maintained same semantic information table. If the match is unsuccessful, different expression modes with the same meaning in the document are modified into the same expression mode according to a natural language processing module driven by a neural network. After the initial command function information in the document is converted into the same expression mode, command function information corresponding to the first AT command set document and the second AT command set document is obtained, and subsequent evaluation processing is performed according to the command function information.
[0210] The following specifically describes the process of evaluating the function command parameters in the function command information.
[0211] Optionally, the command function information includes function command parameters;
[0212] The determining, according to the first command function information and the second command function information, function matching results of function commands in the first AT command set document and the second AT command set document includes:
[0213] Determine, according to the first function command parameter in the first command function information and the second function command parameter in the second command function information, corresponding results of the function commands in the first AT command set document and the second AT command set document;
[0214] Obtaining function matching results of function commands in the first AT command set document and the second AT command set document according to the corresponding result, the first function command parameter, and the second function command parameter;
[0215] The corresponding result includes at least one of the following:
[0216] A function command in the first AT command set document corresponds to a function command in the second AT command set document;
[0217] A function command in the first AT command set document corresponds to a plurality of function commands in the second AT command set document;
[0218] The plurality of function commands in the first AT command set document correspond to the function of one function command in the second AT command set document;
[0219] The multiple function commands in the first AT command set document correspond to the multiple function commands in the second AT command set document.
[0220] In the process of performing AT command set compatibility evaluation according to first function command information corresponding to the first AT command set document and second function command information corresponding to the second AT command set document, firstly, according to first function command parameters in the first command function information and second function command parameters in the second command function information, corresponding results of function commands in the first AT command set document and the second AT command set document are determined, and then, according to the corresponding results of the function commands and in combination with specific function command parameters, it is determined whether the function commands in the first AT command set document and the second AT command set document match.
[0221] Further, obtaining, according to the corresponding result, the first function command parameter, and the second function command parameter, a function matching result of the function commands in the first AT command set document and the second AT command set document includes:
[0222] In a case where the first target parameter corresponding to the first function command includes all the second target parameters corresponding to the second function command, determining that the first function command and the second function command have functional matches;
[0223] The first function command is one or more function commands in the first AT command set document, and the second function command is one or more function commands in the second AT command set document;
[0224] The first function command and the second function command function match;
[0225] The second module is a communication module currently used by the terminal, and the first module is a communication module used by the terminal after being switched by the second module;
[0226] The first target parameter is determined according to a first function command parameter corresponding to the first function command, and the second target parameter is determined according to a second function command parameter corresponding to the second function command.
[0227] Specifically, the second module is a communication module currently used by the terminal, ie, a source module, and the first module is a communication module used by the terminal after being switched from the second module, ie, a target module.
[0228] For the corresponding function command, the function command parameter evaluation is performed to determine whether the corresponding function command is functionally matched. Taking the first target parameter of the function command corresponding to the target module (the first function command) as the reference, the second target parameter of the function command corresponding to the source module (the second function command) is matched and filled in sequentially. If the second target parameter of the function command corresponding to the source module can completely fill in the first target parameter of the function command corresponding to the target module, that is, the first target parameter corresponding to the first function command includes all the second target parameters corresponding to the second function command (the first target parameter still remains or does not remain), then it is determined that the first function command and the second function command are functionally matched. If the second target parameter of the function command corresponding to the source module cannot completely fill in the first target parameter of the function command corresponding to the target module, that is, the first target parameter corresponding to the first function command cannot completely include the second target parameter corresponding to the second function command, then it is determined that the first function command and the second function command are functionally mismatched.
[0229] The first target parameter is determined according to the first function command parameter corresponding to each first function command, and the second target parameter is determined according to the second function command parameter corresponding to each second function command.
[0230] Further, when the first function command is a plurality of function commands in the first AT command set document, and / or when the second function command is a plurality of function commands in the second AT command set document, and when the first target parameter corresponding to the first function command includes the second target parameter corresponding to the second function command, before determining that the first function command and the second function command function match, the method includes:
[0231] Taking a union of the first function command parameters corresponding to each of the first function commands to obtain the first target parameter;
[0232] and / or,
[0233] The second target parameter is obtained by taking a union of the second function command parameters corresponding to each of the second function commands.
[0234] It should be noted that some functions need to be subdivided and disassembled into multiple function commands for implementation, and different manufacturers have different considerations when designing commands, and the disassembly methods are also different. Therefore, when at least one of the corresponding first function command and the second function command is a plurality of function commands, it is necessary to be compatible with the plurality of function commands for comprehensive consideration to determine whether the functions match, that is, to take the maximum set of function command parameters of the function command as the normalized template before determining whether the functions match. Specifically, when the first function command is a plurality of function commands, the first function command parameters corresponding to each first function command are taken as a union to obtain the first target parameter; when the second function command is a plurality of function commands, the second function command parameters corresponding to each second function command are taken as a union to obtain the second target parameter; when the first function command is a plurality of function commands and the second function command is a plurality of function commands, the first function command parameters corresponding to each first function command are taken as a union to obtain the first target parameter, and the second function command parameters corresponding to each second function command are taken as a union to obtain the second target parameter.
[0235] For example, the second function command in the AT command set document of the source module is two AT function commands, and the corresponding second function command parameters are: AT+XXX1= <para1> , <para2>、AT+XXX2= <para3> , <para4> , <para5>In the AT command set document of the target module, the first function command corresponding to the second function command is also two AT function commands, and the corresponding first function command parameters are: AT+YYY1= <para1> , <para3>、AT+YYY2= <para2> , <para4>Then the maximum common set of the second function command parameters corresponding to the second function command of the source module is: <para1> , <para2> , <para3> , <para4> , <para5>, the maximum common set of the first function command parameters of the first function command of the target module is: <para1> , <para2> , <para3> , <para4>, taking the maximum common set of the first function command parameters corresponding to the target module as the benchmark, each command function parameter in the maximum common set of the second function command parameters corresponding to the source module is sequentially filled into the maximum common set of the first function command parameters corresponding to the target module, and it can be concluded that the second function command parameters corresponding to the second function command of the source module <para5>It is not covered by the first function command parameter corresponding to the target module, so it is determined that the first function command and the second function command do not match.
[0236] Optionally, the AT command set compatibility evaluation result includes an AT command set compatibility evaluation score;
[0237] The command function information includes return information and error code information of the function command;
[0238] The obtaining the AT command set compatibility evaluation result according to the function matching result of the function command, the first command function information and the second command function information includes:
[0239] In the case where the first function command and the second function command function match, the AT command set compatibility evaluation score is determined according to at least one of the following:
[0240] a first score determined according to a comparison result between the name of the first function command and the name of the function of the second function command;
[0241] A second score determined according to the first step number; the first step number is the minimum number of movement steps required to adjust the first target function command parameter corresponding to the second function command to be consistent with the second target function command parameter corresponding to the first function command; the first target function command parameter is any parameter of the second function command parameters corresponding to the second function command; the second target function command parameter is any parameter of the first function command parameters corresponding to the first function command; the first target function command parameter and the first target function command parameter have the same name;
[0242] a third score determined according to the first number and the first preset score; the first number being the number of mismatches between the mandatory parameters preset in the first target parameter corresponding to the first function command and the second target parameter corresponding to the second function command;
[0243] a fourth score determined according to a second number and a second preset score; the second number being the number of mismatches between the optional parameters preset in the first target parameter corresponding to the first function command and the second target parameter corresponding to the second function command;
[0244] a fifth score determined according to the absolute value of the difference between the parameter value range rates and the preset first gradient score; the absolute value of the difference between the parameter value range rates is determined according to the first parameter value range rate and the second parameter value coverage rate; the first parameter value coverage rate is determined according to the length of the overlapping parameter value range and the length of the first target parameter value range corresponding to the first function command; the second parameter value coverage rate is determined according to the length of the overlapping parameter value range and the length of the second target parameter value range corresponding to the second function command; the overlapping parameter is a parameter that overlaps between the first target parameter and the second target parameter;
[0245] a sixth score determined according to a correspondence between the number of function commands corresponding to the first function command and the number of function commands corresponding to the second function command;
[0246] a seventh score determined according to the content of the return information corresponding to the first function command and the return information corresponding to the second function command;
[0247] an eighth score determined according to the format of the return information corresponding to the first function command and the return information corresponding to the second function command;
[0248] A ninth score is determined according to content of the error code information corresponding to the first function command and the error code information corresponding to the second function command.
[0249] For the first function command and the second function command function of the function match, further combined with the specific function command information, a specific AT command set compatibility evaluation is performed to obtain a corresponding AT command set compatibility evaluation score. The value of the AT command set compatibility evaluation score is inversely proportional to the quality of the AT command compatibility, that is, the higher the score of the AT command set compatibility evaluation score, the worse the AT command compatibility.
[0250] Specifically, the AT command set compatibility evaluation score includes at least one of the following:
[0251] A first score is determined based on a comparison result of the name of the first function command and the name of the function of the second function command; preferably, when the two function commands match each other but the names of the function commands are different, the AT command set compatibility evaluation score is increased by a first score, and the first score may be 1 point, that is, the first score is determined based on the number of function commands that match each other but have different function names and the first score; the first score Kcn is a score determined based on the function naming name;
[0252] a second score determined according to the first step; the first step is the minimum number of moving steps required for the first target function command parameter corresponding to the second function command to be adjusted to be consistent with the second target function command parameter corresponding to the first function command; the first target function command parameter is any parameter of the second function command parameter corresponding to the second function command; the second target function command parameter is any parameter of the first function command parameter corresponding to the first function command; the first target function command parameter and the first target function command parameter have the same name; preferably, if one of the function command parameters of the two function commands of function matching does not correspond, the function command parameter in the source module needs to be adjusted by the minimum number of moving steps (the first step) to be consistent with the function command parameter in the target module, then the AT command set compatibility evaluation score is increased by the first step multiplied by the second score, the second score can be 1 point, that is, the second score is determined according to the first step and the second score; the second score Kps is a score determined according to the order of the function command parameters;
[0253] A third score is determined based on the first number and the first preset score; the first number is the number of mandatory parameters preset in the first target parameter corresponding to the first function command that do not match the second target parameter corresponding to the second function command; preferably, if a mandatory parameter corresponding to the target module cannot be matched by the function command parameter of the source module, there is such a mandatory parameter, and the AT command set compatibility evaluation score is increased by the first preset score, preferably, the first preset score is 20 points.
[0254] The fourth score is determined according to the second number and the second preset score; the second number is the number of optional parameters preset in the first target parameter corresponding to the first function command that do not match the second target parameter corresponding to the second function command; preferably, if an optional parameter corresponding to the target module cannot be matched by the function command parameter of the source module, there is such an optional parameter, and the AT command set compatibility evaluation score increases by the second preset score, preferably, the second preset score is 10 points. Further, if the required parameters and optional parameters corresponding to the target module are matched by the function command parameters of the source module, and the function command parameters of the source module still have parameter margin, then the T command compatibility evaluation score does not increase, that is, the third score Kpn1 and the fourth score Kpn2 are determined according to the number of matches of the function command parameters in the target module.
[0255] a fifth score determined according to the absolute value of the difference between the parameter value range rate and the preset first gradient score; the absolute value of the difference between the parameter value range rate is determined according to the first parameter value range rate and the second parameter value coverage rate; the first parameter value coverage rate is determined according to the length of the overlapping parameter value range and the length of the first target parameter value range corresponding to the first functional command; the second parameter value coverage rate is determined according to the length of the overlapping parameter value range and the length of the second target parameter value range corresponding to the second functional command; the overlapping parameter is the parameter overlapping between the first target parameter and the second target parameter; that is, the first parameter value range coverage rate is the function of the source module and the target module. The overlapping part of the value range of the function command parameter is divided by the length of the value range of the function command parameter of the target module and then converted into a percentage. The second parameter value range coverage is the overlapping part of the value range of the function command parameter of the source module and the target module divided by the length of the value range of the function command parameter of the source module and then converted into a percentage. For every 5% difference in coverage between the absolute value of the difference between the first parameter value range coverage and the second parameter value range coverage (the absolute value of the difference in parameter value range rates), the AT command set compatibility assessment score increases by a first gradient score. Preferably, the first gradient score is 2 points, and a coverage rate less than 5% is calculated according to a coverage rate of 5%; that is, the fifth score Kpr is determined based on the parameter value range coverage rate.
[0256] The sixth score is determined based on the correspondence between the number of function commands corresponding to the first function command and the number of function commands corresponding to the second function command; preferably, the function commands between the source module and the target module need to span M (M is a positive integer greater than or equal to 1) to match each other, then the AT command set compatibility evaluation score is increased by the third score multiplied by M, and the third score can be 2 points; that is, the sixth score Kpd is determined based on the function command involving cross-function command matching.
[0257] The seventh score is determined according to the content of the return information corresponding to the first function command and the return information corresponding to the second function command; preferably, for the incompatibility caused by the return information content, one point corresponds to the fourth score, and one parameter is counted as one point, that is, for one parameter incompatibility caused by the return information content, the AT command set compatibility evaluation score is increased by the fourth score, and the fourth score can be 1 point; that is, the seventh score Kri is determined according to the content of the return information.
[0258] The eighth score Kfm is determined according to the format of the return information corresponding to the first function command and the return information corresponding to the second function command; preferably, the incompatibility caused by the format information (space character, line break character, etc.) of the return information corresponds to the fifth score, and the fifth score can be 0.5 points; that is, the eighth score Kfm is determined according to the format of the return information.
[0259] The ninth score Kei is determined based on the error code information corresponding to the first function command and the error code information corresponding to the second function command. Preferably, the error code information is different, one point corresponds to the sixth score, and the sixth score can be 1 point; that is, the ninth score Kei is determined based on the error code information.
[0260] After determining the above scores, preferably, the AT command set compatibility evaluation score corresponding to each functional module (each functional command) is equal to the cumulative sum of the above scores, as shown in the following formula:
[0261] K C =Kcn+Kps+Kpn1+Kpn2+Kpr+Kpd+Kri+Kfm+Kei
[0262] Among them, K C Indicates the AT command set compatibility evaluation score corresponding to a functional module; Kcn is the first score; Kps is the second score; Kpn1 is the third score; Kpn2 is the fourth score; Kpr is the fifth score; Kpd is the sixth score; Kri is the seventh score; Kfm is the eighth score, and Kei is the ninth score.
[0263] If the function commands corresponding to the function module are fully compatible, then K C The value is 0. The higher the score, the worse the compatibility. The AT command set compatibility evaluation scores are divided according to functional modules for easy comparison.
[0264] Optionally, the AT command set compatibility evaluation result includes an AT command set compatibility evaluation report;
[0265] The obtaining the AT command set compatibility evaluation result according to the function matching result of the function command, the first command function information and the second command function information includes:
[0266] In the case where the first function command and the second function command function match, determining the AT command set compatibility evaluation report;
[0267] The AT command set compatibility assessment report includes at least one of the following:
[0268] a first report determined according to a comparison result of the name of the first functional command and the name of the function of the second functional command;
[0269] A second report determined according to the first step number; the first step number is the number of steps required for adjusting the first target function command parameter corresponding to the second function command to be consistent with the second target function command parameter corresponding to the first function command; the first target function command parameter is any parameter of the second function command parameters corresponding to the second function command; the second target function command parameter is any parameter of the first function command parameters corresponding to the first function command; the first target function command parameter and the first target function command parameter have the same name;
[0270] a third report determined according to a first number; the first number being the number of mismatches between a preset mandatory parameter in a first target parameter corresponding to the first function command and a second target parameter corresponding to the second function command;
[0271] a fourth report determined according to a second number; the second number being the number of mismatches between the optional parameters preset in the first target parameter corresponding to the first function command and the second target parameter corresponding to the second function command;
[0272] A fifth report determined according to the absolute value of the difference in parameter value range rates; the absolute value of the difference in parameter value range rates is determined according to the first parameter value range rate and the second parameter value coverage rate; the first parameter value coverage rate is determined according to the length of the overlapping parameter value range and the length of the first target parameter value range corresponding to the first function command; the second parameter value coverage rate is determined according to the length of the overlapping parameter value range and the length of the second target parameter value range corresponding to the second function command; the overlapping parameter is a parameter that overlaps between the first target parameter and the second target parameter;
[0273] a sixth report determined according to a correspondence between the number of the first function commands and the number of the second function commands;
[0274] a seventh report determined according to the contents of the return information corresponding to the first function command and the return information corresponding to the second function command;
[0275] an eighth report determined according to the format of the return information corresponding to the first function command and the return information corresponding to the second function command;
[0276] A ninth report is determined according to the contents of the error code information corresponding to the first function command and the error code information corresponding to the second function command.
[0277] The AT command set compatibility evaluation result may also include an AT command set compatibility evaluation report, which provides a summary report of the compatibility differences corresponding to the above different scores in the form of a document. According to the functional commands in the functional module, an AT command set compatibility evaluation report includes but is not limited to at least one of the following reports:
[0278] The first report generated based on the difference in function command naming includes: the second report generated based on the difference in function command parameter order; the third and fourth reports generated based on the difference in function command parameter items; the fifth report generated based on the difference in parameter value ranges; the sixth report generated based on whether the function command needs to be implemented across commands; the seventh report generated based on the difference in return information content; the eighth report generated based on the difference in return information format; and the ninth report generated based on error code information.
[0279] Optionally, the function command includes at least one of the following:
[0280] General function commands;
[0281] Serial port control function commands;
[0282] Function commands related to user identity card SIM card or universal user identity card USIM;
[0283] Functional commands related to network services;
[0284] Hardware related function commands;
[0285] Transmission Control Protocol or Internet Protocol related function commands;
[0286] Functional commands related to the IoT platform;
[0287] Delta firmware upgrade related function commands.
[0288] In this embodiment, the AT command set compatibility evaluation is performed according to the functional modules, each functional module has different functional commands, and the functional modules can be divided into general command functional modules (general functional commands), serial port control functional modules (serial port control functional commands), subscriber identity module (Subscriber Identity Module, SIM) or universal subscriber identity module (Universal Subscriber Identity Module, USIM) card related functional modules (subscriber identity SIM card or universal subscriber identity card USIM related functional commands), network service functional modules (network service related functional commands), hardware related functional modules (hardware related functional commands), TCP / IP related functional modules (transmission control protocol or Internet protocol related functional commands), Internet of Things platform ONENET related functional modules (Internet of Things platform related functional commands), Delta firmware upgrade over-the-air (Delta Firmware Over-The-Air, DFOTA) related functional modules (Delta firmware upgrade over-the-air related functional commands) and other functional modules.
[0289] Combine the following Figure 4 , specifically describes the process of AT command set compatibility evaluation provided by an embodiment of the present invention.
[0290] A first AT command set document and a second AT command set document respectively input by two input modules are obtained. When the language versions of the two AT command set documents are not Chinese versions, the AT command set document that is not Chinese version is translated so that the language versions of the two AT command set documents are both Chinese versions. Effective information is extracted from the two AT command set documents that are both Chinese versions to obtain first command function information of the first AT command set document and second command function information of the second AT command set document. Command function parameters in the first command function information and the second command function information are evaluated, that is, for corresponding function commands, function command parameter evaluation is performed to determine whether the corresponding function commands are functionally matched. When it is determined that the function commands are functionally matched, other compatibility influencing factors are evaluated, that is, according to specific parameters in the first command function information and the second command function information, a specific AT command set compatibility evaluation is performed to obtain a corresponding AT command set compatibility evaluation result. The AT command set compatibility evaluation result includes an AT command set compatibility evaluation score and an AT command set compatibility evaluation report.
[0291] The communication module AT command set compatibility evaluation method provided by the embodiment of the present invention is short in time consumption, small in workload, and not easy to omit when performing AT command set compatibility evaluation. It can solve the problem that the current human resources need to perform command-by-command evaluation according to command documents or actual machine tests, and realize the evaluation of the possible incompatible contents such as the command format, parameter sequence, parameter value range, return value information, and error information of each functional command one by one. The obtained AT command set compatibility evaluation result includes the AT command set compatibility evaluation score, realizes the quantification of the result, ensures objectivity, can realize the statistics of the number of compatible functional commands, the number of incompletely compatible functional commands, and the number of incompatible functional commands, and makes an in-depth quantitative evaluation of the compatibility of each functional command.
[0292] Optionally, the method further comprises:
[0293] Obtaining log information corresponding to the second module in a preset application process;
[0294] Obtaining an application process compatibility assessment report according to the log information and the AT command set compatibility assessment result;
[0295] Obtaining application process compatibility adaptation suggestions based on the application process compatibility assessment report;
[0296] The second module is a communication module currently used by the terminal.
[0297] It should be noted that the above-mentioned AT command set compatibility evaluation through AT command set documents is more macroscopic, but the above-mentioned evaluation method compares all functional commands in the input AT command set document, but the downstream customer manufacturers of the module often only use part of the AT command set document in the specific application process. Although the large and comprehensive AT command set document-level compatibility evaluation is instructive for them, it is still necessary to conduct targeted application process compatibility evaluation for specific processes in specific scenarios when looking at specific application scenarios.
[0298] There is some functional overlap between the application process compatibility assessment module and the AT command set compatibility assessment module. The following description will simplify the overlapping parts and focus on the parts unique to the application process compatibility assessment.
[0299] Combine the following Figure 5 , specifically explain the process of application process compatibility assessment.
[0300] The application process compatibility assessment has two inputs: one is the AT command set compatibility assessment report in the above-mentioned AT command set compatibility assessment results; the other is the log information of the source module during the preset application process (source module application process AT command set output log information). Among them, when capturing log information, it should be captured separately according to different application scenarios of each functional module as much as possible. The multiple log files obtained are finally aggregated into one log file and analyzed as input for application process compatibility evaluation; extract effective information from the aggregated log files, filter out invalid printing and invalid blank line information, extract the sending information and return information of each functional command, that is, extract the source module application process command information. This step is similar to the above-mentioned effective information extraction, and the specific implementation details are not repeated here; perform AT command functional matching according to the application process command information, and the matching of information such as format and return value needs to be combined with the AT command set compatibility evaluation report. The implementation method is consistent with the content described in the above-mentioned AT command set compatibility evaluation, and it is not repeated here; perform AT command functional matching, format, return value and other information matching, and obtain the application process compatibility evaluation report. Among them, the application process compatibility evaluation report is different from the AT command set compatibility evaluation report. The application process compatibility evaluation report focuses on two aspects of information: first, it provides comprehensive evaluation information such as whether full compatibility can be achieved, full functional compatibility but format incompatibility, partial functional incompatibility, and full incompatibility according to the subdivided application process, and includes specific quantitative scores. Second, specific detailed descriptions are given for incompatible points such as functions and formats; cross-module software application process compatibility adaptation suggestions are output based on the application process compatibility assessment report. For application processes that are fully functionally compatible but incompatible with formats, adaptation suggestions are given through AT command compatibility assessment reports and direct matching of report information, and the application process of the source module is directly converted into the corresponding application process of the target module. For application processes with partial functional incompatibilities, compatible and incompatible content points are given respectively, and the reasons for incompatibility are described in detail (functions cannot be implemented, functional parameters are missing, parameter ranges are not fully covered, formats are incompatible, etc.).
[0301] The communication module AT command compatibility evaluation method provided in the embodiment of the present invention cannot be directly migrated to other newly introduced module platforms after the AT command compatibility evaluation is completed. Since AT commands are not fully compatible and the application processes of AT commands are not the same, it is impossible to quickly perform process testing and adaptation on the new module platform. The application process compatibility evaluation method provided in the embodiment of the present invention can quickly introduce modules from different platforms and different manufacturers and realize rapid adaptation of software solutions.
[0302] like Figure 6 As shown, an embodiment of the present invention further provides a communication module AT command set compatibility evaluation device, comprising:
[0303] A first acquisition module 601 is used to acquire a first AT command set document of a first module;
[0304] A second acquisition module 602 is used to acquire a second AT command set document of a second module;
[0305] The first processing module 603 is used to evaluate the first AT command set document and the second AT command set document to obtain an AT command set compatibility evaluation result of the first module and the second module.
[0306] Optionally, the first processing module 603 includes:
[0307] A first processing unit, configured to extract effective information from the first AT command set document and the second AT command set document respectively, to obtain first command function information of the first AT command set document and second command function information of the second AT command set document;
[0308] The first processing submodule is used to obtain an AT command set compatibility evaluation result of the first module and the second module according to the first command function information and the second command function information.
[0309] Optionally, the first processing submodule includes:
[0310] A second processing unit, configured to determine a function matching result of function commands in the first AT command set document and the second AT command set document according to the first command function information and the second command function information;
[0311] The third processing unit is used to obtain the AT command set compatibility evaluation result according to the function matching result of the function command, the first command function information and the second command function information.
[0312] Optionally, the first processing module 603 further includes:
[0313] A first determining unit, configured to determine a language version of the first AT command set document and a language version of the second AT command set document;
[0314] The conversion unit is used to adjust the language version of the first AT command set document and the language version of the second AT command set document to the same language version when the language version of the first AT command set document and the language version of the second AT command set document are inconsistent.
[0315] Optionally, the first processing unit is specifically configured to:
[0316] Extracting first valid information of the first AT command set document and second valid information of the second AT command set document respectively; the first valid information includes first initial command function information of the first AT command set document, and the second valid information includes second initial command function information of the second AT command set document;
[0317] The different expressions of the same semantic information in the first initial command function information and the second initial command function information are converted into the same expression to obtain the first command function information and the second command function information.
[0318] Optionally, the first processing unit is specifically configured to:
[0319] According to a preset semantic information table and / or a preset natural language processing module, different expressions of the same semantic information in the first initial command function information and the second initial command function information are converted into the same expression to obtain the first command function information and the second command function information.
[0320] Optionally, the command function information includes function command parameters;
[0321] The second processing unit is specifically configured to:
[0322] Determine, according to the first function command parameter in the first command function information and the second function command parameter in the second command function information, corresponding results of the function commands in the first AT command set document and the second AT command set document;
[0323] Obtaining function matching results of function commands in the first AT command set document and the second AT command set document according to the corresponding result, the first function command parameter, and the second function command parameter;
[0324] The corresponding result includes at least one of the following:
[0325] A function command in the first AT command set document corresponds to a function command in the second AT command set document;
[0326] A function command in the first AT command set document corresponds to a plurality of function commands in the second AT command set document;
[0327] The plurality of function commands in the first AT command set document correspond to the function of one function command in the second AT command set document;
[0328] The multiple function commands in the first AT command set document correspond to the multiple function commands in the second AT command set document.
[0329] Optionally, the second processing unit is specifically configured to:
[0330] In a case where the first target parameter corresponding to the first function command includes all the second target parameters corresponding to the second function command, determining that the first function command and the second function command have functional matches;
[0331] The first function command is one or more function commands in the first AT command set document, and the second function command is one or more function commands in the second AT command set document;
[0332] The first function command and the second function command function match;
[0333] The second module is a communication module currently used by the terminal, and the first module is a communication module used by the terminal after being switched by the second module;
[0334] The first target parameter is determined according to a first function command parameter corresponding to the first function command, and the second target parameter is determined according to a second function command parameter corresponding to the second function command.
[0335] Optionally, when the first function command is a plurality of function commands in the first AT command set document, and / or when the second function command is a plurality of function commands in the second AT command set document, and when the first target parameter corresponding to the first function command includes the second target parameter corresponding to the second function command, the second processing unit is further specifically used to:
[0336] Taking a union of the first function command parameters corresponding to each of the first function commands to obtain the first target parameter;
[0337] and / or,
[0338] The second target parameter is obtained by taking a union of the second function command parameters corresponding to each of the second function commands.
[0339] Optionally, the AT command set compatibility evaluation result includes an AT command set compatibility evaluation score;
[0340] The command function information includes return information and error code information of the function command;
[0341] The third processing unit is specifically configured to:
[0342] In the case where the first function command and the second function command function match, the AT command set compatibility evaluation score is determined according to at least one of the following:
[0343] a first score determined according to a comparison result between the name of the first function command and the name of the function of the second function command;
[0344] A second score determined according to the first step number; the first step number is the minimum number of movement steps required to adjust the first target function command parameter corresponding to the second function command to be consistent with the second target function command parameter corresponding to the first function command; the first target function command parameter is any parameter of the second function command parameters corresponding to the second function command; the second target function command parameter is any parameter of the first function command parameters corresponding to the first function command; the first target function command parameter and the first target function command parameter have the same name;
[0345] a third score determined according to the first number and the first preset score; the first number being the number of mismatches between the mandatory parameters preset in the first target parameter corresponding to the first function command and the second target parameter corresponding to the second function command;
[0346] a fourth score determined according to a second number and a second preset score; the second number being the number of mismatches between the optional parameters preset in the first target parameter corresponding to the first function command and the second target parameter corresponding to the second function command;
[0347] a fifth score determined according to the absolute value of the difference between the parameter value range rates and the preset first gradient score; the absolute value of the difference between the parameter value range rates is determined according to the first parameter value range rate and the second parameter value coverage rate; the first parameter value coverage rate is determined according to the length of the overlapping parameter value range and the length of the first target parameter value range corresponding to the first function command; the second parameter value coverage rate is determined according to the length of the overlapping parameter value range and the length of the second target parameter value range corresponding to the second function command; the overlapping parameter is a parameter that overlaps between the first target parameter and the second target parameter;
[0348] a sixth score determined according to a correspondence between the number of function commands corresponding to the first function command and the number of function commands corresponding to the second function command;
[0349] a seventh score determined according to the content of the return information corresponding to the first function command and the return information corresponding to the second function command;
[0350] an eighth score determined according to the format of the return information corresponding to the first function command and the return information corresponding to the second function command;
[0351] A ninth score is determined according to content of the error code information corresponding to the first function command and the error code information corresponding to the second function command.
[0352] Optionally, the AT command set compatibility evaluation result includes an AT command set compatibility evaluation report;
[0353] The third processing unit is specifically configured to:
[0354] In the case where the first function command and the second function command function match, determining the AT command set compatibility evaluation report;
[0355] The AT command set compatibility assessment report includes at least one of the following:
[0356] a first report determined according to a comparison result of the name of the first functional command and the name of the function of the second functional command;
[0357] A second report determined according to the first step number; the first step number is the minimum number of movement steps required to adjust the first target function command parameter corresponding to the second function command to be consistent with the second target function command parameter corresponding to the first function command; the first target function command parameter is any parameter of the second function command parameter corresponding to the second function command; the second target function command parameter is any parameter of the first function command parameter corresponding to the first function command; the first target function command parameter and the first target function command parameter have the same name;
[0358] a third report determined according to a first number; the first number being the number of mismatches between a preset mandatory parameter in a first target parameter corresponding to the first function command and a second target parameter corresponding to the second function command;
[0359] a fourth report determined according to a second number; the second number being the number of mismatches between the optional parameters preset in the first target parameter corresponding to the first function command and the second target parameter corresponding to the second function command;
[0360] A fifth report determined according to the absolute value of the difference in parameter value range rates; the absolute value of the difference in parameter value range rates is determined according to the first parameter value range rate and the second parameter value coverage rate; the first parameter value coverage rate is determined according to the length of the overlapping parameter value range and the length of the first target parameter value range corresponding to the first function command; the second parameter value coverage rate is determined according to the length of the overlapping parameter value range and the length of the second target parameter value range corresponding to the second function command; the overlapping parameter is a parameter that overlaps between the first target parameter and the second target parameter;
[0361] a sixth report determined according to a correspondence between the number of function commands corresponding to the first function command and the number of function commands corresponding to the second function command;
[0362] a seventh report determined according to the contents of the return information corresponding to the first function command and the return information corresponding to the second function command;
[0363] an eighth report determined according to the format of the return information corresponding to the first function command and the return information corresponding to the second function command;
[0364] A ninth report is determined according to the contents of the error code information corresponding to the first function command and the error code information corresponding to the second function command.
[0365] Optionally, the function command includes at least one of the following:
[0366] General function commands;
[0367] Serial port control function commands;
[0368] Function commands related to user identity card SIM card or universal user identity card USIM;
[0369] Functional commands related to network services;
[0370] Hardware related function commands;
[0371] Transmission Control Protocol or Internet Protocol related function commands;
[0372] Functional commands related to the IoT platform;
[0373] Delta firmware upgrade related function commands.
[0374] Optionally, the device further comprises:
[0375] A third acquisition module, used to acquire log information corresponding to the second module in a preset application process;
[0376] A second processing module, configured to obtain an application process compatibility assessment report according to the log information and the AT command set compatibility assessment result;
[0377] A third processing module is used to obtain application process compatibility adaptation suggestions according to the application process compatibility assessment report;
[0378] The second module is a communication module currently used by the terminal.
[0379] It should be noted that the communication module AT command set compatibility evaluation device provided in the embodiment of the present invention is a device capable of executing the above-mentioned communication module AT command set compatibility evaluation method. All embodiments of the above-mentioned communication module AT command set compatibility evaluation method are applicable to the device and can achieve the same or similar technical effects.
[0380] like Figure 7 As shown, an embodiment of the present invention also provides a communication module AT command set compatibility evaluation device, including: a processor 700; and a memory 710 connected to the processor 700 through a bus interface, the memory 710 is used to store programs and data used by the processor 700 when performing operations, and the processor 700 calls and executes the programs and data stored in the memory 710.
[0381] The communication module AT command set compatibility evaluation device further includes a transceiver 720, which is connected to the bus interface and is used to receive and send data under the control of the processor 700;
[0382] Specifically, the processor 700 performs the following processes:
[0383] Obtain a first AT command set document of the first module;
[0384] Obtain a second AT command set document of the second module;
[0385] The first AT command set document and the second AT command set document are evaluated and processed to obtain an AT command set compatibility evaluation result of the first module and the second module.
[0386] Optionally, the processor 700 is configured to:
[0387] Extracting effective information from the first AT command set document and the second AT command set document respectively to obtain first command function information of the first AT command set document and second command function information of the second AT command set document;
[0388] An AT command set compatibility evaluation result of the first module and the second module is obtained according to the first command function information and the second command function information.
[0389] Optionally, the processor 700 is specifically configured to:
[0390] Determine, according to the first command function information and the second command function information, a function matching result of function commands in the first AT command set document and the second AT command set document;
[0391] The AT command set compatibility evaluation result is obtained according to the function matching result of the function command, the first command function information and the second command function information.
[0392] Optionally, before the processor 700 extracts effective information from the first AT command set document and the second AT command set document respectively to obtain first command function information of the first AT command set document and second command function information of the second AT command set document, the processor 700 is further specifically configured to:
[0393] Determining a language version of the first AT command set document and a language version of the second AT command set document;
[0394] When the language version of the first AT command set document and the language version of the second AT command set document are inconsistent, the language version of the first AT command set document and the language version of the second AT command set document are adjusted to be the same language version.
[0395] Optionally, the processor 700 is specifically configured to:
[0396] Extracting first valid information of the first AT command set document and second valid information of the second AT command set document respectively; the first valid information includes first initial command function information of the first AT command set document, and the second valid information includes second initial command function information of the second AT command set document;
[0397] The different expressions of the same semantic information in the first initial command function information and the second initial command function information are converted into the same expression to obtain the first command function information and the second command function information.
[0398] Optionally, the processor 700 is specifically configured to:
[0399] According to a preset semantic information table and / or a preset natural language processing module, different expressions of the same semantic information in the first initial command function information and the second initial command function information are converted into the same expression to obtain the first command function information and the second command function information.
[0400] Optionally, it is characterized in that the command function information includes function command parameters;
[0401] Optionally, the processor 700 is specifically configured to:
[0402] Determine, according to the first function command parameter in the first command function information and the second function command parameter in the second command function information, corresponding results of the function commands in the first AT command set document and the second AT command set document;
[0403] Obtaining function matching results of function commands in the first AT command set document and the second AT command set document according to the corresponding result, the first function command parameter, and the second function command parameter;
[0404] The corresponding result includes at least one of the following:
[0405] A function command in the first AT command set document corresponds to a function command in the second AT command set document;
[0406] A function command in the first AT command set document corresponds to a plurality of function commands in the second AT command set document;
[0407] The plurality of function commands in the first AT command set document correspond to the function of one function command in the second AT command set document;
[0408] The multiple function commands in the first AT command set document correspond to the multiple function commands in the second AT command set document.
[0409] Optionally, the processor 700 is specifically configured to:
[0410] In a case where the first target parameter corresponding to the first function command includes all the second target parameters corresponding to the second function command, determining that the first function command and the second function command have functional matches;
[0411] The first function command is one or more function commands in the first AT command set document, and the second function command is one or more function commands in the second AT command set document;
[0412] The first function command and the second function command function match;
[0413] The second module is a communication module currently used by the terminal, and the first module is a communication module used by the terminal after being switched by the second module;
[0414] The first target parameter is determined according to a first function command parameter corresponding to the first function command, and the second target parameter is determined according to a second function command parameter corresponding to the second function command.
[0415] Optionally, when the first function command is a plurality of function commands in the first AT command set document, and / or when the second function command is a plurality of function commands in the second AT command set document, and when the first target parameter corresponding to the first function command includes the second target parameter corresponding to the second function command, before the processor 700 determines that the first function command and the second function command function match, the processor 700 is further specifically configured to:
[0416] Taking a union of the first function command parameters corresponding to each of the first function commands to obtain the first target parameter;
[0417] and / or,
[0418] The second target parameter is obtained by taking a union of the second function command parameters corresponding to each of the second function commands.
[0419] Optionally, the AT command set compatibility evaluation result includes an AT command set compatibility evaluation score;
[0420] The command function information includes return information and error code information of the function command;
[0421] The processor 700 is specifically configured to:
[0422] In the case where the first function command and the second function command function match, the AT command set compatibility evaluation score is determined according to at least one of the following:
[0423] a first score determined according to a comparison result between the name of the first function command and the name of the function of the second function command;
[0424] A second score determined according to the first step number; the first step number is the minimum number of movement steps required to adjust the first target function command parameter corresponding to the second function command to be consistent with the second target function command parameter corresponding to the first function command; the first target function command parameter is any parameter of the second function command parameters corresponding to the second function command; the second target function command parameter is any parameter of the first function command parameters corresponding to the first function command; the first target function command parameter and the first target function command parameter have the same name;
[0425] a third score determined according to the first number and the first preset score; the first number being the number of mismatches between the mandatory parameters preset in the first target parameter corresponding to the first function command and the second target parameter corresponding to the second function command;
[0426] a fourth score determined according to a second number and a second preset score; the second number being the number of mismatches between the optional parameters preset in the first target parameter corresponding to the first function command and the second target parameter corresponding to the second function command;
[0427] a fifth score determined according to the absolute value of the difference between the parameter value range rates and the preset first gradient score; the absolute value of the difference between the parameter value range rates is determined according to the first parameter value range rate and the second parameter value coverage rate; the first parameter value coverage rate is determined according to the length of the overlapping parameter value range and the length of the first target parameter value range corresponding to the first function command; the second parameter value coverage rate is determined according to the length of the overlapping parameter value range and the length of the second target parameter value range corresponding to the second function command; the overlapping parameter is a parameter that overlaps between the first target parameter and the second target parameter;
[0428] a sixth score determined according to a correspondence between the number of function commands corresponding to the first function command and the number of function commands corresponding to the second function command;
[0429] a seventh score determined according to the content of the return information corresponding to the first function command and the return information corresponding to the second function command;
[0430] an eighth score determined according to the format of the return information corresponding to the first function command and the return information corresponding to the second function command;
[0431] A ninth score is determined according to content of the error code information corresponding to the first function command and the error code information corresponding to the second function command.
[0432] Optionally, the AT command set compatibility evaluation result includes an AT command set compatibility evaluation report;
[0433] The processor 700 is specifically configured to:
[0434] In the case where the first function command and the second function command function match, determining the AT command set compatibility evaluation report;
[0435] The AT command set compatibility assessment report includes at least one of the following:
[0436] a first report determined according to a comparison result of the name of the first functional command and the name of the function of the second functional command;
[0437] A second report determined according to the first step number; the first step number is the minimum number of movement steps required to adjust the first target function command parameter corresponding to the second function command to be consistent with the second target function command parameter corresponding to the first function command; the first target function command parameter is any parameter of the second function command parameter corresponding to the second function command; the second target function command parameter is any parameter of the first function command parameter corresponding to the first function command; the first target function command parameter and the first target function command parameter have the same name;
[0438] a third report determined according to a first number; the first number being the number of mismatches between a preset mandatory parameter in a first target parameter corresponding to the first function command and a second target parameter corresponding to the second function command;
[0439] a fourth report determined according to a second number; the second number being the number of mismatches between the optional parameters preset in the first target parameter corresponding to the first function command and the second target parameter corresponding to the second function command;
[0440] A fifth report determined according to the absolute value of the difference in parameter value range rates; the absolute value of the difference in parameter value range rates is determined according to the first parameter value range rate and the second parameter value coverage rate; the first parameter value coverage rate is determined according to the length of the overlapping parameter value range and the length of the first target parameter value range corresponding to the first function command; the second parameter value coverage rate is determined according to the length of the overlapping parameter value range and the length of the second target parameter value range corresponding to the second function command; the overlapping parameter is a parameter that overlaps between the first target parameter and the second target parameter;
[0441] a sixth report determined according to a correspondence between the number of function commands corresponding to the first function command and the number of function commands corresponding to the second function command;
[0442] a seventh report determined according to the contents of the return information corresponding to the first function command and the return information corresponding to the second function command;
[0443] an eighth report determined according to the format of the return information corresponding to the first function command and the return information corresponding to the second function command;
[0444] A ninth report is determined according to the contents of the error code information corresponding to the first function command and the error code information corresponding to the second function command.
[0445] Optionally, the function command includes at least one of the following:
[0446] General function commands;
[0447] Serial port control function commands;
[0448] Function commands related to user identity card SIM card or universal user identity card USIM;
[0449] Functional commands related to network services;
[0450] Hardware related function commands;
[0451] Transmission Control Protocol or Internet Protocol related function commands;
[0452] Functional commands related to the IoT platform;
[0453] Delta firmware upgrade related function commands.
[0454] Optionally, the processor 700 is further configured to:
[0455] Obtaining log information corresponding to the second module in a preset application process;
[0456] Obtaining an application process compatibility assessment report according to the log information and the AT command set compatibility assessment result;
[0457] Obtaining application process compatibility adaptation suggestions based on the application process compatibility assessment report;
[0458] The second module is a communication module currently used by the terminal.
[0459] Among them, Figure 7 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking various circuits of one or more processors represented by processor 700 and memory represented by memory 710. The bus architecture may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides a user interface 730. The transceiver 720 may be a plurality of components, i.e., including a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium. The processor 700 is responsible for managing the bus architecture and general processing, and the memory 710 may store data used by the processor 700 when performing operations.
[0460] In addition, a specific embodiment of the present invention further provides a readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the steps in the communication module AT command set compatibility evaluation method as described in any one of the above are implemented.
[0461] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0462] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0463] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform some steps of the sending and receiving methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0464] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary personnel in this technical field, several improvements and modifications can be made without departing from the principles described in the present invention. These improvements and modifications are also within the scope of protection of the present invention. < / para3> < / para2> < / para1> < / para4> < / para3> < / para2> < / para1> < / para2> < / para1> < / para4> < / para3> < / para1>
Claims
1. A method for evaluating the compatibility of AT command sets of communication modules, characterized in that: include: Obtain a first AT command set document of the first module; Obtain a second AT command set document of the second module; Evaluate the first AT command set document and the second AT command set document to obtain an AT command set compatibility evaluation result of the first module and the second module; The step of evaluating the first AT command set document and the second AT command set document to obtain an AT command set compatibility evaluation result of the first module and the second module includes: Extracting effective information from the first AT command set document and the second AT command set document respectively to obtain first command function information of the first AT command set document and second command function information of the second AT command set document; Obtaining an AT command set compatibility evaluation result of the first module and the second module according to the first command function information and the second command function information; The obtaining, according to the first command function information and the second command function information, an AT command set compatibility evaluation result of the first module and the second module includes: Determine, according to the first command function information and the second command function information, a function matching result of function commands in the first AT command set document and the second AT command set document; Obtaining the AT command set compatibility evaluation result according to the function matching result of the function command, the first command function information and the second command function information; Wherein, the AT command set compatibility evaluation result includes an AT command set compatibility evaluation score; The command function information includes return information and error code information of the function command; The obtaining the AT command set compatibility evaluation result according to the function matching result of the function command, the first command function information and the second command function information includes: In the case where the first function command and the second function command function match, the AT command set compatibility evaluation score is determined according to at least one of the following: a first score determined according to a comparison result between the name of the first function command and the name of the function of the second function command; A second score determined according to the first step number; the first step number is the minimum number of movement steps required to adjust the first target function command parameter corresponding to the second function command to be consistent with the second target function command parameter corresponding to the first function command; the first target function command parameter is any parameter of the second function command parameters corresponding to the second function command; the second target function command parameter is any parameter of the first function command parameters corresponding to the first function command; the first target function command parameter and the first target function command parameter have the same name; a third score determined according to the first number and the first preset score; the first number being the number of mismatches between the mandatory parameters preset in the first target parameter corresponding to the first function command and the second target parameter corresponding to the second function command; a fourth score determined according to a second number and a second preset score; the second number being the number of mismatches between the optional parameters preset in the first target parameter corresponding to the first function command and the second target parameter corresponding to the second function command; a fifth score determined according to the absolute value of the difference between the parameter value range rates and the preset first gradient score; the absolute value of the difference between the parameter value range rates is determined according to the first parameter value range rate and the second parameter value coverage rate; the first parameter value coverage rate is determined according to the length of the overlapping parameter value range and the length of the first target parameter value range corresponding to the first function command; the second parameter value coverage rate is determined according to the length of the overlapping parameter value range and the length of the second target parameter value range corresponding to the second function command; the overlapping parameter is a parameter that overlaps between the first target parameter and the second target parameter; a sixth score determined according to a correspondence between the number of function commands corresponding to the first function command and the number of function commands corresponding to the second function command; a seventh score determined according to the content of the return information corresponding to the first function command and the return information corresponding to the second function command; an eighth score determined according to the format of the return information corresponding to the first function command and the return information corresponding to the second function command; A ninth score is determined according to content of the error code information corresponding to the first function command and the error code information corresponding to the second function command.
2. The method for evaluating the compatibility of AT command sets of communication modules according to claim 1, characterized in that: Before respectively extracting effective information from the first AT command set document and the second AT command set document to obtain first command function information of the first AT command set document and second command function information of the second AT command set document, the method further includes: Determining a language version of the first AT command set document and a language version of the second AT command set document; When the language version of the first AT command set document and the language version of the second AT command set document are inconsistent, the language version of the first AT command set document and the language version of the second AT command set document are adjusted to be the same language version.
3. The method for evaluating the compatibility of AT command sets of communication modules according to claim 1, characterized in that: The extracting effective information from the first AT command set document and the second AT command set document respectively to obtain first command function information of the first AT command set document and second command function information of the second AT command set document includes: Extracting first valid information of the first AT command set document and second valid information of the second AT command set document respectively; the first valid information includes first initial command function information of the first AT command set document, and the second valid information includes second initial command function information of the second AT command set document; The different expressions of the same semantic information in the first initial command function information and the second initial command function information are converted into the same expression to obtain the first command function information and the second command function information.
4. The method for evaluating the compatibility of AT command sets of communication modules according to claim 3, characterized in that: The converting different expressions of the same semantic information in the first initial command function information and the second initial command function information into the same expression to obtain the first command function information and the second command function information includes: According to a preset semantic information table and / or a preset natural language processing module, different expressions of the same semantic information in the first initial command function information and the second initial command function information are converted into the same expression to obtain the first command function information and the second command function information.
5. The method for evaluating the compatibility of AT command sets of communication modules according to claim 1, characterized in that: The command function information includes function command parameters; The determining, according to the first command function information and the second command function information, function matching results of function commands in the first AT command set document and the second AT command set document includes: Determine, according to the first function command parameter in the first command function information and the second function command parameter in the second command function information, corresponding results of the function commands in the first AT command set document and the second AT command set document; Obtaining function matching results of function commands in the first AT command set document and the second AT command set document according to the corresponding result, the first function command parameter, and the second function command parameter; The corresponding result includes at least one of the following: A function command in the first AT command set document corresponds to a function command in the second AT command set document; A function command in the first AT command set document corresponds to a plurality of function commands in the second AT command set document; The plurality of function commands in the first AT command set document correspond to the function of one function command in the second AT command set document; The multiple function commands in the first AT command set document correspond to the multiple function commands in the second AT command set document.
6. The method for evaluating the compatibility of AT command sets of communication modules according to claim 5, characterized in that: The obtaining, according to the corresponding result, the first function command parameter, and the second function command parameter, a function matching result of the function commands in the first AT command set document and the second AT command set document includes: In a case where the first target parameter corresponding to the first function command includes all the second target parameters corresponding to the second function command, determining that the first function command and the second function command have functional matches; The first function command is one or more function commands in the first AT command set document, and the second function command is one or more function commands in the second AT command set document; The first function command and the second function command function match; The second module is a communication module currently used by the terminal, and the first module is a communication module used by the terminal after being switched by the second module; The first target parameter is determined according to a first function command parameter corresponding to the first function command, and the second target parameter is determined according to a second function command parameter corresponding to the second function command.
7. The method for evaluating the compatibility of AT command sets of communication modules according to claim 6, characterized in that: In a case where the first function command is a plurality of function commands in the first AT command set document, and / or the second function command is a plurality of function commands in the second AT command set document, and in a case where the first target parameter corresponding to the first function command includes the second target parameter corresponding to the second function command, before determining that the first function command and the second function command function match, the method includes: Taking a union of the first function command parameters corresponding to each of the first function commands to obtain the first target parameter; and / or, The second target parameter is obtained by taking a union of the second function command parameters corresponding to each of the second function commands.
8. The method for evaluating the compatibility of AT command sets of communication modules according to claim 1, characterized in that: The AT command set compatibility evaluation result includes an AT command set compatibility evaluation report; The obtaining the AT command set compatibility evaluation result according to the function matching result of the function command, the first command function information and the second command function information includes: In the case where the first function command and the second function command function match, determining the AT command set compatibility evaluation report; The AT command set compatibility assessment report includes at least one of the following: a first report determined according to a comparison result of the name of the first functional command and the name of the function of the second functional command; A second report determined according to the first step number; the first step number is the minimum number of movement steps required to adjust the first target function command parameter corresponding to the second function command to be consistent with the second target function command parameter corresponding to the first function command; the first target function command parameter is any parameter of the second function command parameter corresponding to the second function command; the second target function command parameter is any parameter of the first function command parameter corresponding to the first function command; the first target function command parameter and the first target function command parameter have the same name; a third report determined according to a first number; the first number being the number of mismatches between a preset mandatory parameter in a first target parameter corresponding to the first function command and a second target parameter corresponding to the second function command; a fourth report determined according to a second number; the second number being the number of mismatches between the optional parameters preset in the first target parameter corresponding to the first function command and the second target parameter corresponding to the second function command; A fifth report determined according to the absolute value of the difference in parameter value range rates; the absolute value of the difference in parameter value range rates is determined according to the first parameter value range rate and the second parameter value coverage rate; the first parameter value coverage rate is determined according to the length of the overlapping parameter value range and the length of the first target parameter value range corresponding to the first function command; the second parameter value coverage rate is determined according to the length of the overlapping parameter value range and the length of the second target parameter value range corresponding to the second function command; the overlapping parameter is a parameter that overlaps between the first target parameter and the second target parameter; a sixth report determined according to a correspondence between the number of function commands corresponding to the first function command and the number of function commands corresponding to the second function command; a seventh report determined according to the contents of the return information corresponding to the first function command and the return information corresponding to the second function command; an eighth report determined according to the format of the return information corresponding to the first function command and the return information corresponding to the second function command; A ninth report is determined according to the contents of the error code information corresponding to the first function command and the error code information corresponding to the second function command.
9. The method for evaluating the compatibility of AT command sets of communication modules according to claim 1, characterized in that: The function command includes at least one of the following: General function commands; Serial port control function commands; Function commands related to user identity card SIM card or universal user identity card USIM; Functional commands related to network services; Hardware related function commands; Transmission Control Protocol or Internet Protocol related function commands; Functional commands related to the IoT platform; Delta firmware upgrade related function commands.
10. The method for evaluating the compatibility of AT command sets of communication modules according to claim 1, characterized in that: The method further comprises: Obtaining log information corresponding to the second module in a preset application process; Obtaining an application process compatibility assessment report according to the log information and the AT command set compatibility assessment result; Obtaining application process compatibility adaptation suggestions based on the application process compatibility assessment report; The second module is the communication module currently used by the terminal.
11. A communication module AT command set compatibility evaluation device, characterized in that: include: A first acquisition module, used to acquire a first AT command set document of a first module; A second acquisition module, used to acquire a second AT command set document of a second module; A first processing module, configured to evaluate the first AT command set document and the second AT command set document to obtain an AT command set compatibility evaluation result of the first module and the second module; Wherein, the first processing module includes: A first processing unit, configured to extract effective information from the first AT command set document and the second AT command set document respectively, to obtain first command function information of the first AT command set document and second command function information of the second AT command set document; A first processing submodule, configured to obtain an AT command set compatibility evaluation result of the first module and the second module according to the first command function information and the second command function information; Wherein, the first processing submodule includes: A second processing unit, configured to determine a function matching result of function commands in the first AT command set document and the second AT command set document according to the first command function information and the second command function information; a third processing unit, configured to obtain a compatibility evaluation result of the AT command set according to a function matching result of the function command, the first command function information, and the second command function information; Wherein, the AT command set compatibility evaluation result includes an AT command set compatibility evaluation score; The command function information includes return information and error code information of the function command; The third processing unit is specifically configured to: In the case where the first function command and the second function command function match, the AT command set compatibility evaluation score is determined according to at least one of the following: a first score determined according to a comparison result between the name of the first function command and the name of the function of the second function command; A second score determined according to the first step number; the first step number is the minimum number of movement steps required to adjust the first target function command parameter corresponding to the second function command to be consistent with the second target function command parameter corresponding to the first function command; the first target function command parameter is any parameter of the second function command parameters corresponding to the second function command; the second target function command parameter is any parameter of the first function command parameters corresponding to the first function command; the first target function command parameter and the first target function command parameter have the same name; a third score determined according to the first number and the first preset score; the first number being the number of mismatches between the mandatory parameters preset in the first target parameter corresponding to the first function command and the second target parameter corresponding to the second function command; a fourth score determined according to a second number and a second preset score; the second number being the number of mismatches between the optional parameters preset in the first target parameter corresponding to the first function command and the second target parameter corresponding to the second function command; a fifth score determined according to the absolute value of the difference between the parameter value range rates and the preset first gradient score; the absolute value of the difference between the parameter value range rates is determined according to the first parameter value range rate and the second parameter value coverage rate; the first parameter value coverage rate is determined according to the length of the overlapping parameter value range and the length of the first target parameter value range corresponding to the first function command; the second parameter value coverage rate is determined according to the length of the overlapping parameter value range and the length of the second target parameter value range corresponding to the second function command; the overlapping parameter is a parameter that overlaps between the first target parameter and the second target parameter; a sixth score determined according to a correspondence between the number of function commands corresponding to the first function command and the number of function commands corresponding to the second function command; a seventh score determined according to the content of the return information corresponding to the first function command and the return information corresponding to the second function command; an eighth score determined according to the format of the return information corresponding to the first function command and the return information corresponding to the second function command; A ninth score is determined according to content of the error code information corresponding to the first function command and the error code information corresponding to the second function command.
12. A communication module AT command set compatibility evaluation device, characterized in that: include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of the communication module AT command set compatibility evaluation method as described in any one of claims 1 to 10 are implemented.
13. A readable storage medium, characterized in that: The readable storage medium stores a program, and when the program is executed by the processor, the steps in the communication module AT command set compatibility evaluation method according to any one of claims 1 to 10 are implemented.
Citation Information
Patent Citations
Method for implementing AT command commutation
CN101155184A
A standard AT command conversion device
CN101193366A