CN118277320A - Data storage control system, method, device, vehicle and product - Google Patents
Data storage control system, method, device, vehicle and product Download PDFInfo
- Publication number
- CN118277320A CN118277320A CN202211728947.5A CN202211728947A CN118277320A CN 118277320 A CN118277320 A CN 118277320A CN 202211728947 A CN202211728947 A CN 202211728947A CN 118277320 A CN118277320 A CN 118277320A
- Authority
- CN
- China
- Prior art keywords
- processor
- storage unit
- vehicle
- data
- energy storage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/16—Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/263—Arrangements for using multiple switchable power supplies, e.g. battery and AC
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/30—Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
- G06F11/202—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
- G06F11/2023—Failover techniques
- G06F11/2028—Failover techniques eliminating a faulty processor or activating a spare
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
- G06F11/202—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
- G06F11/2023—Failover techniques
- G06F11/203—Failover techniques using migration
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
- G06F11/2053—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where persistent mass storage functionality or persistent mass storage control functionality is redundant
- G06F11/2094—Redundant storage or storage space
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/0223—User address space allocation, e.g. contiguous or non contiguous base addressing
- G06F12/023—Free address space management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Computer Hardware Design (AREA)
- Power Engineering (AREA)
- Software Systems (AREA)
- Hardware Redundancy (AREA)
Abstract
The embodiment of the application provides a data storage control system, a data storage control method, a data storage control device, a data storage control vehicle and a data storage control product. The system comprises a first processor, a second processor, a main energy storage unit and a standby energy storage unit; the computing power of the first processor is higher than that of the second processor, and the energy consumption of the first processor is higher than that of the second processor; the first processor and the second processor are in communication connection with the volatile memory unit and the nonvolatile memory unit; the main energy storage unit is configured to provide power for the first processor, the second processor, the volatile storage unit and the nonvolatile storage unit; the backup energy storage unit is configured to power the second processor, the volatile storage unit, and the nonvolatile storage unit when the primary energy storage unit fails. When the main energy storage unit fails, the power consumption of the first processor is higher, the standby energy storage unit is used for supplying power to the second processor, the volatile storage unit, the nonvolatile storage unit and the like with low power consumption, so that the basic data storage function is realized, and the data loss in charge of the first processor caused by sudden power failure is avoided.
Description
Technical Field
The present application relates to the field of vehicle control technologies, and in particular, to a data storage control system, method, apparatus, vehicle, and product.
Background
With the development of vehicle technology, vehicles can be driven by vehicle assistance personnel or vehicles can be driven automatically in addition to passengers themselves.
Whether the path can be accurately planned when the vehicle is in the automatic driving mode is particularly important for the automatic driving effect of the vehicle. In other words, the more accurate the path planning of the vehicle during autopilot, the better the stability of the autopilot of the vehicle. However, in practical applications, due to complex and changeable environments, it is difficult to accurately execute a driving task according to a control instruction in a process of controlling a vehicle to execute the driving task by a controller.
Disclosure of Invention
The embodiment of the application provides a data storage control system, a data storage control method, a data storage control device, a data storage control vehicle and a data storage control product, and a scheme for improving reliability and safety of data storage.
In a first aspect, an embodiment of the present application provides a data storage control system for a vehicle, the system including: the system comprises a first processor, a second processor, a main energy storage unit and a standby energy storage unit;
Wherein the computing power of the first processor is higher than that of the second processor, and the energy consumption of the first processor is higher than that of the second processor;
the first processor and the second processor are in communication connection with a volatile memory unit and a nonvolatile memory unit;
The main energy storage unit is configured to provide power to the first processor, the second processor, the volatile storage unit, and the non-volatile storage unit;
the backup energy storage unit is configured to provide power to the second processor, the volatile storage unit, and the non-volatile storage unit when the primary energy storage unit fails.
Optionally, when the main energy storage unit works normally, the first processor stores the vehicle big data to a target memory address and a data block length, and sends the target memory address and the data block length to the second processor.
Optionally, when a storage instruction is received and the main energy storage unit fails, the standby energy storage unit supplies power to the second processor, the volatile storage unit and the nonvolatile storage unit;
and the second processor stores the vehicle big data in the volatile storage unit into the nonvolatile storage unit according to the received target memory address and the data block length.
Optionally, when the first processor fails, the second processor stores the vehicle big data in the volatile storage unit into the nonvolatile storage unit according to the received target memory address and data block length.
Optionally, when the main energy storage unit works normally, the second processor sends the processing process of the basic function data of the vehicle to the first processor.
Optionally, when the second processor fails, the first processor performs a processing task on the vehicle base function data according to the received processing procedure.
In a second aspect, an embodiment of the present application provides a vehicle control method, including:
The method comprises the steps of supplying power to a first processor, a second processor, a volatile storage unit and a nonvolatile storage unit which are connected with the first processor and the second processor at the same time through a main energy storage unit;
if a storage instruction for the big data of the vehicle is received, the first processor stores the big data of the vehicle;
The first processor sends a target memory address and a data block length for storing the vehicle big data to the second processor;
when the main energy storage unit fails, the standby energy storage unit supplies power for the second processor, the volatile storage unit and the nonvolatile storage unit;
and the second processor stores the vehicle big data in the volatile storage unit into the nonvolatile storage unit according to the received target memory address and the data block length.
Optionally, the method further comprises:
if a storage instruction for the basic function data of the vehicle is received, the second processor stores the basic function data of the vehicle;
The second processor transmits a process of processing the vehicle basic function data to the first processor.
Optionally, when the second processor fails, the first processor performs a processing task on the vehicle base function data according to the received processing procedure.
Optionally, the method further comprises:
and when the first processor fails, the second processor stores the vehicle big data in the volatile storage unit into the nonvolatile storage unit according to the received target memory address and the data block length.
In a third aspect, an embodiment of the present application provides a vehicle control apparatus, including:
The main energy storage unit is used for supplying power to the first processor, the second processor, the volatile storage unit and the nonvolatile storage unit which are connected with the first processor and the second processor at the same time;
The access module is used for storing the big data of the vehicle by the first processor if a storage instruction of the big data of the vehicle is received;
the sending module is used for sending the target memory address and the data block length for storing the vehicle big data to the second processor by the first processor;
the standby energy storage unit is used for supplying power to the second processor, the volatile storage unit and the nonvolatile storage unit by the standby energy storage unit when the main energy storage unit fails;
the access module is further configured to store the vehicle big data in the volatile storage unit to the nonvolatile storage unit according to the received target memory address and the received data block length.
In a fourth aspect, an embodiment of the present application provides a vehicle including: a vehicle body and a power source;
The vehicle body is provided with a nonvolatile storage unit and a processor;
the nonvolatile memory unit is used for storing one or more computer instructions;
The processor is configured to execute the one or more computer instructions for performing the steps in the method of the second aspect.
In a fifth aspect, embodiments of the present application provide a computer program product enabling the implementation of the steps of the method of the second aspect when executed.
In the data storage control system, the method, the device, the vehicle and the product provided by the embodiment of the application, in the vehicle, a lot of data needs to be collected and processed, for example, large vehicle data such as environment images and the like, and basic function data of the temperature and tire pressure vehicle are also provided. For vehicle big data, data processing is required with a first processor having high computational power, while for vehicle basic function data processing is required with a second processor having low computational power. In other words, both the first processor and the second processor have their own data processing tasks, and when one of the processors fails, the other processor may be used as a standby. Through the scheme, the processors with different calculation capacities are arranged in the vehicle, so that the hardware cost can be effectively reduced while the corresponding data processing requirements are met. In addition, the first processor and the second processor simultaneously share the same volatile memory unit and the same memory area so as to realize that the first processor and the second processor can mutually replace and process data storage tasks and ensure data security.
In the vehicle control system, a main energy storage unit and a standby energy storage unit with different power supply capacities are further arranged, the electric quantity of the main energy storage unit is sufficient, and electric energy required by work can be provided for all devices. When the main energy storage unit fails, but the power consumption is higher when the first processor works, the standby energy storage unit can be used for supplying power to the second processor, the volatile storage unit, the nonvolatile storage unit and the like, so that the basic data storage function is realized, and the situation that the first processor is responsible for losing big data of a vehicle due to sudden power failure is avoided. In addition, the standby energy storage unit only needs to store a small amount of electric energy to the second processor, so that the requirement on the electric energy storage capacity of the standby energy storage unit is reduced, and the cost of the standby energy storage unit is reduced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a schematic diagram of a vehicle control system according to an exemplary embodiment of the present application;
fig. 2 is a schematic flow chart of a vehicle control method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a vehicle control device according to an embodiment of the present application;
FIGS. 4a and 4b are schematic diagrams illustrating a first processor data processing procedure and a second processor data processing procedure, respectively, according to an embodiment of the present application;
Fig. 5 is a schematic structural diagram of a vehicle according to an embodiment of the present application.
Detailed Description
In order to enable those skilled in the art to better understand the present invention, the following description will make clear and complete descriptions of the technical solutions according to the embodiments of the present invention with reference to the accompanying drawings.
In some of the flows described in the description of the invention, the claims, and the figures described above, a number of operations occurring in a particular order are included, and the operations may be performed out of order or concurrently with respect to the order in which they occur. The sequence numbers of operations such as 101, 102, etc. are merely used to distinguish between the various operations, and the sequence numbers themselves do not represent any order of execution. In addition, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first" and "second" herein are used to distinguish different messages, devices, modules, etc., and do not represent a sequence, and are not limited to the "first" and the "second" being different types.
Processors of different data processing capabilities are configured for different data processing needs in a vehicle. For example, when a large amount of environmental data is collected by an in-vehicle vision sensor, a laser sensor, or the like, data processing is required, and the data processing is required by a processor with high computing power, such as network management or vehicle body control. It is readily appreciated that high power processors consume relatively high power. In order to ensure that a processor with high power can still work more safely and reliably under the condition of power failure, a standby power supply is configured for the processor, and then the standby power supply has high energy storage capacity, and the corresponding standby power supply has high cost and large volume.
Meanwhile, there are also some low-power processors in vehicles for processing simple basic function data of the vehicle. Such as a low-power processor for implementing network management or body control, a low-power processor for implementing in-vehicle, etc. Such low-power processors consume less power than high-power processors. Therefore, in order to ensure that a processor with low power can still work more safely and reliably under the condition of power failure, for example, emergency processing or implementation of functions required by regulations can be configured with a standby power supply, the standby power supply only needs low energy storage capability, and the corresponding standby power supply has low cost and small volume.
The embodiment of the application provides a vehicle control system. Fig. 1 is a schematic diagram of a vehicle control system according to an exemplary embodiment of the present application. As can be seen from fig. 1, the system comprises: the system comprises a first processor, a second processor, a main energy storage unit and a standby energy storage unit; wherein the computing power of the first processor is higher than that of the second processor, and the energy consumption of the first processor is higher than that of the second processor; the first processor and the second processor are in communication connection with a volatile memory unit and a nonvolatile memory unit; the main energy storage unit is configured to provide power to the first processor, the second processor, the volatile storage unit, and the non-volatile storage unit; the backup energy storage unit is configured to provide power to the second processor, the volatile storage unit, and the non-volatile storage unit when the primary energy storage unit fails.
As can be seen from fig. 1, the primary energy storage unit (e.g., primary power source) is capable of simultaneously providing power to the first processor, the second processor, the volatile storage unit (e.g., memory), and the non-volatile storage unit (e.g., memory). The computing power of the first processor is higher than that of the second processor, in other words, the first processor can process more data in unit time, and meanwhile, the power consumption of the first processor in unit time is higher than that of the second processor. The first processor and the second processor have own data processing tasks, and the first processor is a processor with high calculation power and can process the data of the big data of the vehicle, and meanwhile, the first processor has higher energy consumption requirement. The second processor is a low-power processor, can process basic function data of the vehicle, and has lower energy consumption requirement. When one of the processors fails, the data storage task may be performed by the other processor as a backup.
It should be noted that, the standby energy storage unit is only connected with the second processor, the volatile storage unit and the nonvolatile storage unit, and the energy storage of the standby energy storage unit is low, and the energy consumption of the second processor, the volatile storage unit and the nonvolatile storage unit is also low, so that the hardware cost of the standby energy storage unit can be effectively reduced, and the volume and the weight of the standby energy storage unit can be reduced. The emergency power consumption requirement of the second processor under the condition that the main energy storage unit fails and cannot supply power to the second processor can be met.
And when the main energy storage unit can work normally, the standby energy storage unit can not supply power for the second processor, the volatile storage unit and the like. When the main energy storage unit fails, the standby energy storage unit is immediately started to supply power for the second processor, the volatile storage unit and the nonvolatile storage unit.
In addition, the first processor and the second processor are simultaneously connected with the volatile storage unit and the nonvolatile storage unit, and have the capability of reading and storing data from the volatile storage unit and the capability of dropping data to be stored into the nonvolatile storage unit.
In the following, how the first processor, the second processor, the main energy storage unit, and the standby energy storage unit are backed up by each other will be described by specific embodiments.
In one or more embodiments of the present application, when the main energy storage unit is operating normally, the first processor stores the vehicle big data to a target memory address and a data block length, and transmits the target memory address and the data block length to the second processor. And after receiving the storage instruction, taking out the data in the volatile storage unit, performing corresponding package grouping and other processing, and storing the data in the nonvolatile storage unit.
During normal operation of the vehicle, many types of data can be acquired by different types of sensors. And then the acquired data is sent to a corresponding processor for processing. After the vehicle big data are obtained by some sensors, the first processor processes the data, and the vehicle big data are stored in the volatile storage unit during the processing. The first processor synchronously sends the relevant parameters such as the target memory address, the data block length and the like to the second processor. In practical applications, if the volatile storage unit is a shared volatile storage unit, the second processor may learn the current data storage information in real time, or may not need the first processor to send the target memory address and the data block length to the second processor. Therefore, the second processor can know the working state of the first processor in time, and when the first processor cannot work normally because of the self-failure and other problems, the second processor can help the first processor to store data based on the received memory address and the length of the data block, and the data in the volatile storage unit is dropped into the nonvolatile storage unit. It should be noted that, when the volatile memory unit stores data, the data is stored in a certain memory address, where the data has a certain data block length, and the data block lengths occupied by different data may be different. Therefore, in order to be able to store and find data accurately, it is necessary to specify the memory address and the data block length to which the data corresponds.
For example, after the sensor collects big data of the vehicle to be processed, the big data are sent to the first processor for data processing, and the storage instruction is sent to the first processor and the second processor at the same time. At this time, the second processor also knows in real time that the first processor is currently executing the vehicle big data processing task. The second processor considers the currently received data processing request as the most current data processing request before receiving the next data processing request. The first processor stores the vehicle big data in a target memory address and data block length in the volatile storage unit, and after storing the data in the memory address and data block length, transmits the target memory address and data block length to the second processor. The second processor takes the target memory address and the data block length as the latest memory address and the data block length. Thus, the second processor can timely know the task progress of the current first processor, and the main second processor is kept synchronous. In addition, the second processor only needs to store the relevant information such as the target memory address and the data block length, and the like, and does not need to store and process a lot of complex data, so that the second processor does not occupy much calculation power and does not influence the current job of the second processor (such as surfing the internet, gateway routing or vehicle body control work).
In one or more embodiments of the application, when a storage instruction is received and the primary energy storage unit fails, the secondary processor, the volatile storage unit, and the nonvolatile storage unit are powered by the backup energy storage unit. And the second processor stores the vehicle big data in the volatile storage unit into the nonvolatile storage unit according to the received target memory address and the data block length.
As can be seen from fig. 1, the standby energy storage unit has no connection relationship with the first processor, in other words, the standby energy storage unit cannot supply power to the first processor. Therefore, when the main energy storage unit fails, the standby energy storage unit is started to supply power for the second processor, the volatile storage unit and the nonvolatile storage unit. At this time, since the first processor cannot be supplied with power, the data processing cannot be continued. But the second processor can be powered by the standby energy storage unit, and can work normally in a short time, and the working time is related to the electric storage capacity of the standby energy storage unit.
And after receiving the notification of the failure of the main energy storage unit, the second processor immediately carries out the tray dropping processing on the large vehicle data corresponding to the target memory address and the data block length and stores the large vehicle data into the nonvolatile storage unit, so that the task data which is being processed by the first processor is prevented from being lost. For the current job task of the second processor, if the calculation power of the second processor is insufficient, the processing can be paused or terminated first; if the calculation force is sufficient, the present task may not be paused or terminated first. Meanwhile, the failure problem of the main energy storage unit can be fed back to the user through the second processor or other processors.
According to the scheme, although the main energy storage unit fails and the first processor cannot work normally, the low-cost and low-energy-storage standby energy storage unit and the low-calculation-force second processor can be used for helping to complete data storage of the first processor, and data loss of the first processor caused by sudden power failure is avoided. And meanwhile, a high-cost and high-capacity standby power supply is not required to be added. Therefore, the data of the first processor with high calculation power and high energy consumption can be effectively protected at low cost.
In one or more embodiments of the application, when the first processor fails, the second processor stores the vehicle big data in the volatile storage unit into the nonvolatile storage unit according to the received target memory address and data block length.
In practical application, if the first processor fails, the processing of the vehicle big data cannot be continued. The power will continue to be supplied by the primary energy storage unit to the secondary processor, the volatile memory unit, the memory unit. However, as the second processor receives the failure information of the first processor, the second processor can immediately store the big data of the vehicle into the nonvolatile storage unit according to the latest received target memory address and the data block length, and the second processor replaces the first processor to finish the data disc-dropping task of the big data of the vehicle. Of course, since the main energy storage unit can always supply power, the vehicle big data in the memory can be delivered to other processors with high calculation power to continue data processing instead of being stored in the nonvolatile storage unit. By the method, the processors with the same calculation performance and the backup function are not required to be configured for the first processor independently, and the low-calculation-power processors with other local work tasks configured on the vehicle are utilized to realize the data storage work after failure, so that the data can be safely processed, the overall structure is simplified, and the hardware cost is reduced.
In one or more embodiments of the present application, the second processor transmits a process of processing the vehicle basic function data to the first processor when the main energy storage unit is operating normally.
In practical application, compared with the vehicle big data processed by the first processor, the vehicle basic function data processed by the second processor has smaller data quantity and lower calculation force requirement, and the energy consumption of the processor is lower. If the first processor is sufficiently powerful, or the current computing power is sufficient, the first processor is capable of simultaneously carrying out the data processing tasks related to the second processor, in other words, the first processor may replace the second processor to work, while the first processor continues to execute the present job task. If the second processor sends the processing progress to the first processor in real time, the first processor and the second processor realize real-time synchronization of the data processing task of the second processor, and a standby processor is not required to be configured for the second processor independently. The hardware cost can be effectively reduced. The first processor can grasp the data processing process of the second processor in real time, so that seamless switching from the second processor to the first processor can be realized.
In one or more embodiments of the application, when the second processor fails, the first processor performs processing tasks on the vehicle base function data according to the received processing schedule.
In practical applications, the computing power of the first processor is much greater than that of the second processor, so that even if the first processor is executing its own job task, the second processor can still bear the processing task of the basic function data of the vehicle, which cannot be continuously executed due to failure. Because the first processor and the second processor originally have the own tasks on the vehicle, the backup of the second processor can be realized under the condition that the processors are not additionally increased, the stable working and running capacity of the vehicle processor can be effectively improved, and meanwhile, the hardware cost of the vehicle can be effectively reduced.
For example, when a first processor performs a vehicle big data storage task, a second processor performs a vehicle base data storage task. During execution, if the second processor fails (e.g., the data processing is faulty), the first processor may replace the second processor to execute the processing task of the vehicle base data (e.g., the storage task of the vehicle base data) according to the current processing procedure.
Based on the same concept, the embodiment of the application further provides a vehicle control method, and fig. 2 is a schematic flow chart of the vehicle control method provided by the embodiment of the application. From fig. 2, it can be seen that the method specifically comprises the following steps:
Step 201: and the main energy storage unit is used for supplying power to the first processor, the second processor, and the volatile storage unit and the nonvolatile storage unit which are connected with the first processor and the second processor at the same time.
And if a storage instruction for the vehicle big data is received, the first processor stores and processes the vehicle big data.
Step 202: the first processor sends a target memory address and a data block length for storing the vehicle big data to the second processor.
Step 203: when the main energy storage unit fails, the standby energy storage unit supplies power for the second processor, the volatile storage unit and the nonvolatile storage unit; and the second processor stores the vehicle big data in the volatile storage unit into the nonvolatile storage unit according to the received target memory address and the data block length.
In practice, there may be a plurality of first and second processors in the vehicle. The high-power processor may be paired with the low-power processor based on the processor performance selection pairing, i.e., based on the power value (e.g., number of cores) of the first processor and the power value of the second processor. Processor performance similarity, physical distance far-near, etc. may also be considered at the time of pairing. Data synchronization is maintained between the first processor and the second processor in the pairing relationship, for example, the first processor sends the target memory address and the data block length synchronization to the second processor, and the second processor sends information such as processing progress to the first processor.
By the scheme, the first processor and the second processor also bear the own work tasks, and asymmetric mutual backup between the first processor and the second processor is realized under the condition that the processors are not required to be added. The hardware cost can be effectively reduced while ensuring the safety and reliability of data.
In one or more embodiments of the present application, further comprising: if a storage instruction for the basic function data of the vehicle is received, the second processor stores the basic function data of the vehicle; the second processor transmits a process of processing the vehicle basic function data to the first processor. And when the second processor fails, the first processor executes the processing task of the basic function data of the vehicle according to the received processing process.
Because the computing power of the first processor is far greater than that of the second processor, even if the first processor is executing its own job task, the first processor has the capability of bearing the processing task of the basic function data of the vehicle, which the second processor cannot continue to execute due to failure. Because the first processor and the second processor originally have the own tasks on the vehicle, the backup of the second processor can be realized under the condition that the processors are not additionally increased, the stable working and running capacity of the vehicle processor can be effectively improved, and meanwhile, the hardware cost of the vehicle can be effectively reduced.
In one or more embodiments of the present application, further comprising: and when the first processor fails, the second processor stores the vehicle big data in the volatile storage unit into the nonvolatile storage unit according to the received target memory address and the data block length.
If the first processor fails, the processing of the big data of the vehicle cannot be continued. The power will continue to be supplied by the primary energy storage unit to the secondary processor, the volatile memory unit, the memory unit. However, since the second processor receives the first processor failure information, the second processor immediately stores the vehicle big data in the nonvolatile storage unit according to the latest received target memory address and data block length. Of course, since the main energy storage unit can always supply power, the vehicle big data in the memory can be delivered to other processors with high calculation power to continue data processing instead of being stored in the nonvolatile storage unit. By the method, the processors with the same calculation performance and the backup function are not required to be configured for the first processor independently, and the low-calculation-power processors with other local work tasks configured on the vehicle are utilized to realize the data storage work after failure, so that the data can be safely processed, the overall structure is simplified, and the hardware cost is reduced.
Based on the same thought, the embodiment of the application also provides a vehicle control device. Fig. 3 is a schematic structural diagram of a vehicle control device according to an embodiment of the present application. As can be seen from fig. 3, the device comprises:
The main energy storage unit 31 supplies power to the first processor, the second processor, and the volatile memory unit and the nonvolatile memory unit which are connected with the first processor and the second processor at the same time;
An access module 32, configured to store the big data of the vehicle by the first processor if a storage instruction for the big data of the vehicle is received;
A transmitting module 33, configured to transmit, to the second processor, a target memory address and a data block length for storing the vehicle big data;
The standby energy storage unit 34 is configured to supply power to the second processor, the volatile storage unit, and the nonvolatile storage unit by the standby energy storage unit when the main energy storage unit fails;
The access module 32 is further configured to store the vehicle big data in the volatile storage unit into the nonvolatile storage unit according to the received target memory address and data block length.
Optionally, the sending module 33 is configured to store the basic function data of the vehicle by the second processor if a storage instruction for the basic function data of the vehicle is received;
The second processor transmits a process of processing the vehicle basic function data to the first processor.
Optionally, the method further includes an execution module 35, configured to execute, by the first processor, a processing task on the vehicle basic function data according to the received processing procedure when the second processor fails.
Optionally, the access module 32 is further configured to store the vehicle big data in the volatile storage unit into the nonvolatile storage unit according to the received target memory address and data block length when the first processor fails.
For ease of understanding, the following will exemplify from the first processor data processing procedure and the second processor data processing procedure, respectively, by way of specific embodiments. Fig. 4a and 4b are schematic diagrams illustrating a first processor data processing procedure and a second processor data processing procedure, respectively, according to an embodiment of the present application.
FIG. 4a is a schematic diagram of a first processor data processing procedure. At the time of normal input of the main energy storage unit, storage of the automatic driving data is completed by the first processor CPU 1. The data collection processing module collects and processes the internal and external vehicle big data in real time, and the processed vehicle big data temporarily stores the vehicle big data in the volatile storage unit through the memory access module according to a preset period. The memory access module sends information such as the initial address and the length of the data temporarily stored in the volatile storage unit to the second processor CPU2 in real time, so that the second processor CPU2 acquires the temporary storage data in the memory when the main energy storage unit is powered off (or the first processor fails).
And after the trigger event management module detects the landing trigger condition sent from the data collection processing module, notifying the data group packet module, reading data from the memory by the data group packet module, packaging the data into a landing data packet, and transmitting the landing data packet to the data landing module to be written into the accessor.
Fig. 4b is a schematic diagram of the second processor data processing procedure. After the main energy storage unit is abnormally powered off, the second processor CPU2 completes the storage of the automatic driving data. After the triggering event management detects that the main energy storage unit is powered off, if a landing triggering event exists, the data group package module is informed, the data group package module reads data in the memory through the memory access module according to the latest received information such as the memory access address, the length and the like, and the data group package module transmits the data to the data landing module after finishing data packaging and writes the data into the nonvolatile storage unit.
Therefore, in the scheme of the application, when the main energy storage unit fails, as only one standby energy storage unit with relatively low energy storage is provided, the standby energy storage unit cannot meet the working requirement of the first processor, and therefore, the standby energy storage unit only supplies power for the second processor, the volatile storage unit and the nonvolatile storage unit, so that the second processor can help complete data processed by the first processor by utilizing the power provided by the standby energy storage unit, namely, the second processor can drop corresponding data in the memory into the nonvolatile storage unit according to the received memory address and the data block length provided by the first processor. The method can ensure that the data which the first processor takes charge of is not lost when the power is off under the condition that the first processor does not need to be configured with a standby power supply with high energy storage. Meanwhile, as the standby power supply with high energy storage capacity is not required to be configured, the cost, the volume and the weight of the standby power supply can be effectively reduced.
The first processor and the second processor both have their own job tasks, and on the basis of this, a cooperative relationship between the first processor and the second processor is established. When the first processor fails, the second processor can coordinate with small calculation force to help the first processor to finish the storage work of the final data, namely, the large data of the vehicle in the memory is dropped into the nonvolatile storage unit according to the received memory address and the length of the data block. When the second processor fails, the first processor can bear part or all of the data processing tasks of the second processor in a short period, and the data processing tasks of the second processor consume lower computing power and cannot affect the normal operation of the first processor. By using the scheme, the asymmetric mutual backup of the first processor and the second processor with different computing power capabilities can be realized without configuring a special standby processor. The asymmetric mutual backup is understood that the first processor can realize a completely replaced backup mode for the second processor, and the second processor has a low calculation power, so that the backup effect can be realized to ensure that the data finally processed by the first processor can be successfully stored in the nonvolatile storage unit, and the second processor does not have the capability of completely replacing the first processor to process the big data of the vehicle.
Fig. 5 is a schematic structural diagram of a vehicle according to an embodiment of the present application, where, as shown in fig. 5, a vehicle device is configured on the vehicle, and the vehicle device includes: memory 501 and controller 502.
The memory 501 is used to store a computer program and may be configured to store various other data to support operations on the vehicle device. Examples of such data include instructions for any application or method operating on the vehicular device, contact data, phonebook data, messages, pictures, videos, and the like.
The Memory 501 may be implemented by any type or combination of volatile or non-volatile Memory devices, such as Static Random-Access Memory (SRAM), electrically erasable programmable Read-Only Memory (ELECTRICALLY ERASABLE PROGRAMMABLE READ ONLY MEMORY, EEPROM), erasable programmable Read-Only Memory (ELECTRICAL PROGRAMMABLE READ ONLY MEMORY, EPROM), programmable Read-Only Memory (Programmable Read-Only Memory, PROM), read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk, or optical disk.
The vehicle apparatus further includes: and a display device 503. A controller 502 coupled to the memory 501 for executing a computer program in the memory 501 for:
The method comprises the steps of supplying power to a first processor, a second processor, a volatile storage unit and a nonvolatile storage unit which are connected with the first processor and the second processor at the same time through a main energy storage unit;
if a storage instruction for the big data of the vehicle is received, the first processor stores the big data of the vehicle;
The first processor sends a target memory address and a data block length for storing the vehicle big data to the second processor;
when the main energy storage unit fails, the standby energy storage unit supplies power for the second processor, the volatile storage unit and the nonvolatile storage unit;
and the second processor stores the vehicle big data in the volatile storage unit into the nonvolatile storage unit according to the received target memory address and the data block length.
Optionally, the controller 502 is further configured to:
if a storage instruction for the basic function data of the vehicle is received, the second processor stores the basic function data of the vehicle;
The second processor transmits a process of processing the vehicle basic function data to the first processor.
Optionally, the controller 502 is further configured to: and when the second processor fails, the first processor executes the processing task of the basic function data of the vehicle according to the received processing process.
Optionally, the controller 502 is further configured to: and when the first processor fails, the second processor stores the vehicle big data in the volatile storage unit into the nonvolatile storage unit according to the received target memory address and the data block length.
The display device 503 in fig. 5 described above includes a screen, which may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation.
The audio component 504 of fig. 5 above may be configured to output and/or input audio signals. For example, the audio component includes a Microphone (MIC) configured to receive external audio signals when the device in which the audio component is located is in an operational mode, such as a call mode, a recording mode, and a speech recognition mode. The received audio signal may be further stored in a memory or transmitted via a communication component. In some embodiments, the audio assembly further comprises a speaker for outputting audio signals.
Further, as shown in fig. 5, the vehicle apparatus further includes: communication component 505, power component 506, and other components. Only some of the components are schematically shown in fig. 5, which does not mean that the vehicle device only comprises the components shown in fig. 5.
The communication component 505 of fig. 5 described above is configured to facilitate wired or wireless communication between the device in which the communication component is located and other devices. The device in which the communication component is located may access a wireless network based on a communication standard, such as WiFi,2G, 3G, 4G, or 5G, or a combination thereof. In one exemplary embodiment, the Communication component may be implemented based on Near Field Communication (NFC) technology, radio frequency identification (Radio Frequency Identification, RFID) technology, infrared data Association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth technology, and other technologies.
Wherein the power supply unit 506 provides power to various components of the device in which the power supply unit is located. The power components may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the devices in which the power components are located.
Accordingly, embodiments of the present application also provide a computer program product capable of implementing the steps of the method embodiment of fig. 2 described above when the computer program product is executed.
In the embodiment of the application, in the vehicles, a lot of data needs to be collected and processed, for example, large data of the vehicles such as environment images and the like, and basic function data of the vehicles such as temperature and tire pressure are also available. For vehicle big data, data processing is required with a first processor having high computational power, while for vehicle basic function data processing is required with a second processor having low computational power. In other words, both the first processor and the second processor have their own data processing tasks, and when one of the processors fails, the other processor may be used as a standby. Through the scheme, the processors with different calculation capacities are arranged in the vehicle, so that the hardware cost can be effectively reduced while the corresponding data processing requirements are met. In addition, the first processor and the second processor simultaneously share the same volatile memory unit and the same memory area so as to realize that the first processor and the second processor can mutually replace and process data storage tasks and ensure data security.
In the vehicle control system, a main energy storage unit and a standby energy storage unit with different power supply capacities are further arranged, the electric quantity of the main energy storage unit is sufficient, and electric energy required by work can be provided for all devices. When the main energy storage unit fails, but the power consumption is higher when the first processor works, the standby energy storage unit can be used for supplying power to the second processor, the volatile storage unit, the nonvolatile storage unit and the like, so that the basic data storage function is realized, and the situation that the first processor is responsible for losing big data of a vehicle due to sudden power failure is avoided. In addition, the standby energy storage unit only needs to store a small amount of electric energy to the second processor, so that the requirement on the electric energy storage capacity of the standby energy storage unit is reduced, and the cost of the standby energy storage unit is reduced.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.
Claims (11)
1. A data storage control system for a vehicle, the system comprising: the system comprises a first processor, a second processor, a main energy storage unit and a standby energy storage unit;
Wherein the computing power of the first processor is higher than that of the second processor, and the energy consumption of the first processor is higher than that of the second processor;
the first processor and the second processor are in communication connection with a volatile memory unit and a nonvolatile memory unit;
The main energy storage unit is configured to provide power to the first processor, the second processor, the volatile storage unit, and the non-volatile storage unit;
the backup energy storage unit is configured to provide power to the second processor, the volatile storage unit, and the non-volatile storage unit when the primary energy storage unit fails.
2. The system of claim 1, wherein when the main energy storage unit is operating normally, the first processor stores vehicle big data to a target memory address and a data block length, and sends the target memory address and data block length to the second processor.
3. The system of claim 2, wherein the second processor, the volatile memory unit, the nonvolatile memory unit are powered by the backup energy storage unit when the storage instruction is received and the primary energy storage unit fails;
and the second processor stores the vehicle big data in the volatile storage unit into the nonvolatile storage unit according to the received target memory address and the data block length.
4. The system of claim 2, wherein when a first processor fails, a second processor stores the vehicle big data in the volatile storage unit into the non-volatile storage unit according to the received target memory address and data block length.
5. The system of claim 1, further comprising the second processor sending a process of processing vehicle base function data to the first processor when the primary energy storage unit is functioning properly; and when the second processor fails, the first processor executes the processing task of the vehicle basic function data according to the received processing progress.
6. A data storage control method, the method comprising:
The method comprises the steps of supplying power to a first processor, a second processor, a volatile storage unit and a nonvolatile storage unit which are connected with the first processor and the second processor at the same time through a main energy storage unit;
if a storage instruction for the big data of the vehicle is received, the first processor stores the big data of the vehicle;
The first processor sends a target memory address and a data block length for storing the vehicle big data to the second processor;
When the main energy storage unit fails, the standby energy storage unit supplies power to the second processor, the volatile storage unit and the nonvolatile storage unit;
and the second processor stores the vehicle big data in the volatile storage unit into the nonvolatile storage unit according to the received target memory address and the data block length.
7. The method as recited in claim 6, further comprising:
if a storage instruction for the basic function data of the vehicle is received, the second processor stores the basic function data of the vehicle;
The second processor sends the processing progress of the basic function data of the vehicle to the first processor;
And when the second processor fails, the first processor executes the processing task of the vehicle basic function data according to the received processing progress.
8. The method as recited in claim 6, further comprising:
and when the first processor fails, the second processor stores the vehicle big data in the volatile storage unit into the nonvolatile storage unit according to the received target memory address and the data block length.
9. A data storage control apparatus, the apparatus comprising:
The main energy storage unit is used for supplying power to the first processor, the second processor, and the volatile storage unit and the nonvolatile storage unit which are connected with the first processor and the second processor at the same time;
The access module is used for storing the big data of the vehicle by the first processor if a storage instruction of the big data of the vehicle is received;
The sending module is used for sending the target memory address and the data block length for storing the vehicle big data to the second processor through the first processor;
The standby energy storage unit is used for supplying power to the second processor, the volatile storage unit and the nonvolatile storage unit by the standby energy storage unit when the main energy storage unit fails;
The access module is further configured to store, by the second processor, the vehicle big data in the volatile storage unit into the nonvolatile storage unit according to the received target memory address and the data block length.
10. A vehicle, characterized by comprising: a vehicle body;
The vehicle body is provided with a memory and a processor;
the memory is used for storing one or more computer instructions;
the processor is configured to execute the one or more computer instructions for performing the steps in the method of any of claims 6 to 8.
11. A computer program product, characterized in that the computer program product is capable of realizing the steps of the method according to any of claims 6 to 8 when executed.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211728947.5A CN118277320A (en) | 2022-12-30 | 2022-12-30 | Data storage control system, method, device, vehicle and product |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211728947.5A CN118277320A (en) | 2022-12-30 | 2022-12-30 | Data storage control system, method, device, vehicle and product |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN118277320A true CN118277320A (en) | 2024-07-02 |
Family
ID=91634875
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211728947.5A Pending CN118277320A (en) | 2022-12-30 | 2022-12-30 | Data storage control system, method, device, vehicle and product |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN118277320A (en) |
-
2022
- 2022-12-30 CN CN202211728947.5A patent/CN118277320A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9895995B2 (en) | Power management in electric vehicles | |
| EP4478692A2 (en) | Swapping roles between untethered wirelessly connected devices | |
| US20140344620A1 (en) | Shutdown method, startup method, and communication terminal | |
| KR101491366B1 (en) | Apparatus and method for managing a battery of the vehicle | |
| EP4061088A1 (en) | Bluetooth connection method and apparatus, wearable device, and computer-readable storage medium | |
| CN108880898B (en) | Main and standby container system switching method and device | |
| CN109831773B (en) | Rescue method, rescue equipment and computer readable medium | |
| WO2021018208A1 (en) | Firmware upgrade method and apparatus, electronic device, and storage medium | |
| CN113691722B (en) | Control method and device and electronic equipment | |
| CN112416641A (en) | Controlled end node restart detection method in master-slave architecture and master control end node | |
| CN110281952B (en) | Control system, control method, control device, storage medium, and electronic device | |
| CN118277320A (en) | Data storage control system, method, device, vehicle and product | |
| CN113852690A (en) | Battery pack management method and device, storage medium, electronic equipment and battery replacement station | |
| US12332715B2 (en) | Information processing apparatus and information processing method | |
| EP4465169A1 (en) | Method and apparatus for hot upgrade or live recovery of storage backend software based on ipu or dpu | |
| KR102815993B1 (en) | Battery module comprising battery sub packs, and electronic device comprising the battery module | |
| CN110277096B (en) | Method and device for controlling voice function between terminals | |
| WO2024146620A1 (en) | Vehicle-mounted wireless network system, control method, computer device and medium | |
| CN110096409A (en) | Abnormal alarm method, apparatus, monitoring device and computer readable storage medium | |
| EP3885880A1 (en) | Power management circuitry for controlling a power state transition based on a predetermined time limit | |
| JP6030977B2 (en) | Fuel cell control system and fuel cell control method | |
| CN111221009B (en) | Switching method of positioning chip, mobile terminal and computer storage medium | |
| CN115858222B (en) | Virtual machine fault processing method, system and electronic equipment | |
| WO2024155237A1 (en) | A battery charging and swapping station and methods for managing operating modes of the same | |
| CN119759383A (en) | Vehicle upgrade method, controller and vehicle |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |