A vehicle-mounted signal simulator

By introducing recognition, execution and transmission units into the vehicle signal simulator, the native simulator framework is expanded to realize the simulation of vehicle status and voice control instructions, solving the problem that existing technology cannot simulate vehicle signals, and improving the efficiency of vehicle APP development and debugging. , realizing one-click parallel or serial execution function.

CN112698581BActive Publication Date: 2024-09-10DONGFENG MOTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011574284.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-25
Publication Date
2024-09-10
Estimated Expiration
2040-12-25

AI Technical Summary

Technical Problem

Existing Android simulators cannot simulate vehicle signals, causing in-vehicle APP developers to be unable to conduct simulation tests, resulting in low development and debugging efficiency. Moreover, existing simulators cannot simulate parallel or serial operations, resulting in low operating efficiency.

Method used

Provides a vehicle-mounted signal simulator, including a recognition unit, an execution unit and a transmission unit, which can simulate vehicle-related signals in a general personal computer environment. By expanding the native simulator framework, it can realize the simulation of vehicle status, vehicle machine status and voice control instructions. , and sends simulation status signals through the fast simulator communication channel, supporting one-click parallel or serial execution functions.

Benefits of technology

It improves the efficiency of car APP development and debugging, allowing developers to conduct simulation tests in the early stages of development, reducing manual operations, shortening development time, and improving development efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112698581B
    Figure CN112698581B
Patent Text Reader

Abstract

The present invention discloses a vehicle-mounted signal simulator, which includes an identification unit, an execution unit and a transmission unit; wherein the identification unit is used to identify a target scene corresponding to the target operation when the user performs the target operation, and the target scene corresponds to a plurality of functional instructions and the execution order corresponding to the plurality of functional instructions; the execution unit is used to execute the plurality of functional instructions according to the execution order, and correspondingly generate a plurality of simulation status signals, and the transmission unit is used to send the plurality of simulation status signals to the target terminal. The above-mentioned vehicle-mounted signal simulator realizes the simulation of vehicle signals by expanding the native simulator, so that developers can use the simulator to simulate the development of vehicle-mounted APPs, and at the same time, the vehicle simulation scene module can be flexibly set to realize one-click parallel or serial execution of various functional controls in the scene, avoiding the tedious process of manual clicking, effectively shortening the APP development time, and improving development efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of intelligent simulation technology, in particular to a vehicle-mounted signal simulator. Background Art

[0002] An emulator is a software that simulates the functions of a hardware processor and an instruction system program, allowing a computer or multimedia platform such as a PDA or a mobile phone to run devices on other platforms.

[0003] For APP developers, the simulator's simulated signals are usually used to test the APP's internal operating logic during the development process. In the development of in-vehicle APPs, since the existing Android emulators cannot simulate vehicle signals, developers cannot use native emulators to simulate in-vehicle APP development. Therefore, current in-vehicle APP developers and testers mainly test related signals directly in the vehicle after obtaining the vehicle hardware or trial vehicles. However, vehicle hardware or trial vehicles are generally only available in the middle and late stages of development, and resources are in short supply, which not only reduces the efficiency of development and debugging, but also easily leads to delays in development and debugging.

[0004] In addition, existing simulators cannot simulate parallel or serial operations when simulating signal state changes. Developers can only manually click on each function one by one, which is inefficient. Summary of the invention

[0005] In view of the above technical problems, the present invention provides a vehicle-mounted signal simulator, which can simulate vehicle-related signals on a general personal computer environment.

[0006] In a first aspect, an embodiment of the present invention provides a vehicle-mounted signal simulator, including an identification unit, an execution unit, and a transmission unit;

[0007] The identification unit is used to identify a target scene corresponding to the target operation when the user performs the target operation, wherein the target scene corresponds to a plurality of function instructions and the execution order corresponding to the plurality of function instructions respectively;

[0008] The execution unit is used to execute the multiple functional instructions according to the execution order and generate multiple simulation status signals accordingly;

[0009] The transmission unit is used to send the multiple simulation status signals to the target terminal.

[0010] In one embodiment, the vehicle signal simulator is extended based on a framework of a native simulator, and the native simulator includes an Android simulator.

[0011] In a certain embodiment, the transmission unit is also used to establish a Quick Emulator (QEMU) communication channel corresponding to each scenario by expanding the communication interface of the native simulator.

[0012] In one embodiment, the scenario is expanded according to user simulation requirements.

[0013] In one embodiment, the execution order includes serial and / or parallel association of multiple functions in the scene.

[0014] In one embodiment, the functional instructions include timer instructions and operation instructions, the timer instructions are used to set the functional status in sequence according to the preset time, and the operation instructions are used to judge the set conditional logic and generate signals in sequence according to the logic.

[0015] In one embodiment, the scenario includes vehicle status simulation, vehicle computer status simulation and voice control command simulation.

[0016] In a second aspect, an embodiment of the present invention provides a vehicle signal simulator simulation method, comprising:

[0017] When the user performs a target operation, a target scene corresponding to the target operation is identified, wherein the target scene corresponds to a plurality of function instructions and execution orders corresponding to the plurality of function instructions;

[0018] Executing the plurality of functional instructions according to the execution order, and generating a plurality of simulation status signals accordingly;

[0019] The plurality of simulation status signals are sent to a target terminal.

[0020] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method described in any one of the above embodiments is implemented.

[0021] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0022] A vehicle-mounted signal simulator provided by the present invention realizes the simulation of vehicle signal scenarios such as vehicle status, vehicle computer status and voice control instructions by setting an identification unit, an execution unit and a transmission unit; at the same time, the execution process is configured so that related vehicle-mounted functions can be executed in parallel or serially with one click, reducing manual operations and effectively improving the efficiency of vehicle-mounted APP development and debugging. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solution of the present invention, the drawings required for use in the implementation mode will be briefly introduced below. Obviously, the drawings described below are only some implementation modes of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0024] Figure 1 is a schematic diagram of the structure of a vehicle-mounted signal simulator provided by an embodiment of the present invention;

[0025] Figure 2 It is a communication flow chart between the vehicle signal simulator and the APP side provided by an embodiment of the present invention;

[0026] Figure 3 It is a flow chart of a simulation method of a vehicle-mounted signal simulator provided by an embodiment of the present invention;

[0027] Figure 4 It is a flow chart of simulating a refueling scenario by a vehicle-mounted signal simulator provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0028] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0029] It should be understood that the step numbers used in this document are only for convenience of description and are not intended to limit the order in which the steps are executed.

[0030] It should be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0031] The terms “include” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0032] The term "and / or" means and includes any and all possible combinations of one or more of the associated listed items.

[0033] like Figure 1As shown, an embodiment of the present invention provides a vehicle-mounted signal simulator, including an identification unit 101 , an execution unit 102 and a transmission unit 103 .

[0034] The identification unit 101 is used to identify a target scenario corresponding to the target operation when the user performs the target operation. The target scenario corresponds to a plurality of functional instructions and execution orders corresponding to the plurality of functional instructions.

[0035] In this embodiment, the scenario is expanded according to the user simulation requirements. Specifically, the scenarios and corresponding function controls required for the vehicle functions can be developed on the user interface of the vehicle signal simulator by utilizing Qt development technology.

[0036] Specifically, it includes user graphical interface UI design, that is, according to the vehicle body data requirements during the development and testing process, the simulation scenario functions are added to the simulator interface, including gear functions, seat functions, air conditioning and engine, etc.

[0037] For example, for the gear scene, five gears of PRNDS can be set. When simulating the car gear signal, the scene function triggers the required gear signal; for the seat scene, it specifically includes seat position adjustment (front and back, left and right, up and down), backrest adjustment, seat position memory, seat heating and other functional requirements.

[0038] The execution unit 102 is used to execute the multiple functional instructions according to the execution order and generate multiple simulation status signals accordingly.

[0039] In this embodiment, the functional instructions include timer instructions and operation instructions. The timer instructions are used to set the functional status in sequence according to the preset time, and the operation instructions are used to judge the set conditional logic and generate signals in sequence according to the logic.

[0040] In this embodiment, the execution order includes serial and / or parallel association of multiple functions in the scenario.

[0041] The simulation of vehicle scenarios relies on timer instructions and conditional logic operation instructions. When the APP developer presses the target button in the scenario setting interface, the simulator executes the corresponding function of the scenario with one click. Each functional control is set to be serial or parallel associated, so the simulation signal can be triggered in sequence according to the preset timing.

[0042] During the APP development and debugging process, developers do not need to manually click on each function of the simulator one by one. They only need to select the target scene to start the scene simulation process. Each functional control in the target scene executes and updates the semaphore in turn, corresponding to the trigger signal, eliminating the tedious process of manual clicking.

[0043] The transmission unit 130 is configured to send the plurality of simulation status signals to a target terminal.

[0044] In this embodiment, the transmission unit is also used to establish a QEMU (Quick Emulator) fast simulator communication channel corresponding to each scenario by expanding the communication interface of the native simulator. At the same time, at the communication layer, the communication process of each scenario in this embodiment is established according to the car-sensor communication process provided by the native simulator.

[0045] Figure 3 A communication flow chart between the vehicle signal simulator proposed in the present invention and the target APP is provided. The Qtwidget in the figure is a UI control provided by the Qt software, which is used to draw the UI interface. Qt Impl is used to obtain the external operation status of the UI in real time, issue the status instruction corresponding to the UI, receive the control command of the UI status from other terminals and update the interface UI. Virtualdevice service is a virtual device service, which runs on the simulator side and is used to receive or send instructions from the simulator module and perform data legitimacy verification. Usually, each module corresponds to a separate service; QEMUD is a fast simulator device, which runs on the simulator side and is used to communicate with the Android side; QEMU pipe is an abstract fast simulator virtual device, which runs on the Android side and is used to communicate with the simulator; HAL is a hardware abstraction layer, which is used to verify the data sent by the simulation side, and to check and upload it to the framwork layer. CustomApi is a custom interface for vehicle simulation scenarios, and CustomApi-IMPL is a CustomApi proxy service of the framwork layer on the Android side, which is used to implement the interface function of CustomApi.

[0046] Through the above channels, the target APP can interact with the vehicle signal simulator. The specific interaction process includes the APP obtaining simulator information, the APP setting simulator status, and the APP monitoring simulator status changes.

[0047] In this embodiment, the vehicle signal simulator is extended based on the framework of the native simulator, and the native simulator includes an Android simulator.

[0048] In this embodiment, the scenarios include vehicle status simulation, vehicle computer status simulation and voice control command simulation. Vehicle status signal simulation includes simulation of wheels, instruments, air conditioning, doors, windows, seat belts, engine, gear, seats and common vehicle status of APP, and common vehicle status of APP includes fuel level, P gear and vehicle speed, etc.; vehicle computer status signal simulation includes simulation of vehicle computer version number, buttons and instrument background settings; voice interaction signal simulation includes simulation of voice string commands.

[0049] After the APP side receives the scene status information simulated by the vehicle signal simulator, it performs APP logic debugging according to the information.

[0050] The vehicle signal simulator proposed in the above embodiment of the present invention expands the native simulator, allowing developers to flexibly set specific interfaces for various simulation scenarios, simulate vehicle status, command signals, and then use the simulator to simulate vehicle APP development, while realizing one-click execution of scene operations, so that various functional controls in the scene can be executed in parallel or serially, effectively improving the efficiency of APP development and debugging.

[0051] like Figure 3 As shown, one embodiment of the present invention further provides a vehicle-mounted signal simulator simulation method, comprising:

[0052] S11: When the user performs a target operation, a target scene corresponding to the target operation is identified, wherein the target scene corresponds to a plurality of functional instructions and execution orders corresponding to the plurality of functional instructions.

[0053] S12: Execute the plurality of functional instructions according to the execution order, and generate a plurality of simulation status signals accordingly.

[0054] S13: Send the multiple simulation status signals to the target terminal.

[0055] This embodiment uses the "Smart Refueling" APP as the development and testing object. The vehicle-mounted signal simulator sets smart refueling as the target scenario and provides the following process example. Figure 4 .

[0056] The simulation requirements of the smart refueling scenario are: when the car's fuel level is set to be lower than 20%, a warning is triggered, and the car speed gradually decreases to 0km / h. When the current distance to the gas station is less than 50 meters, the P gear is engaged and the handbrake is pulled, and the "Smart Refueling" APP pop-up window is triggered.

[0057] In the vehicle signal simulator proposed in the present invention, firstly, scene function UI controls are added according to the demand, and specific controls include vehicle speed, fuel level, longitude and latitude, gear position and handbrake; and timers and conditional logic instructions corresponding to each control are set.

[0058] Among them, for the oil level control, the initial value of the simulated oil level is set to x1L, the decrease speed is x2L / 200ms, and the conditional logic is to determine whether the current oil level is ≤20%; for the vehicle speed control, the initial value of the simulated vehicle speed is set to y1km / h, the decrease speed is (y2km / h) / 200ms, and the conditional logic is to determine whether the current vehicle speed is equal to 0km / h.

[0059] x1, x2, y1, y2 are parameters that can be preset according to development requirements. An example of parameter configuration is: x1=50, x2=1, y1=100, y2=5.

[0060] The developer clicks on the "Smart Refueling" scenario on the interface to start one-click execution. The timer of each functional control starts timing and is initialized. During the timing process, each control runs according to the preset adjustment speed until the conditional logic judgment is established. At this time, when the car's fuel level is less than 20%, a warning is triggered; when the speed drops to 0km / h, the gear is switched to P gear and the handbrake is set to ON; then the longitude and latitude information is changed, and the longitude and latitude are set to be ≤50 meters away from the nearest gas station. During the process, the signals of each control are triggered in sequence according to the predetermined timing, and the signals are sent to the "Smart Refueling" APP end through the QEMU communication channel corresponding to the smart refueling scenario, triggering the APP pop-up window to realize the scenario simulation.

[0061] Therefore, APP developers can carry out development and debugging on the vehicle signal simulator in advance in the early stage of development, including obtaining the vehicle's fuel level, gear position, seat status, vehicle computer background, version status, etc., and then further test the APP's response logic to find problems in advance. In the actual vehicle stage, APP developers and car company testers only need to do secondary verification on the vehicle computer hardware and trial vehicles, which effectively shortens the APP development time and improves development efficiency.

[0062] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method described in any of the above embodiments is implemented.

[0063] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-monitorable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0064] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A vehicle-mounted signal simulator, characterized in that: It includes an identification unit, an execution unit and a transmission unit; The identification unit is used to identify a target scene corresponding to the target operation when the user performs the target operation, wherein the target scene corresponds to a plurality of function instructions and the execution order corresponding to the plurality of function instructions respectively; The execution unit is used to execute the multiple functional instructions according to the execution order and generate multiple simulation status signals accordingly; The transmission unit is used to send the multiple simulation status signals to the APP end; The transmission unit is also used to establish a QEMU communication channel corresponding to each scenario by expanding the communication interface of the native simulator; The APP end runs on the vehicle signal simulator, and the APP end communicates with the vehicle signal simulator through the QEMU communication channel; The execution order includes serial and / or parallel association of multiple functions in the scenario; The functional instructions include timer instructions and operation instructions, the timer instructions are used to sequentially set the functional status according to the preset time, and the operation instructions are used to judge the set conditional logic and sequentially generate signals according to the logic; The scenarios include vehicle status simulation, vehicle computer status simulation and voice control command simulation; The vehicle status simulation includes the simulation of wheels, instruments, air conditioning, doors, windows, seat belts, engines, gears, seats and common vehicle status of APP. Common vehicle status of APP includes fuel level, P gear and vehicle speed. The vehicle computer status simulation includes the simulation of vehicle computer version number, buttons and instrument background settings. The voice control command simulation includes the simulation of voice string commands. When smart refueling is set as the target scenario in the vehicle signal simulator, the simulation requirement of the smart refueling scenario is: when the fuel level of the car is set to be lower than 20%, a warning is triggered, and the car speed gradually decreases to 0km / h, and when the current distance to the gas station is less than 50 meters, the P gear is engaged and the handbrake is pulled, and the smart refueling APP pop-up window is triggered; and in the vehicle signal simulator, according to the simulation requirements of the smart refueling scenario, the scene function UI controls are added accordingly, and the specific controls include vehicle speed, fuel level, latitude and longitude, gear position and handbrake; and the timers and conditional logic instructions corresponding to each control are set; among which, for the fuel level control, the simulated fuel level initial value is set to x1 L, the descent speed is x2 L / 200ms, and the conditional logic is to judge whether the current fuel level is ≤20%; for the vehicle speed control, the simulated vehicle speed initial value is set to y1 km / h, the descent speed is (y2 km / h) / 200ms, and the conditional logic is to judge whether the current vehicle speed is equal to 0km / h; x1, x2, y1, y2 are parameters; When the smart refueling scenario is executed, the timer of each functional control starts timing and is initialized. During the timing process, each control runs according to the preset adjustment speed until the conditional logic judgment is established. At this time, when the car's fuel level is less than 20%, a warning is triggered; when the vehicle speed drops to 0km / h, the gear is switched to P gear and the handbrake is set to ON; then the longitude and latitude information is changed, and the longitude and latitude are set to a distance of ≤50 meters from the nearest gas station. The signals of each control are triggered in sequence according to the predetermined timing, and the signals are sent to the APP end through the QEMU communication channel corresponding to the smart refueling scenario, triggering the APP pop-up window to realize the scenario simulation.

2. The vehicle-mounted signal simulator according to claim 1, characterized in that: The vehicle signal simulator is extended based on the framework of the native simulator, and the native simulator includes an Android simulator.

3. A vehicle-mounted signal simulator according to claim 1, characterized in that: The scenarios are expanded based on user simulation requirements.

4. A vehicle-mounted signal simulator simulation method, characterized in that: include: When the user performs a target operation, a target scene corresponding to the target operation is identified, wherein the target scene corresponds to a plurality of function instructions and execution orders corresponding to the plurality of function instructions; Executing the plurality of functional instructions according to the execution order, and generating a plurality of simulation status signals accordingly; The multiple simulation status signals are sent to the APP end, and the QEMU communication channel corresponding to each scene is established by expanding the communication interface of the native simulator; The APP end runs on the vehicle signal simulator, and the APP end communicates with the vehicle signal simulator through the QEMU communication channel; The execution order includes serial and / or parallel association of multiple functions in the scenario; The functional instructions include timer instructions and operation instructions, the timer instructions are used to sequentially set the functional status according to the preset time, and the operation instructions are used to judge the set conditional logic and sequentially generate signals according to the logic; The scenarios include vehicle status simulation, vehicle computer status simulation and voice control command simulation; The vehicle status simulation includes the simulation of wheels, instruments, air conditioning, doors, windows, seat belts, engines, gears, seats and common vehicle status of APP. Common vehicle status of APP includes fuel level, P gear and vehicle speed. The vehicle computer status simulation includes the simulation of vehicle computer version number, buttons and instrument background settings. The voice control command simulation includes the simulation of voice string commands. When smart refueling is set as the target scenario in the vehicle signal simulator, the simulation requirement of the smart refueling scenario is: when the fuel level of the car is set to be lower than 20%, a warning is triggered, and the car speed gradually decreases to 0km / h, and when the current distance to the gas station is less than 50 meters, the P gear is engaged and the handbrake is pulled, and the smart refueling APP pop-up window is triggered; and in the vehicle signal simulator, according to the simulation requirements of the smart refueling scenario, the scene function UI controls are added accordingly, and the specific controls include vehicle speed, fuel level, latitude and longitude, gear position and handbrake; and the timers and conditional logic instructions corresponding to each control are set; among which, for the fuel level control, the simulated fuel level initial value is set to x1 L, the descent speed is x2 L / 200ms, and the conditional logic is to judge whether the current fuel level is ≤20%; for the vehicle speed control, the simulated vehicle speed initial value is set to y1 km / h, the descent speed is (y2 km / h) / 200ms, and the conditional logic is to judge whether the current vehicle speed is equal to 0km / h; x1, x2, y1, y2 are parameters; When the smart refueling scenario is executed, the timer of each functional control starts timing and is initialized. During the timing process, each control runs according to the preset adjustment speed until the conditional logic judgment is established. At this time, when the car's fuel level is less than 20%, a warning is triggered; when the vehicle speed drops to 0km / h, the gear is switched to P gear and the handbrake is set to ON; then the longitude and latitude information is changed, and the longitude and latitude are set to a distance of ≤50 meters from the nearest gas station. The signals of each control are triggered in sequence according to the predetermined timing, and the signals are sent to the APP end through the QEMU communication channel corresponding to the smart refueling scenario, triggering the APP pop-up window to realize the scenario simulation.

5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to claim 4 is implemented.