CN113157387B - Function simulator, function software running end, function simulation system and method - Google Patents

Function simulator, function software running end, function simulation system and method Download PDF

Info

Publication number
CN113157387B
CN113157387B CN202110342038.7A CN202110342038A CN113157387B CN 113157387 B CN113157387 B CN 113157387B CN 202110342038 A CN202110342038 A CN 202110342038A CN 113157387 B CN113157387 B CN 113157387B
Authority
CN
China
Prior art keywords
function
state value
simulator
configuration form
sending
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.)
Active
Application number
CN202110342038.7A
Other languages
Chinese (zh)
Other versions
CN113157387A (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.)
Dongfeng Nissan Passenger Vehicle Co
Original Assignee
Dongfeng Nissan Passenger Vehicle Co
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 Dongfeng Nissan Passenger Vehicle Co filed Critical Dongfeng Nissan Passenger Vehicle Co
Priority to CN202110342038.7A priority Critical patent/CN113157387B/en
Publication of CN113157387A publication Critical patent/CN113157387A/en
Application granted granted Critical
Publication of CN113157387B publication Critical patent/CN113157387B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45508Runtime interpretation or emulation, e g. emulator loops, bytecode interpretation

Abstract

The invention provides a function simulator, a function software running end, a function simulation system and a method, wherein the function simulator comprises a graphical user interface and a first communication interface, the graphical user interface is provided with at least one group of operation control groups, and each group of operation control groups comprises a function ID input control and a function state input control: the function ID input control is used for inputting first function IDs corresponding to the functions one by one in a preset first function configuration form; a function state input control, configured to input a first function state value corresponding to the first function ID in the first function configuration form; and the first communication interface is used for sending the first function ID and the first function state value to a preset function software running end. The implementation of the invention has simple functional graphic user interface, can complete the simulation of all functions only by one communication channel, and has strong function expansibility.

Description

Function simulator, function software running end, function simulation system and method
Technical Field
The present invention relates to simulators, and more particularly, to a function simulator, a function software running terminal, a function simulation system and a method.
Background
The android simulator is a simulator which runs on a computer and simulates an android functional software running end system. In the technical field of automobiles, a source android simulator is generally adopted for carrying out vehicle-mounted function simulation, however, the existing source android simulator has the following defects:
1. performing function simulation by using standard Qt controls, wherein one control corresponds to a specific function, N controls correspond to N functions, and when the functions are more, development tasks are heavy, simulator interfaces are complex, and working efficiency is low;
2. when the function expansion is carried out on the simulator end, the simulator end and the An Zhuoduan are required to be redeveloped to correspond to the newly added function, and the expansibility is poor;
3. the simulator end and An Zhuoduan communicate by adopting An Zhuoyuan QEMU, one module establishes a single QEMU communication channel, and N modules need to establish N communication channels.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provide a function simulator, a function software running end, a function simulation system and a function simulation method, wherein the function graphical user interface is simple, the simulation of all functions can be completed only through one communication channel, and the function expansibility is strong.
The technical scheme of the invention provides a functional simulator which comprises a graphical user interface and a first communication interface, wherein the graphical user interface is provided with at least one group of operation control groups, and each group of operation control groups comprises a function ID input control and a function state input control:
the function ID input control is used for inputting first function IDs corresponding to the functions one by one in a preset first function configuration form;
a function state input control, configured to input a first function state value corresponding to the first function ID in the first function configuration form;
and the first communication interface is used for sending the first function ID and the first function state value to a preset function software running end.
Further, each operation control group further includes a sending control, where the sending control includes a sending key, a first configuration management server, and a first configuration analysis server:
a send key for sending the first function ID and the first function status value;
a first configuration management server for transmitting a verification request containing the first function ID and the first function status value;
and the first configuration analysis server is used for checking the first function ID and the first function state value according to the check request and the first function configuration form.
Further, the first configuration management server is further configured to:
when the first function ID and/or the first function state value do not accord with the function ID and/or the function state value in the first function configuration form, prompting to input a correct function ID and/or a correct function state value error;
and when the first function ID and the first function state value accord with the function ID and the function state value in the first function configuration form, packaging the first function ID and the first function state value according to a preset data format, and sending the first function ID and the first function state value to the function software running end.
Further, each operation control group further includes:
and the function name display control is used for displaying a function name according to the first function ID and the first function state value when the first function ID and the first function state value accord with the function ID and the function state value in the first function configuration form.
The technical proposal of the invention also provides a functional software operation end, which is internally provided with a functional application program, comprises a second communication interface and a storage unit,
a second communication interface, which is in communication connection with the first communication interface of the function simulator as described above, and is configured to receive the first function ID and the first function status value sent by the function simulator;
and the storage unit is used for storing the first function ID and the first function state value into a preset second function configuration form.
Further, the method further comprises the following steps:
the second configuration management server is used for sending a function ID query request containing a function interface name when receiving an interface call request sent by the function application program;
and the second configuration analysis server is used for acquiring a second function ID and a second function state value corresponding to the function interface name from the second function configuration form when the function ID query request is received, and sending the second function ID and the second function state value to the second configuration management server.
Further, the second configuration management server is further configured to:
when the second function ID and/or the second function state value do not accord with the function ID and the function state value in the second function configuration form, prompting that no function and/or function state value is wrong;
and when the second function ID and the second function state value accord with the function ID and the function state value in the second function configuration form, sending the second function ID and the second function state value to the function application program.
Further, the second configuration management server is further configured to:
when the second function ID and/or the second function state value do not accord with the function ID and the function state value in the second function configuration form, prompting that the function ID is in a wrong numerical value or updating the function configuration form;
and when the second function ID and the second function state value accord with the function ID and the function state value in the second function configuration form, packaging the second function ID and the second function state value according to a preset data format, and sending the second function ID and the second function state value to the function simulator.
The technical scheme of the invention also provides a function simulation system which comprises the function simulator and the function software operation end, wherein the function simulator is in communication connection with the function software operation end through the first communication interface and the second communication interface.
The technical scheme of the invention also provides a simulator-end function simulation method for the function simulator, which comprises the following steps:
when a first function ID corresponding to functions one by one and a first function state value corresponding to the first function ID in a first function configuration form input by the operation control group are received, the first function ID and the first function state value are sent to a preset function software running end.
Further, the sending the first function ID and the first function status value to a preset function software running end further includes:
when the first function ID and/or the first function state value do not accord with the function ID and/or the function state value in the first function configuration form, prompting to input a correct function ID and/or a correct function state value error;
and when the first function ID and the first function state value accord with the function ID and the function state value in the first function configuration form, packaging the first function ID and the first function state value according to a preset data format, and sending the first function ID and the first function state value to the function software running end.
Further, the method further comprises the following steps:
and when the first function ID and the first function state value accord with the function ID and the function state value in the first function configuration form, displaying a function name according to the first function ID and the first function state value.
Further, the method further comprises the following steps:
and when the function information comprising the second function ID and the second function state value and sent by the function software running end is received, displaying the function information through a graphical user interface.
Further, when the function information including the second function ID and the second function status value sent by the function software running end is received, the function information is displayed through a graphical user interface, including:
when the second function ID and/or the second function state value do not accord with the function ID and/or the function state value in the first function configuration form, prompting data error;
and when the second function ID and the second function state value accord with the function ID and the function state value in the first function configuration form, displaying the second function ID, the second function state value and the function name.
The technical scheme of the invention also provides a function software operation end function simulation method for the function software operation end, which comprises the following steps:
when the first function ID and the first function state value sent by the function simulator are received, the first function ID and the first function state value are stored into a preset second function configuration form.
Further, the storing the first function ID and the first function status value in a preset second function configuration table further includes:
when an interface calling request sent by a preset function application program is received, a function ID query request containing a function interface name is sent;
when the function ID inquiry request is received, a second function ID and a second function state value corresponding to the function interface name are obtained from the second function configuration form;
and sending the second function ID and the second function state value.
Further, the sending the second function ID and the second function status value includes:
when the second function ID and/or the second function state value do not accord with the function ID and the function state value in the second function configuration form, prompting that no function and/or function state value is wrong;
and when the second function ID and the second function state value accord with the function ID and the function state value in the second function configuration form, sending the second function ID and the second function state value to the function application program.
Further, the sending the second function ID and the second function status value includes:
when the second function ID and/or the second function state value do not accord with the function ID and/or the function state value in the second function configuration form, prompting that the function ID is in a wrong numerical value or updating the function configuration form;
and when the second function ID and the second function state value accord with the function ID and the function state value in the second function configuration form, packaging the second function ID and the second function state value according to a preset data format, and sending the second function ID and the second function state value to a function simulator.
After the technical scheme is adopted, the method has the following beneficial effects:
1. the specific control corresponding to the function is converted into the function grouping of the first function configuration form, the function control is in one-to-one correspondence with the function grouping of the first function configuration form, the functions are grouped and overlapped in the first function configuration form, and when the simulator is used, all functions can be simulated only by changing ID and function state values through the components such as the function ID input control and the function state input control of the operation control group through the graphical user interface containing the control component.
2. When the function expansion is required to be carried out on the simulator end, only a corresponding function ID and a function software running end are required to be added in a function configuration form for small adaptation after the new function is imported, and the function expansion is strong;
3. the simulator end is provided with a first communication interface, the functional software running end is provided with a second communication interface, and the simulation of all functions can be completed through the first communication interface and the second communication interface without establishing a plurality of communication channels.
Drawings
The present disclosure will become more readily understood with reference to the accompanying drawings. It should be understood that: the drawings are for illustrative purposes only and are not intended to limit the scope of the present invention. In the figure:
FIG. 1 is a schematic diagram of a functional simulator according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of the graphical user interface shown in FIG. 1;
FIG. 3 is a schematic structural diagram of a functional software running end according to an embodiment of the present invention;
FIG. 4 is a flowchart of a simulator-side function simulation method according to an embodiment of the present invention;
FIG. 5 is a flowchart of a simulator-side function simulation method according to another embodiment of the present invention;
FIG. 6 is a flowchart of a method for simulating functions of a functional software runtime provided in an embodiment of the present invention;
fig. 7 is a flowchart of a functional simulation method at a functional software runtime provided in another embodiment of the present invention.
Detailed Description
Specific embodiments of the present invention will be further described below with reference to the accompanying drawings.
It is to be readily understood that, according to the technical solutions of the present invention, those skilled in the art may replace various structural modes and implementation modes with each other without changing the true spirit of the present invention. Accordingly, the following detailed description and drawings are merely illustrative of the invention and are not intended to be exhaustive or to limit the invention to the precise form disclosed.
Terms of orientation such as up, down, left, right, front, rear, front, back, top, bottom, etc. mentioned or possible to be mentioned in the present specification are defined with respect to the configurations shown in the drawings, which are relative concepts, and thus may be changed according to different positions and different use states thereof. These and other directional terms should not be construed as limiting terms.
As shown in fig. 1 and 2, the functional simulator provided by the present invention includes a graphical user interface 11 and a first communication interface 12, where the graphical user interface 11 is provided with at least one group of operation control groups, and each group of operation control groups includes a functional ID input control 111 and a functional status input control 112:
a function ID input control 111, configured to input a first function ID corresponding to a function one to one in a preset first function configuration form;
a function status input control 112 for inputting a first function status value corresponding to the first function ID in the first function configuration form;
the first communication interface 12 is configured to send the first function ID and the first function status value to a preset function software running end.
The present invention provides a functional simulator mainly comprising a graphical user interface 11 and a first communication interface 12. The present embodiment provides a function simulator mainly described as a vehicle-mounted function simulator.
The graphical user interface 11 is provided with at least one set of operation control groups, each set of operation control groups comprising a function ID input control 111 and a function status input control 112, the function ID input control 111 being for inputting a first function ID corresponding to a function, the function status input control 112 being for inputting a first function status value corresponding to the first function ID. The functions are preset at the simulator end through a first function configuration form, all functions to be simulated are stored in the first function configuration form, in order to facilitate understanding and description, the functions in this embodiment are described by taking vehicle-mounted functions as examples, that is, all vehicle-mounted functions (39 modules, 600 functions) on a vehicle and state values corresponding to the vehicle-mounted functions are stored in the first function configuration form, character strings corresponding to each vehicle-mounted function are defined in the first function configuration form, the first function configuration form can be stored at the simulator end in a data table file form in advance, and a user in the form of the first function configuration form can also set according to requirements as shown in the following table 1. As shown in table 1, the function IDs correspond to the on-vehicle functions one by one, and the function status values correspond to the function IDs, for example, the on-vehicle function is "gear", the corresponding function ID is "1", and the function status values are "0-5".
The number of the operation control groups can be set according to the requirements of users, and when only one vehicle-mounted function is simulated at the same time, the number of the operation control groups is one group; when multiple vehicle-mounted functions are required to be simulated at the same time, the number of operation control groups is multiple, and each operation control group corresponds to a first function ID, as shown in FIG. 2. The number of operation control groups of the present invention is preferably multiple groups.
When the user inputs the first function ID and the first function state value through the function ID input control 111 and the function state input control 112, respectively, the simulator end performs vehicle-mounted function simulation according to the first function ID and the first function state value, and sends the first function ID and the first function state value to the preset function software running end through the first communication interface 12.
Preferably, to enable compatibility with existing interfaces, the first communication interface 112 is an android QEMU interface.
TABLE 1
The function simulator provided by the invention has the advantages that the function graphical user interface is simple, the simulation of all functions can be completed only through one communication channel, a plurality of communication channels are not required to be established, the development task is simple, and the efficiency is high; when the function expansion is needed to be carried out on the simulator end, only the corresponding function ID and the function software running end are required to be added in the function configuration form for small adaptation after the new function is imported, and the function expansion is strong.
In one embodiment, to improve data accuracy and user experience, each group of operational controls further includes a send control 113, which includes a send key 1131, a first configuration management server 1132, and a first configuration resolution server 1133:
a send key 1131 for sending the first function ID and the first function status value;
a first configuration management server 1132 for transmitting a check request including the first function ID and the first function status value;
the first configuration parsing server 1133 is configured to check the first function ID and the first function status value according to the check request and the first function configuration form.
In one embodiment, to improve data accuracy and user experience, the first configuration management server 1132 is further configured to:
when the first function ID and/or the first function state value do not accord with the function ID and/or the function state value in the first function configuration form, prompting that the correct function ID and/or the function state value is input in error;
when the first function ID and the first function state value accord with the function ID and the function state value in the first function configuration form, the first function ID and the first function state value are packaged according to a preset data format and sent to a function software operation end.
In one embodiment, to facilitate the observation and improve the user experience, each group of operation controls further includes:
a function name display control 114 for displaying a function name according to the first function ID and the first function status value when the first function ID and the first function status value conform to the function ID and the function status value in the first function configuration form.
As shown in fig. 3, fig. 3 is a functional software running end provided in an embodiment of the present invention, in which a functional application is provided, including a second communication interface 21 and a storage unit 22,
a second communication interface 21, communicatively connected to the first communication interface of the function simulator as described above, for receiving the first function ID and the first function status value sent by the function simulator;
and the storage unit is used for storing the first function ID and the first function state value into a preset second function configuration form.
The functional software running end of the present invention is mainly a functional software running end of an android operating system, and may also be called An Zhuoduan, and includes a second communication interface 21 and a storage unit 22.
After the functional software running end receives the first functional ID and the first functional state value sent by the functional simulator through the second communication interface 21, the first functional ID and the first functional state value are stored in a preset second functional configuration form, and the corresponding functional ID and the corresponding functional state value in the second functional configuration form are updated, so that the data of the simulator end and the functional software running end are synchronized.
It should be noted that the second function configuration form may be the same as the first function configuration form, as shown in table 1.
Preferably, to enable compatibility with existing interfaces, the second communication interface 21 is an android QEMU interface.
The functional software running end provided by the invention is in communication connection with the first communication interface of the functional simulator through the second communication interface, so that the simulation of all functions can be completed only through one communication channel, a plurality of communication channels are not required to be established, the development task is simple, and the efficiency is high; when the function expansion is needed to be carried out on the simulator end, only the corresponding function ID and the function software running end are required to be added in the function configuration form for small adaptation after the new function is imported, and the function expansion is strong.
In one embodiment, to facilitate the functional software running end to implement functional simulation, the method further includes:
a second configuration management server 23 for transmitting a function ID inquiry request including a function interface name when receiving an interface call request transmitted by a function application;
the second configuration analysis server 24 is configured to obtain, when receiving the function ID query request, a second function ID and a second function status value corresponding to the function interface name from the second function configuration form, and send the second function ID and the second function status value to the second configuration management server 23.
The second function ID and the second function status value may be the same as or different from the first function ID and the first function status value.
In one embodiment, to improve data accuracy and user experience, the second configuration management server 23 is further configured to:
when the second function ID and/or the second function state value do not accord with the function ID and the function state value in the second function configuration form, prompting that no function and/or function state value is wrong;
and when the second function ID and the second function state value conform to the function ID and the function state value in the second function configuration form, sending the second function ID and the second function state value to the function application program.
In one embodiment, to improve data accuracy and user experience, the second configuration management server 23 is further configured to:
when the second function ID and/or the second function state value do not accord with the function ID and the function state value in the second function configuration form, prompting that the function ID is in a wrong numerical value or updating the function configuration form;
and when the second function ID and the second function state value accord with the function ID and the function state value in the second function configuration form, packaging the second function ID and the second function state value according to a preset data format, and sending the second function ID and the second function state value to the function simulator.
The technical scheme of the invention also provides a function simulation system which comprises the function simulator and the function software operation end, wherein the function simulator is in communication connection with the function software operation end through a first communication interface and a second communication interface.
The function simulation system provided by the invention has the advantages that the function graphical user interface is simple, the simulation of all functions can be completed only through one communication channel, a plurality of communication channels are not required to be established, the development task is simple, and the efficiency is high; when the function expansion is needed to be carried out on the simulator end, only the corresponding function ID and the function software running end are required to be added in the function configuration form for small adaptation after the new function is imported, and the function expansion is strong.
As shown in fig. 4, fig. 4 is a schematic diagram of a simulator-end function simulation method according to an embodiment of the present invention, including:
step 401: receiving a first function ID corresponding to the functions one by one and a first function state value corresponding to the first function ID in a first function configuration form preset by the operation control group input;
step S402: judging whether the first function ID and the first function state value accord with the function ID and the function state value in the first function configuration form;
step S403: prompting the input of a correct function ID and/or a function status value error;
step S404: displaying the function name according to the first function ID and the first function state value;
step S405: packaging a first function ID and a first function state value according to a preset data format;
step S406: and sending the first function ID and the first function state value to a preset function software running end.
Specifically, when the user inputs the first function ID and the first function state value by operating the function ID input control and the function state input control in the control group, the function simulator performs step S401; then, executing step S402 to determine whether the first function ID and the first function status value conform to the function ID and the function status value in the first function configuration form, if yes, executing step S404 to display the function names corresponding to the first function ID and the first function status value through the function name display control, so as to implement the function simulation of the simulator, otherwise executing step S403 to prompt the input of the correct function ID and/or the error function status value; next, step S405 is executed to package the first function ID and the first function STATUS value according to a preset data format, for example, package the first function ID and the first function STATUS value into a character string, where the character string includes the first function ID and the first function STATUS value in an "id=id_status" mode; finally, step S406 is executed to send the packaged first function ID and the first function status value to a preset function software running end, so as to implement communication with the function software running end, and keep data synchronization.
The simulator end function simulation method provided by the invention has the advantages that the function graphical user interface is simple, the simulation of all functions can be completed only through one communication channel, a plurality of communication channels are not required to be established, the development task is simple, and the efficiency is high; when the function expansion is needed to be carried out on the simulator end, only the corresponding function ID and the function software running end are required to be added in the function configuration form for small adaptation after the new function is imported, and the function expansion is strong.
As shown in fig. 5, fig. 5 is a workflow diagram of a simulator-side function simulation method according to another embodiment of the present invention, including:
step S501: receiving function information comprising a second function ID and a second function state value, which is sent by a function software running end;
step S502: judging whether the second function ID and the second function state value accord with the function ID and the function state value in the first function configuration form;
step S503: prompting data errors;
step S504: the second function ID, the second function status value, and the function name are displayed through a graphical user interface.
Specifically, when the function information including the second function ID and the second function status value sent by the function software running end is received, the function simulator executes step S501; then, executing step S502 to determine whether the second function ID and the second function status value conform to the function ID and the function status value in the first function configuration form, if yes, executing step S504 to display the second function ID, the second function status value and the function name, otherwise executing step S503 to prompt data error, implementing communication with the functional software running end, and maintaining data synchronization.
The simulator end function simulation method provided by the invention has the advantages that the function graphical user interface is simple, the simulation of all functions can be completed only through one communication channel, a plurality of communication channels are not required to be established, the development task is simple, and the efficiency is high; when the function expansion is needed to be carried out on the simulator end, only the corresponding function ID and the function software running end are required to be added in the function configuration form for small adaptation after the new function is imported, and the function expansion is strong.
As shown in fig. 6, fig. 6 is a workflow diagram of a functional software runtime function simulation method according to an embodiment of the present invention, including:
step S601: when a first function ID and a first function state value sent by the function simulator are received, storing the first function ID and the first function state value into a preset second function configuration form;
step S602: when an interface calling request sent by a preset function application program is received, a function ID query request containing a function interface name is sent;
step S603: when a function ID inquiry request is received, a second function ID and a second function state value corresponding to the function interface name are obtained from a second function configuration form;
step S604: judging whether the second function ID and the second function state value accord with the function ID and the function state value in the second function configuration form;
step S605: prompting that there is no such function and/or function status value error;
step S606: the second function ID and the second function status value are sent to the function application.
Specifically, when the first function ID and the first function status value sent by the function simulator are received, the function software running end executes step S601 to store the first function ID and the first function status value into a preset second function configuration form; then, step S602 to step S603 are performed; then, executing step S604 to determine whether the second function ID and the second function status value conform to the function ID and the function status value in the second function configuration form, if yes, executing step S605 to send the second function ID and the second function status value to the function application program, otherwise executing step S604 to prompt that there is no error in the function and/or the function status value, so as to realize the communication connection between the function software running end and the simulator end and the function simulation of the function software running end.
According to the functional software operation end function simulation method provided by the invention, the second communication interface is in communication connection with the first communication interface of the function simulator, so that the simulation of all functions can be realized only through one communication channel, a plurality of communication channels are not required to be established, the development task is simple, and the efficiency is high; when the function expansion is needed to be carried out on the simulator end, only the corresponding function ID and the function software running end are required to be added in the function configuration form for small adaptation after the new function is imported, and the function expansion is strong.
As shown in fig. 7, fig. 7 is a workflow diagram of a functional software runtime function simulation method according to another embodiment of the present invention, including:
step S701: when an interface calling request sent by a preset function application program is received, a function ID query request containing a function interface name is sent;
step S702: when a function ID inquiry request is received, a second function ID and a second function state value corresponding to the function interface name are obtained from a second function configuration form;
step S703: judging whether the second function ID and the second function state value accord with the function ID and the function state value in the second function configuration form;
step S704: prompting that the ID value of the function is wrong or updating the function configuration form;
step S705: and packaging the second function ID and the second function state value according to a preset data format, and sending the second function ID and the second function state value to the function simulator.
Specifically, when the user triggers the function application on the function software running end to send an interface call request, the function software running end executes step S701 to send a function ID query request including a function interface name; then, step S702 is executed to acquire a second function ID and a second function status value corresponding to the function interface name from the second function configuration table; next, step S703 is executed to determine whether the second function ID and the second function status value match the function ID and the function status value in the second function configuration form, if yes, step S705 is executed to package the second function ID and the second function status value according to the preset data format, and send the second function ID and the second function status value to the function simulator, otherwise step S704 is executed to prompt that the function ID value is wrong or update the function configuration form.
Wherein, in order to facilitate communication and data synchronization with the function simulator, the encapsulation format of the second function ID and the second function STATUS value is the same as the encapsulation format of the first function ID and the first function STATUS value, i.e. the second function ID and the second function STATUS value are packed into one character string, and the character string contains the second function ID and the second function STATUS value in an "id=id_status" mode.
According to the functional software operation end function simulation method provided by the invention, the second communication interface is in communication connection with the first communication interface of the function simulator, so that the simulation of all functions can be realized only through one communication channel, a plurality of communication channels are not required to be established, the development task is simple, and the efficiency is high; when the function expansion is needed to be carried out on the simulator end, only the corresponding function ID and the function software running end are required to be added in the function configuration form for small adaptation after the new function is imported, and the function expansion is strong.
What has been described above is merely illustrative of the principles and preferred embodiments of the present invention. It should be noted that several other variants are possible to those skilled in the art on the basis of the principle of the invention and should also be considered as the scope of protection of the present invention.

Claims (17)

1. The functional simulator for the automobile functional test is characterized by comprising a graphical user interface and a first communication interface, wherein the graphical user interface is provided with at least one group of operation control groups, each operation control group comprises a functional ID input control, a functional state input control and a sending control, and the sending control comprises a sending key, a first configuration management server and a first configuration analysis server:
the function ID input control is used for inputting first function IDs corresponding to the functions one by one in a preset first function configuration form;
a function state input control, configured to input a first function state value corresponding to the first function ID in the first function configuration form;
the first communication interface is used for sending the first function ID and the first function state value to a preset function software running end;
a send key for sending the first function ID and the first function status value;
a first configuration management server for transmitting a verification request containing the first function ID and the first function status value;
and the first configuration analysis server is used for checking the first function ID and the first function state value according to the check request and the first function configuration form.
2. The functional simulator of claim 1, wherein the first configuration management server is further configured to:
when the first function ID and/or the first function state value do not accord with the function ID and/or the function state value in the first function configuration form, prompting to input a correct function ID and/or a correct function state value error;
and when the first function ID and the first function state value accord with the function ID and the function state value in the first function configuration form, packaging the first function ID and the first function state value according to a preset data format, and sending the first function ID and the first function state value to the function software running end.
3. The functional simulator of claim 2, wherein each of said groups of operational controls further comprises:
and the function name display control is used for displaying a function name according to the first function ID and the first function state value when the first function ID and the first function state value accord with the function ID and the function state value in the first function configuration form.
4. A functional software operation end for automobile functional test is characterized in that a functional application program is arranged in the functional software operation end and comprises a second communication interface and a storage unit,
a second communication interface communicatively connected to the first communication interface of the function simulator for vehicle function test according to any one of claims 1 to 3, for receiving the first function ID and the first function status value transmitted by the function simulator;
and the storage unit is used for storing the first function ID and the first function state value into a preset second function configuration form.
5. The functional software runtime of claim 4, further comprising:
the second configuration management server is used for sending a function ID query request containing a function interface name when receiving an interface call request sent by the function application program;
and the second configuration analysis server is used for acquiring a second function ID and a second function state value corresponding to the function interface name from the second function configuration form when the function ID query request is received, and sending the second function ID and the second function state value to the second configuration management server.
6. The functional software runtime of claim 5, wherein the second configuration management server is further configured to:
when the second function ID and/or the second function state value do not accord with the function ID and the function state value in the second function configuration form, prompting that no function and/or function state value is wrong;
and when the second function ID and the second function state value accord with the function ID and the function state value in the second function configuration form, sending the second function ID and the second function state value to the function application program.
7. The functional software runtime of claim 5, wherein the second configuration management server is further configured to:
when the second function ID and/or the second function state value do not accord with the function ID and the function state value in the second function configuration form, prompting that the function ID is in a wrong numerical value or updating the function configuration form;
and when the second function ID and the second function state value accord with the function ID and the function state value in the second function configuration form, packaging the second function ID and the second function state value according to a preset data format, and sending the second function ID and the second function state value to the function simulator.
8. A function simulation system for automobile function test, characterized by comprising the function simulator for automobile function test according to any one of claims 1-3 and the function software running terminal for automobile function test according to any one of claims 4-7, the function simulator being communicatively connected with the function software running terminal through the first communication interface and the second communication interface.
9. A simulator-side function simulation method for a function simulator for automotive function testing according to any one of claims 1 to 3, characterized by comprising:
when a first function ID corresponding to functions one by one and a first function state value corresponding to the first function ID in a first function configuration form input by the operation control group are received, the first function ID and the first function state value are sent to a preset function software running end.
10. The simulator-side function simulation method of claim 9 wherein said sending the first function ID and the first function status value to a preset function software runtime further comprises:
when the first function ID and/or the first function state value do not accord with the function ID and/or the function state value in the first function configuration form, prompting to input a correct function ID and/or a correct function state value error;
and when the first function ID and the first function state value accord with the function ID and the function state value in the first function configuration form, packaging the first function ID and the first function state value according to a preset data format, and sending the first function ID and the first function state value to the function software running end.
11. The simulator-side functional simulation method of claim 10, further comprising:
and when the first function ID and the first function state value accord with the function ID and the function state value in the first function configuration form, displaying a function name according to the first function ID and the first function state value.
12. A simulator-side functional simulation method according to any of claims 9-11, further comprising:
and when the function information comprising the second function ID and the second function state value and sent by the function software running end is received, displaying the function information through a graphical user interface.
13. The simulator-side function simulation method of claim 12 wherein when receiving the function information including the second function ID and the second function status value sent by the function software running side, displaying the function information through a graphical user interface comprises:
when the second function ID and/or the second function state value do not accord with the function ID and/or the function state value in the first function configuration form, prompting data error;
and when the second function ID and the second function state value accord with the function ID and the function state value in the first function configuration form, displaying the second function ID, the second function state value and the function name.
14. A function software operation end function simulation method for a function software operation end for an automobile function test according to any one of claims 4 to 7, comprising:
when the first function ID and the first function status value transmitted by the function simulator for automobile function test of any one of claims 1 to 3 are received, the first function ID and the first function status value are stored in a preset second function configuration form.
15. The method for simulating functions of a functional software runtime of claim 14, wherein the storing the first function ID and the first function status value in a predetermined second function configuration table further comprises:
when an interface calling request sent by a preset function application program is received, a function ID query request containing a function interface name is sent;
when the function ID inquiry request is received, a second function ID and a second function state value corresponding to the function interface name are obtained from the second function configuration form;
and sending the second function ID and the second function state value.
16. The method for functional software runtime function simulation of claim 15, wherein the sending the second function ID and the second function status value comprises:
when the second function ID and/or the second function state value do not accord with the function ID and the function state value in the second function configuration form, prompting that no function and/or function state value is wrong;
and when the second function ID and the second function state value accord with the function ID and the function state value in the second function configuration form, sending the second function ID and the second function state value to the function application program.
17. The method for functional software runtime function simulation of claim 15, wherein the sending the second function ID and the second function status value comprises:
when the second function ID and/or the second function state value do not accord with the function ID and/or the function state value in the second function configuration form, prompting that the function ID is in a wrong numerical value or updating the function configuration form;
and when the second function ID and the second function state value accord with the function ID and the function state value in the second function configuration form, packaging the second function ID and the second function state value according to a preset data format, and sending the second function ID and the second function state value to a function simulator.
CN202110342038.7A 2021-03-30 2021-03-30 Function simulator, function software running end, function simulation system and method Active CN113157387B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110342038.7A CN113157387B (en) 2021-03-30 2021-03-30 Function simulator, function software running end, function simulation system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110342038.7A CN113157387B (en) 2021-03-30 2021-03-30 Function simulator, function software running end, function simulation system and method

Publications (2)

Publication Number Publication Date
CN113157387A CN113157387A (en) 2021-07-23
CN113157387B true CN113157387B (en) 2023-11-14

Family

ID=76885454

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110342038.7A Active CN113157387B (en) 2021-03-30 2021-03-30 Function simulator, function software running end, function simulation system and method

Country Status (1)

Country Link
CN (1) CN113157387B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023869A (en) * 2010-12-30 2011-04-20 深圳联友科技有限公司 Control input value checking method and system
CN102883324A (en) * 2012-10-19 2013-01-16 广州市动景计算机科技有限公司 Security verification method, security verification device and mobile terminal for plugin call in mobile terminal
CN105117215A (en) * 2015-08-05 2015-12-02 深圳市元征科技股份有限公司 Development method and device of automobile function
CN110659212A (en) * 2019-09-20 2020-01-07 腾讯科技(深圳)有限公司 Software testing method, device, equipment and medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023869A (en) * 2010-12-30 2011-04-20 深圳联友科技有限公司 Control input value checking method and system
CN102883324A (en) * 2012-10-19 2013-01-16 广州市动景计算机科技有限公司 Security verification method, security verification device and mobile terminal for plugin call in mobile terminal
CN105117215A (en) * 2015-08-05 2015-12-02 深圳市元征科技股份有限公司 Development method and device of automobile function
CN110659212A (en) * 2019-09-20 2020-01-07 腾讯科技(深圳)有限公司 Software testing method, device, equipment and medium

Also Published As

Publication number Publication date
CN113157387A (en) 2021-07-23

Similar Documents

Publication Publication Date Title
CN108038294B (en) UVM environment building method and system
CN107608889A (en) A kind of test script automatic generation method and system
CN103020024B (en) A kind of file layout change-over method
CN109740222B (en) Testing device and system for automobile networking scene
US7676696B2 (en) Functional unit for carrying out logical test cases on a test system interconnected to a unit to be tested and corresponding method
CN113485680B (en) APP (application) component control system and method based on vehicle-mounted system
CN105117345A (en) Interface testing method and device for application program
CN104408030A (en) XBRL (eXtensible Business Reporting Language) instance generation method and XBRL instance generation device
CN109165017A (en) Data verification method, device and computer storage medium
CN116049014A (en) AMBA bus verification platform generation method and device
CN106020898A (en) Software upgrading method and system of multi-processor device
CN113157387B (en) Function simulator, function software running end, function simulation system and method
CN115277882A (en) CAN message database establishing method and device, vehicle-mounted electronic equipment and storage medium
CN100498799C (en) Simulation system and computer-implemented method for simulation and verifying a control system
CN115348169B (en) Route configuration method, device, equipment and storage medium for vehicle-mounted gateway
CN109781135B (en) Information screen information supplement display method, system and application of road-directing robot
CN104125047A (en) Communication circuit, physical quantity measurement device, electronic apparatus, and communication method
US11789882B2 (en) Sensor configuration method, apparatus, computer equipment and storage medium
CN115618587A (en) Fault injection method, device, equipment and medium for unmanned aerial vehicle simulation model
CN109286689A (en) A kind of method for sending information, device and vehicle-mounted people-car interaction terminal
CN102081015B (en) Method for simulating non-avionic system interface and non-avionic system interface simulator
CN103176904A (en) Simulation testing platform software architecture and testing method based on same
CN102722592B (en) Universal digital information recording device and method
CN107145436A (en) Software function verification method and device
CN114221890B (en) Message simulation device, message sending method and device and computer storage medium

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