CN115116289A - Virtual simulation experiment system facing embedded Linux - Google Patents

Virtual simulation experiment system facing embedded Linux Download PDF

Info

Publication number
CN115116289A
CN115116289A CN202110305585.8A CN202110305585A CN115116289A CN 115116289 A CN115116289 A CN 115116289A CN 202110305585 A CN202110305585 A CN 202110305585A CN 115116289 A CN115116289 A CN 115116289A
Authority
CN
China
Prior art keywords
simulation
experiment
experimenter
module
machine
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.)
Pending
Application number
CN202110305585.8A
Other languages
Chinese (zh)
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.)
East China University of Science and Technology
Original Assignee
East China University of Science and Technology
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 East China University of Science and Technology filed Critical East China University of Science and Technology
Priority to CN202110305585.8A priority Critical patent/CN115116289A/en
Publication of CN115116289A publication Critical patent/CN115116289A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B9/00Simulators for teaching or training purposes

Abstract

The invention discloses a virtual simulation experiment system facing embedded Linux, which consists of simulation experiment machines 1.1, 1.2, …, 1.N (collectively called as simulation experiment machine 1) and a simulation evaluation server 2; wherein N is a positive integer; each simulation experiment machine 1 serves an experimenter, the simulation experiment machine 1 provides simulation experiment processes for the experimenter, and the simulation experiment processes comprise three parts of contents of physical equipment connection simulation, cross development environment configuration and embedded Linux development and are provided for the experimenter in a simulation experiment content menu mode; the simulation evaluation server 2 is used for storing and evaluating the experiment result of the experimenter. The simulation experiment machine 1 comprises a target machine simulation module 11, a physical connection simulation module 12, a host machine simulation module 13, a user login module 14, an experiment operation recording module 15 and an experiment data transmission module 16; the simulation evaluation server 2 comprises experimenter management 21, experiment analysis 22 and experiment storage 23. The system has better universality, reduces the difficulty of experimenters in learning the embedded Linux, is favorable for improving the expandability of an embedded Linux experiment, can provide a novel embedded Linux experiment teaching mode, and improves the experiment teaching effect of the embedded Linux.

Description

Virtual simulation experiment system facing embedded Linux
Technical Field
The invention belongs to the technical field of virtual simulation, and realizes an elastic embedded Linux experimental system by utilizing a virtual simulation technology, thereby providing a feasible method for experimental teaching of an embedded system.
Background
The embedded system is a practical course, and needs a great amount of experimental teaching while theoretical teaching. However, a series of embedded system teaching based on embedded Linux still mainly uses a host-target cross development mode for embedded Linux development at present, and has the following problems: on one hand, most of the embedded Linux experiments depend on a target machine experiment box, and the physical experiment box cannot actively inform the characteristics of the target machine experiment box to an experimenter, so that the experimenter cannot fully learn the experiment box; on the other hand, the cross compiling characteristic of the embedded Linux requires that experimenters switch back and forth between the host machine and the target machine, and physical connection and software configuration between the host machine and the target machine need to be established, so that the cross compiling development method based on the target machine increases the learning difficulty of the experimenters under the condition that the characteristics of physical equipment are not mastered, and therefore the experiment of the embedded Linux is not smoothly carried out, and the experiment effect is not ideal.
Therefore, the invention constructs a virtual simulation experiment system facing the embedded Linux by a virtual simulation technology, on one hand, the contents of the experiment box can be guided in all directions, on the other hand, the details can be hidden, and the experiment effect is improved.
Disclosure of Invention
The invention aims to provide an embedded Linux experiment system based on a virtual simulation technology, which has the characteristics of good universality, cross-platform performance, convenience and good expansibility and can overcome the defects of the original experiment system based on an experiment box.
The invention provides a virtual simulation experiment system facing embedded Linux, which comprises a simulation experiment machine 1 and a simulation evaluation server 2; the simulation experiment machine 1 provides simulation experiment environments of the embedded Linux for experimenters, including physical environment simulation of a host machine and a target machine, cross development environment configuration simulation of the embedded Linux and development process simulation of the embedded Linux, and corresponding experiment results are stored in the simulation evaluation server 2.
The simulation experiment machine 1 comprises a target machine simulation module 11, a physical connection simulation module 12, a host machine simulation module 13, a user login module 14, an experiment operation recording module 15 and an experiment data transmission module 16; the target machine simulation module 11 provides simulation of an embedded target board, and comprises a main board of the target board, a processor chip, various peripherals and interfaces; the physical connection simulation module 12 provides physical connection simulation for connecting a target board and a host machine in embedded system development, and comprises a simulation serial port line, a simulation JTag connection line, a simulation USB line and the like; the host machine simulation module 13 provides simulation of a host machine used for developing the embedded system, and comprises a simulation case of the host machine, a simulation display and a simulation keyboard; the user login module 14 provides an interface for the experimenter to log in the simulation experiment machine 1 so as to carry out subsequent simulation experiments; the experiment operation recording module 15 is used for recording the starting time, the ending time, the operation mode and the operation result of each operation of an experimenter in the simulation experiment process; the experiment data transmission module 16 is used for transmitting the simulation experiment record of the experimenter to the simulation evaluation server 2.
The simulation evaluation server 2 comprises experimenter management 21, experiment analysis 22 and experiment storage 23; the experimenter management 21 is used for managing personnel information participating in the simulation experiment, including the addition, deletion, modification and check of the information; the experiment analysis 22 is used for analyzing simulation experiment results of experiment personnel, including scoring simulation experiment processes and results and tracking difficult problems in the simulation experiment; the experiment storage 23 is used for receiving and storing the experiment data transmitted by the simulation experiment machine 1.
The invention provides a novel embedded Linux experiment-oriented solution, which has the following advantages and purposes:
(1) the method has better universality, and reduces the difficulty of experimenters in learning the embedded Linux: through a simulation technology, the traditional embedded experimental box and the characteristics thereof are conveniently displayed in front of experimenters, so that the universality display of experimental equipment is improved; meanwhile, the operation difficulty and knowledge consulting difficulty of experimenters for knowing the hardware of the experimental box are simplified, and the learning efficiency of the experimenters is improved;
(2) the expandability of the embedded Linux experiment is improved: each set of embedded Linux experiment equipment is provided through a simulation experiment machine, the simulation experiment machine integrates an embedded experiment box, a host machine and a corresponding cross development environment, and the constraint of a hardware environment is reduced, so that the experiment mode can be deployed and popularized in a large range, and the expandability of an embedded Linux experiment is greatly improved;
(3) the novel embedded Linux experiment teaching mode is provided, and the experiment teaching effect of the embedded Linux is improved: the experimental process and result data of the experimenter are transmitted and stored on the simulation evaluation server in time, and then the experiment of the experimenter can be evaluated according to the experimental data, so that the embedded Linux simulation experiment is effectively completed.
Drawings
FIG. 1 is a schematic structural diagram of an embedded Linux-based simulation system according to the present invention;
FIG. 2 is an interaction process of an experimenter and a physical device simulation module according to the present invention;
fig. 3 is a schematic view of an interaction interface provided by the experimental simulator for experimenters.
Detailed Description
The present invention will be described in detail below with reference to the accompanying drawings.
From the division of the working principle, the system resource of the invention can be divided into nodes with two roles: the simulation experiment machines 1.1, 1.2, … and 1.N (collectively called as the simulation experiment machine 1) and the simulation evaluation server 2 are shown in figure 1; wherein N is a positive integer. Each simulation experiment machine 1 serves an experimenter and provides various environments required by simulation experiments; the simulation evaluation server 2 is used for evaluating the experiment result of the experimenter. The simulation experiment machine 1 comprises a target machine simulation module 11, a physical connection simulation module 12, a host machine simulation module 13, a user login module 14, an experiment operation recording module 15 and an experiment data transmission module 16; the simulation evaluation server 2 comprises experimenter management 21, experiment analysis 22 and experiment storage 23.
The simulation experiment process provided by the simulation experiment machine 1 for the experimenter comprises three parts of contents of physical equipment connection simulation, cross development environment configuration simulation and embedded Linux development, and is provided for the experimenter in a simulation experiment content menu mode.
The physical device connection simulation comprises introduction of embedded physical devices and connection pairing simulation among the devices, and the specific process comprises the following steps: the simulation experiment machine 1 provides a physical equipment simulation module of an embedded Linux experiment for experimenters, and comprises a target machine simulation module 11, a physical connection simulation module 12 and a host machine simulation module 13; they receive experimenters' user inputs, including mouse clicks and arrow key inputs from a keyboard. The interaction process of the experimenter's user input with the physical device simulation module is shown in fig. 2. When the user input is a mouse click and the event recipient is any simulation component of the simulation module, the simulation module is advanced, i.e., accepts further input from the user. If the further user input 1 of the experimenter is still a mouse click on the device, the simulation device actively displays the introduction of the device so that the experimenter can know the characteristics of the device; when the next user input 2 of the experimenter is a mouse click, the introduction of the simulation device is hidden, and at the moment, if the user input 2 is other input, no response is made.
When the user input 1 is a direction key, checking whether the current user is an authorized user; if the visitor is not logged in (unauthorized), prompting the current experimenter to log in, and further waiting for the user to input 1. If the current experimenter is an authorized user, moving the target simulation equipment according to the direction of the direction key; at this time, if the simulation device after the movement can be paired with the simulation device at the current position (i.e., position matching), the experimenter is prompted that the current device is successfully connected, and the device interaction is finished. If the moved simulation device cannot be matched with the simulation device at the current position, waiting for the next user input 1 of the experimenter.
When an experimenter clicks the cross development environment configuration simulation, checking whether the experimenter authorizes the simulation; if the user is not authorized, the user is prompted to log in for authorization, otherwise, the experiment is continued;
an interactive window with "$" is provided to the authorized user as shown in fig. 3. After the experimenter clicks the interactive window, the window obtains a focus and waits for the input of a user; the method comprises the following steps of performing cross development environment configuration simulation, wherein the cross development environment configuration simulation comprises two steps of cross tool chain decompression and cross tool chain path installation; checking whether the configuration command and the parameters of the user are correct in sequence; and when the configuration command of the experimenter is incorrect, prompting the user to re-input in the interactive window, otherwise prompting the user to perform the next step. Specifically, if the experimenter performs the operation of the next step without completing the previous step, the experimenter is prompted to perform the operation of the previous step.
The embedded Linux is developed in an authorized user interaction window shown in fig. 3, and includes a Linux basic command simulation experiment, an embedded Linux kernel compiling experiment, and an embedded Linux kernel downloading experiment. For a Linux basic command, when an experimenter inputs the command and parameters correctly, giving the meaning of the command; otherwise, the user is prompted to re-enter. For the compiling experiment of the embedded Linux kernel, kernel decompression, kernel configuration, kernel compiling, kernel module compiling and kernel module installation commands input by a user during kernel compiling are checked in sequence, and the latter command can be continued only when the former command is correct, otherwise, the user is prompted to finish the last step of the command.
When the downloading experiment of the embedded Linux kernel is carried out, whether the connection experiment of the embedded equipment is finished or not is checked; if not, prompting the experimenter to complete the connection simulation experiment of the embedded physical equipment; and if the test is finished, sequentially detecting network connection, kernel downloading and kernel programming commands of the experimenter. If the previous command of the current command is not tested correctly, prompting the experimenter to complete the previous command; and if all the commands pass the detection, prompting the user to finish the simulation experiment.

Claims (8)

1. The utility model provides an embedded Linux oriented virtual simulation experiment system which characterized in that: the system consists of simulation experiment machines 1.1, 1.2, … and 1.N (collectively called simulation experiment machine 1) and a simulation evaluation server 2, as shown in figure 1; wherein N is a positive integer; each simulation experiment machine 1 serves an experimenter, and the simulation experiment machine 1 provides simulation experiment processes for the experimenter, comprises three parts of contents of physical equipment connection simulation, cross development environment configuration and embedded Linux development, and is provided for the experimenter in a simulation experiment content menu mode; the simulation evaluation server 2 is used for storing and evaluating the experiment result of the experimenter.
2. The virtual simulation experiment system of claim 1, wherein: the simulation experiment machine 1 comprises a target machine simulation module 11, a physical connection simulation module 12, a host machine simulation module 13, a user login module 14, an experiment operation recording module 15 and an experiment data transmission module 16;
the target machine simulation module 11 provides simulation of an embedded target board, and comprises a main board of the target board, a processor chip, various peripherals and interfaces;
the physical connection simulation module 12 provides physical connection simulation for connecting a target board and a host machine in embedded system development, and comprises a simulation serial port line, a simulation JTag connection line, a simulation USB line and the like;
the host machine simulation module 13 provides simulation of a host machine used for developing the embedded system, and comprises a simulation case of the host machine, a simulation display and a simulation keyboard;
the user login module 14 provides an interface for the experimenter to log in the simulation experiment machine 1 so as to carry out subsequent simulation experiments;
the experiment operation recording module 15 is used for recording the starting time, the ending time, the operation mode and the operation result of each operation of an experimenter in the simulation experiment process;
the experiment data transmission module 16 is used for transmitting the simulation experiment record of the experimenter to the simulation evaluation server 2.
3. The virtual simulation experiment system of claim 1, wherein: the simulation evaluation server 2 comprises experimenter management 21, experiment analysis 22 and experiment storage 23;
the experimenter management 21 is used for managing personnel information participating in the simulation experiment, including the addition, deletion, modification and check of the information;
the experiment analysis 22 is used for analyzing simulation experiment results of experiment personnel, including scoring simulation experiment processes and results and tracking difficult problems in simulation experiments;
the experiment storage 23 is used for receiving and storing the experiment data transmitted by the simulation experiment machine 1.
4. The method of claim 2, wherein: the simulation experiment machine 1 provides simulation experiment processes for experimenters, comprises three parts of contents of physical equipment connection simulation, cross development environment configuration and embedded Linux development, and provides the contents for the experimenters in a simulation experiment content menu mode.
5. According to claims 2, 4, characterized in that: the simulation experiment machine 1 provides physical equipment connection simulation including introduction of embedded physical equipment and connection pairing simulation among equipment, and the specific process is as follows: the simulation experiment machine 1 provides a physical equipment simulation module of an embedded Linux experiment for an experimenter, and comprises a target machine simulation module 11, a physical connection simulation module 12 and a host machine simulation module 13; they receive experimenters' user inputs, including mouse clicks and directional key inputs from a keyboard; user input of experimenters interacts with the physical equipment simulation module so as to complete physical equipment connection simulation.
6. The method of claim 5, wherein: when the user input is mouse click and the event receiver is any simulation component of the simulation module, the simulation module is arranged in front, namely, the further input of the user is received;
if the further user input 1 of the experimenter is still a mouse click on the device, the simulation device actively displays the introduction of the device so that the experimenter can know the characteristics of the device; when the next user input 2 of the experimenter is mouse click, the introduction of the simulation equipment is hidden, and at the moment, if the user input 2 is other input, no response is carried out;
when the user input 1 is a direction key, checking whether the current user is an authorized user; if the visitor is not logged in (unauthorized), prompting the current experimenter to log in, and further waiting for the user to input 1;
if the current experimenter is an authorized user, moving the target simulation equipment according to the direction of the direction key; at this time, if the simulation equipment after moving can be paired with the simulation equipment at the current position (namely position matching), the experimenter is prompted that the current equipment is successfully connected, and equipment interaction is finished;
if the moved simulation device cannot be matched with the simulation device at the current position, waiting for the next user input 1 of the experimenter.
7. According to claims 2, 4, characterized in that: the cross development environment configuration simulation comprises two steps of cross tool chain decompression and cross tool chain path installation; checking whether the configuration command and the parameters of the user are correct in sequence; when the configuration command of the experimenter is incorrect, prompting the user to re-input in the interactive window, otherwise prompting the user to perform the next step;
specifically, if the experimenter performs the operation of the next step without completing the previous step, the current operation is terminated, and the experimenter is prompted to complete the operation of the previous step.
8. According to claims 2, 4, characterized in that: the embedded Linux development simulation comprises a simulation experiment of a Linux basic command, a compiling experiment of an embedded Linux kernel and a downloading experiment of the embedded Linux kernel;
for the Linux basic command, when the experimenter inputs the command and the parameters are correct, the experimenter gives the meaning of the command; otherwise, prompting the user to re-input;
for the compiling experiment of the embedded Linux kernel, kernel decompression, kernel configuration, kernel compiling, kernel module compiling and kernel module installing commands input by a user during kernel compiling are checked in sequence, and the latter command can be continued only when the former command is correct, otherwise, the current operation is interrupted, and the user is prompted to finish the previous step of the command;
when the downloading experiment of the embedded Linux kernel is carried out, whether the connection experiment of the embedded equipment is finished or not is checked; if not, prompting the experimenter to complete the connection simulation experiment of the embedded physical equipment; if the test is finished, sequentially detecting network connection, kernel downloading and kernel programming commands of experimenters;
if the previous command of the current command is not tested correctly, prompting the experimenter to complete the previous command; and if all the commands pass the detection, prompting the user to complete the simulation experiment.
CN202110305585.8A 2021-03-23 2021-03-23 Virtual simulation experiment system facing embedded Linux Pending CN115116289A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110305585.8A CN115116289A (en) 2021-03-23 2021-03-23 Virtual simulation experiment system facing embedded Linux

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110305585.8A CN115116289A (en) 2021-03-23 2021-03-23 Virtual simulation experiment system facing embedded Linux

Publications (1)

Publication Number Publication Date
CN115116289A true CN115116289A (en) 2022-09-27

Family

ID=83324280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110305585.8A Pending CN115116289A (en) 2021-03-23 2021-03-23 Virtual simulation experiment system facing embedded Linux

Country Status (1)

Country Link
CN (1) CN115116289A (en)

Similar Documents

Publication Publication Date Title
CN108566323B (en) T-Box automated testing method and system
Perrone et al. SAFE: Simulation automation framework for experiments
CN102141962B (en) Safety distributed test framework system and test method thereof
CN101295280B (en) Automatic software debugging method and system
CN102053911A (en) Automated testing method and system based on Android and mobile terminal
WO2017200572A1 (en) Application testing on different device types
WO2017165071A1 (en) Visual regression analysis
CN108959068A (en) Software interface test method, equipment and storage medium
CN104050076A (en) Testing method, device and system of application software on mobile terminal
US20060265718A1 (en) Injection-based simulation for button automation on button-aware computing platforms
Sun et al. Integrating an ensemble surrogate model’s estimation into test data generation
CN106528429A (en) UI testing method and device
US9723489B1 (en) Automated vulnerability discovery in mobile device applications
CN104899140A (en) Test method for mobile terminal assembly
CN109101414B (en) Massive UI test generation method and device based on buried point data
US11372750B2 (en) Test script for application under test having abstracted action group instantiations
US11537414B2 (en) Architecture mapping of applications
CN112882953A (en) Automatic demonstration method and system for application program based on android debugging bridge
CN107783867A (en) Gesture method of testing, device, computer equipment and storage medium
CN115116289A (en) Virtual simulation experiment system facing embedded Linux
CN107346287A (en) A kind of exam pool applied program testing method, terminal and simulator
CN109032947A (en) For the test method of operating system, device, equipment and storage medium
CN110209572A (en) Ui testing method, ui testing system and terminal
CN108984380A (en) A kind of server test method, device and medium based on linux system
CN114661614A (en) FPGA hardware design capability evaluation system and method for cloud environment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication