CN112180898A - Parameter position determining method, device, equipment and storage medium - Google Patents

Parameter position determining method, device, equipment and storage medium Download PDF

Info

Publication number
CN112180898A
CN112180898A CN202011035805.1A CN202011035805A CN112180898A CN 112180898 A CN112180898 A CN 112180898A CN 202011035805 A CN202011035805 A CN 202011035805A CN 112180898 A CN112180898 A CN 112180898A
Authority
CN
China
Prior art keywords
parameter
function
map
container
diagnostic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011035805.1A
Other languages
Chinese (zh)
Other versions
CN112180898B (en
Inventor
刘均
舒海文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN202011035805.1A priority Critical patent/CN112180898B/en
Publication of CN112180898A publication Critical patent/CN112180898A/en
Application granted granted Critical
Publication of CN112180898B publication Critical patent/CN112180898B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45591Monitoring or debugging support

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

The application provides a parameter position determining method, a parameter position determining device and a storage medium, which can effectively improve parameter transmission efficiency, thereby improving vehicle diagnosis efficiency. The method comprises the following steps: parsing a vehicle diagnostic source file otx to obtain each diagnostic function in the otx and a function interface respectively associated with each diagnostic function; generating a first map container based on each of the diagnostic functions; sequencing the first parameters of the diagnosis functions according to the first map container to obtain a first parameter sequence; generating a second map container based on each function interface; sorting the second parameters of the function interfaces according to the second map container to obtain a second parameter sequence; according to the first parameter sequence and the second parameter sequence, a first position of the first parameter of each diagnostic function and a second position of the second parameter of each function interface are respectively determined.

Description

Parameter position determining method, device, equipment and storage medium
Technical Field
The present application relates to the field of vehicle diagnosis technologies, and in particular, to a method, an apparatus, a device, and a storage medium for determining a parameter position.
Background
Currently, in a vehicle diagnosis process, parameter transmission between a diagnostic function and an associated function interface is required, for example, before diagnostic software calls the diagnostic function, diagnostic information (parameter) of the diagnostic function to be called needs to be transmitted to the function interface associated with the diagnostic function, and then the diagnostic function is called through the function interface. And because no relation is determined between the parameter position of the diagnostic function in otx and the parameter position of the associated function interface, the position of the parameter to be transmitted can be determined only by traversing otx the structure, so that the problem of low parameter transmission efficiency exists, and further the vehicle diagnosis efficiency is low.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a storage medium for determining a parameter position, which can solve the problem of low parameter transmission efficiency, thereby improving the vehicle diagnosis efficiency.
In a first aspect, the present application provides a method for determining a parameter position, including:
parsing a vehicle diagnostic source file otx to obtain each diagnostic function in the otx and a function interface respectively associated with each diagnostic function;
generating a first map container based on each of the diagnostic functions;
sequencing the first parameters of the diagnosis functions according to the first map container to obtain a first parameter sequence;
generating a second map container based on each function interface;
sorting the second parameters of the function interfaces according to the second map container to obtain a second parameter sequence;
according to the first parameter sequence and the second parameter sequence, a first position of the first parameter of each diagnostic function and a second position of the second parameter of each function interface are respectively determined.
In an optional implementation manner, generating a first map container based on each diagnostic function includes:
acquiring a function name and first parameter information of each diagnostic function;
constructing a first key of the first map container according to the function names respectively;
and constructing a first value corresponding to each first key according to the first parameter information corresponding to each function name respectively, and generating the first map container.
In an optional implementation manner, the first parameter information includes a first parameter name and a first parameter value;
constructing first values corresponding to the first keys according to the first parameter information corresponding to the function names respectively, and generating the first map container, wherein the first values comprise:
and respectively constructing a second key of the first map sub-container according to each first parameter name, constructing a second value of the first map sub-container according to the first parameter value corresponding to each first parameter name, generating the first map sub-container, and generating the first map container by taking the first map sub-container as the first value of the first map container.
In an optional implementation manner, generating a second map container based on each function interface includes:
acquiring interface names and second parameter information of the function interfaces;
constructing a second key of the second map container according to each interface name;
and constructing second values corresponding to the second keys according to the second parameter information corresponding to the interface names respectively, and generating the second map container.
In an optional implementation manner, the second parameter information includes a second parameter name and a second parameter value;
constructing second values corresponding to the second keys according to the second parameter information corresponding to the interface names respectively, and generating the second map container, including:
and respectively constructing a third key of a second map sub-container according to each second parameter name, constructing a third value of the second map sub-container according to the second parameter value corresponding to each second parameter name, and generating the second map container by taking the second map sub-container as a second value of the second map container.
In an optional implementation manner, the sorting the first parameters of the respective diagnostic functions according to the first map container to obtain a first parameter sequence includes:
and iterating the first parameters of the diagnosis functions according to an automatic sorting rule of the first map container to obtain the first parameter sequence.
In an optional implementation manner, the sorting the second parameters of each function interface according to the second map container to obtain a second parameter sequence includes:
and iterating the second parameters of the function interfaces according to the automatic sorting rule of the second map container to obtain the second parameter sequence.
In a second aspect, an embodiment of the present application provides a parameter position determining apparatus, including:
the analysis module is used for analyzing the vehicle diagnosis source file otx to obtain each diagnosis function in the otx and a function interface respectively associated with each diagnosis function;
a first generation module for generating a first map container based on each of the diagnostic functions;
the first sequencing module is used for sequencing the first parameters of the diagnosis functions according to the first map container to obtain a first parameter sequence;
a second generating module, configured to generate a second map container based on each function interface;
the second sorting module is used for sorting the second parameters of the function interfaces according to the second map container to obtain a second parameter sequence;
a determining module, configured to determine, according to the first parameter sequence and the second parameter sequence, a first location of the first parameter of each diagnostic function and a second location of the second parameter of each function interface respectively.
In an alternative implementation, the first generating module includes:
a first acquisition unit configured to acquire a function name and first parameter information of each of the diagnostic functions;
a first construction unit configured to construct a first key of the first map container according to each of the function names, respectively;
and the second construction unit is used for constructing the first value corresponding to each first key according to the first parameter information corresponding to each function name respectively and generating the first map container.
In an optional implementation manner, the first parameter information includes a first parameter name and a first parameter value;
the second construction unit is specifically configured to:
and respectively constructing a second key of the first map sub-container according to each first parameter name, constructing a second value of the first map sub-container according to the first parameter value corresponding to each first parameter name, generating the first map sub-container, and generating the first map container by taking the first map sub-container as the first value of the first map container.
In an optional implementation manner, the second generating module includes:
the second acquisition unit is used for acquiring the interface name and the second parameter information of each function interface;
a third construction unit, configured to use each interface name as a second key of the second map container;
and a fourth construction unit, configured to generate the second map container by using the second parameter information corresponding to each interface name as a second value corresponding to each second key.
In an optional implementation manner, the second parameter information includes a second parameter name and a second parameter value;
the fourth construction unit is specifically configured to:
and respectively constructing a third key of a second map sub-container according to each second parameter name, constructing a third value of the second map sub-container according to the second parameter value corresponding to each second parameter name, and generating the second map container by taking the second map sub-container as a second value of the second map container.
In an optional implementation manner, the first ordering module is specifically configured to:
and iterating the first parameters of the diagnosis functions according to an automatic sorting rule of the first map container to obtain the first parameter sequence.
In an optional implementation manner, the second sorting module is specifically configured to:
and iterating the second parameters of the function interfaces according to the automatic sorting rule of the second map container to obtain the second parameter sequence.
In a third aspect, the present application provides a parameter position determining apparatus, including:
a memory for storing a parameter location determination program;
a processor configured to implement the parameter location determination method according to the first aspect when executing the parameter location determination program.
In a fourth aspect, the present application provides a computer program product for causing a parametric position determination device to perform the steps of the parametric position determination method of the first aspect described above, when the computer program product is run on the parametric position determination device.
By adopting the parameter position determining method provided by the first aspect of the present application, the diagnostic functions in the otx and the function interfaces respectively associated with the diagnostic functions are obtained by analyzing the vehicle diagnostic source file otx; respectively generating a first map container based on each diagnostic function and a second map container based on each function interface; and then according to the sequencing functions of the first map container and the second map container, after the first parameters of the diagnosis functions correspond to the second parameters of the function interfaces one by one, determining the first positions of the first parameters of the diagnosis functions and the second positions of the second parameters of the function interfaces. The efficiency of transmission between the first parameter and the second parameter can be improved, thereby improving the efficiency of diagnosis of the vehicle.
It is understood that the beneficial effects of the second to fourth aspects can be seen from the description of the first aspect, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the embodiments or drawings supported by the prior art description, and obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a schematic view of an application scenario of a parameter location determining method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a parameter location determining method according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating an implementation of S202 in FIG. 2;
FIG. 4 is a flowchart illustrating an implementation of S204 in FIG. 2;
FIG. 5 is a schematic diagram of a parameter location determining apparatus provided by an embodiment of the present application;
fig. 6 is a schematic diagram of a parameter location determining apparatus provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail. It should be understood that the terms "first," "second," "third," and the like in the description of the present application and in the appended claims, are used for distinguishing between descriptions that are not intended to indicate or imply relative importance.
It should also be appreciated that reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
First, an application scenario of the parameter location determining method provided in the embodiment of the present application is exemplarily described with reference to fig. 1. Fig. 1 is a schematic view of an application scenario of the parameter position determining method according to the embodiment of the present application. As can be seen from fig. 1, the parameter position determining device 101 is communicatively connected to the diagnostic device 102, the diagnostic device 102 is communicatively connected to the vehicle 103, and the parameter position determining device 101 runs a diagnostic application, which needs to perform fault diagnosis on the vehicle 103 through a diagnostic function during vehicle diagnosis. For example, when the diagnostic application needs to diagnose whether the engine of the vehicle 103 has a fault or not by the diagnostic function procedure, first, an instruction to acquire the engine information of the vehicle 103 is sent to the diagnostic instrument 102, and the diagnostic instrument 102 sends the instruction to acquire the engine information of the vehicle 103 to the electronic control unit ECU of the vehicle 103. Wherein the function of the diagnostic function procedure is to calculate whether the engine of the vehicle is faulty or not based on the engine speed information and the engine temperature of the vehicle. After receiving the command, the ECU of the vehicle 103 needs to obtain engine information, such as engine speed information and engine temperature, and transmit the engine information back to the diagnostic instrument 102. The diagnostic apparatus 102 forwards the engine information to the parameter position determining apparatus 101, the parameter position determining apparatus 101 calls a function interface signature associated with the diagnostic function procedure through the diagnostic application, and transmits the engine information as a parameter of the diagnostic function procedure to the function interface signature, the function interface signature calls the received parameter of the diagnostic function procedure and executes a function body flow of the diagnostic function procedure, after normal execution, the diagnostic function procedure obtains whether the engine of the vehicle 103 has a fault according to the engine information, and the whole diagnostic process is finished.
In the process of calling a function interface signature associated with the diagnostic function procedure through the diagnostic application and transmitting the engine information to the function interface signature as a parameter of the diagnostic function procedure, if the diagnostic application does not know the position where the parameter of the diagnostic function procedure needs to be transmitted to the function interface signature and the signature cannot determine the position of the received parameter of the diagnostic function procedure, an error may occur when a function body flow of the diagnostic function procedure is executed. Therefore, traversal otx is required to determine where to pass the parameters of the diagnostic function procedure to the function interface signature, making the diagnosis inefficient.
In view of this, an embodiment of the present application provides a parameter location determining method, which determines a first location of a first parameter of a diagnostic function and a second location of a second parameter of a function interface associated with the diagnostic function in a process of parsing otx, so that the first location of the first parameter of the diagnostic function and the second location of the second parameter of the function interface are in one-to-one correspondence, thereby solving a problem of low parameter transfer efficiency between the diagnostic function and the function interface and improving diagnostic efficiency.
The following describes an exemplary method for determining a parameter location according to the present application with reference to the accompanying drawings.
As shown in fig. 2, fig. 2 is a schematic flow chart of a parameter location determining method provided in the embodiment of the present application. The parameter position determining method provided by the present embodiment may be executed by the parameter position determining apparatus 101 in the application scenario shown in fig. 1, and the parameter position determining apparatus 101 may be a server in various vehicle diagnosis environments. The details are as follows:
s201, analyzing the vehicle diagnosis source file otx to obtain each diagnosis function in otx and function interfaces respectively associated with each diagnosis function.
The vehicle diagnostic source file otx generally defines a function interface via Signature and a diagnostic function via procedure. The diagnostic function may also be an implementation of a signature associated therewith. In an embodiment of the present application, the vehicle diagnostic source files otx are parsed to obtain individual diagnostic functions defined by procedure and function interfaces defined by signature respectively associated with the individual diagnostic functions.
S202, generating a first map container based on each diagnosis function.
It should be noted that the diagnostic function includes a function name and first parameter information. Map is a container that associates key objects with value objects. A value object may again be a Map and so on, thus forming a multi-level Map. The Map container provides a storage mode of key-value pairs (key-value), namely, a greater degree of freedom is provided in storing and acquiring data, all data of the whole container is not required to be traversed every time, only the value of the key needs to be specified, and therefore the practicability is stronger in some cases. In the embodiment of the present application, the function name and the first parameter information of each of the analyzed diagnostic functions are placed in a first map container, where the function name points to the first key1 of the first map container, and the first parameter information points to the first value1 of the first map container.
Illustratively, as shown in fig. 3, it is a flowchart of a specific implementation of S202 in fig. 2. As shown in fig. 3, S202 specifically includes S2021 to S2023, which are detailed as follows:
s2021, a function name and first parameter information of each of the diagnostic functions are acquired.
In an embodiment of the present application, the diagnostic function is a function for diagnosing a vehicle state, the function name is a pre-defined function name, and the first parameter information includes a parameter name and a parameter value. Wherein the parameter name may include vehicle diagnostic information and the parameter value may include a result value of the vehicle diagnostic information.
S2022, constructing a first key of the first map container according to each function name.
In an embodiment of the present application, each function name is a first key of the first map container.
S2023, respectively, constructing a first value corresponding to each first key according to the first parameter information corresponding to each function name, and generating the first map container.
And respectively generating the first map container by taking the first parameter information corresponding to each function name as a first value corresponding to each first key.
Wherein the first parameter information comprises a first parameter name and a first parameter value; in some embodiments of the present application, constructing the first value corresponding to each of the first keys according to the first parameter information corresponding to each of the function names, and generating the first map container may include: and respectively constructing a second key of the first map sub-container according to each first parameter name, constructing a second value of the first map sub-container according to the first parameter value corresponding to each first parameter name, generating the first map sub-container, and generating the first map container by taking the first map sub-container as the first value of the first map container.
S203, sequencing the first parameters of the diagnosis functions according to the first map container to obtain a first parameter sequence.
Illustratively, the first parameters of the respective diagnostic functions are iterated according to an automatic ordering rule of the first map container to obtain the first parameter sequence.
S204, generating a second map container based on each function interface.
It should be noted that the function interface includes an interface name and second parameter information. In the embodiment of the present application, the interface name and the second parameter information of each function interface obtained through parsing are placed in a second map container, where the interface name points to a second key2 of the second map container, and the second parameter information points to a second value2 of the second map container.
Illustratively, as shown in fig. 4, fig. 4 is a flowchart of a specific implementation of S204 in fig. 2. As shown in fig. 4, S204 includes S2041 to S2043, which are detailed as follows:
s2041, obtaining the interface name and the second parameter information of each function interface.
In an embodiment of the application, each of the function interfaces is respectively used as a function body for implementing each of the diagnostic functions, a name of the corresponding interface is a predefined name, and the second parameter information may be parameter information that is the same as the first parameter information of the respective associated diagnostic function.
S2042, constructing a second key of the second map container according to each interface name.
And respectively using the interface names as second keys of the second map container.
S2043, constructing second values corresponding to the second keys according to the second parameter information corresponding to the interface names respectively, and generating the second map container.
And generating the second map container by taking the second parameter information corresponding to each interface name as a second value corresponding to each second key.
Wherein the second parameter information comprises a second parameter name and a second parameter value; in some examples of the application, constructing a second value corresponding to each second key according to the second parameter information corresponding to each interface name, and generating the second map container may include: and respectively constructing a third key of a second map sub-container according to each second parameter name, constructing a third value of the second map sub-container according to the second parameter value corresponding to each second parameter name, and generating the second map container by taking the second map sub-container as a second value of the second map container.
S205, sorting the second parameters of the function interfaces according to the second map container to obtain a second parameter sequence.
Illustratively, according to an automatic ordering rule of the second map container, the second parameter of each function interface is iterated to obtain the second parameter sequence.
S206, respectively determining a first position of the first parameter of each diagnostic function and a second position of the second parameter of each function interface according to the first parameter sequence and the second parameter sequence.
It should be noted that, in the embodiment of the present application, the first parameter of each diagnostic function is the same as the second parameter of the function interface associated with each diagnostic function. May be vehicle diagnostic information. After the first parameters are sorted according to the automatic sorting function of the first map container and the second parameters are sorted according to the automatic sorting function of the second map container, a one-to-one correspondence relationship is formed between the first parameters and the second parameters in the obtained first parameter sequence and second parameter sequence, namely, the parameter positions of the first parameters and the second parameters are matched. When the diagnosis function or the function interface is called, the efficiency of calling the diagnosis function or the function interface is improved due to the fact that the first parameter of the diagnosis function is matched with the parameter position of the second parameter of the function interface, and the problem of calling failure is not prone to occurring.
As can be seen from the foregoing analysis, in the parameter position determining method provided in this embodiment of the present application, the second parameter of each function interface is sequenced according to the second map container to obtain a second parameter sequence, where the method includes:
and iterating the second parameters of the function interfaces according to the automatic sorting rule of the second map container to obtain the second parameter sequence.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Based on the parameter location determining method provided by the above embodiment, an embodiment of an apparatus for implementing the above method embodiment is further provided in the embodiment of the present invention.
As shown in fig. 5, fig. 5 is a schematic diagram of a parameter position determining apparatus provided in an embodiment of the present application. The modules included are used to perform the steps in the corresponding embodiment of fig. 2. Please refer to fig. 2 for a related description of the embodiment. For convenience of explanation, only the portions related to the present embodiment are shown. Referring to fig. 5, the parameter position determination device 500 includes:
the analysis module 501 is configured to analyze the vehicle diagnostic source file otx to obtain each diagnostic function in the otx and a function interface associated with each diagnostic function;
a first generating module 502, configured to generate a first map container based on each of the diagnostic functions;
a first sorting module 503, configured to sort the first parameters of the diagnostic functions according to the first map container to obtain a first parameter sequence;
a second generating module 504, configured to generate a second map container based on each of the function interfaces;
a second sorting module 505, configured to sort the second parameters of each function interface according to the second map container, so as to obtain a second parameter sequence;
a determining module 506, configured to determine, according to the first parameter sequence and the second parameter sequence, a first location of the first parameter of each diagnostic function and a second location of the second parameter of each function interface respectively.
In an alternative implementation, the first generating module 502 includes:
a first acquisition unit configured to acquire a function name and first parameter information of each of the diagnostic functions;
a first construction unit configured to construct a first key of the first map container according to each of the function names, respectively;
and the second construction unit is used for constructing the first value corresponding to each first key according to the first parameter information corresponding to each function name respectively and generating the first map container.
In an optional implementation manner, the first parameter information includes a first parameter name and a first parameter value;
the second construction unit is specifically configured to:
and respectively constructing a second key of the first map sub-container according to each first parameter name, constructing a second value of the first map sub-container according to the first parameter value corresponding to each first parameter name, generating the first map sub-container, and generating the first map container by taking the first map sub-container as the first value of the first map container.
In an optional implementation manner, the second generating module 504 includes:
the second acquisition unit is used for acquiring the interface name and the second parameter information of each function interface;
a third construction unit, configured to use each interface name as a second key of the second map container;
and a fourth construction unit, configured to generate the second map container by using the second parameter information corresponding to each interface name as a second value corresponding to each second key.
In an optional implementation manner, the second parameter information includes a second parameter name and a second parameter value;
the fourth construction unit is specifically configured to:
and respectively constructing a third key of a second map sub-container according to each second parameter name, constructing a third value of the second map sub-container according to the second parameter value corresponding to each second parameter name, and generating the second map container by taking the second map sub-container as a second value of the second map container.
In an optional implementation manner, the first ordering module 503 is specifically configured to:
and iterating the first parameters of the diagnosis functions according to an automatic sorting rule of the first map container to obtain the first parameter sequence.
In an optional implementation manner, the second sorting module 505 is specifically configured to:
and iterating the second parameters of the function interfaces according to the automatic sorting rule of the second map container to obtain the second parameter sequence.
It should be noted that, because the contents of information interaction, execution process, and the like between the modules are based on the same concept as the method embodiment shown in fig. 2 of the present application, specific functions and technical effects thereof may be referred to specifically in the method embodiment section, and are not described herein again.
Fig. 6 is a schematic diagram of a parameter location determining apparatus provided in an embodiment of the present application. As shown in fig. 6, the parameter position determination device 6 of this embodiment includes: a processor 600, a memory 601 and a computer program 602, such as a parameter location determination program, stored in said memory 601 and executable on said processor 600. The processor 600, when executing the computer program 602, implements the steps in the embodiment of the parameter location determination method described above in fig. 2. Alternatively, the processor 600 implements the functions of the modules/units in the embodiment of fig. 5 when executing the computer program 602.
Illustratively, the computer program 602 may be partitioned into one or more modules/units that are stored in the memory 601 and executed by the processor 600 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 602 in the parameter position determination device 6. For example, the computer program 602 may be divided into an analysis module, a first generation module, a first sorting module, a second generation module, a second sorting module, and a determination module, and specific functions of each module please refer to the related description in the embodiment corresponding to fig. 5, which is not described herein again.
The parametric position determination device may include, but is not limited to, a processor 600, a memory 601. It will be appreciated by those skilled in the art that fig. 6 is merely an example of the parametric position determination device 6 and does not constitute a limitation of the parametric position determination device 6 and may comprise more or less components than shown, or some components may be combined, or different components, e.g. the server may further comprise input output devices, network access devices, buses, etc.
The Processor 600 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 601 may be an internal storage unit of the parameter position determining device 6, such as a hard disk or a memory of the parameter position determining device 6. The memory 601 may also be an external storage device of the parameter position determining device 6, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the parameter position determining device 6. Further, the memory 601 may also include both an internal storage unit and an external storage device of the parameter position determination device 6. The memory 601 is used for storing the computer program 602 and other programs and data supported by the parameter position determination device 6. The memory 601 may also be used to temporarily store data that has been output or is to be output.
An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the method for determining a position of a parameter can be implemented.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method for determining a position of a parameter, comprising:
parsing a vehicle diagnostic source file otx to obtain each diagnostic function in the otx and a function interface respectively associated with each diagnostic function;
generating a first map container based on each of the diagnostic functions;
sequencing the first parameters of the diagnosis functions according to the first map container to obtain a first parameter sequence;
generating a second map container based on each function interface;
sorting the second parameters of the function interfaces according to the second map container to obtain a second parameter sequence;
according to the first parameter sequence and the second parameter sequence, a first position of the first parameter of each diagnostic function and a second position of the second parameter of each function interface are respectively determined.
2. The method of claim 1, wherein generating a first map container based on each of the diagnostic functions comprises:
acquiring a function name and first parameter information of each diagnostic function;
constructing a first key of the first map container according to the function names respectively;
and constructing a first value corresponding to each first key according to the first parameter information corresponding to each function name respectively, and generating the first map container.
3. The method of claim 2, wherein the first parameter information comprises a first parameter name and a first parameter value;
constructing first values corresponding to the first keys according to the first parameter information corresponding to the function names respectively, and generating the first map container, wherein the first values comprise:
and respectively constructing a second key of the first map sub-container according to each first parameter name, constructing a second value of the first map sub-container according to the first parameter value corresponding to each first parameter name, generating the first map sub-container, and generating the first map container by taking the first map sub-container as the first value of the first map container.
4. The method of any of claims 1 to 3, wherein generating a second map container based on each of the function interfaces comprises:
acquiring interface names and second parameter information of the function interfaces;
constructing a second key of the second map container according to each interface name;
and constructing second values corresponding to the second keys according to the second parameter information corresponding to the interface names respectively, and generating the second map container.
5. The method of claim 4, wherein the second parameter information comprises a second parameter name and a second parameter value;
constructing second values corresponding to the second keys according to the second parameter information corresponding to the interface names respectively, and generating the second map container, including:
and respectively constructing a third key of a second map sub-container according to each second parameter name, constructing a third value of the second map sub-container according to the second parameter value corresponding to each second parameter name, and generating the second map container by taking the second map sub-container as a second value of the second map container.
6. The method of claim 5, wherein sorting the first parameters of the respective diagnostic functions according to the first map container to obtain a first parameter sequence comprises:
and iterating the first parameters of the diagnosis functions according to an automatic sorting rule of the first map container to obtain the first parameter sequence.
7. The method of claim 6, wherein sorting the second parameters of each of the functional interfaces according to the second map container to obtain a second parameter sequence comprises:
and iterating the second parameters of the function interfaces according to the automatic sorting rule of the second map container to obtain the second parameter sequence.
8. A parameter position determining apparatus, comprising:
the analysis module is used for analyzing the vehicle diagnosis source file otx to obtain each diagnosis function in the otx and a function interface respectively associated with each diagnosis function;
a first generation module for generating a first map container based on each of the diagnostic functions;
the first sequencing module is used for sequencing the first parameters of the diagnosis functions according to the first map container to obtain a first parameter sequence;
a second generating module, configured to generate a second map container based on each function interface;
the second sorting module is used for sorting the second parameters of the function interfaces according to the second map container to obtain a second parameter sequence;
a determining module, configured to determine, according to the first parameter sequence and the second parameter sequence, a first location of the first parameter of each diagnostic function and a second location of the second parameter of each function interface respectively.
9. A parameter position determining apparatus, comprising:
a memory for storing a parameter location determination program;
a processor for implementing the parametric position determination method as claimed in any one of claims 1 to 7 when executing the parametric position determination program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out a parameter location determination method according to any one of claims 1 to 7.
CN202011035805.1A 2020-09-27 2020-09-27 Parameter position determining method, device, equipment and storage medium Active CN112180898B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011035805.1A CN112180898B (en) 2020-09-27 2020-09-27 Parameter position determining method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011035805.1A CN112180898B (en) 2020-09-27 2020-09-27 Parameter position determining method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112180898A true CN112180898A (en) 2021-01-05
CN112180898B CN112180898B (en) 2022-04-19

Family

ID=73944828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011035805.1A Active CN112180898B (en) 2020-09-27 2020-09-27 Parameter position determining method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112180898B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112949258A (en) * 2021-02-25 2021-06-11 深圳市元征科技股份有限公司 Data processing method and device, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3827502A1 (en) * 1987-08-20 1989-03-02 Fuji Heavy Ind Ltd TROUBLESHOOTING SYSTEM FOR MOTOR VEHICLES
US20170015507A1 (en) * 2015-07-16 2017-01-19 Samsung Electronics Co., Ltd. Logistics monitoring system and method of operating the same
US20180307406A1 (en) * 2017-04-25 2018-10-25 Haworth, Inc. Object processing and selection gestures for forming relationships among objects in a collaboration system
CN109299009A (en) * 2018-09-25 2019-02-01 金蝶软件(中国)有限公司 Data test method, apparatus, computer equipment and storage medium
CN110428056A (en) * 2018-04-30 2019-11-08 慧与发展有限责任合伙企业 Use the system and method for the distributing machine learning of block chain
CN111078948A (en) * 2019-11-22 2020-04-28 深圳市元征科技股份有限公司 Automobile diagnosis data analysis method and system and storage medium
US20200184278A1 (en) * 2014-03-18 2020-06-11 Z Advanced Computing, Inc. System and Method for Extremely Efficient Image and Pattern Recognition and Artificial Intelligence Platform
EP3667446A1 (en) * 2018-12-10 2020-06-17 Subaru Corporation Failure diagnostic system
US20200192319A1 (en) * 2018-12-13 2020-06-18 Fisher-Rosemount Systems, Inc. Systems, methods, and apparatus to augment process control with virtual assistant
CN111354099A (en) * 2020-02-26 2020-06-30 深圳市元征科技股份有限公司 Data processing method, data processing device and diagnostic equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3827502A1 (en) * 1987-08-20 1989-03-02 Fuji Heavy Ind Ltd TROUBLESHOOTING SYSTEM FOR MOTOR VEHICLES
US20200184278A1 (en) * 2014-03-18 2020-06-11 Z Advanced Computing, Inc. System and Method for Extremely Efficient Image and Pattern Recognition and Artificial Intelligence Platform
US20170015507A1 (en) * 2015-07-16 2017-01-19 Samsung Electronics Co., Ltd. Logistics monitoring system and method of operating the same
US20180307406A1 (en) * 2017-04-25 2018-10-25 Haworth, Inc. Object processing and selection gestures for forming relationships among objects in a collaboration system
CN110428056A (en) * 2018-04-30 2019-11-08 慧与发展有限责任合伙企业 Use the system and method for the distributing machine learning of block chain
CN109299009A (en) * 2018-09-25 2019-02-01 金蝶软件(中国)有限公司 Data test method, apparatus, computer equipment and storage medium
EP3667446A1 (en) * 2018-12-10 2020-06-17 Subaru Corporation Failure diagnostic system
US20200192319A1 (en) * 2018-12-13 2020-06-18 Fisher-Rosemount Systems, Inc. Systems, methods, and apparatus to augment process control with virtual assistant
CN111078948A (en) * 2019-11-22 2020-04-28 深圳市元征科技股份有限公司 Automobile diagnosis data analysis method and system and storage medium
CN111354099A (en) * 2020-02-26 2020-06-30 深圳市元征科技股份有限公司 Data processing method, data processing device and diagnostic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112949258A (en) * 2021-02-25 2021-06-11 深圳市元征科技股份有限公司 Data processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112180898B (en) 2022-04-19

Similar Documents

Publication Publication Date Title
CN110554958B (en) Graph database testing method, system, device and storage medium
CN108563214A (en) Vehicular diagnostic method, device and equipment
CN111290958B (en) Method and device for debugging intelligent contract
KR20200007133A (en) Method and apparatus for dinamically injecting fault for vehicle ecu software test
CN109871312B (en) Interface testing method, device, equipment and readable storage medium
CN113114659B (en) Diagnostic equipment detection method and device, terminal equipment and storage medium
CN113608518B (en) Data generation method, device, terminal equipment and medium
CN109190776B (en) Method and device for rechecking automobile fault, terminal equipment and storage medium
CN107608814A (en) A kind of method of data sharing, the device and mobile terminal of data sharing
CN112860676B (en) Data cleaning method applied to big data mining and business analysis and cloud server
KR101209069B1 (en) Debuggging Apparatus For CAN Communication Diagnosis Device
CN112180898B (en) Parameter position determining method, device, equipment and storage medium
CN113821440B (en) VxWorks application software testing method, system and simulator
CN112699648B (en) Data processing method and device
US9646252B2 (en) Template clauses based SAT techniques
CN112306041A (en) Vehicle configuration information writing method and device and electronic equipment
CN112068528A (en) Diagnostic device verification method, vehicle, device and server
US20160224456A1 (en) Method for verifying generated software, and verifying device for carrying out such a method
CN116521217A (en) Method, system and storage medium for rapidly configuring BSW based on AUTOSAR tool
CN113282496B (en) Automatic interface testing method, device, equipment and storage medium
CN113934198A (en) Vehicle diagnosis method, vehicle diagnosis device, electronic device, and storage medium
CN111930097B (en) Vehicle diagnostic data analysis method, device, equipment and storage medium
CN117631655B (en) Secure communication method, apparatus, device and storage medium for vehicle diagnosis
CN114371683B (en) Diagnostic function verification method, system, storage medium and device for diagnostic apparatus
CN111752823A (en) Method, device and equipment for testing vehicle-mounted power supply application software

Legal Events

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