Vehicle-mounted terminal starting method and device, vehicle-mounted terminal and storage medium

By using a dual memory design with system memory and logical memory in the on-board terminal, the operating system is started from the backup data of the logical memory when the power is abnormal, and disk repair and data recovery are carried out, the problems of complex recovery mechanism and insufficient reliability in the existing technology are solved, and efficient and reliable data recovery is achieved.

CN119902809APending Publication Date: 2025-04-29NANJING BESTWAY AUTOMATION SYST
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411988564.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-04-29

AI Technical Summary

Technical Problem

When existing vehicle terminals are powered off abnormally, the recovery mechanism is complex and lack of reliability, which may lead to data corruption in the system memory, resulting in the operating system being unable to start or user data being lost.

Method used

The dual memory design of system memory and logical memory is adopted. When the power is abnormal, the operating system of the on-board terminal is started from the backup data of the logical memory, and after the system starts normally, the system memory is disk repaired and data recovery is performed.

Benefits of technology

The data recovery process is simplified, the recovery efficiency and reliability are improved, the operating system cannot be started or user data loss caused by abnormal power outages, and the driver's safety and user experience are guaranteed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119902809A_ABST
    Figure CN119902809A_ABST
Patent Text Reader

Abstract

The invention discloses a starting method and device of a vehicle-mounted terminal, the vehicle-mounted terminal and a storage medium, and the vehicle-mounted terminal comprises a system memory and a logic memory; the starting method comprises the steps that the vehicle-mounted terminal is powered on, and whether data of a system memory are damaged or not is judged; if the data of the system memory is damaged, starting an operating system of the vehicle-mounted terminal through the data backed up by the logic memory; mounting a logic memory into a read-only mode, and mounting a system memory into a read-write mode; and performing disk repair on the system memory, and recovering the data backed up by the logic memory to the system memory. The reliability and the stability of the vehicle-mounted terminal are effectively improved, the problem that an operating system of the vehicle-mounted terminal is abnormal and cannot be started or user data is lost due to abnormal power failure is avoided, and the safety of a driver and the user experience are guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent transportation technology, and in particular to a method and device for starting a vehicle-mounted terminal, a vehicle-mounted terminal and a storage medium. Background Art

[0002] With the rapid development of intelligent transportation technology, vehicle terminals are increasingly used in modern vehicles. Vehicle terminals are not only used for navigation, entertainment and communication, but also undertake multiple functions such as vehicle control and safety monitoring. However, in actual use, vehicle terminals may encounter various abnormal situations, one of the most common problems is abnormal power failure. Abnormal power failure may cause data corruption in the system memory, which in turn causes problems such as the inability to start the vehicle terminal's operating system or loss of user data, seriously affecting the normal operation of the vehicle and user experience.

[0003] Traditional vehicle terminals usually use a single memory to store system data and user data. When an abnormal power outage occurs, the data in the memory may be destroyed, causing the vehicle terminal's operating system to fail to start normally. To solve this problem, existing vehicle terminals use a dual memory design, namely a main memory and a backup memory, but the recovery mechanism of existing vehicle terminals usually requires complex software logic and hardware support, which increases the complexity and cost of the system. At the same time, during the data recovery process, if the vehicle terminal loses power again, the backup data in the backup memory may be damaged, causing both memories to fail to work properly, greatly reducing the reliability of the vehicle terminal. Summary of the invention

[0004] The present invention provides a vehicle-mounted terminal startup method, device, vehicle-mounted terminal and storage medium to solve the problems of complex recovery mechanism and insufficient reliability of the existing vehicle-mounted terminal.

[0005] In a first aspect, the present invention provides a method for starting a vehicle-mounted terminal, wherein the vehicle-mounted terminal includes a system memory and a logic memory; the starting method includes:

[0006] Power on the vehicle terminal and determine whether the data in the system memory is damaged;

[0007] If the data in the system memory is damaged, the operating system of the vehicle terminal is started through the data backed up in the logical memory;

[0008] Mount the logical storage in read-only mode and the system storage in read-write mode;

[0009] Perform disk repair on the system memory and restore the data backed up from the logical memory to the system memory.

[0010] Optionally, after determining whether the data in the system memory is damaged, the method further includes:

[0011] If the data in the system memory is not damaged, mount the system memory in read-only mode and mount the logical memory in read-write mode;

[0012] Back up the data in the system memory to the logical memory again;

[0013] Mount the system memory in read-write mode and the logical memory in read-only mode;

[0014] The operating system of the vehicle terminal is started through the data in the system memory.

[0015] Optionally, after performing disk repair on the system memory and restoring the data backed up in the logical memory to the system memory, the method further includes:

[0016] Keep the system memory mounted in read-write mode and the logical memory mounted in read-only mode;

[0017] Control the vehicle terminal to power on again.

[0018] Optionally, determining whether data in the system memory is damaged includes:

[0019] The system memory is found according to the bus matching, and other startup data of the system memory is found according to the start bit of the address of the rootfs partition of the system memory, and it is determined whether the other startup data is damaged.

[0020] Optionally, the operating system of the vehicle terminal is started by using the data backed up in the logical memory, including:

[0021] Find the logical storage that backs up the data of the system storage according to the bus matching, and mount the logical storage in read-only mode;

[0022] The operating system of the vehicle terminal is started according to the address of the rootfs partition of the logical storage.

[0023] In a second aspect, the present invention provides a starting device for a vehicle-mounted terminal, the starting device comprising:

[0024] A first startup module, used to start the operating system of the vehicle terminal through the data backed up in the logical memory when the data in the system memory is damaged;

[0025] A mode mounting module is used to mount the logical memory in read-only mode and the system memory in read-write mode;

[0026] A repair module, used for performing disk repair on the system memory;

[0027] The data recovery module is used to restore the data backed up in the logical memory to the system memory.

[0028] Optionally, the mode mounting module is also used to mount the system memory in read-only mode and mount the logical memory in read-write mode.

[0029] Optionally, the starting device further includes:

[0030] A backup module, used for backing up the data in the system memory to the logical memory;

[0031] The second startup module is used to start the operating system of the vehicle terminal through the data in the system memory.

[0032] In a third aspect, the present invention provides a vehicle-mounted terminal, wherein the vehicle-mounted terminal is started using the vehicle-mounted terminal starting method provided in the first aspect.

[0033] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to execute the startup method of the vehicle-mounted terminal provided in the first aspect above.

[0034] The technical solution of the embodiment of the present invention, through the dual memory design of the system memory and the logical memory, can start the operating system of the vehicle terminal from the backup logical memory when the data of the system memory is damaged due to abnormal power failure. After the operating system of the vehicle terminal is normally started, the processor automatically repairs the damaged system memory and recovers the data from the logical memory to ensure that the system resumes normal operation. The processor can complete the data recovery of the system memory through simple mounting switching and data copying operations, which simplifies the data recovery process and improves the recovery efficiency and reliability. At the same time, in the process of recovering data, the logical memory of the operating system of the vehicle terminal can be normally started in a read-only state, avoiding the problem that the backup logical memory data is damaged due to abnormal power failure again during the data recovery process, resulting in the problem that both memories cannot work normally. The technical solution of the embodiment of the present invention, when the vehicle terminal is abnormally powered off, can ensure that the operating system of the vehicle terminal is started from the backup logical memory, and after the startup is completed, the system memory is repaired and the data is recovered, while ensuring the data consistency during the recovery process, effectively improving the reliability and stability of the vehicle terminal, avoiding the problem that the operating system of the vehicle terminal cannot be started abnormally or the user data is lost due to abnormal power failure, and ensuring the safety of the driver and user experience.

[0035] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0037] Figure 1 is a structural schematic diagram of a vehicle-mounted terminal provided by an embodiment of the present invention;

[0038] Figure 2 is a flow chart of a method for starting a vehicle terminal provided by an embodiment of the present invention;

[0039] Figure 3 is a flow chart of another method for starting a vehicle terminal provided by an embodiment of the present invention;

[0040] Figure 4 is a flow chart of another method for starting a vehicle terminal provided by an embodiment of the present invention;

[0041] Figure 5 is a flow chart of another method for starting a vehicle terminal provided by an embodiment of the present invention;

[0042] Figure 6 It is a structural schematic diagram of a starting device of a vehicle-mounted terminal provided by an embodiment of the present invention;

[0043] Figure 7 A schematic diagram of the structure of an electronic device that can be used to implement an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0044] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme 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 only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0045] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0046] Figure 1 is a schematic structural diagram of a vehicle-mounted terminal provided by an embodiment of the present invention, Figure 2 is a flow chart of a method for starting a vehicle terminal provided by an embodiment of the present invention, such as Figure 1 As shown, the vehicle terminal 1 includes a system memory 11 and a logic memory 12. Figure 2 As shown, the startup method includes:

[0047] S100: The vehicle terminal is powered on to determine whether the data in the system memory is damaged.

[0048] Specifically, Figure 1 As shown, the vehicle terminal 1 may include a mainboard and a logic memory 12, and the mainboard and the logic memory 12 are connected via a serial peripheral interface (Serial Peripheral Interface, SPI). A processor and a system memory 11 are provided on the mainboard, that is, the system memory 11 and the logic memory 12 are connected via SPI. The logic memory 12 has data identical to the data in the system memory 11 backed up internally. During the startup of the operating system of the vehicle terminal 1, the vehicle terminal 1 is first powered on, and the processor determines whether the data in the system memory 11 is damaged. The data in the system memory 11 may include system data and user data. If the processor determines that the data in the system memory 11 is damaged, S111 is executed.

[0049] S111: Starting the operating system of the vehicle terminal through the data backed up in the logical memory.

[0050] Specifically, Figure 1As shown, after the processor determines that the data in the system memory 11 is damaged, the processor can mount the logic memory 12 in read-only mode, and start the operating system of the vehicle terminal 1 through the data backed up in the logic memory 12 that is the same as the data in the system memory 11, that is, load the necessary system files and configuration files from the logic memory 12 to ensure that the operating system of the vehicle terminal 1 can be started normally. It is ensured that the vehicle terminal 1 can be started normally after the data in the system memory 11 is damaged due to abnormal power failure.

[0051] S120: Mount the logical memory in read-only mode, and mount the system memory in read-write mode.

[0052] Specifically, Figure 1 As shown, after the vehicle terminal 1 is normally started, the vehicle terminal 1 enters the recovery process. At this time, the processor mounts the system memory 11 in a read-write mode to ensure that the data can be written normally. The processor continues to mount the logical memory 12 in a read-only mode to avoid the vehicle terminal 1 being powered off again during the recovery process, causing the data in the logical memory 12 to be damaged, thereby causing both the system memory 11 and the logical memory 12 to fail to work properly, and also to avoid the problem of the data restored from the logical memory 12 to the system memory 11 being inconsistent with the backup data due to another power outage, and the problem of incomplete data recovery.

[0053] S130: Perform disk repair on the system memory, and restore the data backed up in the logical memory to the system memory.

[0054] Specifically, Figure 1 As shown, the processor starts to perform disk repair operations on the system memory 11 to check and repair the damaged file system. After the repair is completed, the processor restores the backup data in the logical memory 12 to the system memory 11 to complete the data recovery of the system memory 11. During the recovery process, the system memory 11 remains in a readable and writable state to ensure that data can be written normally.

[0055] The technical solution of the embodiment of the present invention, through the dual memory design of the system memory and the logical memory, can start the operating system of the vehicle terminal from the backup logical memory when the data of the system memory is damaged due to abnormal power failure. After the operating system of the vehicle terminal is normally started, the processor automatically repairs the damaged system memory and recovers the data from the logical memory to ensure that the system resumes normal operation. The processor can complete the data recovery of the system memory through simple mounting switching and data copying operations, which simplifies the data recovery process and improves the recovery efficiency and reliability. At the same time, in the process of recovering data, the logical memory of the operating system of the vehicle terminal can be normally started in a read-only state, avoiding the problem that the backup logical memory data is damaged due to abnormal power failure again during the data recovery process, resulting in the problem that both memories cannot work normally. The technical solution of the embodiment of the present invention, when the vehicle terminal is abnormally powered off, can ensure that the operating system of the vehicle terminal is started from the backup logical memory, and after the startup is completed, the system memory is repaired and the data is recovered, while ensuring the data consistency during the recovery process, effectively improving the reliability and stability of the vehicle terminal, avoiding the problem that the operating system of the vehicle terminal cannot be started abnormally or the user data is lost due to abnormal power failure, and ensuring the safety of the driver and user experience.

[0056] Optionally, based on the above embodiments, Figure 3 is a flowchart of another method for starting a vehicle terminal provided by an embodiment of the present invention, such as Figure 3 As shown, the startup method includes:

[0057] S200: The vehicle terminal is powered on to determine whether the data in the system memory is damaged.

[0058] Specifically, Figure 1 As shown, if the processor determines that the data in the system memory 11 is damaged, S211 is executed; if the processor determines that the data in the system memory 11 is not damaged, S212 is executed.

[0059] S211: Start the operating system of the vehicle terminal through the data backed up in the logical memory.

[0060] S221: Mount the logical storage in read-only mode and mount the system storage in read-write mode.

[0061] S231: Perform disk repair on the system memory and restore the data backed up in the logical memory to the system memory.

[0062] Specifically, Figure 1 As shown, after the data recovery of the system memory 11 is completed, the vehicle terminal 1 can be powered on again through the processor or manual control, so that the vehicle terminal 1 enters a normal startup process.

[0063] S212: Mount the system memory in read-only mode, and mount the logical memory in read-write mode.

[0064] Specifically, Figure 1 As shown, if the processor determines that the data in the system memory 11 is not damaged, the processor mounts the system memory 11 in read-only mode to ensure that the data in the system memory 11 will not be changed, and mounts the logical memory 12 in read-write mode to prepare for data backup.

[0065] S222: Back up the data in the system memory to the logical memory again.

[0066] Specifically, Figure 1 As shown, the processor backs up the key data in the system memory 11, such as system files and configuration files, to the logical memory 12. Each time the vehicle terminal 1 is powered on, the processor determines that the data in the system memory 11 is not damaged, and the processor backs up the key data in the system memory 11 to the logical memory 12 to ensure that the backup data in the logical memory 12 is always consistent with the data in the system memory 11. During the data backup process, the system memory 11 remains in a read-only state to prevent the data in the system memory 11 from being accidentally modified.

[0067] S232: Mount the system memory in a read-write mode and mount the logical memory in a read-only mode.

[0068] Specifically, Figure 1 As shown, after the data backup is completed, in order to configure the user data after subsequent startup, the processor mounts the system memory 11 in a read-write mode to allow normal operation of the system of the vehicle terminal 1. The processor mounts the logic memory 12 in a read-only mode as a backup memory.

[0069] S242: Start the operating system of the vehicle terminal through the data in the system memory.

[0070] Specifically, Figure 1 As shown, the processor loads necessary system files and configuration files from the system memory 11 to ensure that the operating system of the vehicle terminal 1 can operate normally, and the vehicle terminal 1 enters a normal operating state.

[0071] When backing up data in an existing vehicle-mounted terminal, if a power outage occurs again, the data in the main memory and the backup memory may be inconsistent, that is, some data may not be fully backed up, thus affecting the effect of data recovery. The technical solution of the embodiment of the present invention mounts the system memory 11 in read-only mode during data backup, effectively avoiding the problem of inconsistent data backup caused by another power outage during data backup, and further improving the reliability and data security of the vehicle-mounted terminal 1 under abnormal power outages. The technical solution of the embodiment of the present invention makes the memory of the operating system that can normally start the vehicle-mounted terminal 1 in a read-only state during data backup and data recovery, that is, during the data backup process, the system memory 11 is guaranteed to be in a read-only state, and during the data recovery process, the logical memory 12 is guaranteed to be in a read-only state, preventing the two memories from failing to work normally due to another power outage during data backup and data recovery, while ensuring data consistency and integrity during data backup and data recovery, and improving the reliability and stability of the vehicle-mounted terminal 1.

[0072] Optionally, based on the above embodiments, Figure 4 is a flowchart of another method for starting a vehicle terminal provided by an embodiment of the present invention, such as Figure 4 As shown, the startup method includes:

[0073] S300: Find the system memory according to the bus matching, find other startup data of the system memory according to the start bit of the address of the rootfs partition of the system memory, and determine whether the other startup data is damaged.

[0074] Specifically, Figure 1 As shown, in the boot phase, the code of the system memory 11 has the starting flash addresses of the boot partition, kernel partition, and rootfs partition by default. The processor finds other startup data on the system memory 11 according to the matching of the device bus, and the processor determines whether the other startup data is damaged. If the processor determines that the other startup data is damaged, S311 is executed, and if the processor determines that the other startup data is not damaged, S312 is executed.

[0075] S311: Start the operating system of the vehicle terminal through the data backed up in the logical memory.

[0076] S321: Mount the logical storage in read-only mode and mount the system storage in read-write mode.

[0077] S331: Perform disk repair on the system memory and restore the data backed up in the logical memory to the system memory.

[0078] S312: Mount the system memory in read-only mode, and mount the logical memory in read-write mode.

[0079] S322: Back up the data in the system memory to the logical memory again.

[0080] S332: Mount the system memory in a read-write mode and mount the logical memory in a read-only mode.

[0081] S342: Start the operating system of the vehicle terminal through the data in the system memory.

[0082] Optionally, based on the above embodiments, Figure 5 is a flowchart of another method for starting a vehicle terminal provided by an embodiment of the present invention, such as Figure 5 As shown, the startup method includes:

[0083] S400: The vehicle terminal is powered on to determine whether the data in the system memory is damaged.

[0084] Specifically, Figure 1 As shown, if the processor determines that the data in the system memory 11 is damaged, S411 is executed; if the processor determines that the data in the system memory 11 is not damaged, S412 is executed.

[0085] S411: Find the logical storage that backs up the data of the system storage according to the bus matching, and mount the logical storage in read-only mode.

[0086] Specifically, Figure 1 As shown, the processor finds other startup data on the system memory 11 according to the matching of the device bus, and the processor determines whether the other startup data is damaged. If the other startup data is damaged, the processor finds the logical memory 12 with data backup according to the matching of the device bus, and mounts the logical memory 12 in read-only mode.

[0087] S421: Start the operating system of the vehicle terminal according to the address of the rootfs partition of the logical memory.

[0088] Specifically, Figure 1 As shown, the processor starts to start the operating system of the vehicle terminal 1 according to the rootfs partition address on the logical memory 12.

[0089] S431: Mount the logical storage in read-only mode and mount the system storage in read-write mode.

[0090] S441: Perform disk repair on the system memory and restore the data backed up in the logical memory to the system memory.

[0091] S412: Mount the system memory in read-only mode, and mount the logical memory in read-write mode.

[0092] S422: Back up the data in the system memory to the logical memory again.

[0093] S432: Mount the system memory in a read-write mode and mount the logical memory in a read-only mode.

[0094] S442: Start the operating system of the vehicle terminal through the data in the system memory.

[0095] Figure 6 is a schematic diagram of the structure of a starting device of a vehicle terminal provided by an embodiment of the present invention, such as Figure 6 As shown, the startup device includes: a first startup module 21, used to start the operating system of the vehicle terminal through the data backed up in the logical memory when the data in the system memory is damaged. A mode mounting module 22, used to mount the logical memory in read-only mode and the system memory in read-write mode. A repair module 23, used to perform disk repair on the system memory. A data recovery module 24, used to restore the data backed up in the logical memory to the system memory.

[0096] Specifically, refer to Figure 1 In the process of starting the operating system of the vehicle terminal 1, the vehicle terminal 1 is first powered on. After the data in the system memory 11 is damaged, the mode mounting module 22 can mount the logic memory 12 in read-only mode. The first startup module 21 starts the operating system of the vehicle terminal 1 through the data backed up in the logic memory 12 that is the same as the data in the system memory 11, that is, loads the necessary system files and configuration files from the logic memory 12 to ensure that the operating system of the vehicle terminal 1 can be started normally. It is ensured that the vehicle terminal 1 can be started normally after the data in the system memory 11 is damaged due to abnormal power failure.

[0097] After the vehicle terminal 1 is started normally, the vehicle terminal 1 enters the recovery process. At this time, the mode mounting module 22 mounts the system memory 11 in a read-write mode to ensure that data can be written normally. The mode mounting module 22 continues to mount the logical memory 12 in a read-only mode to avoid the vehicle terminal 1 being powered off again during the recovery process, causing the data in the logical memory 12 to be damaged, thereby causing both the system memory 11 and the logical memory 12 to fail to work properly, and also to avoid the problem of the data restored from the logical memory 12 to the system memory 11 being inconsistent with the backup data and the incomplete data recovery caused by another power outage.

[0098] Finally, the repair module 23 starts to perform disk repair operations on the system memory 11, checks and repairs the damaged file system. After the repair is completed, the data recovery module 24 restores the backup data in the logical memory 12 to the system memory 11, completing the data recovery of the system memory 11. During the recovery process, the system memory 11 remains in a readable and writable state to ensure that data can be written normally.

[0099] The technical solution of the embodiment of the present invention, through the dual memory design of system memory and logical memory, when the system memory data is damaged due to abnormal power failure, the first startup module 21 can start the operating system of the vehicle terminal from the backup logical memory. After the operating system of the vehicle terminal is normally started, the repair module 23 automatically repairs the damaged system memory, and the data recovery module 24 recovers the data from the logical memory to ensure that the system resumes normal operation. The mode mounting module 22 can complete the data recovery of the system memory through simple mounting switching, and the data recovery module 24 can complete the data recovery of the system memory through simple data copying operations, which simplifies the data recovery process and improves the recovery efficiency and reliability. At the same time, in the process of recovering data, the logical memory of the operating system of the vehicle terminal that can be normally started is in a read-only state, avoiding the problem that the backup logical memory data is damaged due to abnormal power failure again during the data recovery process, resulting in the two memories not being able to work normally. The technical solution of the embodiment of the present invention can ensure that the operating system of the vehicle terminal is started from the backup logical memory when the vehicle terminal is abnormally powered off, and perform disk repair and data recovery on the system memory after the startup is completed, while ensuring data consistency during the recovery process, thereby effectively improving the reliability and stability of the vehicle terminal, avoiding the problem of the vehicle terminal's operating system being unable to start up or user data being lost due to abnormal power off, and ensuring the driver's safety and user experience.

[0100] Optionally, based on the above embodiments, continue to refer to Figure 6 The mode mounting module 22 is also used to mount the system memory in a read-only mode and mount the logical memory in a read-write mode.

[0101] Specifically, refer to Figure 1 The mode mounting module 22 can mount the system memory 11 as a read-only mode or a read-write mode, and can also mount the logical memory 12 as a read-only mode or a read-write mode. The mode mounting module 22 can switch the mounting of the system memory 11 and the logical memory 12 arbitrarily.

[0102] Optionally, based on the above embodiments, continue to refer to Figure 6 The startup device further includes: a backup module 25, which is used to back up the data in the system memory to the logic memory. A second startup module 26, which is used to start the operating system of the vehicle terminal through the data in the system memory.

[0103] Specifically, refer to Figure 1When the data in the system memory 11 is not damaged, the mode mounting module 22 mounts the system memory 11 in read-only mode to ensure that the data in the system memory 11 will not be changed. The mode mounting module 22 mounts the logical memory 12 in read-write mode to prepare for data backup.

[0104] The backup module 25 backs up the key data in the system memory 11, such as system files and configuration files, to the logical memory 12. Each time the vehicle terminal 1 is powered on, if the data in the system memory 11 is not damaged, the backup module 25 will back up the key data in the system memory 11 to the logical memory 12 to ensure that the backup data in the logical memory 12 is always consistent with the data in the system memory 11. During the data backup process, the system memory 11 remains in a read-only state to prevent the data in the system memory 11 from being accidentally modified.

[0105] After the data backup is completed, in order to configure the user data after subsequent startup, the mode mounting module 22 mounts the system memory 11 in a read-write mode to allow normal operation of the system of the vehicle terminal 1. The mode mounting module 22 mounts the logic memory 12 in a read-only mode as a backup memory.

[0106] The second startup module 26 loads necessary system files and configuration files from the system memory 11 to ensure that the operating system of the vehicle-mounted terminal 1 can operate normally, and the vehicle-mounted terminal 1 enters a normal working state.

[0107] According to the technical solution of the embodiment of the present invention, during data backup, the mode mounting module 22 mounts the system memory 11 in read-only mode, which effectively avoids the problem of inconsistent data backup caused by power failure during data backup, and further improves the reliability and data security of the vehicle terminal 1 in the case of abnormal power failure. According to the technical solution of the embodiment of the present invention, during data backup and data recovery, the memory of the operating system that can normally start the vehicle terminal 1 is in a read-only state, that is, during data backup, the mode mounting module 22 ensures that the system memory 11 is in a read-only state, and during data recovery, the mode mounting module 22 ensures that the logical memory 12 is in a read-only state, preventing the two memories from being unable to work normally due to power failure during data backup and data recovery, and at the same time ensuring data consistency and integrity during data backup and data recovery, and improving the reliability and stability of the vehicle terminal 1.

[0108] An embodiment of the present invention provides a vehicle-mounted terminal, and the vehicle-mounted terminal includes but is not limited to a vehicle-mounted terminal of a rubber-wheeled mining truck, wherein the vehicle-mounted terminal is started using the starting method of any vehicle-mounted terminal provided by any of the above embodiments of the present invention, that is, the vehicle-mounted terminal of the rubber-wheeled mining truck can be started using the starting method of any vehicle-mounted terminal provided by any of the above embodiments of the present invention, and the vehicle-mounted terminal provided by the embodiment of the present invention has the beneficial effects of the starting method of any vehicle-mounted terminal provided by any of the above embodiments of the present invention.

[0109] An embodiment of the present invention provides an electronic device, Figure 7 A schematic diagram of an electronic device that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device 30 can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0110] like Figure 7 As shown, the electronic device 30 includes at least one processor 31, and a memory connected to the at least one processor 31, such as a read-only memory (ROM) 32, a random access memory (RAM) 33, etc., and also includes a system memory 11 and a logic memory 12, and the system memory 11 and the logic memory 12 are connected to the processor 31 through a bus 34. Among them, the memory stores a computer program that can be executed by at least one processor 31, and the processor 31 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 32 or the computer program loaded from the storage unit 38 to the random access memory (RAM) 33. In the RAM 33, various programs and data required for the operation of the electronic device 30 can also be stored. The processor 31, the ROM 32 and the RAM 33 are connected to each other through the bus 34. The input / output (I / O) interface 35 is also connected to the bus 34.

[0111] A number of components in the electronic device 30 are connected to the I / O interface 35, including: an input unit 36, such as a keyboard, a mouse, etc.; an output unit 37, such as various types of displays, speakers, etc.; a storage unit 38, such as a disk, an optical disk, etc.; and a communication unit 39, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 39 allows the electronic device 30 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0112] The processor 31 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 31 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 31 executes the various methods and processes described above, such as the startup method of the vehicle terminal.

[0113] In some embodiments, the startup method of the vehicle terminal can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 38. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 30 via the ROM 32 and / or the communication unit 39. When the computer program is loaded into the RAM 33 and executed by the processor 31, one or more steps of the startup method of the vehicle terminal described above can be performed. Alternatively, in other embodiments, the processor 31 can be configured to execute the startup method of the vehicle terminal in any other appropriate manner (for example, by means of firmware).

[0114] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0115] The computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that when the computer programs are executed by the processor 31, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer programs may be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.

[0116] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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 foregoing.

[0117] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0118] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0119] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0120] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0121] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for starting a vehicle terminal, characterized in that: The vehicle-mounted terminal includes a system memory and a logic memory; The startup method comprises: The vehicle-mounted terminal is powered on to determine whether the data in the system memory is damaged; If the data in the system memory is damaged, starting the operating system of the vehicle terminal through the data backed up in the logical memory; Mounting the logical memory in read-only mode and mounting the system memory in read-write mode; Perform disk repair on the system memory, and restore the data backed up by the logical memory to the system memory.

2. The method for starting a vehicle terminal according to claim 1, characterized in that: After determining whether the data in the system memory is damaged, the method further includes: If the data in the system memory is not damaged, the system memory is mounted in a read-only mode, and the logical memory is mounted in a read-write mode; Backing up the data of the system memory to the logical memory again; Mounting the system memory in a readable and writable mode and mounting the logical memory in a read-only mode; The operating system of the vehicle terminal is started by using the data in the system memory.

3. The method for starting a vehicle terminal according to claim 1, characterized in that: After performing disk repair on the system memory and restoring the data backed up in the logical memory to the system memory, the method further includes: Keep the system memory mounted in a readable and writable mode, and the logical memory mounted in a read-only mode; Control the vehicle terminal to power on again.

4. The method for starting a vehicle terminal according to claim 1, characterized in that: Determining whether the data in the system memory is damaged includes: The system memory is found according to bus matching, other startup data of the system memory is found according to the start bit of the address of the rootfs partition of the system memory, and it is determined whether the other startup data is damaged.

5. The method for starting a vehicle terminal according to claim 1, characterized in that: Starting the operating system of the vehicle terminal through the data backed up by the logical memory includes: Find the logical memory having the data of the system memory backed up according to bus matching, and mount the logical memory in read-only mode; The operating system of the vehicle terminal is started according to the address of the rootfs partition of the logical memory.

6. A starting device for a vehicle terminal, characterized in that: include: A first startup module, used to start the operating system of the vehicle terminal through the data backed up in the logical memory when the data in the system memory is damaged; A mode mounting module, used for mounting the logic memory in a read-only mode and mounting the system memory in a read-write mode; A repair module, used for performing disk repair on the system memory; The data recovery module is used to restore the data backed up in the logical memory to the system memory.

7. The starting device of the vehicle terminal according to claim 6, characterized in that: The mode mounting module is further used to mount the system memory in a read-only mode and to mount the logic memory in a readable and writable mode.

8. The starting device of the vehicle terminal according to claim 6, characterized in that: Also includes: A backup module, used for backing up the data of the system memory to the logical memory; The second startup module is used to start the operating system of the vehicle terminal through the data in the system memory.

9. A vehicle-mounted terminal, characterized in that: The vehicle-mounted terminal is started by using the vehicle-mounted terminal starting method described in any one of claims 1 to 5.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to execute the startup method of the vehicle-mounted terminal according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Power-loss resistant Linux system boot method

    CN102262543A

  • Method and device for processing flash memory partition

    CN106033362A

  • Vehicle-mounted system recovery method and device

    CN113189907A

  • File system protection method, device and equipment and readable storage medium

    CN114238225A

  • Embedded Linux system power failure protection method and device and computer equipment

    CN115878377A