Data backup method and device, electronic equipment, storage medium and program product

By converting controller data in engineering machinery into CAN communication protocol and sending it to an intermediate network device via CAN bus for backup under low load, the problem of unrecoverable data loss is solved, achieving efficient and reliable data backup.

CN121858360APending Publication Date: 2026-04-14SANY AUTOMOBILE HOISTING MACHINERY
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-20
Publication Date
2026-04-14

AI Technical Summary

Technical Problem

When construction machinery and equipment lose data due to hardware damage or power outages, the data cannot be recovered, causing the equipment to malfunction. Furthermore, the existing data backup is inefficient, affecting construction progress and wasting resources.

Method used

The raw data in the controller's memory is converted into backup data frames adapted to the CAN communication protocol. When the memory usage or processor load rate is below a threshold, the data is sent to an intermediate network device for backup using the CAN bus's multi-packet transmission mechanism. Combined with the intermediate network device's parsing and internet transmission, online data backup is achieved.

Benefits of technology

It improves the data backup efficiency of engineering machinery and equipment, ensures data integrity and system stability, avoids backup failure when the controller is under high load, and enhances the robustness and reliability of data backup.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121858360A_ABST
    Figure CN121858360A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data backup, and discloses a data backup method, which is applied to a controller, the controller supports CAN communication, and the method comprises the following steps: obtaining original data in a controller memory; converting the original data into a to-be-backed-up data frame, wherein the to-be-backed-up data frame is adapted to a CAN communication protocol; and when the memory occupancy rate of the controller is lower than a preset occupancy rate threshold value, sending the data frame to be backed up to the intermediate network equipment through a multi-packet sending mechanism of the CAN bus. Through the technical scheme of the invention, the problem of low efficiency of data backup of the engineering machinery in related technologies is solved, and the data backup efficiency of the engineering machinery is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data backup technology, specifically to data backup methods, apparatus, electronic devices, storage media, and program products. Background Technology

[0002] In construction machinery, control systems typically use programmable safety controllers (PLCs) as the main control device. The entire system is built on a Controller Area Network (CAN) communication network. If the equipment hardware is damaged due to external force or its own hardware / software issues, resulting in power outages and data loss that cannot be recovered, the entire equipment will cease normal operation. Replacing the controller requires lengthy configuration and calibration procedures to restore normal operation, consuming significant manpower and resources, disrupting construction, and causing substantial losses. Furthermore, data in construction machinery is often not effectively backed up, or relies on maintenance and service personnel performing local backups using computers.

[0003] In other words, in related technologies, data backup for construction machinery suffers from low efficiency. Summary of the Invention

[0004] This application provides a data backup method, apparatus, electronic device, storage medium, and program product to solve the problem of low efficiency in data backup of construction machinery in related technologies.

[0005] Firstly, this application provides a data backup method applied to a controller that supports CAN communication. The method includes: Retrieve raw data from the controller's memory; The raw data is converted into a data frame to be backed up, and the data frame to be backed up is adapted to the CAN communication protocol. When the controller's memory usage rate is lower than the preset usage rate threshold, the data frame to be backed up is sent to the intermediate network device through the multi-packet transmission mechanism of the CAN bus.

[0006] The data backup method described in this application effectively avoids resource contention between the backup process and real-time control tasks by initiating the backup task only when the controller's memory and processor load are low, thus ensuring the system's real-time performance and stability. Simultaneously, by utilizing the CAN bus multi-packet transmission mechanism, the raw memory data is reliably converted into standard CAN frames and transmitted to intermediate network devices, ensuring the complete and orderly delivery of critical data to the embedded environment. This lays a solid foundation for subsequent cloud migration or long-term storage, and the entire process has minimal impact on the controller's main business. This method enables online data backup for controllers in construction machinery that lack direct network connectivity, improving the efficiency of data backup in construction machinery.

[0007] In one alternative implementation, converting the raw data into a data frame to be backed up includes: Convert the raw data into binary data to be backed up; The data to be backed up is divided into slices of data with a preset length; Encapsulate the sliced ​​data segments into data frames to be backed up.

[0008] This implementation converts the data to be backed up in the controller's memory into a data frame that supports the CAN communication protocol, thereby enabling the controller of the construction machinery to connect with the intermediate network device via the CAN bus, which helps to quickly back up the controller's memory data.

[0009] In one alternative implementation, the method further includes: If the candidate data of the controller is abnormal or lost, it obtains the intermediate data corresponding to the candidate data from the intermediate network device. The intermediate data is the data downloaded by the intermediate network device from the backup server.

[0010] This implementation method addresses the issue of data anomalies or loss in the controller by utilizing data already backed up on the backup server to restore the controller's data, thereby improving the controller's stability.

[0011] In one alternative implementation, the method further includes: When the processor load rate of the controller is lower than the preset load rate threshold, the data frame to be backed up is sent to the intermediate network device through the multi-packet transmission mechanism of the CAN bus.

[0012] This implementation method utilizes the low processor load rate, which indicates that the controller is in an idle state. The data frame to be backed up can be sent to the intermediate network device via the CAN bus to achieve data backup without affecting the normal operation of the controller. This avoids the busy period of the controller and helps to improve the stability of data backup.

[0013] In an optional implementation, before sending the data frame to be backed up to the intermediate network device via the multi-packet transmission mechanism of the CAN bus, the method further includes: The memory usage or processor load of the controller is monitored at preset intervals.

[0014] This implementation method continuously monitors the controller's operating status at fixed intervals, identifies the opportune time to back up data, and then backs up the data, thereby improving the efficiency of data backup.

[0015] Secondly, this application provides a data backup method applied to an intermediate network device, the method comprising: Receive the data frame to be backed up; Parse the data frames to be backed up and package them into target data packets; Send the target data packet to the backup server via wired or wireless network.

[0016] This data backup method applied to intermediate network devices decouples data backup from the business systems running on the controller, making the backup process independent of the controller's performance and stability. Compared to traditional backup methods where the controller directly handles all backup tasks, consuming valuable computing and memory resources and potentially leading to backup failures under high controller load or failure, this solution's data backup scheme uses intermediate network devices to independently handle backup data capture, parsing, and forwarding, forming an independent backup channel. Even if the controller restarts or crashes, as long as the intermediate network devices are functioning normally, the backup data stream will not be interrupted, greatly improving the robustness and reliability of the backup system.

[0017] Thirdly, this application provides a data backup system, which includes a controller, an intermediate network device, and a backup server, wherein... The controller obtains the raw data in the controller memory, converts the raw data into a data frame to be backed up, and the data frame to be backed up is adapted to the CAN communication protocol. When the controller's memory usage rate is lower than the preset usage rate threshold, the data frame to be backed up is sent to the intermediate network device through the CAN bus multi-packet transmission mechanism. The intermediate network device receives the data frame to be backed up, parses the data frame to be backed up and packages it into a target data packet, and sends the target data packet to the backup server through a wired or wireless network. The backup server receives and saves the target data packet.

[0018] Fourthly, this application provides a data backup device for a controller that supports CAN communication. The device includes: The acquisition module is used to acquire raw data from the controller's memory; The data conversion module is used to convert raw data into data frames to be backed up, and the data frames to be backed up are compatible with the CAN communication protocol. The data transmission module is used to send the data frames to be backed up to the intermediate network device through the multi-packet transmission mechanism of the CAN bus when the memory utilization rate of the controller is lower than the preset utilization rate threshold.

[0019] Fifthly, this application provides a data backup device applied to an intermediate network device, the device comprising: The receiving module is used to receive data frames to be backed up; The data parsing module is used to parse the data frames to be backed up and package them into target data packets; The data forwarding module is used to send target data packets to the backup server via wired or wireless networks.

[0020] In a sixth aspect, this application provides an electronic device, including: a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to perform any of the embodiments corresponding to the first aspect or the data backup method of the second aspect.

[0021] In a seventh aspect, this application provides a computer-readable storage medium storing computer instructions that cause a computer to execute any of the embodiments corresponding to the first aspect or the data backup method of the second aspect.

[0022] Eighthly, this application provides a computer program product, including computer instructions for causing a computer to execute any of the embodiments corresponding to the first aspect or the data backup method of the second aspect. Attached Figure Description

[0023] To more clearly illustrate the technical solutions in the specific embodiments of this application or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0024] Figure 1 This is a flowchart of a data backup method according to an embodiment of this application; Figure 2 This is a flowchart of another data backup method according to an embodiment of this application; Figure 3 This is a schematic diagram of the controller data recovery process according to an embodiment of this application; Figure 4 This is a flowchart of another data backup method according to an embodiment of this application; Figure 5 This is a schematic diagram illustrating the configuration of a data backup system according to an embodiment of this application; Figure 6 This is a flowchart of another data backup method according to an embodiment of this application; Figure 7 This is a structural block diagram of a data backup device applied to a controller according to an embodiment of this application; Figure 8 This is a structural block diagram of a data backup device applied to an intermediate network device according to an embodiment of this application; Figure 9This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this application. Detailed Implementation

[0025] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0026] It is understood that before using the technical solutions disclosed in the various embodiments of this application, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this application in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0027] In construction machinery, control systems typically use programmable safety controllers (PLCs) as the main control device. The entire system is built on CAN communication. If the hardware is damaged due to external force or its own hardware / software issues, or if data is lost due to a power outage, it cannot be recovered, causing the entire equipment to malfunction. Replacing the controller requires lengthy configuration and calibration processes, consuming significant manpower and resources, disrupting construction, and causing substantial losses. Related technologies have revealed that most construction machinery data is not effectively backed up, or relies on local backups by maintenance and service personnel using computers, lacking regular and efficient backup procedures, which introduces uncontrollable impacts on stable equipment operation. Therefore, automatically backing up data for CAN network communication devices is an urgent problem to be solved.

[0028] According to an embodiment of this application, a data backup method embodiment is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0029] This embodiment provides a data backup method that can be used in the controller of construction machinery. The controller supports CAN communication. Figure 1 This is a flowchart of a data backup method according to an embodiment of this application, such as... Figure 1 As shown, the process includes the following steps: Step S101: Obtain the raw data from the controller's memory.

[0030] Specifically, a controller refers to an electronic control unit based on a microprocessor (MCU). Raw data refers to the data stored in the controller's memory. To back up the data in the controller, firstly, a portion or all of the data in the controller's memory is selected as the raw data.

[0031] Step S102: Convert the raw data into a data frame to be backed up, and the data frame to be backed up is adapted to the CAN communication protocol.

[0032] Specifically, the CAN communication protocol is a serial communication protocol based on real-time applications. The data frame to be backed up refers to the data frame after the original data has been adapted to the CAN communication protocol. The controller converts the original data into a data frame to be backed up, facilitating the transmission of the data frame using the CAN bus.

[0033] Step S103: When the memory occupancy rate of the controller is lower than the preset occupancy rate threshold, the data frame to be backed up is sent to the intermediate network device through the multi-packet transmission mechanism of the CAN bus.

[0034] Specifically, memory utilization refers to the ratio of the currently used memory capacity in the controller's memory to the total available memory capacity. The preset utilization threshold is a value used to measure whether memory utilization is high or low. Multi-packet transmission mechanism refers to a standard protocol that, when the data length exceeds the single-frame capacity, divides it into multiple CAN frames for transmission and reassembly. Intermediate network devices are network devices used to forward data between the controller and the backup server, such as the vehicle's telematics unit (TBox), which can connect the vehicle's internal network to the internet, enabling data exchange between the vehicle's internal systems and the internet through technologies such as mobile cellular networks (4G / 5G), GPS / BeiDou satellite positioning, and WiFi. For example, if the preset utilization threshold is 30% and the controller's memory utilization is 20%, the data frame to be backed up can be sent to the intermediate network device via the CAN bus for backup. However, if the controller's memory utilization is 90%, the backup of the data frame cannot be performed.

[0035] The data backup method provided in this embodiment obtains the original data in the controller's memory, providing a data source for data backup; converts the original data into a data frame to be backed up, which is compatible with the CAN communication protocol, facilitating fast and secure data transmission using the CAN bus; when the controller's memory occupancy rate is lower than a preset occupancy rate threshold, the data frame to be backed up is sent to an intermediate network device through the CAN bus's multi-packet transmission mechanism, realizing online data backup for controllers in construction machinery that do not have direct network connectivity, thus improving the efficiency of data backup for construction machinery.

[0036] This embodiment provides a data backup method that can be used in the controller of engineering machinery. Figure 2 This is a flowchart of another data backup method according to an embodiment of this application, such as... Figure 2 As shown, the process includes the following steps: Step S201: Obtain the raw data from the controller's memory.

[0037] Please see details Figure 1 Step S101 of the illustrated embodiment will not be described again here.

[0038] Step S202: Convert the raw data into a data frame to be backed up, and the data frame to be backed up is adapted to the CAN communication protocol.

[0039] Specifically, step S202 includes: Step S2021: Convert the original data into binary data to be backed up.

[0040] Specifically, the data to be backed up refers to the binary representation of the original data. Since the controller's CAN bus supports the transmission of binary signals, in order for the original data to be sent to the intermediate network devices via the CAN bus, it must first be converted into the data to be backed up.

[0041] Step S2022: Divide the data to be backed up into slice data segments of a preset length.

[0042] Specifically, a data slice refers to a segment of data obtained by dividing the data to be backed up. The data to be backed up is divided into slices by using a preset length. For example, using 8 bytes as the preset length to divide binary data to be backed up can yield multiple slices.

[0043] Step S2023: Encapsulate the sliced ​​data segments into data frames to be backed up.

[0044] Specifically, a standard CAN data frame includes fields such as an arbitration field, a control field, and a data field. The arbitration field represents an 11-bit or 29-bit identifier used to define message priority and type; the control field includes a data length code used to specify the number of bytes in the data field; and the data field is an 8-byte space carrying the data. Slicing data segments sequentially into the data field forms the data frame to be backed up.

[0045] Step S203: When the memory occupancy rate of the controller is lower than the preset occupancy rate threshold, the data frame to be backed up is sent to the intermediate network device through the multi-packet transmission mechanism of the CAN bus.

[0046] Please see details Figure 1 Step S103 of the illustrated embodiment will not be described again here.

[0047] The technical solution in this embodiment divides and encapsulates the raw data in the controller's memory into backup data frames adapted to the CAN communication protocol. These frames are then sent to an intermediate network device via the CAN bus when the controller is idle, synchronizing the controller's data to the intermediate network device. Furthermore, a multi-packet transmission mechanism enables high-speed transmission of the backup data via the CAN bus. Compared to related technologies where construction machinery does not support network backup, this solution provides a data upload channel. Without modifying or adding hardware, online backup of controller data is achieved through software platform system modifications, improving the data backup efficiency of construction machinery.

[0048] In some optional implementations, the data backup method of this application embodiment further includes: When the processor load rate of the controller is lower than the preset load rate threshold, the data frame to be backed up is sent to the intermediate network device through the multi-packet transmission mechanism of the CAN bus.

[0049] Specifically, the preset load rate threshold is a value used to measure the processor load rate. When the controller's processor load rate is lower than the preset load rate threshold, it indicates that the controller's processor is currently processing tasks at a low level, and sufficient remaining performance can be used to send the data frames to be backed up to the intermediate network device. For example, if the preset load rate threshold is set to 60%, and the controller's processor load rate is 98%, it means that the computing resources used by the tasks currently being processed by the processor are close to the processor's full computing resources, and data backup is not performed in this case. When the controller's processor load rate is 10%, it means that most of the computing resources in the current processor are not being used, and sufficient computing resources can be used to send the data frames to be backed up to the intermediate network device. This avoids potential failures or errors caused by the controller's processor backing up data when it is busy, thus improving the reliability of data backup.

[0050] In some optional implementations, before sending the data frame to be backed up to the intermediate network device via the multi-packet transmission mechanism of the CAN bus in S103, the method further includes: The memory usage or processor load of the controller is monitored at preset intervals.

[0051] Specifically, processor load rate refers to the percentage of time the controller spends executing non-idle tasks. The controller's memory usage or processor load rate is monitored periodically using a preset duration. If either memory usage or processor load rate falls below a preset threshold, the available memory or processor resources are utilized to send the data frame to be backed up to the intermediate network device.

[0052] By periodically monitoring the controller's memory and processor resources through this implementation, it is possible to detect when memory or processor resources are sufficient. This provides the ability to determine the timing for sending backup data frames to intermediate network devices, improving the transmission efficiency of backup data frames and thus helping to improve the efficiency of data backup.

[0053] In some optional implementations, the data backup method of this application embodiment further includes: If the candidate data of the controller is abnormal or lost, it obtains the intermediate data corresponding to the candidate data from the intermediate network device. The intermediate data is the data downloaded by the intermediate network device from the backup server.

[0054] Specifically, intermediate data refers to the data downloaded by the intermediate network device from the backup server. Candidate data refers to the data currently being processed in the controller's memory. When candidate data in the controller's memory becomes abnormal or is lost, to ensure that the candidate data does not affect the normal operation of the controller, the intermediate data corresponding to the candidate data is downloaded from the backup server to the intermediate network device, and then the intermediate network device forwards the intermediate data to the controller. In other words, this enables data recovery in the controller when data anomalies occur.

[0055] It should be noted that the candidate data had already been forwarded to the backup server for storage via intermediate network devices before the anomaly occurred.

[0056] In one possible implementation, Figure 3 This is a schematic diagram of the controller data recovery process according to an embodiment of this application. When the controller experiences data anomalies, such as... Figure 3 As shown, the cloud server distributes backup data, and in-vehicle internet devices such as T-box receive and parse the data. The parsed data is then sent to the controller via CAN message packets. The controller receives this data and restores it internally. This enables data recovery in the event of data anomalies within the controller.

[0057] This embodiment provides a data backup method applied to an intermediate network device. Figure 4 This is a flowchart of another data backup method according to an embodiment of this application, such as... Figure 4 As shown, the process includes the following steps: Step S401: Receive the data frame to be backed up.

[0058] Specifically, the intermediate network device receives the backup data frame sent by the controller via the CAN bus.

[0059] Step S402: Parse the data frame to be backed up and package it into a target data packet.

[0060] Specifically, the target data packet refers to a data packet that supports internet transmission. To convert a data frame to be backed up, which supports the CAN communication protocol, into a target data packet that supports internet transmission, the data frame needs to be parsed and packaged. For example, binary data is extracted from the data field of the CAN frame, and this binary data is reorganized into a new data format (i.e., packaged) according to a preset communication protocol or application requirements.

[0061] In one example, an in-vehicle gateway acts as an intermediate network device, receiving hundreds of different CAN data frames from the vehicle's CAN bus. These data frames are parsed in real time to obtain information such as vehicle speed, engine speed, fuel consumption, and location coordinates. This information is then packaged into a compressed binary format and sent via a 4G network to the automaker's cloud platform for remote monitoring. Alternatively, it can be packaged into JSON format and sent via the in-vehicle network to the driver's mobile phone for remote vehicle status viewing.

[0062] Step S403: Send the target data packet to the backup server via a wired or wireless network.

[0063] Specifically, a backup server is a server that stores target data packets sent by intermediate network devices. After the intermediate network devices receive and parse the target data packets, they send the target data packets to the backup server via wired or wireless networks to complete the data backup.

[0064] Using the method in this embodiment, the intermediate network device parses the data frames to be backed up sent by the controller and packages them into target data packets, which are then sent to the backup server via the Internet. This enables online backup of the data in the controller's memory and securely connects the controller of the construction machinery with the external data backup server. Compared with manual backup, this greatly improves the data backup efficiency of the construction machinery.

[0065] This embodiment provides a data backup system. Figure 5 This is a schematic diagram illustrating the configuration of a data backup system according to an embodiment of this application. The system includes a data backup system comprising a controller, an intermediate network device, and a backup server, wherein... The controller obtains the raw data in the controller memory, converts the raw data into a data frame to be backed up, and the data frame to be backed up is adapted to the CAN communication protocol. When the controller's memory usage rate is lower than the preset usage rate threshold, the data frame to be backed up is sent to the intermediate network device through the multi-packet transmission mechanism of the CAN bus.

[0066] Specifically, the functions implemented by the controller are described in steps S201, S202 and step a above.

[0067] The intermediate network device receives the data frame to be backed up, parses the data frame to be backed up and packages it into a target data packet, and sends the target data packet to the backup server through a wired or wireless network.

[0068] Specifically, the functions implemented by the intermediate network device are described in steps S401, S402, and S403 above.

[0069] The backup server receives and saves the target data packet.

[0070] Specifically, the backup server receives the target data packet sent by the intermediate network device and saves it to the database.

[0071] The data backup system provided in this embodiment forwards the data of the controller of construction machinery to the backup server through an intermediate network device. Compared with manually backing up the controller data, this improves the data backup efficiency of construction machinery and enhances the reliability of data backup.

[0072] In one possible implementation, Figure 6 This is a flowchart of another data backup method according to an embodiment of this application. Figure 6 As shown, the data in the controller's memory is segmented and encapsulated in binary form, and the encapsulated data is then filled into CAN bus communication messages (bus messages). Protocol control segments and verification data are added to the bus message packets to generate a data frame to be backed up. This data frame is then sent via CAN message packets using the bus message. Vehicle networking devices such as T-boxes receive this data frame, parse it into data packets that support internet communication protocols, and then upload the data packets to the cloud server. This completes the online backup of the controller's data to the cloud server. Compared to manual backup of controller data in construction machinery, this improves data backup efficiency and reliability.

[0073] This embodiment also provides a data backup device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0074] This embodiment provides a data backup device applied to a controller, which supports CAN communication, such as... Figure 7 As shown, it includes: The acquisition module 701 is used to acquire raw data from the controller's memory; Data conversion module 702 is used to convert raw data into data frames to be backed up, and the data frames to be backed up are adapted to the CAN communication protocol. The first data transmission module 703 is used to send the data frame to be backed up to the intermediate network device through the multi-packet transmission mechanism of the CAN bus when the memory occupancy rate of the controller is lower than the preset occupancy rate threshold.

[0075] In some alternative implementations, the data conversion module 702 includes: The conversion unit is used to convert the raw data into binary data to be backed up; A segmentation unit is used to divide the data to be backed up into slice data segments of a preset length; The encapsulation unit is used to encapsulate sliced ​​data segments into data frames to be backed up.

[0076] In some alternative embodiments, the apparatus further includes: The exception handling module 704 is used to obtain intermediate data corresponding to the candidate data from the intermediate network device if the candidate data of the controller is abnormal or lost. The intermediate data is the data downloaded by the intermediate network device from the backup server.

[0077] In some alternative embodiments, the apparatus further includes: The second data transmission module 705 is used to send the data frame to be backed up to the intermediate network device through the multi-packet transmission mechanism of the CAN bus when the processor load rate of the controller is lower than the preset load rate threshold.

[0078] In some alternative implementations, the first data transmission module 703 further includes: The monitoring unit is used to monitor the memory usage or processor load of the controller at preset intervals.

[0079] This embodiment provides a data backup device applied to intermediate network devices, such as... Figure 8 As shown, it includes: Receiver module 801 is used to receive data frames to be backed up; Data parsing module 802 is used to parse the data frame to be backed up and package it into a target data packet; The data forwarding module 803 is used to send target data packets to the backup server via a wired or wireless network.

[0080] The data backup apparatus provided in this application can execute the data backup method provided in any embodiment of this application, and has the corresponding functional modules and beneficial effects for executing the method. Further functional descriptions of the various modules and units described above are the same as those in the corresponding embodiments described above, and will not be repeated here.

[0081] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0082] The following is a detailed reference. Figure 9 This diagram illustrates a suitable structural schematic for implementing the electronic device described in the embodiments of this application. The electronic device may include a processor (e.g., a central processing unit, graphics processor, etc.) 901, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 902 or a program loaded from memory 908 into random access memory (RAM) 903. The RAM 903 also stores various programs and data required for the operation of the electronic device. The processor 901, ROM 902, and RAM 903 are interconnected via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0083] Typically, the following devices can be connected to I / O interface 905: input devices 906 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 907 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; memory devices 908 including, for example, magnetic tapes, hard disks, etc.; and communication devices 909. Communication device 909 allows electronic devices to exchange data via wireless or wired communication with other devices. Although Figure 9 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown, and more or fewer devices may be implemented or have instead.

[0084] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 909, or installed from a memory 908, or installed from a ROM 902. When the computer program is executed by the processor 901, it performs the functions defined in the data backup method of embodiments of this application.

[0085] Figure 9 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0086] This application also provides a computer-readable storage medium. The methods described in this application can be implemented in hardware or firmware, or implemented as recordable on a storage medium, or implemented as computer code downloaded over a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the data backup method shown in the above embodiments is implemented.

[0087] A portion of this application can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to this application through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.

[0088] Although embodiments of this application have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of this application, and all such modifications and variations fall within the scope defined by the appended claims.

Claims

1. A data backup method, characterized in that, Applied to a controller that supports CAN communication, the method includes: Obtain the raw data from the controller's memory; The raw data is converted into a data frame to be backed up, and the data frame to be backed up is adapted to the CAN communication protocol. When the memory utilization rate of the controller is lower than the preset utilization rate threshold, the data frame to be backed up is sent to the intermediate network device through the multi-packet transmission mechanism of the CAN bus.

2. The method according to claim 1, characterized in that, The step of converting the raw data into a data frame to be backed up includes: The raw data is converted into binary data to be backed up; The data to be backed up is divided into slice data segments of a preset length; The sliced ​​data segment is encapsulated into the data frame to be backed up.

3. The method according to claim 1, characterized in that, The method further includes: If the candidate data of the controller is abnormal or lost, the controller obtains the intermediate data corresponding to the candidate data from the intermediate network device. The intermediate data is the data downloaded by the intermediate network device from the backup server.

4. The method according to claim 1, characterized in that, The method further includes: When the processor load rate of the controller is lower than the preset load rate threshold, the data frame to be backed up is sent to the intermediate network device through the multi-packet transmission mechanism of the CAN bus.

5. The method according to claim 1, characterized in that, Before sending the data frame to be backed up to the intermediate network device via the multi-packet transmission mechanism of the CAN bus, the method further includes: The memory usage or processor load of the controller is monitored at preset intervals.

6. A data backup method, characterized in that, Applied to intermediate network devices, the method includes: Receive the data frame to be backed up; The data frames to be backed up are parsed and packaged into target data packets; The target data packet is sent to the backup server via a wired or wireless network.

7. A data backup system, characterized in that, The data backup system includes a controller, intermediate network devices, and a backup server, wherein... The controller acquires the raw data in its memory and converts the raw data into a data frame to be backed up. The data frame to be backed up is adapted to the CAN communication protocol. When the memory occupancy rate of the controller is lower than a preset occupancy rate threshold, the data frame to be backed up is sent to the intermediate network device through the multi-packet transmission mechanism of the CAN bus. The intermediate network device receives the data frame to be backed up, parses the data frame to be backed up and packages it into a target data packet, and sends the target data packet to the backup server through a wired or wireless network; The backup server receives and saves the target data packet.

8. A data backup device, characterized in that, Applied to a controller that supports CAN communication, the device includes: The acquisition module is used to acquire the raw data in the controller's memory; The data conversion module is used to convert the raw data into a data frame to be backed up, the data frame to be backed up being compatible with the CAN communication protocol; The data transmission module is used to send the data frame to be backed up to the intermediate network device through the multi-packet transmission mechanism of the CAN bus when the memory occupancy rate of the controller is lower than the preset occupancy rate threshold.

9. A data backup device, characterized in that, Applied to intermediate network devices, the apparatus includes: The receiving module is used to receive data frames to be backed up; The data parsing module is used to parse the data frame to be backed up and package it into a target data packet; The data forwarding module is used to send the target data packet to the backup server via a wired or wireless network.

10. An electronic device, characterized in that, include: A memory and a processor are communicatively connected, the memory stores computer instructions, and the processor executes the computer instructions to perform the data backup method of any one of claims 1 to 6.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to perform the data backup method according to any one of claims 1 to 6.

12. A computer program product, characterized in that, Includes computer instructions for causing a computer to perform the data backup method according to any one of claims 1 to 6.