Instrument program starting method and device, equipment and storage medium

By only verifying some key programs when the vehicle instrument system is started, the problem of too long startup time is solved, fast startup is achieved, and the user experience is improved.

CN118796284APending Publication Date: 2024-10-18CHINA FAW CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410821176.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

When the vehicle instrument system starts, due to a comprehensive hash check, the startup time is too long and cannot meet the user's requirements for quick startup.

Method used

Only some key programs are verified when the system starts. The integrity and status of the secondary boot program are verified through the main boot program, the target secondary boot program is determined, and the corresponding main program is started when the status and mode verification results are normal. Complete the instrument program startup steps.

Benefits of technology

While meeting the requirements for system operation safety, it also reduces the startup time of the vehicle instrument system and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796284A_ABST
    Figure CN118796284A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an instrument program starting method and device, equipment and a storage medium, and the method comprises the steps: verifying the integrity of a first bootstrap program and a second bootstrap program based on a main bootstrap program after an instrument verification instruction is received, and determining a target secondary bootstrap program based on an integrity verification result; checking the current state and the current mode of the target secondary bootstrap program to obtain a state checking result and a mode checking result; and under the condition that the state verification result is a normal state and the mode verification result is a non-upgrading mode, starting a main program corresponding to the target secondary bootstrap program to complete the instrument program starting step. According to the technical scheme, the problem that in the prior art, the starting time of the vehicle instrument system is too long is solved, only part of key programs can be verified during starting, the requirement for safe operation of the system is met, meanwhile, the starting time of the vehicle instrument system is shortened, and the user experience feeling is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of vehicle intelligent technology, and in particular to an instrument program startup method, device, equipment and storage medium. Background Art

[0002] With the development of vehicle intelligence, vehicle instrument systems are becoming more and more complex. In order to ensure the safety of system operation, the current common practice is that when the system starts, the system boot program verifies the entire program segment, such as hash verification or checksum verification. However, for complex systems such as instruments, if the entire program segment is hash-verified, it takes more than 10 seconds, so the startup time of the entire system cannot meet the user's requirement for quick startup. Summary of the invention

[0003] The embodiments of the present invention provide an instrument program startup method, device, equipment and storage medium, which can only check some key programs during startup, while meeting the requirements of system operation safety, reducing the vehicle instrument system startup time and improving user experience.

[0004] In a first aspect, an embodiment of the present invention provides an instrument program startup method, which is applied to a scenario of starting an instrument program of a vehicle instrument system, wherein the instrument program includes a main boot program, a secondary boot program and a main program; wherein the secondary boot program includes a first boot program and a second boot program; the main program includes a first main program and a second main boot program; the first main program and the second main boot program are different versions of the same program; the method includes:

[0005] After receiving the instrument verification instruction, verify the integrity of the first boot program and the second boot program based on the main boot program, and determine the target secondary boot program based on the integrity verification result;

[0006] Checking the current state and current mode of the target secondary boot program to obtain a state check result and a mode check result;

[0007] When the state check result is a normal state and the mode check result is a non-upgrade mode, the main program corresponding to the target secondary boot program is started to complete the instrument program start step.

[0008] In a second aspect, an embodiment of the present invention provides an instrument program startup device, which is applied to a scenario of starting an instrument program of a vehicle instrument system, wherein the instrument program includes a main boot program, a secondary boot program and a main program; wherein the secondary boot program includes a first boot program and a second boot program; the main program includes a first main program and a second main boot program; the first main program and the second main boot program are different versions of the same program; the device includes:

[0009] A secondary boot program determination module, configured to verify the integrity of the first boot program and the second boot program based on the main boot program after receiving the instrument verification instruction, and determine a target secondary boot program based on the integrity verification result;

[0010] A verification result determination module, used to verify the current state and current mode of the target secondary boot program, and obtain a state verification result and a mode verification result;

[0011] The main program startup module is used to start the main program corresponding to the target secondary boot program when the state check result is a normal state and the mode check result is a non-upgrade mode, and complete the instrument program startup step.

[0012] In a third aspect, an embodiment of the present invention provides a computer device, the computer device comprising:

[0013] one or more processors;

[0014] A memory for storing one or more programs;

[0015] When the one or more programs are executed by the one or more processors, the one or more processors implement the instrument program startup method described in any embodiment.

[0016] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the instrument program startup method described in any embodiment.

[0017] The technical solution provided by the embodiment of the present invention verifies the integrity of the first boot program and the second boot program based on the main boot program after receiving the instrument verification instruction, and determines the target secondary boot program based on the integrity verification result; verifies the current state and current mode of the target secondary boot program to obtain the state verification result and the mode verification result; when the state verification result is a normal state and the mode verification result is a non-upgrade mode, starts the main program corresponding to the target secondary boot program to complete the instrument program startup step. The technical solution of the embodiment of the present invention solves the problem of the long startup time of the vehicle instrument system in the prior art. Only some key programs can be verified during startup, which reduces the startup time of the vehicle instrument system while meeting the requirements of system operation safety and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 This is a flow chart of an instrument program startup method provided by an embodiment of the present invention;

[0019] Figure 2 It is a flow chart of another instrument program startup method provided by an embodiment of the present invention;

[0020] Figure 3 is a structural diagram of an instrument software system provided by an embodiment of the present invention;

[0021] Figure 4 is a structural diagram of a master boot program module provided by an embodiment of the present invention;

[0022] Figure 5 is a structural diagram of a secondary boot program module provided by an embodiment of the present invention;

[0023] Figure 6 This is a workflow diagram for starting an instrument program provided by an embodiment of the present invention;

[0024] Figure 7 This is a schematic diagram of the structure of an instrument program startup device provided by an embodiment of the present invention.

[0025] Figure 8 It is a structural schematic diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0027] Figure 1 It is a flow chart of an instrument program startup method provided by an embodiment of the present invention. The embodiment of the present invention can be applied to the scenario of starting the program of the vehicle instrument system, and is applied to the scenario of starting the instrument program of the vehicle instrument system, wherein the instrument program includes a main boot program, a secondary boot program and a main program; wherein the secondary boot program includes a first boot program and a second boot program; the main program includes a first main program and a second main boot program; the first main program and the second main boot program are different versions of the same program; the method can be executed by an instrument program startup device, and the device can be implemented by software and / or hardware.

[0028] like Figure 1 As shown, the instrument program startup method includes the following steps:

[0029] S110. After receiving the instrument verification instruction, verify the integrity of the first boot program and the second boot program based on the main boot program, and determine the target secondary boot program based on the integrity verification result.

[0030] Among them, the main boot program can be a boot program in the instrument program that does not require program verification. The main boot program can be set manually, and the user can use some boot programs in the instrument program as the main boot program. For example, some boot programs that are not prone to errors during the startup process can be used as the main boot program. Furthermore, in the startup link of the instrument program, it is not necessary to check whether the main boot program itself has errors, which can reduce the startup time of the software program. Correspondingly, the secondary boot program can be a boot program in the instrument program that requires program verification. Specifically, the secondary boot program can also be selected manually. For example, some boot programs that are prone to errors during the startup process can be used as secondary boot programs. During the startup process of the instrument program, only the secondary boot program can be checked.

[0031] The instrument program may include a main boot program, a secondary boot program and a main program. The secondary boot program includes a first boot program and a second boot program; the main program includes a first main program and a second main boot program. The first boot program may be a secondary boot program of the first main program. Correspondingly, the second boot program may be a secondary boot program of the second main program. The first main program and the second main boot program are different versions of the same program. The second main program may also be understood as a backup program of the first main program. During the verification process of the instrument program, if there is an error in the verification process of the first main program, the second main program may be enabled to ensure the normal startup of the instrument program.

[0032] Furthermore, the integrity check result may be a check result of whether the secondary boot program is complete. Specifically, since only one main program needs to be started, an integrity check may be performed on one secondary boot program first. If the integrity check result shows that the program is complete, the secondary boot program that has passed the check may be used as the target secondary boot program. For example, an integrity check may be performed on the first boot program first. If the integrity check result shows that the program is complete, the first boot program may be used as the target secondary boot program. The target secondary boot program may be a secondary boot program that has been successfully checked from the perspective of program integrity. The target secondary boot program may be checked from other perspectives later. If all the check results are passed, the main program corresponding to the target secondary boot program may be started.

[0033] S120, checking the current state and current mode of the target secondary boot program, and obtaining a state verification result and a mode verification result.

[0034] Among them, the current state may be the current startup state of the target secondary boot program. The state verification result may be a verification result of verifying whether the target boot program is successfully started. Exemplarily, the state verification result may be determined by the state verification value corresponding to the target secondary boot program. For example, the state identification value of the target secondary boot program may be a default value. When the target secondary boot program is successfully started, the default value may be automatically adjusted to the startup identification value, and then the state verification result may be determined according to the state identification. When the state identification value is the default value, the state verification result is determined to be an abnormal state, and when the state verification result is the startup identification value, the state verification result may be determined to be a normal state.

[0035] Correspondingly, the mode verification result may be a verification result of verifying whether the target boot program is in upgrade mode. Exemplarily, the mode verification result may be determined by the mode verification value corresponding to the target secondary boot program. When the target stimulates the program to be in upgrade mode, the mode identification value may be an upgrade mode identification value; and when the target secondary boot program is in non-upgrade mode, its mode identification value may be a non-upgrade mode identification value. When the target secondary boot program is in upgrade mode, its mode identification value may be automatically adjusted to an upgrade mode identification value, and when the boot program is successfully upgraded, its mode identification value may be automatically adjusted to a non-upgrade mode identification value. Further, in the case where the mode identification value is an upgrade mode identification value, the mode verification result may be determined to be an upgrade mode, and in the case where the mode identification value is a non-upgrade mode identification value, the mode verification result may be determined to be a non-upgrade mode. In the case where the mode verification result is an upgrade mode, the program version needs to be upgraded subsequently, so the program startup cannot be performed normally.

[0036] S130: When the state check result is a normal state and the mode check result is a non-upgrade mode, start the main program corresponding to the target secondary boot program to complete the instrument program start step.

[0037] Among them, when the status check result is normal and the mode check result is non-upgrade mode, it means that the target boot program has been started normally and no version upgrade is required. Therefore, when the status check result is normal and the mode check result is non-upgrade mode, the main program corresponding to the target secondary boot program can be started to complete the instrument program startup step.

[0038] The technical solution provided by the embodiment of the present invention verifies the integrity of the first boot program and the second boot program based on the main boot program after receiving the instrument verification instruction, and determines the target secondary boot program based on the integrity verification result; verifies the current state and current mode of the target secondary boot program to obtain the state verification result and the mode verification result; when the state verification result is normal and the mode verification result is non-upgrade mode, starts the main program corresponding to the target secondary boot program to complete the instrument program startup step. The technical solution of the embodiment of the present invention solves the problem of the long startup time of the vehicle instrument system in the prior art. Only some key programs can be verified during startup, which reduces the startup time of the vehicle instrument system while meeting the requirements of system operation safety and improves the user experience.

[0039] Figure 2It is another flow chart of an instrument program startup method provided by an embodiment of the present invention. The embodiment of the present invention can be applied to the scenario of starting the program of the vehicle instrument system, wherein the instrument program includes a main boot program, a secondary boot program and a main program; wherein the secondary boot program includes a first boot program and a second boot program; the main program includes a first main program and a second main boot program; the first main program and the second main boot program are different versions of the same program; based on the above embodiments, this embodiment further illustrates how to verify the integrity of the first boot program and the second boot program based on the main boot program, and determine the target secondary boot program based on the integrity verification result; and how to verify the current state and current mode of the target secondary boot program to obtain the state verification result and the mode verification result. The device can be implemented by software and / or hardware and integrated in a computer device with application development function.

[0040] like Figure 2 As shown, the instrument program startup method includes the following steps:

[0041] S210. After receiving the instrument calibration instruction, obtain first program identification information and a first program calibration value of the first boot program, and determine a first preset calibration value corresponding to the first boot program based on the first program identification information.

[0042] Among them, the main boot program can be a boot program in the instrument program that does not require program verification. The main boot program can be set manually, and the user can use some boot programs in the instrument program as the main boot program. For example, some boot programs that are not prone to errors during the startup process can be used as the main boot program. Furthermore, in the startup link of the instrument program, it is not necessary to check whether the main boot program itself has errors, which can reduce the startup time of the software program. Correspondingly, the secondary boot program can be a boot program in the instrument program that requires program verification. Specifically, the secondary boot program can also be selected manually. For example, some boot programs that are prone to errors during the startup process can be used as secondary boot programs. During the startup process of the instrument program, only the secondary boot program can be checked.

[0043] Furthermore, the instrument program may include a main boot program, a secondary boot program and a main program. Among them, the secondary boot program includes a first boot program and a second boot program; the main program includes a first main program and a second main boot program. The first boot program may be a secondary boot program of the first main program. Correspondingly, the second boot program may be a secondary boot program of the second main program. The first main program and the second main boot program are different versions of the same program. The second main program may also be understood as a backup program of the first main program. During the verification process of the instrument program, if there is an error in the verification process of the first main program, the second main program may be enabled to ensure the normal startup of the instrument program.

[0044] The first program identification information may be the unique identity information of the first boot program. The first program identification information may be set manually; or it may be automatically determined after the program is upgraded. The first program verification value may be a verification value used for program verification of the first boot program. The first program verification value may be set manually; or it may be automatically determined after the program is upgraded. Further, the first preset verification value may be a reference verification value for verifying the first boot program. Specifically, the verification value corresponding to the first program identification information may be matched from a preset database, and the matched verification value may be used as the first preset verification value.

[0045] S220: When the first program check value is the same as the first preset check value, use the first boot program as the target secondary boot program.

[0046] The first program check value and the first preset check value can be compared. If the two check values ​​are the same, it means that the first bootstrap program is successfully checked. Therefore, when the first program check value and the first preset check value are the same, the first bootstrap program can be used as the target secondary bootstrap program. The target secondary bootstrap program can be a secondary bootstrap program that is successfully checked from the perspective of the check value.

[0047] Optionally, when the first program verification value and the first preset verification value are different, the second program identification information and the second program verification value of the second boot program can also be obtained; based on the second program identification information, the second preset verification value corresponding to the second boot program is determined; when the second program verification value and the second preset verification value are the same, the second boot program is used as the target boot program.

[0048] Optionally, when the second program verification value is different from the second preset verification value, program startup failure information may also be displayed on the preset display interface.

[0049] S230: Obtain a status identification value of the target secondary boot program, and determine the status verification result according to the status identification value.

[0050] The state identification value may be an identification value indicating the startup state of the target secondary boot program. The mode verification result may be a verification result of verifying whether the target boot program is in the upgrade mode. Exemplarily, the state identification value of the target secondary boot program may be a default value. When the target secondary boot program is successfully started, the default value may be automatically adjusted to the startup identification value, and then the state verification result may be determined according to the state identification. For example, when the state identification value is the default value, the state verification result is determined to be an abnormal state, and when the state verification result is the startup identification value, the state verification result may be determined to be a normal state.

[0051] Optionally, when the status check result is an abnormal state, the second main program can be started.

[0052] Among them, when the status check result is an abnormal state, it means that the first boot program fails to start, that is, the first main program cannot be started through the first boot program. In order to ensure the normal startup of the instrument program, the second main program can be started.

[0053] S240: When the state verification result is the normal state, obtain a mode identification value of the target secondary boot program, and determine the mode verification result according to the mode identification value.

[0054] Among them, the mode identification value can be an identification value used to indicate whether the target secondary boot program is currently in upgrade mode. Specifically, when the target stimulates the program to be in upgrade mode, the mode identification value can be an upgrade mode identification value. And when the target secondary boot program is in non-upgrade mode, its mode identification value can be a non-upgrade mode identification value. Specifically, when the target secondary boot program is in upgrade mode, its mode identification value can be automatically adjusted to an upgrade mode identification value, and when the boot program is successfully upgraded, its mode identification value can be automatically adjusted to a non-upgrade mode identification value. Therefore, the mode verification result can be determined according to the mode identification value. For example, when the mode identification value is an upgrade mode identification value, the mode verification result can be determined to be an upgrade mode, and when the mode identification value is a non-upgrade mode identification value, the mode verification result can be determined to be a non-upgrade mode. In the case where the mode verification result is an upgrade mode, the program version needs to be upgraded later, so the program startup cannot be performed normally.

[0055] Optionally, when the mode check result is an upgrade mode, an upgrade program for the second main program is started, so that the second main program upgrades the program data based on the upgrade program. The program upgrade can be an upgrade for the entire instrument program, and after the upgrade, the instrument program startup step can be restarted. By starting the upgrade program for the second main program when the mode check result is an upgrade mode, the integrity of the target secondary boot program can be guaranteed even if the power is lost in the middle, and the upgrade state can still be entered normally and upgraded again.

[0056] S250: When the state check result is a normal state and the mode check result is a non-upgrade mode, start the main program corresponding to the target secondary boot program to complete the instrument program start step.

[0057] Among them, when the status check result is normal and the mode check result is non-upgrade mode, it means that the target boot program has been started normally and no version upgrade is required. Therefore, when the status check result is normal and the mode check result is non-upgrade mode, the main program corresponding to the target secondary boot program can be started to complete the instrument program startup step.

[0058] In order to better understand the technical solution of the embodiment of the present invention, a specific example is provided below:

[0059] The present invention divides the instrument software system into three parts: the main boot program area, the secondary boot program area, and the main program area. Figure 3 Schematic diagram of the structure of an instrument software system provided by an embodiment of the present invention. Figure 3 As shown: The secondary boot program area and the main program area include two sides, A and B. In terms of design, the main boot program, secondary boot program and main program are three independent projects. The three are independent of each other and have no interactive relationship, which reduces system coupling and improves system stability and security. The following is a detailed introduction to each program:

[0060] Master boot loader:

[0061] The main boot program is only responsible for determining whether to start the secondary boot program side A or side B, verifying the integrity of the secondary boot program, and executing the jump. The main boot program is relatively stable and will not change, so it is stored in the OTP (One Time Programmable) area, which is a one-time programmable area and a safe area of ​​the system that will not be destroyed. When the system is powered on, it will directly switch to the OTP area to run the main boot program.

[0062] The master boot program contains the following key data, which need to be saved after power failure and need to be updated when the state changes. The present invention saves these state data in Data Flash:

[0063] BootFlag: Boot program AB side identification bit, used to determine whether to jump to the A side or B side of the secondary boot program;

[0064] BootSigA and BootSigB: Checksums of the A and B sides of the secondary boot program. When the program is upgraded, the header of the upgraded version must contain the checksums. After the upgrade is successful, the checksums are updated.

[0065] The present invention only verifies the integrity of the secondary boot program, because there are strict requirements for the boot time of the instrument controller. When the user unlocks the vehicle and opens the driver's door to enter the vehicle, the instrument controller needs to display the information required by the user. If the entire system software including the boot program and the application are verified, the required time process test data is shown in Table 1:

[0066] Table 1 Verification time test data

[0067]

[0068] Based on the test data in Table 1, the instrument controller is only calibrated for the secondary boot program.

[0069] The main boot program process is:

[0070] The main boot program is stored in the OTP area, and the system directly enters the trusted program entrance after power-on.

[0071] Read the BootFlag value to determine the AB side identification of the secondary boot program. Assume that the value is A side.

[0072] Verify the integrity of the secondary boot program A side, compare the check value with the stored BootSigA value, and if they are equal, jump to the entry of this boot program A side.

[0073] If they are not equal, check the integrity of the secondary boot program B side, compare the check value with the stored BootSigB value, and if they are equal, jump to the B side entry of this boot program.

[0074] If they are not equal, it means that the secondary boot program is wrong and the program exits.

[0075] Furthermore, Figure 4 It is a structural diagram of a master boot program module provided by an embodiment of the present invention.

[0076] The description of the main boot program module is shown in Table 2:

[0077] Table 2 Master boot program module description

[0078]

[0079] The main boot program only involves verification and program jump, and only contains necessary drivers and algorithm libraries, which takes up little program space and has a short running time, thus meeting the requirements for quick startup of the instrument system.

[0080] The main boot program only involves verification and program jump, and only contains necessary drivers and algorithm libraries, which takes up little program space and has a short running time, thus meeting the requirements for quick startup of the instrument system.

[0081] Secondary bootloader:

[0082] The secondary boot program is mainly responsible for determining whether to trigger the upgrade mode. In non-upgrade mode, it directly jumps to the main program, and in upgrade mode, it upgrades the corresponding area. The secondary boot program is divided into side A and side B. Since the secondary boot program contains an upgrade module, the upgrade protocol or upgrade requirements may change, so the secondary boot program is backed up as two sides, A and B. Side A of the secondary boot program corresponds to side A of the main program, and side B of the secondary boot program corresponds to side B of the main program.

[0083] The secondary boot program contains the following key data, which need to be saved after power failure and need to be updated when the state changes. The present invention saves these state data in Data Flash:

[0084] Reboot_Flag: Records the system startup status. The default value of Reboot_Flag is failure. When the watchdog or other reasons cause the system to restart, Reboot_Flag is still failure. When the entire instrument system is correctly started, Reboot_Flag is set to success. By detecting the startup status, you can determine whether the system startup is normal.

[0085] Status_Flag: Status flag; when the following situations occur, the status flag is recorded as an error:

[0086] Upgrade data download failed: (download failed, and still failed after 3 retries);

[0087] Upgrade data verification failed: (Verification failed, and still failed after 3 retries);

[0088] Upgrade data flashing failed: (flashing failed, and still failed after 3 retries);

[0089] System startup failed: (check Reboot_Flag status);

[0090] When the status identification value is detected to be an error, it indicates that there is a problem in the currently running area, and then the operation is switched to the other side to ensure that the system can still operate normally.

[0091] During the upgrade, the received upgrade package will be verified for upgrade data, the data flashing status will be checked during the upgrade process, and the data will be verified again after the upgrade is completed. If any of the above processes fails, an error will be recorded. This flag is judged at each startup to ensure the normal operation of the main program. Although the integrity of the main program is not checked in the main boot program, this flag is used to ensure the correct operation of the main program.

[0092] ModeFlag: Startup mode flag, used to determine whether the mode is in upgrade mode. After the upgrade is successful, it will be rewritten to normal startup mode.

[0093] The secondary boot process is:

[0094] Assume that the secondary boot program A is switched to the secondary boot program B. The secondary boot program B runs in the same process as A. Read the Status_Flag value to determine the running status of the main program. If an error occurs, jump to the main program B entry.

[0095] If it runs correctly, determine the ModeFlag value and check the startup mode. If it is in upgrade mode, upgrade the B side and keep the A side.

[0096] Figure 5 It is a structural diagram of a secondary boot program module provided by an embodiment of the present invention.

[0097] The description of the secondary bootloader module is shown in Table 3:

[0098] Table 3 Description of the secondary bootloader module

[0099] The module description is shown in the following table:

[0100]

[0101] In non-upgrade mode, the secondary boot program only judges the display, and the startup time is very short, meeting the requirements of rapid startup of the instrument system. In upgrade mode, it only contains necessary drivers to reduce the space occupied by the program.

[0102] Main program:

[0103] After the instrument system is started up and the first frame of the screen is displayed, the system startup status Reboot_Flag is recorded and set to success.

[0104] The main program flow is:

[0105] Assume that the main program A is switched to its entry point, and the main program B runs in the same process as A. After the first frame of the screen is displayed, the system startup status Reboot_Flag is set to success.

[0106] For example, Figure 6 This is a workflow diagram for starting an instrument program provided by an embodiment of the present invention. Figure 6 As shown, the workflow for starting the instrument program includes the following steps:

[0107] For the main boot program, first enter the trusted program entry, obtain the secondary boot program AB side flag (assuming the current side is A), check the integrity of the secondary boot program A side, if side A is complete, jump to the secondary boot program A side entry, if side A is incomplete, record the failure of secondary boot program A side, then check the integrity of the secondary boot program B side, if side B is complete, jump to the secondary boot program B side entry, if side B is incomplete, record the failure of secondary boot program B side, and end the program startup steps.

[0108] For the secondary boot program side A, first check the running status. If it is abnormal, jump to the main program entry of side B. If the status is normal, perform a subsequent startup mode check and then determine whether it is an upgrade mode. If not, jump to the main program entry of side A. If so, upgrade side B.

[0109] Correspondingly, for the secondary boot program side B, the running status is checked first. If it is abnormal, it jumps to the main program entry of side A. If the status is normal, a subsequent startup mode check is performed, and then it is determined whether it is an upgrade mode. If not, it jumps to the main program entry of side B. If so, the A side is upgraded.

[0110] The technical solution provided by the embodiment of the present invention is to obtain the first program identification information and the first program verification value of the first boot program after receiving the instrument verification instruction, and determine the first preset verification value corresponding to the first boot program based on the first program identification information; when the first program verification value and the first preset verification value are the same, the first boot program is used as the target secondary boot program; the state identification value of the target secondary boot program is obtained, and the state verification result is determined according to the state identification value; when the state verification result is a normal state, the mode identification value of the target secondary boot program is obtained, and the mode verification result is determined according to the mode identification value; when the state verification result is a normal state and the mode verification result is a non-upgrade mode, the main program corresponding to the target secondary boot program is started to complete the instrument program startup step. The technical solution of the embodiment of the present invention solves the problem of the long startup time of the vehicle instrument system in the prior art, and only some key programs can be verified during startup, which reduces the startup time of the vehicle instrument system while meeting the requirements of system operation safety, and improves the user experience.

[0111] Figure 7 It is a structural schematic diagram of an instrument program starting device provided by an embodiment of the present invention. The embodiment of the present invention can be applied to the scenario of starting the program of the vehicle instrument system, wherein the instrument program includes a main boot program, a secondary boot program and a main program; wherein the secondary boot program includes a first boot program and a second boot program; the main program includes a first main program and a second main boot program; the first main program and the second main boot program are different versions of the same program; the device can be implemented by software and / or hardware and integrated in a computer device with application development function.

[0112] like Figure 7 As shown, the instrument program starting device includes: a road information acquisition module 310 , a control parameter determination module 320 and a control parameter determination module 330 .

[0113] Among them, the secondary boot program determination module 310 is used to verify the integrity of the first boot program and the second boot program based on the main boot program after receiving the instrument verification instruction, and determine the target secondary boot program based on the integrity verification result; the verification result determination module 320 is used to verify the current state and current mode of the target secondary boot program to obtain the state verification result and the mode verification result; the main program startup module 330 is used to start the main program corresponding to the target secondary boot program when the state verification result is a normal state and the mode verification result is a non-upgrade mode, and complete the instrument program startup step.

[0114] The technical solution provided by the embodiment of the present invention verifies the integrity of the first boot program and the second boot program based on the main boot program after receiving the instrument verification instruction, and determines the target secondary boot program based on the integrity verification result; verifies the current state and current mode of the target secondary boot program to obtain the state verification result and the mode verification result; when the state verification result is a normal state and the mode verification result is a non-upgrade mode, starts the main program corresponding to the target secondary boot program to complete the instrument program startup step. The technical solution of the embodiment of the present invention solves the problem of the long startup time of the vehicle instrument system in the prior art. Only some key programs can be verified during startup, which reduces the startup time of the vehicle instrument system while meeting the requirements of system operation safety and improves the user experience.

[0115] In an optional embodiment, the secondary boot program determination module 310 includes: a first program determination unit, used to: obtain first program identification information and a first program verification value of the first boot program; based on the first program identification information, determine a first preset verification value corresponding to the first boot program; when the first program verification value and the first preset verification value are the same, use the first boot program as the target secondary boot program.

[0116] In an optional embodiment, the secondary boot program determination module 310 also includes: a second program determination unit, used to: when the first program verification value and the first preset verification value are different, obtain the second program identification information and the second program verification value of the second boot program; based on the second program identification information, determine the second preset verification value corresponding to the second boot program; when the second program verification value and the second preset verification value are the same, use the second boot program as the target secondary boot program.

[0117] In an optional embodiment, the verification result determination module 320 is specifically used to: obtain a state identification value of the target secondary boot program, and determine the state verification result based on the state identification value; wherein the state verification result includes a normal state and an abnormal state; when the state verification result is the normal state, obtain a mode identification value of the target secondary boot program, and determine the mode verification result based on the mode identification value; wherein the mode verification result includes an upgrade mode and a non-upgrade mode.

[0118] In an optional implementation, the instrument program startup device further includes: an abnormal state processing module, configured to: start the second main program when the state verification result is the abnormal state.

[0119] In an optional embodiment, the instrument program startup device also includes: a program upgrade module, which is used to: when the mode verification result is the upgrade mode, start the upgrade program for the second main program, so that the second main program upgrades the program data based on the upgrade program.

[0120] In an optional implementation, the instrument program startup device further includes: a startup status display module, configured to display program startup failure information on a preset display interface when the second program verification value is different from the second preset verification value.

[0121] The instrument program startup device provided in the embodiment of the present invention can execute the instrument program startup method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0122] Figure 8 A schematic diagram of the structure of a computer device provided in an embodiment of the present invention. Figure 8 A block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 8 The computer device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention. The computer device 12 can be any terminal device with computing capability and can be configured in the instrument program startup device.

[0123] like Figure 8 As shown, the computer device 12 is in the form of a general-purpose computing device. The components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0124] The bus 18 may be one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. For example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0125] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.

[0126] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache 32. The computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 8 not shown, usually called a "hard drive"). Although Figure 8Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0127] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0128] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), one or more devices that enable a user to interact with the computer device 12, and / or any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed through an input / output (I / O) interface 22. Furthermore, the computer device 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) through a network adapter 20. Figure 8 As shown, the network adapter 20 communicates with other modules of the computer device 12 via the bus 18. It should be understood that although Figure 8 Not shown, other hardware and / or software modules may be used in conjunction with computer device 12, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0129] The processing unit 16 executes various functional applications and data processing by running the program stored in the system memory 28, for example, the instrument program startup method provided in the embodiment of the present invention is implemented, which is applied to the scenario of starting the instrument program of the vehicle instrument system, wherein the instrument program includes a main boot program, a secondary boot program and a main program; wherein the secondary boot program includes a first boot program and a second boot program; the main program includes a first main program and a second main boot program; the first main program and the second main boot program are different versions of the same program; the method includes:

[0130] After receiving the instrument verification instruction, verify the integrity of the first boot program and the second boot program based on the main boot program, and determine the target secondary boot program based on the integrity verification result;

[0131] Checking the current state and current mode of the target secondary boot program to obtain a state check result and a mode check result;

[0132] When the state check result is a normal state and the mode check result is a non-upgrade mode, the main program corresponding to the target secondary boot program is started to complete the instrument program start step.

[0133] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the method for starting an instrument program provided in any embodiment of the present invention is implemented, and the method is applied to a scenario of starting an instrument program of a vehicle instrument system, wherein the instrument program includes a main boot program, a secondary boot program, and a main program; wherein the secondary boot program includes a first boot program and a second boot program; the main program includes a first main program and a second main boot program; the first main program and the second main boot program are different versions of the same program; the method includes:

[0134] After receiving the instrument verification instruction, verify the integrity of the first boot program and the second boot program based on the main boot program, and determine the target secondary boot program based on the integrity verification result;

[0135] Checking the current state and current mode of the target secondary boot program to obtain a state check result and a mode check result;

[0136] When the state check result is a normal state and the mode check result is a non-upgrade mode, the main program corresponding to the target secondary boot program is started to complete the instrument program start step.

[0137] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0138] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0139] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0140] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or combinations thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0141] It should be understood by those skilled in the art that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0142] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for starting an instrument program, applied to a scenario of starting an instrument program of a vehicle instrument system, wherein: The instrument program includes a main boot program, a secondary boot program and a main program; wherein the secondary boot program includes a first boot program and a second boot program; the main program includes a first main program and a second main boot program; the first main program and the second main boot program are different versions of the same program; the method includes: After receiving the instrument verification instruction, verify the integrity of the first boot program and the second boot program based on the main boot program, and determine the target secondary boot program based on the integrity verification result; Checking the current state and current mode of the target secondary boot program to obtain a state check result and a mode check result; When the state check result is a normal state and the mode check result is a non-upgrade mode, the main program corresponding to the target secondary boot program is started to complete the instrument program start step.

2. The method according to claim 1, characterized in that The step of verifying the integrity of the first boot program and the second boot program based on the primary boot program, and determining a target secondary boot program based on the integrity verification result, includes: Obtaining first program identification information and a first program verification value of the first boot program; Determining a first preset check value corresponding to the first boot program based on the first program identification information; When the first program check value is the same as the first preset check value, the first boot program is used as the target secondary boot program.

3. The method according to claim 2, characterized in that The step of verifying the integrity of the first boot program and the second boot program based on the primary boot program, and determining the target secondary boot program based on the integrity verification result, further includes: When the first program check value is different from the first preset check value, obtaining second program identification information and a second program check value of the second boot program; Determining a second preset check value corresponding to the second boot program based on the second program identification information; When the second program check value is the same as the second preset check value, the second boot program is used as the target secondary boot program.

4. The method according to claim 1, characterized in that: The checking of the current state and the current mode of the target secondary boot program to obtain a state check result and a mode check result includes: Acquire the state identification value of the target secondary boot program, and determine the state verification result according to the state identification value; wherein the state verification result includes a normal state and an abnormal state; When the state check result is the normal state, a mode identification value of the target secondary boot program is obtained, and the mode check result is determined according to the mode identification value; wherein the mode check result includes an upgrade mode and a non-upgrade mode.

5. The method according to claim 4, characterized in that The method further comprises: When the status check result is the abnormal status, the second main program is started.

6. The method according to claim 4, characterized in that The method further comprises: When the mode verification result is the upgrade mode, an upgrade program for the second main program is started, so that the second main program upgrades program data based on the upgrade program.

7. The method according to claim 3, characterized in that The method further comprises: When the second program verification value is different from the second preset verification value, a program startup failure message is displayed on a preset display interface.

8. An instrument program starting device, used in the scenario of starting an instrument program of a vehicle instrument system, wherein: The instrument program includes a main boot program, a secondary boot program and a main program; wherein the secondary boot program includes a first boot program and a second boot program; the main program includes a first main program and a second main boot program; the first main program and the second main boot program are different versions of the same program; the device includes: A secondary boot program determination module, configured to verify the integrity of the first boot program and the second boot program based on the main boot program after receiving the instrument verification instruction, and determine a target secondary boot program based on the integrity verification result; A verification result determination module, used to verify the current state and current mode of the target secondary boot program, and obtain a state verification result and a mode verification result; The main program startup module is used to start the main program corresponding to the target secondary boot program when the state check result is a normal state and the mode check result is a non-upgrade mode, and complete the instrument program startup step.

9. A computer device, characterized in that: The computer device comprises: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the instrument program startup method as described in any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the instrument program startup method as described in any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Remote communication module master-slave state monitoring and switching system

    CN120653282A

  • Instrument program startup method and apparatus, device, and storage medium

    WO2026001841A1