Software upgrading method and related device

By using a multi-forktree structure to manage the hierarchical relationship of AP devices in the AC equipment of the wireless LAN system, the AP device can independently obtain upgrade files from the upgraded parent node for upgrading, which solves the problems of slow upgrade speed and high resource consumption, and improves the upgrade efficiency and centralized management and control capabilities.

CN119883322APending Publication Date: 2025-04-25MAIPU COMM TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411954646.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-27
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

In wireless LAN systems, the software upgrade of AP devices is limited by the bandwidth, CPU resources and memory resources of the AC device, resulting in slow upgrade speed and even failure of upgrade. The upgrade methods of the existing technology have problems such as high cost, high resource consumption, long upgrade time and difficulty in centralized control.

Method used

The multi-forktree structure stores the hierarchical relationship of the AP device in the AC device. The AC device obtains the current hierarchical node to be processed, determines the AP device to be upgraded, and sends upgrade information to it, so that it can obtain the upgrade file from the upgraded parent node to upgrade.

Benefits of technology

It reduces the upgrade cost, reduces the resource consumption of AC equipment and AP equipment, improves the upgrade efficiency and the centralized control ability of AC equipment on AP equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119883322A_ABST
    Figure CN119883322A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a software upgrading method and a related device, and relates to the technical field of communication. Obtaining to-be-processed current hierarchy nodes, and determining to-be-upgraded AP equipment from the current hierarchy nodes; sending upgrading information to the to-be-upgraded AP equipment, so that the to-be-upgraded AP equipment acquires an upgrading file from a father node of the to-be-upgraded AP equipment according to the upgrading information, and performing software upgrading according to the upgrading file; when it is determined that the to-be-upgraded AP device is successfully upgraded, determining whether the to-be-upgraded AP device has child nodes or not according to the multi-way tree; and if the to-be-upgraded AP equipment has the child node, determining the child node of the to-be-upgraded AP equipment as a new to-be-processed current-level node, and returning to execute the step of obtaining the to-be-processed current-level node. Therefore, the upgrading cost can be reduced, the resource consumption of the AC equipment and the AP equipment can be reduced, and the hierarchy-increasing efficiency and the centrality of AC equipment management and control can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a software upgrade method and related devices. Background Art

[0002] With the development of wireless LAN, in the wireless LAN system, an AC (Access Controller) device can manage more and more AP (Access Point) devices. In this case, if a certain model of AP device needs to perform software upgrade, it is necessary to use CAPWAP (Control And Provisioning of Wireless Access Points Protocol) for file transfer. However, this method is limited by factors such as the bandwidth, CPU resources, and memory resources of the AC device, resulting in a slow upgrade speed, which blocks the upgrade of some AP devices and even causes the upgrade of some AP devices to fail.

[0003] At present, the upgrade problem of AP equipment can generally be solved by the following methods, but each method has its corresponding limitations. The following is an introduction to the methods used in the existing technology.

[0004] The first method is to add one or more additional external file servers when the AP device is upgraded, so as to solve the above problem by providing upgrade files through the additional file servers. However, this method requires additional server costs and has the problem of high costs.

[0005] The second method, considering that there may be congestion problems when multiple AP devices obtain upgrade files from the AC device, the AC device can actively send upgrade files to each AP device in sequence according to the relevant order. However, this method will cause a large consumption of AC device resources and increase the upgrade time, resulting in an increase in the maintenance cost of maintenance personnel.

[0006] The third method is to split the upgrade file into multiple file blocks and store them in the upgraded AP devices. The AP devices that need to be upgraded can obtain file blocks from each upgraded AP device for upgrading. However, this method requires the AC device to perform a large number of block splitting calculations on the upgrade file, which will lead to a waste of CPU resources of the AC device. At the same time, it will also cause the AP device to be upgraded to create more sockets when obtaining the upgrade file, resulting in a large resource consumption, thereby leading to resource waste.

[0007] The fourth method is to transmit the upgrade file within the AP broadcast domain or multicast domain. However, this method will make it impossible for the AC device to track the software status of each AP device in real time, making it difficult to centrally control multiple AP devices. If the file is wrong, it will cause upgrade errors for all AP devices in the broadcast domain or multicast domain. Summary of the invention

[0008] In view of this, the purpose of this application is to provide a software upgrade method and related devices to reduce upgrade costs, reduce resource consumption of AC devices and AP devices, improve upgrade efficiency and centralization of AC device management and control.

[0009] In order to achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:

[0010] In a first aspect, the present application provides a software upgrade method, which is applied to an AC device in a wireless local area network system, wherein the wireless local area network system further includes a plurality of AP devices managed by the AC device, wherein a multi-branch tree is stored in the AC device, wherein the multi-branch tree has the AC device as a root node and the AP device as a child node, and the method includes:

[0011] Acquire a current level node to be processed, and determine an AP device to be upgraded from the current level node;

[0012] Sending upgrade information to the AP device to be upgraded, so that the AP device to be upgraded obtains an upgrade file from a parent node of the AP device to be upgraded according to the upgrade information, and performs software upgrade according to the upgrade file; the parent node of the AP device to be upgraded is the AC device or an upgraded AP device;

[0013] In the case where it is determined that the AP device to be upgraded is upgraded successfully, determining whether the AP device to be upgraded has a child node according to the multi-branch tree;

[0014] If the AP device to be upgraded has a child node, the child node of the AP device to be upgraded is determined as a new current-level node to be processed, and the process returns to the step of obtaining the current-level node to be processed.

[0015] In an optional implementation manner, the acquiring the current-level nodes to be processed and determining the AP devices to be upgraded from the current-level nodes includes:

[0016] Sending upgrade version information to each of the AP devices in the current level node, so that each of the AP devices determines whether software upgrade is required according to the upgrade version information, and sending first response information to the AC device;

[0017] Receiving first response information sent by any of the AP devices;

[0018] If the first response information indicates that the AP device needs to perform software upgrade, the AP device is determined as the AP device to be upgraded.

[0019] In an optional embodiment, the method further comprises:

[0020] If the first response information indicates that the AP device does not need to perform software upgrade, determining whether the AP device has a child node according to the multi-branch tree;

[0021] If the AP device has a child node, determining a new parent node for the child node of the AP device from the same-level nodes of the AP device in the multi-branch tree and the parent node of the AP device;

[0022] The new parent node is an upgraded AP device in the same level node of the AP device or a parent node of the AP device.

[0023] In an optional implementation manner, the sending the upgrade information to the AP device to be upgraded includes:

[0024] Determine a parent node of the AP device to be upgraded from the multi-branch tree;

[0025] Generate the upgrade information according to the device information of the parent node and the file information of the upgrade file, and send the upgrade information to the AP device to be upgraded;

[0026] The device information is used by the AP device to be upgraded to determine whether to establish a communication connection with the parent node, and to send a second response information to the AC device; the file information is used by the AP device to be upgraded to obtain the upgrade file from the parent node when a communication connection is established with the parent node, and to send a third response information to the AC device;

[0027] Receiving second response information sent by the AP device to be upgraded;

[0028] If the second response information indicates that the AP device to be upgraded has not established a communication connection with the parent node, then according to the multi-branch tree, a new parent node is determined for the AP device to be upgraded from the upper-level node of the AP device to be upgraded or the upper-level node of the parent node of the AP device to be upgraded, and the step of determining the parent node of the AP device to be upgraded from the multi-branch tree is re-entered.

[0029] In an optional embodiment, the method further comprises:

[0030] Receiving third response information sent by the AP device to be upgraded;

[0031] If the third response information indicates that the upgrade file is successfully acquired and the upgrade file meets the upgrade condition, control the AP device to be upgraded to restart, and if the AP device to be upgraded restarts successfully, determine that the AP device to be upgraded is successfully upgraded;

[0032] If the third response information indicates that the upgrade file acquisition fails or the upgrade file does not meet the upgrade condition, the process returns to the step of sending the upgrade information to the AP device to be upgraded.

[0033] In an optional implementation manner, before the step of obtaining the current level node to be processed, the method further includes:

[0034] Obtaining a device model of each of the managed AP devices, and grouping the AP devices with the same device model into the same upgrade policy group, to obtain at least one upgrade policy group;

[0035] According to the attribute information of each of the AP devices in the upgrade strategy group, the AP devices in the upgrade strategy group are divided to obtain a plurality of execution groups; wherein each of the execution groups includes a plurality of AP devices;

[0036] For each of the execution groups, the AP devices in the execution group are numbered, the number of nodes at each level of the multi-branch tree is determined according to the number of files transmitted simultaneously corresponding to any of the AP devices, and the multi-branch tree corresponding to each of the execution groups is generated according to the number of nodes at each level and the numbers of the AP devices.

[0037] In a second aspect, the present application provides a software upgrade method, which is applied to any AP device managed by an AC device in a wireless local area network system, wherein the AC device stores a multi-branch tree, wherein the multi-branch tree has the AC device as a root node and the AP device as a child node, and the method includes:

[0038] receiving upgrade information sent by the AC device; the upgrade information is sent by the AC device when the AC device obtains a current level node to be processed from the multi-branch tree and determines from the current level node that the AP device is the AP device to be upgraded;

[0039] According to the upgrade information, an upgrade file is obtained from the parent node of the AP device, and software is upgraded according to the upgrade file, so that when the AC device determines that the AP device to be upgraded is successfully upgraded, it determines from the multi-branch tree whether the AP device to be upgraded has child nodes, and when the AP device to be upgraded has child nodes, the child nodes of the AP device to be upgraded are determined as new current-level nodes to be processed; the parent node of the AP device to be upgraded is the AC device or the upgraded AP device.

[0040] In an optional implementation manner, the upgrade information includes device information of a parent node of the AP device and file information of the upgrade file, and obtaining the upgrade file from the parent node of the AP device according to the upgrade information and performing software upgrade according to the upgrade file includes:

[0041] Determine whether to establish a communication connection with the parent node according to the device information, and send a second response information to the AC device based on the determination result;

[0042] After determining to establish a communication connection with the parent node, acquiring the upgrade file from the parent node according to the file information, and sending a third response information to the AC device based on the acquisition result;

[0043] When the upgrade file is successfully acquired and the upgrade file meets the upgrade condition, the software is upgraded according to the upgrade file.

[0044] In a third aspect, the present application provides a software upgrade device, which is applied to an AC device in a wireless local area network system, wherein the wireless local area network system also includes multiple AP devices managed by the AC device, and a multi-branch tree is stored in the AC device, wherein the multi-branch tree has the AC device as a root node and the AP device as a child node, and the device includes:

[0045] An acquisition module, used to acquire a current level node to be processed, and determine an AP device to be upgraded from the current level node;

[0046] A sending module, configured to send upgrade information to the AP device to be upgraded, so that the AP device to be upgraded obtains an upgrade file from a parent node of the AP device to be upgraded according to the upgrade information, and performs software upgrade according to the upgrade file; the parent node of the AP device to be upgraded is the AC device or an upgraded AP device;

[0047] A determination module, configured to determine whether the AP device to be upgraded has a child node according to the multi-branch tree when it is determined that the AP device to be upgraded is successfully upgraded;

[0048] The determination module is further configured to determine the child node of the AP device to be upgraded as a new current-level node to be processed if the AP device to be upgraded has a child node, and return to execute the step of obtaining the current-level node to be processed.

[0049] In a fourth aspect, the present application provides a software upgrade device, which is applied to any AP device managed by an AC device in a wireless local area network system, wherein the AC device stores a multi-branch tree, wherein the multi-branch tree has the AC device as a root node and the AP device as a child node, and the device includes:

[0050] A receiving module, configured to receive the upgrade information sent by the AC device; the upgrade information is sent by the AC device when the AC device obtains the current level node to be processed from the multi-branch tree and determines from the current level node that the AP device is the AP device to be upgraded;

[0051] An upgrade module is used to obtain an upgrade file from the parent node of the AP device according to the upgrade information, and perform software upgrade according to the upgrade file, so that when the AC device determines that the AP device to be upgraded is successfully upgraded, it determines from the multi-branch tree whether the AP device to be upgraded has child nodes, and when the AP device to be upgraded has child nodes, the child nodes of the AP device to be upgraded are determined as new current-level nodes to be processed; the parent node of the AP device is the AC device or the upgraded AP device.

[0052] In a fifth aspect, the present application provides a wireless local area network device, comprising a processor and a memory, wherein the memory stores a computer program that can be executed by the processor, and the processor executes the computer program to implement the software upgrade method described in any one of the aforementioned implementations.

[0053] In a sixth aspect, the present application provides a wireless local area network system, comprising an AC device and multiple AP devices managed by the AC device, wherein the AC device is used to implement the software upgrade method described in any one of the first aspect, and the AP device is used to implement the software upgrade method described in any one of the second aspect.

[0054] In a seventh aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the software upgrade method of any one of the aforementioned implementations.

[0055] The software upgrade method and related device provided by the embodiment of the present application can store a multi-branch tree corresponding to the wireless local area network system in the AC device, and the multi-branch tree has the AC device as the root node and the AP device as the child node. The AC device can obtain the current level node to be processed and determine the AP device to be upgraded from the current level node, thereby sending upgrade information to the AP device to be upgraded, so that the AP device to be upgraded can obtain the upgrade file from the parent node of the AP device to be upgraded according to the upgrade information, and perform software upgrade according to the upgrade file. If the upgrade of the AP device to be upgraded is determined to be successful, the AC device can determine whether the AP device to be upgraded has a child node according to the multi-branch tree. If the AP device to be upgraded has a child node, the child node of the AP device to be upgraded is determined as the new current level node to be processed, and the step of obtaining the current level node to be processed is returned. The method does not require the addition of an additional file server, so it can reduce costs. Since the AP device to be upgraded can obtain the upgrade file from the upgraded parent node according to the upgrade information sent by the AC device, it is not necessary to split the upgrade file into blocks, so it can reduce the resource consumption of the AC device, shorten the upgrade time, and improve the upgrade efficiency. In addition, through this method, the AC device can also centrally manage the software upgrades of multiple AP devices, thereby improving the centralization of AC device management.

[0056] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0058] Figure 1 A block diagram of a wireless local area network system provided by an embodiment of the present application is shown;

[0059] Figure 2 A block diagram of a wireless local area network device is shown;

[0060] Figure 3 A schematic diagram of a process flow of a software upgrade method provided in an embodiment of the present application is shown;

[0061] Figure 4 An example diagram of executing group partitioning is shown;

[0062] Figure 5 An example diagram of a multi-branch tree is shown;

[0063] Figure 6 Another schematic diagram of a software upgrade method provided in an embodiment of the present application is shown;

[0064] Figure 7 A functional module diagram of a software upgrade device provided in an embodiment of the present application is shown;

[0065] Figure 8 Another functional module diagram of the software upgrading device provided in an embodiment of the present application is shown.

[0066] Icon: 10 - AC device; 100 - memory; 110 - processor; 120 - communication module; 20 - AP device; 200 - acquisition module; 210 - sending module; 220 - determination module; 300 - receiving module; 310 - upgrade module. DETAILED DESCRIPTION

[0067] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0068] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0069] It should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0070] Figure 1 A block diagram of a wireless local area network system provided in an embodiment of the present application is shown in FIG. Figure 1 The wireless local area network system includes an AC device 10 and a plurality of AP devices 20 managed by the AC device.

[0071] Optionally, the AC device may store a multi-branch tree corresponding to the wireless local area network system, and the multi-branch tree has the AC device as a root node and multiple AP devices as child nodes.

[0072] Optionally, the multi-branch tree may include multiple levels, and each level node may include at least one AP device, so the AC device can centrally manage and control the software upgrade of each AP device based on the multi-branch tree.

[0073] Further, in Figure 1 On the basis of Figure 2 A block diagram of a wireless local area network device. It can be understood that the wireless local area network device may refer to the above Figure 1 The AC equipment in this section may also refer to the above Figure 1 The AP device in the

[0074] Please refer to Figure 2 The wireless local area network device includes a memory 100, a processor 110 and a communication module 120. The memory 100, the processor 110 and the communication module 120 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines.

[0075] The memory 100 is used to store computer programs or data that can be executed by the processor. The memory 100 can be, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc.

[0076] The processor 110 is used to read / write data or computer programs stored in the memory, and execute the computer program to implement the software upgrade method provided in the embodiment of the present application.

[0077] The communication module 120 is used to establish a communication connection between the wireless local area network device and other communication terminals through the network, and is used to send and receive data through the network.

[0078] It should be understood that Figure 2The structure shown is only a schematic diagram of the structure of the wireless local area network device. The wireless local area network device may also include Figure 2 More or fewer components as shown, or with Figure 2 Different configurations shown. Figure 2 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0079] Next, the above Figure 1 The AC device in the embodiment is the execution subject, and the software upgrade method provided in the embodiment of the present application is exemplarily introduced in combination with the flow chart.

[0080] Specifically, Figure 3 A flowchart of the software upgrade method provided in the embodiment of the present application is shown in Figure 3 , the method comprising:

[0081] Step S20, obtaining the current level nodes to be processed, and determining the AP devices to be upgraded from the current level nodes.

[0082] Optionally, the AC device can upgrade each AP device layer by layer according to the multi-branch tree. Considering that there may be AP devices that do not need to be upgraded in each layer node, the AC device also needs to determine the AP devices to be upgraded from the current layer nodes to be processed. Generally, the layer where the first layer child node of the AC device in the multi-branch tree is located is first used as the current layer to be processed.

[0083] Step S21: Send upgrade information to the AP device to be upgraded, so that the AP device to be upgraded obtains the upgrade file from the parent node of the AP device to be upgraded according to the upgrade information, and performs software upgrade according to the upgrade file.

[0084] The parent node of the AP device to be upgraded is an AC device or an upgraded AP device.

[0085] In this embodiment, considering that there may be congestion problems if each AP device obtains the upgrade file from the AC device, in order to relieve the burden of the AC device and solve the problem of resource congestion, the AP device to be upgraded can obtain the upgrade file from its corresponding parent node.

[0086] It can be understood that since the AC device performs software upgrades on the AP device layer by layer, it can be ensured that the parent node of the AP device to be upgraded is an upgraded AP device, or the AC device. Based on this, the parent node should store the upgrade file required for the software upgrade, and the AP device to be upgraded can directly obtain the upgrade file from the parent node.

[0087] Step S22: When it is determined that the AP device to be upgraded is upgraded successfully, it is determined whether the AP device to be upgraded has child nodes according to the multi-branch tree.

[0088] Step S23, if the AP device to be upgraded has a child node, the child node of the AP device to be upgraded is determined as a new current-level node to be processed, and the process returns to the step of obtaining the current-level node to be processed. In this embodiment, when the AP device to be upgraded is successfully upgraded, the AC device can upgrade the next-level node of the AP device to be upgraded.

[0089] In the software upgrade method provided by the embodiment of the present application, a multi-branch tree can be stored in the AC device, and the multi-branch tree has the AC device as the root node and the AP device as the child node. The AC device can obtain the current level node to be processed and determine the AP device to be upgraded from the current level node, thereby sending upgrade information to the AP device to be upgraded, so that the AP device to be upgraded can obtain the upgrade file from the parent node of the AP device to be upgraded according to the upgrade information, and perform software upgrade according to the upgrade file. Then, the AC device can determine whether the AP device to be upgraded has a child node according to the multi-branch tree when it is determined that the AP device to be upgraded has been successfully upgraded. If the AP device to be upgraded has a child node, the child node of the AP device to be upgraded is determined as the new current level node to be processed, and the step of obtaining the current level node to be processed is returned. This method does not require the addition of an additional file server, so it can reduce costs. Moreover, since the AP device to be upgraded can obtain the upgrade file from the upgraded parent node according to the upgrade information sent by the AC device, there is no need to split the upgrade file into blocks, so it can reduce the resource consumption of the AC device, shorten the upgrade time, and improve the upgrade efficiency. In addition, through this method, the AC device can also centrally manage the software upgrades of multiple AP devices, thereby improving the centralization of AC device management.

[0090] Optionally, the multi-branch tree may be imported externally and stored in the AC device in advance, or may be generated and stored in advance by the AC device.

[0091] Next, a possible implementation method is provided for how to generate a multi-branch tree corresponding to the wireless local area network system.

[0092] Specifically, before the above step S20, the AC device may obtain the device model of each managed AP device, and classify AP devices with the same device model into the same upgrade policy group to obtain at least one upgrade policy group.

[0093] It can be understood that each upgrade policy group includes multiple AP devices.

[0094] Optionally, AP devices of different models may require different upgrade files, so AP devices of the same model that require the same upgrade file may be divided into an upgrade strategy group according to the device model.

[0095] In this embodiment, each upgrade strategy group can generate a corresponding multi-branch tree.

[0096] Optionally, considering that an upgrade policy group may include a large number of AP devices, if only one multi-branch tree is generated for the upgrade policy group, it may be too complicated and cumbersome. Based on this, the AP devices in the upgrade policy group can also be subdivided to generate multiple multi-branch trees for the upgrade policy group.

[0097] It can be understood that whether to subdivide the AP devices in the upgrade strategy group can be determined by the user according to the actual application situation. For example, it can be set to subdivide them when the number of AP devices in the upgrade strategy group reaches a preset number, or it can be set to subdivide them by default, etc. This application does not impose too many restrictions on this.

[0098] In this embodiment, the AC device can divide the AP devices in the upgrade strategy group according to the attribute information of each AP device in the upgrade strategy group to obtain multiple execution groups, and then for each execution group, number each AP device in the execution group, determine the number of nodes at each level of the multi-branch tree according to the number of simultaneously transmitted files corresponding to any AP device, and generate a multi-branch tree corresponding to each execution group according to the number of nodes at each level and the number of each AP device.

[0099] Each execution group may include multiple AP devices.

[0100] Optionally, the number of files transmitted simultaneously refers to the number of upgrade files that can be transmitted simultaneously by the AP device when the file transmission efficiency is the highest.

[0101] Optionally, the attribute information may include version information of the AP device, a sending template name, a group name, location information, a device name, an IP address, and other information.

[0102] In this embodiment, the AC device may classify the AP devices according to one or more attribute information, which may be specifically configured by the user according to actual application conditions.

[0103] In an example, when AP devices are deployed, they are often named according to their deployment locations, such as 3dong-3115, 3dong-3116, etc. Therefore, the AC device can divide the AP devices according to the device names of the AP devices, determine the similarity between different device names by calculating the ASCII (American Standard Code for Information Interchange) values ​​of the device names, and divide the AP devices according to the size of the ASCII values.

[0104] Optionally, the user may also divide the AP devices to obtain multiple execution groups.

[0105] It can be understood that AP devices in different execution groups are mutually exclusive, that is, an AP device added to execution group A should not be added to execution group B.

[0106] It is understandable that the number of AP devices included in each execution group may be different.

[0107] In one example, Figure 4 For an example diagram of the execution group division, see Figure 4 , the upgrade strategy group A can be divided into three execution groups, namely execution group A, execution group B and execution group C.

[0108] Optionally, the AC device may number the AP devices in each execution group. In this embodiment, the numbers in different execution groups may be repeated.

[0109] Optionally, the AC device may determine the number of files to be transmitted simultaneously by a binary search method.

[0110] In this embodiment, the number of files to be transmitted simultaneously may be determined according to the efficiency of the AP device in transmitting the upgrade files. That is, if the number of upgrade files to be transmitted simultaneously by the AP device is the number of files to be transmitted simultaneously, the upgrade file transmission efficiency is the highest.

[0111] Optionally, the AC device may determine the number of nodes at each level according to the number of files transmitted simultaneously, thereby generating a multi-branch tree.

[0112] Optionally, the number of nodes at each level refers to the number of AP devices that should be included in each layer of the multi-branch tree.

[0113] In this embodiment, the number of files transmitted simultaneously can be used as the maximum number of child nodes that each node in the multitree has. For example, if the number of files transmitted simultaneously is 2, the multitree is a binary tree, and if the number of files transmitted simultaneously is 4, the multitree is a quadtree.

[0114] In an example, the user may set a value k based on experience or actual application conditions, and determine the optimal value as the file transfer parameter in the range of [k, 1] by gradually approximating the value using the binary search method.

[0115] In this example, if the file transmission parameter is 4, it means that the file transmission efficiency is highest when the AP device transmits 4 upgrade files at the same time.

[0116] In this example, Figure 5 For a multi-tree example diagram, see Figure 5 ,If the file transfer parameter is 4, the AC device can be used as the root node, and each level of child nodes can be determined in sequence according to the numbers of each AP device to generate a quadtree.

[0117] In this embodiment, each execution group may correspond to a multi-branch tree.

[0118] It can be understood that if there is no need to subdivide the AP devices in the upgrade strategy group, the AC device can directly number each AP device in the upgrade strategy group, calculate the number of simultaneously transmitted files corresponding to any AP device, and generate a multi-branch tree corresponding to the upgrade strategy group based on the number of simultaneously transmitted files and the number of each AP device. The specific generation method is as above and will not be elaborated here.

[0119] Optionally, in a wireless local area network system, there may be a situation where all AP devices in an upgrade strategy group need to be upgraded, or there may be a situation where only AP devices in a part of the upgrade strategy groups need to be upgraded.

[0120] In one possible implementation, the AC device may first determine the upgrade policy group to be upgraded, and then obtain the current level node to be processed in each execution group in the upgrade policy group to be upgraded, and determine the AP device to be upgraded from the current level node, and then send upgrade information to the AP device to be upgraded to upgrade it.

[0121] Optionally, the AC device may upgrade each execution group in the upgrade strategy group to be upgraded in sequence, or may upgrade each execution group in parallel. The specific settings may be made according to actual application conditions, and this application does not impose too many restrictions on this.

[0122] Next, a possible implementation method is provided for how to obtain the current-level nodes to be processed and determine the AP devices to be upgraded from the current-level nodes.

[0123] Specifically, the AC device may send upgrade version information to each AP device in the current hierarchical node, so that each AP device determines whether software upgrade is required according to the upgrade version information, and sends first response information to the AC device according to the determination result.

[0124] In this embodiment, the AC device may receive the first response information sent by any AP device. If the first response information indicates that the AP device needs to perform software upgrade, the AP device is determined as an AP device to be upgraded.

[0125] Optionally, the upgrade version information refers to software version information of the AP device after the upgrade. The AP device can determine whether its current version information matches the upgrade version information, and determine that a software version upgrade is required if they do not match.

[0126] It can be understood that the first response information may include information on whether the AP device performs software upgrade.

[0127] In this embodiment, if the first response information indicates that the AP device needs to perform software upgrade, the AC device may determine that the AP device is an AP device to be upgraded.

[0128] Optionally, in order to facilitate the AC device to centrally control each AP device during the software upgrade process, a corresponding state machine can be set for each AP device, and its state represents the state of the AP device, which can reflect the upgrade status of the AP device.

[0129] In a possible implementation, each AP device may be in an idle state before starting software upgrade.

[0130] Optionally, when the AC device determines the current level node to be upgraded, it may modify the state of each AP device in the current level node from an idle state to a pending state to indicate that each AP device in the current level subnode can start processing.

[0131] Optionally, the AC device may modify the state of the AP device to be upgraded from the pending state to the configuration state, so as to indicate that the AP device needs to perform the next upgrade operation.

[0132] Optionally, if the first response information indicates that the AP device does not need to perform software upgrade, the AC device may determine whether the AP device has a child node according to the multi-branch tree.

[0133] In this embodiment, if the AP device has child nodes, the AC device may determine a new parent node for the child nodes of the AP device from the same-level nodes of the AP device and the parent node of the AP device in the multi-branch tree.

[0134] The new parent node may be an AP device to be upgraded in the same level node as the AP device or a parent node of the AP device.

[0135] It can be understood that if the first response information indicates that the AP device does not need software upgrade, the AP device will not perform the upgrade operation. At this time, if the AP device is still used as the parent node of other AP devices, the child nodes of the AP device may not be able to obtain the upgrade file normally and thus cannot be upgraded normally. Therefore, the AC device needs to reselect the parent node for the child node AP device corresponding to the AP device.

[0136] Optionally, the AC device may reselect a parent node for the child node AP device according to the number.

[0137] Optionally, the AC device may select a parent node for the child node of the AP device in the same layer as the AP device. If there is no AP device to be upgraded in the same layer as the AP device, the parent node of the AP device is used as the parent node of the child node of the AP device.

[0138] In an example, see above Figure 5 If the current hierarchical child nodes include AP1, AP2, AP3, and AP4, and AP1 does not need software upgrade, the AC device needs to reselect a new parent node for AP1's child nodes AP5, AP6, AP7, and AP8.

[0139] In this example, the AC device can select a new parent node from the AP devices to be upgraded in the current level node according to the number. For example, if all AP devices except AP1 in the current level node are AP devices to be upgraded, AP2 can be determined as the new parent node of AP5, AP6, AP7 and AP8 according to the number.

[0140] It can be understood that at this time, AP2 can be used as an AP device to be upgraded and is executing an upgrade process. When AP2 is upgraded successfully, AP5-AP8 and AP2's original child nodes AP9-AP12 can all be used as new current-level nodes to be upgraded.

[0141] In this example, if none of the AP devices in the current hierarchical nodes need to perform software upgrades, the parent node of AP1 can be determined as the new parent node of AP5, AP6, AP7, and AP8, that is, the AC device. In this embodiment, in addition to reselecting a new parent node for the child nodes of the AP devices that do not need software upgrades, the AC device also needs to change the state of the AP device from the pending state to the idle state to indicate that the AP device does not need to perform an upgrade operation.

[0142] In another possible implementation, if the first response information indicates that the AP device does not need software upgrade, then in order to ensure that the sub-nodes of the AP device can be upgraded normally, the AC device can control the AP device to perform a forced upgrade, thereby ensuring that the upgrade file is stored in the AP device, and further ensuring that the sub-nodes of the AP device can obtain the upgrade file from the AP device.

[0143] Optionally, since the AP device to be upgraded needs to obtain the upgrade file from the parent node, the upgrade information sent by the AC device may include device information of the parent node of the AP device to be upgraded and file information of the upgrade file.

[0144] Based on this, a possible implementation method is provided below for how to send upgrade information to the AP device to be upgraded.

[0145] Specifically, the AC device may determine the parent node corresponding to the AP device to be upgraded from the multi-branch tree, generate upgrade information according to the device information of the parent node and the file information of the upgrade file, and send the upgrade information to the AP device to be upgraded.

[0146] Among them, the device information is used by the AP device to be upgraded to determine whether to establish a communication connection with the parent node, and send a second response message to the AC device based on the determination result. The file information is used by the AP device to be upgraded to obtain the upgrade file from the parent node when a communication connection is established with the parent node, and send a third response message to the AC device based on the acquisition result.

[0147] Optionally, the upgrade file information may include a file name of the upgrade file, a file checksum, an upgrade method, a file transmission method, and the like.

[0148] Optionally, after sending the upgrade information to the AP device to be upgraded, the AC device may determine whether the upgrade information is sent successfully.

[0149] In this embodiment, after sending the upgrade information, the AC device can determine whether it has received a response message from the AP device to be upgraded within a preset time period. If the response message from the AP device to be upgraded is received within the preset time period, it can be determined that the upgrade information has been sent successfully.

[0150] In this embodiment, if the upgrade information fails to be sent, the AC device may modify the state of the AP device to be upgraded to a pending state, so as to re-determine whether the AP device is an AP device to be upgraded.

[0151] In this embodiment, if the upgrade information is sent successfully, the AC device can change the status of the AP device to be upgraded from the configuration status to the checking status. At this time, the AP device to be upgraded can determine whether to establish a communication connection with the parent node based on the device information, and send a second response information to the AC device based on the determination result.

[0152] It can be understood that the check status indicates that the AP device to be upgraded needs to check connectivity with the parent node next.

[0153] In this embodiment, the AC device can receive a second response message sent by the AP device to be upgraded. If the second response message indicates that the AP device to be upgraded has not established a communication connection with the parent node, the AC device can determine a new parent node for the AP device to be upgraded from the upper-level node of the AP device to be upgraded or the upper-level node of the parent node of the AP device to be upgraded based on the multi-branch tree, and re-enter the step of determining the parent node of the AP device to be upgraded from the multi-branch tree.

[0154] Optionally, the second response information may include a connectivity check result between the AP device to be upgraded and its parent node, and the AC device may determine whether a communication connection is established between the AP device to be upgraded and its parent node according to the connectivity check result in the second response information.

[0155] It is understandable that if there is no communication connection between the AP device to be upgraded and its parent node, the AP device to be upgraded cannot obtain the upgrade file from the parent node. At this time, in order to ensure that the AP device to be upgraded can be upgraded normally, the AC device can select a new parent node for the AP device to be upgraded.

[0156] In this embodiment, if the second response information indicates that the AP device to be upgraded is not in communication connection with the parent node, the AC device may modify the state of the AP device to be upgraded to the configuration state, thereby re-issuing new upgrade information to the AP device to be upgraded.

[0157] Optionally, the AC device may select a new parent node for the AP device to be upgraded from an upper-level node of the AP device to be upgraded or from an upper-level node of the parent node of the AP device to be upgraded.

[0158] For an example, see Figure 5 If the AP device to be upgraded is AP17, and AP17 has not established a communication connection with its parent node AP5, the AC device can select a new parent node for it from AP6 to AP16 and change its state to the configuration state.

[0159] For example, AP6 can be determined as the new parent node of AP17 based on the number, and upgrade information can be re-issued to AP17. AP17 can determine whether a communication connection has been established with the new parent node AP6. If a communication connection has been established, the upgrade file can be obtained from AP6. If no communication connection has been established, AP7 can be determined as the new parent node of AP17, and so on.

[0160] In this example, if AP6 to AP16 have not established a communication connection with AP17, the AC device may select a new parent node for AP17 from the upper-level node of the parent node of AP17, that is, select a new parent node for AP17 from AP1 to AP4, and so on.

[0161] It can be understood that if none of AP1 to AP4 has established a communication connection with AP17 , the AC device can be determined as the new parent node of AP17 . Obviously, the AC device must have established a communication connection with AP17 .

[0162] Optionally, if the second response information indicates that the AP device to be upgraded has established a communication connection with the parent node, the AC device may modify the state of the AP device to be upgraded to a file acquisition state, so that the AP device to be upgraded obtains the upgrade file from its parent node according to the file information, and sends a third response information to the AC device according to the acquisition result.

[0163] Optionally, the file acquisition state may indicate that the AP device to be upgraded needs to obtain an upgrade file from a parent node next.

[0164] Optionally, the AP device to be upgraded may initiate a file acquisition request to a parent node in a file acquisition state to acquire an upgrade file.

[0165] In this embodiment, in order to reduce the upgrade failure rate, the AP device to be upgraded may determine whether the upgrade file meets a preset upgrade condition when the upgrade file is successfully acquired.

[0166] Optionally, the upgrade condition may be that the upgrade file verification is successful.

[0167] In this embodiment, after obtaining the upgrade file, the AP device to be upgraded can calculate the check value of the upgrade file, and determine whether the check value matches the check value in the file information.

[0168] It can be understood that if there is a match, it can be determined that the upgrade file meets the preset upgrade conditions.

[0169] Optionally, the AP device to be upgraded can generate a third response message according to the acquisition result and the judgment result, and send the third response message to the AC device. It can be understood that the third response message may include result information of whether the upgrade file is successfully acquired and whether the upgrade condition is met.

[0170] In this embodiment, the AC device can receive a third response message sent by the AP device to be upgraded; if the third response message indicates that the upgrade file is successfully acquired and the upgrade file meets the upgrade conditions, the AP device to be upgraded is controlled to restart, and when the AP device to be upgraded restarts successfully, it is determined that the AP device to be upgraded is successfully upgraded; if the third response message indicates that the upgrade file fails to be acquired or the upgrade file does not meet the upgrade conditions, the step of sending upgrade information to the AP device to be upgraded is returned.

[0171] Optionally, the AP device to be upgraded can perform software upgrade according to the upgrade file if the upgrade file is successfully acquired and the upgrade file meets preset upgrade conditions. The user can set whether to restart after the upgrade according to actual application conditions.

[0172] Optionally, if restart is not required after the upgrade, the AC device may determine that the AP device to be upgraded is successfully upgraded when it is determined according to the third response information that the upgrade file is successfully acquired and the upgrade file meets the upgrade condition.

[0173] Optionally, if a restart is required after the upgrade, the AC device can set the state of the AP device to be upgraded to the restart state, control the restart of the AP device to be upgraded, and determine that the upgrade of the AP device to be upgraded is successful if the third response information indicates that the upgrade file is successfully obtained and the upgrade conditions are met.

[0174] Optionally, if the third response information indicates that the upgrade file acquisition failed or the upgrade file does not meet the upgrade conditions, the AC device may change the status of the AP device to be upgraded from the file acquisition status to the checking status, and return to the step in which the AP device to be upgraded can determine whether to establish a communication connection with the parent node based on the device information, so that the AP device to be upgraded can recheck the connectivity with the parent node.

[0175] Optionally, when determining that the AP device to be upgraded is upgraded successfully, the AC device may set the state of the AP device to be upgraded to an idle state, so as to indicate that the AP device to be upgraded does not need to perform software upgrade any more.

[0176] Next, the above Figure 1 Any AP device in the embodiment is used as the execution subject, and the software upgrade method provided in the embodiment of the present application is exemplarily introduced in combination with the flow chart.

[0177] Specifically, Figure 6 For another flowchart of the software upgrade method provided in the embodiment of the present application, please refer to Figure 6 , the method comprising:

[0178] Step S30: receiving the upgrade information sent by the AC device.

[0179] The upgrade information is sent when the AC device obtains the current level node to be processed from the multi-branch tree and determines from the current level node that the AP device is the AP device to be upgraded.

[0180] Step S31, obtain the upgrade file from the parent node of the AP device according to the upgrade information, and perform software upgrade according to the upgrade file, so that when the AC device determines that the AP device to be upgraded is upgraded successfully, it determines from the multi-branch tree whether there is a child node at the AP device to be upgraded point, and when the AP device to be upgraded has a child node, the child node of the AP device to be upgraded is determined as the new current-level node to be processed.

[0181] The parent node of the AP device is an AC device or an upgraded AP device.

[0182] Optionally, the upgrade information includes device information of a parent node of the AP device and file information of an upgrade file.

[0183] In this embodiment, after receiving the upgrade information sent by the AC device, the AP device can determine whether to establish a communication connection with the parent node based on the device information, and send a second response message to the AC device based on the determination result. After determining to establish a communication connection with the parent node, the AP device can obtain the upgrade file from the parent node based on the file information, and send a third response message to the AC device based on the acquisition result.

[0184] In this embodiment, the AP device may perform software upgrade according to the upgrade file if the upgrade file is successfully acquired and the upgrade file meets the upgrade condition.

[0185] In order to execute the corresponding steps in the above embodiments and various possible methods, a method for implementing a software upgrade device is provided below. It should be noted that the basic principle and technical effects of the software upgrade device provided in this embodiment are the same as those in the above embodiments. For the sake of brief description, for the parts not mentioned in this embodiment, reference can be made to the corresponding contents in the above embodiments.

[0186] For further information, see Figure 7 , Figure 7 The present invention provides a functional module diagram of a software upgrade device provided in an embodiment of the present invention, wherein the software upgrade device is applied to an AC device. The software upgrade device may include: an acquisition module 200 , a sending module 210 , and a determination module 220 .

[0187] The acquisition module 200 is used to acquire the current level nodes to be processed, and determine the AP devices to be upgraded from the current level nodes.

[0188] It can be understood that the acquisition module 200 can also be used to execute the above step S20.

[0189] The sending module 210 is used to send upgrade information to the AP device to be upgraded, so that the AP device to be upgraded obtains the upgrade file from the parent node of the AP device to be upgraded according to the upgrade information and performs software upgrade according to the upgrade file; the parent node of the AP device to be upgraded is an AC device or an upgraded AP device.

[0190] It can be understood that the sending module 210 can also be used to execute the above step S21.

[0191] The determination module 220 is used to determine whether the AP device to be upgraded has child nodes according to the multi-branch tree when it is determined that the AP device to be upgraded is upgraded successfully.

[0192] It can be understood that the determination module 220 can also be used to execute the above step S22.

[0193] The determination module 220 is further configured to determine the child node of the AP device to be upgraded as a new current-level node to be processed if the AP device to be upgraded has a child node, and return to execute the step of obtaining the current-level node to be processed.

[0194] It can be understood that the determination module 220 can also be used to execute the above step S23.

[0195] Optionally, the acquisition module 200 is also used to send upgrade version information to each AP device in the current hierarchical node, so that each AP device determines whether software upgrade is required based on the upgrade version information, and sends a first response information to the AC device based on the determination result; receives the first response information sent by any AP device; if the first response information indicates that the AP device needs software upgrade, the AP device is determined as an AP device to be upgraded.

[0196] Optionally, the acquisition module 200 is also used to determine whether the AP device has child nodes based on the multi-branch tree if the first response information indicates that the AP device does not need software upgrade; if the AP device has child nodes, determine a new parent node for the child node of the AP device from the same-level nodes of the AP device and the parent node of the AP device in the multi-branch tree; wherein the new parent node is the AP device to be upgraded in the same-level nodes of the AP device or is the parent node of the AP device.

[0197] Optionally, the sending module 210 is further used to determine the parent node of the AP device to be upgraded from the multi-branch tree; generate upgrade information according to the device information of the parent node and the file information of the upgrade file, and send the upgrade information to the AP device to be upgraded; wherein the device information is used by the AP device to be upgraded to determine whether to establish a communication connection with the parent node, and send a second response information to the AC device according to the determination result; the file information is used by the AP device to be upgraded to obtain the upgrade file from the parent node when the AP device to be upgraded establishes a communication connection with the parent node, and send a third response information to the AC device according to the acquisition result; receive the second response information sent by the AP device to be upgraded; if the second response information indicates that the AP device to be upgraded has not established a communication connection with the parent node, then according to the multi-branch tree, from the upper-level node of the AP device to be upgraded or the upper-level node of the parent node of the AP device to be upgraded, determine a new parent node for the AP device to be upgraded from the multi-branch tree, and re-enter the step of determining the parent node of the AP device to be upgraded from the multi-branch tree.

[0198] Optionally, the determination module 220 is also used to receive a third response message sent by the AP device to be upgraded; if the third response message indicates that the upgrade file is successfully acquired and the upgrade file meets the upgrade conditions, the AP device to be upgraded is controlled to restart, and when the AP device to be upgraded restarts successfully, it is determined that the AP device to be upgraded is successfully upgraded; if the third response message indicates that the upgrade file fails to be acquired or the upgrade file does not meet the upgrade conditions, the step of sending upgrade information to the AP device to be upgraded is returned to execute.

[0199] Optionally, the software upgrade device may also include a generation module, which is used to obtain the device model of each managed AP device, and divide the AP devices with the same device model into the same upgrade policy group to obtain at least one upgrade policy group; according to the attribute information of each AP device in the upgrade policy group, the AP devices in the upgrade policy group are divided to obtain multiple execution groups; wherein each execution group includes multiple AP devices; for each execution group, each AP device in the execution group is numbered, and the number of nodes at each level of the multi-branch tree is determined according to the number of simultaneously transmitted files corresponding to any AP device, and a multi-branch tree corresponding to each execution group is generated according to the number of nodes at each level and the number of each AP device.

[0200] Optionally, Figure 8 Another functional module diagram of the software upgrade device provided in the embodiment of the present application, the software upgrade device is applied to any AP device. The software upgrade device may include: a receiving module 300 and an upgrade module 310.

[0201] The receiving module 300 is used to receive the upgrade information sent by the AC device; the upgrade information is sent by the AC device when it obtains the current level node to be processed from the multi-branch tree and determines from the current level node that the AP device is the AP device to be upgraded.

[0202] It can be understood that the receiving module 300 can also be used to execute the above step S30.

[0203] The upgrade module 310 is used to obtain the upgrade file from the parent node of the AP device according to the upgrade information, and perform software upgrade according to the upgrade file, so that when the AC device determines that the AP device to be upgraded has been successfully upgraded, it determines from the multi-branch tree whether there is a child node at the AP device to be upgraded, and when the AP device to be upgraded has a child node, the child node of the AP device to be upgraded is determined as a new current-level node to be processed; the parent node of the AP device is the AC device or an upgraded AP device.

[0204] It can be understood that the upgrade module 310 can also be used to execute the above step S31.

[0205] Optionally, the upgrade module 310 is also used to determine whether to establish a communication connection with the parent node based on the device information, and send a second response message to the AC device based on the determination result; after determining to establish a communication connection with the parent node, obtain the upgrade file from the parent node according to the file information, and send a third response message to the AC device based on the acquisition result; when the upgrade file is successfully obtained and the upgrade file meets the upgrade conditions, perform software upgrade according to the upgrade file.

[0206] Optionally, the above modules can be stored in the form of software or firmware. Figure 2 The memory shown in the figure may be fixed in the operating system (OS) of the wireless LAN device and may be Figure 2 Meanwhile, the data and program codes required for executing the above modules can be stored in the memory.

[0207] The embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the software upgrade method provided in the embodiment of the present application can be implemented.

[0208] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a part of the module, program segment or code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0209] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0210] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0211] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A software upgrade method, characterized in that: An AC device applied to a wireless local area network system, the wireless local area network system further comprising a plurality of AP devices managed by the AC device, a multi-branch tree stored in the AC device, the multi-branch tree having the AC device as a root node and the AP device as a child node, the method comprising: Acquire a current level node to be processed, and determine an AP device to be upgraded from the current level node; Sending upgrade information to the AP device to be upgraded, so that the AP device to be upgraded obtains an upgrade file from a parent node of the AP device to be upgraded according to the upgrade information, and performs software upgrade according to the upgrade file; the parent node of the AP device to be upgraded is the AC device or an upgraded AP device; In the case where it is determined that the AP device to be upgraded is upgraded successfully, determining whether the AP device to be upgraded has a child node according to the multi-branch tree; If the AP device to be upgraded has a child node, the child node of the AP device to be upgraded is determined as a new current-level node to be processed, and the process returns to the step of obtaining the current-level node to be processed.

2. The method according to claim 1, characterized in that: The obtaining of the current level node to be processed, and determining the AP device to be upgraded from the current level node, includes: Sending upgrade version information to each of the AP devices in the current level node, so that each of the AP devices determines whether software upgrade is required according to the upgrade version information, and sends first response information to the AC device according to the determination result; Receiving first response information sent by any of the AP devices; If the first response information indicates that the AP device needs to perform software upgrade, the AP device is determined as the AP device to be upgraded.

3. The method according to claim 2, characterized in that The method further comprises: If the first response information indicates that the AP device does not need to perform software upgrade, determining whether the AP device has a child node according to the multi-branch tree; If the AP device has a child node, determining a new parent node for the child node of the AP device from the same-level nodes of the AP device in the multi-branch tree and the parent node of the AP device; The new parent node is an AP device to be upgraded in a node at the same level as the AP device or is a parent node of the AP device.

4. The method according to claim 1, characterized in that The sending the upgrade information to the AP device to be upgraded includes: Determine a parent node of the AP device to be upgraded from the multi-branch tree; Generate the upgrade information according to the device information of the parent node and the file information of the upgrade file, and send the upgrade information to the AP device to be upgraded; The device information is used by the AP device to be upgraded to determine whether to establish a communication connection with the parent node, and to send a second response information to the AC device according to the determination result; the file information is used by the AP device to be upgraded to obtain the upgrade file from the parent node when the AP device to be upgraded establishes a communication connection with the parent node, and to send a third response information to the AC device according to the acquisition result; Receiving second response information sent by the AP device to be upgraded; If the second response information indicates that the AP device to be upgraded has not established a communication connection with the parent node, then according to the multi-branch tree, a new parent node is determined for the AP device to be upgraded from the upper-level node of the AP device to be upgraded or the upper-level node of the parent node of the AP device to be upgraded, and the step of determining the parent node of the AP device to be upgraded from the multi-branch tree is re-entered.

5. The method according to claim 4, characterized in that The method further comprises: Receiving third response information sent by the AP device to be upgraded; If the third response information indicates that the upgrade file is successfully acquired and the upgrade file meets the upgrade condition, control the AP device to be upgraded to restart, and if the AP device to be upgraded restarts successfully, determine that the AP device to be upgraded is successfully upgraded; If the third response information indicates that the upgrade file acquisition fails or the upgrade file does not meet the upgrade condition, the process returns to the step of sending the upgrade information to the AP device to be upgraded.

6. The method according to any one of claims 1 to 5, characterized in that: Before the step of obtaining the current level node to be processed, the method further includes: Obtaining a device model of each of the managed AP devices, and grouping the AP devices with the same device model into the same upgrade policy group, to obtain at least one upgrade policy group; According to the attribute information of each of the AP devices in the upgrade strategy group, the AP devices in the upgrade strategy group are divided to obtain a plurality of execution groups; wherein each of the execution groups includes a plurality of AP devices; For each of the execution groups, the AP devices in the execution group are numbered, the number of nodes at each level of the multi-branch tree is determined according to the number of files transmitted simultaneously corresponding to any of the AP devices, and the multi-branch tree corresponding to each of the execution groups is generated according to the number of nodes at each level and the numbers of the AP devices.

7. A software upgrade method, characterized in that: Applied to any AP device managed by an AC device in a wireless local area network system, the AC device stores a multi-branch tree, the multi-branch tree has the AC device as a root node and the AP device as a child node, the method includes: receiving upgrade information sent by the AC device; the upgrade information is sent by the AC device when the AC device obtains a current level node to be processed from the multi-branch tree and determines from the current level node that the AP device is the AP device to be upgraded; According to the upgrade information, an upgrade file is obtained from the parent node of the AP device, and software is upgraded according to the upgrade file, so that when the AC device determines that the AP device to be upgraded is successfully upgraded, it determines from the multi-branch tree whether the AP device to be upgraded has child nodes, and when the AP device to be upgraded has child nodes, the child nodes of the AP device to be upgraded are determined as new current-level nodes to be processed; the parent node of the AP device to be upgraded is the AC device or the upgraded AP device.

8. The method according to claim 7, characterized in that The upgrade information includes device information of the parent node of the AP device and file information of the upgrade file, and acquiring the upgrade file from the parent node of the AP device according to the upgrade information and performing software upgrade according to the upgrade file includes: Determine whether to establish a communication connection with the parent node according to the device information, and send a second response information to the AC device based on the determination result; After determining to establish a communication connection with the parent node, acquiring the upgrade file from the parent node according to the file information, and sending a third response information to the AC device based on the acquisition result; When the upgrade file is successfully acquired and the upgrade file meets the upgrade condition, the software is upgraded according to the upgrade file.

9. A software upgrade device, characterized in that: An AC device applied to a wireless local area network system, wherein the wireless local area network system further comprises a plurality of AP devices managed by the AC device, wherein a multi-branch tree is stored in the AC device, wherein the multi-branch tree has the AC device as a root node and the AP device as a child node, and wherein the apparatus comprises: An acquisition module, used to acquire a current level node to be processed, and determine an AP device to be upgraded from the current level node; A sending module, configured to send upgrade information to the AP device to be upgraded, so that the AP device to be upgraded obtains an upgrade file from a parent node of the AP device to be upgraded according to the upgrade information, and performs software upgrade according to the upgrade file; the parent node of the AP device to be upgraded is the AC device or an upgraded AP device; A determination module, configured to determine whether the AP device to be upgraded has a child node according to the multi-branch tree when it is determined that the AP device to be upgraded is successfully upgraded; The determination module is further configured to determine the child node of the AP device to be upgraded as a new current-level node to be processed if the AP device to be upgraded has a child node, and return to execute the step of obtaining the current-level node to be processed.

10. A software upgrade device, characterized in that: Applicable to any AP device managed by an AC device in a wireless local area network system, the AC device stores a multi-branch tree, the multi-branch tree has the AC device as a root node and the AP device as a child node, and the device includes: A receiving module, configured to receive the upgrade information sent by the AC device; the upgrade information is sent by the AC device when the AC device obtains the current level node to be processed from the multi-branch tree and determines from the current level node that the AP device is the AP device to be upgraded; An upgrade module is used to obtain an upgrade file from the parent node of the AP device according to the upgrade information, and perform software upgrade according to the upgrade file, so that when the AC device determines that the AP device to be upgraded is successfully upgraded, it determines from the multi-branch tree whether the AP device to be upgraded has child nodes, and when the AP device to be upgraded has child nodes, the child nodes of the AP device to be upgraded are determined as new current-level nodes to be processed; the parent node of the AP device is the AC device or the upgraded AP device.

11. A wireless local area network device, characterized in that: It includes a processor and a memory, the memory stores a computer program that can be executed by the processor, and the processor executes the computer program to implement the software upgrade method described in any one of claims 1 to 6 or the software upgrade method described in any one of claims 7 to 8.

12. A wireless local area network system, characterized in that: It comprises an AC device and a plurality of AP devices managed by the AC device, wherein the AC device is used to implement the software upgrade method described in any one of claims 1-6, and the AP device is used to implement the software upgrade method described in any one of claims 7-8.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the software upgrade method described in any one of 1-6 or the software upgrade method described in any one of claims 7-8 is implemented.