Narrow-band system differential upgrading method of wide-narrow band fusion terminal
By adopting differential upgrade method and MD5 verification in narrowband systems, combined with UART communication and retransmission mechanism, the problems of low efficiency, high cost and interruption risk of narrowband system upgrades are solved, and an efficient, stable and secure narrowband system upgrade is achieved.
Patent Information
- Application Number
- CN202411276559.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2024-12-31
AI Technical Summary
When a narrowband system needs to add new functions or fix bugs, the traditional upgrade method is inefficient, costly, and has a high risk of interruption during the upgrade process, which affects the user experience and operation and maintenance complexity.
Using the differential upgrade method of wide and narrowband fusion terminals, differential upgrade packages are produced by upgrading the management server, using UART to communicate with broadband and narrowband systems, supports simultaneous upgrade of multiple terminals, and ensures data integrity and stability through the MD5 checksum retransmission mechanism. sex.
It improves the upgrade efficiency of narrowband systems, reduces costs, ensures the stability and security of the upgrade process, reduces the amount of data transmission, supports simultaneous upgrade of multiple terminals, and provides automatic retransmission and fallback mechanisms.
Smart Images

Figure CN119225786A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a narrowband system differential upgrading method of a wide-narrowband fusion terminal. Background Art
[0002] With the rapid development of wireless communication technology, dedicated trunking communication technology has undergone a transformation from analog to narrowband digital systems, and is now moving towards high-speed broadband communication systems represented by 5G. In industries such as rail transit, public security, and ports, the demand for wireless broadband is growing, and is no longer limited to traditional voice communications, but has expanded to the provision of data and multimedia services. In order to meet this complex demand, broadband and narrowband converged terminals have emerged, which can support both broadband and narrowband communications, providing users with a more comprehensive communication solution.
[0003] In the field of domestic private network industry, PDT (Police Digital Trunking, a time-division communication protocol) system and TETRA (Terrestrial Trunked Radio) system are widely used. PDT system is widely used in China, while TETRA system is widely used around the world, especially in Europe. These two narrowband systems play a key role in their respective fields, but with the increase in broadband demand, the PDT and TETRA systems running alone are gradually unable to meet the needs of industry users for high-speed broadband services.
[0004] Narrowband systems have the characteristics of wide coverage, cost-effectiveness, high reliability and data security. Wide-narrowband converged terminals can not only fully utilize the advantages of narrowband systems, but also protect existing PDT and TETRA investments. The coexistence of PDT and 5G systems, and the coexistence of TETRA and 5G systems have become the trend of future development. Driven by this trend, PDT / 5G converged systems, TETRA / 5G converged systems and corresponding dual-mode terminal equipment have rapidly emerged to meet diverse communication needs.
[0005] In the process of implementing the present invention, the inventors found that when a narrowband system needs to add new functions or fix bugs, the terminal version must be upgraded, and the file size of each terminal version may range from tens of megabytes to hundreds of megabytes. However, the upgrade efficiency is low and the upgrade cost is high. The main reasons are as follows: 1. Traditional upgrade methods are inefficient: The current common centralized recovery or one-by-one upgrade methods are time-consuming and labor-intensive, increasing operational and labor costs. These traditional methods limit the speed and flexibility of narrowband system upgrades; 2. Serial port transmission rate limitation: Although 5G networks provide high-speed transmission capabilities, the serial port transmission rates of broadband and narrowband terminal devices are limited, which becomes a bottleneck in the upgrade process, affecting upgrade efficiency and user experience; 3. Difficulty in transferring large files: In narrowband systems, terminal software version files are large, and transferring large files takes a long time and consumes a lot of bandwidth resources, further exacerbating the efficiency problem during the upgrade process; 4. Risk of interruption during the upgrade process: The long upgrade process increases the risk of unexpected interruptions, which may result in incomplete upgrades or abnormal functions of terminal devices, thereby increasing the complexity and cost of operation and maintenance. Summary of the invention
[0006] In view of the problems existing in the prior art, the purpose of the present invention is to provide a technical solution for a differential upgrade method of a narrowband system of a wide-narrowband converged terminal, which is used to improve the upgrade efficiency of the narrowband system, reduce the upgrade cost, and ensure the stability and security of the upgrade process in the communication environment of the wide-narrowband converged terminal, wherein the broadband system and the narrowband system use UART (Universal Asynchronous Receiver / Transmitter) for communication.
[0007] The broadband and narrowband fusion terminal communication system is characterized by comprising a broadband and narrowband fusion terminal and an upgrade management server, wherein the broadband and narrowband fusion terminal is provided with a narrowband system and a broadband system. The upgrade management server: a WEB server that pre-stores all released narrowband system versions, is responsible for making differential upgrade packages, managing and monitoring the upgrade process; and supports multiple broadband and narrowband converged terminals to perform differential upgrades of narrowband systems at the same time; The broadband system: Android system is connected to the upgrade management server via a 5G or WIFI network. The broadband system is connected to the narrowband system via UART to receive and transmit differential upgrade packages to the narrowband system. The narrowband system: a narrowband modem, is connected to the broadband system via UART, receives the differential upgrade package and performs the upgrade.
[0008] The narrowband system differential upgrade method of the wide-narrowband fusion terminal is characterized in that: all the released narrowband system versions are pre-stored on the upgrade management server. When a version upgrade is required, the wide-narrowband fusion terminal first reports the original narrowband system version number to the upgrade management server. The upgrade management server finds the target software version, compares the original narrowband system version with the target software version and produces a differential upgrade package, and then sends the differential upgrade package to the broadband system in the wide-narrowband fusion terminal. The broadband system then sends the differential upgrade package to the narrowband system, and the narrowband system then performs the upgrade process.
[0009] The narrowband system differential upgrade method of a wide-narrowband fusion terminal is characterized in that the broadband system and the narrowband system are connected using UART, and the UART is usually used for AT command transmission. When the narrowband system needs to be upgraded, it is also used for file transmission, and when performing file transmission, the UART baud rate needs to be increased.
[0010] The method for differential upgrading the narrowband system of a wide-narrowband converged terminal is characterized in that the differential upgrade package sent by the upgrade management server carries not only the differential upgrade package but also the MD5 values of two software version files. After receiving the differential upgrade package, the narrowband system calculates the MD5 value of the current software version and compares the MD5 values of the two software version files. If correct, the upgrade operation is performed. If incorrect, the upgrade is not performed to ensure the normal operation of the narrowband system.
[0011] The narrowband system differential upgrade method of a broadband and narrowband fusion terminal is characterized in that it also includes a retransmission mechanism, namely: when the narrowband system finds that the MD5 value of the version file of the differential upgrade package is incorrect, it reports to the upgrade management server through the broadband system, and the upgrade management server performs a re-upgrade process; the re-upgrade process is repeated at least 3 times, and if all fail, the version is rolled back and an upgrade failure prompt is given.
[0012] The method for differentially upgrading the narrowband system of a wide-narrowband converged terminal is characterized in that before starting the upgrade, the wide-narrowband converged terminal sends the terminal serial number to the upgrade management server, and the upgrade management server can distinguish different terminal devices connected to it and support upgrading the narrowband systems of multiple wide-narrowband converged terminals at the same time.
[0013] The narrowband system differential upgrade method of a broadband and narrowband integrated terminal is characterized in that the file transmission process between the broadband system and the narrowband system is as follows: The broadband system sends a request to the narrowband system to enter file transfer mode; After receiving the request, the narrowband system replies that the broadband system has entered the file transfer mode; The broadband system receives the reply and sends a file header block to the narrowband system, including the name and size of the differential upgrade package; The narrowband system receives the file header block and starts to perform CRC and file size checks; If the verification fails, a NAK is sent to the broadband system to request the retransmission of the file header block; The broadband system receives the NAK retransmission request and sends the file header block again. The narrowband system repeats the above verification process. If the narrowband system succeeds in verification, it continues with the subsequent data transmission process. If the narrowband system fails in verification after the broadband system retransmits three times, it exits the file transfer mode and reports the transmission error signaling. If the verification is successful, an ACK is sent to the broadband system to confirm that the file header block has been received and verified successfully; The broadband system receives the ACK confirmation and starts file data transmission, sending N data blocks including file data and CRC to the narrowband system; If the narrowband system fails the CRC check, it replies NAK to the broadband system and requests the current data block to be resent; The broadband system receives the NAK retransmission request and resends the current data block. After receiving the data block, the narrowband system repeats the above verification process. If the narrowband system succeeds in verification, it replies with ACK to the broadband system to confirm successful reception and continue data transmission. If the narrowband system fails in verification, it continues to reply with NAK to the broadband system until the broadband system retransmits three times. If the narrowband system still fails in verification, it sends a transmission error signaling to the broadband system and exits the transmission mode. If the narrowband system CRC check succeeds, it replies to the broadband system ACK to confirm that the current data block is received successfully; The broadband system receives the ACK confirmation and starts sending the next data block; Repeat the above data block transmission steps until all data blocks are sent, and then the broadband system sends the Final tail packet to the narrowband system; After the narrowband system receives the Final packet and passes verification, it ends the data receiving mode and sends a signaling reply to the broadband system that the transmission is complete; The narrowband system enters the version upgrade process.
[0014] The narrowband system differential upgrade method of a wide-narrowband integrated terminal is characterized by the following specific process: The broadband system uses the AT command to obtain the version number of the current original software version of the narrowband system, configures the IP address of the upgrade management server in the broadband system, connects to the upgrade management server through the 5G / WIFI network, and sends the original software version number of the narrowband system and the target software version number obtained from the narrowband system to the upgrade management server; the upgrade management server traverses and obtains the original software version and the target software version package of the narrowband system from the stored narrowband system version list according to the received original software version number of the narrowband system, calculates the MD5 value of the original software version package and the target software version package, and uses the bsdiff incremental update method to generate the differential upgrade of the original software version and the target software version. The upgrade management server sends the differential upgrade package and the MD5 values of the two software versions to the broadband system through the 5G / WIFI network, and the broadband system transmits the differential upgrade package to the narrowband system through UART. After receiving the differential upgrade package, the narrowband system calculates the MD5 value of the current narrowband system software version, and compares it with the MD5 value of the received original software version. If the comparison is successful, the version is upgraded. If it fails, the error code is reported to the broadband system. After the narrowband system completes the version upgrade, it calculates the MD5 value of the upgraded software version, and compares it with the MD5 value of the received target software version. If successful, the broadband success signaling is reported. If it fails, the corresponding error code is reported and the system rolls back to the original software version.
[0015] The narrowband system differential upgrade method of a wide-narrowband converged terminal is characterized by: If the broadband system receives the verification failure signaling sent by the narrowband system, it re-reads the current version number of the narrowband system, requests the upgrade management server to re-make the differential upgrade package again, and repeats the above update process until the broadband system receives the upgrade completion signaling, or the broadband system cumulatively requests the upgrade management server to update the narrowband system version for 3 times and the narrowband system upgrade is still not completed successfully, the broadband system prompts that the version update failed and resets the narrowband system version update request count; If the broadband system receives the success signaling, the broadband system prompts that the narrowband system version upgrade is successful and resets the narrowband system version update request count.
[0016] The advantages of the present invention are: through the differential upgrade method, only part of the data that needs to be updated is transmitted, which reduces the amount of data transmission, speeds up the upgrade progress, and reduces the upgrade cost; the upgrade management server can distinguish different terminal devices and support simultaneous upgrade of multiple integrated terminals; the differential upgrade package carries the MD5 value, and the narrowband system performs MD5 verification to ensure the integrity and accuracy of the data; a retransmission mechanism is provided to ensure automatic retransmission and rollback when the upgrade fails, thereby ensuring the security and stability of the system.
[0017] The present invention reduces upgrade costs, improves upgrade efficiency, and ensures the stability and security of the upgrade process through an optimized differential upgrade method, and has high practical value and broad application prospects. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 It is a schematic diagram of the system framework of the present invention; Figure 2 This is a flowchart of upgrading the narrowband system of the broadband and narrowband fusion terminal of the present invention; Figure 3 This is a flow chart of file transmission between a broadband system and a narrowband system of the present invention. DETAILED DESCRIPTION
[0019] The present invention will be further described below in conjunction with the accompanying drawings: A broadband and narrowband fusion terminal communication system comprises a broadband and narrowband fusion terminal and an upgrade management server. The broadband and narrowband fusion terminal is provided with a narrowband system and a broadband system.
[0020] Upgrade management server: WEB (World Wide Web) server, which pre-stores all released narrowband system versions, is responsible for making differential upgrade packages, managing and monitoring the upgrade process; and supports multiple broadband and narrowband converged terminals to perform differential upgrades of narrowband systems at the same time; Broadband system: Android system, connected to the upgrade management server via 5G or WIFI network. The broadband system and narrowband system are connected via UART, receiving and transmitting differential upgrade packages to the narrowband system. Narrowband system: A narrowband modem (Modulator and Demodulator) connects to a broadband system via UART, receives differential upgrade packets and performs upgrades.
[0021] A method for differentially upgrading the narrowband system of a broadband and narrowband converged terminal. An upgrade management server pre-stores all released narrowband system versions. When a version upgrade is required, the broadband and narrowband converged terminal first reports the original narrowband system version number to the upgrade management server. The upgrade management server finds the target software version, compares the original narrowband system version with the target software version and produces a differential upgrade package. The differential upgrade package is then sent to the broadband system in the broadband and narrowband converged terminal. The broadband system then sends the differential upgrade package to the narrowband system, and the narrowband system then performs the upgrade process.
[0022] The broadband system and the narrowband system are connected using UART. Usually, UART is used for AT command transmission. When the narrowband system needs to be upgraded, it is also used for file transmission. When transferring files, the UART baud rate needs to be increased. Since increasing the baud rate may affect the accuracy of data transmission, a verification retransmission mechanism is designed to ensure the accuracy of data transmission.
[0023] The differential upgrade package sent by the upgrade management server carries not only the differential upgrade package but also the MD5 values of the two software version files. After receiving the differential upgrade package, the narrowband system calculates the MD5 value of the current software version and compares the MD5 values of the two software version files. If correct, the upgrade operation is performed. If incorrect, the upgrade is not performed to ensure the normal operation of the narrowband system.
[0024] Retransmission mechanism, that is: when the narrowband system finds that the MD5 value of the version file of the differential upgrade package is incorrect, it reports it to the upgrade management server through the broadband system, and the upgrade management server performs the re-upgrade process; the re-upgrade process is repeated at least 3 times. If all fail, the version is rolled back and the upgrade failure is prompted.
[0025] Before starting the upgrade, the broadband and narrowband converged terminal sends the terminal serial number to the upgrade management server. The upgrade management server can distinguish different connected terminal devices and support upgrading the narrowband systems of multiple broadband and narrowband converged terminals at the same time.
[0026] The file transfer process between broadband system and narrowband system is as follows: The broadband system sends a request to the narrowband system to enter file transfer mode; After receiving the request, the narrowband system replies that the broadband system has entered the file transfer mode; The broadband system receives the reply and sends a file header block to the narrowband system, including the name and size of the differential upgrade package; The narrowband system receives the file header block and starts to perform CRC and file size checks; If the verification fails, a NAK is sent to the broadband system to request the retransmission of the file header block; The broadband system receives the NAK retransmission request and sends the file header block again. The narrowband system repeats the above verification process. If the narrowband system succeeds in verification, it continues with the subsequent data transmission process. If the narrowband system fails in verification after the broadband system retransmits three times, it exits the file transfer mode and reports the transmission error signaling. If the verification is successful, an ACK is sent to the broadband system to confirm that the file header block has been received and verified successfully; The broadband system receives the ACK confirmation and starts file data transmission, sending N data blocks including file data and CRC to the narrowband system; If the narrowband system fails the CRC check, it replies NAK to the broadband system and requests the current data block to be resent; The broadband system receives the NAK retransmission request and resends the current data block. After receiving the data block, the narrowband system repeats the above verification process. If the narrowband system succeeds in verification, it replies with ACK to the broadband system to confirm successful reception and continue data transmission. If the narrowband system fails in verification, it continues to reply with NAK to the broadband system until the broadband system retransmits three times. If the narrowband system still fails in verification, it sends a transmission error signaling to the broadband system and exits the transmission mode. If the narrowband system CRC check succeeds, it replies to the broadband system ACK to confirm that the current data block is received successfully; The broadband system receives the ACK confirmation and starts sending the next data block; Repeat the above data block transmission steps until all data blocks are sent, and then the broadband system sends the Final tail packet to the narrowband system; After the narrowband system receives the Final packet and passes verification, it ends the data receiving mode and sends a signaling reply to the broadband system that the transmission is complete; The narrowband system enters the version upgrade process.
[0027] The specific embodiments of the present invention are as follows: The broadband system and the narrowband system are connected via UART, and the broadband system uses AT commands to obtain the current original software V1 version number of the narrowband system; the IP address of the upgrade management server is configured in the broadband system, and the broadband system is connected to the upgrade management server via the 5G / WIFI network, and the original software version number of the narrowband system and the target software version number obtained from the narrowband system are sent to the upgrade management server; the upgrade management server traverses the original software version and the target software version of the narrowband system from the stored narrowband system version list according to the received original software version number of the narrowband system, and calculates the MD5 value of the original software version V1 and the target software version V2, and uses the bsdiff incremental update method to create a differential upgrade package V1_t o_V2; the upgrade management server sends the differential upgrade package and the MD5 values of the two software versions to the broadband system through the 5G / WIFI network, and the broadband system transmits the differential upgrade package to the narrowband system through UART; after the narrowband system receives the differential upgrade package V1_to_V2, it calculates the MD5 value of the current narrowband system software version, and compares it with the MD5 value of the received original software version. If the comparison is successful, the version upgrade is performed. If it fails, the error code is reported to the broadband system; after the narrowband system completes the version upgrade, it calculates the MD5 value of the upgraded file and compares it with the MD5 value of the received target software version V2. If successful, the broadband success signaling is reported. If it fails, the corresponding error code is reported and the system rolls back to the original software version V1.
[0028] like Figure 1 , which is a schematic diagram of the system architecture of an embodiment of the present invention, can support multiple wide-narrowband converged terminals to perform differential upgrades of narrowband systems at the same time.
[0029] exist Figure 1 In the broadband and narrowband fusion terminal shown, the narrowband system is connected to the broadband system via UART for data communication; the broadband system in the broadband and narrowband fusion terminal is connected to the upgrade management server via 5G / WIFI for data communication; after the connection is completed, the following specific upgrade operations are performed: The broadband system sends a signal to the narrowband system via UART to query the original software version V1 of the narrowband system, and the narrowband system reports the version number of the current original software version V1 to the broadband system via signal; After the broadband system obtains the version number of the original software version V1 of the narrowband system, it sends the version number of the original software version V1 of the narrowband system and the version number of the target software version V2 to the upgrade management server via 5G / WIFI. The upgrade management server stores all released narrowband system versions. Based on the received narrowband system version number, the upgrade management server traverses and obtains the original software version V1 and the target software version V2 of the narrowband system from the stored narrowband system version list, calculates the MD5 value of the original software version V1 and the target software version V2, and uses the bsdiff incremental update method to create a differential upgrade package V1_to_V2.
[0030] The upgrade management server sends the differential upgrade package V1_to_V2 to the broadband system via 5G / WIFI.
[0031] The broadband system obtains the differential upgrade package V1_to_V2 from the narrowband system. Figure 3 , start file transfer between broadband system and narrowband system; The broadband system sends a request to the narrowband system to enter file transfer mode; After receiving the request, the narrowband system replies that the broadband system has entered the file transfer mode; The broadband system receives the reply and sends a file header block to the narrowband system, including the name and size of the differential upgrade package V1_to_V2; The narrowband system receives the file header block and starts to perform CRC (Cyclic Redundancy Check) and file size check; If the verification fails, a NAK (Negative Acknowledgment) is sent to the broadband to request the retransmission of the file header block; The broadband system receives the NAK retransmission request and sends the file header block again. The narrowband system repeats the above verification process. If the narrowband system succeeds in verification, it continues with the subsequent data transmission process. If the narrowband system fails in verification after the broadband system retransmits three times, it exits the file transfer mode and reports the transmission error signaling. If the verification is successful, an ACK (Acknowledge character) is sent to the broadband system to confirm that the file header block has been received and verified successfully; The broadband system receives the ACK confirmation, starts file data transmission, and sends N data blocks (including file data and CRC) to the narrowband system; If the narrowband system fails the CRC check, it replies NAK to the broadband system and requests the current data block to be resent; The broadband system receives the NAK retransmission request and resends the current data block. After receiving the data block, the narrowband system repeats the above verification process. If the narrowband system succeeds in verification, it replies with ACK to the broadband system to confirm successful reception and continue data transmission. If the narrowband system fails in verification, it continues to reply with NAK to the broadband system until the broadband system retransmits three times. If the narrowband system still fails in verification, it sends a transmission error signaling to the broadband system and exits the transmission mode. If the narrowband system CRC check succeeds, it replies to the broadband system ACK to confirm that the current data block is received successfully; The broadband system receives the ACK confirmation and starts sending the next data block; Repeat the above data block transmission steps until all data blocks are sent, and then the broadband system sends the Final tail packet to the narrowband system; After the narrowband system receives the Final packet and passes verification, it ends the data receiving mode and sends a signaling reply to the broadband system that the transmission is complete; The narrowband system enters the version upgrade process.
[0032] The narrowband system decompresses the received differential upgrade package V1_to_V2, obtains the MD5 value of the original software version V1 carried therein, calculates the MD5 value of the current narrowband system software version, and compares them; If the comparison is inconsistent, a signal indicating that the original software version verification has failed is sent to the broadband system, the differential upgrade package V1_to_V2 and the decompressed patch file are deleted, and the version upgrade process is exited; If the comparison is consistent, the narrowband system uses the bspatch method to integrate the current software version of the narrowband system and the patch file extracted from the differential upgrade package V1_to_V2, and stores the integrated target software version in the newly created version upgrade temporary directory; Use the MD5sum tool to calculate the MD5 value of the target software version in the version upgrade temporary directory, and compare it with the MD5 value of the target software version V2 carried in the differential upgrade package V1_to_V2; If the comparison fails and the MD5 values of the two are inconsistent, the narrowband system sends a signal to the broadband system indicating that the verification of the target software version V2 has failed, deletes the differential upgrade package V1_to_V2 and the decompressed patch file, deletes the target software version V2 in the version upgrade temporary storage directory, and the narrowband system exits the version upgrade process; If the comparison is successful and the MD5 values of the two are consistent, the target software version V2 in the version upgrade temporary directory will overwrite the current narrowband system software version V1 to complete the upgrade of the narrowband system, and send a signal to the broadband system indicating that the narrowband system upgrade is complete, and the narrowband system will exit the version upgrade process.
[0033] During the transmission of differential upgrade packages between the above-mentioned wide and narrow bands, there is Figure 2 The feedback error and retransmission mechanism shown is: If the broadband system receives the verification failure signaling sent by the narrowband system, it re-reads the current version number of the narrowband system, requests the upgrade management server to re-make the differential upgrade package again, and repeats the above update process until the broadband system receives the upgrade completion signaling, or the broadband system cumulatively requests the upgrade management server to update the narrowband system version for 3 times and the narrowband system upgrade is still not completed successfully, the broadband system prompts that the version update failed and resets the narrowband system version update request count; If the broadband system receives the success signaling, the broadband system prompts that the narrowband system version upgrade is successful and resets the narrowband system version update request count.
[0034] The present invention uses differential upgrade package transmission optimization, only transmitting the part that needs to be upgraded, reducing the data transmission volume and improving transmission efficiency; the upgrade management server monitors the upgrade process in real time and provides a feedback mechanism to ensure the smooth progress of the upgrade; the broadband system and the upgrade management server are connected through a 5G / WIFI network, and the broadband system and the narrowband system are connected using UART, thereby realizing the connection between the upgrade management server and the narrowband system; before starting the upgrade, the fusion terminal sends the terminal serial number to the upgrade management server, and the upgrade management server can distinguish between different terminal devices connected, and can support the simultaneous upgrade of the narrowband systems of multiple fusion terminals.
[0035] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have more changes and modifications. Any modification, replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A broadband and narrowband integrated terminal communication system, characterized in that It includes a broadband and narrowband fusion terminal and an upgrade management server. The broadband and narrowband fusion terminal is equipped with a narrowband system and a broadband system. The upgrade management server: a WEB server that pre-stores all released narrowband system versions, is responsible for making differential upgrade packages, managing and monitoring the upgrade process; and supports multiple broadband and narrowband converged terminals to perform differential upgrades of narrowband systems at the same time; The broadband system: Android system is connected to the upgrade management server via a 5G or WIFI network. The broadband system is connected to the narrowband system via UART to receive and transmit differential upgrade packages to the narrowband system. The narrowband system: a narrowband modem, is connected to the broadband system via UART, receives the differential upgrade package and performs the upgrade.
2. A method for differentially upgrading a narrowband system of a wide-narrowband converged terminal, characterized in that: The upgrade management server pre-stores all released narrowband system versions. When a version upgrade is required, the broadband and narrowband fusion terminal first reports the original narrowband system version number to the upgrade management server. The upgrade management server finds the target software version, compares the original narrowband system version with the target software version and creates a differential upgrade package. The differential upgrade package is then sent to the broadband system in the broadband and narrowband fusion terminal. The broadband system then sends the differential upgrade package to the narrowband system, and the narrowband system then performs the upgrade process.
3. According to claim 2, a method for differentially upgrading a narrowband system of a wide-narrowband converged terminal is characterized in that The broadband system and the narrowband system are connected using UART. Usually, UART is used for AT command transmission. When the narrowband system needs to be upgraded, it is also used for file transmission. When performing file transmission, the UART baud rate needs to be increased.
4. According to claim 2, a method for differentially upgrading a narrowband system of a wide-narrowband converged terminal is characterized in that The differential upgrade package sent by the upgrade management server carries not only the differential upgrade package but also the MD5 values of the two software version files. After receiving the differential upgrade package, the narrowband system calculates the MD5 value of the current software version and compares the MD5 values of the two software version files. If they are correct, the upgrade operation is performed. If they are incorrect, the upgrade is not performed to ensure the normal operation of the narrowband system.
5. According to claim 4, a method for differentially upgrading a narrowband system of a wide-narrowband converged terminal is characterized in that It also includes a retransmission mechanism, namely: when the narrowband system finds that the MD5 value of the version file of the differential upgrade package is incorrect, it reports it to the upgrade management server through the broadband system, and the upgrade management server performs a re-upgrade process; the re-upgrade process is repeated at least 3 times. If all fail, the version is rolled back and the upgrade failure is prompted.
6. According to claim 2, a method for differentially upgrading a narrowband system of a wide-narrowband converged terminal is characterized in that Before starting the upgrade, the broadband and narrowband converged terminal sends the terminal serial number to the upgrade management server. The upgrade management server can distinguish different connected terminal devices and support upgrading the narrowband systems of multiple broadband and narrowband converged terminals at the same time.
7. According to claim 3, a method for differentially upgrading a narrowband system of a wide-narrowband converged terminal is characterized in that The file transmission process between the broadband system and the narrowband system is as follows: The broadband system sends a request to the narrowband system to enter file transfer mode; After receiving the request, the narrowband system replies that the broadband system has entered the file transfer mode; The broadband system receives the reply and sends a file header block to the narrowband system, including the name and size of the differential upgrade package; The narrowband system receives the file header block and starts to perform CRC and file size checks; If the verification fails, a NAK is sent to the broadband system to request the retransmission of the file header block; The broadband system receives the NAK retransmission request and sends the file header block again. The narrowband system repeats the above verification process. If the narrowband system succeeds in verification, it continues with the subsequent data transmission process. If the narrowband system fails in verification after the broadband system retransmits three times, it exits the file transfer mode and reports the transmission error signaling. If the verification is successful, an ACK is sent to the broadband system to confirm that the file header block has been received and verified successfully; The broadband system receives the ACK confirmation and starts file data transmission, sending N data blocks including file data and CRC to the narrowband system; If the narrowband system fails the CRC check, it replies NAK to the broadband system and requests the current data block to be resent; The broadband system receives the NAK retransmission request and resends the current data block. After receiving the data block, the narrowband system repeats the above verification process. If the narrowband system succeeds in verification, it replies with ACK to the broadband system to confirm successful reception and continue data transmission. If the narrowband system fails in verification, it continues to reply with NAK to the broadband system until the broadband system retransmits three times. If the narrowband system still fails in verification, it sends a transmission error signaling to the broadband system and exits the transmission mode. If the narrowband system CRC check succeeds, it replies to the broadband system ACK to confirm that the current data block is received successfully; The broadband system receives the ACK confirmation and starts sending the next data block; Repeat the above data block transmission steps until all data blocks are sent, and then the broadband system sends the Final tail packet to the narrowband system; After the narrowband system receives the Final packet and passes verification, it ends the data receiving mode and sends a signaling reply to the broadband system that the transmission is complete; The narrowband system enters the version upgrade process.
8. The method for differentially upgrading narrowband systems of a wide-narrowband converged terminal according to claim 2, characterized in that The specific process is as follows: The broadband system uses the AT command to obtain the version number of the current original software version of the narrowband system, configures the IP address of the upgrade management server in the broadband system, connects to the upgrade management server through the 5G / WIFI network, and sends the original software version number of the narrowband system and the target software version number obtained from the narrowband system to the upgrade management server; The upgrade management server traverses and obtains the original software version and target software version of the narrowband system from the stored narrowband system version list according to the received original software version number of the narrowband system, calculates the MD5 value of the original software version package and the target software version package, and generates a differential upgrade package of the original software version and the target software version using the bsdiff incremental update method; The upgrade management server sends the differential upgrade package and the MD5 values of the two software versions to the broadband system through the 5G / WIFI network, and the broadband system transmits the differential upgrade package to the narrowband system through UART; After receiving the differential upgrade package, the narrowband system calculates the MD5 value of the current narrowband system software version and compares it with the MD5 value of the received original software version. If the comparison is successful, the version upgrade is performed. If it fails, the error code is reported to the broadband system. After the narrowband system completes the version upgrade, it calculates the MD5 value of the upgraded software version and compares it with the MD5 value of the received target software version. If successful, the broadband success signaling is reported. If it fails, the corresponding error code is reported and the system rolls back to the original software version.
9. The method for differentially upgrading a narrowband system of a wide-narrowband converged terminal according to claim 8, characterized in that: If the broadband system receives the verification failure signaling sent by the narrowband system, it re-reads the current version number of the narrowband system, requests the upgrade management server to re-make the differential upgrade package again, and repeats the above update process until the broadband system receives the upgrade completion signaling, or the broadband system cumulatively requests the upgrade management server to update the narrowband system version for 3 times and the narrowband system upgrade is still not completed successfully, the broadband system prompts that the version update failed and resets the narrowband system version update request count; If the broadband system receives the success signaling, the broadband system prompts that the narrowband system version upgrade is successful and resets the narrowband system version update request count.
Citation Information
Cited By
Software remote upgrading method and system for intelligent instruments and meters
CN120353485A