A device upgrading method, apparatus and storage medium

By using a device cascading transmission scheme, the problems of transmission redundancy and low efficiency of audio and video acquisition equipment during cloud upgrades are solved, achieving efficient utilization of bandwidth resources and efficient upgrades for large-scale equipment upgrades.

CN122160428APending Publication Date: 2026-06-05ZHEJIANG DAHUA TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
ZHEJIANG DAHUA TECH CO LTD
Filing Date
2026-01-21
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

Existing cloud upgrade solutions for audio and video acquisition equipment suffer from transmission redundancy and inefficiency in large-scale deployments and complex network environments, resulting in wasted external network bandwidth resources and low upgrade efficiency in wireless network environments.

Method used

A device cascading transmission scheme is adopted. According to the multi-level relationship composed of multiple audio and video acquisition devices, the upgrade package is downloaded to each level of devices in sequence. The first-level device obtains the upgrade package from the audio and video storage management device or the cloud, and forwards it through the communication connection between devices.

Benefits of technology

It effectively reduces the consumption of external network bandwidth resources during the upgrade process, adapts to the transmission requirements under complex network topologies, and improves the efficiency of large-scale equipment upgrades.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122160428A_ABST
    Figure CN122160428A_ABST
Patent Text Reader

Abstract

The application discloses a device upgrading method, device and storage medium, the method comprises the steps that a plurality of audio and video acquisition devices needing batch upgrading are determined; and a device interconnection transmission scheme is used to upgrade the plurality of audio and video acquisition devices; wherein the device interconnection transmission scheme comprises sequentially downloading a first upgrade package to audio and video acquisition devices of each level according to a multi-level relationship formed by the plurality of audio and video acquisition devices, the audio and video acquisition device of the first level is obtained from the audio and video storage management device or the cloud to download the first upgrade package, the audio and video acquisition device of the last level forwards the first upgrade package received to the audio and video acquisition device of the next level, and the audio and video acquisition devices of adjacent levels are in communication connection. Through the above manner, the application can effectively reduce the bandwidth consumption in the upgrading process and improve the upgrading efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, specifically to a device upgrade method, apparatus, and storage medium. Background Technology

[0002] Audio and video capture devices, such as network video capture terminals (IPCs), are widely used in many scenarios such as parks and buildings. To ensure the functional iteration and stable operation of these devices, cloud-based remote upgrade technology has become a core support.

[0003] While current IPC cloud upgrade solutions offer remote management capabilities, they exhibit significant drawbacks in large-scale deployments and complex network environments. For instance, IPCs managed by the same audio / video storage management device, such as a network video recorder (NVR), must independently download the same upgrade package repeatedly from the cloud, resulting in transmission redundancy. This not only consumes substantial amounts of customer external network bandwidth and strains core business resources such as video transmission, but also leads to inefficient upgrades due to bandwidth fluctuations in wireless network environments. Therefore, there is an urgent need to optimize the upgrade mechanism to address resource waste and efficiency issues. Summary of the Invention

[0004] To address the aforementioned technical problems, this application provides a device upgrade method, apparatus, and storage medium to effectively reduce bandwidth consumption during the upgrade process and improve upgrade efficiency.

[0005] According to one embodiment of this application, a device upgrade method is provided, applied to an audio / video storage management device, including: Identify multiple audio and video capture devices that require batch upgrades; The multiple audio and video acquisition devices are upgraded using an inter-device cascading transmission scheme; The device cascading transmission scheme includes downloading the first upgrade package to each level of audio and video acquisition devices in sequence according to the multi-level relationship of the multiple audio and video acquisition devices. The first-level audio and video acquisition device obtains the first upgrade package from the audio and video storage management device or the cloud. The next-level audio and video acquisition device forwards the received first upgrade package to the next-level audio and video acquisition device. The audio and video acquisition devices at adjacent levels are connected in communication.

[0006] According to one embodiment of this application, a device upgrade method is provided, applied to an audio / video acquisition device, including: In the case where multiple audio and video acquisition devices need to be upgraded in batches, the audio and video acquisition device at the current level receives the first upgrade package. The multiple audio and video acquisition devices form a multi-level relationship, and the audio and video acquisition devices at adjacent levels are connected in communication. The first-level audio and video acquisition device downloads the first upgrade package from the audio and video storage management device or the cloud, and the audio and video acquisition devices at other levels receive the first upgrade package from the audio and video acquisition device at the next higher level. The first upgrade package is sent to the next-level audio / video capture device, and... Upgrade yourself according to the first upgrade package.

[0007] To solve the above-mentioned technical problems, one technical solution adopted in this application is to provide a device upgrade apparatus, including a memory and a processor, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, it is used to implement the device upgrade method in the above-mentioned technical solution.

[0008] To solve the above-mentioned technical problems, one technical solution adopted in this application is to provide a computer-readable storage medium for storing a computer program, which, when executed by a processor, is used to implement the device upgrade method in the above-mentioned technical solution.

[0009] Through the above scheme, this application identifies multiple audio and video acquisition devices that need to be upgraded in batches and adopts an inter-device cascading transmission scheme to upgrade these devices. Specifically, according to the multi-level relationship of the multiple audio and video acquisition devices, the first upgrade package is downloaded sequentially to each level of the audio and video acquisition devices. The first-level audio and video acquisition device downloads the first upgrade package from the audio and video storage management device or the cloud. The next-level audio and video acquisition device forwards the received first upgrade package to the next-level audio and video acquisition device, and adjacent levels of audio and video acquisition devices are connected. In this way, after the first-level audio and video acquisition device obtains the first upgrade package from the audio and video storage management device or the cloud in a single transaction, the internal network cascading forwarding relies on the communication connection between the multi-level devices. This avoids transmission redundancy caused by multiple devices repeatedly downloading the same upgrade package from the cloud, effectively reducing the ineffective consumption of external network bandwidth resources during the upgrade process. It also adapts to the transmission requirements under complex network topologies, reducing the inefficiency caused by direct external network transmission in wireless network environments, thereby improving the efficiency of large-scale device upgrades. Attached Figure Description

[0010] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Wherein: Figure 1 This is a flowchart illustrating an embodiment of the device upgrade method provided in this application; Figure 2 This is a flowchart illustrating another embodiment of the device upgrade method provided in this application; Figure 3 This is a flowchart illustrating a specific embodiment of the device upgrade method provided in this application; Figure 4 This is a timing diagram of a main equipment upgrade solution provided in this application; Figure 5 This is a timing diagram of an alternative equipment upgrade scheme provided in this application; Figure 6 This is a schematic diagram of the architecture of a device upgrade system provided in this application; Figure 7 This is a schematic diagram of the structure of an embodiment of the equipment upgrade device provided in this application; Figure 8 This is a schematic diagram of an embodiment of the computer-readable storage medium provided in this application. Detailed Implementation

[0011] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It should be particularly noted that the following embodiments are for illustrative purposes only and do not limit the scope of the application. Similarly, the following embodiments are only some, not all, embodiments of the present application, and all other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of the present application.

[0012] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0013] It should be noted that the terms "first," "second," etc., used in this application are for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined with "first," "second," etc., may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0014] Audio and video storage management devices are the data hub of audio and video systems. They are mainly used for centralized storage, classification management, access control, and retrieval of digital audio and video data output by audio and video acquisition devices. They have the capabilities of large-capacity storage, data backup, and multi-device collaborative management, including network video recorders (NVRs), dedicated audio and video storage servers, etc.

[0015] Audio and video acquisition equipment is the source terminal of the audio and video data link. It is used to capture audio and video signals in the physical scene and convert them into digital signals that can be transmitted and processed. It includes network video acquisition terminals (IPC), integrated audio and video acquisition units, etc.

[0016] The traditional cloud upgrade method for audio and video acquisition equipment involves connecting to a cloud server via a network, obtaining the upgrade package from the cloud, and completing the update. However, the traditional cloud upgrade method has many problems. For example, when external network bandwidth resources are insufficient, large-scale concurrent downloads of upgrade packages by a large number of devices can easily cause link congestion. During transmission, there is a lack of local caching and sharing mechanisms for upgrade packages, and devices of the same model need to repeatedly download the same upgrade package from the cloud, resulting in transmission redundancy and resource waste.

[0017] This application provides a device upgrade method. By identifying multiple audio and video acquisition devices that need to be upgraded in batches, a device cascading transmission scheme is used to upgrade the multiple audio and video acquisition devices. Specifically, according to the multi-level relationship of the multiple audio and video acquisition devices, the first upgrade package is downloaded sequentially to the audio and video acquisition devices at each level. The first-level audio and video acquisition device obtains the first upgrade package from the audio and video storage management device or the cloud. The audio and video acquisition device at the next higher level forwards the received first upgrade package to the audio and video acquisition device at the next lower level. The audio and video acquisition devices at adjacent levels are connected to each other. In this way, after the first-level audio and video acquisition device obtains the first upgrade package from the audio and video storage management device or the cloud in a single transaction, it relies on the communication connection between the multi-level devices for intranet cascading forwarding. This can avoid the transmission redundancy of multiple devices repeatedly downloading the same upgrade package from the cloud, thereby effectively reducing the ineffective consumption of external network bandwidth resources during the upgrade process. It can also adapt to the transmission requirements under complex network topologies, reduce the inefficiency caused by direct external network transmission in wireless network environments, and thus improve the efficiency of large-scale device upgrades.

[0018] Please see Figure 1 , Figure 1 This is a flowchart illustrating an embodiment of the device upgrade method provided in this application. It should be noted that if substantially the same result is achieved, this embodiment does not necessarily reflect that outcome. Figure 1 The illustrated process sequence is limited. For example... Figure 1 As shown, this embodiment includes: S110: Identify multiple audio and video capture devices that require batch upgrades.

[0019] In one embodiment, the audio / video storage management device determines multiple audio / video acquisition devices that need to be upgraded in batches based on upgrade instructions issued from the cloud. For example, it receives batch upgrade instructions from the cloud, sends batch upgrade requests to each audio / video acquisition device corresponding to the batch upgrade instructions, receives responses from the audio / video acquisition devices to the batch upgrade requests, and identifies the audio / video acquisition devices corresponding to the responses as those requiring batch upgrades.

[0020] In one embodiment, if the cache area of ​​the audio / video storage management device contains at least one upgrade package downloaded by a historical audio / video acquisition device, after the audio / video storage management device sends a batch upgrade request to each audio / video acquisition device corresponding to the batch upgrade instruction, it determines whether the upgrade package in the cache area of ​​the audio / video storage management device can be directly sent to the audio / video acquisition device based on whether the upgrade package corresponding to the upgrade request exists in the cache area of ​​the audio / video storage management device. For example, upon receiving an upgrade request from the target audio / video acquisition device, the cache area of ​​the audio / video storage management device is searched to see if a second upgrade package corresponding to the upgrade request is cached. In one embodiment, in response to the cache area containing a second upgrade package, the cached second upgrade package is sent to the target audio / video acquisition device, wherein the cache area contains at least one upgrade package downloaded by a historical audio / video acquisition device. In another embodiment, in response to the cache area not containing a second upgrade package, the second upgrade package is downloaded from the cloud, cached in the cache area, and then sent to the target audio / video acquisition device.

[0021] In one embodiment, before searching the cache area of ​​the audio and video storage management device to see if there is a second upgrade package corresponding to the upgrade request, the audio and video storage management device may also parse the upgrade request sent by the audio and video acquisition device, and determine whether it is necessary to search the cache area of ​​the audio and video storage management device to see if there is a second upgrade package corresponding to the upgrade request.

[0022] In one example, the upgrade request is parsed. If the upgrade request is successfully parsed and sufficient remaining cache space in the cache area is detected to cache the second upgrade package, a search is performed in the cache area of ​​the audio / video storage management device to check if the second upgrade package corresponding to the upgrade request is cached. If the upgrade request fails to be parsed, or insufficient remaining cache space in the cache area is detected to cache the second upgrade package, the target audio / video capture device is determined to be the one requiring upgrade. If multiple audio / video capture devices require the same upgrade package, the process of determining which multiple audio / video capture devices need to be upgraded in batches is performed.

[0023] S120: Upgrades multiple audio and video acquisition devices using an inter-device cascading transmission scheme.

[0024] The inter-device cascading transmission scheme includes a multi-level relationship composed of multiple audio and video acquisition devices. The first upgrade package is downloaded sequentially to the audio and video acquisition devices at each level. The first-level audio and video acquisition device obtains the first upgrade package from the audio and video storage management device or the cloud. The audio and video acquisition device at the next higher level forwards the received first upgrade package to the audio and video acquisition device at the next lower level. The audio and video acquisition devices at adjacent levels are connected for communication.

[0025] A multi-level relationship refers to dividing a large number of audio and video capture devices into different levels based on network topology, data flow paths, functional priorities, or centralized management requirements. Each level can contain one or more audio and video capture devices. Specifically, the audio and video capture device closest to the audio and video storage and management device can be defined as the first level, or the audio and video capture device responsible for core scenarios can be defined as the first level, or any audio and video capture device can be defined as the first level according to requirements; there are no specific limitations. In a multi-level relationship composed of multiple audio and video capture devices, the upper and lower levels are relative concepts formed based on network topology, data flow paths, or the transmission of management authority. For example, the device of the same model with the shortest interval between sending upgrade requests can be considered the upper and lower level audio and video capture devices, or the lower level of an audio and video capture device refers to the audio and video capture device that is closest in the network topology order.

[0026] In one embodiment, if the first upgrade package exists in the cache area of ​​the audio / video storage management device, the first-level audio / video acquisition device can download the first upgrade package from the audio / video storage management device. If the first upgrade package is not stored in the cache area of ​​the audio / video storage management device, the first-level audio / video acquisition device can download the upgrade package from the cloud.

[0027] In one embodiment, the audio and video storage management device selects the first-level audio and video acquisition device from multiple audio and video acquisition devices, and instructs the first-level audio and video acquisition device to download a first upgrade package to trigger an inter-device cascading transmission scheme. When the audio and video acquisition devices at each level receive the first upgrade package, they use the first upgrade package to perform an upgrade and forward the first upgrade package to the corresponding audio and video acquisition device at the next level.

[0028] In one embodiment, the audio and video storage management device sends a download upgrade package request and the address of the next-level audio and video acquisition device to the first-level audio and video acquisition device, so that the first-level audio and video acquisition device responds to the download upgrade package request, downloads the first upgrade package from the cloud through the proxy port of the audio and video storage management device, and forwards the first upgrade package to the corresponding audio and video acquisition device at the next level based on the address of the next-level audio and video acquisition device.

[0029] In one embodiment, during inter-device cascading transmission, the audio / video acquisition device, after confirming that the next-level audio / video acquisition device has successfully received the upgrade package, begins to upgrade the device using the upgrade package. After the upgrade is completed, the upgrade package can be deleted from the local cache. For example, when each level of audio / video acquisition device receives the first upgrade package, it stores the first upgrade package in its local cache and notifies the next-level audio / video acquisition device to begin receiving the first upgrade package. After the next-level audio / video acquisition device has received the first upgrade package and completed its own upgrade using the first upgrade package in its local cache, it deletes the first upgrade package from its local cache.

[0030] Please see Figure 2 , Figure 2 This is a flowchart illustrating another embodiment of the device upgrade method provided in this application. It should be noted that if substantially the same result is achieved, this embodiment does not necessarily reflect that outcome. Figure 2 The illustrated process sequence is limited. For example... Figure 2 As shown, this embodiment includes: S210: When multiple audio and video acquisition devices need to be upgraded in batches, the audio and video acquisition device at the current level receives the first upgrade package.

[0031] Multiple audio and video acquisition devices respond to the batch upgrade request, confirming that multiple audio and video acquisition devices need to be upgraded in batches, and the multiple audio and video acquisition devices receive the upgrade package corresponding to the upgrade request in sequence.

[0032] In one embodiment, when the current level is the first level, the first-level audio and video acquisition device receives a download upgrade package request and the address of the next-level audio and video acquisition device from the audio and video storage management device. The first-level audio and video acquisition device responds to the download upgrade package request by downloading the first upgrade package from the cloud through the proxy port of the audio and video storage management device. After the first-level audio and video acquisition device completes the download of the first upgrade package, it notifies the next-level audio and video acquisition device to start receiving the first upgrade package based on the address of the next-level audio and video acquisition device.

[0033] In one embodiment, after the audio / video acquisition device at the current level receives the first upgrade package, it caches the first upgrade package in its local cache. In response to the completion of its own upgrade and the fact that the first upgrade package has been sent to the audio / video acquisition device at the next level, it deletes the first upgrade package from its local cache, thus completing the device upgrade of the current audio / video acquisition device.

[0034] S220: Sends the first upgrade package to the next level of audio and video acquisition devices, and upgrades itself according to the first upgrade package.

[0035] After receiving the first upgrade package, the current-level audio and video acquisition device notifies the next-level audio and video acquisition device to start receiving the first upgrade package based on the address of the next-level audio and video acquisition device sent by the audio and video storage management device. The device then sends the first upgrade package to the next-level audio and video acquisition device until it receives a reply from the next-level audio and video acquisition device indicating that the reception is complete or successful. Finally, it upgrades itself according to the first upgrade package.

[0036] In one embodiment, the second upgrade package received by the audio / video acquisition device can be downloaded from the cloud or from the cache of the audio / video storage management device. Exemplarily, the audio / video acquisition device sends an upgrade request to the cloud through the proxy port of the audio / video storage management device and receives a second upgrade package sent by the audio / video storage management device in response to the upgrade request. The second upgrade package is downloaded from the cache area if it is already cached in the cache area of ​​the audio / video storage management device, and downloaded from the cloud if it is not cached in the cache area. The cache area stores at least one upgrade package downloaded by a previous audio / video acquisition device.

[0037] To better illustrate the equipment upgrade method of this application, the following example illustrates a scenario of batch cloud upgrades of network cameras (IPCs) using a network video recorder (NVR). Please refer to [link to relevant documentation]. Figure 3 , Figure 3 This is a flowchart illustrating a specific embodiment of a device upgrade method according to this application. It should be noted that if substantially the same result is achieved, this embodiment does not necessarily reflect that outcome. Figure 3 The sequence of processes shown is limited.

[0038] The cloud platform initiates batch cloud upgrade requests to the NVR. Upon receiving the cloud upgrade requests from the cloud platform, the NVR creates a local proxy port to extend the NVR into an IPC cloud upgrade proxy node. This node has the ability to receive upgrade packages, respond to IPC requests, and relay data, thus establishing a dedicated communication channel for subsequent IPCs to indirectly complete cloud upgrades through the NVR.

[0039] The IPC initiates a cloud upgrade request to the cloud through the proxy port provided by the NVR. After receiving the cloud upgrade request from the IPC, the NVR parses it, extracts key information from the request, and performs legality and compatibility verification, laying the foundation for subsequent distribution and upgrade control of upgrade packages. Specifically, the NVR can parse core information such as the IPC's device identifier, model, current firmware version, and target upgrade version from the request. At the same time, it verifies whether the IPC is within the NVR's control scope, whether the request format is compliant, and whether the required upgrade package is consistent with the version cached locally by the NVR. This avoids anomalies caused by invalid requests or incompatible upgrades, ensuring that upgrade packages are accurately distributed only to eligible IPCs, guaranteeing the orderliness and security of batch upgrades.

[0040] If the upgrade request uses a private protocol pre-agreed between the IPC and NVR and the data is not encrypted, the request data can be directly parsed to extract the actual acquisition address of one or more upgrade packages in the request. This may include the NVR's local cache path, intranet shared address, or cloud-directed URL (storage address), etc. A mapping relationship between the upgrade package identifier and the corresponding upgrade package URL or path can be established so that the NVR can quickly respond to the IPC's upgrade package acquisition request based on this mapping relationship, directly pointing to the corresponding address to distribute the upgrade package, avoiding repeated parsing or address lookup confusion, and ensuring the accuracy and efficiency of upgrade package distribution.

[0041] It is important to note that if the IPC upgrade request uses an encrypted protocol, the NVR cannot directly parse the request content. For example, if the protocol is based on the TLS (Transport Layer Security) standard, the NVR needs to establish a secure communication channel and obtain the key and rules required for decryption through the complete TLS handshake protocol. After decryption, it can then perform further steps such as extracting the upgrade packet address from the request.

[0042] If the NVR upgrade request is successfully parsed, it can further check whether the local cache space is sufficient to store the upgrade package in the current request. If the local cache space is sufficient, the upgrade package requested by the IPC is downloaded to the NVR's local cache space. Because the NVR monitors the local storage status in real time before downloading the upgrade package, it intelligently allocates cache areas based on the upgrade package size and remaining space, and establishes a mapping table between version numbers and storage paths. It can also automatically clean up expired cache based on the LRU algorithm, thereby achieving efficient utilization of storage resources.

[0043] When a subsequent IPC of the same model initiates a cloud upgrade request, if the NVR parses the request and finds the corresponding upgrade package in its local cache, it returns the URL of the upgrade package in the cache to the IPC so that the IPC can download it from the NVR's local cache.

[0044] To more clearly explain the specific process of the above equipment upgrade plan, please refer to [link / reference]. Figure 4 , Figure 4This is a timing diagram of the main device upgrade scheme provided in this application. The cloud platform initiates a batch upgrade request to the NVR device. After receiving the request, the NVR issues upgrade instructions to several IPC devices and creates a proxy port locally. The IPC devices request upgrades through the proxy port, and the NVR parses the upgrade request. If the NVR has an upgrade package in its local cache that completely matches the upgrade request (i.e., a cache hit), it returns the storage address of the upgrade package in the local cache, and the IPC downloads the upgrade package from the NVR based on the cache storage address. If the NVR does not have an upgrade package that completely matches the upgrade request (i.e., a cache miss), if there is sufficient local cache space, the upgrade package is downloaded to the local cache space, and the cache address of the currently downloaded upgrade package is returned to the IPC so that the IPC can download the upgrade package from the NVR.

[0045] If the NVR upgrade request fails to be parsed or the local cache space is insufficient to store the upgrade package corresponding to the upgrade request, the alternative solution is activated to perform batch IPC device upgrades.

[0046] Please see Figure 5 , Figure 5 This is a timing diagram illustrating an alternative device upgrade scheme provided in this application. After receiving a batch cloud upgrade request for IPCs initiated by the cloud platform, the NVR simultaneously sends cloud upgrade requests to all IPCs in the batch, including a batch upgrade flag field in the request. Upon receiving the batch upgrade request from the NVR, the IPCs reply to the NVR confirming receipt. The NVR selects an IPC, IPC A as shown in the diagram, and sends the upgrade package download request and the IP address of the next IPC (such as IPC B) to IPC A. Based on the analysis results of the IPC device model distribution and request timestamps, the NVR can pair up devices of the same model with the shortest time interval as upgrade neighbors, thereby dynamically optimizing the transmission path according to the network quality indicators between devices, establishing a global cascading topology, and achieving efficient relay transmission of upgrade packages.

[0047] After receiving the upgrade package download request and the IP address of the next IPC, IPC A downloads the upgrade package from the cloud to its local cache via the NVR's proxy port. It then notifies IPC B to begin receiving the upgrade package downloaded by IPC A. Once IPC B has received the upgrade package from IPC A and confirms success, it returns a confirmation to IPC A. After receiving the confirmation from IPC B, IPC A can begin the upgrade process based on the upgrade package. IPC B transmits the upgrade package to neighboring devices according to the network topology, repeating the upgrade steps of IPC A to form a chained distribution path. Each IPC, after receiving the upgrade package, autonomously performs the upgrade.

[0048] The device upgrade method provided in this embodiment utilizes an NVR as a local proxy to cache upgrade packages, enabling reuse of downloads for devices of the same model. When the cache is unavailable or the request resolution fails, an alternative solution is to use inter-device cascading transmission of upgrade packages, which can effectively solve the problem of bandwidth waste caused by repeated downloads.

[0049] Please see Figure 6 , Figure 6 This is a schematic diagram of the architecture of a device upgrade system provided in this application. The device upgrade system in this embodiment includes a cloud platform, an NVR proxy server, and an IPC device cluster. The NVR proxy server includes a local caching module, a protocol parsing module, and a traffic management module.

[0050] The cloud platform is the global control center of the system. It is responsible for formulating upgrade strategies, such as target firmware version and range of compatible IPC models, storing upgrade packages, sending upgrade instructions and upgrade package metadata to the NVR agent server, and receiving upgrade progress and status feedback from the NVR, so as to achieve unified scheduling of the entire system upgrade.

[0051] The NVR proxy server is a local relay station connecting the cloud platform and IPC. It is both the downlink execution node of the cloud platform and the uplink service node of the IPC. It achieves localized optimization of the upgrade process through three built-in modules.

[0052] The local caching module is used to realize the local storage and reuse of upgrade packages. Specifically, after the NVR downloads the upgrade package adapted to the IPC cluster from the cloud platform, it stores it on the local hard disk to form a cache. When subsequent IPC requests with the same model / version are made, they can be directly retrieved from the cache, realizing the sharing of one upgrade package by multiple IPCs and avoiding repeated downloads.

[0053] The protocol parsing module is responsible for adapting and processing upgrade requests. Specifically, for upgrade requests sent by IPC, it distinguishes between private unencrypted protocols and encrypted protocols. For private unencrypted protocols, it can directly parse and extract the upgrade packet address and establish a mapping. For encrypted protocols, it can first complete the full TLS handshake, negotiate the key, and then decrypt and parse, ensuring that the core requirements can be accurately extracted for requests of different protocol types.

[0054] The traffic management module is mainly used to focus on resource optimization for upgrade transmission. Specifically, it manages the concurrent acquisition of upgrade packages by the IPC cluster, allocates internal network bandwidth resources, and supports breakpoint resume, thereby avoiding internal network congestion caused by multiple IPCs downloading at the same time and ensuring the stability and efficiency of upgrade transmission. It is especially suitable for large-scale IPC cluster scenarios.

[0055] The IPC device cluster upgrades terminal objects (such as primary / secondary audio and video acquisition devices) by obtaining upgrade packages through the NVR proxy server according to a unified strategy, and completing firmware updates without direct interaction with the cloud platform.

[0056] Please see Figure 7 , Figure 7 This is a schematic diagram of an embodiment of the device upgrade apparatus provided in this application. The device upgrade apparatus 60 includes a memory 61 and a processor 62 connected to each other. The memory 61 is used to store a computer program. When the computer program is executed by the processor 62, it is used to implement the device upgrade method in the above embodiment.

[0057] The methods described in the above embodiments can exist in the form of a computer program; therefore, this application proposes a computer-readable storage medium. Please refer to [link / reference needed]. Figure 8 , Figure 8 This is a schematic diagram of an embodiment of a computer-readable storage medium provided in this application. The computer-readable storage medium 80 is used to store a computer program 81, which can be executed to implement the device upgrade method in the above embodiment.

[0058] The computer-readable storage medium 80 can be any medium capable of storing program code, such as a server, USB flash drive, external hard drive, read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0059] The above description is merely an embodiment of this application and does not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. A device upgrade method, applied to an audio / video storage management device, characterized in that, The method includes: Identify multiple audio and video capture devices that require batch upgrades; The multiple audio and video acquisition devices are upgraded using an inter-device cascading transmission scheme; The device cascading transmission scheme includes downloading the first upgrade package to each level of audio and video acquisition devices in sequence according to the multi-level relationship of the multiple audio and video acquisition devices. The first-level audio and video acquisition device obtains the first upgrade package from the audio and video storage management device or the cloud. The next-level audio and video acquisition device forwards the received first upgrade package to the next-level audio and video acquisition device. The audio and video acquisition devices at adjacent levels are connected in communication.

2. The method according to claim 1, characterized in that, The upgrade of the multiple audio and video acquisition devices using an inter-device cascading transmission scheme includes: Select the first-level audio and video acquisition device from the plurality of audio and video acquisition devices; The first-level audio and video acquisition device is instructed to download the first upgrade package to trigger the inter-device cascading transmission scheme. When the audio and video acquisition device at each level receives the first upgrade package, it uses the first upgrade package to perform an upgrade and forwards the first upgrade package to the corresponding audio and video acquisition device at the next level.

3. The method according to claim 2, characterized in that, The instruction to the first-level audio / video acquisition device to download the first upgrade package includes: A download upgrade package request and the address of the next-level audio and video acquisition device are sent to the first-level audio and video acquisition device, so that the first-level audio and video acquisition device responds to the download upgrade package request, downloads the first upgrade package from the cloud through the proxy port of the audio and video storage management device, and forwards the first upgrade package to the corresponding audio and video acquisition device of the next level based on the address of the next-level audio and video acquisition device.

4. The method according to claim 1, characterized in that, In the device cascading transmission scheme, when the audio and video acquisition device at each level receives the first upgrade package, it stores the first upgrade package in its local cache and notifies the next level audio and video acquisition device to start receiving the first upgrade package. After the next level audio and video acquisition device has received the first upgrade package and completed the upgrade using the first upgrade package in its local cache, it deletes the first upgrade package from the local cache. And / or, the multiple audio and video acquisition devices identified as needing batch upgrades include: Receive batch upgrade instructions from the cloud; Send a batch upgrade request to each audio and video acquisition device corresponding to the batch upgrade instruction; The system receives a response from the audio / video acquisition device to the batch upgrade request, and identifies the audio / video acquisition device corresponding to the response as the audio / video acquisition device that needs to be upgraded in batches.

5. The method according to claim 1, characterized in that, The method further includes: An upgrade request for the target audio / video capture device has been received. Check the cache area of ​​the audio and video storage management device to see if the second upgrade package corresponding to the upgrade request is cached; In response to the cache region containing the second upgrade package, the cached second upgrade package is sent to the target audio / video capture device, wherein the cache region contains at least one upgrade package downloaded by a previous audio / video capture device; and / or, In response to the fact that the second upgrade package is not cached in the cache area, the second upgrade package is downloaded from the cloud, cached in the cache area, and sent to the target audio and video acquisition device.

6. The method according to claim 5, characterized in that, Before receiving the upgrade request from the target audio / video acquisition device, the method further includes: Receive upgrade instructions from the cloud for the target audio and video acquisition device; The upgrade instruction is sent to the target audio and video acquisition device, wherein the upgrade request is initiated by the target audio and video acquisition device in response to the upgrade instruction; And / or, before receiving the upgrade request from the target audio and video acquisition device, the method further includes: creating a proxy port for the target audio and video acquisition device; and receiving the upgrade request from the target audio and video acquisition device includes: receiving the upgrade request sent by the target audio and video acquisition device to the cloud through the proxy port; And / or, before checking whether the second upgrade package corresponding to the upgrade request is cached in the cache area of ​​the audio / video storage management device, the method further includes: Analyze the upgrade request; In response to the successful parsing of the upgrade request and the detection that the remaining cache space in the cache area is sufficient to cache the second upgrade package, the step of checking whether the second upgrade package corresponding to the upgrade request is cached in the cache area of ​​the audio and video storage management device is executed; In response to the failure to resolve the upgrade request or the detection that the remaining cache space in the cache area is insufficient to cache the second upgrade package, the target audio and video acquisition device is determined to be an audio and video acquisition device that needs to be upgraded. In the case that there are multiple audio and video acquisition devices that need to be upgraded with the same upgrade package, the determination of multiple audio and video acquisition devices that need to be upgraded in batches is executed.

7. A device upgrade method, applied to audio and video acquisition equipment, characterized in that, The method includes: In the case where multiple audio and video acquisition devices need to be upgraded in batches, the audio and video acquisition device at the current level receives the first upgrade package. The multiple audio and video acquisition devices form a multi-level relationship, and the audio and video acquisition devices at adjacent levels are connected in communication. The first-level audio and video acquisition device downloads the first upgrade package from the audio and video storage management device or the cloud, and the audio and video acquisition devices at other levels receive the first upgrade package from the audio and video acquisition device at the next higher level. The first upgrade package is sent to the next-level audio / video capture device, and... Upgrade yourself according to the first upgrade package.

8. The method according to claim 7, characterized in that, After the audio and video acquisition device at the current level receives the first upgrade package, it also includes: Cache the first upgrade package in the local cache; In response to the completion of its own upgrade and the fact that the first upgrade package has been sent to the next-level audio and video acquisition device, the first upgrade package is deleted from the local cache; And / or, the audio / video acquisition device at the current level receives a first upgrade package, including: When the current level is the first level, the first-level audio and video acquisition device receives the download upgrade package request sent by the audio and video storage management device and the address of the next-level audio and video acquisition device; The first-level audio and video acquisition device responds to the download upgrade package request by downloading the first upgrade package from the cloud through the proxy port of the audio and video storage management device; And / or, the method further includes: An upgrade request is sent to the cloud through the proxy port of the audio and video storage management device. The system receives a second upgrade package sent by the audio / video storage management device in response to the upgrade request. The second upgrade package is downloaded from the cache area if the second upgrade package is cached in the cache area of ​​the audio / video storage management device, and downloaded from the cloud if the second upgrade package is not cached in the cache area. The cache area caches upgrade packages downloaded by at least one historical audio / video acquisition device.

9. An equipment upgrade device, characterized in that, The device upgrade apparatus includes a processor and a memory, the processor being coupled to the memory, and the processor being configured to execute one or more steps of the device upgrade method according to any one of claims 1 to 8 based on instructions stored in the memory.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that is executed by a processor to implement the steps of the device upgrade method as described in any one of claims 1 to 8.