Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for quickly starting an all-liquid-crystal instrument, so as to solve the problem that the important content of the existing all-liquid-crystal instrument is not displayed in time.
In a first aspect of the embodiments of the present invention, a method for quickly starting an all-liquid-crystal instrument is provided, including:
electrifying a boot program of the starting instrument, booting the starting coprocessor in the boot program, and initializing peripheral resources through the coprocessor;
starting a coprocessor application program to take over IO equipment of the processor, and establishing connection between the processor and the vehicle-mounted ECU;
acquiring a vehicle-mounted ECU signal through IO equipment, judging whether emergency content needs to be displayed according to an ECU signal value, and drawing the emergency content through a coprocessor if the emergency content needs to be displayed;
and booting and starting a Linux kernel through a bootstrap program, starting a Linux application program after initializing Linux equipment resources, and starting a 3D drawing engine to draw pre-display content.
In a second aspect of the embodiments of the present invention, there is provided a quick start device for an all-liquid-crystal instrument, including:
the coprocessor is used for initializing peripheral resources, starting a coprocessor application program to take over IO equipment of the processor, establishing connection between the processor and the vehicle-mounted ECU, acquiring a vehicle-mounted ECU signal through the IO equipment, judging whether emergency content needs to be displayed according to an ECU signal value, and drawing the emergency content through the coprocessor if the emergency content needs to be displayed;
the main processor is used for starting an instrument bootstrap program, booting and starting the coprocessor in the bootstrap program, booting and starting a Linux kernel through the bootstrap program, starting a Linux application program after initializing Linux equipment resources, and starting a 3D drawing engine to draw pre-display contents;
and the IO device is used for receiving the external ECU signal and outputting the pre-display content to the liquid crystal screen.
In a third aspect of the embodiments of the present invention, there is provided an electronic device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, where the processor executes the computer program to implement the steps of the method according to the first aspect of the embodiments of the present invention.
In a fourth aspect of the embodiments of the present invention, a computer-readable storage medium is provided, which stores a computer program, which when executed by a processor implements the steps of the method provided by the first aspect of the embodiments of the present invention.
In the embodiment of the invention, the main core processor and the auxiliary core processor are adopted to respectively process the 2D display content and the 3D display content, the coprocessor carries out emergency content display processing before the Linux system is completely started, and the emergency prompt information is displayed in a 2D form, so that the display and starting speed of the liquid crystal instrument is accelerated, the important content can be timely displayed, and the use experience of a user is improved.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. 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 invention.
It should be understood that the terms "comprises" and "comprising," when used in this specification or claims and in the accompanying drawings, are intended to cover a non-exclusive inclusion, such that a process, method or system, or apparatus that comprises a list of steps or elements is not limited to the listed steps or elements. In addition, "first" and "second" are used to distinguish different objects, and are not used to describe a specific order.
Referring to fig. 1, a flow chart of a method for quickly starting an all-liquid-crystal instrument according to an embodiment of the present invention includes:
s101, electrifying to start an instrument bootstrap program, booting to start a coprocessor in the bootstrap program, and initializing peripheral resources through the coprocessor;
the boot program, i.e. the boot loader, is used to boot the computer to load a specific application program, and in this embodiment, the boot program may be a Uboot program. And booting the coprocessor in the boot program, and initializing peripheral resources through the coprocessor, such as initializing IO (input/output) equipment, storage equipment, resource files, display drivers and the like.
S102, starting a coprocessor application program to take over IO equipment of the processor, and establishing connection between the processor and a vehicle-mounted ECU;
the coprocessor application is used for realizing specific software functions such as drawing 2D display content, establishing connection of a vehicle-mounted ECU (electronic control unit) and the like based on data processing of the coprocessor.
The processor is the processor of the liquid crystal instrument and also starts the central processor of the vehicle. In this embodiment, the processor includes a main processor and a coprocessor, and the processor may be connected to an external ECU (Electronic Control Unit), receive signals transmitted from the external ECU, and Control display output on the liquid crystal screen.
Specifically, the processor comprises a main processor and a coprocessor, wherein a bootstrap program, a Linux kernel and a Linux application program are operated on the main processor, and the coprocessor application program is operated on the coprocessor.
The processor is an R-CAR E3 processor, the main processor is a core-A53 core, the coprocessor is a core-R7 core, the coprocessor is used for processing 2D display contents, and the main processor is used for processing 3D display contents.
In one embodiment, as shown in FIG. 2, where R-CAR E3 is a processor, cotex-A53 is a host processor, and cotex-R7 is a coprocessor, the boot program uBoot and Linux systems, including Linux kernel and applications, are run on the host processor cotex-A53. Coprocessor cotex-R7 also runs applications. The main processor and the coprocessor are directly connected with IO equipment and are respectively connected with an external signal and a liquid crystal screen through the IO equipment.
The IO device is a device for managing and controlling input and output of the computer, and the IO device can be connected with an external ECU (electronic control unit) to receive external ECU signals and can also be connected with a liquid crystal screen to output display contents.
S103, acquiring a vehicle-mounted ECU signal through IO equipment, judging whether emergency content needs to be displayed according to an ECU signal value, and drawing the emergency content through a coprocessor if the emergency content needs to be displayed;
the coprocessor reads the received external ECU signals in real time, and when the content needing emergency prompt is searched, if the vehicle fails, the coprocessor draws corresponding prompt information according to the failure content.
The emergency content can be set according to the failure level or the importance degree of the detected information, namely whether emergency prompt is performed or not is set when certain information of the vehicle is detected or certain failure occurs. The emergency prompt content may be pre-drawn and stored in the memory, and the coprocessor directly loads and draws the emergency prompt content, or the coprocessor draws the emergency prompt content by a predetermined drawing method, which is not limited herein.
And S104, booting and starting the Linux kernel through a bootstrap program, starting a Linux application program after initializing the Linux equipment resources, and starting a 3D drawing engine to draw the pre-display content.
After the boot program boots the coprocessor, the boot starts a Linux kernel (Linux kernel), and the Linux kernel initializes the device resources. The initialization of the Linux equipment resources at least comprises initialization of a CPU, storage management, process management, a file system, equipment management, equipment driving, network communication, Linux system and Linux system calling.
The Linux application program is used for realizing specific data processing functions such as liquid crystal instrument display setting, 3D display drawing and the like based on a main processor.
In the embodiment, the main processor and the coprocessor are used for respectively drawing the corresponding display contents, so that the emergency contents can be timely drawn and displayed through the coprocessor, and the display and starting speeds of the liquid crystal instrument are effectively improved.
In an embodiment, as shown in fig. 3, fig. 3 is another schematic flow chart of a method for quickly starting a liquid crystal meter according to an embodiment of the present invention, and the process thereof is as follows:
after the instrument is electrified, the uBoot is started, a coprocessor cotex-R7 is booted and started in the uBoot, and the coprocessor initializes the peripheral resources. And starting a cortex-R7 application program, taking over IO equipment of the R-CAR E3, and establishing connection with the vehicle-mounted ECU. The cotex-R7 acquires an external ECU signal through IO, judges whether emergency content needing to be displayed immediately exists according to the signal value, and if the emergency content exists, the cotex-R7 starts drawing to read drawing resources from the storage device and calculates and processes the 2D content needing to be displayed. The cotex-R7 starts the screen backlight through the display driver, outputs the content to be displayed to the screen, and displays the content to be displayed in advance on the liquid crystal screen.
And the uBoot guides to start the linux kernel, initializes storage management, CPU and process management, a file system, equipment management and drive, network communication, system call and the like. The linux application program is started, the 3D drawing engine is started, the drawing engine calculates and processes the content to be displayed, and the linux outputs the 3D content to be displayed to the screen through the display driver.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Fig. 4 is a schematic structural diagram of a quick start device of an all-liquid-crystal instrument according to an embodiment of the present invention, where the quick start device includes:
the coprocessor 410 is used for initializing peripheral resources, starting a coprocessor application program to take over IO equipment of the processor, establishing connection between the processor and the vehicle-mounted ECU, acquiring a vehicle-mounted ECU signal through the IO equipment, judging whether emergency content needs to be displayed according to an ECU signal value, and drawing the emergency content through the coprocessor if the emergency content needs to be displayed;
the processor comprises a coprocessor 410 and amain processor 420, wherein themain processor 420 runs a bootstrap program, a Linux kernel and a Linux application program, and the coprocessor 410 runs a coprocessor application program.
Specifically, the coprocessor 410 turns on the backlight of the lcd screen by the display driver, and outputs the pre-displayed emergency content to the lcd screen.
Themain processor 420 is used for starting an instrument bootstrap program, booting and starting the coprocessor in the bootstrap program, booting and starting a Linux kernel through the bootstrap program, starting a Linux application program after initializing Linux equipment resources, and starting a 3D drawing engine to draw pre-display content;
the processor is an R-CAR E3 processor, themain processor 420 is a core-A53 core, and the coprocessor 410 is a core-R7 core; the coprocessor 410 is configured to process 2D display content, and themain processor 420 is configured to process 3D display content.
The initialization of the Linux equipment resources at least comprises the steps of initializing a CPU, storing management, process management, a file system, equipment management, equipment driving, network communication, Linux system and Linux system calling.
And the IO device 430 is configured to receive an external ECU signal and output pre-display content to the liquid crystal screen.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the apparatus and the modules described above may refer to corresponding processes in the foregoing method embodiments, and are not described herein again.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. The electronic equipment is used for realizing the quick start of the full liquid crystal instrument. As shown in fig. 5, theelectronic apparatus 5 of this embodiment includes: amemory 510, aprocessor 520, and asystem bus 530, thememory 510 including anexecutable program 5101 stored thereon, it being understood by those skilled in the art that the electronic device structure shown in fig. 5 does not constitute a limitation of an electronic device and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
The following describes each component of the electronic device in detail with reference to fig. 5:
thememory 510 may be used to store software programs and modules, and theprocessor 520 may execute various functional applications and data processing of the electronic device by operating the software programs and modules stored in thememory 510. Thememory 510 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data (such as cache data) created according to the use of the electronic device, and the like. Further, thememory 510 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
Contained on thememory 510 is anexecutable program 5101, whichexecutable program 5101 may be partitioned into one or more modules/units, which are stored in thememory 510 and executed by theprocessor 520 to implement an all liquid crystal meter display or the like, which may be a series of computer program instruction segments describing the execution of thecomputer program 5101 in theelectronic device 5 capable of performing specific functions.
Theprocessor 520 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in thememory 510 and calling data stored in thememory 510, thereby performing overall state control of the electronic device. Theprocessor 520 may be composed of a main processor and a coprocessor, and the main processor and the coprocessor respectively execute corresponding executable programs thereon.
Thesystem bus 530 is used to connect various functional units inside the computer, and can transmit data information, address information, and control information, and can be, for example, a PCI bus, an ISA bus, a VESA bus, etc. The instructions of theprocessor 520 are transferred to thememory 510 through the bus, thememory 510 feeds data back to theprocessor 520, and thesystem bus 530 is responsible for data and instruction interaction between theprocessor 520 and thememory 510. Of course, other devices, such as network interfaces, display devices, etc., may also be accessed by thesystem bus 530.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.