Remote firmware upgrading and accident handling method for equipment terminal of rental cabinet
By using CRC verification code and RS encoding algorithms to segment and correct data in the rental cabinet equipment terminal, the accurate transmission of firmware upgrade data and normal operation of the equipment is achieved, and the recovery problems in incomplete data and unexpected situations are solved, and the improvement of the improvement of data is improved. Service availability and user satisfaction.
Patent Information
- Application Number
- CN202411603879.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-12
- Publication Date
- 2024-12-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The prior art has problems such as incomplete data transmission, unavailability of equipment and unintentional recovery during the firmware upgrade of rental cabinet equipment terminals, which affects service continuity and user experience.
By storing firmware upgrade data in the cloud, using CRC verification code and RS encoding algorithm for data segmentation and error correction, the integrity verification and correction of data packets are realized, forward error correction and physical transmission are adopted, and the terminal unit is used to receive data. Perform error detection and correction, support breakpoint continuous transmission, ensure the accuracy and reliability of data transmission, and perform autonomous recovery processing in unexpected situations.
Improve the accuracy and reliability of firmware upgrade data transmission, ensure that terminal equipment remains in normal use during the upgrade process, improve service availability and user satisfaction, and can independently restore data transmission when faced with unexpected situations, avoid repeated transmissions and wasted time.
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a remote firmware upgrade and accident handling method for a rental cabinet equipment terminal. Background Art
[0002] As the pace of modern life accelerates, people's demand for convenient and flexible storage solutions for personal belongings is growing. In public places such as shopping malls, stations, airports, etc., traditional storage locker services often have problems such as waiting in line, cumbersome operation, and upgrade failure, which cannot meet the needs of modern users for fast and simple services.
[0003] Similar products in the same industry are usually upgraded offline through connecting cables. When the firmware is upgraded, the terminal equipment will temporarily not work properly, affecting the continuity of service and user experience. When transmitting firmware upgrade data, there is incomplete data and errors cannot be effectively corrected, thus affecting the reliability and efficiency of data transmission. In the face of unexpected situations such as power outages and restarts, the upgrade cannot be carried out effectively, resulting in upgrade failure or equipment damage, increasing maintenance costs and risks. Summary of the invention
[0004] 1. Technical issues to be resolved In view of the deficiencies in the prior art, the present invention provides a remote firmware upgrade and accident handling method for rental cabinet equipment terminals, which solves the problem that when managers remotely upgrade offline terminal devices through an Internet platform, there is incomplete data when transmitting firmware upgrade data, and the data cannot be transmitted accurately and efficiently. The data transmission process affects the normal use of the equipment, and the upgrade recovery process cannot be performed autonomously in the face of unexpected situations.
[0005] (II) Technical solution To achieve the above objectives, the present invention is implemented through the following technical solutions: a remote firmware upgrade and accident handling method for a rental cabinet equipment terminal, characterized in that it includes the following steps: a. The data to be upgraded to the firmware is stored in the cloud and transmitted to the communication unit via network communication; b. The communication unit divides the firmware upgrade data into each data packet, numbers the data packets, generates a corresponding CRC check code for each packet, and transmits it to each terminal unit in a physical manner. The terminal unit uses the CRC check code to verify the integrity of the data, and refuses to receive incomplete data; c. Using forward error correction and physical transmission, the communication unit uses the RS encoding algorithm to generate an error correction code for each data packet, and each data packet and the RS error correction code are transmitted to the terminal unit together; after the terminal unit receives the data packet, it uses the CRC check code for error detection; if the CRC check code passes, the data packet has no error, and the terminal unit continues to process the data; if the CRC check code fails, the terminal unit uses the RS decoder to correct the error in the data packet; if the RS decoder corrects the error and the error rate is less than 5%, the data packet is complete; if the error rate exceeds 5% or the data transmission timeout is an unexpected situation, the terminal unit will record the error number, and the terminal unit will request the communication unit to retransmit the error number and subsequent data packets and error correction codes according to the error number; after the terminal unit receives the retransmitted data packet again, it uses the CRC check code for verification; if the CRC check code passes, the data packet is complete and continues to be processed; if the check fails, continue to request retransmission until the data packet number and the CRC check code are compared and it is determined to be a complete data packet; d. The communication unit creates a message data table to store message data nodes for the terminal unit; e. The message data processor polls multiple message data tables and processes the message data nodes of a single message data table; f. The terminal unit receives data from the communication unit and responds or stores the data in the message data table in the data area to be upgraded to the firmware according to the data type; g. After receiving the entire firmware upgrade data, the terminal unit backs up the data before the firmware upgrade, that is, the original firmware data to the storage area; h. After the backup is completed, the terminal unit updates the firmware upgrade data to the operation area in the message data table to complete the firmware upgrade; i. The terminal unit resumes data transmission from the data transmission error number after an accident occurs; if an unexpected situation occurs during the upgrade process, the terminal unit will perform autonomous recovery based on the stored firmware upgrade data to achieve breakpoint resumption.
[0006] Preferably, physical transmission adopts RS485 communication and CAN communication. The communication unit determines the maximum data payload of a single data packet according to the connection method with the terminal unit, and then segments the data to be upgraded with firmware according to the maximum data payload of a single data packet. Finally, a number and a total package number are added to each segmented data. RS485 communication uses differential signal transmission and supports multiple terminal units to be connected to the same communication unit through a bus structure to realize a one-to-many communication mode. CAN communication adopts a message-based communication protocol, and each message contains the number and firmware data of the terminal unit. Data communication between terminal units is allowed through a network topology.
[0007] Preferably, the message data processor is used to obtain the data nodes of the message data table and parse the message data nodes, including understanding the structure of the message, decoding the data, and identifying the instructions or data in the message, and then sending the data to the corresponding terminal unit; the message processor will poll multiple message data tables. If the current message data table has a message node, it will add a protocol header to the message node, perform error detection and correction coding processing, query the next message data table, and send the data to the corresponding terminal unit.
[0008] Preferably, the terminal unit receives data from the communication unit by numbering the terminal units that need to be upgraded, so that the communication unit can accurately identify and distinguish different terminal units, send specific firmware upgrade data to each terminal unit, and mount the fragmented firmware upgrade data to the corresponding data message table in order. If a user instruction is input, the communication unit stops mounting the firmware upgrade data, mounts the user instruction to the end of the corresponding data table, and then continues to mount the firmware upgrade data until the firmware upgrade data is mounted. In the process of polling the data table, the data processor adds a label to the current data according to the data type currently being processed to identify whether it is firmware upgrade data or user instruction data. If it is a user instruction, a specific operation is performed, such as opening and closing, and restarting the service; if it is firmware upgrade data, the firmware upgrade data is stored in the data area to be upgraded to firmware, and each time a piece of data is received, a response is sent to the communication unit, wherein the data area to be upgraded to firmware is a message data table on the terminal unit, which is used to temporarily store the firmware upgrade data packet received from the communication unit until the entire firmware upgrade data is completely downloaded.
[0009] Preferably, the firmware upgrade sends an upgrade request to the terminal unit through the communication unit. Once the terminal unit receives the upgrade request, the terminal unit will check the current network connection status and terminal resources to ensure that there is enough space and bandwidth to download and process the new firmware. The communication unit sends the firmware upgrade data, and the terminal unit receives the firmware data. If a data transmission error or network interruption occurs during the communication process, the terminal unit will re-request the lost or damaged message data node based on forward error correction, and set the number of retransmissions to avoid infinite retry loops. Once the firmware is successfully received, the terminal unit will back up the original firmware version to the storage device so that it can be restored to the previous version when a problem occurs with the new firmware. After the backup is completed, the terminal unit will start updating its firmware, erasing the old firmware data, writing the new firmware data, and then restarting the device to load the new firmware, wherein the terminal resources are the hardware and software resources on the terminal unit used to complete the upgrade process.
[0010] Preferably, the forward error correction determines the network quality parameters of the terminal unit, including the packet loss rate and the delay, in the communication unit by using the RS coding algorithm during the data transmission process; uses the RS coding algorithm to select the length n of the data block and the length k of the original information, as well as the length r = n - k of the redundant data to be added, selects a finite field GF(q), finds an irreducible polynomial g(x) according to the coding parameters, converts the data to be upgraded to a polynomial M(x), multiplies M(x) by the power r of x, and then performs modular division on the generating polynomial g(x) to obtain the redundant polynomial R(x), combines the polynomial M(x) of the data to be upgraded to the firmware and the redundant polynomial R(x) to form the final codeword polynomial C(x), and sends the coefficients of C(x) as data to generate an error correction code for detecting and correcting errors in the terminal unit, and combines the data to be upgraded to the firmware and the generated The error correction codes are combined into data packets, and the combined data packets are sent to the terminal unit through the RS485 communication protocol; after the terminal unit receives the data packet, it uses the RS decoder to detect errors in the data packet. If an error is detected, the RS decoder will use the error correction code to correct the error. If the data packet is lost during transmission, the terminal unit recovers the lost data packet based on the received data packet. The data packet is successfully received and corrected, and the terminal unit upgrades the firmware, wherein the error correction code is a copy of the data to be upgraded to the firmware; the RS decoder is implemented in a high-level programming language and is used to decode the error correction code generated by the RS encoding.
[0011] Preferably, the breakpoint resume function divides the firmware to be transmitted into multiple data packets, each of which has a unique number, so that the data can be reassembled in the correct order; the communication unit and the terminal unit record the normal or damaged transmission of each data packet through the CRC check code, and after each data packet is transmitted, the CRC check code is used to verify the integrity of the data; the terminal unit records the number of the last successfully received data packet. If an error is encountered during the transmission process, the terminal unit recovers according to the recorded data packet number. The terminal unit can report the upgrade status and progress information to the communication unit for remote monitoring.
[0012] Preferably, the unexpected situation includes the process of the communication unit sending firmware upgrade data to the terminal unit, that is, the terminal unit storing the data to be upgraded to firmware, and the device encounters an unexpected power outage or restart. After the restart, the terminal unit will first read the upgrade status stored in advance. The upgrade status before the accident was the process of transmitting firmware upgrade data, and the terminal unit starts directly; when the terminal unit completes the reception of firmware upgrade data, it will enter the stage of backing up the original firmware, and before entering this stage, the upgrade status will be updated to the backup status and stored. During this process, the device encounters an unexpected power outage, interruption or restart. After the restart, the terminal unit will first read the upgrade status stored in advance. The upgrade status before the accident was the process of backing up the original firmware; when the terminal unit completes the backup of the original firmware, it will enter the stage of updating the new firmware, and the upgrade status will be updated to the update status and stored. The device encounters an unexpected power outage, interruption or restart. After the restart, the terminal unit will first read the upgrade status stored in advance, and find that the upgrade status before the accident was the process of updating the new firmware, and the terminal unit will re-run and start the backup firmware. (III) Beneficial effects
[0013] The present invention provides a remote firmware upgrade and accident handling method for a rental cabinet equipment terminal, which has the following beneficial effects: The present invention allows managers to remotely upgrade the firmware of offline terminal devices through the Internet platform, thereby improving the convenience of maintenance and upgrading. During the firmware upgrade data transmission process, the firmware upgrade data is accurately transmitted to each terminal unit, thereby improving the efficiency and reliability of data transmission. The terminal equipment can remain in normal use without affecting the user's rental business, thereby improving the service availability and user satisfaction.
[0014] In the face of unexpected situations, the terminal unit of the present invention can independently perform upgrade recovery processing. The terminal unit has a breakpoint resume function and can resume data transmission from the data transmission error number after the network is interrupted, thereby avoiding repeated transmission and time waste. DETAILED DESCRIPTION
[0015] The technical solutions in the embodiments of the present invention will be described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0016] During the firmware upgrade process, the administrator first uploads the firmware file to be upgraded and stores it in the cloud. The administrator sends a firmware upgrade request to the terminal unit, which contains the unique number of the terminal unit and the version number of the target firmware. After receiving the firmware upgrade request, the terminal unit performs a self-check operation to check the current network connection status and terminal unit resource conditions, such as processor usage, memory occupancy, and storage space. After confirming that the terminal unit has the conditions to perform the upgrade, the terminal unit will send a confirmation response to the communication unit, indicating that it is ready for the firmware upgrade. The entire process ensures the smooth progress of the upgrade operation while preventing upgrade failures due to network or hardware problems.
[0017] According to the number and firmware version number of the terminal unit, the corresponding firmware upgrade data is obtained from the cloud. After the firmware data is obtained, it is divided into multiple data packets, and each data packet is numbered; next, these divided data packets are transmitted to the terminal unit one by one through the RS485 communication protocol, and each data packet carries a number and a total packet number to ensure the orderliness and integrity of data transmission; when the terminal unit receives the data packet, it first generates an error correction code and a CRC check code for each data packet, and then the terminal unit sends the data packet, error correction code and CRC check code together to the terminal unit itself, and verifies the data integrity through the RS encoder and CRC check code; in this process, if it is found that the proportion of data verification errors reaches 5% or the transmission times out, it is judged that an unexpected situation has occurred during the data transmission process; at this time, the RS decoder is used to detect errors in the data packet, and an attempt is made to use the error correction code to correct the error; if the error correction fails, the communication unit sends these data packets to the terminal unit again according to the number of the transmitted error data.
[0018] After the terminal unit receives the retransmitted data packet, it uses the CRC check code to verify again. If the check passes, the terminal unit confirms that the data packet is complete and continues to process subsequent data packets. A retransmission limit is set. If the check fails, the terminal unit will continue to request retransmission until the data packet is successfully received or the retransmission limit is reached. After each retransmitted data packet is received, the terminal unit compares the sequence number of the data packet with the CRC check code to determine whether it is a complete data packet that has been successfully received before, so as to prevent repeated reception or data packet loss. Through these steps, the accuracy and reliability of the firmware upgrade data are ensured.
[0019] After successfully receiving all firmware upgrade data packets, the terminal unit first performs a data backup operation; specifically, the terminal unit completely copies the current original firmware data to the designated storage area to ensure that it can be restored to the previous state when problems occur during the new firmware upgrade process; after this backup process is completed, the terminal unit begins to write the received new firmware data into the device's storage. In this step, the terminal unit writes each data packet one by one in sequence and verification information to ensure that the written data is completely consistent with the received data and is correct.
[0020] Once the new firmware data is successfully written, the terminal unit performs a restart operation. The purpose of the restart is to clear the current device firmware status and load the new firmware data; after the restart, the terminal unit starts the self-test program to verify the integrity and functionality of the new firmware; after successfully loading the new firmware, the terminal unit returns to normal working status and completes the firmware upgrade process.
[0021] During the firmware upgrade process, if the device encounters an unexpected power outage or restart when the communication unit sends firmware upgrade data to the terminal unit, the terminal unit first reads the original firmware data previously stored; before the accident occurs, if the upgrade status record shows that it is in the stage of transmitting firmware upgrade data, the terminal unit will directly continue to receive firmware data from the progress before the accidental interruption after restarting, so that the upgrade process can be completed smoothly.
[0022] When the terminal unit successfully receives all firmware upgrade data packets, it will enter the stage of backing up the original firmware; before entering this stage, the current upgrade status is updated to the backup status and stored; if an unexpected situation occurs again during this process, such as power outage, interruption or restart, the terminal unit will read the stored upgrade status again after restarting; if the status record shows that the device's firmware was in the stage of backing up the original firmware before the accident, the terminal unit will re-enter the backup process according to the stored upgrade status to keep the original firmware data completely backed up.
[0023] After completing the backup of the original firmware, the terminal unit enters the stage of updating the new firmware; before this, the update and upgrade status of the device is the update status, and the status is stored; if the device encounters an unexpected power outage, interruption or restart again at this stage, the terminal unit after restart will first read the previously stored upgrade status; if the status record shows that the device was in the process of updating the new firmware before the accident, the terminal unit will perform a recovery operation based on this new firmware update process; specifically, the terminal unit will give priority to restoring the original firmware that has been backed up to ensure that the basic functions of the device operate normally. After restoring the original firmware, the terminal unit will restart the firmware upgrade process according to the upgrade status record.
[0024] In the implementation of the breakpoint resume function, the communication unit and the terminal unit record the number and status information of each data packet in detail. Whenever a data packet is successfully transmitted or received, the communication unit and the terminal unit synchronously update the corresponding data packet number and its reception status; if a network interruption occurs during the process of the terminal unit receiving the data packet, the terminal unit will immediately send a request to the communication unit after restarting, requesting to re-acquire the data packets that have not been received or have not been successfully transmitted; when sending the request, the terminal unit indicates which data packets have not been received or have failed to be received based on the recorded data packet number information; after receiving the request, the communication unit will resend the corresponding data packet based on the unreceived data packet number provided by the terminal unit; after the terminal unit receives the retransmitted data packet, it reassembles the complete firmware data according to the data packet number, and the terminal unit checks the number of each data packet one by one to arrange them in the correct order; the communication unit and the terminal unit monitor the firmware upgrade progress in real time based on the transmitted data packet number.
[0025] After the backup is complete, the terminal unit will begin to update its firmware, erase the old firmware data, write the new firmware data, and then restart the device to load the new firmware. During this process, the terminal unit will temporarily lose response until the new firmware is loaded.
[0026] After the backup is completed, the terminal unit will start to update its firmware. The terminal unit erases the old firmware data in the storage; the new firmware completely covers the old firmware to avoid the influence of the old firmware residue on the normal operation of the new firmware; after erasing the old firmware data, the terminal unit gradually writes the newly received firmware data into the storage area.
[0027] After the new firmware data is successfully written, the terminal unit performs a restart operation to restart and load the new firmware and make it effective; after the new firmware is loaded, the terminal unit restarts and resumes normal working state; the new firmware will be responsible for all operations of the device, and the terminal unit will resume responsiveness and continue to perform its functions.
[0028] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A remote firmware upgrade and accident handling method for a rental cabinet equipment terminal, characterized in that: The following steps are involved: a. The data to be upgraded to the firmware is stored in the cloud and transmitted to the communication unit via network communication; b. The communication unit divides the firmware upgrade data into each data packet, numbers the data packets, generates a corresponding CRC check code for each packet, and transmits it to each terminal unit in a physical manner. The terminal unit uses the CRC check code to verify the integrity of the data, and refuses to receive incomplete data; c. Using forward error correction and physical transmission, the communication unit uses the RS encoding algorithm to generate an error correction code for each data packet, and each data packet and the RS error correction code are transmitted to the terminal unit together; after the terminal unit receives the data packet, it uses the CRC check code for error detection; if the CRC check code passes, the data packet has no error, and the terminal unit continues to process the data; If the CRC check code fails, the terminal unit uses the RS decoder to correct the error in the data packet; if the RS decoder corrects the error and the error rate is less than 5%, the data packet is complete; if the error rate exceeds 5% or the data transmission timeout is an unexpected situation, the terminal unit will record the error number, and the terminal unit will request the communication unit to retransmit the error number and subsequent data packets and error correction codes according to the error number; after the terminal unit receives the retransmitted data packet again, it uses the CRC check code for verification; if the CRC check code passes, the data packet is complete and continues to be processed; if the check fails, it will continue to request retransmission until it is compared with the data packet number and the CRC check code and is determined to be a complete data packet; d. The communication unit creates a message data table to store message data nodes for the terminal unit; e. The message data processor polls multiple message data tables and processes the message data nodes of a single message data table; f. The terminal unit receives data from the communication unit and responds or stores it in the message data table to be upgraded to the firmware data area according to the data type; g. After receiving the entire firmware upgrade data, the terminal unit backs up the data before the firmware upgrade, that is, the original firmware data to the storage area; h. After the backup is completed, the terminal unit updates the firmware upgrade data to the operation area in the message data table to complete the firmware upgrade; i. The terminal unit resumes data transmission from the data transmission error number after an accident occurs; If an unexpected situation occurs during the upgrade process, the terminal unit will recover autonomously based on the stored firmware upgrade data to resume the update.
2. A method for remote firmware upgrade and accident handling of a rental cabinet equipment terminal according to claim 1, characterized in that: The physical method adopts RS485 communication and CAN communication to transmit data. The communication unit determines the connection method with the terminal unit according to the design document of the firmware hardware, determines the maximum data load of a single data packet, and then fragments the data to be upgraded according to the maximum data load of a single data packet. Finally, a number and a total package number are added to each fragmented data, wherein the data packet is the data unit that can be transmitted independently by dividing the firmware to be upgraded, the number is a unique identifier assigned to each fragmented data packet, which is used to indicate the sequential position of the data packet in all fragmented data packets, and the total package number is the total number of data packets into which the data to be upgraded is divided.
3. A method for remote firmware upgrade and accident handling of a rental cabinet equipment terminal according to claim 1, characterized in that: The message data table is used to create a set of message data nodes for storing message data nodes for the terminal unit, wherein the message data node is a single piece of firmware upgrade data generated by the communication unit and to be sent to the terminal unit.
4. A method for remote firmware upgrade and accident handling of a rental cabinet equipment terminal according to claim 1, characterized in that: The message data processor is used to obtain the data node of the message data table, parse the structure and content of the data of the message data node, and send the data to the corresponding terminal unit according to the terminal unit number; the message processor will poll multiple message data tables, if the current message data table has a message node, add a protocol header to the message node, perform error detection and correction processing, query the next message data table, and send the data to the corresponding terminal unit.
5. A method for remote firmware upgrade and accident handling of a rental cabinet equipment terminal according to claim 1, characterized in that: The terminal unit receives the data from the communication unit, and mounts the segmented firmware upgrade data to the corresponding data message table in order by numbering the terminal units that need to be upgraded. If a user instruction is input, the communication unit stops mounting the firmware upgrade data, mounts the user instruction to the end of the corresponding data table, and then continues to mount the firmware upgrade data until the firmware upgrade data is mounted. During the process of polling the data table, the data processor adds a label to the current data according to the data type currently being processed to identify whether it is upgrade instruction data or user instruction data. If it is user instruction, it will respond; if it is upgrade instruction data, the upgrade data will be stored in the data area to be upgraded to firmware in the data table. Each time a piece of data is received, a response must be made to the communication unit, where the data area to be upgraded to firmware is the message data table in the terminal unit, which is used to temporarily store the firmware upgrade data packets received from the communication unit until the entire firmware upgrade data is completely downloaded.
6. A method for remote firmware upgrade and accident handling of a rental cabinet equipment terminal according to claim 1, characterized in that: The firmware upgrade sends an upgrade request to the terminal unit through the communication unit. Once the terminal unit receives the upgrade request, the terminal unit will check the current network connection status and terminal resources to ensure that there is enough space and bandwidth to download and process the new firmware. The communication unit sends the firmware upgrade data, and the terminal unit receives the firmware data. If data transmission errors or network interruptions occur during the communication process, the terminal unit automatically corrects the errors based on forward error correction; Once the upgrade request is successfully received, the terminal unit backs up the original firmware version to the storage device; After the backup is complete, the terminal unit will begin updating the firmware, where the terminal resources are the hardware and software resources on the terminal unit used to complete the upgrade process.
7. A method for remote firmware upgrade and accident handling of a rental cabinet equipment terminal according to claim 6, characterized in that: The forward error correction generates an error correction code according to the firmware upgrade data to be sent by using the RS coding algorithm during data transmission, which is used to detect and correct errors in the terminal unit, combine the firmware upgrade data and the generated error correction code into a data packet, and send the combined data packet to the terminal unit through the RS485 communication protocol; After receiving the data packet, the terminal unit uses the RS decoder to detect errors in the data packet. If an error is detected, the RS decoder will correct the error using the error correction code. If the data packet is lost during transmission, the terminal unit recovers the lost data packet based on the received data packet. The data packet is successfully received and corrected, and the terminal unit upgrades the firmware, in which the RS decoder is implemented in a high-level programming language to decode the error correction code generated by the RS encoding.
8. A method for remote firmware upgrade and accident handling of a rental cabinet equipment terminal according to claim 1, characterized in that: The breakpoint resume method divides the firmware to be transmitted into multiple data packets, each of which has a unique number so that the data can be reassembled in the correct order; Both the communication unit and the terminal unit need to record whether each data packet is transmitted normally or damaged. After each data packet is transmitted, forward error correction is used to verify the integrity of the data; The terminal unit needs to record the number of the last successfully received data packet. If a serious error occurs during the transmission process, the terminal unit will recover according to the number of the recorded data packet. The terminal unit can report the upgrade status and progress information to the communication unit for remote monitoring.
9. A method for remote firmware upgrade and accident handling of a rental cabinet equipment terminal according to claim 1, characterized in that: The unexpected conditions are power outages, interruptions and restarts, including when the communication unit sends firmware upgrade data to the terminal unit. If an unexpected condition occurs, the terminal unit will continue to receive data from the point where the last transmission was interrupted after restarting. Once the terminal unit has received the firmware upgrade data, it will enter the stage of backing up the original firmware; If an unexpected situation occurs during the backup phase, the terminal unit will check the last stored upgrade status. If it is the backup status, the terminal unit will consider that the firmware is not damaged and continue to perform the backup operation; After the backup is completed, the terminal unit will enter the update phase, and the status will be updated and stored. If an accident occurs during the update phase, the terminal unit will check the status after restarting. If the status is updated, the firmware may be damaged. The terminal unit will restore the firmware from the backup area and restart.
Citation Information
Patent Citations
Method for reliably transmitting data of power distribution network information exchange bus
CN103368693A
Efficient lightweight easy-to-use distributed network message middleware
CN113722127A
Multifunctional software upgrading method and system of embedded system
CN114217831A
OTA mode for WiFi Mesh online upgrade
CN115766748A
Message transmission method and device
CN117061388A
Cited By
Private network terminal firmware upgrading method, device, equipment, medium and program product
CN120857098A
Industrial wireless data transmission method, device and system
CN120935603A
Electric energy data security storage method based on power failure detection and cache compression
CN121681241A
