Resource recovery method, WiFi chip, storage medium and WiFi router
By implementing scanning and recycling modules in WiFi chips, the unreleased resources are forced to be recycled, and the resource exhaustion problem caused by the not being completely recycled in WiFi wireless communication is solved, and the complete recycling of resources and reliable resource management are achieved.
Patent Information
- Application Number
- CN202311051144.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-18
- Publication Date
- 2025-02-25
AI Technical Summary
In WiFi wireless communication, due to the different resource transfer speeds in the resource application layer and the resource management layer, the resource application layer does not fully feedback the resources after use, resulting in the resource not being completely recycled, which leads to the gradual decrease in available resources in the resource link list, and even resource exhaustion occurs.
By implementing the scanning module and the recycling module in the WiFi chip, the first random access memory RAM (RAM) is scanned according to the feedback signal of the received resource usage completion to find unreleased resource information, and forced recycling of these resources when unreleased resources are found.
This method can promptly discover and forcefully recover unreleased resources, ensuring that the resources distributed each time can be completely recycled and avoid resource exhaustion.
Smart Images

Figure CN119520451A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of wireless communication technology, and in particular to a resource recovery method, a WiFi chip, a storage medium, and a WiFi router. Background Art
[0002] In WiFi wireless communication, the Media Access Control (MAC) layer is divided into a resource application layer and a resource management layer. The premise for the normal operation of the resource application layer is that different types of resources in the resource management layer can always be provided to the resource application layer in a timely manner, and the resource application layer will feedback the types of resources that have been used to the resource management module in the management layer after the resources are used up, including the transmission of data, management and command information, etc. However, the resource transmission speeds in the resource application layer and the resource management layer are different, and the WiFi bandwidth is dynamically configurable in most cases, resulting in the resource application layer intercepting the resources distributed by the resource transmission layer. At the same time, the resource application layer does not fully feedback the resources that have been used up after the resources are used up, so that each type of resources will always have some resources that will not be released back to the resource management module in the resource management layer after use. After multiple rounds of resource distribution and recycling, the available resources in the resource list will become fewer and fewer until the resources are exhausted.
[0003] If the above problems and defects need to be fundamentally solved, the WiFi protocol needs to be optimized and modified. However, the WiFi protocol is complex and widely used. It is not feasible to directly modify the protocol content because the workload is huge. Therefore, in the relevant technology, in addition to being able to distribute and recycle resources normally, the resource management module in the resource management layer also needs a mechanism to recycle various resources that have been distributed but not recovered due to the lack of feedback from the resource application layer, to ensure that resources will not be exhausted during resource transmission. Summary of the invention
[0004] The embodiments of the present invention provide a resource recovery method, a WiFi chip, a storage medium and a WiFi router, so as to at least solve the problem in the related art that a resource recovery method is needed to recover various resources that are not recovered due to the lack of feedback from the resource application layer.
[0005] According to one embodiment of the present invention, a resource recovery method is provided, comprising: scanning a first random access memory RAM according to a received feedback signal indicating completion of use of a first type of resource, wherein the first RAM caches resource information corresponding to resources in a resource linked list, the resource information comprising an identification bit for identifying whether the resources in the resource linked list have been released, the type of resources in the resource linked list, and the storage address of the resources in the resource linked list in the resource linked list; when the resource information of the first type of resource exists in the first RAM and the identification bit identifies the first type of resource that has not been released, forcibly recovering the first type of resource that has not been released in the resource linked list.
[0006] According to another embodiment of the present invention, a WiFi chip is provided, comprising: a scanning module, configured to scan a first random access memory RAM according to a received feedback signal indicating completion of use of a first type of resource, wherein the first RAM caches resource information corresponding to resources in a resource linked list, the resource information comprising an identification bit for identifying whether the resources in the resource linked list have been released, the type of resources in the resource linked list, and a storage address of the resources in the resource linked list in the resource linked list; and a recycling module, configured to forcibly recycle the first type of resources that have not been released in the resource linked list when the resource information of the first type of resources exists in the first RAM and the identification bit identifies the first type of resources that have not been released.
[0007] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps in the above method embodiment when running.
[0008] According to another embodiment of the present invention, a WIFI router is provided, comprising the WiFi chip and the memory in the above embodiment, wherein the WiFi chip implements the steps in the above method embodiment when executing the computer program stored in the memory.
[0009] Through the above-mentioned embodiment of the present invention, since the first RAM is scanned after receiving the feedback signal of the completion of the use of a certain type of resource, the resources of this type that have not been released can be found in time, so as to be forcibly recycled, and it can be ensured that the resources of this type distributed each time can be completely recycled. Therefore, it can solve the problem in the related art that a resource recycling method is needed to recycle various types of resources that have not been recovered due to the lack of feedback from the resource application layer, thereby achieving the effect of avoiding resource exhaustion. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1is a hardware structure block diagram of a WiFi device for running a resource recovery method according to an embodiment of the present invention;
[0011] Figure 2 is a process of a resource recovery method according to an embodiment of the present invention;
[0012] Figure 3 is a structural block diagram of a WiFi chip according to an embodiment of the present invention;
[0013] Figure 4 is a structural block diagram of a WiFi chip according to another embodiment of the present invention;
[0014] Figure 5 is a schematic diagram of a mapping relationship between ptr_RAM and scan_RAM according to an embodiment of the present invention;
[0015] Figure 6 4 is a schematic diagram of resource scanning in the forced recycling phase according to an embodiment of the present invention. DETAILED DESCRIPTION
[0016] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.
[0017] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0018] The method embodiments provided in the embodiments of the present application are applied to a WiFi chip, which is located in a WiFi device, and can also be executed in a mobile terminal, a computer terminal, a network device or a similar computing device. Taking running on a WiFi device as an example, Figure 1 is a hardware structure block diagram of a WiFi device that runs a resource recovery method according to an embodiment of the present invention. Figure 1 As shown, the WiFi device 100 may include a WiFi chip 101 and an external cache unit 104 for storing data, wherein the WiFi chip 101 also includes a functional module for implementing various functions (such as a distribution function and a recycling function) and an internal cache unit 102 for storing data. It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the above-mentioned WiFi device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0019] The internal cache unit 102 or the external cache unit 104 can be used to store computer programs and / or resource data, for example, software programs and modules of application software, such as the computer program corresponding to the resource recovery method in the embodiment of the present invention. The WiFi chip executes various functional applications and data processing by running the computer program stored in the internal cache unit 102 or the external cache unit 104, that is, the above method is implemented. The internal cache unit 102 or the external cache unit 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the internal cache unit 102 or the external cache unit 104 may further include a memory remotely arranged relative to the WiFi device 100, and these remote memories may be connected to the WiFi device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0020] In the process of WIFI communication, in the existing resource distribution and recycling operation methods, the resource application layer will not feedback the resource usage due to various situations of itself, so that the resources cannot be recycled in the normal process. In this way, after multiple rounds of resource distribution and recycling, the resource exhaustion problem will occur. In view of this situation, an embodiment of the present invention provides a resource recycling method running on the above network device.
[0021] Figure 2 is a flow chart of a resource recovery method according to an embodiment of the present invention. In this embodiment, the resource recovery method is executed by a chip (processor) in a WIFI router, such as Figure 2 As shown, the process includes the following steps:
[0022] Step S202: Scan a first random access memory RAM according to a received feedback signal indicating that the use of the first type of resources is completed, wherein the first RAM caches resource information corresponding to the resources in the resource linked list, and the resource information includes an identification bit for identifying whether the resources in the resource linked list have been released, the type of resources in the resource linked list, and the storage address of the resources in the resource linked list in the resource linked list.
[0023] In this embodiment, the resource linked list is located in the second RAM, wherein the resource linked list stores a plurality of resources of different usage types.
[0024] In one embodiment, the second RAM depth is M times the first RAM depth, where M is an integer greater than zero.
[0025] In one embodiment, the resource information further includes: address information of the resources in the resource linked list in the second RAM.
[0026] In one embodiment, before scanning the first random access memory RAM, the method further includes: distributing the first type of resources in the resource list to the resource application layer according to the received application request for the first type of resources, and marking the first type of resources as being in an unreleased state through an identification bit of the first type of resources; and writing the resource information of the first type of resources into the first RAM.
[0027] In the process of using the first type of resources at the resource application layer, generally, the first type of resources will be released to the resource list of the second RAM after the first type of resources are used. At the same time, the identification bit of the first type of resources at the corresponding position of the first RAM is marked as a released state.
[0028] In one embodiment, writing the resource information of the first type of resources into the first RAM includes: splicing the following information of the first type of resources: identification bit, address information in the second RAM and resource type to obtain the resource information of the first type of resources; writing the obtained resource information of the first type of resources into the first RAM.
[0029] In one embodiment, the first RAM caches resource information corresponding to the resources in the resource linked list, including: writing the resource information of the resources in the resource linked list into the corresponding field of the corresponding address of the first RAM according to the address mapping relationship between the first RAM and the second RAM.
[0030] In one embodiment, the address mapping relationship between the first RAM and the second RAM includes: one address of the first RAM corresponds to multiple addresses of the second RAM.
[0031] For example: the resource information of the first N addresses in the second RAM is cached in the first address of the first RAM, where N is an integer greater than 0.
[0032] Step S204: When resource information of the first type of resources exists in the first RAM and the identification bit identifies the first type of resources that have not been released, forcibly reclaim the first type of resources that have not been released in the resource linked list.
[0033] In this embodiment, only one type of resource (first type) is used as an example for illustration. When other types of resources also receive a feedback signal indicating completion of use, the resource recovery method is the same as that of the first type of resources, and this embodiment will not be repeated here.
[0034] Through the above steps, since the first RAM is scanned after receiving the feedback signal that a certain type of resource has been used, the unreleased resources of this type can be found in time, so that they can be forcibly recycled, and it can be ensured that the resources distributed each time can be completely recycled. Therefore, the problem in the related art that a resource recycling method is needed to recycle various types of resources that have not been recovered due to the lack of feedback from the resource application layer can be solved, so as to achieve the effect of avoiding resource exhaustion.
[0035] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0036] In this embodiment, a resource recovery device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0037] Figure 3 is a structural block diagram of a WiFi chip according to an embodiment of the present invention, such as Figure 3 As shown, the WiFi chip includes the following functional modules: a scanning module 10 and a recovery module 20 .
[0038] A scanning module 10 is used to scan a first random access memory RAM according to a received feedback signal indicating that the use of the first type of resources is completed, wherein the first RAM caches resource information corresponding to the resources in the resource linked list, and the resource information includes an identification bit for identifying whether the resources in the resource linked list have been released, the type of the resources in the resource linked list, and the storage address of the resources in the resource linked list in the resource linked list;
[0039] The recycling module 20 is used to forcibly recycle the unreleased first type of resources in the resource linked list when the resource information of the first type of resources exists in the first RAM and the identification bit identifies the unreleased first type of resources.
[0040] In one embodiment, the recycling module 20 is further used to recycle the first type of resources released after the resource application layer has used up the first type of resources.
[0041] In this embodiment, the implementation form of the functional module in the above WiFi chip includes one of the following: hardware implementation, software implementation, firmware implementation, or a combination of the above three implementation forms.
[0042] In this embodiment, when data is stored in a storage device outside the WiFi chip, the WiFi chip can read the external data stored in the external storage device, and when the chip program is running, the steps in the method embodiment are implemented through the distribution module and the recycling module;
[0043] Figure 4 is a structural block diagram of a WiFi chip according to another embodiment of the present invention. Figure 4 As shown, the device includes Figure 3 All modules shown, plus:
[0044] A distribution module 30, configured to distribute the first type of resources in the resource linked list to the resource application layer according to the received application request for the first type of resources, and identify the first type of resources as being in an unreleased state through an identification bit of the first type of resources;
[0045] The writing module 40 is used to write the resource information of the first type of resources into the first RAM and write the first type of resources that are forcibly recovered into the second RAM.
[0046] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0047] To facilitate the understanding of the technical solution provided by the present invention, a detailed description will be given below in conjunction with embodiments of specific scenarios.
[0048] In the resource application layer and resource management layer of the MAC layer, the relevant information and resources of the logical interaction between the resource application layer and the resource management layer will be stored in the resource linked list of the Shared Memory, and the channel bandwidth of the physical layer protocol data unit (PHY protocol data unit, PPDU) sent by the access point will be allocated to multiple sites to transmit data. Therefore, the resource application layer will pre-fetch and attach data according to the commands in the PPDU descriptor.
[0049] In the process of WiFi communication, resources may be exhausted after multiple rounds of resource interaction. An embodiment of the present invention provides a method for forced resource recovery during resource interaction between interactive interfaces in WiFi communication. Through this method, resources that are not recovered in time after distribution can be forced to be recovered, thereby avoiding the situation of resource exhaustion after multiple rounds of resource interaction.
[0050] In the above-mentioned resource forced recycling method of the present embodiment, when the resource linked list already exists in the resource management module, a group of corresponding RAMs for caching resources is newly added (for the convenience of distinction, the resource linked list for storing resources is denoted by ptr_RAM, and the RAMs for caching resource identification bits are denoted by scan_RAM in the following text, wherein ptr_RAM is functionally equivalent to the first RAM in the above-mentioned embodiment, and scan_RAM is functionally equivalent to the second RAM in the above-mentioned embodiment). In addition, corresponding identification bits and resource additional information are set for the resources that interact between the resource application layer and the resource management layer, and then the set resources are cached in the RAM, and the RAM of the cached resources is scanned after receiving the feedback information that the resource use is completed, so that the unrecycled resources can be found and the unrecycled resources can be forced to be recycled.
[0051] For example: when the resource management module receives a resource application request, the resource management layer writes the resource identification bit val to 1 while distributing resources from ptr_RAM, and writes it into the corresponding field of the corresponding address of scan_RAM after splicing it with the additional information of the resource, where the corresponding address can be determined by the address mapping relationship between ptr_RAM and scan_RAM. After the resource is recovered normally, the resource mark bit cached at the corresponding position in scan_RAM is written back to 0. After the resource management module receives the feedback signal that a certain type of resource has been used, it traverses and scans scan_RAM, and forcibly recovers all such cached resources with val of 1 to ensure that no resources are lost.
[0052] The specific implementation process of the above resource forced recycling method is described below to facilitate a better understanding of the present invention.
[0053] In this embodiment, in order to reduce resource consumption, the ptr_RAM depth and the scan_RAM depth are corresponded in a fixed ratio m, that is, the ptr_RAM depth is m times the scan_RAM depth (m is an integer greater than zero), and multiple resource information are cached in one address of scan_RAM, wherein a single resource information is a resource identification bit plus n bits of additional information of the resource (n is an integer greater than zero), and the scan_RAM bit width is p times the single resource information (p is an integer greater than zero), that is, the scan_RAM bit width is p*(n+1). The corresponding cache address in scan_RAM is mapped through the address in ptr_RAM at a fixed ratio m. For example, the resource information in the first m addresses in ptr_RAM is cached in the first address of scan_RAM, and in each address in scan_RAM, the [mn+m-1:mn+mn-1] field stores the mth cache resource information, the [mn+mn-2:mn+m-2n-2] field stores the m-1th resource information, the [mn+m-2n-3:mn+m-3n-3] field stores the m-2th resource information, the [mn+m-3n-4:mn+m-4n-4] field stores the m-3th resource information, and so on. The remaining addresses are the same as the first m addresses for the cache of resources in ptr_RAM.
[0054] Figure 5 is a schematic diagram of the mapping relationship between ptr_RAM and scan_RAM according to an embodiment of the present invention, such as Figure 5 As shown, taking m=4 as an example, the mapping relationship between ptr_RAM and scan_RAM is illustrated, wherein the identification bits of the resources in the four addresses 0, 1, 2, and 3 in ptr_RAM and the additional information are written to the address 0 in scan_RAM, and the [4n+3:3n+3] field in the address 0 caches the 4th resource information, and so on, the [n:0] field caches the 1st resource information.
[0055] In one embodiment, the depth correspondence ratio of ptr_RAM and scan_RAM can be modified according to specific application scenarios and performance requirements. For example, the correspondence relationship is 2 to the power of n, which facilitates shift processing and reduces resource consumption during implementation.
[0056] Figure 6 is a schematic diagram of resource scanning in the forced recycling phase according to an embodiment of the present invention. In this embodiment, the resource type and information such as the address in ptr_RAM are included in the additional information of each resource, where the resource types are divided into A, B, C, and D. When any of the four types of resources A, B, C, and D are used up, the resource application layer will feedback an end signal to the resource management module in the resource management layer.
[0057] For example, when the use of Class A resources is completed, the resource application layer will feedback the feedback signal of the completion of the use of Class A resources to the resource management module in the resource management layer. After receiving this signal, the resource management module starts to scan the scan_RAM address by address and field by field. First, it determines whether the additional information of all cached resources in scan_RAM identifies the resource as Class A resource, and then determines whether val is 1. If both label A and val are 1, only the resources for purpose A are forcibly recycled, such as Figure 6 In mes7, the B, C, and D purpose resources may not have been used up in the resource application layer, so no processing is done. After the distribution is completed and the feedback signal indicating that the corresponding resource has been used up is received, the same processing as the A purpose resource can be done.
[0058] Through the method in the above embodiment of the present invention, two groups of one-to-one corresponding RAMs are used to cache the resource information distributed and recovered by the resource management module, and the current status and address information of the resource are identified by adding val bits and nbit additional information. When a signal that a certain type of resource has ended is received, all fields of all addresses of scan_RAM are traversed to force the recovery of unrecovered resources. Compared with the existing resource distribution and recovery operation method, the embodiment of the present invention can fully recover all distributed resources, and the feasibility of implementation is strong, avoiding the situation where the resource application layer does not feedback the resource usage due to various situations of itself, resulting in insufficient resource recovery, and the situation where resources are exhausted after multiple rounds of resource distribution and recovery will not occur.
[0059] In one embodiment, for different resource types or different uses of resources, the resource list (scan_RAM) and the RAM used for cache (ptr_RAM) are not necessarily in a one-to-one relationship, but may also be in a one-to-many relationship, such as Figure 6 There are four types of resources, A, B, C, and D, in ptr_RAM. The corresponding scan_RAM can use four RAMs to cache the four types of resources respectively. When a certain type of resource is used up, only the RAM that caches this type of resource needs to be scanned. Other information in the resource additional information can also be used as a basis for distinguishing scan_RAM.
[0060] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0061] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0062] An embodiment of the present invention further provides a WiFi router, comprising the WiFi chip and a memory in the above embodiment, wherein a computer program is stored in the memory, and the WiFi chip is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0063] In this embodiment, the WiFi router can be implemented in the form of a processor combined with a memory, wherein the processor is a CPU (Central Processing Unit), an ASIC (Application-Specific Integrated Circuit) or an FPGA (Field Programmable Gate Array), etc., and the memory includes a storage device inside the WiFi chip and / or a storage device outside the WiFi chip.
[0064] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0065] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0066] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A resource recovery method, characterized in that: The resource management layer applied to the WiFi mac layer includes: Scanning a first random access memory RAM according to a received feedback signal indicating that the use of the first type of resources is completed, wherein the first RAM caches resource information corresponding to the resources in the resource linked list, and the resource information includes an identification bit for identifying whether the resources in the resource linked list have been released, the types of the resources in the resource linked list, and the storage addresses of the resources in the resource linked list in the resource linked list; When resource information of the first type of resources exists in the first RAM and the identification bit identifies the first type of resources that have not been released, the first type of resources that have not been released in the resource linked list are forcibly reclaimed.
2. The method according to claim 1, characterized in that in, The resource linked list is located in the second RAM.
3. The method according to claim 2, characterized in that in, The resource information also includes: address information of the resources in the resource linked list in the second RAM.
4. The method according to claim 1, characterized in that: Before scanning the first random access memory RAM, the method further includes: Distribute the first-type resources in the resource linked list to the resource application layer according to the received application request for the first-type resources, and mark the first-type resources as being in an unreleased state through the identification bit of the first-type resources; Writing resource information of the first type of resources into the first RAM.
5. The method according to claim 4, characterized in that Writing resource information of the first type of resources into the first RAM includes: Concatenate the following information of the first type of resource: the identification bit, the address information in the second RAM, and the resource type to obtain the resource information of the first type of resource; The obtained resource information of the first type of resources is written into the first RAM.
6. The method according to claim 2, characterized in that The first RAM caches resource information corresponding to the resources in the resource linked list, including: According to the address mapping relationship between the first RAM and the second RAM, the resource information of the resources in the resource linked list is written into the corresponding field of the corresponding address of the first RAM.
7. The method according to claim 6, characterized in that in, The address mapping relationship between the first RAM and the second RAM includes: one address of the first RAM corresponds to multiple addresses of the second RAM.
8. A WiFi chip, characterized in that: include: A scanning module, configured to scan a first random access memory RAM according to a received feedback signal indicating that the use of the first type of resources is completed, wherein the first RAM caches resource information corresponding to the resources in the resource linked list, and the resource information includes an identification bit for identifying whether the resources in the resource linked list have been released, the types of the resources in the resource linked list, and the storage addresses of the resources in the resource linked list in the resource linked list; A recycling module is used to forcibly recycle the first type of resources that have not been released in the resource linked list when the resource information of the first type of resources exists in the first RAM and the identification bit identifies the first type of resources that have not been released.
9. The WiFi chip according to claim 8, characterized in that: Also includes: a distribution module, configured to distribute the first type of resources in the resource linked list to the resource application layer according to the received application request for the first type of resources, and to mark the first type of resources as being in an unreleased state through an identification bit of the first type of resources; A writing module is used to write the resource information of the first type of resources into the first RAM and write the first type of resources that are forcibly recovered into the second RAM.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 7 when executed by a processor.
11. A WiFi router, characterized in that: The method comprises the WiFi chip and the memory as described in any one of claims 8 to 9, wherein the WiFi chip implements the steps of the method as described in any one of claims 1 to 7 when executing the computer program stored in the memory.