CN115309466B - Instrument system starting method and device and instrument equipment - Google Patents

Instrument system starting method and device and instrument equipment Download PDF

Info

Publication number
CN115309466B
CN115309466B CN202211243614.3A CN202211243614A CN115309466B CN 115309466 B CN115309466 B CN 115309466B CN 202211243614 A CN202211243614 A CN 202211243614A CN 115309466 B CN115309466 B CN 115309466B
Authority
CN
China
Prior art keywords
program
display
starting
preset
picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211243614.3A
Other languages
Chinese (zh)
Other versions
CN115309466A (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.)
Yikatong Shanghai Technology Co ltd
Yikatong Beijing Technology Co ltd
Ecarx Hubei Tech Co Ltd
Original Assignee
Yikatong Shanghai Technology Co ltd
Yikatong Beijing Technology Co ltd
Ecarx Hubei Tech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yikatong Shanghai Technology Co ltd, Yikatong Beijing Technology Co ltd, Ecarx Hubei Tech Co Ltd filed Critical Yikatong Shanghai Technology Co ltd
Priority to CN202211243614.3A priority Critical patent/CN115309466B/en
Publication of CN115309466A publication Critical patent/CN115309466A/en
Application granted granted Critical
Publication of CN115309466B publication Critical patent/CN115309466B/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/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
    • B60R16/023Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for transmission of signals between vehicle parts or subsystems
    • B60R16/0231Circuits relating to the driving or the functioning of the vehicle
    • 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/451Execution arrangements for user interfaces

Abstract

The application provides a method and a device for starting an instrument system and instrument equipment. The method comprises the following steps: the meter device may start the initialization boot animation program and the display program in parallel. The starting-up animation program can directly read the preset picture under the first preset directory after being started, and call the driving node, and the instrument device can initialize the display program after the display program is started. The meter device may read the markup file under the second preset directory through the display program. When the mark file is not read, the instrument equipment can forcibly set the display attribute of the instrument equipment to be a preset picture read by the startup animation program on the dial plate through the display program. When the mark file is read, the instrument device can obtain a working image rendered by the instrument program through the display program, and the working image is displayed in the dial. The method improves the starting smoothness of the instrument equipment.

Description

Instrument system starting method and device and instrument equipment
Technical Field
The application relates to the field of electronics and electrics, in particular to a method and a device for starting an instrument system and instrument equipment.
Background
When the vehicle is turned on, the vehicle's instrumentation typically needs to be quickly activated and displayed. That is, after the vehicle is started, the meter system of the vehicle needs to be started quickly, and the dial plate in the meter device needs to display a picture quickly.
Currently, instrumentation systems for vehicles typically use linux operating systems. The display frame in the meter system usually adopts an eglfs display frame. In order to make the dial of the instrument device suitable for multi-image or multi-application display, a weston display mode is generally used in the prior art to replace an eglfs display frame.
However, the weston display mode consumes five hundred milliseconds or more and can be turned off, which seriously affects the fluency of the startup display of the meter equipment and has the problem of poor fluency of the startup of the meter equipment.
Disclosure of Invention
The application provides an instrument system starting method and device and instrument equipment, and aims to solve the problem that in the prior art, the instrument equipment is poor in starting fluency.
In a first aspect, the present application provides a method for starting an instrument system, which is applied to an instrument device, where the instrument device includes a dial plate, and the method includes:
parallelly starting a startup animation program and a display program to enable the startup animation program to read a preset picture under a first preset directory after starting and play the preset picture on the dial plate;
after the display program is initialized, reading a mark file which is in a second preset directory and is used for judging whether the preset picture read by the starting animation program is played completely;
when the mark file is not read, forcibly setting the display attribute of the display program as that the preset picture read by the starting animation program is displayed on the dial plate;
and when the marking file is read, acquiring a working picture rendered by the instrument program through the display program, and displaying the working picture on the dial plate.
Optionally, the starting animation program reads a preset picture after being started, and plays the preset picture on the dial plate, and specifically includes:
reading at least one preset picture under a first preset directory through the starting-up animation program;
and sequentially playing the preset pictures under the first preset catalog in the dial plate through the starting animation program.
Optionally, the method further includes:
and when the preset picture under the first preset directory is played, generating a marking file under a second preset directory through the starting animation program.
Optionally, before starting the boot animation program and the display program, the method further includes:
the method comprises the steps of obtaining a meter file, wherein the meter file at least comprises three programs to be started, namely a starting animation program, a display program and a meter program.
Optionally, the method further comprises:
applying for a first memory area on a bottom layer drive of the instrument device through the starting-up animation program, wherein when the preset picture is written into the first memory area, the preset picture is displayed in the dial plate, and the first memory area comprises a first address;
and applying for a second memory area on the bottom driver through the display program, wherein when the working picture is written into the second memory area, the working picture is displayed in a dial plate, and the second memory area comprises a second address.
Optionally, the forcibly setting the display attribute of the display program to be that the preset picture read by the boot animation program is displayed on the dial plate specifically includes:
and forcibly modifying the display attribute of the display program from the second address to the first address so as to enable the dial plate to display the preset picture.
In a second aspect, the present application provides an instrument system starting apparatus, which is applied to an instrument device, wherein the instrument device includes a dial plate, and the apparatus includes:
the starting-up animation module is used for starting a starting-up animation program, reading a preset picture under a first preset directory and playing the preset picture on the dial plate;
the display module is used for starting and initializing a display program and reading a mark file which is used for judging whether the preset picture read by the starting animation program is played completely or not under a preset directory; when the mark file is not read, forcibly setting the display attribute of the display program as that the preset picture read by the starting animation program is displayed on the dial plate; and when the mark file is read, obtaining a working picture rendered by the instrument program through the display program, and displaying the working picture on the dial plate.
Optionally, the boot animation module is specifically configured to:
reading at least one preset picture under a first preset directory through the starting animation program;
and sequentially playing the preset pictures under the first preset catalog in the dial plate through the starting animation program.
Optionally, the boot animation module is further configured to:
and when the preset pictures in the first preset directory are played, generating a mark file in a second preset directory through the boot animation program.
Optionally, the apparatus further comprises:
the acquisition module is used for acquiring instrument files, wherein the instrument files at least comprise three programs to be started, namely a starting animation program, a display program and an instrument program.
Optionally, the boot animation module is further configured to: applying for a first memory area on a bottom layer drive of the instrument device through the starting-up animation program, wherein when the preset picture is written into the first memory area, the preset picture is displayed in the dial plate, and the first memory area comprises a first address;
the display module is further configured to apply for a second memory area in the bottom driver through the display program, and when the working picture is written into the second memory area, the working picture is displayed in a dial, where the second memory area includes a second address.
Optionally, the display module is specifically configured to:
and forcibly modifying the display attribute of the display program from the second address to the first address so as to enable the dial plate to display the preset picture.
In a third aspect, the present application provides a meter device comprising: a memory, a processor, and a dial; the memory is used for storing a computer program; the processor is configured to implement the method for starting the meter system in any one of the possible designs of the first aspect and the first aspect according to the computer program stored in the memory, and the dial is configured to display startup information and operating states of systems connected to the meter device in the vehicle.
In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by at least one processor of a meter device, causes the meter device to perform the meter system startup method of the first aspect and any one of the possible designs of the first aspect.
In a fifth aspect, the present application provides a computer program product comprising a computer program which, when executed by at least one processor of a meter device, causes the meter device to perform the meter system startup method of the first aspect and any one of the possible designs of the first aspect.
According to the method, the device and the instrument system for starting the instrument system, the starting animation program and the display program are initialized through parallel starting; directly reading a preset picture under a first preset directory, calling a driving node, and initializing the display program by the instrument equipment after the display program is started; reading a mark file under a second preset directory through a display program; when the mark file is not read, the display attribute of the mark file is forcibly set to be a preset picture read by the starting animation program on the dial plate through the display program; when the mark file is read, the working image rendered by the instrument program can be obtained through the display program, and the working image is displayed in the dial plate, so that the effects of avoiding the display program from generating a black screen in the initialization process and improving the starting smoothness of the instrument equipment are achieved.
Drawings
In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a startup scenario of a vehicle instrument system according to an embodiment of the present application;
FIG. 2 is a flowchart of a method for starting a meter system according to an embodiment of the present application;
FIG. 3 is a diagram illustrating an example of a method for starting a meter system according to an embodiment of the present disclosure;
FIG. 4 is a schematic view of a meter system start-up provided by an embodiment of the present application;
FIG. 5 is a schematic view of another instrument system start-up provided by an embodiment of the present application;
fig. 6 is a schematic structural diagram of an instrument system starting device according to an embodiment of the present application;
fig. 7 is a schematic hardware structure diagram of a meter device according to an embodiment of the present application.
Detailed Description
To make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the present application will be clearly and completely described below with reference to the drawings in the present application, and it is obvious that the described embodiments are some, but not all embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged where appropriate. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein.
The word "if" as used herein may be interpreted as "at" \8230; "or" when 8230; \8230; "or" in response to a determination ", depending on the context.
Also, as used herein, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context indicates otherwise.
It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, items, species, and/or groups thereof.
The terms "or" and/or "as used herein are to be construed as inclusive or meaning any one or any combination. Thus, "a, B or C" or "a, B and/or C" means "any of the following: a; b; c; a and B; a and C; b and C; A. b and C ". An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.
When the vehicle is turned on, the vehicle's instrumentation typically needs to be quickly activated and displayed. That is, after the vehicle is started, the meter system of the vehicle needs to be started quickly so that the dial in the meter device displays a picture quickly. Currently, instrumentation systems for vehicles typically use linux operating systems. The display frame in the instrument system usually adopts an eglfs display frame. However, the eglfs display framework is not suitable for multi-image or multi-application display. For example, the meter program and hud are simultaneously displayed in the dial of the meter apparatus. Thus, the prior art uses the weston display instead of the eglfs display framework. However, the start-up of the weston display method itself takes more than 500 milliseconds and causes a blank screen, which affects the fluency of the power-on display. Moreover, the weston display mode requires more than 1.5 seconds from the start of the system file to the completion of the weston initialization. When the subsequent instrument program is started, a longer time is needed to output the picture. That is, there will be at least 1.5 seconds or more of the screen without content output. The display mode is not in accordance with the requirement of rapid display of the instrument equipment of the vehicle when the vehicle is started, so that the problems that the use experience of a user is not friendly, the starting smoothness of the instrument equipment is poor and the like are easily caused.
In order to solve the above problems, the present application provides a method for starting an instrument system. The method and the device are improved on the basis of a linux instrument system and a weston display mode, and the quick display of the starting picture of the instrument equipment is realized. After the meter system is started, the meter device starts a lot of services according to the meter file, which is time-consuming. Therefore, the dial of the meter apparatus may take a long time from the start of the meter system to the display of the image. In the application, the instrument device can firstly run a boot animation program when being started. The power-on animation program may call the fb node to brush the graph. The meter device may also start a display program (weston) at the same time as the start-up animation program. what web uses is a Key Management Service backend (KMS) and Digital Rights Management Driver (DRM). During the power-on animation program image-flushing process, weston may force the use of the frame buffer area (framebuffer) applied by the power-on animation program. Therefore, the problem that the dial plate is changed into a black screen midway after the preset picture corresponding to the starting animation program is displayed due to the weston starting, and the content cannot be displayed on the dial plate within 500 milliseconds can be avoided. The meter device may start the meter program immediately after executing the boot animation program and the display program. The instrument program may be a QT program. When the meter program is started, the meter program needs more than 1 second to perform initialization operations such as rendering. And when the instrument program executes the initialization action, the starting animation program continues to play the preset picture. When the initialization of the instrument program is completed, the display program can display the rendered working image in the dial plate. The instrument device can control the starting animation program to finish playing the preset picture when the instrument program finishes rendering.
The technical solution of the present application will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 1 shows a schematic diagram of a startup scenario of a vehicle instrument system according to an embodiment of the present application. As shown in fig. 1, the vehicle includes at least three parts of a meter device, a storage device, and a sensor. The controller of the meter device at least runs three processes of a starting animation program, a display program and a meter program. After the boot animation program starts to run, the boot animation program can read the boot animation from the storage device. The boot animation program may display the boot animation in a dial of the meter device. The starting and initializing time of the display program is far longer than the starting time of the starting animation program. And. The display priority of the display program is higher than that of the boot animation program. That is, when the display program is started, the display program may preferentially call the fb node to perform a brushup operation so that the contents are displayed on the dial. When the boot animation is played and the instrument program is initialized, the display program can acquire the rendered working picture from the instrument program, and the display program can display the working picture in the dial plate of the instrument device. And the display program can also update the working pictures in the dial in real time according to the data information acquired by the instrument program from each sensor.
In the present application, a meter device is used as an execution subject, and a meter system starting method according to the following embodiment is executed. Specifically, the execution subject may be a hardware device of the meter apparatus, or a software application implementing the following embodiments in a meter system of the meter apparatus, or a computer-readable storage medium on which the software application implementing the following embodiments is installed, or code of the software application implementing the following embodiments.
Fig. 2 shows a flowchart of a meter system starting method according to an embodiment of the present application. On the basis of the embodiment shown in fig. 1, as shown in fig. 2, a meter device is taken as an execution main body, and the meter device includes a dial, the method of this embodiment may include the following steps:
s101, parallelly starting a startup animation program and a display program to enable the startup animation program to read the preset pictures under the first preset directory after starting and play the preset pictures on the dial plate.
In this embodiment, the meter device may start the initialization boot animation program and the display program in parallel. When the boot animation program is started, the boot animation program is a lightweight program, so that the boot animation program can directly read the preset picture under the first preset directory, call the driving node and flash the preset image. The use of the boot animation program is not dependent on the execution of the display program. The display program may enter an initialization phase after startup. Therefore, compared with a display program, the starting animation program can more quickly realize the display of the starting animation after being started, and the effect of quickly displaying the picture on the dial plate is realized. When the boot animation program is started, the boot animation program can read the preset pictures in the appointed directory. The boot animation program can acquire the RGB data in the preset pictures. And then, the starting animation program calls a node/dev/fb 0 to realize the writing of BRG data, thereby realizing the display of the starting animation.
In one example, the boot animation procedure may apply for the first memory region at the underlying driver of the meter device after initialization is completed. The first memory area is a frame buffer area (frame buffer) applied by the boot animation program. The application for the first memory region may be completed by the power-on animation procedure call/dev/fb 0 node. The/dev/fb 0 node provides the underlying driver to the application layer for the facility to flash the image. The/dev/fb 0 node can apply for a frame buffer area (framebuffer) in the underlying driver. The frame buffer is a memory area that can be accessed by both the driver and application layers. The framebuffer may include an id. The id is used for uniquely marking the memory address corresponding to the framebuffer. The id corresponding to the first memory area is the first address. When the/dev/fb 0 node fills the RGB data into the memory area of the frame buffer, the preset picture corresponding to the RGB data is displayed on the dial. Therefore, when the boot animation program is started, the meter device can read the preset picture in the specified directory and play the preset picture in the dial.
In one example, the specific process of the meter device for playing the preset picture may include the following steps:
step 1, reading at least one preset picture under a first preset directory by the instrument equipment through a starting animation program. The first default directory may be set in the code of the boot animation program. When the boot animation program is started, the boot animation program can read the preset picture stored in the directory from the first preset directory. At least one preset picture can be stored in the preset directory. When the preset pictures are played circularly according to a certain sequence, the starting animation can be formed. The format of the preset picture may be jpg or png. Or, at least one preset video may be further stored in the first preset directory. When the first preset directory includes a preset video, the boot animation program can read the preset video.
And step 2, sequentially playing the preset pictures under the first preset directory in the dial plate by the instrument equipment through a starting animation program. And the starting animation program determines the playing sequence of the preset pictures according to the picture names of the preset pictures. The boot animation program can play the preset pictures in sequence according to the playing sequence. For example, the picture name may be a number such as 1, 2, 3, etc. The meter device can determine its playing sequence according to the number sequence. In the preset picture playing process, playing rules can be preset in the boot animation program. For example, the playing rule may be to update a preset picture every 5 seconds, and the like.
The playing process of the preset picture may be a cyclic process. Whether the playing of the preset picture is finished or not can be judged in the instrument device according to the number of the played preset pictures. When the preset picture playing is completed, the meter device may perform the next step. Otherwise, the meter device may continue to play the next preset picture. The instrument equipment can realize the judgment of whether the playing is finished or not by setting the number of the preset pictures in the code of the boot animation program. For example, when the preset number of pictures in the code of the boot animation program is set to 30, the meter device may determine that the playing is completed when the number of the played preset pictures reaches 30. Or, the meter device may further determine the number of the preset pictures to be played by judging the number of the preset pictures in the first preset directory. For example, when 30 pictures are included in the first preset directory, the meter device may determine that the playing is completed when the number of the played preset pictures reaches 30. At this time, after the 30 pictures are all played, the preset picture is played. Otherwise, when the meter device only plays 29 pictures, the meter device will continue to play the 30 th picture.
In an example, based on the above example, after the boot animation program completes playing the preset picture, the boot animation program may further perform the following steps, so that a state that the preset picture completes playing is known by the display program. The method comprises the following specific steps:
and 3, when the playing of the preset pictures in the first preset directory is finished, the instrument equipment generates a mark file in a second preset directory through a boot animation program. When the boot animation program completes the generation of the markup file, the boot animation program can execute an exit operation. That is, the process corresponding to the boot animation program is closed. The second pre-set directory may be a system/tmp directory. Alternatively, the second preset directory may be other readable and writable directories of the system. Because the markup file needs to be read by other processes, the markup file needs to be stored in a system directory, so that the markup file is prevented from being deleted after the boot animation program is closed. The markup file may be a general file. Its file name may be boota _ flag. Its content may be empty. The meter device executes corresponding operations mainly by judging whether the markup file exists.
And S102, after the display program is initialized, reading a mark file which is used for judging whether the playing of the preset picture read by the starting animation program is finished or not in the second preset directory.
In this embodiment, the display program (weston) is a windows-like human-computer interaction and window management program, and is used to manage the image display function of the system. Different applications, which want to display images simultaneously, such as hud and instrument programs, require the use of a framework such as weston. In the display of the meter device, the display program generally has the highest priority. That is, when the display program starts to operate, the meter displays the contents of the display designated by the display program. After the display program is initiated, the meter device may initiate the display program. The initialization phase of the display program may perform operations including applying for a frame buffer (framebuffer), etc.
In one example, the display program may apply for the second memory area in the underlying driver of the meter device after the initialization is completed. The second memory area is a frame buffer area (frame buffer) of the display program. The framebuffer may include an id. The id is used for uniquely marking the memory address corresponding to the framebuffer. The id corresponding to the second memory area is the second address. When the working picture is written into the second memory area, the working picture is displayed in the dial plate.
When the display program is started and initialized, the display program executes image display operation. In an image display operation, the display program calls an attribute setting function. The function name of the attribute setting function may be drm _ output _ application _ state _ atomic (). The attribute setting function is a function for setting the attribute of the output information in the process of displaying the image by the display program. In the function execution process, some attribute settings are changed and some logics are added, so that the function of judging whether the startup animation playing is finished by the display program is realized. The added logic may include reading a markup file in a second predetermined directory. The display program can judge whether the startup animation program finishes playing according to the reading result.
In one example, when the display program does not read the markup file, the display program may periodically read the markup file from the second predetermined directory. The final purpose of the display program is to display the rendered working picture in the dial plate after the boot animation playing is finished. Before the markup file is not read, it indicates that the preset picture of the boot animation program has not been played. At this time, the display program needs to keep playing the boot animation until the boot animation is played completely. The meter device may determine that the boot animation is played completely after the display program reads the markup file. At this time, the display program may stop the periodic read operation.
And S103, when the mark file is not read, forcibly setting the display attribute of the display program as a preset picture read by the boot animation program on the dial plate.
In this embodiment, when the display program does not read the markup file, it indicates that the boot animation is being played. And, the time when the display program reads the markup file is usually before the display program completes initialization. If the display program is left to display images in the dial using default display parameters before the display program completes initialization, a long black screen condition of the dial may result. The playing completion time of the preset picture set by the boot animation program is usually after the display program and the meter program are initialized. Therefore, in order to ensure the boot effect, when the display program does not read the markup file, the meter device may forcibly set its display attribute WDRM _ plan _ FB _ ID to the preset picture read by the boot animation program in the dial by the display program.
In one example, the display program may implement an effect of causing the dial to display the preset picture by forcibly modifying a parameter value of the display attribute of the display program from the second address to the first address. And the second address is a default parameter value of the display attribute when the display program finishes initialization. When the parameter value of the display attribute is modified to the first address, the display program may read the RGB data that the fb node of the boot animation program writes to the frame buffer corresponding to the first address, and display the preset picture corresponding to the RGB data in the dial. The first address corresponding to the boot animation program can be obtained through the logic function drm _ head _ read _ current _ setup of the display program.
After the modification is completed, the display image of the display program is forcibly set as a preset picture which is flashed into the frame buffer by the boot animation program. The setting can ensure the integrity of the boot animation played by the boot animation program. Meanwhile, the setting can also avoid the problem of displaying a black screen in the initialization stage of the display program.
And S104, when the marked file is read, acquiring a working picture rendered by the instrument program through the display program, and displaying the working picture on the dial plate.
In this embodiment, when the markup file is read, it indicates that the preset picture read by the boot animation program has been played. In order to ensure the effect of the boot animation, the time required for completing the playing of the preset picture is usually greater than or equal to the starting and initialization time of the display program and the meter program. Thus, when the display program acquires the markup file, the meter program will typically have completed the initialization and rendering of the work picture. The display program can acquire the working image rendered by the instrument program and display the working image in the dial. Currently, the display program starts in about 500 milliseconds.
When the display program is initialized, the display attribute WDRM _ plan _ FB _ ID in the display program is a default value. The default value may be a work picture rendered by the meter program displayed in the dial. That is, the default value of the display attribute is the second address. If the parameter value for the display attribute has been set to the first address upon completion of initialization, the display program may modify the parameter value back to a default value. At this time, the display program may flash, by the fb node, the RGB data corresponding to the working picture into the frame buffer corresponding to the second address, thereby displaying the working picture in the dial. Thereafter, the display program may start receiving the image of the client side for display. The image of the client side comprises a rendered working image of the meter program, and the working image is updated in real time after the meter program acquires the data of each sensor.
According to the starting method of the instrument system, the instrument equipment can start the boot animation program and the display program in parallel. The boot animation program can directly read the preset picture under the first preset directory after being started, and the preset picture is displayed in the dial plate. The meter device may initialize the display program after the display program is started. The meter device may read the markup file under the second preset directory through the display program. When the markup file is not read, the instrument device can forcibly set the display attribute of the instrument device to be a preset picture read by the startup animation program on the dial plate through the display program. When the mark file is read, the instrument device can obtain a working image rendered by the instrument program through the display program, and the working image is displayed in the dial plate. In the application, the starting animation playing program is added, so that the instrument equipment can avoid the condition that the display program makes the dial plate black in the initialization process, and the starting smoothness of the instrument equipment is improved.
On the basis of the above-described embodiment, the meter device needs to acquire a meter file before executing step S101. The meter file may include a plurality of programs to be started that need to be started when the meter device is started. For example, at least one of the programs to be started may include a boot animation program (bootanimation), a display program (weston), and an instrument program. The meter equipment can parallelly start the programs to be started in the meter files according to the meter files. Or, the meter device may sequentially start each program to be started according to the meter file. The meter file may include the starting sequence of each program to be started. The starting of a program to be started can be regarded as that a process corresponding to the program to be started is started. After the processes are started, the meter device can execute the processes of the programs to be started in parallel, so that the initialization and/or the running of the programs to be started are realized. In the application, among three programs to be started, namely the startup animation program, the display program and the instrument program, the startup animation program, the display program and the instrument program are started without a sequential dependency relationship.
On the basis of the above embodiment, in one implementation manner, the above steps may be as shown in fig. 3. The instrumentation system in the instrumentation device is started. The instrumentation system may be a Linux system. When the meter system is started, a boot loader (bootloader) in the meter device is started. Thereafter, the kernel of the meter device is started. Thereafter, the meter device loads the root file system (Rootfs). The root file system may include a meter file. The meter device can synchronously start a starting animation program (promotion) and a display program (weston) according to the meter file. After the boot animation program is run, the fb node may be called to flash the image data in the frame buffer area (frame buffer) of the bottom layer application. The instrument device can also judge whether the preset picture is completely written through the boot animation program. If the flash is finished, the boot animation program exits and writes the mark file into a second preset directory. The second predetermined directory may be a/tmp path. After the display program is started, the property setting function Drm _ output _ application _ state _ atom () may be executed. The attribute setting function can read and write the mark file in the second preset directory and judge whether the starting animation program is executed or not according to whether the mark file is read or not. When the boot animation program is not completely executed, the display program may force the parameter of the display attribute WDRM _ PLANE _ FS _ ID to be modified to the address (ID) corresponding to the frame buffer of the boot animation program. When the execution of the boot animation program is completed, the display program may use a frame buffer area (frame buffer) applied by the display program for picture flash. At this time, it is explained that both the display program and the meter program have completed initialization. The working image of the meter program will be displayed in the dial by the display program.
On the basis of the above embodiment, fig. 4 shows a system startup flow before the method is not used, and fig. 5 shows a system startup flow after the method is used. Fig. 4 and 5 are schematic diagrams illustrating the starting of each program to be started in the meter file during the starting process of the meter system automatically generated by using the system-analysis. The generation instruction of the starting schematic diagram can be as follows: system-analyzed plot > plot. As shown in fig. 4 and 5, the top of the picture includes a time scale for activation. The starting point of the leftmost side is 0.0s, and the starting point is the time when the power-on of the device starts. Thereafter, each vertical grid represents 1 second. As can be seen from fig. 4 and 5, the specific start time of each program to be started of the meter system of the meter apparatus. Wherein the slashed region represents the time that the service is active. For example, initialization is in progress. The dotted area represents the time when the service is operating normally. In fig. 4 and 5, the first running program is the kernel of the instrumentation system. The kernel starts to enter an initialization state from the power-on of the meter device and completes the initialization after 13 seconds. When the kernel boot is complete, the operating system (system) of the instrumentation device starts to boot. The operating system starts to boot, i.e. on behalf of the meter file (rootfs). Therefore, the programs started under the operating system are all programs to be started in the meter file. These programs to be started are the various services in the meter device. In the present application, the programs to be started, which mainly need to be concerned, may include a web @ root. Wherein, the service represents a display program, the service represents an instrument program, and the service represents a boot animation program. In fig. 4, a plurality of other programs to be started may be included between the operating system and the display program, between the display program and the meter program, and after the meter program. In fig. 5, a plurality of other programs to be started may be included between the operating system and the boot animation program, between the boot animation program and the display program, between the display program and the meter program, and after the meter program.
FIG. 4 shows a meter system start-up flow before the method described above is used. Therefore, in the starting process, only two programs to be started, namely, the program to be started, and the cluster program, need to be concerned. And the display program can display the working image only after the initialization of the meter program is completed. As is evident from fig. 4, the intervals from kernel initiation to cluster service initiation are approximately 15, approximately 15 seconds. And from system boot to cluster service boot, roughly 1 grid or more, about 1 second or more. Furthermore, fig. 4 can only reflect the starting time of each program to be started of the meter device. The time for this to be done is not shown in fig. 4. During actual use, the time from starting to completing initialization of the meter program is more than 1 second. That is, it takes about 3 seconds to display the working image on the dial from the system file start-up.
FIG. 5 is a meter system startup flow after using the above method. Therefore, in the starting process, the programs to be started which mainly need attention may include three programs to be started, namely, web @ root. As shown in FIG. 5, the interval from the start of the meter file to the start of the boot animation program is within 1, which is about 300 milliseconds. The boot animation procedure takes approximately tens of milliseconds from startup to display of the boot animation in the dial. Therefore, the method only needs more than 400 milliseconds to display the image on the dial. Moreover, the method and the device have the advantages that the starting-up animation is added, and smooth connection from the starting-up animation display to the working picture display is solved. Because the display program will clear the screen display and blank the screen for a period of time during the start of the display program. If the display program is not processed, sudden screen blacking occurs after the dial plate displays a part of boot animation until the starting of the instrument program is finished, and the dial plate displays a working image. Obviously, such a display is very unsmooth. The display parameters in the display program are modified, so that the display program can be displayed in cooperation with the boot animation program, and the problems are solved. In addition, in the present application, the boot animation program and the meter program are started in parallel. This parallel start may save more time than a serial start. This parallel execution case can be shown in fig. 5, where the meter program is running and the boot animation program is playing. After the execution of the boot animation program is completed, the instrumentation program has completed initialization. Therefore, after the boot animation program is executed, the display program can directly display the working picture of the instrument program.
It can be known through the comparison above, this application makes the instrument system from starting to showing that image only needs 400 more milliseconds, very big improvement the start-up show speed, satisfied the demand of quick start. Moreover, the seamless connection between the starting-up animation and the working picture of the instrument program is realized, the waste of the starting-up display time is further avoided, and the starting-up display flow is improved.
Fig. 6 shows a schematic structural diagram of a meter system starting apparatus according to an embodiment of the present application, and as shown in fig. 6, a meter system starting apparatus 10 according to this embodiment is used for implementing an operation corresponding to a meter device in any one of the method embodiments described above, where the meter device includes a dial, and the meter system starting apparatus 10 according to this embodiment includes:
and the boot animation module 11 is configured to start a boot animation program, read a preset picture in the first preset directory, and play the preset picture on the dial.
And the display module 12 is configured to start and initialize the display program, and read a markup file in the preset directory for determining whether playing of the preset picture read by the boot animation program is completed. And when the mark file is not read, forcibly setting the display attribute of the display program to be a preset picture read by the startup animation program on the dial plate. When the mark file is read, the working picture rendered by the instrument program is obtained through the display program, and the working picture is displayed on the dial plate.
In one example, the boot animation module 11 is specifically configured to:
and reading at least one preset picture under the first preset directory through a boot animation program.
And sequentially playing the preset pictures under the first preset catalog in the dial plate through the starting-up animation program.
In one example, the boot animation module 11 is further configured to:
and when the playing of the preset pictures in the first preset directory is finished, generating a mark file in a second preset directory through a starting animation program.
In one example, an apparatus further comprises:
the acquisition module 13 is configured to acquire a meter file, where the meter file includes at least three programs to be started, namely a boot animation program, a display program, and a meter program.
In one example, the boot animation module 11 is further configured to: and applying for a first memory area by a boot animation program in a bottom layer drive of the instrument device, and displaying the preset picture in the dial plate when the preset picture is written into the first memory area, wherein the first memory area comprises a first address.
The display module 12 is further configured to apply for a second memory area in the bottom driver through a display program, and when the working picture is written into the second memory area, the working picture is displayed in the dial, where the second memory area includes a second address.
In one example, the display module 12 is specifically configured to:
and forcibly modifying the display attribute of the display program from the second address to the first address so as to enable the dial plate to display the preset picture.
The instrument system starting device 10 provided in the embodiment of the present application may implement the foregoing method embodiment, and for details of implementation principles and technical effects, reference may be made to the foregoing method embodiment, which is not described herein again.
Fig. 7 shows a hardware structure diagram of a meter device provided in an embodiment of the present application. As shown in fig. 7, the meter device 20 is configured to implement the operation corresponding to the meter device in any of the above method embodiments, and the meter device 20 of this embodiment may include: memory 21, processor 22, communication interface 24 and dial 25.
A memory 21 for storing a computer program. The Memory 21 may include a Random Access Memory (RAM), a Non-Volatile Memory (NVM), at least one disk Memory, a usb disk, a removable hard disk, a read-only Memory, a magnetic disk or an optical disk.
A processor 22 for executing the computer program stored in the memory to implement the meter system startup method in the above embodiments. Reference may be made in particular to the description relating to the method embodiments described above. The Processor 22 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of hardware and software modules.
Alternatively, the memory 21 may be separate or integrated with the processor 22.
When the memory 21 is a device separate from the processor 22, the meter device 20 may also include a bus 23. The bus 23 is used to connect the memory 21 and the processor 22. The bus 23 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The communication interface 24 is used to interface with sensors in the vehicle. The sensors may upload information to the processor 22 of the meter device 10 via the communication interface 24. The processor 22 may add this information to the working picture by the meter program.
The dial 25 corresponds to a display of the meter apparatus 10. The dial 25 is used to display boot animation during the boot process of the meter device 10 and to display a working picture rendered by the meter program after the meter device 10 is booted.
The meter device provided in this embodiment may be used to execute the above-mentioned meter system starting method, and its implementation manner and technical effect are similar, which are not described herein again.
The present application also provides a computer-readable storage medium, in which a computer program is stored, and the computer program is used for implementing the methods provided by the above-mentioned various embodiments when being executed by a processor.
The computer-readable storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media may be any available media that can be accessed by a general purpose or special purpose computer. For example, a computer readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the computer readable storage medium. Of course, the computer readable storage medium may also be integral to the processor. The processor and the computer-readable storage medium may reside in an Application Specific Integrated Circuit (ASIC). Additionally, the ASIC may reside in user equipment. Of course, the processor and the computer-readable storage medium may also reside as discrete components in a communication device.
In particular, the computer-readable storage medium may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random-Access Memory (SRAM), electrically-Erasable Programmable Read-Only Memory (EEPROM), erasable Programmable Read-Only Memory (EPROM), programmable Read-Only Memory (PROM), read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic or optical disk. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The present application also provides a computer program product comprising a computer program stored in a computer readable storage medium. The computer program can be read by at least one processor of the device from a computer-readable storage medium, and execution of the computer program by the at least one processor causes the device to implement the methods provided by the various embodiments described above.
Embodiments of the present application further provide a chip, where the chip includes a memory and a processor, where the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device in which the chip is installed executes the method in the above various possible embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of modules is merely a division of logical functions, and an actual implementation may have another division, for example, a plurality of modules may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
Wherein the modules may be physically separated, e.g. mounted at different locations of one device, or mounted on different devices, or distributed over multiple network elements, or distributed over multiple processors. The modules may also be integrated, for example, in the same device, or in a set of codes. The respective modules may exist in the form of hardware, or may also exist in the form of software, or may also be implemented in the form of software plus hardware. The method and the device can select part or all of the modules according to actual needs to achieve the purpose of the scheme of the embodiment.
When the respective modules are implemented as integrated modules in the form of software functional modules, they may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor to execute some steps of the methods according to the embodiments of the present application.
It should be understood that, although the steps in the flowcharts in the above embodiments are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, in different orders, and may be performed alternately or at least partially with respect to other steps or sub-steps of other steps.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same. Although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: it is also possible to modify the solutions described in the previous embodiments or to substitute some or all of them with equivalents. And the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (8)

1. A meter system starting method is applied to meter equipment, the meter equipment comprises a dial plate, and the method comprises the following steps:
starting a starting-up animation program and a display program in parallel, so that the starting-up animation program reads a preset picture under a first preset directory after being started, and plays the preset picture on the dial plate;
after the display program is initialized, reading a mark file which is in a second preset directory and is used for judging whether the preset picture read by the starting animation program is played completely;
when the mark file is not read, forcibly modifying the parameter value of the display attribute of the display program from a second address to a first address so as to enable the dial plate to display the preset picture, wherein the second address is the default parameter value of the display attribute when the display program completes initialization, and the first address is the address of a frame buffer area of the boot animation program;
and when the marking file is read, acquiring a working picture rendered by the instrument program through the display program, and displaying the working picture on the dial plate.
2. The method according to claim 1, wherein the boot animation procedure reads the preset picture in the first preset directory after starting, and plays the preset picture on the dial, and specifically includes:
reading at least one preset picture under the first preset directory through the starting animation program;
and sequentially playing the preset pictures under the first preset catalog in the dial plate through the starting animation program.
3. The method of claim 2, further comprising:
and when the preset picture under the first preset directory is played, generating a marking file under the second preset directory through the starting animation program.
4. The method according to any one of claims 1-3, wherein before starting the boot animation procedure and the display procedure, the method further comprises:
and acquiring a meter file, wherein the meter file at least comprises the boot animation program, the display program and the meter program to be started.
5. The method according to any one of claims 1-3, further comprising:
applying for a first memory area on a bottom driver of the instrument device through the boot animation program, and displaying the preset picture in the dial plate when the preset picture is written into the first memory area, wherein the first memory area comprises a first address;
and applying for a second memory area on the bottom driver through the display program, wherein when the working picture is written into the second memory area, the working picture is displayed in a dial plate, and the second memory area comprises a second address.
6. An instrument system starting device is applied to instrument equipment, the instrument equipment comprises a dial plate, and the instrument system starting device comprises:
the starting-up animation module is used for starting a starting-up animation program, reading a preset picture under a first preset directory and playing the preset picture on the dial plate;
the display module is used for starting and initializing a display program and reading a mark file which is in a second preset directory and is used for judging whether the preset picture read by the starting animation program is played completely; when the mark file is read, obtaining a working picture rendered by an instrument program through the display program, and displaying the working picture on the dial plate; and when the mark file is not read, forcibly changing the parameter value of the display attribute of the display program from a second address to a first address so as to enable the dial plate to display the preset picture, wherein the second address is the default parameter value of the display attribute when the display program completes initialization, and the first address is the address of a frame buffer area of the boot animation program.
7. A meter apparatus, characterized in that the apparatus comprises: a memory, a processor, and a dial; the memory is used for storing a computer program; the processor is used for realizing the meter system starting method according to any one of claims 1 to 5 according to the computer program stored in the memory, and the dial is used for displaying starting information and the working state of each system connected with the meter device in the vehicle.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, is adapted to carry out the instrumentation system startup method according to any one of the claims 1 to 5.
CN202211243614.3A 2022-10-12 2022-10-12 Instrument system starting method and device and instrument equipment Active CN115309466B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211243614.3A CN115309466B (en) 2022-10-12 2022-10-12 Instrument system starting method and device and instrument equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211243614.3A CN115309466B (en) 2022-10-12 2022-10-12 Instrument system starting method and device and instrument equipment

Publications (2)

Publication Number Publication Date
CN115309466A CN115309466A (en) 2022-11-08
CN115309466B true CN115309466B (en) 2023-01-24

Family

ID=83868194

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211243614.3A Active CN115309466B (en) 2022-10-12 2022-10-12 Instrument system starting method and device and instrument equipment

Country Status (1)

Country Link
CN (1) CN115309466B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1967697A (en) * 2005-11-14 2007-05-23 联发科技股份有限公司 Device for displaying boot animation of optical disc player and method thereof
CN107295388A (en) * 2017-06-21 2017-10-24 微鲸科技有限公司 Boot animation starts method, device and readable storage medium storing program for executing
CN107463500A (en) * 2017-08-09 2017-12-12 网易(杭州)网络有限公司 Adjustment method, medium, system and the computing device of test script
CN113886342A (en) * 2021-10-19 2022-01-04 北京数码大方科技股份有限公司 File format conversion method and device, storage medium and processor

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170169599A1 (en) * 2015-12-15 2017-06-15 Le Holdings (Beijing) Co., Ltd. Methods and electronic devices for displaying picture

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1967697A (en) * 2005-11-14 2007-05-23 联发科技股份有限公司 Device for displaying boot animation of optical disc player and method thereof
CN107295388A (en) * 2017-06-21 2017-10-24 微鲸科技有限公司 Boot animation starts method, device and readable storage medium storing program for executing
CN107463500A (en) * 2017-08-09 2017-12-12 网易(杭州)网络有限公司 Adjustment method, medium, system and the computing device of test script
CN113886342A (en) * 2021-10-19 2022-01-04 北京数码大方科技股份有限公司 File format conversion method and device, storage medium and processor

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
https://www.toradex.com/zh-cn/blog/linux-kai-ji-dong-hua;胡珊逢,FAE,韬睿(上海);《Linux 开机动画》;20210621;第1-5页 *

Also Published As

Publication number Publication date
CN115309466A (en) 2022-11-08

Similar Documents

Publication Publication Date Title
CN109697060B (en) Video special effect system, generation method, device, equipment and storage medium thereof
US6842856B2 (en) System and method for dynamic management of a startup sequence
US20100293330A1 (en) Displaying transition images during a slide transition
US8305386B2 (en) BIOS graphical engine providing uniform look and feel
US6907597B1 (en) Method and apparatus for constructing an executable program in memory
WO2018120992A1 (en) Window rendering method and terminal
CN112783761A (en) Method, device and system for testing cold start duration of application program
US20110208955A1 (en) Machine-readable storage media for display of a basic input/output system (bios) productivity display
CN111338722A (en) Live broadcast room template loading method and device, electronic equipment and readable storage medium
CN110781067A (en) Method, device, equipment and storage medium for calculating starting time consumption
CN115357310A (en) System starting method and device, electronic equipment and storage medium
CN115309466B (en) Instrument system starting method and device and instrument equipment
US20240078072A1 (en) Method and apparatus for displaying message box, terminal device and non-transitory computer-readable storage medium
US20210004239A1 (en) Electronic apparatus and control method thereof
CN116737472B (en) Method and device for testing memory time sequence training process
CN114721735B (en) Program dynamic loading method and device and electronic equipment
CN107924317A (en) Application executing device and application executing method
CN114327733A (en) Dynamic updating method, device, equipment and medium for starting interactive interface
JP7053979B2 (en) Information processing equipment, information processing methods, and programs
CN114924712A (en) AUI modularization realization method and system based on domain controller platform
CN115617444A (en) System starting method, device, equipment and storage medium fusing multi-desktop architecture
CN113794846A (en) Video cloud clipping method and device and cloud clipping server
CN115904295B (en) Multi-screen display control method, device, medium, system, chip and panel
CN116225561A (en) Interface display method and device, terminal equipment and storage medium
CN117290046A (en) Wallpaper rendering method, electronic device and storage medium

Legal Events

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