Controller program updating system and method for engineering machinery

Through the automated update system coordinated by the GPS terminal and the server, the program is backed up and upgraded during pauses in the excavator's operation, solving the problem of complex and easily damaged controller program updates in the existing technology, and achieving simplified operations and the integrity and correctness of data transmission.

CN120743316APending Publication Date: 2025-10-03XCMG EXCAVATOR MACHINERY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510887192.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-30
Publication Date
2025-10-03

AI Technical Summary

Technical Problem

The existing engineering machinery controller program update process is complex and requires manual participation, and is prone to file damage or loss, affecting convenience and data transmission integrity.

Method used

An automated program update system that uses a GPS terminal and server is used to back up and upgrade programs during pauses in the excavator's movements through a motion detection module, and the integrity and correctness of data transmission are ensured using the CAN bus and CRC checksum.

Benefits of technology

It realizes the automatic update of controller program, simplifies the operation process, ensures the integrity and correctness of data transmission, and prevents the upgrade file from being damaged.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120743316A_ABST
    Figure CN120743316A_ABST
Patent Text Reader

Abstract

The invention discloses a controller program updating system and method for engineering machinery, and belongs to the technical field of engineering machinery. The system comprises a server which is used for storing program upgrading data, obtaining program version information through analysis according to the program upgrading data, and sending the program upgrading data and the program version information to a GPS terminal; the GPS terminal is in communication connection with the server and the controller and is used for receiving the program version information and the program upgrading data sent by the server and sending the program version information and the program upgrading data to the controller; the display end is in communication connection with the controller, and is used for receiving and displaying a program updating instruction of the controller, and is used for a user to select whether program updating is carried out or not and send a selection result to the controller; the action detection module is used for detecting whether the action state of the excavator is an action pause clearance or not; and the updating display module is used for displaying whether program updating succeeds or not. According to the invention, the program of the controller is automatically updated, the integrity and correctness of data transmission are guaranteed, and the upgrade file is prevented from being damaged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of engineering machinery, and in particular relates to a controller program updating system and method for engineering machinery. Background Art

[0002] As excavator products are continuously introduced to the market, the application of controllers is becoming more and more extensive. The market has also put forward different requirements for the functional characteristics of the products. The iteration and upgrade of controller programs are becoming more and more frequent. Therefore, the method of program iteration and upgrade has become an important part of whether the product application is convenient.

[0003] Traditional program updates often require installing an application development environment on a computer and downloading and updating the program using specialized integrated development tools, a complex and cumbersome process. Alternatively, service personnel can remotely control the device and perform the upgrade step by step. Regardless of the method, the program upgrade process requires manual intervention and involves numerous steps, significantly impacting the user experience. Furthermore, interruptions during the update process often lead to damage or loss of the upgrade file. Summary of the Invention

[0004] The purpose of the present invention is to overcome the deficiencies in the prior art and provide a controller program update system and method for engineering machinery, so as to realize automatic update of the controller program, ensure the integrity and correctness of data transmission, and prevent the upgrade file from being damaged.

[0005] The present invention provides the following technical solutions: In a first aspect, a controller program update system for engineering machinery is provided, comprising: a server for storing program upgrade data and obtaining program version information based on the program upgrade data through parsing, and sending the program upgrade data and the program version information to a GPS terminal; The GPS terminal is communicatively connected to the server and the controller, and is used to receive program version information and program upgrade data sent by the server and send them to the controller; the controller compares the received program version information with the original program version information, and determines whether to send a program update instruction to the display terminal based on the comparison result; A display terminal, communicatively connected to the controller, for receiving and displaying program update instructions from the controller, and for allowing the user to select whether to perform program update and sending the selection result to the controller; if the user selects to perform program update, the controller receives program upgrade data sent by the server via the GPS terminal; An action detection module is used to detect whether the action state of the excavator is an action pause interval; The update display module is used to display whether the program update is successful.

[0006] As an optional technical solution of the present invention, the controller includes a program backup area, a program storage area, a parameter backup area and a parameter storage area; The program backup area is used to store the original program; The program storage area is used to store the upgrade program; The parameter backup area is used to store original program parameter data; The parameter storage area is used to store upgrade program parameter data.

[0007] As an optional technical solution of the present invention, the motion detection module is communicatively connected to the controller. When the controller receives program upgrade data, if the motion detection module detects that the action state of the excavator is an action pause interval, the motion detection module sends an upgrade program write instruction to the controller. The controller reads the original program into the program backup area and the original program parameter data into the parameter backup area, and writes the upgrade program into the program storage area.

[0008] As an optional technical solution of the present invention, the update display module includes an update flag. When the update flag is displayed as false, it indicates that the program update has failed. The controller loads the original program from the program backup area and runs it, and reads the parameter data from the parameter backup area to the parameter storage area. When the update flag is displayed as true, it indicates that the program update has been successful. The controller loads the upgraded program from the program storage area and runs it, and reads the parameter data from the parameter backup area to the parameter storage area.

[0009] As an optional technical solution of the present invention, the GPS terminal is connected to the controller via a CAN bus; and the controller is connected to the display terminal via a CAN bus.

[0010] In a second aspect, a method for updating a controller program for engineering machinery based on the first aspect is provided, comprising: the server obtaining program version information based on program upgrade data parsing, and sending the program version information to a GPS terminal; The GPS terminal sends the program version information to the controller, and the controller compares the received program version information with the original program version information and determines whether to send a program update instruction to the display terminal according to the comparison result; The display terminal receives and displays the program update instruction, and the user selects whether to perform the program update. If the program update is performed, the program update instruction is sent to the controller; After the controller sends the program update instruction to the server through the GPS terminal, the server sends the program upgrade data frame by frame to the GPS terminal; After the GPS terminal caches the program upgrade data, it sends the program upgrade data to the controller; After the controller receives the program upgrade data, if the action detection module detects that the action state of the excavator is an action pause interval, the controller writes the program upgrade data; After writing is completed, if the motion detection module detects that the excavator's motion state is a pause interval, the controller reads the written program and verifies it with the program upgrade data. If the verification is correct, it means the upgrade is successful, otherwise it means the upgrade has failed.

[0011] As an optional technical solution of the present invention, the controller compares the received program version information with the original program version information and determines whether to send a program update instruction to the display terminal according to the comparison result, including: The controller compares the program version information with the original program version information, and if it is a new program version, sends a program update instruction to the display terminal.

[0012] As an optional technical solution of the present invention, the server sends the program upgrade data to the GPS terminal frame by frame, including: The server divides the program upgrade data into multiple data frames according to a predetermined file transfer protocol and sends the data frames to the GPS terminal in sequence; Each time a data frame is sent, the server records the information of the current data frame and sends the next frame after receiving the correct response from the GPS terminal. If the server times out or responds incorrectly while waiting for a response, it is deemed that the current data frame has failed to be sent and the current data frame is resent.

[0013] As an optional technical solution of the present invention, after the GPS terminal caches the program upgrade data, the program upgrade data is sent to the controller, including: The GPS terminal adds a frame header, a frame footer and CRC check data to each data frame, and records the information of the current data frame; After receiving a data frame, the controller performs CRC check calculation on the data frame. If the check passes, it sends a successful reception response to the GPS terminal. If the check fails, it sends data error information to the GPS terminal, and the GPS terminal retransmits the current data frame.

[0014] As an optional technical solution of the present invention, if the action detection module detects that the action state of the excavator is an action pause interval, the controller writes program upgrade data, including: During the pause of the action, the controller backs up the original program and the original program parameter data, and after the backup is completed, erases the original program and writes the upgrade program.

[0015] Compared with the prior art, the present invention has the following beneficial effects: The controller program update system for engineering machinery provided by the present invention converts the work of actively upgrading the program by service personnel into automatic inspection and transmission by a cloud server through a GPS terminal, greatly simplifying the operational process of program upgrades. At the same time, when an error occurs in data transmission, the program can be re-uploaded to ensure the integrity and correctness of the data transmission and prevent the upgrade file from being damaged. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 4 is a flow chart of a method for updating a controller program for engineering machinery according to an embodiment of the present invention. DETAILED DESCRIPTION

[0017] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solutions of the present invention and are not intended to limit the scope of protection of the present invention.

[0018] Example 1 This embodiment provides a controller program update system for engineering machinery, including: The server is used to store program upgrade data and parse the program upgrade data to obtain program version information, and send the program upgrade data and program version information to the GPS terminal. In this embodiment, when a developer has a new application that needs to be updated, the upgrade program is directly uploaded to the server via a local computer. The server receives and stores the program upgrade data.

[0019] The GPS terminal is communicatively connected to the server and the controller, and is used to receive program version information and program upgrade data sent by the server and send them to the controller; the controller compares the received program version information with the version information of the original program (the running program), and determines whether to send a program update instruction to the display terminal based on the comparison result; the GPS terminal is connected to the controller via a CAN bus.

[0020] The display end is communicatively connected to the controller, and is used to receive and display the program update instructions of the controller, and for the user to select whether to perform a program update and send the selection result to the controller; if the user chooses to perform a program update, the controller receives the program upgrade data sent by the server through the GPS terminal; the controller is connected to the display end via the CAN bus.

[0021] The motion detection module is used to detect whether the motion state of the excavator is a motion pause interval.

[0022] The update display module is used to display whether the program update is successful.

[0023] Furthermore, the controller includes a program backup area, a program storage area, a parameter backup area and a parameter storage area; the program backup area is used to store the original program; the program storage area is used to store the upgraded program; the parameter backup area is used to store the original program parameter data; and the parameter storage area is used to store the upgraded program parameter data.

[0024] Furthermore, the motion detection module is communicatively connected to the controller. When the controller receives the program upgrade data, if the motion detection module detects that the action state of the excavator is an action pause interval, the motion detection module sends an upgrade program write instruction to the controller. The controller reads the original program into the program backup area and the original program parameter data into the parameter backup area, and writes the upgrade program into the program storage area.

[0025] Furthermore, the update display module includes an update flag. When the update flag is displayed as false, it indicates that the program update has failed. The controller loads the original program from the program backup area and runs it, and reads the parameter data from the parameter backup area to the parameter storage area. When the update flag is displayed as true, it indicates that the program update has been successful. The controller loads the upgraded program from the program storage area and runs it, and reads the parameter data from the parameter backup area to the parameter storage area.

[0026] Example 2 This embodiment provides a method for updating the controller program of an engineering machinery based on the embodiment 1, such as Figure 1 As shown, including: Step 1: The server obtains program version information based on program upgrade data analysis and sends the program version information to the GPS terminal.

[0027] Step 2: The GPS terminal sends the program version information to the controller, and the controller compares the received program version information with the original program version information, and determines whether to send a program update instruction to the display terminal based on the comparison result.

[0028] The controller compares the program version information with the original program version information, and if it is a new program version, sends a program update instruction to the display terminal.

[0029] Step 3: The display terminal receives the program update instruction and displays it. The user selects whether to perform the program update. If the program update is performed, the program update instruction is sent to the controller.

[0030] Step 4: After the controller sends the program update instruction to the server through the GPS terminal, the server sends the program upgrade data frame by frame to the GPS terminal.

[0031] The server divides the program upgrade data into multiple data frames according to a predetermined file transfer protocol and sends the data frames to the GPS terminal in sequence; In this embodiment, the transmission protocol adopts a response mode. Each time a data frame is sent, the server records the information of the current data frame and sends the next frame after the GPS terminal returns a correct response. If the server times out or responds incorrectly while waiting for a response, it is determined that the current data frame has failed to be sent and the current data frame is resent.

[0032] Step 5: After the GPS terminal caches the program upgrade data, it sends the program upgrade data to the controller.

[0033] After all data frames are sent, the GPS terminal caches the program upgrade data and then sends the program upgrade data to the controller. When the GPS terminal and the controller perform file transfer, in order to ensure the stability of data transmission, the CAN interface of the GPS terminal is used to transmit data to the controller, as follows: The GPS terminal adds a frame header, a frame footer and CRC check data to each data frame, and records the information of the current data frame; After receiving a data frame, the controller performs CRC check calculation on the data frame. If the check passes, a response of successful reception is sent to the GPS terminal. If the check fails, it means that the data frame is abnormal, and a data error message is sent to the GPS terminal. The GPS terminal retransmits the current data frame. The transmission of all data frames is completed in sequence according to this process.

[0034] Step 6: After the controller receives the program upgrade data, if the motion detection module detects that the motion state of the excavator is a motion pause interval, the controller writes the program upgrade data.

[0035] During the pause of the action, the controller backs up the original program and the original program parameter data, and after the backup is completed, erases the original program and writes the upgrade program.

[0036] Specifically, after the controller receives the program upgrade data sent by the GPS terminal, it will not immediately update the original program, because if it is arbitrarily upgraded during the operation of the excavator, it will cause malfunctions to the entire machine. Therefore, the action detection module is used to determine the current action state of the excavator. When the boom, dipper arm or bucket is at the extreme position of the action, there will be a short pause interval, which is generally 0.5 seconds. At this time, this short time can be used to start writing and updating the new program of the controller. According to the size of the general program, which is only a few hundred KB or a few thousand KB, only a few such pause intervals are needed to complete the backup of the old program and parameters and the writing and updating of the new program, realizing the seamless upgrade and update of the program. During the action pause interval, the controller backs up the original program and the original program parameter data to the program backup area and the parameter backup area. After the backup is completed, the original program is erased in the program storage area and the upgrade program is written.

[0037] Step 7: After writing is completed, if the motion detection module detects that the excavator's motion state is a pause, the controller reads the written program and verifies it with the program upgrade data. If the verification is correct, it means the upgrade is successful, otherwise it means the upgrade fails.

[0038] Specifically, after writing is complete, the previously written program file is read during pauses in the operation and compared with the upgrade file. If the verification is correct, the upgrade is successful and the upgrade success flag is set to true. If the controller is interrupted between erasing the original program and writing the file to be upgraded, the upgrade success flag is used to check if the upgrade is successful to ensure normal operation after powering back on. If the upgrade flag is false, the controller will load the original program from the program backup area and read the original parameters from the parameter backup area into the parameter storage area when the program starts. If the upgrade flag is true, the controller will load the new program from the program storage area and read the data from the parameter backup area into the parameter storage area for the user to use again.

[0039] After the upgrade is completed, the controller sends the new program version information to the display terminal, updates the version information list of the display terminal, and keeps the program version information of the display terminal, controller, and server consistent in preparation for the version information check during the next upgrade.

[0040] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0041] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0042] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0043] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A controller program update system for construction machinery, characterized in that: include: The server is used to store program upgrade data and obtain program version information according to the program upgrade data, and send the program upgrade data and program version information to the GPS terminal; The GPS terminal is communicatively connected to the server and the controller, and is used to receive program version information and program upgrade data sent by the server and send them to the controller; the controller compares the received program version information with the original program version information, and determines whether to send a program update instruction to the display terminal based on the comparison result; A display terminal, communicatively connected to the controller, for receiving and displaying program update instructions from the controller, and for allowing the user to select whether to perform program update and sending the selection result to the controller; If the user chooses to update the program, the controller receives the program upgrade data sent by the server through the GPS terminal; An action detection module is used to detect whether the action state of the excavator is an action pause interval; The update display module is used to display whether the program update is successful.

2. The controller program updating system for construction machinery according to claim 1, wherein: The controller includes a program backup area, a program storage area, a parameter backup area and a parameter storage area; The program backup area is used to store the original program; The program storage area is used to store the upgrade program; The parameter backup area is used to store original program parameter data; The parameter storage area is used to store upgrade program parameter data.

3. The controller program updating system for construction machinery according to claim 2, wherein: The motion detection module is communicatively connected to the controller. When the controller receives program upgrade data, if the motion detection module detects that the action state of the excavator is an action pause interval, the motion detection module sends an upgrade program write instruction to the controller. The controller reads the original program into the program backup area and the original program parameter data into the parameter backup area, and writes the upgrade program into the program storage area.

4. The controller program updating system for construction machinery according to claim 2, wherein: The update display module includes an update flag. When the update flag is displayed as false, it indicates that the program update has failed. The controller loads the original program from the program backup area and runs it, and reads the parameter data from the parameter backup area to the parameter storage area. When the update flag is displayed as true, it indicates that the program update has been successful. The controller loads the upgraded program from the program storage area and runs it, and reads the parameter data from the parameter backup area to the parameter storage area.

5. The controller program updating system for construction machinery according to claim 1, wherein: The GPS terminal is connected to the controller via the CAN bus; the controller is connected to the display terminal via the CAN bus.

6. A method for updating a controller program for engineering machinery according to any one of claims 1 to 5, characterized in that: include: The server obtains program version information based on the program upgrade data analysis and sends the program version information to the GPS terminal; The GPS terminal sends the program version information to the controller, and the controller compares the received program version information with the original program version information and determines whether to send a program update instruction to the display terminal according to the comparison result; The display terminal receives and displays the program update instruction, and the user selects whether to perform the program update. If the program update is performed, the program update instruction is sent to the controller; After the controller sends the program update instruction to the server through the GPS terminal, the server sends the program upgrade data frame by frame to the GPS terminal; After the GPS terminal caches the program upgrade data, it sends the program upgrade data to the controller; After the controller receives the program upgrade data, if the action detection module detects that the action state of the excavator is an action pause interval, the controller writes the program upgrade data; After writing is completed, if the motion detection module detects that the excavator's motion state is a pause interval, the controller reads the written program and verifies it with the program upgrade data. If the verification is correct, it means the upgrade is successful, otherwise it means the upgrade has failed.

7. The method for updating a controller program for construction machinery according to claim 6, wherein: The controller compares the received program version information with the original program version information and determines whether to send a program update instruction to the display terminal according to the comparison result, including: The controller compares the program version information with the original program version information, and if it is a new program version, sends a program update instruction to the display terminal.

8. The method for updating a controller program for construction machinery according to claim 6, wherein: The server sends the program upgrade data to the GPS terminal frame by frame, including: The server divides the program upgrade data into multiple data frames according to a predetermined file transfer protocol and sends the data frames to the GPS terminal in sequence; Each time a data frame is sent, the server records the information of the current data frame and sends the next frame after receiving the correct response from the GPS terminal. If the server times out or responds incorrectly while waiting for a response, it is deemed that the current data frame has failed to be sent and the current data frame is resent.

9. The method for updating a controller program for construction machinery according to claim 8, wherein: After the GPS terminal caches the program upgrade data, the program upgrade data is sent to the controller, including: The GPS terminal adds a frame header, a frame footer and CRC check data to each data frame, and records the information of the current data frame; After receiving a data frame, the controller performs CRC check calculation on the data frame. If the check passes, it sends a successful reception response to the GPS terminal. If the check fails, it sends data error information to the GPS terminal, and the GPS terminal retransmits the current data frame.

10. The method for updating a controller program for construction machinery according to claim 6, wherein: If the motion detection module detects that the motion state of the excavator is a pause, the controller writes program upgrade data, including: During the pause of the action, the controller backs up the original program and the original program parameter data, and after the backup is completed, erases the original program and writes the upgrade program.