A method, device and medium for upgrading a control module of a smart terminal

By distinguishing data frame types through a new communication protocol and retransmission mechanism, the cumbersome and inefficient process of upgrading the control module of the dedicated transformer terminal is solved, realizing efficient and reliable firmware upgrades and improving the operation and maintenance efficiency and availability of the equipment.

CN120935151BActive Publication Date: 2026-06-23QINGDAO ITECHENE TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
QINGDAO ITECHENE TECH CO LTD
Filing Date
2025-08-01
Publication Date
2026-06-23

Smart Images

  • Figure CN120935151B_ABST
    Figure CN120935151B_ABST
Patent Text Reader

Abstract

The application provides a method, device and medium for upgrading a control module of a special terminal, and the method comprises the following steps: receiving an upgrade package by a master control and sending the upgrade package to the control module after splitting the upgrade package into multiple data frames; when receiving each data frame, the control module first judges the communication protocol type to which the data frame belongs: if the data frame conforms to a standard communication protocol, the control module executes a normal control instruction; if the data frame conforms to an upgrade communication protocol, the control module enters an upgrade process, and the protocol type is identified by using the characteristics of a frame header, a frame length, a frame tail and a check mode, so that the compatible operation of the standard communication protocol and the upgrade communication protocol is realized. The application is suitable for local U disk upgrade and remote master station upgrade, and multiple verifications are performed during the upgrade process, so that the accuracy and reliability of data are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of special transformer terminal technology, and in particular relates to a method, apparatus and medium for upgrading the control module of a special transformer terminal. Background Technology

[0002] With the continuous development of smart grids and power automation systems, dedicated transformer terminals, as key equipment in electricity information acquisition systems, are widely used for monitoring and controlling user loads. Among them, the control module, as an important component of the dedicated transformer terminal, is responsible for implementing load control functions such as tripping and closing. Its operational stability directly affects the reliability and security of the entire system. Currently, the control module is typically implemented through an independent MCU controller and communicates with the main control unit of the dedicated transformer terminal via a UART interface. The communication between the two follows the communication protocol defined in the "General Technical Specification for Dedicated Transformer Terminals." This protocol adopts a fixed-length 7-byte frame structure, which is simple in structure, highly efficient in communication, and has good applicability in the transmission of conventional control commands.

[0003] However, with the continuous expansion of equipment functions, the demand for firmware updates to control modules is increasing. Existing standard communication protocols, due to their fixed length and lack of identifiers, cannot support the distribution of large amounts of firmware upgrade data, and the protocols themselves lack scalability, making it difficult to meet the needs of remote upgrades. Currently, firmware upgrades for control modules still rely on physical disassembly and operation through the programming port, a cumbersome and inefficient process that severely impacts on-site maintenance efficiency and equipment availability. Furthermore, to ensure that the dedicated transformer terminal does not affect its normal load control functions while performing upgrade operations, the compatibility of the original communication protocol and the stability of the system must be guaranteed during the upgrade process. Summary of the Invention

[0004] To address the problems existing in the prior art, the present invention provides a method for upgrading the control module of a dedicated transformer terminal. The dedicated transformer terminal includes a main controller and a control module, and includes the following steps:

[0005] Step S1: The main controller receives the upgrade package from the control module and sends the upgrade package to the upgrade execution program of the control module to trigger the upgrade process. The upgrade package includes upgrade firmware.

[0006] Step S2: The main controller turns on and splits the upgrade firmware into multiple upgrade data frames, which are then sent to the control module.

[0007] Step S3: The control module receives the upgrade data frame and determines the communication protocol type of the upgrade data frame by the frame length, frame tail position and frame check.

[0008] Step S4: If the upgrade data frame conforms to the upgrade communication protocol, the control module executes the upgrade process.

[0009] According to one embodiment, the method for determining the communication protocol type in step S3 is as follows:

[0010] Step S31: If the following conditions are met, it is a standard communication protocol: Determine whether the received data is greater than or equal to 7B, find the frame header 68H, the frame tail = 68H+6B, determine whether the frame tail is 16H, and determine whether the frame check is correct.

[0011] Step S32: If the following conditions are met, the communication protocol is upgraded: find the frame header 68H, and then calculate the frame length; find the frame tail and check value position according to the frame length; then determine whether the identifier is 68H and whether the frame tail is 16H; calculate the check value and determine whether the frame check is correct.

[0012] Step S33: If neither the standard communication protocol nor the upgrade communication protocol is met, then reply with a master control error.

[0013] Specifically, the steps for upgrading the control module are as follows:

[0014] Step S41: The main controller divides the upgrade firmware into multiple data frames and sends the multiple data frames to the control module in sequence;

[0015] Step S42: The control module receives the nth data frame. The nth data frame is determined to conform to the upgrade communication protocol. The nth data frame is subjected to CRC verification, and the data frame data is written into the upgrade temporary storage program area.

[0016] Step S43: If the verification fails, the control module will return an error to the main controller, and the main controller will resend the data frame to the control module.

[0017] Step S44: If retransmission still fails, exit the upgrade process. If retransmission succeeds, determine whether the nth data frame is the last frame. If yes, proceed to step S45. If not, continue to step S41.

[0018] In step S45, the master controller sends an integrity verification frame. If the verification is successful, the upgrade is complete; if the verification fails, the upgrade process is exited.

[0019] Furthermore, during the integrity verification in step S45, the control module receives the integrity verification frame, performs CRC verification on the received upgrade firmware data frame, and if the verification value is the same as the check code of the upgrade firmware file, then writes the upgrade information and upgrade flag into Flash.

[0020] Based on the above solution, step S4 further includes resetting the control module, specifically including:

[0021] Step S46: The control module receives a reset command sent by the main controller, performs a soft reset, and enters the boot program;

[0022] Step S47: The bootloader reads the upgrade flag. If the upgrade flag exists, step S48 is executed. If the upgrade flag does not exist, the application is directly enabled.

[0023] Step S48: The bootloader verifies the integrity of the upgrade firmware data written to Flash again. If the verification is successful, the upgrade temporary program area is written to the application area, the upgrade flag is cleared, and the program is redirected to the application.

[0024] Step S49: The main controller reads the version of the control module and verifies whether the upgrade was successful.

[0025] Preferably, the control module upgrade package is placed in a USB flash drive. The control module upgrade package is inserted into the dedicated transformer terminal via the USB flash drive or remotely sent to the dedicated transformer terminal via the master station. The master controller automatically performs the upgrade and determines whether the control module exists by using the control module status pin.

[0026] Corresponding to the above method, the present invention provides an apparatus for upgrading the control module of a dedicated transformer terminal, used for upgrading the control module of the dedicated transformer terminal, including a main controller and a control module, wherein the main controller includes:

[0027] The receiving module is used to receive upgrade packages from the control module.

[0028] A triggering module is used to send the upgrade package to the upgrade execution program of the control module to trigger the upgrade process, wherein the upgrade package includes upgrade firmware;

[0029] The sending module is used to open the upgrade firmware and send the upgrade firmware into multiple upgrade data frames to the control module.

[0030] The control module includes:

[0031] The receiving module is used to receive upgrade data frames;

[0032] The judgment module is used to determine the communication protocol type of the upgrade data frame;

[0033] If the communication protocol type obtained by the determination module matches the upgrade communication protocol, the upgrade process will be executed.

[0034] On the other hand, the present invention provides a dedicated transformer terminal and a method for upgrading the control module using the aforementioned dedicated transformer terminal, including a main controller, a control module, a remote communication module, and an LCD.

[0035] The main control unit is connected to the remote communication module and is used to receive upgrade packages transmitted by the remote communication module.

[0036] The main controller is connected to the LCD and is used to send upgrade progress to the LCD;

[0037] The main controller connects to the control module and determines whether the control module exists by using the status pins of the control module, and sends upgrade data frames to the control module.

[0038] Preferably, the main controller receives the control module upgrade package sent by the remote communication module or transmitted via USB flash drive, and automatically performs the upgrade; at the same time, the main controller forwards the upgrade process and results to the LCD display interface.

[0039] The present invention also provides a computer-readable storage medium having a computer program, which, when executed by a processor, implements the steps of the method for upgrading the control module of a special transformer terminal as described above.

[0040] Compared with the prior art, the present invention has the following beneficial effects:

[0041] 1. By adopting an upgrade communication protocol, efficient and reliable data transmission during firmware upgrades is achieved. This protocol is designed with good compatibility, enabling the transmission and reception of upgrade data without affecting the normal operation of existing standard communication protocols.

[0042] 2. To avoid data confusion between the upgrade protocol and the standard communication protocol, this application effectively distinguishes the data frames of the two protocols through methods such as frame length, frame header and frame tail identifiers, identifiers, and frame checksums;

[0043] 3. The robustness of the upgrade process is improved through retransmission mechanisms and integrity verification, reducing the risk of upgrade failure due to communication interference or data errors. Attached Figure Description

[0044] Figure 1 This is a schematic diagram of the overall process of the control module upgrade method in this application;

[0045] Figure 2 This is a flowchart illustrating the control module upgrade method of this application.

[0046] Figure 3 This is a schematic diagram of the dedicated transformer terminal structure for this application. Detailed Implementation

[0047] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to limit the application. The singular forms "a" and "the" as used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0048] For the control module of the dedicated transformer terminal, the "General Technical Specification for Dedicated Transformer Terminals" specifies the communication protocol between the control module and the main controller. However, the length of this communication protocol is fixed at 7 bytes, which cannot be used for upgrading the control module. Upgrading the control module requires removing it and upgrading it through the programming port, which is a rather troublesome operation.

[0049] Therefore, this invention provides a method for upgrading the control module of a dedicated transformer terminal, such as... Figure 1 and Figure 2 As shown, the firmware of the control module is upgraded through the dedicated transformer terminal master control. In order to ensure the accurate transmission of a large amount of upgrade data, a new communication protocol is adopted to transmit the upgrade data. This new communication protocol is compatible with standard communication protocols and can transmit a large amount of data for the upgrade of the control module.

[0050] Example 1

[0051] First, upgrading the control module requires creating a control module upgrade package, which includes an execution script, an upgrade program, and an upgrade firmware. Place the created control module upgrade package in the root directory of a USB flash drive, then insert the USB flash drive into the dedicated transformer terminal. The main controller of the dedicated transformer terminal will automatically perform the upgrade.

[0052] The method for upgrading the control module of a dedicated transformer terminal includes the following steps:

[0053] Step S1: The main controller receives the control module upgrade package and sends it to the upgrade execution program of the control module, triggering the upgrade process of the upgrade module execution program. At the same time, it determines whether to enter the upgrade mode based on the status pins of the control module, that is, it detects whether the module is inserted by checking the pin status. If the module does not exist, the upgrade process is exited.

[0054] In step S2, the main controller opens the upgrade firmware and splits it into multiple upgrade data frames, sending them to the control module. Simultaneously, it sends the upgrade firmware file checksum and file size to the control module. If the transmission is successful, the upgrade begins; otherwise, the upgrade process terminates. The execution script and upgrade program within the upgrade package are required for the main controller to perform the upgrade on the control module and do not need to be sent to the control module.

[0055] Step S3: When the control module receives the upgrade data frame, it needs to determine whether the frame conforms to the standard communication protocol or the upgrade communication protocol. The communication protocol type of the upgrade data frame is determined by the frame length, frame tail position, and frame checksum.

[0056] The difference between the standard communication protocol and the upgraded communication protocol is that the standard communication protocol has no message length, the length is fixed at 7 bytes, there is no identifier, and the check uses CRC16 / MODBUS; the upgraded communication protocol has a message length, an identifier of 68H, and the check uses CRC16 / CCITT.

[0057] The method for determining the communication protocol type is as follows:

[0058] Step S31: First, determine if the received data volume is greater than or equal to 7 bytes; then, locate the frame header 68H. Once found, add 6 bytes to the frame tail at this position and determine if the frame tail is 16H; finally, determine if the frame checksum is correct. If the above conditions are met, it is a standard communication protocol; otherwise, perform an upgrade communication protocol verification.

[0059] Step S32: Upgrade communication protocol verification. Find frame header 68H. After finding it, calculate the frame length and find the frame tail and identifier position based on the frame length. Then, determine whether the identifier is 68H and whether the frame tail is 16H. Finally, calculate the check value and determine whether the frame check is correct.

[0060] Step S33: If neither the standard communication protocol nor the upgrade communication protocol is met, then reply with a master control error.

[0061] To avoid data confusion between the upgrade protocol and the standard communication protocol, this application effectively distinguishes the data frames of the two protocols through methods such as frame length, frame header and frame tail identifiers, identifiers, and frame checksums.

[0062] In step S4, the control module needs to determine which communication protocol it conforms to each time it receives a data frame. If it is a standard communication protocol, the relay and LED are controlled according to the protocol. If the data frame conforms to the upgrade communication protocol, the control module executes the upgrade start, data transmission, and upgrade end processes.

[0063] This upgraded communication protocol differs from the standard communication protocol, but is compatible with the standard communication protocol and the functions of the original control module. Although it does not meet the requirements of the standard communication protocol, it does not affect the data transmission that conforms to the standard communication protocol.

[0064] The specific steps for upgrading the control module include:

[0065] Step S41: The main controller divides the upgrade firmware into multiple data frames according to the size of each data frame and sends them to the control module.

[0066] In step S42, the control module receives the nth data frame and performs a CRC check on it. Upon receiving the data frame and determining it to be an upgrade communication protocol, the control module writes the data frame data into the upgrade temporary storage area. To prevent data from being written into the normally executing program area, the address of the upgrade temporary storage area is set to a fixed value. The data frame data refers to the valid data remaining after removing the frame header, length, frame trailer, and frame checksum from the upgrade data frame.

[0067] The first data frame is used to send "upgrade configuration information". Its purpose is to let the receiving end know the basic information and parameter configuration of the upgrade package to be received in advance, so as to correctly receive and process subsequent data.

[0068] Step S43: If the CRC check fails, the control module returns an error to the master controller, and the master controller resends the data frame to the control module.

[0069] When data frame verification fails, the system automatically triggers a retransmission mechanism to ensure data integrity. The number of retransmissions is configurable, balancing reliability and efficiency.

[0070] According to this embodiment, the number of retransmission verifications is 2, which can effectively avoid data transmission failure caused by a single accidental interference, thereby improving the stability of communication; at the same time, the number of retransmissions is 2, which also avoids the waste of time and resource consumption caused by too many retries.

[0071] Step S44: If retransmission still fails, exit the upgrade process. If retransmission succeeds, determine whether the nth data frame is the last frame. If yes, proceed to step S45. If not, continue to step S41.

[0072] Furthermore, in this embodiment, for each successfully transmitted data frame, the main controller will forward the upgrade progress to the LCD screen through the upgrade program of the upgrade package; if the transmission fails, it will forward the data beyond the retransmission limit to the LCD screen, so that the user can intuitively and timely understand the progress of the upgrade process and remind the user that there is a problem in the current upgrade process.

[0073] In step S45, the main controller sends an integrity verification frame. If the verification is successful, the process continues; if the verification fails, the upgrade process exits. If the main controller receives a successful verification, it will forward the upgrade success message to the LCD screen; if it receives a failed verification message, it will forward the verification failure message to the LCD screen.

[0074] After all data frames have been received, the system performs a consistency check on the entire upgrade file using a global checksum to ensure that the firmware file has not been damaged or tampered with.

[0075] The control module receives an integrity verification frame and performs a CRC check on the received upgrade firmware data frame. If the checksum matches the checksum of the upgrade firmware file, the upgrade information and upgrade flag are written to the Flash memory, ensuring data integrity even during power loss. The upgrade information is obtained from the first data frame, "Send Upgrade Configuration Information".

[0076] Step S4 further includes resetting the control module, specifically including:

[0077] Step S46: The control module receives the reset command sent by the main controller, performs a soft reset, and enters the boot program;

[0078] Step S47: The bootloader reads the upgrade flag. If the upgrade flag exists, proceed to step S48. If the upgrade flag does not exist, the application is started directly.

[0079] In step S48, the bootloader verifies the integrity of the upgrade firmware data written to Flash again. If the verification is successful, the upgrade temporary program area is overwritten to the currently running application area, the upgrade flag is cleared, and the application is jumped to.

[0080] Step S49: The main controller reads the version of the control module and verifies whether the control module has been successfully upgraded.

[0081] The main controller upgrade process begins by sending a verification value for the upgrade firmware file. After the upgrade package is sent, the control module calculates the verification value and compares it with the firmware. The bootloader after the control module restarts will then verify the verification value again. This process accurately identifies transmission errors, prevents firmware tampering, and further confirms the reliability of the firmware written to Flash after a restart, thus improving the reliability and security of the upgrade process.

[0082] Example 2

[0083] Compared with Example 1, in this example, the control module upgrade package is directly sent from the master station to the dedicated transformer terminal via remote communication, eliminating the need for on-site operation by maintenance personnel, thus saving manpower and time costs. Information such as upgrade progress, status, and failures can be transmitted back to the master station platform via communication, enabling full-process visual monitoring.

[0084] The control module upgrade package is sent to the dedicated transformer terminal via the remote master station. The main control of the dedicated transformer terminal will automatically execute the upgrade. The status pin of the control module is used to determine whether the control module exists and to upgrade the control module.

[0085] Based on the same inventive concept, this application provides an apparatus for upgrading the control module of a dedicated transformer terminal, used for upgrading the control module of the dedicated transformer terminal, including a main controller and a control module, wherein the main controller includes:

[0086] The receiving module is used to receive upgrade packages from the control module.

[0087] A triggering module is used to send the upgrade package to the upgrade execution program of the control module to trigger the upgrade process, wherein the upgrade package includes upgrade firmware;

[0088] The sending module is used to open the upgrade firmware and send the upgrade firmware into multiple upgrade data frames to the control module.

[0089] The control module includes:

[0090] The receiving module is used to receive upgrade data frames;

[0091] The judgment module is used to determine the communication protocol type of the upgrade data frame;

[0092] If the communication protocol type obtained by the determination module matches the upgrade communication protocol, the upgrade process will be executed.

[0093] like Figure 3 As shown, this application provides a dedicated transformer terminal and a method for upgrading the control module using the aforementioned dedicated transformer terminal. The dedicated transformer terminal includes a main controller, a control module, a remote communication module, and an LCD.

[0094] The main control unit is connected to the remote communication module and is used to receive upgrade packages transmitted by the remote communication module.

[0095] The main controller is connected to the LCD and is used to send upgrade progress to the LCD;

[0096] The main controller connects to the control module and determines whether the control module exists by using the status pins of the control module, and sends upgrade data frames to the control module.

[0097] The main controller receives the upgrade package sent by the remote communication module or transferred from the USB flash drive and automatically performs the upgrade; at the same time, the main controller forwards the upgrade process and results to the LCD display interface so that users can obtain upgrade information in a timely manner.

[0098] Furthermore, the method for upgrading the control module of a dedicated transformer terminal according to the present invention can be recorded in a computer-readable recording medium. Specifically, according to the present invention, a computer-readable recording medium storing computer-executable instructions can be provided, which, when executed by a processor, causes the processor to execute the method for upgrading the control module of a dedicated transformer terminal as described above.

[0099] It should be noted that the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code containing at least one executable instruction for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0100] In general, various exemplary embodiments of the present invention can be implemented in hardware or dedicated circuitry, software, firmware, logic, or any combination thereof. Some aspects can be implemented in hardware, while others can be implemented in firmware or software that can be executed by a controller, microprocessor, or other computing device. When aspects of embodiments of the present invention are illustrated or described as block diagrams, flowcharts, or represented using certain other images, it will be understood that the blocks, apparatuses, systems, techniques, or methods described herein can be implemented as non-limiting examples in hardware, software, firmware, dedicated circuitry or logic, general-purpose hardware or controllers or other computing devices, or certain combinations thereof.

[0101] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

[0102] While the specific embodiments of the present invention have been described above, they are not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art without creative effort based on the technical solutions of the present invention are still within the scope of protection of the present invention.

Claims

1. A method for upgrading the control module of a dedicated transformer terminal, characterized in that, The dedicated transformer terminal includes a main control unit and a control module, and includes the following steps: Step S1: The main controller receives the control module upgrade package, sends the control module upgrade package to the upgrade execution program of the control module, and triggers the upgrade process. The upgrade package includes upgrade firmware. Step S2: The main controller turns on and splits the upgrade firmware into multiple upgrade data frames, which are then sent to the control module. Step S3: The control module receives the upgrade data frame and determines the communication protocol type of the upgrade data frame by using the frame length, frame tail position, and frame checksum, to distinguish whether the upgrade data frame belongs to the standard communication protocol or the upgrade communication protocol; wherein: The method for determining the communication protocol type is as follows: Step S31: If the following conditions are met, it is a standard communication protocol: Determine whether the received data is greater than or equal to 7B, find the frame header 68H, the frame tail = 68H+6B, determine whether the frame tail is 16H, and determine whether the frame check is correct. Step S32: If the following conditions are met, the communication protocol is upgraded: find the frame header 68H, and then calculate the frame length; find the frame tail and check value position according to the frame length; then determine whether the identifier is 68H and whether the frame tail is 16H; calculate the check value and determine whether the frame check is correct. Step S33: If neither the standard communication protocol nor the upgrade communication protocol is satisfied, then reply with a master control error. Step S4: If the upgrade data frame conforms to the upgrade communication protocol, the control module executes the upgrade process.

2. The method for upgrading the control module of a dedicated transformer terminal according to claim 1, characterized in that, The specific steps for upgrading the control module are as follows: Step S41: The main controller divides the upgrade firmware into multiple data frames and sends the multiple data frames to the control module in sequence; Step S42: The control module receives the nth data frame. The nth data frame is determined to conform to the upgrade communication protocol. The nth data frame is subjected to CRC verification, and the data frame data is written into the upgrade temporary storage program area. Step S43: If the verification fails, the control module will return an error to the main controller, and the main controller will resend the data frame to the control module. Step S44: If retransmission still fails, exit the upgrade process. If retransmission succeeds, determine whether the nth data frame is the last frame. If yes, proceed to step S45. If not, continue to step S41. In step S45, the master controller sends an integrity verification frame. If the verification is successful, the upgrade is complete; if the verification fails, the upgrade process is exited.

3. The method for upgrading the control module of a dedicated transformer terminal according to claim 2, characterized in that, When performing integrity verification in step S45, the control module receives the integrity verification frame, performs CRC verification on the received upgrade firmware data frame, and if the verification value is the same as the upgrade firmware file verification code, then writes the upgrade information and upgrade flag into Flash.

4. The method for upgrading the control module of a dedicated transformer terminal according to claim 3, characterized in that, Step S4 further includes a reset control module, specifically comprising: Step S46: The control module receives a reset command sent by the main controller, performs a soft reset, and enters the boot program; Step S47: The bootloader reads the upgrade flag. If the upgrade flag exists, step S48 is executed. If the upgrade flag does not exist, the application is directly enabled. Step S48: The bootloader verifies the integrity of the upgrade firmware data written to Flash again. If the verification is successful, the upgrade temporary program area is written to the application area, the upgrade flag is cleared, and the program is redirected to the application. Step S49: The main controller reads the version of the control module and verifies whether the upgrade was successful.

5. The method for upgrading the control module of a dedicated transformer terminal according to claim 1, characterized in that, The control module upgrade package is placed on a USB flash drive. The upgrade package is inserted into the dedicated transformer terminal via the USB flash drive or remotely sent to the dedicated transformer terminal via the master station. The master controller automatically performs the upgrade and determines the presence of the control module by using the control module status pin.

6. A device for upgrading the control module of a dedicated transformer terminal, characterized in that, Upgrading of the dedicated transformer terminal control module, including a main controller and a control module, wherein the main controller includes: The receiving module is used to receive upgrade packages from the control module. A triggering module is used to send the upgrade package to the upgrade execution program of the control module to trigger the upgrade process, wherein the upgrade package includes upgrade firmware; The sending module is used to open the upgrade firmware and send the upgrade firmware into multiple upgrade data frames to the control module. The control module includes: The receiving module is used to receive upgrade data frames; The judgment module is used to determine the communication protocol type of the upgrade data frame; The method for determining the communication protocol type is as follows: If the following conditions are met, it is a standard communication protocol: determine whether the received data is greater than or equal to 7B, find the frame header 68H, the frame trailer = 68H+6B, determine whether the frame trailer is 16H, and determine whether the frame check is correct. The communication protocol is upgraded if the following conditions are met: find the frame header 68H, then calculate the frame length; find the frame tail and check value position based on the frame length; then determine whether the identifier is 68H and whether the frame tail is 16H; calculate the check value and determine whether the frame check is correct. If neither the standard communication protocol nor the upgraded communication protocol is met, then a master control error is returned; If the communication protocol type obtained by the determination module matches the upgrade communication protocol, the upgrade process will be executed.

7. A dedicated transformer terminal, characterized in that, The method for upgrading the control module using the dedicated transformer terminal according to any one of claims 1-5 includes a main controller, a control module, a remote communication module, and an LCD display interface; The main control unit is connected to the remote communication module and is used to receive upgrade packages transmitted by the remote communication module. The main control unit is connected to the LCD display interface and is used to send upgrade progress to the LCD display interface; The main controller connects to the control module and determines whether the control module exists by using the status pins of the control module, and sends upgrade data frames to the control module.

8. The dedicated transformer terminal according to claim 7, characterized in that, The main controller receives the control module upgrade package sent by the remote communication module or transmitted via USB flash drive, and automatically performs the upgrade; at the same time, the main controller forwards the upgrade process and results to the LCD display interface.

9. A computer-readable storage medium having a computer program, which, when executed by a processor, implements a method for upgrading the control module of a special-purpose transformer terminal as described in any one of claims 1-5.