Data processing method and device and operation machine

By employing a dual storage strategy and magic number verification in the operating machinery, the problem of data loss during power outages was solved, ensuring data security and reliability, and guaranteeing the safe operation and rapid recovery of the operating machinery.

CN120929305APending Publication Date: 2025-11-11SANY AUTOMOBILE HOISTING MACHINERY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511044031.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-28
Publication Date
2025-11-11

AI Technical Summary

Technical Problem

When the operating machinery loses power, the operating data stored in the buffer area is easily lost, resulting in unsafe and unreliable data processing.

Method used

A dual storage strategy is adopted, which stores the job file twice consecutively based on the current running state. The first time, it is quickly saved in the non-persistent storage area, and the second time it is transferred to the persistent storage area. The stored job file is loaded when the power is on. Data integrity is ensured by magic number verification and backup files.

Benefits of technology

It effectively prevents data loss due to power outages, improves the security and reliability of operational data, and ensures that the operating machinery can be quickly restored in abnormal situations, reducing the impact on the work progress.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120929305A_ABST
    Figure CN120929305A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of operation machinery, and discloses a data processing method and device and operation machinery, and the method comprises the steps: obtaining the current operation state of the operation machinery; and based on the current operation state, storing the current operation file of the operation machine twice or loading the stored operation file of the operation machine. The method can ensure that the operation data cannot be lost and improve the safety and reliability of the operation data under the unforeseen circumstances of power failure and the like of the operation machine, so that the operation safety of the operation machine is ensured, meanwhile, the previous working state can be quickly recovered when the data is recovered or the operation machine is restarted, and the working efficiency is improved. And the influence on the operation progress is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of work machinery technology, specifically to a data processing method, device, and work machinery. Background Technology

[0002] With the continuous development of the economy, the application of construction machinery in various industries is becoming increasingly widespread. In related technologies, the operational data of construction machinery (such as operating parameters and operating instructions) is usually written to the system memory buffer in real time, and then written to the disk through an asynchronous writing mechanism when system resources are idle. However, once the construction machinery loses power, the operational data stored in the buffer will be lost. Therefore, it is necessary to reliably process the operational data of construction machinery to ensure the safe operation of construction machinery. Summary of the Invention

[0003] In view of this, the present invention provides a data processing method, apparatus and operating machinery to solve the problem that in the related art, the operation data of operating machinery is usually written to the system memory buffer in real time and then written to the disk through an asynchronous writing mechanism when system resources are idle. Once the operating machinery loses power, the operation data stored in the buffer will be lost.

[0004] In a first aspect, the present invention provides a data processing method, the method comprising:

[0005] Obtain the current operating status of the operating machinery;

[0006] Based on the current operating status, save the current operation file of the machine twice consecutively, or load the operation file that the machine has already saved.

[0007] The data processing method provided in this invention stores the current operation file of the machine twice based on the current operating state to ensure that the operation data is not lost in the event of an accident such as a power outage, thereby improving the security and reliability of the operation data and ensuring the operation safety of the machine. By loading the operation file already stored by the machine based on the current operating state, the machine can quickly return to the previous working state when data recovery or restarting the machine, reducing the impact on the operation progress.

[0008] In some optional implementations, based on the current operating state, the current operation file of the operating machine is stored twice consecutively, or a previously stored operation file of the operating machine is loaded, including:

[0009] If the current operating state is interactive or power failure, the current job file of the machine will be stored twice consecutively. When the current job file is stored in the non-persistent storage area for the second time, the current job file stored in the non-persistent storage area for the first time will be written to the persistent storage area through the write scheduling mechanism. The write scheduling mechanism is used to increase the number of writes and extend the write time to improve the probability of successful writing of the job file. At the same time, the sequential writing of large data blocks is adopted to improve the writing speed of the job file.

[0010] If the current operating status is "powered on", then load the work files already stored by the operating machinery.

[0011] The data processing method provided in this invention employs a dual storage strategy to ensure the security of the current job file, taking into account the instability or risk of data loss when the machine is in an interactive or power-off state. The first storage is in a non-persistent storage area for fast access, while the subsequent second storage increases the probability of transferring the current job file from the non-persistent storage area to a more reliable persistent storage area, effectively preventing data loss due to unexpected power outages or operational interruptions. Conversely, when the machine is in a stable power-on state, the stored job file is directly loaded to quickly resume or continue previous work, reducing unnecessary waiting time and improving overall operational smoothness and user experience.

[0012] In some optional implementations, if the current operating state is an interactive state or a power-off state, the current operation file of the operating machine is stored twice consecutively, including:

[0013] If the current running state is interactive, then obtain the job backup file of the current job file based on the interactive information, and store the current job file and the job backup file twice consecutively.

[0014] If the current running status is a power outage state, then obtain the job backup file of the current job file, and store the current job file and the job backup file after two delays.

[0015] The data processing method provided in this invention ensures multiple layers of data protection by acquiring the job backup file based on interactive information in interactive mode and saving the file simultaneously during two consecutive storage processes. In power-off mode, a delayed storage strategy is adopted, that is, the current job file and its backup are saved only after a target time, and then stored again in the shortest time allowed by the operating machinery, to minimize the risk of data loss in the event of abnormal start-up or shutdown of the operating machinery.

[0016] In some optional implementations, if the current operating state is power-on, the work files already stored by the operating machinery are loaded, including:

[0017] If the current operating state is power-on, the work files stored by the operating machinery are loaded to obtain the magic number of the stored work files. The magic number is stored in the target tail address of the stored work files.

[0018] If the magic number of the stored job file is the same as the target magic number, then the parameters of the job machine are assigned based on the stored job file.

[0019] The data processing method provided in this invention loads a stored work file when the machine is powered on, verifies the integrity of the work file by comparing the magic number of the stored work file with the target magic number, and assigns parameter values ​​to the machine based on the stored work file when the magic number of the stored work file is the same as the target magic number, ensuring that the machine can operate normally according to the previously saved parameter state, thereby improving the security and reliability of data processing.

[0020] In some optional implementations, the above method further includes:

[0021] If the magic number of the stored job file is different from the target magic number, load the job backup file stored by the job machine to obtain the magic number of the job backup file;

[0022] If the magic number of the stored job backup file is the same as the target magic number, then the parameters of the job machine are assigned based on the stored job backup file.

[0023] The data processing method provided in this invention attempts to load a backup job file when the magic number of the stored job file differs from the target magic number, and compares the magic number of the backup job file with the target magic number to ensure data recovery and normal operation of the operating machinery. When the magic number of the backup job file matches the target magic number, the backup job file is used to assign parameters to the operating machinery. This mechanism enhances the fault tolerance of data processing. Even if the main job file is damaged, the backup job file can be used to quickly restore the operating machinery to the correct parameter state, further improving the robustness of data processing and the continuity of operation of the operating machinery.

[0024] In some optional implementations, the above method further includes:

[0025] If the magic number of the stored job backup file is different from the target magic number, the exception handling thread will be triggered to issue an exception alarm.

[0026] The data processing method provided in this embodiment of the invention can quickly respond to data inconsistencies by triggering an exception handling thread and issue an exception alarm in a timely manner so that operators or the system can take corrective measures automatically. This further enhances the reliability and security of data processing and ensures that the machinery operates under the premise of data integrity and accuracy.

[0027] In some alternative implementations, the method further includes the following steps before loading the work files already stored by the operating machinery:

[0028] Identify the load start address of each data structure unit in the stored job file, where each data structure unit stores the corresponding job parameter calibration;

[0029] If the starting address of the loaded data is different from the starting address of the target data, the exception handling thread will be triggered to issue an exception alarm.

[0030] The data processing method provided in this invention can detect errors or tampering that may occur in the storage or transmission of the work file by identifying the difference between the loading start address and the target start address. This triggers an exception handling thread to respond quickly and issue an exception alarm, further enhancing the integrity and security of data processing. It ensures that only correct and untampered work files can be loaded into the working machinery, thereby effectively avoiding potential risks caused by the operation of the working machinery due to incorrect parameters. At the same time, it reduces the need for manual intervention and improves work efficiency.

[0031] In some alternative implementations, creating a job file includes:

[0032] Obtain the calibration sequence of multiple operating parameters in the operating machinery;

[0033] A corresponding data structure unit is created for each job parameter calibration based on the order of job parameter calibration;

[0034] The loading start address of the corresponding data structure unit is determined based on the fixed parameters and extended parameters calibrated for each job parameter.

[0035] The job file is created based on the job parameter calibration and the corresponding load starting address.

[0036] The data processing method provided in this embodiment creates corresponding data structure units for the calibration of operation parameters, and determines the loading start address based on the fixed parameters and extended parameters of each operation parameter calibration. This enables the program to have good maintainability and data structure readability, while also providing more accurate guidance for the operation of the machinery, reducing mechanical failures caused by parameter errors or inconsistencies, thereby extending the service life of the machinery and improving overall operation efficiency.

[0037] In a second aspect, the present invention provides a data processing apparatus, the apparatus comprising:

[0038] The status acquisition module is used to acquire the current operating status of the operating machinery;

[0039] The data processing module is used to store the current operation file of the operating machine twice consecutively based on the current operating status, or to load the operation file that the operating machine has already stored.

[0040] The data processing device provided in this embodiment of the invention stores the current operation file of the operating machine twice consecutively based on the current operating state, so as to ensure that the operation data will not be lost in the event of an accident such as power failure of the operating machine, thereby improving the security and reliability of the operation data and ensuring the operation safety of the operating machine; by loading the operation file stored by the operating machine based on the current operating state, the previous working state can be quickly restored when data recovery or restarting of the operating machine is performed, reducing the impact on the operation progress.

[0041] Thirdly, the present invention provides an electronic device, including a memory and a processor;

[0042] The memory is connected to the processor and is used to store programs;

[0043] The processor is used to execute the aforementioned data processing methods by running programs in memory.

[0044] Fourthly, the present invention provides a working machine equipped with a data processing system, which is used to perform the aforementioned data processing method.

[0045] Fifthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to perform the data processing method described in the first aspect or any corresponding embodiment thereof.

[0046] Sixthly, the present invention provides a computer program product, including computer instructions, which are used to cause a computer to execute the data processing method described in the first aspect or any corresponding embodiment thereof.

[0047] It should be noted that the corresponding beneficial effects of the data processing device, operating machinery, and computer-readable storage medium provided in the embodiments of the present invention can be found in the description of the corresponding beneficial effects of the data processing method above, and will not be repeated here. Attached Figure Description

[0048] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in 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 the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0049] Figure 1 This is a flowchart illustrating the data processing method according to an embodiment of the present invention;

[0050] Figure 2 This is a data flow diagram of the job interaction of the data processing method according to an embodiment of the present invention;

[0051] Figure 3 This is a delayed storage data flow diagram of the data processing method according to an embodiment of the present invention;

[0052] Figure 4 This is a parameter assignment data flow diagram of the data processing method according to an embodiment of the present invention;

[0053] Figure 5 This is a schematic diagram of the job file storage of the data processing method according to an embodiment of the present invention;

[0054] Figure 6 This is a schematic diagram of the data structure unit of the data processing method according to an embodiment of the present invention;

[0055] Figure 7 This is a structural block diagram of the data processing device according to an embodiment of the present invention;

[0056] Figure 8 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Detailed Implementation

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

[0058] This embodiment provides a data processing method. Figure 1 This is a flowchart of a data processing method according to an embodiment of the present invention, such as... Figure 1 As shown, the process includes the following steps:

[0059] Step S101: Obtain the current operating status of the operating machinery.

[0060] The current operating status of the machinery includes interactive status, power-off status, and power-on status.

[0061] In some optional implementations, when acquiring the current operating status of the machinery, sensors can be used to monitor various operating parameters of the machinery in real time, including but not limited to engine speed, oil temperature, and oil pressure, thereby comprehensively analyzing and determining the current operating status of the machinery. Furthermore, communication with the machinery's control system can be established to directly read the internal operating status information of the machinery, thereby improving the accuracy and real-time nature of status acquisition.

[0062] Step S102: Based on the current operating status, store the current operation file of the operating machine twice consecutively or load the operation file that has been stored by the operating machine.

[0063] The current work file of the operating machine will be stored in the non-persistent storage area, while the work file to be loaded by the operating machine will be stored in the persistent storage area.

[0064] In some optional implementations, when storing the current job file of the operating machine or loading the job file already stored by the operating machine twice consecutively based on the current operating state, if the current operating state is an interactive state or a power-off state, the current job file of the operating machine is stored twice consecutively. When the current job file is stored in the non-persistent storage area for the second time, the current job file stored in the non-persistent storage area for the first time will be written to the persistent storage area through a write scheduling mechanism. The write scheduling mechanism is used to increase the number of writes and extend the write time to improve the probability of successful writing of the job file. At the same time, a large data block sequential write method is adopted to improve the writing speed of the job file.

[0065] Specifically, when the operating machinery is in an interactive or power-off state, the system takes a series of measures to optimize the storage process to ensure the security and integrity of the operation data. First, the current job file is stored twice consecutively in the non-persistent storage area to retain a copy of the data in the temporary area in case of data loss. Next, using a write scheduling mechanism, the job file initially stored in the non-persistent storage area is transferred sequentially to the persistent storage area. By increasing the number of writes and extending the write time, the probability of successful data writing is effectively improved, reducing the risk of data corruption due to hardware failure or unexpected power outages. Simultaneously, to improve the writing speed of the job file, a large block sequential write method is adopted, which significantly reduces disk seek time and rotational latency, thereby accelerating the data writing process and ensuring that the operating machinery can still quickly and reliably complete data storage tasks even in an interactive or power-off state. During the data transfer process, if any abnormality occurs in the job file in the non-persistent storage area, such as damage or tampering, an alarm mechanism is immediately triggered to notify the operator for timely handling. Meanwhile, to ensure the real-time nature and validity of the data, when the operating machinery is powered on again, it is necessary to first check whether there is a valid job file in the persistent storage area. If it exists, the file is directly loaded into the work area for the operating machinery to continue execution, thereby greatly improving the efficiency of operation and the reliability of data processing.

[0066] The data processing method provided in this invention employs a dual storage strategy to ensure the security of the current job file, taking into account the instability or risk of data loss when the machine is in an interactive or power-off state. The first storage is in a non-persistent storage area for fast access, while the subsequent second storage increases the probability of transferring the current job file from the non-persistent storage area to a more reliable persistent storage area, effectively preventing data loss due to unexpected power outages or operational interruptions. Conversely, when the machine is in a stable power-on state, the stored job file is directly loaded to quickly resume or continue previous work, reducing unnecessary waiting time and improving overall operational smoothness and user experience.

[0067] In some optional implementations, when the current running state is interactive, the job backup file of the current job file can be obtained based on the interactive information, and the current job file and the job backup file can be stored twice consecutively; when the current running state is power off, the job backup file of the current job file can be obtained, and the current job file and the job backup file can be stored twice with a delay.

[0068] For details, please refer to Figure 2In interactive mode, if the working machinery is not performing active movements such as luffing, extension, or slewing, it can receive user operation commands through the interactive interface. These commands include multilingual environment configuration, work mode selection, main control switch status switching, power system start / stop control, and editing, saving, or modifying the content of the current work file. Simultaneously, a work backup file is generated; this backup file is a snapshot of the current work file and is used to restore data when needed. Subsequently, two consecutive storage operations are performed. First, the current work file and its backup file are stored in the non-persistent storage area for fast access. Then, a second storage operation is triggered, transferring both files to the persistent storage area to ensure data security and reliability.

[0069] Please see Figure 3 In the event of a sudden power outage in the operating machinery, the control system, based on the power failure buffer period (e.g., 3-10 minutes), performs two delayed storage operations upon detecting the power interruption signal. First, it quickly stores the current job file and its backup file into a built-in non-volatile cache, which ensures data integrity even during a short period of time. Next, the delayed storage mechanism is activated. After a certain period (e.g., a few seconds or 3 minutes), these two files are read from the cache and stored in persistent storage, such as a hard drive or SSD. This avoids incomplete storage operations that might occur due to a sudden power restoration, and also prevents file corruption and loss of all operating data caused by storing files at the moment of power failure. This further enhances data protection in the event of an unexpected power outage, ensuring the integrity and recoverability of the job files.

[0070] The data processing method provided in this invention ensures multiple layers of data protection by acquiring the job backup file based on interactive information in interactive mode and saving the file simultaneously during two consecutive storage processes. In power-off mode, a delayed storage strategy is adopted, that is, the current job file and its backup are saved only after a target time, and then stored again in the shortest time allowed by the operating machinery, to minimize the risk of data loss in the event of abnormal start-up or shutdown of the operating machinery.

[0071] In some optional implementations, when the current operating state is power-on, the stored work files of the operating machinery can be loaded to obtain the magic number of the stored work files. The magic number is stored in the target end address of the stored work files. If the magic number of the stored work files is the same as the target magic number, then the parameters of the operating machinery are assigned based on the stored work files. Here, the magic number is a specific value used to verify data integrity and is usually appended to the end of the data.

[0072] Specifically, when the machine is powered on, it can load previously saved job information, which exists in the form of job files. By parsing these job files, a magic number stored at a specific location at the end of the file (i.e., the target end address) can be obtained. If the detected job file magic number exactly matches the preset target magic number, it indicates that the job file is valid and reliable. Subsequently, parameters for the relevant job processes or tasks can be configured based on the verified job files.

[0073] The data processing method provided in this invention loads a stored work file when the machine is powered on, verifies the integrity of the work file by comparing the magic number of the stored work file with the target magic number, and assigns parameter values ​​to the machine based on the stored work file when the magic number of the stored work file is the same as the target magic number, ensuring that the machine can operate normally according to the previously saved parameter state, thereby improving the security and reliability of data processing.

[0074] In some optional implementations, if the magic number of the stored job file is different from the target magic number, the stored job backup file of the working machine is loaded to obtain the magic number of the job backup file; if the magic number of the stored job backup file is the same as the target magic number, the parameters of the working machine are assigned based on the stored job backup file.

[0075] Specifically, when a mismatch is detected between the magic number of a job file and the target magic number, one or more stored job backup files can be loaded first. These backup files serve as redundant storage to ensure data recovery capabilities. By parsing the backup files, the magic number stored at a specific position at the end of each file can be obtained. If the magic number of the backup file matches the preset target magic number exactly, it indicates that the backup file is also valid and has not been tampered with. In this case, the parameters of the operating machinery can be configured based on this verified backup file to ensure that the machinery can be restored to an effective and reliable working state.

[0076] The data processing method provided in this invention attempts to load a backup job file when the magic number of the stored job file differs from the target magic number, and compares the magic number of the backup job file with the target magic number to ensure data recovery and normal operation of the operating machinery. When the magic number of the backup job file matches the target magic number, the backup job file is used to assign parameters to the operating machinery. This mechanism enhances the fault tolerance of data processing. Even if the main job file is damaged, the backup job file can be used to quickly restore the operating machinery to the correct parameter state, further improving the robustness of data processing and the continuity of operation of the operating machinery.

[0077] In some optional implementations, if the magic number of the stored job backup file is different from the target magic number, an exception handling thread is triggered to issue an exception alarm, such as activating the GUI alarm channel to issue a pop-up warning.

[0078] As an example, please see Figure 4 When the operating machinery is currently powered on, the system loads the stored job file and identifies the magic number stored at the target end address (e.g., 0x1FC0) of the job file to obtain the magic number of the stored job file. The system then compares the stored magic number with the target magic number. If they match, the system assigns parameters to the operating machinery based on the stored job file, i.e., assigns the content of the stored job file to the relevant parameters of the operating machinery. If they differ, the system loads the stored job backup file to obtain the magic number of the job backup file. The system then compares the magic number of the stored job backup file with the target magic number. If they match, the system assigns parameters to the operating machinery based on the stored job backup file, i.e., assigns the content of the stored job file to the relevant parameters of the operating machinery. If the magic number of the stored job backup file is different from the target magic number, the exception handling thread will be triggered to issue an exception alarm, such as a GUI pop-up alarm.

[0079] The data processing method provided in this embodiment of the invention can quickly respond to data inconsistencies by triggering an exception handling thread and issue an exception alarm in a timely manner so that operators or the system can take corrective measures automatically. This further enhances the reliability and security of data processing and ensures that the machinery operates under the premise of data integrity and accuracy.

[0080] In some optional implementations, before loading the work file already stored by the operating machine, the loading start address of each data structure unit in the stored work file can be identified; if the loading start address is different from the target start address, an exception handling thread is triggered to issue an exception alarm. Each data structure unit stores corresponding work parameter calibrations, the target start address is the preset data structure unit start address, and the loading start address is the data structure unit start address calculated by the application at runtime.

[0081] Specifically, when a discrepancy is detected between the loaded starting address and the target starting address, it is necessary not only to record this abnormal event but also to promptly communicate the anomaly to relevant personnel through pre-defined alarm channels, such as sending a notification to the manager's email address or mobile application. This allows managers to quickly identify problems in the work documents and take necessary corrective measures, ensuring that the machinery operates based on accurate and complete work parameters and preventing potential malfunctions or safety accidents.

[0082] The data processing method provided in this invention can detect errors or tampering that may occur in the storage or transmission of the work file by identifying the difference between the loading start address and the target start address. This triggers an exception handling thread to respond quickly and issue an exception alarm, further enhancing the integrity and security of data processing. It ensures that only correct and untampered work files can be loaded into the working machinery, thereby effectively avoiding potential risks caused by the operation of the working machinery due to incorrect parameters. At the same time, it reduces the need for manual intervention and improves work efficiency.

[0083] In some optional implementations, when creating a job file, the order of multiple job parameter calibrations in the operating machine can be obtained first; a corresponding data structure unit can be created for each job parameter calibration based on the order of the job parameter calibrations; the loading start address of the corresponding data structure unit can be determined based on the fixed parameters and extended parameters of each job parameter calibration; and the job file can be created based on the job parameter calibrations and the corresponding loading start addresses.

[0084] Specifically, when creating data structure units, a unique identifier can be assigned to each operational parameter calibration to ensure accurate identification of each parameter in subsequent processing. Simultaneously, based on the order of operational parameter calibration (e.g., length calibration, angle calibration, current parameter calibration, etc., no-load calibration), corresponding data structure units are created for each operational parameter calibration. These data structure units can not only store corresponding fixed parameters, such as the reference values ​​for length and angle, but also accommodate extended parameters, such as calibration date and operator information, to provide comprehensive operational parameter management. Furthermore, by determining the loading start address for each data structure unit, it can be ensured that each parameter is correctly read and parsed when the operational file is loaded, avoiding parameter confusion or omissions. This not only improves the data processing capabilities of the operating machinery but also further enhances the safety and accuracy of the operation. Meanwhile, by creating corresponding data structure units for the calibration of operation parameters, and determining the loading start address based on the fixed and extended parameters of each operation parameter calibration, the program has good maintainability and data structure readability, which can more accurately guide the operation of the operating machinery, reduce mechanical failures caused by parameter errors or inconsistencies, thereby extending the service life of the operating machinery and improving the overall operation efficiency.

[0085] As an example, please see Figure 5If a modular binary file (8KB storage space) structure is adopted, and the order of multiple operation parameter calibrations is followed, such as length calibration, angle calibration, configuration (virtual wall selection and camera selection), overload data, electro-hydraulic composite data, pre-embedded lock parameters, magic number, etc., when creating a corresponding data structure unit for each operation parameter calibration, if the address range of the operation file is 0 to 8192, the loading start address of the corresponding data structure unit can be determined based on the fixed parameters and extended parameters of each operation parameter calibration. This can be the start address of length calibration and angle calibration (596), the start address of configuration and overload data (2212), the start address of electro-hydraulic composite data and pre-embedded lock parameters (2668), and the start address of magic number (0X1FC0).

[0086] For further information, please refer to [link / reference]. Figure 6 When determining the corresponding data structure unit based on the fixed and extended parameters calibrated for each operation parameter, taking the angle calibration data structure unit as an example, a 1:N dynamic expansion storage strategy can be adopted, with 32-byte alignment and pre-allocation of expandable memory space to accommodate subsequent new parameters. For example, if the fixed parameters are the arm head angle, arm tail angle, and secondary arm angle, and the extended parameters are the arm head angle algorithm type, arm head angle algorithm type initialization flag, etc., which are fields added by subsequent new functions, then the pre-allocated extended storage space for storing extended parameters is N times the storage space of the fixed parameters.

[0087] In summary, the data processing method provided by this invention stores the current operation file of the machine twice based on the current operating state, ensuring that the operation data will not be lost in the event of an accident such as a power outage, thereby improving the security and reliability of the operation data and ensuring the operation safety of the machine. By loading the operation file already stored by the machine based on the current operating state, the machine can quickly return to the previous working state when performing data recovery or restarting the machine, reducing the impact on the operation progress.

[0088] This embodiment also provides a data processing apparatus 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 apparatus described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0089] This embodiment provides a data processing device, such as... Figure 7 As shown, it includes:

[0090] The status acquisition module 701 is used to acquire the current operating status of the operating machinery.

[0091] The data processing module 702 is used to store the current operation file of the operating machine twice consecutively based on the current operating status, or to load the operation file that has been stored by the operating machine.

[0092] In some alternative implementations, the data processing module 702 includes:

[0093] The file storage unit is used to store the current operation file of the machine twice consecutively if the current operating state is interactive or power failure. When the current operation file is stored in the non-persistent storage area for the second time, the current operation file stored in the non-persistent storage area for the first time will be written to the persistent storage area through the write scheduling mechanism. The write scheduling mechanism is used to increase the number of writes and extend the write time to improve the probability of successful writing of the operation file. At the same time, it adopts a large data block sequential write method to improve the writing speed of the operation file.

[0094] The file loading unit is used to load the work files stored by the operating machine if the current operating state is power-on.

[0095] In some alternative implementations, the file storage unit includes:

[0096] The file acquisition subunit is used to acquire the job backup file of the current job file based on the interaction information if the current running state is interactive, and to store the current job file and the job backup file twice in a row.

[0097] The file storage subunit is used to retrieve the job backup file of the current job file if the current running state is a power failure state, and store the current job file and the job backup file with two delays.

[0098] In some alternative implementations, the file loading unit includes:

[0099] The file loading subunit is used to load the work files stored by the machine if the current operating state is power-on, so as to obtain the magic number of the stored work files. The magic number is stored in the target tail address of the stored work files.

[0100] The first assignment subunit is used to assign parameter values ​​to the working machine based on the stored job file if the magic number of the stored job file is the same as the target magic number.

[0101] In some optional implementations, the file loading unit further includes:

[0102] The second assignment subunit is used to assign parameter values ​​to the operating machinery based on the stored job backup file if the magic number of the stored job backup file is the same as the target magic number.

[0103] In some optional implementations, the file loading unit further includes:

[0104] The exception alarm subunit is used to trigger the exception handling thread to issue an exception alarm if the magic number of the stored job backup file is different from the target magic number.

[0105] In some optional implementations, the file loading unit is also used to identify the loading start address of each data structure unit in the stored job file, wherein each data structure unit stores the corresponding job parameter calibration; if the loading start address is different from the target start address, the exception handling thread is triggered to issue an exception alarm.

[0106] In some optional implementations, creating a job file includes: obtaining the order of calibration of multiple job parameters in the operating machinery; creating a corresponding data structure unit for each job parameter calibration based on the order of job parameter calibration; determining the loading start address of the corresponding data structure unit based on the fixed parameters and extended parameters of each job parameter calibration; and creating a job file based on the job parameter calibration and the corresponding loading start address.

[0107] The data processing device provided in this embodiment stores the current operation file of the operating machine twice based on the current operating state to ensure that the operation data will not be lost in the event of an accident such as a power outage, thereby improving the security and reliability of the operation data and ensuring the operation safety of the operating machine. By loading the operation file stored by the operating machine based on the current operating state, the previous working state can be quickly restored when data recovery or restarting of the operating machine is performed, reducing the impact on the operation progress.

[0108] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.

[0109] In this embodiment, the data processing device is presented in the form of a functional unit. Here, a unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.

[0110] Figure 8 The diagram shows a structural schematic of an embodiment of the electronic device of the present invention. The specific embodiments of the present invention do not limit the specific implementation of the electronic device.

[0111] like Figure 8As shown, the electronic device may include: a processor 802, a communications interface 804, a memory 806, and a communications bus 808.

[0112] The processor 802, communication interface 804, and memory 806 communicate with each other via communication bus 808. Communication interface 804 is used for network communication with other devices, such as clients or other servers. Processor 802 executes program 810, specifically performing the relevant steps described above in the data processing method embodiment.

[0113] Specifically, program 810 may include program code, which includes computer-executable instructions.

[0114] Processor 802 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention. The electronic device includes one or more processors, which may be processors of the same type, such as one or more CPUs; or they may be processors of different types, such as one or more CPUs and one or more ASICs.

[0115] Memory 806 is used to store program 810. Memory 806 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.

[0116] The present invention also provides a working machine, which is equipped with a data processing system for performing the data processing method described above.

[0117] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via 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, which, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.

[0118] A portion of the embodiments of this application can be applied as a computer program product, such as computer program instructions. When executed by a computer, these instructions, through the operation of the computer, can invoke or provide the methods and / or technical solutions according to the present invention. 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. Accordingly, 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.

[0119] Although embodiments of the invention 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 the invention, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A data processing method, characterized in that, The method includes: Obtain the current operating status of the operating machinery; Based on the current operating status, the current operation file of the operating machine is stored twice consecutively, or the operation file already stored by the operating machine is loaded.

2. The method according to claim 1, characterized in that, The step of storing the current operation file of the operating machine or loading the previously stored operation file of the operating machine twice consecutively based on the current operating state includes: If the current operating state is an interactive state or a power-off state, the current operation file of the machine is stored twice consecutively. When the current operation file is stored in the non-persistent storage area for the second time, the current operation file stored in the non-persistent storage area for the first time will be written into the persistent storage area through a write scheduling mechanism. The write scheduling mechanism is used to increase the number of writes and extend the write time to improve the probability of successful writing of the operation file. At the same time, a large data block sequential write method is used to improve the writing speed of the operation file. If the current operating state is "powered on", then load the work file already stored by the machine.

3. The method according to claim 2, characterized in that, If the current operating state is an interactive state or a power-off state, then the current operation file of the operating machine is stored twice consecutively, including: If the current running state is an interactive state, then the job backup file of the current job file is obtained based on the interactive information, and the current job file and the job backup file are stored twice consecutively. If the current operating state is a power outage state, then obtain the job backup file of the current job file, and store the current job file and the job backup file with two delays.

4. The method according to claim 2, characterized in that, If the current operating state is power-on, then loading the work file already stored by the operating machinery includes: If the current operating state is the power-on state, then the work file stored by the working machine is loaded to obtain the magic number of the stored work file, and the magic number is stored in the target tail address of the stored work file; If the magic number of the stored job file is the same as the target magic number, then the parameters of the job machine are assigned based on the stored job file.

5. The method according to claim 4, characterized in that, The method further includes: If the magic number of the stored job file is different from the target magic number, then load the job backup file stored by the operating machine to obtain the magic number of the job backup file; If the magic number of the stored job backup file is the same as the target magic number, then the parameters of the operating machine are assigned based on the stored job backup file.

6. The method according to claim 5, characterized in that, The method further includes: If the magic number of the stored job backup file is different from the target magic number, an exception handling thread is triggered to issue an exception alarm.

7. The method according to claim 2, characterized in that, Before loading the work files already stored by the operating machinery, the method further includes: Identify the load start address of each data structure unit in the stored job file, wherein each data structure unit stores the corresponding job parameter calibration; If the loaded starting address is different from the target starting address, the exception handling thread will be triggered to issue an exception alarm.

8. The method according to claim 7, characterized in that, Creating the job file includes: Obtain the order in which multiple operating parameters are calibrated in the operating machinery; Based on the order of the job parameter calibration, a corresponding data structure unit is created for each job parameter calibration; The loading start address of the corresponding data structure unit is determined based on the fixed parameters and extended parameters calibrated for each of the job parameters; The job file is created based on the job parameter calibration and the corresponding load starting address.

9. A data processing apparatus, characterized in that, The device includes: The status acquisition module is used to acquire the current operating status of the operating machinery; The data processing module is used to store the current operation file of the operating machine twice consecutively, or load the operation file already stored by the operating machine, based on the current operating status.

10. A type of operating machinery, characterized in that, The operating machinery is equipped with a data processing system, which is used to perform the data processing method as described in any one of claims 1 to 7.