Multi-device application collaborative upgrading method based on red-mine operating system

Through the multi-device application collaborative upgrade method based on the Minhong operating system, the problem that the mining intelligent devices cannot be upgraded independently due to hardware resource limitations is solved, and an automated upgrade process is realized, cost and security risks are reduced, and production efficiency and equipment collaborative capabilities are improved.

CN119835158APending Publication Date: 2025-04-15TAIYUAN INST OF CHINA COAL TECH & ENG GROUP +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411834569.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-13
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

Due to the hardware resource limitations of the intelligent mining devices, remote upgrades cannot be completed independently, resulting in manual upgrades of each device by manual equipment, which increases labor costs and security risks and affects the production efficiency of coal mines.

Method used

The multi-device application collaborative upgrade method based on the Minhong operating system is adopted, and the update signal and encrypted update packet are sent through the centralized control platform. The Minhong Gateway receives and stores it, establishes communication with the device to be upgraded, evaluates whether the hardware resources meet the direct upgrade conditions, and judges whether the collaborative upgrade is carried out based on the evaluation results.

Benefits of technology

It realizes the automatic and fast response upgrade process of mining equipment, reduces the need for manual intervention, reduces costs and security risks, and improves the upgrade efficiency and collaborative interaction capabilities between equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119835158A_ABST
    Figure CN119835158A_ABST
Patent Text Reader

Abstract

The invention provides a multi-device application collaborative upgrading method based on a red-mine operating system, and relates to the technical field of industrial Internet of Things, the method comprises the following steps: a centralized management and control platform sends an updating signal and an encrypted updating packet to equipment to be upgraded through an underground industrial Internet; the red-mine gateway receives and stores the update signal and the encrypted update packet, and establishes communication with the to-be-upgraded device, and the to-be-upgraded device evaluates whether the hardware of the to-be-upgraded device meets a direct upgrade condition and feeds back a judgment result to the red-mine gateway; and the red-mine gateway judges whether collaborative upgrading is carried out or not according to a judgment result fed back by the device to be upgraded and self capability evaluation. Through the mine operating system and the collaborative upgrading method, remote, intelligent and efficient upgrading of multiple devices for mining is achieved, the upgrading problem caused by hardware resource limitation is solved, the upgrading efficiency and safety are improved, and the maintenance cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of industrial Internet of Things, and in particular to a method for collaboratively upgrading multi-device applications based on a mining operating system. Background Art

[0002] Many intelligent mining devices, especially early sensors and cameras, were not designed to anticipate the rapid growth of software functions in the future, so they are equipped with limited RAM (random access memory). This results in the inability to load or execute new upgrade packages due to insufficient memory when attempting to perform remote upgrades. In addition to RAM, the cache space of these devices is usually tight. During the remote upgrade process, the upgrade package needs to be downloaded to the local cache before installation. However, limited cache space is often a key factor restricting the success of the upgrade.

[0003] Due to hardware resource limitations, many intelligent devices cannot complete remote upgrades autonomously. Therefore, when an upgrade is needed, professionals are required to carry professional tools deep into the mine to manually operate each device. This not only increases labor costs, but also increases safety risks during operation. Mining equipment is usually designed with explosion-proof casings to ensure safe use in mines. However, when performing wired upgrades, these casings need to be opened to access the upgrade equipment. This not only destroys the explosion-proof performance of the equipment, but may also introduce new safety hazards.

[0004] Since each device needs to be upgraded manually, the entire upgrade process takes a long time. Especially in large coal mines, there are a large number of devices, and the upgrade cycle may take days or even weeks. The upgrade process requires downtime, which directly affects the production efficiency of the coal mine. Especially in high-production periods or emergency situations, long downtime may bring huge economic losses. Since the upgrade time and progress of each device may be different, the application versions of intelligent devices in the entire mine are uneven. This not only increases the difficulty of management, but also may cause problems in the collaborative interaction between devices. Different versions of applications may have compatibility issues, resulting in the inability of devices to communicate or work together normally. This not only affects the overall operating efficiency of the mine, but may also bring safety hazards. Summary of the invention

[0005] The technical problem to be solved by the present invention is to provide a multi-device application collaborative upgrade method based on the Mine Hong operating system to achieve the normal operation and collaborative upgrade function of the mining equipment gateway.

[0006] In order to solve the above technical problems, the technical solution of the present invention is as follows:

[0007] In a first aspect, a method for collaboratively upgrading multi-device applications based on a mining operating system is provided, the method comprising:

[0008] The centralized control platform sends update signals and encrypted update packages to the equipment to be upgraded through the underground industrial Internet;

[0009] The Kuanghong Gateway receives and stores the update signal and encrypted update package. At the same time, it establishes communication with the device to be upgraded. The device to be upgraded evaluates whether its hardware meets the direct upgrade conditions and feeds back the judgment result to the Kuanghong Gateway.

[0010] The Kuanghong Gateway determines whether to perform a collaborative upgrade based on the feedback from the device to be upgraded and its own capability assessment;

[0011] If a collaborative upgrade is performed, the device to be upgraded receives the collaborative upgrade command, enters the upgrade mode, and sends status information to the Kuanghong Gateway;

[0012] The Kuanghong Gateway starts the collaborative upgrade program based on the status information of the device to be upgraded to process the upgrade data and transmit the upgrade data to the device to be upgraded;

[0013] The device to be upgraded receives and applies the upgrade data, and at the same time, feeds back the upgrade results to the Kuanghong Gateway.

[0014] Furthermore, the Kuanghong Gateway receives and stores the update signal and the encrypted update package, and at the same time, establishes communication with the device to be upgraded. The device to be upgraded evaluates whether its own hardware meets the direct upgrade conditions and feeds back the judgment result to the Kuanghong Gateway, including:

[0015] The Kuanghong Gateway receives the update signal and encrypted update package from the centralized control platform and performs decryption verification to obtain the decrypted update package; the decrypted update package is stored in the local storage;

[0016] The Kuanghong Gateway uses the communication components of the device to establish a communication connection with the device to be upgraded;

[0017] The device to be upgraded receives the communication request from the Kuang-Hong Gateway and evaluates its own hardware resources, including storage space and processing power, to determine whether the conditions for direct upgrade are met and obtain the evaluation result; if the evaluation result shows that direct upgrade is not supported, the device to be upgraded immediately sends a cancel upgrade signal to the management and control platform through the Kuang-Hong Gateway, indicating that remote upgrade cannot be performed and manual upgrade is required to obtain the judgment result of whether direct upgrade is met;

[0018] The device to be upgraded will feed back the judgment result of whether it meets the direct upgrade requirements to the Kuanghong Gateway.

[0019] Furthermore, the Kuanghong Gateway determines whether to perform a collaborative upgrade based on the feedback from the device to be upgraded and its own capability assessment, including:

[0020] If the device to be upgraded does not meet the direct upgrade conditions, or the Kuang-Hong Gateway supports collaborative upgrade, the Kuang-Hong Gateway will perform collaborative upgrade.

[0021] If the device to be upgraded meets the direct upgrade conditions and the Kuang-Hong Gateway does not support collaborative upgrades, the Kuang-Hong Gateway will directly send the update package to the device to be upgraded for upgrade.

[0022] Furthermore, if a collaborative upgrade is performed, the device to be upgraded receives the collaborative upgrade command, enters the upgrade mode, and sends status information to the Kuanghong Gateway, including:

[0023] If collaborative upgrading is performed, the Kuanghong Gateway sends a collaborative upgrading command to the device to be upgraded, including the upgrading mode, upgrading steps, and data receiving method;

[0024] The device to be upgraded receives the collaborative upgrade command, enters the upgrade mode according to the instructions in the command, and performs corresponding preparations, including backing up the current system and releasing upgrade space;

[0025] After the upgrade device completes the preparation work, it sends status information to the Kuanghong Gateway.

[0026] Furthermore, the Kuanghong Gateway starts the collaborative upgrade program according to the status information of the device to be upgraded to process the upgrade data and transmit the upgrade data to the device to be upgraded, including:

[0027] The collaborative upgrade program analyzes the current system status of the device to be upgraded, including hardware configuration, software version, installed applications and versions;

[0028] According to the current system status of the device to be upgraded, the collaborative upgrade program processes the update package, including decompression, reorganization, and configuration adjustment, to generate upgrade data matching the device to be upgraded;

[0029] The Kuanghong Gateway transmits the upgrade data to the device to be upgraded through the established communication connection.

[0030] Furthermore, according to the current system status of the device to be upgraded, the collaborative upgrade program processes the update package, including decompression, reorganization, and configuration adjustment, to generate upgrade data matching the device to be upgraded, including:

[0031] Analyze the current system status of the device to be upgraded, including hardware configuration, software version, installed applications, version information and system configuration parameters;

[0032] According to the current system status of the device to be upgraded, the collaborative upgrade program accesses the new version of the software package in the remote server and compares it with the software version currently installed on the device to be upgraded to identify the differences between the new and old versions, including newly added files, modified file contents, and deleted files;

[0033] According to the difference between the old and new versions, the update content is extracted from the new version software package, decompressed and reorganized, and the update content is synthesized with the current system status of the device to be upgraded to generate upgrade data matching the device to be upgraded.

[0034] Furthermore, the device to be upgraded receives and applies the upgrade data, and at the same time, feeds back the upgrade results to the Kuanghong Gateway, including:

[0035] The device to be upgraded applies the received upgrade data to its own system partition according to the predetermined upgrade process;

[0036] During the process of upgrading data applications, the device to be upgraded sends status updates to the Kuanghong Gateway based on key nodes, including the current upgrade progress, completed operations, and potential problems encountered;

[0037] After upgrading the data, the device to be upgraded will conduct a self-check on the upgrade result and send feedback on the upgrade result to the Kuang-Hong Gateway, including whether the upgrade is successful and whether there are any errors or warning messages. If the upgrade is successful, an upgrade success instruction will be sent to the Kuang-Hong Gateway. If the upgrade fails, the upgrade process will be re-entered.

[0038] In the second aspect, a multi-device application collaborative upgrade system based on the Kuanghong operating system includes:

[0039] A status analysis module, used to analyze the current system status of the device to be upgraded, including hardware configuration, software version, installed applications and version information, and system configuration parameters;

[0040] The version difference identification module is used to communicate with the remote server, obtain the new version of the software package, and compare it with the software version currently installed on the device to be upgraded, identify the differences between the new and old versions, including newly added files, modified file contents and files that need to be deleted, so as to obtain the identification result;

[0041] An update content processing module is used to extract the update content from the new version software package according to the identification result of the version difference identification module, decompress and reorganize it, and synthesize it with the current system state of the device to be upgraded;

[0042] An upgrade data synthesis module is used to synthesize the decompressed and reorganized update content with the system status of the device to be upgraded to generate upgrade data matching the device to be upgraded, including file replacement, content update, and configuration adjustment;

[0043] An upgrade data transmission module, used to transmit the upgrade data of the upgrade data synthesis module to the device to be upgraded through the established communication connection;

[0044] The upgrade result feedback module is used to receive the upgrade result feedback from the device to be upgraded, including whether the upgrade is successful, whether there is any error or warning information, and perform corresponding operations according to the feedback result, including sending an upgrade success instruction or re-entering the upgrade process.

[0045] According to a third aspect, a computing device includes:

[0046] one or more processors;

[0047] The storage device is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method described.

[0048] In a fourth aspect, a computer-readable storage medium stores a program, and when the program is executed by a processor, the method described is implemented.

[0049] The above solution of the present invention includes at least the following beneficial effects:

[0050] By sending update signals and encrypted update packages uniformly through a centralized control platform, the tedious process of manually upgrading each device one by one in the traditional way is avoided, thus improving the upgrade efficiency. As an intermediate bridge, the Kuanghong Gateway can quickly receive and store update data, and establish communication with the device to be upgraded, realizing the automation and rapid response of the upgrade process. The collaborative upgrade method reduces the need for manual intervention and reduces the costs incurred by manual operations, including labor costs, time costs, and safety risk costs. Through remote upgrades, equipment damage or safety hazards that may be caused by opening the explosion-proof casing of the equipment are avoided, further reducing maintenance costs.

[0051] The update packages sent by the centralized control platform are encrypted to ensure the security of data during transmission and prevent data leakage or malicious tampering. When receiving and storing update data, the Kuanghong Gateway also takes corresponding security measures to ensure the integrity and reliability of the data. During the upgrade process, the device to be upgraded maintains communication with the Kuanghong Gateway and promptly feedbacks the upgrade status, so as to facilitate the timely discovery and handling of potential security issues. Through the distributed technology of the Kuanghong operating system, resource integration, equipment management and data processing between different devices are realized, and the collaborative interaction capabilities between devices are improved. The collaborative upgrade method ensures that all devices can be upgraded to the latest version synchronously, avoiding compatibility issues or communication barriers caused by inconsistent versions. The Kuanghong Gateway intelligently determines whether to perform a collaborative upgrade based on the hardware resources and its own capability assessment of the device to be upgraded, thereby achieving optimal resource allocation.

[0052] During the collaborative upgrade process, the Kuanghong Gateway can process the upgrade data and transmit it to the device to be upgraded, making full use of the computing and communication capabilities of the gateway and reducing the burden on the device to be upgraded. The reliability and stability of the upgrade process are ensured through an automated upgrade process and a strict data verification mechanism. After the upgrade is completed, the device to be upgraded will feedback the upgrade results to the Kuanghong Gateway, which facilitates the timely discovery and handling of problems that may arise during the upgrade process, thereby improving the overall reliability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 It is a flow chart of a method for collaborative upgrading of multi-device applications based on the Mine Hong operating system provided by an embodiment of the present invention.

[0054] Figure 2 It is a schematic diagram of a multi-device application collaborative upgrade system based on the Mine Hong operating system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0055] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0056] like Figure 1 As shown, an embodiment of the present invention proposes a multi-device application collaborative upgrade method based on the mining operating system, and the method includes the following steps:

[0057] Step 11, the centralized control platform sends an update signal and an encrypted update package to the equipment to be upgraded through the underground industrial Internet;

[0058] Step 12: The Kuanghong Gateway receives and stores the update signal and the encrypted update package. At the same time, it establishes communication with the device to be upgraded. The device to be upgraded evaluates whether its hardware meets the direct upgrade conditions and feeds back the judgment result to the Kuanghong Gateway.

[0059] Step 13: The Kuanghong Gateway determines whether to perform a collaborative upgrade based on the judgment result of the feedback from the device to be upgraded and its own capability assessment;

[0060] Step 14: If a collaborative upgrade is performed, the device to be upgraded receives the collaborative upgrade command, enters the upgrade mode, and sends status information to the Kuanghong gateway;

[0061] Step 15: The Kuanghong Gateway starts the collaborative upgrade program according to the status information of the device to be upgraded to process the upgrade data and transmit the upgrade data to the device to be upgraded;

[0062] Step 16: The device to be upgraded receives and applies the upgrade data, and at the same time, feeds back the upgrade result to the Kuanghong Gateway.

[0063] In the embodiment of the present invention, the Kuanghong Gateway, as an intermediate node, can quickly receive update signals and encrypted update packages from the centralized control platform to ensure timely communication of upgrade information. By establishing a reliable communication connection with the device to be upgraded, a stable communication foundation is laid for the subsequent upgrade process. The Kuanghong Gateway centrally manages update data to facilitate unified monitoring and management of the upgrade process. The device to be upgraded can intelligently determine whether it meets the direct upgrade conditions based on its own hardware resources, avoiding upgrade failures caused by insufficient hardware. By feeding back the judgment results, the Kuanghong Gateway can allocate resources more reasonably. For devices that do not meet the direct upgrade conditions, a collaborative upgrade method can be adopted to optimize resource utilization.

[0064] Based on the feedback from the device to be upgraded and its own capability assessment, the Kuanghong Gateway can flexibly decide whether to perform a collaborative upgrade, which improves the flexibility and adaptability of the upgrade process. Collaborative upgrades can solve the problem of insufficient hardware resources in the device to be upgraded and improve the success rate of the upgrade. After receiving the collaborative upgrade command, the device to be upgraded can quickly enter the upgrade mode and maintain real-time communication with the Kuanghong Gateway to ensure the collaborative and efficient upgrade process. By sending status information to the Kuanghong Gateway, the progress and status of the upgrade process can be monitored in real time, making it easier to discover and handle problems in a timely manner.

[0065] The Kuanghong Gateway can efficiently process upgrade data and ensure the accuracy and integrity of the data. Through a stable communication connection, the upgrade data is reliably transmitted to the device to be upgraded to ensure the smooth progress of the upgrade process. After the device to be upgraded receives and applies the upgrade data, it will feedback the upgrade results to the Kuanghong Gateway to ensure the successful completion of the upgrade process. By feeding back the upgrade results, problems that may arise during the upgrade process can be discovered and handled in a timely manner to ensure the stability and reliability of the system.

[0066] In a preferred embodiment of the present invention, the above step 11, the centralized control platform sends an update signal and an encrypted update package to the device to be upgraded through the underground industrial Internet, may include:

[0067] Ensure that the centralized control platform is correctly configured and has the ability to communicate with the underground industrial Internet. Create or select records of the equipment to be upgraded on the platform, including information such as equipment identification, type, and current version. Prepare an update package, which should contain new software versions, fixes, functional enhancements, etc., and be encrypted using a secure encryption algorithm to ensure the normal operation of the underground industrial Internet infrastructure (such as communication nodes, gateways, sensors, etc.). Check network connectivity to ensure that the centralized control platform can establish communication with the equipment to be upgraded underground through the network. Based on the records of the equipment to be upgraded, the centralized control platform generates an update signal containing information such as equipment identification, update version, and update type (such as emergency update, regular update).

[0068] To ensure the security of communication, the update signal is encrypted using an appropriate encryption algorithm. This includes symmetric encryption or asymmetric encryption, depending on the security requirements of the system. The encrypted update signal is sent to the network area where the device to be upgraded is located through the underground industrial Internet. This involves encapsulating the signal in a network protocol packet and routing and forwarding it through network nodes. Ensure that the update package has been encrypted using a secure encryption algorithm to protect its content from unauthorized access or tampering. The update package also includes checksum information (such as a hash value) to verify its integrity at the receiving end. If the update package is large, it needs to be split into multiple smaller data packets for more efficient transmission over the network. Each data packet should contain the necessary identification information so that the receiving end can correctly reassemble and parse the entire update package. The encrypted update package (or split data packet) is sent to the device to be upgraded through the underground industrial Internet. This also involves encapsulating the data packet in a network protocol packet and routing and forwarding it through network nodes. The centralized management and control platform interacts with the gateway or relay node in the underground network to ensure that the data packet can correctly reach the target device.

[0069] In a preferred embodiment of the present invention, in the above step 12, the Kuang Hong gateway receives and stores the update signal and the encrypted update package, and at the same time, establishes communication with the device to be upgraded, and the device to be upgraded evaluates whether its own hardware meets the direct upgrade conditions, and feeds back the judgment result to the Kuang Hong gateway, which may include:

[0070] Step 122, the Kuanghong gateway receives the update signal and encrypted update package from the centralized control platform and performs decryption verification to obtain the decrypted update package; the decrypted update package is stored in the local memory;

[0071] Step 123, the Kuanghong gateway uses the communication component of the device to establish a communication connection with the device to be upgraded;

[0072] Step 124, the device to be upgraded receives the communication request from the Kuanghong gateway, evaluates its own hardware resources, including storage space and processing power, to determine whether the conditions for direct upgrade are met, and obtains the evaluation result; if the evaluation result shows that direct upgrade is not supported, the device to be upgraded immediately sends a cancel upgrade signal to the management and control platform through the Kuanghong gateway, indicating that remote upgrade cannot be performed and manual upgrade is required to obtain a judgment result on whether direct upgrade is met;

[0073] Step 125, the device to be upgraded will feed back the judgment result of whether it meets the requirements for direct upgrade to the Kuanghong Gateway.

[0074] In an embodiment of the present invention, the Kuanghong gateway continuously monitors the network communication from the centralized control platform, and receives it immediately when a new update signal and encrypted update package are detected. During the receiving process, the gateway verifies the integrity of the data and the authenticity of the source to ensure that the data has not been tampered with and is indeed from the centralized control platform. The gateway decrypts the encrypted update package using a decryption algorithm (such as AES, RSA, etc.) pre-agreed with the centralized control platform. During the decryption process, the gateway checks whether the decryption is successful and whether the decrypted data conforms to the expected format. After decryption, the gateway will further verify the update package, such as ensuring the integrity and authenticity of the update package by means of a hash value. If the verification fails, the gateway will record an error log and send an error report to the centralized control platform. If both the decryption and verification are successful, the gateway will store the decrypted update package in a specified location of the local storage device (such as a hard disk, SSD, etc.). The gateway will record the storage path and related information of the update package.

[0075] Step 123, the gateway selects a suitable communication method (such as Wi-Fi, Bluetooth, wired connection, etc.) according to the type and communication protocol of the device to be upgraded. The gateway will configure the corresponding communication parameters, such as frequency, channel, baud rate, etc. The gateway uses the communication component of the device to initiate a communication request to the device to be upgraded. The request may include the gateway's identification, communication parameters, and information requesting to establish a connection. After receiving the communication request, the device to be upgraded responds and establishes a communication connection with the gateway. The two parties will perform some handshake operations to ensure the stability and reliability of the connection. The gateway will record the connection status and information with the device to be upgraded.

[0076] Step 124, the device to be upgraded continuously listens for communication requests from the Kuanghong Gateway. When a request is received, the device will parse the request content and prepare for subsequent operations. The device will check its own storage space to ensure that there is sufficient capacity to store and decompress the update package. If the storage space is insufficient, the device will record an error log and prepare to send a signal to cancel the upgrade. The device will evaluate its own processing capabilities, including CPU speed, memory size, etc., to ensure that it can process the instructions and data in the update package. If the processing power is insufficient, the device will also record an error log and prepare to send a signal to cancel the upgrade. If the device determines that its own hardware resources do not meet the conditions for direct upgrade, it will send a signal to cancel the upgrade to the centralized management and control platform through the Kuanghong Gateway. The signal contains the device's identification, error code or description information so that the centralized management and control platform can understand the reason for the upgrade failure.

[0077] Step 124, the Kuanghong Gateway sends a communication request to the mining sensor, asking whether it supports direct upgrade. After receiving the request, the mining sensor checks its own storage space and processing power. It is found that the storage space is sufficient and the processing power meets the requirements, so it is determined that direct upgrade is supported.

[0078] Step 125: The device to be upgraded will feed back the judgment result of whether it meets the direct upgrade requirement to the Kuang-Hong Gateway. The device to be upgraded will generate a judgment result indicating whether it meets the direct upgrade requirement based on the evaluation result of its own hardware resources. The device sends the judgment result to the Kuang-Hong Gateway through the established communication connection. During the sending process, the device will ensure the integrity and authenticity of the data to prevent the data from being tampered with during transmission. After receiving the feedback data from the device to be upgraded, the Kuang-Hong Gateway will parse and process it. Based on the judgment result, the gateway will decide on subsequent operations, such as continuing the upgrade process or sending a cancellation upgrade signal to the centralized control platform.

[0079] Assume that the Kuanghong Gateway needs to perform a software update for a mining sensor. The centralized control platform sends an encrypted update package containing the new software version to the Kuanghong Gateway. After receiving the update package, the Kuanghong Gateway uses the AES algorithm to decrypt it and verifies the integrity of the update package through checksum. After successful decryption and verification, the gateway stores the update package in the / updates directory of the local hard disk. The Kuanghong Gateway establishes a communication connection with the mining sensor via Wi-Fi. Both parties perform a handshake operation to ensure the stability and reliability of the connection. The Kuanghong Gateway sends a communication request to the mining sensor, asking whether it supports direct upgrade. After receiving the request, the mining sensor checks its own storage space and processing power. It is found that the storage space is sufficient and the processing power meets the requirements, so it is judged that direct upgrade is supported. The mining sensor sends the judgment result indicating support for direct upgrade back to the Kuanghong Gateway via Wi-Fi. After receiving the result, the Kuanghong Gateway parses and confirms that the sensor supports direct upgrade.

[0080] The Kuanghong Gateway centrally receives and stores update signals and encrypted update packages from the centralized control platform, avoiding the need for each device to be upgraded to communicate with the control platform individually, thereby reducing network burden and communication time. Decryption verification and local storage allow update packages to be quickly accessed when needed, improving the response speed of updates. The use of encrypted update packages ensures the security of update content during transmission and prevents data from being stolen or tampered with. The decryption verification process ensures the integrity and authenticity of the update package and avoids the injection of malware. The device to be upgraded evaluates its own hardware resources before receiving the update, avoiding update failures due to insufficient resources, thereby saving time and network resources. Through the feedback mechanism, the Kuanghong Gateway can timely understand the status of the device to be upgraded and reasonably allocate and optimize resources. The process of evaluating hardware resources helps to identify potential problems, such as insufficient storage space or insufficient processing power, which may cause system crashes or instability during the update process. By sending a cancellation upgrade signal in a timely manner and taking a manual upgrade approach, system damage or data loss caused by forced updates can be avoided. The centralized control platform can obtain the evaluation results and upgrade status of the device to be upgraded through the Kuanghong Gateway, thereby realizing remote monitoring and management of the entire update process. This centralized management method simplifies the upgrade process, reduces manual intervention, and improves management efficiency. By evaluating hardware resources, the device to be upgraded can determine whether it supports the new software version, thus avoiding system problems caused by version incompatibility. This compatibility check helps ensure that the updated system can run stably, improving user satisfaction and trust.

[0081] In a preferred embodiment of the present invention, in the above step 13, the Kuanghong Gateway determines whether to perform a collaborative upgrade based on the judgment result of the feedback from the device to be upgraded and its own capability evaluation, which may include:

[0082] Step 131, if the device to be upgraded does not meet the direct upgrade conditions, or the Mine-Hong Gateway supports collaborative upgrade, the Mine-Hong Gateway performs collaborative upgrade.

[0083] Step 132: If the device to be upgraded meets the direct upgrade conditions and the Kuang-Hong Gateway does not support collaborative upgrade, the Kuang-Hong Gateway directly sends the update package to the device to be upgraded for upgrading.

[0084] In an embodiment of the present invention, the Kuanghong gateway first receives a judgment result from the device to be upgraded on whether its hardware resources meet the direct upgrade conditions. The gateway parses the feedback data of the device to be upgraded to clarify whether it supports direct upgrade. If the device to be upgraded does not meet the direct upgrade conditions (such as insufficient storage space, insufficient processing power, etc.), the gateway records this information. The Kuanghong gateway checks whether it supports the collaborative upgrade function, which usually involves the software version, hardware configuration of the gateway, and whether it has the necessary upgrade logic and algorithm. If the device to be upgraded does not meet the direct upgrade conditions, or the gateway supports collaborative upgrade and believes that collaborative upgrade is more appropriate, the gateway will choose to perform collaborative upgrade. Collaborative upgrade involves the gateway first downloading and partially or completely decompressing the update package, and then transmitting data and upgrading guidance with the device to be upgraded through a specific communication protocol and method. According to the logic of collaborative upgrade, the gateway begins to communicate with the device to be upgraded and sends upgrade instructions and data. The gateway will send update data in batches to ensure that the device to be upgraded can gradually complete the upgrade, while monitoring the status and progress of the upgrade process. After the collaborative upgrade is completed, the gateway will send a verification instruction to the device to be upgraded to ensure that it has been successfully upgraded to the new version. The gateway records the upgrade results and may feed this information back to the centralized management and control platform.

[0085] Step 132, the Kuanghong gateway first receives the feedback data from the device to be upgraded. The gateway parses the feedback data and confirms that the hardware resources of the device to be upgraded meet the conditions for direct upgrade. The gateway checks whether it supports sending update packages directly to the device to be upgraded for upgrading, and confirms that it does not have or does not need the collaborative upgrade function. The gateway reads the decrypted update package from the local memory and prepares to send it to the device to be upgraded. The gateway sends the update package directly to the device to be upgraded through the established communication connection. During the sending process, the gateway will use block sending, compressed transmission and other methods to optimize the transmission efficiency. The gateway monitors the upgrade process of the device to be upgraded to ensure that the data is transmitted correctly and the upgrade proceeds smoothly. In case of abnormal conditions, the gateway will try to resend the data. After the device to be upgraded completes the upgrade, the gateway sends a verification instruction for confirmation. The gateway records the information of successful upgrade and feeds back the result to the centralized management and control platform.

[0086] Assume that some sensors support direct upgrades, while others require collaborative upgrades due to hardware limitations. After receiving the update signal and encrypted update package sent by the centralized control platform, the Kuanghong gateway performs decryption verification and stores it locally. The gateway establishes a communication connection with the sensor and sends a query command to obtain its hardware resource information. The sensor responds and returns information such as its storage space and processing power, indicating that it supports direct upgrades. The gateway confirms that it does not support collaborative upgrades (or determines that direct upgrades are more appropriate), so it directly sends the decrypted update package to the sensor. The sensor receives the update package and upgrades it, and after the upgrade is completed, it sends a confirmation message of successful upgrade to the gateway. For sensors that require collaborative upgrades, the gateway also first receives and decrypts the verification update package. After establishing communication with the sensor, it obtains its hardware resource information and finds that it does not meet the direct upgrade conditions (such as insufficient storage space). The gateway checks that it supports the collaborative upgrade function, so it decides to adopt the collaborative upgrade method. The gateway begins to send update data to the sensor in batches and guides it to upgrade step by step. During the collaborative upgrade process, the gateway continuously monitors the status and progress of the sensor to ensure that the upgrade is carried out smoothly. After the upgrade is completed, the gateway sends a verification command for confirmation and records the upgrade results.

[0087] When the device to be upgraded does not meet the direct upgrade conditions, collaborative upgrade provides a flexible solution so that even hardware-constrained devices can be upgraded smoothly. The collaborative upgrade function supported by the Kuanghong gateway expands the application scenarios of the upgrade, allowing more types of devices to be connected and upgraded. During the collaborative upgrade process, the Kuanghong gateway can intelligently allocate and schedule resources, such as sending update data in batches, reducing the occupation of network bandwidth and storage space of the device to be upgraded. Through the collaborative processing of the gateway, the load of the device to be upgraded during the upgrade process can be reduced and its operating efficiency can be improved. Collaborative upgrade allows the gateway to monitor and manage the upgrade process of the device to be upgraded in more detail, and promptly discover and handle abnormal situations during the upgrade. The gateway can provide necessary upgrade guidance and support to ensure the smooth progress of the upgrade process and reduce the risk of upgrade failure. Collaborative upgrade enables the Kuanghong gateway to be compatible with more devices to be upgraded of different models and different hardware configurations, improving the overall compatibility of the system. This helps to build a more unified and standardized Kuanghong ecosystem and promote interconnection and collaboration between devices.

[0088] When the device to be upgraded meets the direct upgrade conditions, the Kuanghong Gateway directly sends the update package for upgrade, eliminating the complex process of collaborative upgrade and improving the upgrade efficiency. Direct upgrade reduces the intermediate links, making the upgrade process simpler and faster. Direct upgrade does not require additional collaborative processing resources, reducing resource consumption and costs during the upgrade process. For large-scale equipment upgrades, direct upgrades can reduce the time and labor costs required for upgrades. Direct upgrades are usually faster than collaborative upgrades because they eliminate multiple communications and data transmission processes between the gateway and the device to be upgraded. Direct upgrades reduce the time users have to wait for the upgrade to complete and improve user experience. Users can enjoy the functional improvements and performance improvements brought by the new version more quickly.

[0089] In a preferred embodiment of the present invention, in the above step 14, if a collaborative upgrade is performed, the device to be upgraded receives a collaborative upgrade command, enters an upgrade mode, and sends status information to the Kuanghong gateway, which may include:

[0090] Step 141, if collaborative upgrading is performed, the Kuanghong gateway sends a collaborative upgrading command to the device to be upgraded, including the upgrading mode, upgrading steps, and data receiving method;

[0091] Step 142, the device to be upgraded receives the collaborative upgrade command, enters the upgrade mode according to the instruction in the command, and performs corresponding preparations, including backing up the current system and releasing upgrade space;

[0092] Step 143, after the upgrade device completes the preparation work, it sends status information to the Kuanghong gateway.

[0093] In an embodiment of the present invention, the Kuanghong gateway constructs a collaborative upgrade command based on the model of the device to be upgraded, the current system version, and the target upgrade version. The command contains key information such as upgrade mode (such as online upgrade, offline upgrade, etc.), upgrade steps (such as downloading update packages, decompression, installation, etc.), and data receiving methods (such as packet transmission, breakpoint resumption, etc.). To ensure the security and integrity of the command, the Kuanghong gateway encrypts the collaborative upgrade command and attaches a digital signature. This prevents the command from being tampered with or forged during transmission. The Kuanghong gateway sends the encrypted collaborative upgrade command to the device to be upgraded through an established communication connection (such as a wireless network, wired network, Bluetooth, etc.). During the sending process, the gateway will use a reliable transmission protocol, such as TCP, to ensure the accurate delivery of the command.

[0094] Step 142, after the device to be upgraded receives the collaborative upgrade command sent by the Kuanghong gateway, it first decrypts and verifies the digital signature. If the decryption is successful and the digital signature verification is passed, the command continues to be processed; otherwise, the command is discarded and an error is reported. The device to be upgraded parses the collaborative upgrade command and extracts key information such as the upgrade mode, upgrade steps, and data receiving method. According to the instructions in the command, the device to be upgraded enters a specific upgrade mode. For example, if it is in online upgrade mode, the device will disconnect from other devices and focus on the upgrade process. The device to be upgraded begins to perform pre-upgrade preparations. This may include backing up the current system (such as saving configuration files, data, etc.), and freeing up enough upgrade space (such as clearing caches, deleting unnecessary files, etc.).

[0095] Step 143, after the device to be upgraded completes the preparation work, a status message is constructed to inform the Kuanghong Gateway that it is ready for upgrading. The status message includes the current status of the device (such as the system has been backed up, the space has been released, etc.), the upgrade progress (such as 0% means the beginning), and any error or warning information. The device to be upgraded sends the status information to the Kuanghong Gateway through the established communication connection. During the sending process, the device will use the same transmission protocol as the receiving command to ensure the accurate delivery of the information.

[0096] Assume that the gateway constructs a collaborative upgrade command based on the sensor model and current system version, which includes online upgrade mode, detailed upgrade steps (such as downloading update packages, verifying integrity, decompressing, installing, etc.), and packet transmission data receiving method. The gateway encrypts the command and attaches a digital signature, and then sends it to the sensor via the wireless network. After receiving the command, the sensor first decrypts and verifies the signature. After the verification is passed, the sensor parses the command and extracts key information. According to the instructions in the command, the sensor enters the online upgrade mode and disconnects from other devices. The sensor begins to perform preparations, including backing up the current system configuration and data, and clearing the cache to free up upgrade space. After the preparations are completed, the sensor constructs a status message containing its current status (such as "System backed up, XXMB space freed"), upgrade progress (0%), and no errors or warnings. The sensor sends the status information to the Kuanghong gateway via the wireless network to inform it that it is ready for the next upgrade operation.

[0097] The collaborative upgrade command sent by the Kuanghong Gateway contains detailed upgrade modes, upgrade steps, and data receiving methods, providing clear upgrade guidance for the devices to be upgraded. This ensures the standardization and consistency of the upgrade process and reduces upgrade errors caused by unclear information. By specifying the upgrade mode and steps, the Kuanghong Gateway can more accurately control the upgrade process, including the timing, method, and rhythm of the upgrade. This helps to avoid potential risks in the upgrade process, such as data loss, system crashes, etc. The clear specification of data receiving methods (such as packet transmission, breakpoint resumption, etc.) helps to optimize the data transmission process and improve transmission efficiency and reliability. This can reduce upgrade failures or delays caused by data transmission problems.

[0098] After receiving the collaborative upgrade command, the device to be upgraded enters the upgrade mode according to the instructions in the command, and performs preparations such as backing up the current system and releasing upgrade space. This ensures the security and integrity of the data during the upgrade process, and can restore to the state before the upgrade even if the upgrade fails or is interrupted. By releasing the upgrade space in advance, the device to be upgraded can receive and install the update package more quickly, improving the upgrade efficiency. Before entering the upgrade mode, the device to be upgraded will disconnect from other devices and focus on the upgrade process. This helps to avoid system instability or crashes caused by external interference during the upgrade process. By sending status information, the device to be upgraded enhances the transparency of the upgrade, allowing users or administrators to have a clearer understanding of the upgrade process and progress, which helps reduce users' doubts and concerns about the upgrade process and improves user satisfaction. If a problem or failure occurs during the upgrade process, the Kuanghong Gateway can quickly locate the problem through the received status information. This helps to take effective troubleshooting and repair measures in a timely manner to reduce losses and impacts during the upgrade process.

[0099] In a preferred embodiment of the present invention, in the above step 15, the Kuanghong gateway starts the collaborative upgrade program according to the status information of the device to be upgraded to process the upgrade data and transmit the upgrade data to the device to be upgraded, which may include:

[0100] Step 151, the collaborative upgrade program analyzes the current system status of the device to be upgraded, including hardware configuration, software version, installed applications and versions;

[0101] Step 152, according to the current system status of the device to be upgraded, the collaborative upgrade program processes the update package, including decompression, reorganization, and configuration adjustment, to generate upgrade data matching the device to be upgraded;

[0102] Step 153, the Kuanghong gateway transmits the upgrade data to the device to be upgraded through the established communication connection.

[0103] In an embodiment of the present invention, the Kuanghong gateway first receives status information from the device to be upgraded, which includes the current system status of the device, such as hardware configuration, software version, installed applications and their versions, etc. The collaborative upgrade program parses the received status information and extracts key system status data. The program analyzes the hardware configuration of the device to be upgraded, including processor model, memory size, storage space, etc., to determine the compatibility and optimization strategy of the upgrade data. The program checks the current software version of the device to be upgraded, compares it with the target upgrade version, and determines the components and modules that need to be upgraded. The program identifies the applications and their versions installed on the device to be upgraded, and checks whether there is any application data that needs to be retained or updated. According to the current system status of the device to be upgraded, the collaborative upgrade program selects a suitable update package from the repository. The program decompresses the update package and extracts the upgrade files and data therein. According to the hardware configuration and software version of the device to be upgraded, the program reorganizes the decompressed upgrade data to ensure its compatibility with the device.

[0104] The program adjusts the configuration files in the upgrade data according to the specific needs of the device to be upgraded, such as network settings, application permissions, etc. After the above processing, the program generates upgrade data that fully matches the device to be upgraded. A stable communication connection is established between the Kuanghong gateway and the device to be upgraded, such as through a wireless network, wired network or Bluetooth. The gateway transmits the processed upgrade data to the device to be upgraded through the established communication connection. During the transmission process, technologies such as packet transmission and breakpoint resumption may be used to ensure the reliability and efficiency of data transmission. After the transmission is completed, the gateway sends a confirmation message to the device to be upgraded to inform it that all the upgrade data has been sent.

[0105] Assume that the Kuanghong gateway receives status information sent by the intelligent monitoring device, including its hardware configuration (such as processor model, memory size), current software version (such as V1.0.0), and installed applications (such as video monitoring application V1.1). The collaborative upgrade program selects an update package (such as V2.0.0) suitable for it from the repository based on the current system status of the intelligent monitoring device. The program decompresses the update package, extracts the upgrade file, and reorganizes the upgrade data according to the hardware configuration of the device. The program also adjusts the configuration files in the upgrade data to ensure that they match the network environment and application permissions of the device. A wireless network connection is established between the Kuanghong gateway and the intelligent monitoring device. The gateway transmits the processed upgrade data to the intelligent monitoring device in packets via the wireless network.

[0106] During the transmission process, the gateway ensures that each data packet is sent successfully and sends a confirmation message to the device after the transmission is completed.

[0107] By analyzing the hardware configuration, software version, and installed applications and versions of the device to be upgraded in detail, the collaborative upgrade program can accurately identify the upgrade requirements of the device, avoid unnecessary upgrade operations, and reduce resource waste. In-depth analysis of the hardware configuration ensures that the upgrade data is highly compatible with the device, reducing upgrade failures or system instability caused by hardware mismatch. Understanding the current software version and installed applications helps the collaborative upgrade program to formulate more reasonable upgrade strategies, such as prioritizing the upgrade of key components and retaining user data. Through decompression, reorganization, and configuration adjustment, the collaborative upgrade program can generate upgrade data that fully matches the device to be upgraded to ensure the smooth progress of the upgrade process. The processed upgrade data is more streamlined and efficient, reducing the time for data transmission and installation and improving the upgrade efficiency. Adjustment of the configuration file ensures the stability of the system after the upgrade and reduces system crashes or functional abnormalities caused by configuration errors. Through the established stable communication connection, the Kuanghong Gateway can safely and reliably transmit the upgrade data to the device to be upgraded, avoiding loss or tampering during data transmission. Supporting multiple communication methods (such as wireless networks, wired networks, etc.) makes the upgrade process more flexible and convenient, and adapts to the upgrade needs in different scenarios. During the data transmission process, the Kuanghong Gateway can monitor the upgrade progress in real time and provide timely feedback to users, enhancing the user's controllability and transparency of the upgrade process.

[0108] In another preferred embodiment of the present invention, the above step 152, according to the current system state of the device to be upgraded, the collaborative upgrade program processes the update package, including decompression, reorganization, and configuration adjustment, to generate upgrade data matching the device to be upgraded, which may include:

[0109] Step 1522, analyzing the current system status of the device to be upgraded, including hardware configuration, software version, installed applications, version information and system configuration parameters;

[0110] Step 1523, according to the current system status of the device to be upgraded, the collaborative upgrade program accesses the new version of the software package in the remote server, and compares it with the software version currently installed in the device to be upgraded, and identifies the differences between the new and old versions, including newly added files, modified file contents, and deleted files;

[0111] Step 1524, based on the differences between the old and new versions, extract the update content from the new version software package, decompress and reorganize it, synthesize the update content with the current system status of the device to be upgraded, and generate upgrade data matching the device to be upgraded.

[0112] In an embodiment of the present invention, the collaborative upgrade program first receives the system status information sent by the device to be upgraded through the Kuanghong gateway, which includes hardware configuration (such as CPU model, memory size, storage space, etc.), software version (including operating system version and application software version), installed application list and its version information, and system configuration parameters (such as network settings, security policies, etc.). The program parses the received system status information, converts it into a format recognizable by the program, and stores it in a local or remote database. The program analyzes the parsed system status information to evaluate the hardware compatibility of the device to be upgraded, the update requirements of the software version, and the rationality of the system configuration parameters.

[0113] Step 1523, the collaborative upgrade program accesses the storage location of the new version software package in the remote server according to the software version information of the device to be upgraded. The program downloads the new version software package from the remote server, which is a compressed file containing all the files and configurations of the new version. The program compares the new and old versions of the software package file by file to identify the newly added files, modified file contents, and deleted files. This process may involve the comparison of information such as file size, modification time, hash value, etc. The program records the comparison results and forms a difference report, including a list of files that need to be updated, the update type of each file (new, modified, deleted), and the specific update content.

[0114] Step 1524, based on the difference report, the program extracts the file content that needs to be updated from the new version software package, which includes newly added files, modified files, and file identifiers that need to be deleted. The program decompresses the extracted update content and reorganizes it according to the system structure of the device to be upgraded to ensure that the update content can be correctly replaced or added to the existing system. The program synthesizes the reorganized update content with the current system status information of the device to be upgraded to generate an upgrade data packet that fully matches the device to be upgraded. This data packet may contain content from multiple aspects such as operating system updates, application software updates, and system configuration adjustments. After generating the upgrade data packet, the program verifies it to ensure the integrity and correctness of the data. Then, the upgrade data packet is packaged into a format suitable for transmission, ready to be sent to the device to be upgraded through the Kuanghong gateway.

[0115] Assume that the device to be upgraded is a mining intelligent sensor. The current system status is: the operating system version is V1.0.0, the installed application is the data acquisition application V1.2.0, and the hardware configuration is a certain type of processor and 1GB memory. Now, it needs to be upgraded to the operating system version V2.0.0, the data acquisition application V2.0.0, and a new security configuration is added. The collaborative upgrade program receives the system status information of the intelligent sensor, including the operating system version V1.0.0, the data acquisition application V1.2.0, the hardware configuration information, and the current security configuration. The program accesses the remote server and downloads the new version software package of the operating system V2.0.0 and the data acquisition application V2.0.0. By comparison, the program finds that the new version of the operating system has added several system functions and optimized performance; the data acquisition application has added new data acquisition items and fixed known problems. At the same time, the new version also contains a new security configuration requirement. The program extracts the operating system update file, the data acquisition application update file, and the new security configuration file from the new version software package. These files are decompressed and reorganized to ensure that they can correctly replace or add to the existing system of the intelligent sensor. Finally, the program combines the reorganized files with the current system status information of the smart sensor to generate an upgrade data package that includes operating system updates, data acquisition application updates, and new security configurations.

[0116] Through a comprehensive analysis of the hardware configuration, software version, installed applications and version information, and system configuration parameters of the device to be upgraded, the collaborative upgrade program can accurately identify the upgrade requirements of the device to ensure the pertinence and effectiveness of the upgrade process. Detailed system status analysis helps the program determine the compatibility of the new version of the software package with the device to be upgraded, avoiding upgrade failures or system instability caused by hardware or software incompatibility. Knowing the specific system status of the device to be upgraded, the program can formulate a more reasonable upgrade strategy, such as upgrading key components first, upgrading in batches, etc., to minimize the impact of the upgrade on system operation. By comparing the differences between the new and old versions, the program can only extract the content that needs to be updated, rather than the entire software package, thereby reducing the amount of data transmission and improving upgrade efficiency. Accurately identifying the differences between the new and old versions can ensure that only necessary files are replaced or modified during the upgrade process, avoiding system anomalies caused by misoperation. Understanding the specific differences between the new and old versions helps to quickly roll back to the old version when the upgrade fails or problems occur, ensuring the stability and reliability of the system. By decompressing, reorganizing, and adjusting the configuration, generating upgrade data that fully matches the device to be upgraded can improve the success rate of the upgrade and reduce errors and failures during the upgrade process. The upgrade data is customized according to the system status of the device to be upgraded, which can more effectively utilize hardware resources, optimize system performance, and improve the operating efficiency of the device. During the upgrade process, the program can update and adjust the security policy according to the system configuration parameters, thereby enhancing the security of the system and preventing potential security threats.

[0117] In a preferred embodiment of the present invention, the above step 16, the device to be upgraded receives and applies the upgrade data, and at the same time, feeds back the upgrade result to the Kuanghong gateway, may include:

[0118] Step 161, the device to be upgraded applies the received upgrade data to its own system partition according to a predetermined upgrade process;

[0119] Step 162, during the process of upgrading the data application, the device to be upgraded sends a status update to the Kuanghong Gateway based on the key nodes, including the current upgrade progress, completed operations, and potential problems encountered;

[0120] Step 163, after upgrading the data, the device to be upgraded will conduct a self-check on the upgrade result and send feedback on the upgrade result to the Kuang-Hong Gateway, including whether the upgrade is successful, and whether there are any errors or warning messages; if the upgrade is successful, an upgrade success instruction will be sent to the Kuang-Hong Gateway; if the upgrade fails, the upgrade process will be re-entered.

[0121] In an embodiment of the present invention, the upgrade device receives an upgrade data packet through the Kuanghong gateway, which contains all files, configurations, and instructions related to the new version of the software. Before applying the upgrade data, the device will verify the integrity of the data packet to ensure that the data has not been tampered with or damaged. This is achieved through checksums and hash values. In order to prevent problems during the upgrade process, the device will first back up the current system status, including important files and configurations, so that it can be restored when necessary. According to the predetermined upgrade process, the device applies the upgrade data to its own system partition. This includes replacing old files, adding new files, updating configuration files, etc. After the upgrade data is applied, the device usually needs to be restarted to load the new version of the software.

[0122] Step 162, during the upgrade process, the device will predetermine a series of key nodes, such as data reception completed, data verification passed, system backup completed, upgrade data application started, upgrade data application completed, etc. When the device reaches each key node, it will send a status update to the central management system through the Kuanghong Gateway. These updates include the current upgrade progress, completed operations, and any potential problems or errors encountered. The device will adjust the upgrade process based on the instructions or feedback from the Kuanghong Gateway, such as pausing the upgrade, continuing the upgrade, rolling back to the old version, etc.

[0123] Step 163, after the upgrade is completed, the device will perform a series of self-check operations to verify whether the new version of the software is running normally, including checking system stability, functional integrity, performance, etc. Based on the self-check results, the device will generate an upgrade result report, detailing whether the upgrade is successful, whether there are errors or warnings, and follow-up actions to be taken. The device sends the upgrade result report to the central management system through the Kuanghong Gateway. If the upgrade is successful, an upgrade success instruction will also be sent; if the upgrade fails, the upgrade process will be re-entered or other recovery measures will be taken according to the instructions.

[0124] Suppose there is a smart sensor used in a mine that needs to upgrade its firmware version.

[0125] Receive upgrade data: The sensor receives the new version of the firmware data packet through the Kuanghong gateway.

[0126] Verify update data: The sensor verifies the integrity of the data packet to ensure it has not been corrupted or tampered with.

[0127] Back up the current system: The sensor backs up the current firmware version and configuration information.

[0128] Apply upgrade data: The sensor applies the new version of the firmware to its system partition according to the predetermined process. During the upgrade process, the sensor regularly sends status updates to the Kuanghong Gateway, such as "data reception completed", "data verification passed", "upgrade data application started", etc. After the upgrade is completed, the sensor performs a self-test to check the operation of the new version of the firmware. If the self-test passes, the sensor sends an upgrade success instruction and an upgrade result report to the Kuanghong Gateway; if the self-test fails, it re-enters the upgrade process according to the instructions.

[0129] Through the predetermined upgrade process and key node status updates, the upgrade process can be managed more efficiently, reducing unnecessary waiting and delays. Backup before the upgrade and self-check operations after the upgrade help ensure the stability of the system and reduce system failures or data loss caused by the upgrade. By receiving instructions and feedback on upgrade results through the Kuanghong Gateway, remote monitoring and control of the upgrade process can be achieved, improving the controllability and flexibility of the upgrade. By precisely controlling the transmission and application process of the upgrade data, network resources and computing resources can be used more reasonably and the upgrade cost can be reduced. Data verification and encrypted transmission during the upgrade process help ensure the security of the upgrade data and prevent malicious attacks or data leaks.

[0130] like Figure 2 As shown, an embodiment of the present invention further provides a multi-device application collaborative upgrade system based on the Mine Hong operating system, comprising:

[0131] A status analysis module, used to analyze the current system status of the device to be upgraded, including hardware configuration, software version, installed applications and version information, and system configuration parameters;

[0132] The version difference identification module is used to communicate with the remote server, obtain the new version of the software package, and compare it with the software version currently installed on the device to be upgraded, identify the differences between the new and old versions, including newly added files, modified file contents and files that need to be deleted, so as to obtain the identification result;

[0133] An update content processing module is used to extract the update content from the new version software package according to the identification result of the version difference identification module, decompress and reorganize it, and synthesize it with the current system state of the device to be upgraded;

[0134] An upgrade data synthesis module is used to synthesize the decompressed and reorganized update content with the system status of the device to be upgraded to generate upgrade data matching the device to be upgraded, including file replacement, content update, and configuration adjustment;

[0135] An upgrade data transmission module, used to transmit the upgrade data of the upgrade data synthesis module to the device to be upgraded through the established communication connection;

[0136] The upgrade result feedback module is used to receive the upgrade result feedback from the device to be upgraded, including whether the upgrade is successful, whether there is any error or warning information, and perform corresponding operations according to the feedback result, including sending an upgrade success instruction or re-entering the upgrade process.

[0137] It should be noted that the system is a system corresponding to the above method, and all implementation methods in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.

[0138] The embodiment of the present invention further provides a computing device, comprising: a processor, a memory storing a computer program, wherein when the computer program is executed by the processor, the method described above is executed. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.

[0139] The embodiment of the present invention also provides a computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the method described above. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.

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

Claims

1. A method for collaborative upgrading of multi-device applications based on the Kuanghong operating system, characterized in that: The method comprises: The centralized control platform sends update signals and encrypted update packages to the equipment to be upgraded through the underground industrial Internet; The Kuanghong Gateway receives and stores the update signal and encrypted update package. At the same time, it establishes communication with the device to be upgraded. The device to be upgraded evaluates whether its own hardware meets the direct upgrade conditions and feeds back the judgment result to the Kuanghong Gateway. The Kuanghong Gateway determines whether to perform a collaborative upgrade based on the feedback from the device to be upgraded and its own capability assessment; If a collaborative upgrade is performed, the device to be upgraded receives the collaborative upgrade command, enters the upgrade mode, and sends status information to the Kuanghong Gateway; The Kuanghong Gateway starts the collaborative upgrade program based on the status information of the device to be upgraded to process the upgrade data and transmit the upgrade data to the device to be upgraded; The device to be upgraded receives and applies the upgrade data, and at the same time, feeds back the upgrade results to the Kuanghong Gateway.

2. The method for collaboratively upgrading multi-device applications based on the Kuanghong operating system according to claim 1 is characterized in that: The Kuanghong Gateway receives and stores the update signal and encrypted update package. At the same time, it establishes communication with the device to be upgraded. The device to be upgraded evaluates whether its hardware meets the direct upgrade conditions and feeds back the judgment result to the Kuanghong Gateway, including: The Kuanghong Gateway receives the update signal and encrypted update package from the centralized control platform and performs decryption verification to obtain the decrypted update package; the decrypted update package is stored in the local storage; The Kuanghong Gateway uses the communication components of the device to establish a communication connection with the device to be upgraded; The device to be upgraded receives the communication request from the Kuang-Hong Gateway and evaluates its own hardware resources, including storage space and processing power, to determine whether the conditions for direct upgrade are met and obtain the evaluation result; if the evaluation result shows that direct upgrade is not supported, the device to be upgraded immediately sends a cancel upgrade signal to the management and control platform through the Kuang-Hong Gateway, indicating that remote upgrade cannot be performed and manual upgrade is required to obtain the judgment result of whether direct upgrade is met; The device to be upgraded will feed back the judgment result of whether it meets the direct upgrade requirements to the Kuanghong Gateway.

3. The method for collaboratively upgrading multi-device applications based on the Kuanghong operating system according to claim 2 is characterized in that: The Kuanghong Gateway determines whether to perform a collaborative upgrade based on the feedback from the device to be upgraded and its own capability assessment, including: If the device to be upgraded does not meet the direct upgrade conditions, or the Kuang-Hong Gateway supports collaborative upgrade, the Kuang-Hong Gateway will perform collaborative upgrade. If the device to be upgraded meets the direct upgrade conditions and the Kuang-Hong Gateway does not support collaborative upgrades, the Kuang-Hong Gateway will directly send the update package to the device to be upgraded for upgrade.

4. The method for collaboratively upgrading multi-device applications based on the Kuanghong operating system according to claim 3 is characterized in that: If a collaborative upgrade is performed, the device to be upgraded receives the collaborative upgrade command, enters the upgrade mode, and sends status information to the Kuanghong Gateway, including: If collaborative upgrading is performed, the Kuanghong Gateway sends a collaborative upgrading command to the device to be upgraded, including the upgrading mode, upgrading steps, and data receiving method; The device to be upgraded receives the collaborative upgrade command, enters the upgrade mode according to the instructions in the command, and performs corresponding preparations, including backing up the current system and releasing upgrade space; After the upgrade device completes the preparation work, it sends status information to the Kuanghong Gateway.

5. The method for collaboratively upgrading multi-device applications based on the Kuanghong operating system according to claim 4 is characterized in that: According to the status information of the device to be upgraded, the Kuanghong Gateway starts the collaborative upgrade program to process the upgrade data and transmit the upgrade data to the device to be upgraded, including: The collaborative upgrade program analyzes the current system status of the device to be upgraded, including hardware configuration, software version, installed applications and versions; According to the current system status of the device to be upgraded, the collaborative upgrade program processes the update package, including decompression, reorganization, and configuration adjustment, to generate upgrade data matching the device to be upgraded; The Kuanghong Gateway transmits the upgrade data to the device to be upgraded through the established communication connection.

6. The method for collaboratively upgrading multi-device applications based on the Kuanghong operating system according to claim 5 is characterized in that: According to the current system status of the device to be upgraded, the collaborative upgrade program processes the update package, including decompression, reorganization, and configuration adjustment, to generate upgrade data that matches the device to be upgraded, including: Analyze the current system status of the device to be upgraded, including hardware configuration, software version, installed applications, version information and system configuration parameters; According to the current system status of the device to be upgraded, the collaborative upgrade program accesses the new version of the software package in the remote server, and compares it with the software version currently installed on the device to be upgraded, and identifies the differences between the new and old versions, including newly added files, modified file contents, and deleted files; According to the difference between the old and new versions, the update content is extracted from the new version software package, decompressed and reorganized, and the update content is synthesized with the current system status of the device to be upgraded to generate upgrade data matching the device to be upgraded.

7. The method for collaboratively upgrading multi-device applications based on the Kuanghong operating system according to claim 6 is characterized in that: The device to be upgraded receives and applies the upgrade data, and at the same time, feeds back the upgrade results to the Kuanghong Gateway, including: The device to be upgraded applies the received upgrade data to its own system partition according to the predetermined upgrade process; During the process of upgrading data applications, the device to be upgraded sends status updates to the Kuanghong Gateway based on key nodes, including the current upgrade progress, completed operations, and potential problems encountered; After upgrading the data, the device to be upgraded will conduct a self-check on the upgrade result and send feedback on the upgrade result to the Kuang-Hong Gateway, including whether the upgrade is successful and whether there are any errors or warning messages. If the upgrade is successful, an upgrade success instruction will be sent to the Kuang-Hong Gateway. If the upgrade fails, the upgrade process will be re-entered.

8. A multi-device application collaborative upgrade system based on the Kuanghong operating system, the system implements the method as described in any one of claims 1 to 7, characterized in that: include: A status analysis module, used to analyze the current system status of the device to be upgraded, including hardware configuration, software version, installed applications and version information, and system configuration parameters; The version difference identification module is used to communicate with the remote server, obtain the new version software package, and compare it with the software version currently installed on the device to be upgraded, identify the differences between the new and old versions, including newly added files, modified file contents and files that need to be deleted, so as to obtain the identification result; An update content processing module is used to extract the update content from the new version software package according to the identification result of the version difference identification module, decompress and reorganize it, and synthesize it with the current system state of the device to be upgraded; An upgrade data synthesis module is used to synthesize the decompressed and reorganized update content with the system status of the device to be upgraded to generate upgrade data matching the device to be upgraded, including file replacement, content update, and configuration adjustment; An upgrade data transmission module, used to transmit the upgrade data of the upgrade data synthesis module to the device to be upgraded through the established communication connection; The upgrade result feedback module is used to receive the upgrade result feedback from the device to be upgraded, including whether the upgrade is successful, whether there is an error or warning information, and perform corresponding operations according to the feedback result, including sending an upgrade success instruction or re-entering the upgrade process.

9. A computing device, characterized in that include: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method as claimed in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program, which, when executed by a processor, implements the method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Method and system for over-the-air upgrading of local area network equipment

    CN120034851A