CN113656085A - Instrument starting method, device, equipment, storage medium and program product - Google Patents

Instrument starting method, device, equipment, storage medium and program product Download PDF

Info

Publication number
CN113656085A
CN113656085A CN202110957865.7A CN202110957865A CN113656085A CN 113656085 A CN113656085 A CN 113656085A CN 202110957865 A CN202110957865 A CN 202110957865A CN 113656085 A CN113656085 A CN 113656085A
Authority
CN
China
Prior art keywords
state
operating system
instrument
kernel
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110957865.7A
Other languages
Chinese (zh)
Other versions
CN113656085B (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.)
Ecarx Hubei Tech Co Ltd
Original Assignee
Hubei Ecarx Technology 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 Hubei Ecarx Technology Co Ltd filed Critical Hubei Ecarx Technology Co Ltd
Priority to CN202110957865.7A priority Critical patent/CN113656085B/en
Publication of CN113656085A publication Critical patent/CN113656085A/en
Application granted granted Critical
Publication of CN113656085B publication Critical patent/CN113656085B/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
    • 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/4411Configuring for operating with peripheral devices; Loading of device drivers
    • 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/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application provides a meter starting method, a device, equipment, a storage medium and a program product, wherein the method is applied to a system which is simultaneously provided with a meter time-sharing operating system and a central control time-sharing operating system; the method comprises the following steps: acquiring the state of a kernel when a first instruction for indicating to start the instrument is received; when the state of the kernel is a deep sleep state, controlling the kernel to be switched from the deep sleep state to a normal operation state; operating a first container corresponding to the instrument time-sharing operating system, starting the instrument time-sharing operating system through the first container, and displaying instrument information; the method comprises the steps that a second container corresponding to the central control time-sharing operating system is operated, the central control time-sharing operating system is started through the second container, and a central control interface is displayed.

Description

Instrument starting method, device, equipment, storage medium and program product
Technical Field
The present application relates to the field of vehicle systems, and in particular, to a method, an apparatus, a device, a storage medium, and a program product for starting an instrument.
Background
The automobile instrument is a device for displaying the working condition of each system of an automobile, and is one of important means for drivers and maintenance personnel to know the working performance of each system of the automobile.
The conventional automotive instrument System operates on an independent Real-Time Operating System (RTOS), which is an Operating System that ensures that a specific function is completed within a certain Time limit, and when the instrument System operates on the RTOS, the instrument can be quickly started. A central control system is usually installed in the automobile, where entertainment devices such as an automobile air conditioner and a stereo are controlled, and is usually installed in a time-sharing operating system, such as a standard operating system with a Linux kernel. When the instrument system and the central control system operate on different chips, hardware resources are wasted, and the communication efficiency between the two systems is low. Based on this, the instrumentation system can be migrated to the chip of the central control system.
However, the linux operating system usually does not give priority to task response efficiency, and highlights the multiplexing, interactivity and independence, so that the meter has the problem of slow starting speed during starting.
Disclosure of Invention
The application provides a method, a device, equipment, a storage medium and a program product for starting an instrument, wherein a kernel is in a deep sleep state, so that when a time-sharing operating system of the instrument is started, the kernel can be directly awakened from the deep sleep state, and the starting speed of the time-sharing operating system of the instrument is improved.
In a first aspect, the present application provides a method for starting an instrument, where the method is applied to a system simultaneously carrying an instrument time-sharing operating system and a central control time-sharing operating system; the method comprises the following steps:
acquiring the state of a kernel when a first instruction for indicating to start the instrument is received;
when the state of the kernel is a deep sleep state, controlling the kernel to be switched from the deep sleep state to a normal operation state; the deep sleep state represents that at least one application is in a suspended state and no application in a foreground running state exists; the normal running state represents that at least one application is in a foreground running state;
operating a first container corresponding to the instrument time-sharing operating system, starting the instrument time-sharing operating system through the first container, and displaying instrument information;
and operating a second container corresponding to the central control time-sharing operating system, starting the central control time-sharing operating system through the second container, and displaying a central control interface.
Optionally, the method further includes:
and controlling the kernel to enter a deep sleep state when a second instruction for indicating to close the meter is received.
Optionally, controlling the kernel to enter a deep sleep state includes:
controlling part of the applications to be in a suspended state, and controlling the applications out of the suspended state in all the applications to be in a terminated state;
correspondingly, controlling the kernel to switch from the deep sleep state to the normal operation state includes:
controlling the kernel to wake up the part of the application in the suspended state.
Optionally, the method further includes:
and when the kernel is in a deep sleep state, periodically running the application in a suspended state so as to enable the application to be in a background running state.
Optionally, the operating a first container corresponding to the instrument time-sharing operating system, starting the instrument time-sharing operating system through the first container, and displaying instrument information includes:
operating a first container corresponding to the instrument time-sharing operating system, and starting the instrument time-sharing operating system by operating a file in the first container;
and after the instrument time-sharing operating system is started, controlling the instrument screen to light up in a backlight mode, and displaying instrument information through the instrument screen.
Optionally, the method further includes:
before the kernel enters a deep sleep state, saving meter information displayed by the meter time-sharing operating system, wherein the meter information comprises: mileage information and oil quantity information.
Optionally, the first instruction is an instruction generated when an ACC gear of the automobile device is in an ON state; the second instruction includes an instruction generated when the ACC gear of the automobile apparatus is in the OFF state.
In a second aspect, the present application provides a meter starting apparatus applied to a system having both a meter time-sharing operating system and a central control time-sharing operating system; the device comprises:
the acquisition module is used for acquiring the state of the kernel when receiving a first instruction for indicating to start the instrument;
the control module is used for controlling the kernel to be switched from the deep sleep state to the normal operation state when the state of the kernel is the deep sleep state; the deep sleep state represents that at least one application is in a suspended state and no application in a foreground running state exists; the normal running state represents that at least one application is in a foreground running state;
the first processing module is used for operating a first container corresponding to the instrument time-sharing operating system, starting the instrument time-sharing operating system through the first container and displaying instrument information;
and the second processing module is used for operating a second container corresponding to the central control time-sharing operating system, starting the central control time-sharing operating system through the second container and displaying a central control interface.
In a third aspect, the present application provides a meter starting apparatus comprising: a memory and at least one processor;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the method of any one of the first aspects.
In a fourth aspect, the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the method according to any one of the first aspect.
In a fifth aspect, the present application provides a computer program product comprising computer programs/instructions which, when executed by a processor, implement the method according to any one of the first aspect.
The application provides a method, a device, equipment, a storage medium and a program product for starting an instrument, wherein the method is applied to a system simultaneously carrying an instrument time-sharing operating system and a central control time-sharing operating system; the method comprises the following steps: acquiring the state of a kernel when a first instruction for indicating to start the instrument is received; when the state of the kernel is a deep sleep state, controlling the kernel to be switched from the deep sleep state to a normal operation state; the deep sleep state represents that at least one application is in a suspended state and no application in a foreground running state exists; the normal running state represents that at least one application is in a foreground running state; operating a first container corresponding to the instrument time-sharing operating system, starting the instrument time-sharing operating system through the first container, and displaying instrument information; the method comprises the steps that a second container corresponding to the central control time-sharing operating system is operated, the central control time-sharing operating system is started through the second container, and a central control interface is displayed.
Drawings
In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings needed to be used in 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 inventive exercise.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a method for starting a meter according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of another method for starting a meter according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a meter starting apparatus according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of a meter starting device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments 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.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Fig. 1 is a schematic view of an application scenario provided by an embodiment of the present invention, and as shown in fig. 1, a CPU11 is a Central Processing Unit (Central Processing Unit) and is capable of responding to an instruction generated by an automobile device and controlling execution content of a kernel in an operating system. A central control system 12 and an instrument system 13 of the automobile equipment are positioned on an application layer facing a user, and containers are respectively arranged in the central control system 12 and the instrument system 13 so as to realize the starting of different systems; the middle GUI is an interface layer and is used for providing rich functional controls and exquisite interface design functions; the bottom layer of the system is an operating system 15, which includes the construction of a file system and the running of a driver, and the kernel is the core of the operating system and can determine when a program operates on each hardware.
The former central control system and the instrument system are called according to the classification of service functions, and the latter instrument time-sharing operating system is the instrument system, and the middle control time-sharing operating system is the central control system.
In order to reduce the waste of hardware resources, the instrumentation system 13 and the central control system share one chip, and the instrumentation system 13 and the central control system 12 are mounted on one system, such as a linux system. However, when the instrumentation system 13 is mounted on the linux system, there is a problem that the start-up speed is slow when the instrumentation system is started up.
Based on the above problems, according to the method and the device, when the automobile equipment is not used, the kernel is in the deep sleep state, when a first instruction for starting the instrument is received, different operations are executed according to the state information of the kernel, and when the state information of the kernel is in the deep sleep state, the kernel is directly controlled to be switched from the deep sleep state to the normal operation state, so that the kernel does not need to perform a complete initialization process, and the starting speed of the instrument is increased.
The technical solution of the present invention 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. 2 is a schematic flowchart of a method for starting a meter according to an embodiment of the present invention, where the method provided in this embodiment may be executed by a CPU, and as shown in fig. 2, the method of this embodiment may include:
s201, when a first instruction for indicating to start the instrument is received, acquiring the state of a kernel.
In this embodiment, when a first instruction for starting the instrument is received, the state of the kernel in the system may be obtained first, where the state of the kernel may be two, and in one case, when the automobile is started for the first time, the kernel is not initialized; the second case is that the kernel is in a deep sleep state; when the states of the cores are different, the cores can be controlled to execute different operations.
S202, when the state of the kernel is a deep sleep state, controlling the kernel to be switched from the deep sleep state to a normal operation state; the deep sleep state represents that at least one application is in a suspended state and no application in a foreground running state exists; the normal running state indicates that at least one application is in a foreground running state.
When the kernel is in the deep sleep state, the kernel is directly controlled to be awakened from the deep sleep state, namely the kernel is controlled to be switched to the normal state from the deep sleep state.
When the kernel is in the deep sleep state, at least one application in all the applications is in the suspended state, the other part of the applications is in the termination state, namely in the killing state, and meanwhile, the applications in the foreground running state do not exist. When the kernel is in the deep sleep state, the instrument time-sharing operating system is also in the power-on state.
The normal running state means that at least one application is in a foreground running state, and part of the applications can be allowed to be in a suspended state or run in a background.
In addition, when the state of the kernel is not initialized, the kernel is controlled to perform initialization operation.
When the state of the kernel is not initialized, the kernel can be controlled to perform initialization operation. The kernel is software in the system, and can realize process management, memory management, IO management, file management, network management and the like. Specifically, the kernel of the system may be loaded into the memory, and the kernel may be controlled to initialize hardware and circuit logic, so as to complete subsequent instrument startup.
Before initialization operation, hardware power-on is required, such as power-on of an embedded single-board CPU chip and power-on of an instrument time-sharing operating system.
Whether the state of the kernel is in the uninitialized state or not can be determined by whether an instruction for starting the instrument is received for the first time. If an instruction for starting the instrument is received for the first time, the state of the kernel is not initialized, when the kernel is controlled to perform initialization operation, the instrument is further started, and after the automobile equipment is not used, the kernel is controlled to be in a deep sleep state; if the instruction for starting the instrument is not received for the first time, the state of the kernel is a deep sleep state, and the kernel can be directly awakened from the deep sleep state.
S203, operating a first container corresponding to the instrument time-sharing operating system, starting the instrument time-sharing operating system through the first container, and displaying instrument information.
And after the kernel is awakened from the deep sleep state, executing a flow of operating a first container corresponding to the instrument time-sharing operating system, so that the instrument information can be displayed on an instrument screen.
And S204, operating a second container corresponding to the central control time-sharing operating system, starting the central control time-sharing operating system through the second container, and displaying a central control interface.
Similar to the process of displaying the instrument information, the central control time-sharing operating system can be controlled to be started by operating the second container corresponding to the central control time-sharing operating system through the second container, and a central control interface is displayed.
After the time-sharing operating system of the control instrument is started, the time-sharing operating system of the central control can be continuously started. In general, when a user is using an automobile device, it is necessary to determine a running condition of a vehicle from information displayed by a meter. The central control time-sharing operating system is generally used for running the entertainment device, and the requirement on the starting speed of the central control time-sharing operating system is low, so that the starting of the central control time-sharing operating system can be continued after the starting of the instrument time-sharing operating system is completed.
The instrument time-sharing operating system and the central control time-sharing operating system share one kernel, wherein the instrument time-sharing operating system can be a linux operating system; the central control time-sharing operating system can be an Android operating system. When the kernel is in a deep sleep state, the instrument time-sharing operating system and the central control time-sharing operating system are both in the sleep state, so that the instrument time-sharing operating system and the central control time-sharing operating system can be started only by operating the second container.
In the embodiment, when the automobile is not used, the control kernel is in the deep sleep state, and when the instrument time-sharing operating system is started, if the kernel is in the deep sleep state, the kernel is directly wakened from the deep sleep state, the steps of hardware power-on and kernel initialization are not required to be executed, the instrument starting process is saved, the starting speed of the instrument time-sharing operating system is increased, and the instrument time-sharing operating system can be continuously started after the instrument time-sharing operating system is started. In practice, the method can realize that the meter process is started within 2 seconds and the meter data is displayed.
In some embodiments, the method further comprises:
and controlling the kernel to enter a deep sleep state when a second instruction for indicating to close the meter is received.
In this embodiment, in order to switch the control kernel from the deep sleep state to the normal state, the control kernel needs to perform the deep sleep state when the vehicle is not used. Specifically, when the vehicle is finished, the user may send a second instruction indicating to turn off the meter, and when the CPU receives the second instruction, the CPU may enter the deep sleep state.
In practice, when the automobile device is started for the first power-on, the state information of the kernel is not initialized. After the automobile equipment is powered on and started for the first time, the automobile equipment can enter a deep sleep state when a second instruction of powering off the automobile is received, and then the automobile equipment can be directly awakened from the deep sleep state when the automobile equipment is powered on and started for the second time and subsequently.
The deep sleep state is conveniently switched to the normal state from the deep sleep state when the user starts the instrument next time by controlling the kernel to enter the deep sleep state.
In some embodiments, controlling the kernel to enter a deep sleep state includes:
controlling part of the applications to be in a suspended state, and controlling the applications out of the suspended state in all the applications to be in a terminated state;
correspondingly, controlling the kernel to switch from the deep sleep state to the normal operation state includes:
controlling the kernel to wake up the part of the application in the suspended state.
When the control kernel enters the deep sleep state, part of the applications can be set to be in the suspended state according to the requirements of a user, and the rest of the applications can be set to be in the termination state, namely the killing state. By suspending part of applications and killing the rest of applications, the CPU loss and the network pressure of the instrument time-sharing operating system are reduced, and the electric quantity loss in the deep sleep process is reduced. The determination of the application in the suspended state and the application in the terminated state may be performed according to actual situations, and is not limited herein.
Accordingly, when the control kernel wakes up from the deep sleep state, the kernel is ready, and only the control kernel needs to switch to the normal operation state and wake up the part of the application in the suspended state.
In some embodiments, the method further comprises:
and when the kernel is in a deep sleep state, periodically running the application in a suspended state so as to enable the application to be in a background running state.
When the kernel is in a deep sleep state, the application in the suspended state needs to run periodically. Wherein, the operation period can be preset, for example, the operation period is 6 hours. And when the CPU receives an instruction which is sent by the timer and meets the set running period at the current moment, the CPU controls the kernel to run the application in the suspended state.
The background running state refers to a state that the application is in the background of the operating system and is running, namely, the application code is executed in the background system. After the application entering the background running state is maintained for a period of time, the application enters the suspended state again.
In some embodiments, the running a first container corresponding to the meter time-sharing operating system, starting the meter time-sharing operating system through the first container, and displaying meter information includes:
operating a first container corresponding to the instrument time-sharing operating system, and starting the instrument time-sharing operating system by operating a file in the first container;
and after the instrument time-sharing operating system is started, controlling the instrument screen to light up in a backlight mode, and displaying instrument information through the instrument screen.
When the instrument process is started, files in the first container need to be operated, the files comprise a display application program, a sound application program and other related application programs, and the starting of the instrument process can be realized by operating the files.
When the kernel is in the deep sleep state, the first container corresponding to the instrument time-sharing operating system is also in the operation termination state. And, the file in the first container also needs to be run when the meter is first started.
The instrument time-sharing operating system and the central control time-sharing operating system can be isolated from each other and run independently through the container technology.
Further, when the inner core is in the deep sleep state, the instrument screen backlight is in the off state. Therefore, after the meter is started, the meter screen needs to be lit back so that the meter information can be displayed on the screen.
In some embodiments, the method further comprises:
before the kernel enters a deep sleep state, the meter information displayed by the meter time-sharing operating system is stored,
the meter information includes: mileage information and oil quantity information.
In addition, in order to conveniently and quickly start the meter, the meter information of the kernel before entering the deep sleep state can be stored. Specifically, the meter information may be stored in a RAM (Random Access Memory), and the RAM may be in a power-on state. When the instrument is started next time, the instrument backlight is lightened, the instrument information can be directly read from the RAM and displayed on the instrument screen. The meter information here may be mileage information, oil amount information, and the like.
By storing the meter information, the meter information can be rapidly displayed when the meter is started next time.
In some embodiments, the first instruction is an instruction generated when an ACC range of the automobile apparatus is in an ON state; the second instruction includes an instruction generated when the ACC gear of the automobile apparatus is in the OFF state.
When the user puts the ACC gear of the automobile equipment in the ON state, the automobile equipment is powered ON, and the CPU receives a first instruction.
Conversely, when the ACC range for the vehicle device is OFF, indicating that the vehicle device is at a low point, the CPU receives the second instruction.
In addition, the user can control the car equipment to be powered on or powered off through the car key, and correspondingly, the CPU can receive the first instruction or the second instruction.
Fig. 3 is a schematic flow chart of another meter starting method according to an embodiment of the present invention, and as shown in fig. 3, the method includes:
s301, when the ACC gear is detected to be in the ON state, executing the step S302;
s302, judging whether the power-on starting is the first power-on starting; if yes, go to step S303; if not, go to step S304;
s303, initializing the Linux kernel;
s304, exiting the deep sleep state, entering a normal operation state, and awakening the suspended application by the kernel;
s305, operating the first container, lighting the backlight of the instrument screen, and displaying the instrument normally;
s306, the second container runs, and the central control time-sharing operating system is started;
s307, detecting that the ACC gear is in an OFF state;
s308, entering a deep sleep state, suspending part of applications, closing the backlight of the instrument screen, and terminating the first container;
s309, detecting that the ACC gear is in the ON state again.
In practice, the meter start-up may be controlled according to the above-described execution steps.
By the method, when the automobile is not used, the kernel is controlled to be in the deep sleep state, and when the instrument is started, if the kernel is in the deep sleep state, the kernel is directly awakened from the deep sleep state, steps of hardware power-on and kernel initialization are not required to be executed, the instrument starting process is saved, and accordingly the starting speed of the instrument is improved. In practice, the method can realize that the meter process is started within 2 seconds and the meter data is displayed.
On the basis of the above embodiments, in consideration of the difference in frequency of using the car device by the user, the time during which the kernel is in the deep sleep state may be set according to the frequency of using the car by the user. Specifically, after the automobile equipment is powered off, the kernel can be controlled to enter the deep sleep state, the time of the kernel in the deep sleep state is timed, and when the timing result exceeds the preset time, the kernel is controlled to be in the state of stopping running. For example, when the time when the kernel is in the deep sleep state reaches 10 days, the kernel may be controlled to be in a state of being stopped.
Through the operation, when a user frequently uses the automobile, the automobile can enter a deep sleep state, so that the instrument can be quickly started when the automobile is used next time; when the user is not frequently using the automobile, the deep sleep state can be quitted, and the power consumption is reduced.
Fig. 4 is a schematic structural diagram of a meter starting device according to an embodiment of the present invention. As shown in fig. 4, the device 40 is applied to an operating system in which an instrument time-sharing operating system and a central control time-sharing operating system are simultaneously installed; the device 40 comprises:
the obtaining module 401 is configured to obtain a state of a kernel when a first instruction for instructing to start a meter is received;
a control module 402, configured to control the kernel to switch from a deep sleep state to a normal operation state when the state of the kernel is the deep sleep state; the deep sleep state represents that at least one application is in a suspended state and no application in a foreground running state exists; the normal running state represents that at least one application is in a foreground running state;
the first processing module 403 is configured to run a first container corresponding to an instrument time-sharing operating system, start the instrument time-sharing operating system through the first container, and display instrument information;
and a second processing module 404, configured to run a second container corresponding to the central control time-sharing operating system, start the central control time-sharing operating system through the second container, and display a central control interface.
In some embodiments, the control module 402 is further configured to:
and controlling the kernel to enter a deep sleep state when a second instruction for indicating to close the meter is received.
In some embodiments, when the control module 402 controls the kernel to enter the deep sleep state, it is specifically configured to:
controlling part of the applications to be in a suspended state, and controlling the applications out of the suspended state in all the applications to be in a terminated state;
correspondingly, when the control module 402 controls the kernel to switch from the deep sleep state to the normal operation state, the control module is specifically configured to:
controlling the kernel to wake up the part of the application in the suspended state.
In some embodiments, the control module 402 is further configured to:
and when the kernel is in a deep sleep state, periodically running the application in a suspended state so as to enable the application to be in a background running state.
In some embodiments, the first processing module 403 is specifically configured to:
operating a first container corresponding to the instrument time-sharing operating system, and starting the instrument time-sharing operating system by operating a file in the first container;
and after the instrument time-sharing operating system is started, controlling the instrument screen to light up in a backlight mode, and displaying instrument information through the instrument screen.
In some embodiments, the apparatus further comprises a saving module to:
before the kernel enters a deep sleep state, saving meter information displayed by the meter time-sharing operating system, wherein the meter information comprises: mileage information and oil quantity information.
The instrument starting device provided by the embodiment of the invention can realize the instrument starting method of the embodiment shown in fig. 2 and fig. 3, and the realization principle and the technical effect are similar, and are not described again here.
Fig. 5 is a schematic diagram of a hardware structure of a meter starting device according to an embodiment of the present invention. As shown in fig. 5, the present embodiment provides a meter startup device 50 including: at least one processor 501 and memory 502. The processor 501 and the memory 502 are connected by a bus 503.
In a specific implementation, the at least one processor 501 executes the computer-executable instructions stored in the memory 502, so that the at least one processor 501 executes the meter starting method in the above method embodiments.
For a specific implementation process of the processor 501, reference may be made to the above method embodiments, which implement the similar principle and technical effect, and this embodiment is not described herein again.
In the embodiment shown in fig. 5, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. 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 the hardware and software modules within the processor.
The memory may comprise high speed RAM memory and may also include non-volatile storage NVM, such as at least one disk memory.
The bus 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 embodiment of the invention also provides a computer-readable storage medium, wherein a computer executing instruction is stored in the computer-readable storage medium, and when a processor executes the computer executing instruction, the meter starting method of the embodiment of the method is realized.
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. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
An embodiment of the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program implements the meter starting method provided in any embodiment of the embodiments corresponding to fig. 2 to fig. 3 of the present application.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting 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: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; 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 (11)

1. A meter starting method is characterized in that the method is applied to a system which is simultaneously provided with a meter time-sharing operating system and a central control time-sharing operating system; the method comprises the following steps:
acquiring the state of a kernel when a first instruction for indicating to start the instrument is received;
when the state of the kernel is a deep sleep state, controlling the kernel to be switched from the deep sleep state to a normal operation state; the deep sleep state represents that at least one application is in a suspended state and no application in a foreground running state exists; the normal running state represents that at least one application is in a foreground running state;
operating a first container corresponding to the instrument time-sharing operating system, starting the instrument time-sharing operating system through the first container, and displaying instrument information;
and operating a second container corresponding to the central control time-sharing operating system, starting the central control time-sharing operating system through the second container, and displaying a central control interface.
2. The method of claim 1, further comprising:
and controlling the kernel to enter a deep sleep state when a second instruction for indicating to close the meter is received.
3. The method of claim 2, wherein controlling the kernel to enter a deep sleep state comprises:
controlling part of the applications to be in a suspended state, and controlling the applications out of the suspended state in all the applications to be in a terminated state;
correspondingly, controlling the kernel to switch from the deep sleep state to the normal operation state includes:
controlling the kernel to wake up the part of the application in the suspended state.
4. The method of claim 3, further comprising:
and when the kernel is in a deep sleep state, periodically running the application in a suspended state so as to enable the application to be in a background running state.
5. The method of claim 3, wherein the running of a first container corresponding to the meter time-sharing operating system, the starting of the meter time-sharing operating system through the first container, and the displaying of meter information comprise:
operating a first container corresponding to the instrument time-sharing operating system, and starting the instrument time-sharing operating system by operating a file in the first container;
and after the instrument time-sharing operating system is started, controlling the instrument screen to light up in a backlight mode, and displaying instrument information through the instrument screen.
6. The method of claim 5, further comprising:
before the kernel enters a deep sleep state, the meter information displayed by the meter time-sharing operating system is stored,
the meter information includes: mileage information and oil quantity information.
7. The method according to any one of claims 2 to 6, characterized in that the first command is a command generated when an ACC position of an automobile apparatus is in an ON state; the second instruction includes an instruction generated when the ACC gear of the automobile apparatus is in the OFF state.
8. A meter starting device is characterized in that the device is applied to a system which is simultaneously provided with a meter time-sharing operating system and a central control time-sharing operating system; the device comprises:
the acquisition module is used for acquiring the state of the kernel when receiving a first instruction for indicating to start the instrument;
the control module is used for controlling the kernel to be switched from the deep sleep state to the normal operation state when the state of the kernel is the deep sleep state; the deep sleep state represents that at least one application is in a suspended state and no application in a foreground running state exists; the normal running state represents that at least one application is in a foreground running state;
the first processing module is used for operating a first container corresponding to the instrument time-sharing operating system, starting the instrument time-sharing operating system through the first container and displaying instrument information;
and the second processing module is used for operating a second container corresponding to the central control time-sharing operating system, starting the central control time-sharing operating system through the second container and displaying a central control interface.
9. A meter starting device, comprising: a memory and at least one processor;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the method of any one of claims 1-7.
10. A computer-readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method according to any one of claims 1-7.
11. A computer program product comprising a computer program, characterized in that the computer program realizes the method according to any of claims 1-7 when executed by a processor.
CN202110957865.7A 2021-08-20 2021-08-20 Meter starting method, apparatus, device, storage medium and program product Active CN113656085B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110957865.7A CN113656085B (en) 2021-08-20 2021-08-20 Meter starting method, apparatus, device, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110957865.7A CN113656085B (en) 2021-08-20 2021-08-20 Meter starting method, apparatus, device, storage medium and program product

Publications (2)

Publication Number Publication Date
CN113656085A true CN113656085A (en) 2021-11-16
CN113656085B CN113656085B (en) 2023-07-25

Family

ID=78481436

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110957865.7A Active CN113656085B (en) 2021-08-20 2021-08-20 Meter starting method, apparatus, device, storage medium and program product

Country Status (1)

Country Link
CN (1) CN113656085B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105227784A (en) * 2014-06-19 2016-01-06 中兴通讯股份有限公司 A kind of power-saving processing method of mobile terminal and mobile terminal
CN106815065A (en) * 2015-11-27 2017-06-09 腾讯科技(深圳)有限公司 The awakening method and device of background application, electronic equipment
CN111767115A (en) * 2019-03-13 2020-10-13 大陆汽车有限责任公司 Vehicle system, vehicle and method for operating such a vehicle system
CN111796882A (en) * 2020-07-21 2020-10-20 北京联想软件有限公司 Electronic equipment system processing method and device and electronic equipment
CN112602056A (en) * 2018-08-10 2021-04-02 株式会社电装 Vehicle host device, method for managing power supply of non-rewritable object, and program for managing power supply of non-rewritable object

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105227784A (en) * 2014-06-19 2016-01-06 中兴通讯股份有限公司 A kind of power-saving processing method of mobile terminal and mobile terminal
CN106815065A (en) * 2015-11-27 2017-06-09 腾讯科技(深圳)有限公司 The awakening method and device of background application, electronic equipment
CN112602056A (en) * 2018-08-10 2021-04-02 株式会社电装 Vehicle host device, method for managing power supply of non-rewritable object, and program for managing power supply of non-rewritable object
CN111767115A (en) * 2019-03-13 2020-10-13 大陆汽车有限责任公司 Vehicle system, vehicle and method for operating such a vehicle system
CN111796882A (en) * 2020-07-21 2020-10-20 北京联想软件有限公司 Electronic equipment system processing method and device and electronic equipment

Also Published As

Publication number Publication date
CN113656085B (en) 2023-07-25

Similar Documents

Publication Publication Date Title
KR102356316B1 (en) Vehicle system, vehicle and method for operating such a vehicle system
JP6272991B2 (en) Selective power management for pre-boot firmware updates
CN109408122B (en) Equipment starting method, electronic equipment and computer storage medium
CN101714091A (en) Methods and systems to display platform graphics during operating system initialization
CN112703483A (en) Power-off and power-on method and device for vehicle-mounted system
CN115576258B (en) Vehicle chip system control method, system-on-chip and vehicle
CN111225434B (en) Application response method, system, storage medium and communication module
CN116737244A (en) Method and device for starting multiple hardware domains of chip
JP3960800B2 (en) Method of operating a processor-based system for a vehicle
JP2002288104A (en) Computer system, and method and program for its resource assigning
CN113656085A (en) Instrument starting method, device, equipment, storage medium and program product
KR102109125B1 (en) Method for managing state of ECU in vehicle based on automotive open system architecture
CN111061521B (en) Method and system for starting equipment
CN116569139A (en) Vehicle-mounted computer, computer execution method and computer program
US20120278509A1 (en) Updating device and method through a baseboard management controller thereof
CN111131896A (en) Method and device for controlling flickering of indicator light of set top box
CN115062310A (en) Vehicle-mounted application program starting method and device, electronic equipment and storage medium
CN114312618B (en) Control method and system for Internet of vehicles system
CN113504825B (en) Energy-saving method and device for instrument system and storage medium
CN117407109A (en) Interface display method, device, equipment and storage medium
JP2002229791A (en) Interface generating device, program, and storage medium
JP7439773B2 (en) In-vehicle computer, computer execution method and computer program
CN114780166A (en) Pin configuration method, related device, equipment and readable storage medium
CN116302137A (en) Quick start method, automobile and storage medium
CN115827070A (en) State management module and method, microcontroller and vehicle-mounted controller

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220328

Address after: 430051 No. b1336, chuanggu startup area, taizihu cultural Digital Creative Industry Park, No. 18, Shenlong Avenue, Wuhan Economic and Technological Development Zone, Wuhan, Hubei Province

Applicant after: Yikatong (Hubei) Technology Co.,Ltd.

Address before: 430056 building B, building 7, Qidi Xiexin science and Innovation Park, South Taizi Lake innovation Valley, Wuhan Economic and Technological Development Zone, Wuhan City, Hubei Province (qdxx-f7b)

Applicant before: HUBEI ECARX TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant