CN113157387A - 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
CN113157387A
CN113157387A CN202110342038.7A CN202110342038A CN113157387A CN 113157387 A CN113157387 A CN 113157387A CN 202110342038 A CN202110342038 A CN 202110342038A CN 113157387 A CN113157387 A CN 113157387A
Authority
CN
China
Prior art keywords
function
state value
configuration form
simulator
value
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
CN202110342038.7A
Other languages
Chinese (zh)
Other versions
CN113157387B (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

Images

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 function simulation 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 which correspond to functions in a preset first function configuration form one by one; 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 invention has simple function graphic user interface, can complete the simulation of all functions by only 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 in particular, to a function simulator, a function software operating terminal, a function simulation system, and a function simulation 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 vehicle-mounted function simulation, however, the existing source android simulator has the following defects:
1. the method comprises the following steps of performing function simulation by using standard Qt controls, wherein one control corresponds to a specific function, N controls correspond to N functions, when the functions are more, development tasks are heavy, a simulator interface is complex, and the working efficiency is low;
2. when the function of the simulator end is expanded, the simulator end and the android end need to re-develop corresponding new functions, and the expansibility is poor;
3. the simulator end and the android end adopt an android source to generate QEMU for communication, a 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 provides a function simulator, a function software running end, a function simulation system and a function simulation method.
The technical scheme of the invention provides a function 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 which correspond to functions in a preset first function configuration form one by one;
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 group of operation control groups further includes a sending control, where the sending control includes a sending key, a first configuration management server, and a first configuration parsing server:
a transmission key for transmitting the first function ID and the first function status value;
a first configuration management server for sending a check request including the first function ID and the first function status value;
and the first configuration analysis server is used for verifying the first function ID and the first function state value according to the verification 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 that a correct function ID and/or a function state value is input incorrectly;
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 set of operation control units 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 scheme of the invention also provides a functional software running end, wherein a functional application program is arranged in the functional software running 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, 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 also 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 calling 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 conform to 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.
Further, the second configuration management server is further configured to:
when the second function ID and/or the second function state value do not conform to the function ID and the function state value in the second function configuration form, prompting that the numerical value of the function ID is wrong 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 present invention further provides a function simulation system, which includes the function simulator and the function software running end, wherein the function simulator is in communication connection with the function software running end through the first communication interface and the second communication interface.
The technical solution of the present invention further provides a simulator end function simulation method for the function simulator, including:
and when receiving a first function ID corresponding to functions in a preset first function configuration form and a first function state value corresponding to the first function ID, which are input by the operation control group, sending the first function ID and the first function state value to a preset function software running end.
Further, the sending the first function ID and the first function state 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 that a correct function ID and/or a function state value is input incorrectly;
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 also comprises the following steps:
and when the first function ID and the first function state value are in accordance 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 also comprises the following steps:
and when receiving function information which is sent by the function software running end and comprises a second function ID and a second function state value, displaying the function information through a graphical user interface.
Further, when receiving the function information including the second function ID and the second function status value sent by the function software running end, displaying the function information 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 a 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 solution of the present invention further provides a functional software runtime function simulation method for the functional software runtime, which includes:
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 in a preset second function configuration form.
Further, the storing the first function ID and the first function state value in a preset second function configuration form further includes:
when an interface calling request sent by a preset function application program is received, sending a function ID query request containing a function interface name;
when the function ID query request is received, acquiring a second function ID and a second function state value corresponding to the function interface name from the second function configuration form;
transmitting the second function ID and the second function status 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 conform to 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.
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 second function state value in the second function configuration form, prompting that the numerical value of the function ID is wrong 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 adopting above-mentioned technical scheme, have following beneficial effect:
1. the method comprises the steps of converting specific controls corresponding to functions into function groups of a first function configuration form, realizing one-to-one correspondence of the function controls and the function groups of the first function configuration form, and carrying out group stacking on the functions in the first function configuration form.
2. When the function expansion of the simulator end is needed, after the new function is introduced, only the corresponding function ID and the function software running end are needed to be added in the function configuration form for small adaptation, so that the function expansibility 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 all functions can be simulated through the first communication interface and the second communication interface without establishing a plurality of communication channels.
Drawings
The disclosure of the present invention will become more readily understood by reference to the drawings. It should be understood that: these drawings are for illustrative purposes only and are not intended to limit the scope of the present disclosure. In the figure:
fig. 1 is a schematic structural diagram of a function simulator according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of the structure of the graphical user interface shown in FIG. 1;
fig. 3 is a schematic structural diagram of a functional software runtime end according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a method for simulating a function of a simulator end according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating a method for simulating a function of a simulator end according to another embodiment of the present invention;
fig. 6 is a flowchart illustrating a method for simulating a function of a functional software runtime according to an embodiment of the present invention;
fig. 7 is a flowchart of a functional software runtime function simulation method according to another embodiment of the present invention.
Detailed Description
The following further describes embodiments of the present invention with reference to the accompanying drawings.
It is easily understood that according to the technical solution of the present invention, those skilled in the art can substitute various structures and implementation manners without changing the spirit of the present invention. Therefore, the following detailed description and the accompanying drawings are merely illustrative of the technical aspects of the present invention, and should not be construed as limiting or restricting the technical aspects of the present invention.
The terms of orientation of up, down, left, right, front, back, top, bottom, and the like referred to or may be referred to in this specification are defined relative to the configuration shown in the drawings, and are relative terms, and thus may be changed correspondingly according to the position and the use state of the device. Therefore, these and other directional terms should not be construed as limiting terms.
As shown in fig. 1 and fig. 2, the function 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, each group of operation control groups includes a function ID input control 111 and a function state input control 112:
the function ID input control 111 is configured to input a first function ID corresponding to a function in a preset first function configuration form;
a function state input control 112, 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 12 is configured to send the first function ID and the first function state value to a preset function software running end.
The present invention provides a function simulator which mainly comprises a graphical user interface 11 and a first communication interface 12. The function simulator provided in the present embodiment is mainly explained as an in-vehicle function simulator.
The graphical user interface 11 is provided with at least one group of operation control groups, each group of operation control groups includes a function ID input control 111 and a function state input control 112, the function ID input control 111 is used for inputting a first function ID corresponding to a function, and the function state input control 112 is used for inputting a first function state value corresponding to the first function ID. For convenience of understanding and explanation, the functions of this embodiment are explained by taking the vehicle-mounted functions as an example, that is, the first function configuration form stores all vehicle-mounted functions (39 modules, 600 functions) on the vehicle and state values corresponding to the vehicle-mounted functions, a character string corresponding to each vehicle-mounted function is defined in the first function configuration form, and the first function configuration form may be stored in the simulator end in advance in a data table file form, as shown in table 1 below, a user in the form of the first function configuration form may also set the functions as needed. As shown in table 1, the function ID corresponds to the vehicle-mounted function one by one, and the function status value corresponds to the function ID, for example, the vehicle-mounted function is "shift position", the corresponding function ID is "1", and the function status value is "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 needs to be simulated at the same time, the number of the operation control groups is one group; when it is necessary to simultaneously simulate a plurality of vehicle-mounted functions at the same time, the number of the operation control sets is multiple, and each operation control set corresponds to one first function ID, as shown in fig. 2. The number of operation control groups of the present invention is preferably plural 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 achieve compatibility with existing interfaces, the first communication interface 112 is an android QEMU interface.
TABLE 1
Figure BDA0002999850870000091
Figure BDA0002999850870000101
Figure BDA0002999850870000111
The function simulator provided by the invention has the advantages that the function graphic 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 of the simulator end needs to be expanded, after the new function is introduced, only the corresponding function ID needs to be added in the function configuration form and the function software running end needs to be subjected to smaller adaptation, so that the function expansibility is strong.
In one embodiment, to improve data accuracy and user experience, each set of operation controls further includes a send control 113, which includes a send key 1131, a first configuration management server 1132 and a first configuration parsing server 1133:
a transmission key 1131 for transmitting the first function ID and the first function status value;
a first configuration management server 1132 for transmitting a verification request including a first function ID and a first function status value;
the first configuration parsing server 1133 is configured to verify the first function ID and the first function status value according to the verification request and the first function configuration form.
In one embodiment, to improve data accuracy and user experience, 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 are input wrongly;
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.
In one embodiment, to facilitate observation and improve user experience, each group of operation control groups further includes:
and a function name display control 114 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 conform to the function ID and the function state value in the first function configuration form.
As shown in fig. 3, fig. 3 is a functional software runtime provided with a functional application therein, which includes a second communication interface 21 and a storage unit 22,
the second communication interface 21 is connected with the first communication interface of the function simulator in a communication way, and is used for receiving the first function ID and the first function state 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 invention is mainly a functional software running end of an android operating system, which can also be called an android end, and comprises a second communication interface 21 and a storage unit 22.
After the functional software running end receives the first function ID and the first function state value sent by the functional simulator through the second communication interface 21, the first function ID and the first function state value are stored in a preset second function configuration form, and the corresponding function ID and the corresponding function state value in the second function 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, in order to achieve 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 function simulator through the second communication interface, so that the simulation of all functions can be completed through only one communication channel without establishing a plurality of communication channels, the development task is simple, and the efficiency is high; when the function of the simulator end needs to be expanded, after the new function is introduced, only the corresponding function ID needs to be added in the function configuration form and the function software running end needs to be subjected to smaller adaptation, so that the function expansibility is strong.
In one embodiment, in order to facilitate the functional software execution end to implement functional simulation, the method further includes:
a second configuration management server 23, configured to send a function ID query request including a function interface name when receiving an interface call request sent by a function application;
the second configuration parsing server 24 is configured to, when receiving the function ID query request, obtain 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 conform to 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 are in accordance 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.
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 conform to the function ID and the function state value in the second function configuration form, prompting that the numerical value of the function ID is wrong 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 running end, wherein the function simulator is in communication connection with the function software running end through the first communication interface and the second communication interface.
The function simulation system provided by the invention has the advantages that the function graphic 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 of the simulator end needs to be expanded, after the new function is introduced, only the corresponding function ID needs to be added in the function configuration form and the function software running end needs to be subjected to smaller adaptation, so that the function expansibility is strong.
As shown in fig. 4, fig. 4 is a method for simulating a function of a simulator end according to an embodiment of the present invention, including:
step 401: receiving a first function ID corresponding to functions in a preset first function configuration form input by an operation control group and a first function state value corresponding to the first function ID;
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 or not;
step S403: prompting for input of correct function ID and/or function state value error;
step S404: displaying a 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 a first function ID and a first function state value by operating a function ID input control and a function state input control in the control group, the function simulator executes step S401; then, executing step S402 to determine whether the first function ID and the first function state value conform to the function ID and the function state value in the first function configuration form, if yes, executing step S404 to display a function name corresponding to the first function ID and the first function state value through the function name display control, so as to implement the function simulation of the simulator end, otherwise, executing step S403 to prompt that a correct function ID and/or a function state value are input incorrectly; 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, to 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 _ STATUS" mode; finally, step S406 is executed to send the encapsulated first function ID and the first function state value to a preset function software running end, so as to implement communication with the function software running end and maintain 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 of the simulator end needs to be expanded, after the new function is introduced, only the corresponding function ID needs to be added in the function configuration form and the function software running end needs to be subjected to smaller adaptation, so that the function expansibility is strong.
As shown in fig. 5, fig. 5 is a flowchart of a simulator-side function simulation method according to another embodiment of the present invention, including:
step S501: receiving function information which is sent by a function software running end and comprises a second function ID and a second function state value;
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 or not;
step S503: prompting data errors;
step S504: and displaying the second function ID, the second function state value and the function name through a graphical user interface.
Specifically, when receiving function information including a second function ID and a second function state value sent by the functional software running end, the function simulator executes step S501; then, step S502 is executed 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, step S504 is executed to display the second function ID, the second function status value, and the function name, otherwise step S503 is executed to prompt a data error, implement communication with the function software runtime, and maintain 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 of the simulator end needs to be expanded, after the new function is introduced, only the corresponding function ID needs to be added in the function configuration form and the function software running end needs to be subjected to smaller adaptation, so that the function expansibility is strong.
As shown in fig. 6, fig. 6 is a flowchart of a functional software runtime function simulation method according to an embodiment of the present invention, including:
step S601: when receiving the first function ID and the first function state value sent by the function simulator, 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, sending a function ID query request containing a function interface name;
step S603: when a function ID query request is received, acquiring a second function ID and a second function state value corresponding to the function interface name 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 or not;
step S605: prompting that no function and/or function status value is incorrect;
step S606: the second function ID and the second function state value are sent to the function application.
Specifically, when receiving a first function ID and a first function state value sent by the function simulator, the function software running end executes step S601 to store the first function ID and the first function state value in a preset second function configuration form; then, step S602 to step S603 are performed; then, step S604 is executed 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, step S605 is executed to send the second function ID and the second function status value to the function application, otherwise, step S604 is executed to prompt that no error occurs in the function and/or the function status value, so as to implement communication connection between the function software running end and the simulator end and 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 completed only through one communication channel without establishing a plurality of communication channels, the development task is simple, and the efficiency is high; when the function of the simulator end needs to be expanded, after the new function is introduced, only the corresponding function ID needs to be added in the function configuration form and the function software running end needs to be subjected to smaller adaptation, so that the function expansibility is strong.
As shown in fig. 7, fig. 7 is a flowchart 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, sending a function ID query request containing a function interface name;
step S702: when a function ID query request is received, acquiring a second function ID and a second function state value corresponding to the function interface name 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 or not;
step S704: prompting that the numerical value of the function ID is wrong or updating a 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 a user triggers a function application on a 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 obtain a second function ID and a second function status value corresponding to the function interface name from the second function configuration form; next, step S703 is executed 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, step S705 is executed to package the second function ID and the second function status value according to a 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 incorrect or the function configuration form is updated.
In order to facilitate communication and data synchronization with the function simulator, the second function ID and the second function STATUS value are packaged in the same format as the first function ID and the first function STATUS value, that is, the second function ID and the second function STATUS value are packaged into a character string, and the character string includes the second function ID and the second function STATUS value in an "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 completed only through one communication channel without establishing a plurality of communication channels, the development task is simple, and the efficiency is high; when the function of the simulator end needs to be expanded, after the new function is introduced, only the corresponding function ID needs to be added in the function configuration form and the function software running end needs to be subjected to smaller adaptation, so that the function expansibility is strong.
The foregoing is considered as illustrative only of the principles and preferred embodiments of the invention. It should be noted that, for those skilled in the art, several other modifications can be made on the basis of the principle of the present invention, and the protection scope of the present invention should be regarded.

Claims (18)

1. A function simulator comprising a graphical user interface and a first communication interface, the graphical user interface having at least one set of operational controls, each set of operational controls comprising a function ID input control and a function status input control:
the function ID input control is used for inputting first function IDs which correspond to functions in a preset first function configuration form one by one;
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.
2. The function simulator of claim 1, wherein each set of operational controls further comprises a send control comprising a send key, a first configuration management server, and a first configuration resolution server:
a transmission key for transmitting the first function ID and the first function status value;
a first configuration management server for sending a check request including the first function ID and the first function status value;
and the first configuration analysis server is used for verifying the first function ID and the first function state value according to the verification request and the first function configuration form.
3. The function simulator of claim 2, 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 that a correct function ID and/or a function state value is input incorrectly;
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.
4. The functional simulator of claim 3, wherein each set of said 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.
5. A functional software running end is characterized in that a functional application program is arranged in the functional software running 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 according to any of claims 1 to 4, 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.
6. The functional software runtime of claim 5, 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 calling 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.
7. The functional software runtime of claim 6, wherein the second configuration management server is further configured to:
when the second function ID and/or the second function state value do not conform to 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.
8. The functional software runtime of claim 6, wherein the second configuration management server is further configured to:
when the second function ID and/or the second function state value do not conform to the function ID and the function state value in the second function configuration form, prompting that the numerical value of the function ID is wrong 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.
9. A functional simulation system comprising a functional simulator according to any of claims 1 to 4 and a functional software runtime according to any of claims 5 to 8, the functional simulator being communicatively connected to the functional software runtime via the first communication interface and the second communication interface.
10. A simulator end functional simulation method for a functional simulator according to any of claims 1 to 4, comprising:
and when receiving a first function ID corresponding to functions in a preset first function configuration form and a first function state value corresponding to the first function ID, which are input by the operation control group, sending the first function ID and the first function state value to a preset function software running end.
11. The simulator terminal function simulation method according to claim 10, wherein the sending the first function ID and the first function state value to a preset function software execution terminal 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 that a correct function ID and/or a function state value is input incorrectly;
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.
12. The simulator terminal function simulation method of claim 11, further comprising:
and when the first function ID and the first function state value are in accordance 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.
13. The simulator end function simulation method according to any one of claims 10 to 12, further comprising:
and when receiving function information which is sent by the function software running end and comprises a second function ID and a second function state value, displaying the function information through a graphical user interface.
14. The simulator terminal function simulation method of claim 13, wherein the displaying the function information through a graphical user interface when receiving the function information including a second function ID and a second function status value transmitted by the function software execution terminal 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 a 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.
15. A functional software runtime function simulation method for the functional software runtime of any one of claims 5 to 8, comprising:
storing the first function ID and the first function status value into a preset second function configuration form when the first function ID and the first function status value transmitted by the function simulator according to any one of claims 1 to 4 are received.
16. The method for simulating functions of a functional software running end according to claim 15, wherein the step of storing the first function ID and the first function status value in a preset second function configuration form further comprises the steps of:
when an interface calling request sent by a preset function application program is received, sending a function ID query request containing a function interface name;
when the function ID query request is received, acquiring a second function ID and a second function state value corresponding to the function interface name from the second function configuration form;
transmitting the second function ID and the second function status value.
17. The method for functional simulation of a functional software runtime, as recited in claim 16, wherein said sending said second function ID and said second function status value comprises:
when the second function ID and/or the second function state value do not conform to 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.
18. The method for functional simulation of a functional software runtime, as recited in claim 16, wherein said sending said second function ID and said 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 second function state value in the second function configuration form, prompting that the numerical value of the function ID is wrong 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 true CN113157387A (en) 2021-07-23
CN113157387B 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
CN113157387B (en) 2023-11-14

Similar Documents

Publication Publication Date Title
CN108038294B (en) UVM environment building method and system
CN104615455B (en) A kind of the IPMC program remote upgrading methods and device of ATCA frameworks
CN105117431A (en) Dynamic configuration method and system for external imported data
CN101957765B (en) A kind of method and system, equipment realizing equipment firmware and upgrade
CN103023708A (en) Method and system for testing communication protocol interface
US20090292518A1 (en) Real time simulating method and system
CN110351715A (en) AT command processing method, terminal adapter and computer readable storage medium
CN106020898A (en) Software upgrading method and system of multi-processor device
CN103902315A (en) System and method for online updating of multiple board cards
CN113867318A (en) Automatic integration method for hardware-in-loop test engineering of CAN communication controller
CN116049014A (en) AMBA bus verification platform generation method and device
CN100498799C (en) Simulation system and computer-implemented method for simulation and verifying a control system
CN107015829A (en) Audio system upgrade method, device
CN113157387A (en) Function simulator, function software running end, function simulation system and method
CN108228965B (en) Simulation verification method, device and equipment for memory cell
CN109842534A (en) A kind of equipment test verification method based on switch type FC artificial card
CN103475522A (en) Device and method for airplane centralized maintenance system simulation
CN108959220A (en) Templating data input management method and device
CN105334756A (en) Agile satellite mission interpretation closed loop simulation verification system and method
CN104125047A (en) Communication circuit, physical quantity measurement device, electronic apparatus, and communication method
CN116681013A (en) Simulation verification method, platform, device, equipment and medium of network chip
CN115348169A (en) Route configuration method, device, equipment and storage medium for vehicle-mounted gateway
CN114706768A (en) I3C bus verification method and verification system
CN103176904A (en) Simulation testing platform software architecture and testing method based on same
CN102081015B (en) Method for simulating non-avionic system interface and non-avionic system interface simulator

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