Laser welding machine system firmware upgrading method and device, computing equipment and storage medium
By receiving upgrade requests through the main system and executing the upgrade error-proofing process, the device abnormality problem caused by firmware upgrade errors in the laser welding machine system is solved, and safe and reliable firmware upgrades are achieved.
Patent Information
- Application Number
- CN202510862109.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-25
- Publication Date
- 2025-10-03
AI Technical Summary
Existing laser welding machine systems have the risk of incorrect firmware upgrades during the firmware upgrade process, causing the equipment to operate abnormally or fail to start.
The upgrade request is received through the main system of the laser welder, the system to be upgraded is determined, and the target writing method is selected according to its operating status. The upgrade file is written into the system to be upgraded, the upgrade error prevention process is executed, and the upgrade result is judged by the system code of the upgrade file.
It achieves safe and reliable firmware upgrades in the laser welding system, avoids equipment anomalies caused by incorrect firmware, and ensures normal operation of the equipment.
Smart Images

Figure CN120743315A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of laser technology, and in particular to a method, device, computing device, and storage medium for upgrading the firmware of a laser welding machine system. Background Art
[0002] A laser welding system typically consists of a main system and multiple subsystems. The main system is generally the laser control system, while the subsystems typically include the human-machine interface (HMI) system, cooling system, and welding gun control system. The main system is responsible for turning the laser on and off and communicating data with the outside world. The HMI system handles control and feedback related to human operation, such as the display screen, digital tube, LED lights, buttons, and knobs. The cooling system is responsible for maintaining a suitable operating temperature inside the equipment. The welding gun control system is responsible for controlling the laser's oscillation during laser welding. Each system is controlled by an independent chip, and each control chip requires one or more appropriate firmware segments to meet the required functional requirements of the equipment.
[0003] Since the working environment of laser welding machines is relatively harsh, with large electromagnetic interference and metal debris, in order to protect the laser welding machine system and reduce the contact points between the internal system and the external environment, generally only the main system has a physical interface (wired or wireless) for communication with the outside world, and the subsystem communicates with the main system inside the device through wired means.
[0004] In order to enable wired or wireless upgrades, there are generally two segments of firmware inside the chip. The first segment is the boot firmware (Bootloader for short), which is responsible for docking the upgrade interface of the device, and the second segment is the functional firmware, which is responsible for realizing the operation functions of the device. Upgrading generally refers to the process of receiving new functional firmware transmitted from the outside while the boot firmware is running, and then overwriting the original functional firmware. Firmware is generally written by software engineers according to the functional requirements of the device through software development, and a bin file is generated after compilation. The bin file is a binary code that is directly run by the system chip, so it is impossible to directly add verification information or identification information to the bin file. However, when using remote upgrades, there is a certain risk of upgrading the wrong firmware, which will cause the device to operate abnormally. In severe cases, it may cause the device to become "bricked" and unable to start and use. Summary of the Invention
[0005] In view of this, the embodiments of the present application provide a laser welding system firmware upgrade method to address the technical defects in the prior art. The embodiments of the present application also provide a laser welding system firmware upgrade device, a computing device, and a computer-readable storage medium.
[0006] According to a first aspect of an embodiment of the present application, a method for upgrading a laser welding system firmware is provided, comprising:
[0007] Receiving an upgrade request through a main system of a laser welder, wherein the laser welder includes a main system and a plurality of subsystems, the main system is directly connected to the outside, and the subsystems are not connected to the outside;
[0008] According to the upgrade request, determining one of the main system and all the subsystems as a system to be upgraded;
[0009] Selecting a target writing mode according to the operating state of the system to be upgraded, and writing the upgrade file into the system to be upgraded according to the target writing mode;
[0010] An upgrade error prevention process is executed, wherein the upgrade error prevention process determines an upgrade result through a system code of the upgrade file.
[0011] Optionally, before receiving the upgrade request through the main system of the laser welder, the method further includes:
[0012] In response to the laser welder being started, the main system and all the subsystems are running, wherein the internal flash memory of the main system and all the subsystems contains four logical sections arranged in sequence, namely, a boot section, a function section, a feature identification section 1, and a feature identification section 2;
[0013] For any one of the main system and all the subsystems, when the boot firmware stored in the boot segment is running, the system code of this system is written into its own feature identification segment 1, and its own feature identification segment 1 is compared with the feature identification segment 2. If they are the same, it jumps to the functional firmware stored in its own functional segment. If they are different, the comparison result is reported.
[0014] Optionally, determining, according to the upgrade request, one of the main system and all the subsystems as a system to be upgraded includes:
[0015] Querying the system code to be upgraded contained in the upgrade request;
[0016] According to the system code to be upgraded, one of the main system and all the subsystems is determined to be the system to be upgraded.
[0017] Optionally, after determining, according to the upgrade request, that one of the main system and all the subsystems is the system to be upgraded, the method further includes:
[0018] When the system to be upgraded is the main system, the main system receives the upgrade file;
[0019] When the system to be upgraded is the subsystem, the main system sends the received upgrade file to the system to be upgraded.
[0020] Optionally, selecting a target writing mode according to the operating state of the system to be upgraded, and writing the upgrade file into the system to be upgraded according to the target writing mode, includes:
[0021] When the running state is running on the functional firmware, the system code in the feature identification segment 2 is erased, the system code is jumped to the boot firmware, the upgrade file is received in the boot firmware, and the upgrade file is written into the functional segment. After the writing is completed, the system code is jumped to the functional firmware.
[0022] When the running state is running on the boot firmware, the upgrade file is directly received and written into the function segment, and the upgrade file is jumped to the function firmware after the writing is completed.
[0023] Optionally, the execution upgrade error prevention process includes:
[0024] Jump to the functional firmware corresponding to the upgrade file;
[0025] Determine whether the functional firmware is the functional firmware of the main system and all the subsystems,
[0026] If yes, determine whether the upgrade is complete;
[0027] If not, the system to be upgraded waits for updating.
[0028] Optionally, the determining whether the upgrade is complete includes:
[0029] Determine whether the system code in the feature identification segment 1 and the system code of the functional firmware corresponding to the upgrade file are the same,
[0030] If yes, write the system code of the system to be upgraded into the feature identification segment 2 to complete the upgrade;
[0031] If not, the system to be upgraded is reset, and the process jumps to the boot firmware, and the system to be upgraded waits for updating.
[0032] According to a second aspect of an embodiment of the present application, a laser welding system firmware upgrade device is provided, comprising:
[0033] a receiving module configured to receive an upgrade request through a main system of a laser welder, wherein the laser welder includes a main system and a plurality of subsystems, the main system is directly connected to the outside, and the subsystems are not connected to the outside;
[0034] A selection module is configured to determine, according to the upgrade request, one of the main system and all the subsystems as a system to be upgraded;
[0035] a writing module configured to select a target writing mode according to the operating state of the system to be upgraded, and write the upgrade file into the system to be upgraded according to the target writing mode;
[0036] The error prevention module is configured to execute an upgrade error prevention process, wherein the execution of the upgrade error prevention process determines an upgrade result through the system code of the upgrade file.
[0037] According to a third aspect of an embodiment of the present application, there is provided a computing device, including:
[0038] memory and processor;
[0039] The memory is used to store computer-executable instructions, and the processor implements the steps of the laser welder system firmware upgrade method when executing the computer-executable instructions.
[0040] According to a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided, which stores computer-executable instructions. When the instructions are executed by a processor, the steps of the laser welder system firmware upgrade method are implemented.
[0041] According to a fifth aspect of the embodiments of the present application, a chip is provided, which stores a computer program. When the computer program is executed by the chip, the steps of the laser welder system firmware upgrade method are implemented.
[0042] The present application provides a method for upgrading the laser welding machine system firmware, wherein the main system of the laser welding machine receives an upgrade request, wherein the laser welding machine includes a main system and multiple subsystems, the main system is directly connected to the outside, and the subsystems are not connected to the outside;
[0043] According to the upgrade request, determining one of the main system and all the subsystems as a system to be upgraded;
[0044] Selecting a target writing mode according to the operating state of the system to be upgraded, and writing the upgrade file into the system to be upgraded according to the target writing mode;
[0045] Execute an upgrade error prevention process, where the upgrade result is determined by the system code of the upgrade file. This allows users to directly upgrade the firmware of all systems within the device via wired or wireless means. Furthermore, if the user mistakenly selects the wrong firmware for the upgrade, the system can automatically identify the incorrect firmware, preventing device failure caused by the upgrade error. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0047] Figure 1 This is a flowchart of a laser welding system firmware upgrade method provided by an embodiment of the present application;
[0048] Figure 2 This is a system architecture diagram of a laser welding system firmware upgrade method provided by an embodiment of the present application;
[0049] Figure 3 This is a schematic diagram of an internal flash memory of a laser welding system firmware upgrade method provided by an embodiment of the present application;
[0050] Figure 4 This is a firmware missing fault detection flow chart of a laser welding system firmware upgrade method provided by one embodiment of the present application;
[0051] Figure 5 This is a flowchart of an upgrade file writing method for a laser welding machine system firmware upgrade provided by an embodiment of the present application;
[0052] Figure 6 This is an upgrade error prevention flow chart of a laser welding machine system firmware upgrade method provided by an embodiment of the present application;
[0053] Figure 7 This is a structural diagram of a laser welding system firmware upgrade device provided by an embodiment of the present application;
[0054] Figure 8 This is a structural block diagram of a computing device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0055] The following description sets forth many specific details to facilitate a thorough understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the scope of the present application. Therefore, the present application is not limited to the specific implementations disclosed below.
[0056] The terms used in one or more embodiments of the present application are for the purpose of describing specific embodiments only and are not intended to limit one or more embodiments of the present application. The singular forms "a", "the" and "the" used in one or more embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in one or more embodiments of the present application refers to and includes any or all possible combinations of one or more associated listed items.
[0057] It should be understood that although the terms "first," "second," and the like may be used to describe various information in one or more embodiments of the present application, such information should not be limited to these terms. These terms are merely used to distinguish information of the same type from one another. For example, "first" may also be referred to as "second," and similarly, "second" may also be referred to as "first," without departing from the scope of one or more embodiments of the present application.
[0058] This application provides a laser welder system firmware upgrade method, a laser welder system firmware upgrade device, a computing device, and a computer-readable storage medium, each of which is described in detail in the following embodiments.
[0059] Figure 1 A flowchart of a laser welding system firmware upgrade method provided in accordance with an embodiment of the present application is shown, which specifically includes the following steps:
[0060] Step S102: receiving an upgrade request through a main system of the laser welder, wherein the laser welder includes a main system and multiple subsystems, the main system is directly connected to the outside, and the subsystems are not connected to the outside;
[0061] Step S104: determining, according to the upgrade request, one of the main system and all the subsystems as a system to be upgraded;
[0062] Step S106: selecting a target writing mode according to the operating state of the system to be upgraded, and writing the upgrade file into the system to be upgraded according to the target writing mode;
[0063] Step S108: executing an upgrade error prevention process, wherein the upgrade error prevention process determines an upgrade result through the system code of the upgrade file.
[0064] Among them, such as Figure 2As shown in the system architecture diagram of a laser welding machine system firmware upgrade method provided, for a laser welding machine, there is a main system and multiple subsystems, and the main system and the subsystem each have a system code corresponding to themselves. The main system exchanges information with the external system, the subsystem does not exchange information with the external system, and the subsystems do not exchange information with each other. Each subsystem only exchanges information with the main system.
[0065] It should be noted that in the scenario of firmware upgrade for laser welding machines, the main system can be easily upgraded via wired or wireless means, while the subsystems within the product can often only be upgraded via a downloader before factory assembly. It is difficult to upgrade and maintain the subsystems after leaving the factory. In addition, it is difficult to determine the correctness of the bin files required for upgrading the firmware before the upgrade. When the wrong firmware is upgraded, the losses caused are often large and irreversible.
[0066] Based on this, the present application provides a method for upgrading the firmware of a laser welding machine system, wherein an upgrade request is received by a main system connected to an external system, and according to the upgrade request, the system that needs to undergo a firmware upgrade is determined to be the system to be upgraded, and the selection range of the system that needs to undergo a firmware upgrade is the main system and all subsystems. Then, according to the operating status of the system to be upgraded, the target writing method is determined, wherein the operating status represents the specific logical section in which the system to be upgraded runs in the internal flash, and different operating states represent different logical sections in which the system to be upgraded runs, and the target writing method represents the method in which the upgrade file is written to the system to be upgraded. Then, according to the target writing method, the upgrade file is written to the system to be upgraded, and the upgrade error prevention process is executed. In the upgrade error prevention process, the system code of the upgrade file is used to determine whether the upgrade of the system to be upgraded is successful.
[0067] Furthermore, before step S102, it is also included to determine whether there is a functional firmware missing fault. In this embodiment, the determination process is specifically implemented as follows:
[0068] Step S101: In response to the start-up of the laser welder, the main system and all the subsystems are running, wherein the internal flash of the main system and all the subsystems contains four logical segments arranged in sequence, namely the boot segment, the function segment, the feature identification segment 1 and the feature identification segment 2; for any one of the main system and all the subsystems, when the boot firmware stored in the boot segment is running, the system code of the system is written into its own feature identification segment 1, and the feature identification segment 1 and the feature identification segment 2 are compared. If they are the same, jump to the functional firmware stored in its own function segment. If they are different, report the comparison result.
[0069] Among them, such as Figure 3The internal flash memory schematic for a laser welding system firmware upgrade method is shown in the following figure. For laser welding machines, the main system and subsystems are controlled by independent chips. Each chip's internal flash memory consists of N pages, which are divided into four logical segments: the boot segment, the function segment, the signature segment 1, and the signature segment 2. The boot segment starts on page 1 of the internal flash memory and is a page long, storing the boot firmware. The function segment starts on page b of the internal flash memory and is cb page long, storing the function firmware. The signature segment 1 starts on the second-to-last page of the internal flash memory (i.e., page n-1) and is one page long, storing the system code for the boot segment. The signature segment 2 starts on the last page of the internal flash memory (i.e., page n) and is one page long, storing the system code for the function segment.
[0070] Based on this, Figure 4 As shown in the firmware missing fault detection flow chart of a laser welding machine system firmware upgrade method, the system enters the boot firmware after power-on / reset, that is, in response to the laser welding machine startup, the main system and all the subsystems run. For any of the systems, the system will first start running from the first page of the flash, that is, the boot firmware. At this time, the program will write the system code of this system in the flash feature identification segment 1, that is, Figure 4 1. Set the flash identification segment to system code X1, and then read the system code in the feature identification segment 2, that is, Figure 4 2. Read the content X2 of the flash identification segment 2; then determine whether the system code of the feature identification segment 2 is the same as the system code of the feature identification segment 1, that is, Figure 4 Is X1 equal to X2?
[0071] If the comparison results are the same, jump and run the functional firmware, i.e. Figure 4 The jump to the functional firmware in the program runs normally; if they are different, Figure 4 1. Continue to run the boot firmware, and 2. Report the missing function firmware fault, remind the user to upgrade the firmware and wait for the firmware upgrade.
[0072] Furthermore, in step S104, according to the upgrade request, the process of determining one of the main system and all subsystems as the system to be upgraded is specifically implemented as follows in this embodiment:
[0073] The system code to be upgraded contained in the upgrade request is queried; and according to the system code to be upgraded, one of the main system and all the subsystems is determined to be the system to be upgraded.
[0074] When the main system receives an external upgrade request, it first parses the upgrade request to obtain the system code for this upgrade, i.e., the system code to be upgraded, and then determines the system to be upgraded, i.e., the system to be upgraded, based on the system code to be upgraded.
[0075] It should be noted that if Figure 2 As shown in the system architecture diagram of a laser welding machine system firmware upgrade method provided, each system has a system code. The number of bits of the system code is determined by the actual application scenario. As long as it satisfies any non-repeating value and is different from the initial state, it can be used. Taking a 128-bit system code as an example, the system code range is 0≤system code<0xFFFFFFFF. Since the default value is all 1 when the flash is not programmed, that is, 0xFFFFFFFF, the system code must exclude 0xFFFFFFFF. Each bit can be 0 or 1. It can be calculated that the error probability caused by accidental repetition of the system code is 1 / 2 128 =2.94*10 -39 , greatly reducing the possibility of repeated errors.
[0076] Furthermore, after step S104, for the two different situations where the system to be upgraded is a main system or a subsystem, different processing is required. The specific processing process, in this embodiment, is specifically implemented as follows:
[0077] Step S105: When the system to be upgraded is the main system, the main system receives the upgrade file; when the system to be upgraded is the subsystem, the main system sends the received upgrade file to the system to be upgraded.
[0078] Among them, if the system code to be upgraded indicates the main system, the main system automatically performs the upgrade operation; if the system code to be upgraded indicates the subsystem, the main system notifies the corresponding subsystem after receiving the bin file, that is, the upgrade file, and guides the subsystem to complete the upgrade operation.
[0079] Furthermore, in step S106, a target writing mode is selected according to the operating state of the system to be upgraded, and the upgrade file is written into the system to be upgraded according to the target writing mode. In this embodiment, the specific implementation is as follows:
[0080] When the running status is running on the functional firmware, the system code in the feature identification segment 2 is erased, and the process jumps to the boot firmware. The upgrade file is received in the boot firmware, and the upgrade file is written into the functional segment. After the writing is completed, the process jumps to the functional firmware. When the running status is running on the boot firmware, the upgrade file is directly received, and the upgrade file is written into the functional segment. After the writing is completed, the process jumps to the functional firmware.
[0081] Among them, such as Figure 5 The upgrade file writing flowchart for a laser welding system firmware upgrade method provided by the present invention shows that when new firmware needs to be updated, the system first determines whether the chip is running in the boot firmware. If not, indicating that the operating status indicates that the system to be upgraded is running in the functional firmware, it is necessary to 1. delete the system code in flash identification segment 2, that is, erase the internal flash's characteristic identification segment 2. After erasing, the system identification of characteristic identification segment 2 becomes 0xFFFFFFFF. Then, the chip of the system to be upgraded is controlled to 2. jump to the boot firmware. After the jump is completed, the boot firmware 1. receives the bin file and 2. writes it to the flash functional segment. Then, it jumps again to the functional firmware and executes the upgrade error prevention process.
[0082] In addition, if yes, then it means that the running status indicates that the system to be upgraded is running in the boot firmware, then Figure 5 As shown, directly 1. receive the bin file, and 2. write it to the flash function segment, then jump to the functional firmware again and execute the upgrade error prevention process.
[0083] Furthermore, in step S108, the process of upgrading the error prevention process is executed. In this embodiment, the specific implementation method is as follows:
[0084] Jump to the functional firmware corresponding to the upgrade file; determine whether the functional firmware is the functional firmware of the main system and all the subsystems, and if so, determine whether the upgrade is complete; if not, the system to be upgraded waits for update.
[0085] Furthermore, in this embodiment, the above-mentioned process of determining whether the upgrade is complete is specifically implemented as follows:
[0086] Determine whether the system code in the feature identification segment 1 and the system code of the functional firmware corresponding to the upgrade file are the same. If so, write the system code of the system to be upgraded into the feature identification segment 2 to complete the upgrade; if not, reset the system to be upgraded, jump to the boot firmware, and the system to be upgraded waits for update.
[0087] Among them, for the system to be upgraded that executes the upgrade error prevention process, such as Figure 6 As shown in the upgrade error prevention flowchart of a laser welding system firmware upgrade method provided, the system chip corresponding to the upgraded system jumps to the newly upgraded functional firmware and then determines whether the firmware is the system firmware of the embedded device. In other words, it determines whether the functional firmware is the functional firmware of the main system or all subsystems.
[0088] If the firmware is the system firmware for this embedded device, then 1. read the system code X1 from flash identification segment 1 (i.e., the content in feature identification segment 1). 2. extract the system code Y of the functional firmware itself, i.e., the system code of the functional firmware corresponding to the upgrade file. Then, determine whether X1 equals Y. If X1 and Y are equal, 1. the firmware being upgraded is the correct system firmware. 2. Write Y to flash identification segment 2, writing the system code of the system to be upgraded to feature identification segment 2. The upgrade is complete, and the program runs normally. Therefore, if the laser welder is interrupted, such as by a power outage, the system will correctly jump to the "Normal Program Operation" branch. If X1 and Y are not equal, 1. the firmware being upgraded is the firmware for another subsystem. 2. Reset the system immediately. Resetting can effectively prevent functional abnormalities caused by upgrading the incorrect firmware. Then, 1. Reset the system to enter the boot firmware. 2. Report the missing functional firmware fault and wait for the firmware upgrade.
[0089] If the firmware is not the system firmware of this embedded device, it will be executed according to the updated firmware, and then 1. the system will be reset to enter the boot firmware, and 2. the function firmware missing fault will be reported and the firmware will be waited for the firmware upgrade. This also ensures that when the laser welder is interrupted, such as power failure, the system will jump to the "wait for firmware upgrade" branch and wait for the correct firmware to be updated, avoiding the system becoming bricked due to upgrading the wrong firmware.
[0090] It should be noted that the system code does not necessarily have to be stored inside the chip flash, but can be stored on any medium that can be saved during power failure.
[0091] In summary, all subsystems within the laser welder's embedded device are upgraded solely through the main system. Two new opcodes are added to the flash memory, and these are written independently through the boot firmware and functional firmware. By comparing the values of these two opcodes at the appropriate time, the firmware update is determined to be successful, thus preventing device malfunctions and bricking caused by incorrect firmware updates. Furthermore, the use of software algorithms and design solves the challenge of upgrading multiple systems in embedded devices without sacrificing structural sealing, increasing material costs, or increasing chip security.
[0092] Corresponding to the above method embodiment, the present application also provides an embodiment of a laser welding system firmware upgrade device, Figure 7 FIG. 1 shows a schematic diagram of a laser welding system firmware upgrade device provided by an embodiment of the present application. Figure 7 As shown, the device includes:
[0093] The receiving module 702 is configured to receive an upgrade request through a main system of the laser welder, wherein the laser welder includes a main system and a plurality of subsystems, the main system is directly connected to the outside, and the subsystems are not connected to the outside;
[0094] The selection module 704 is configured to determine, according to the upgrade request, one of the main system and all the subsystems as a system to be upgraded;
[0095] The writing module 706 is configured to select a target writing mode according to the operating state of the system to be upgraded, and write the upgrade file into the system to be upgraded according to the target writing mode;
[0096] The error prevention module 708 is configured to execute an upgrade error prevention process, wherein the upgrade error prevention process is executed to determine an upgrade result through the system code of the upgrade file.
[0097] In an optional embodiment, the laser welding system firmware upgrade device further includes:
[0098] The startup module is configured to respond to the startup of the laser welder and the operation of the main system and all the subsystems, wherein the internal flash of the main system and all the subsystems contains four logical sections arranged in sequence, namely a boot section, a functional section, a feature identification section 1 and a feature identification section 2; for any one of the main system and all the subsystems, when the boot firmware stored in the boot section is run, the system code of the system is written into its own feature identification section 1, and the feature identification section 1 of its own is compared with the feature identification section 2. If they are the same, the system jumps to the functional firmware stored in its own functional section; if they are different, the comparison result is reported.
[0099] In an optional embodiment, the selection module 704 is further configured to:
[0100] The system code to be upgraded contained in the upgrade request is queried; and according to the system code to be upgraded, one of the main system and all the subsystems is determined to be the system to be upgraded.
[0101] In an optional embodiment, the laser welding system firmware upgrade device further includes:
[0102] The upgrade file receiving and sending module is configured so that when the system to be upgraded is the main system, the main system receives the upgrade file; when the system to be upgraded is the subsystem, the main system sends the received upgrade file to the system to be upgraded.
[0103] In an optional embodiment, the writing module 706 is further configured to:
[0104] When the running status is running on the functional firmware, the system code in the feature identification segment 2 is erased, and the process jumps to the boot firmware. The upgrade file is received in the boot firmware, and the upgrade file is written into the functional segment. After the writing is completed, the process jumps to the functional firmware. When the running status is running on the boot firmware, the upgrade file is directly received, and the upgrade file is written into the functional segment. After the writing is completed, the process jumps to the functional firmware.
[0105] In an optional embodiment, the error prevention module 708 is further configured to:
[0106] Jump to the functional firmware corresponding to the upgrade file; determine whether the functional firmware is the functional firmware of the main system and all the subsystems, and if so, determine whether the upgrade is complete; if not, the system to be upgraded waits for update.
[0107] In an optional embodiment, the error prevention module 708 is further configured to:
[0108] Determine whether the system code in the feature identification segment 1 and the system code of the functional firmware corresponding to the upgrade file are the same. If so, write the system code of the system to be upgraded into the feature identification segment 2 to complete the upgrade; if not, reset the system to be upgraded, jump to the boot firmware, and the system to be upgraded waits for update.
[0109] The laser welding machine system firmware upgrade device provided by the present application receives an upgrade request through the main system of the laser welding machine, wherein the laser welding machine includes a main system and multiple subsystems, the main system is directly connected to the outside, and the subsystems are not connected to the outside; according to the upgrade request, one of the main system and all the subsystems is determined to be the system to be upgraded; a target write mode is selected according to the operating status of the system to be upgraded, and the upgrade file is written to the system to be upgraded according to the target write mode; an upgrade error prevention process is executed, wherein the upgrade error prevention process determines the upgrade result by the system code of the upgrade file. Only the main system is used to upgrade all subsystems within the embedded device of the laser welding machine, two new operation codes are added to the flash memory, and the boot firmware and function firmware are independently written. At the appropriate time, the values of the operation codes at both ends are compared to determine whether the firmware update is normal, thereby avoiding the problem of device malfunction and bricking caused by updating the wrong firmware. And due to the use of software algorithms and design, the upgrade problem of multiple systems of embedded devices is solved without sacrificing structural sealing, increasing material costs, and increasing chip security.
[0110] The above is a schematic scheme of a laser welding machine system firmware upgrade device of this embodiment. It should be noted that the technical solution of the laser welding machine system firmware upgrade device and the technical solution of the laser welding machine system firmware upgrade method mentioned above belong to the same concept. For details not described in detail in the technical solution of the laser welding machine system firmware upgrade device, please refer to the description of the technical solution of the laser welding machine system firmware upgrade method mentioned above. In addition, the various components in the device embodiment should be understood as functional modules that must be established to implement each step of the program flow or each step of the method. Each functional module is not an actual functional division or separation definition. A device claim defined by such a group of functional modules should be understood as a functional module architecture that mainly implements the solution through a computer program recorded in the specification, and should not be understood as a physical device that mainly implements the solution through hardware.
[0111] Figure 8 8 shows a block diagram of a computing device 800 according to an embodiment of the present application. Components of the computing device 800 include, but are not limited to, a memory 810 and a processor 820. The processor 820 is connected to the memory 810 via a bus 830, and a database 850 is used to store data.
[0112] The computing device 800 also includes an access device 840 that enables the computing device 800 to communicate via one or more networks 860. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 840 may include one or more of any type of network interface (e.g., a network interface card (NIC)), whether wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a Worldwide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.
[0113] In one embodiment of the present application, the above components of the computing device 800 and Figure 8 Other components not shown in the figure may also be connected to each other, for example, via a bus. Figure 8 The computing device structure block diagram shown is for illustrative purposes only and is not intended to limit the scope of the present application. Those skilled in the art may add or replace other components as needed.
[0114] The computing device 800 can be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook computer, etc.), a mobile phone (e.g., a smartphone), a wearable computing device (e.g., a smartwatch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 800 can also be a mobile or stationary server.
[0115] The processor 820 is used to execute computer executable instructions for each step of the laser welder system firmware upgrade method.
[0116] The above is a schematic diagram of a computing device according to this embodiment. It should be noted that the technical solution of this computing device is based on the same concept as the technical solution of the aforementioned laser welder system firmware upgrade method. For details not described in detail in the technical solution of the computing device, please refer to the description of the technical solution of the aforementioned laser welder system firmware upgrade method.
[0117] An embodiment of the present application further provides a computer-readable storage medium storing computer instructions, which, when executed by a processor, are used to implement the various steps of the laser welder system firmware upgrade method.
[0118] The above is a schematic diagram of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of this storage medium is identical to the technical solution of the aforementioned laser welder system firmware upgrade method. For details not described in detail in the technical solution of the storage medium, please refer to the description of the technical solution of the aforementioned laser welder system firmware upgrade method.
[0119] An embodiment of the present application further provides a chip storing a computer program, which implements the steps of the laser welding machine system firmware upgrade method when executed by the chip.
[0120] The foregoing description describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0121] The computer instructions include computer program code, which may be in source code form, object code form, executable file, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0122] It should be noted that for the aforementioned method embodiments, for ease of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
[0123] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0124] The preferred embodiments of the present application disclosed above are intended only to help illustrate the present application. The optional embodiments do not describe all details in detail, nor do they limit the invention to the specific embodiments described. Obviously, many modifications and variations can be made based on the content of this application. This application selects and describes these embodiments in detail in order to better explain the principles and practical applications of this application, so that those skilled in the art can better understand and utilize this application. This application is limited only by the claims and their full scope and equivalents.
Claims
1. A laser welding machine system firmware upgrade method, characterized in that: include: Receiving an upgrade request through a main system of a laser welder, wherein the laser welder includes a main system and a plurality of subsystems, the main system is directly connected to the outside, and the subsystems are not connected to the outside; According to the upgrade request, determining one of the main system and all the subsystems as a system to be upgraded; Selecting a target writing mode according to the operating state of the system to be upgraded, and writing the upgrade file into the system to be upgraded according to the target writing mode; An upgrade error prevention process is executed, wherein the upgrade error prevention process determines an upgrade result through a system code of the upgrade file.
2. The method according to claim 1, characterized in that Before the main system of the laser welder receives the upgrade request, the method further includes: In response to the laser welder being started, the main system and all the subsystems are running, wherein the internal flash memory of the main system and all the subsystems contains four logical sections arranged in sequence, namely, a boot section, a function section, a feature identification section 1, and a feature identification section 2; For any one of the main system and all the subsystems, when the boot firmware stored in the boot segment is running, the system code of this system is written into its own feature identification segment 1, and its own feature identification segment 1 is compared with the feature identification segment 2. If they are the same, it jumps to the functional firmware stored in its own functional segment. If they are different, the comparison result is reported.
3. The method according to claim 1, characterized in that The step of determining, according to the upgrade request, one of the main system and all the subsystems as a system to be upgraded includes: Querying the system code to be upgraded contained in the upgrade request; According to the system code to be upgraded, one of the main system and all the subsystems is determined to be the system to be upgraded.
4. The method according to claim 1, wherein After determining, according to the upgrade request, that one of the main system and all the subsystems is the system to be upgraded, the method further includes: When the system to be upgraded is the main system, the main system receives the upgrade file; When the system to be upgraded is the subsystem, the main system sends the received upgrade file to the system to be upgraded.
5. The method according to claim 2, characterized in that The step of selecting a target writing mode according to the operating state of the system to be upgraded, and writing the upgrade file into the system to be upgraded according to the target writing mode, includes: When the running state is running on the functional firmware, the system code in the feature identification segment 2 is erased, the system code is jumped to the boot firmware, the upgrade file is received in the boot firmware, and the upgrade file is written into the functional segment. After the writing is completed, the system code is jumped to the functional firmware. When the running state is running on the boot firmware, the upgrade file is directly received and written into the function segment, and the upgrade file is jumped to the function firmware after the writing is completed.
6. The method according to claim 5, characterized in that The upgrade error prevention process includes: Jump to the functional firmware corresponding to the upgrade file; Determine whether the functional firmware is the functional firmware of the main system and all the subsystems, If yes, determine whether the upgrade is complete; If not, the system to be upgraded waits for updating.
7. The method according to claim 6, characterized in that The step of determining whether the upgrade is complete includes: Determine whether the system code in the feature identification segment 1 and the system code of the functional firmware corresponding to the upgrade file are the same, If yes, write the system code of the system to be upgraded into the feature identification segment 2 to complete the upgrade; If not, the system to be upgraded is reset, and the process jumps to the boot firmware, and the system to be upgraded waits for updating.
8. A laser welding machine system firmware upgrade device, characterized in that: include: a receiving module configured to receive an upgrade request through a main system of a laser welder, wherein the laser welder includes a main system and a plurality of subsystems, the main system is directly connected to the outside, and the subsystems are not connected to the outside; A selection module is configured to determine, according to the upgrade request, one of the main system and all the subsystems as a system to be upgraded; a writing module configured to select a target writing mode according to the operating state of the system to be upgraded, and write the upgrade file into the system to be upgraded according to the target writing mode; The error prevention module is configured to execute an upgrade error prevention process, wherein the execution of the upgrade error prevention process determines an upgrade result through the system code of the upgrade file.
9. A computing device, characterized in that include: memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to implement the steps of the laser welding machine system firmware upgrade method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing computer instructions, characterized in that: When the instruction is executed by the processor, the steps of the laser welding machine system firmware upgrade method described in any one of claims 1 to 7 are implemented.