Power grid information processing method and device and electronic equipment

By determining the target cache in the acquisition terminal and transferring data, the problem of unsatisfactory efficiency of power grid information collection and transmission is solved, and more efficient data transmission and real-time information processing are achieved.

CN119396746APending Publication Date: 2025-02-07STATE GRID BEIJING ELECTRIC POWER CO +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411236831.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-04
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

In the prior art, the efficiency of power grid information collection and transmission is not ideal, resulting in delay in data transmission and affecting the real-time nature of information collection and transmission.

Method used

In the multiple acquisition caches of the acquisition terminal, the first target cache is determined, the power grid information is transferred to the first main memory component associated with it, and the second target cache is determined in the multiple delivery caches, and the power grid information is transferred to the power grid information is transferred. to the second target cache for transmission processing.

Benefits of technology

By optimizing the data interaction between cache and memory, the efficiency of grid information collection and transmission is improved, data transmission delay is reduced, and the real-time nature of information collection and transmission is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119396746A_ABST
    Figure CN119396746A_ABST
Patent Text Reader

Abstract

The invention discloses a power grid information processing method and device and electronic equipment. The method comprises the following steps: determining a first target cache in a plurality of acquisition caches of an acquisition terminal, the first target cache being an acquisition cache in which power grid information is cached; the first target cache is controlled to transfer the power grid information to a first main storage assembly associated with the first target cache, and the first main storage assembly is used for transferring the power grid information to a second main storage assembly; determining a second target cache in the plurality of transfer caches, the second target cache being a transfer cache in which the power grid information is not cached; and controlling the second main storage component to transfer the power grid information to the second target cache, the second target cache being used for executing sending processing of the power grid information. According to the invention, the technical problem that the power grid information acquisition and transmission efficiency is not ideal in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power grid information transmission, and in particular to a power grid information processing method, device and electronic equipment. Background Art

[0002] Grid information transmission is an important guarantee for the safety of the power system. Through real-time and accurate information transmission, faults and anomalies in the power system can be discovered and handled in a timely manner, accidents can be prevented from expanding, and the stable operation of the power grid can be guaranteed. Grid information transmission helps to achieve the optimal allocation of power resources. By collecting and analyzing grid operation data, the distribution of power loads can be understood, power generation and transmission plans can be reasonably arranged, and the utilization efficiency of power resources can be improved.

[0003] The related technologies lack detailed settings and optimizations for the interaction between the cache and memory of the acquisition terminal. If the cache strategy is not designed properly, such as improper cache size settings, inefficient cache replacement algorithms, etc., the data in the cache may frequently become invalid or be replaced by errors, thereby affecting the efficiency of data acquisition and transmission. Data transmission between the cache and the memory takes a certain amount of time, which may cause data transmission delays and directly affect the real-time nature of information collection and transmission. Therefore, due to the problem of unsatisfactory efficiency in power grid information collection and transmission in the related technologies.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present invention provide a method, device and electronic device for processing power grid information, so as to at least solve the technical problem of unsatisfactory efficiency of power grid information collection and transmission in the related art.

[0006] According to one aspect of an embodiment of the present invention, a method for processing power grid information is provided, comprising: determining a first target cache among multiple acquisition caches of an acquisition terminal, wherein the first target cache is an acquisition cache that caches power grid information; controlling the first target cache to transfer the power grid information to a first main memory component associated with the first target cache, wherein the first main memory component is used to transfer the power grid information to a second main memory component; determining a second target cache among multiple transfer caches, wherein the second target cache is a transfer cache that does not cache power grid information; controlling the second main memory component to transfer the power grid information to the second target cache, wherein the second target cache is used to perform sending processing of the power grid information.

[0007] Optionally, the multiple acquisition caches respectively correspond to a first identification code, and the first identification code is used to indicate that the purpose of the corresponding acquisition cache is acquisition. Determining the first target cache among the multiple acquisition caches of the acquisition terminal includes: determining the first status codes respectively corresponding to the multiple acquisition caches, wherein the first status code is used to indicate whether the corresponding acquisition cache stores power grid information; performing calculations based on the first identification codes and first status codes respectively corresponding to the multiple acquisition caches to determine the first determination quantities respectively corresponding to the multiple acquisition caches, wherein the first determination quantity indicates that the purpose of the corresponding acquisition buffer is acquisition and that power grid information is cached; and selecting the first target cache among the multiple acquisition caches whose first determination quantity is a first predetermined value.

[0008] Optionally, the method further includes: when the power grid information in the first target cache is transferred, updating a first status code corresponding to the first target cache, and obtaining an updated first status code indicating that the first target cache does not cache power grid information.

[0009] Optionally, the multiple transfer caches respectively correspond to an identification code, and the identification code is used to indicate that the purpose of the corresponding transfer cache is transfer, and determining the second target cache among the multiple transfer caches of the acquisition terminal includes: determining the second status code corresponding to the multiple transfer caches respectively, wherein the second status code is used to indicate whether the corresponding transfer cache stores power grid information; performing calculations based on the second identification codes and the second status codes corresponding to the multiple transfer caches respectively, to determine the second determination quantities corresponding to the multiple transfer caches respectively, wherein the determination quantities indicate that the purpose of the corresponding transfer buffer is transfer and that the power grid information is not cached; and selecting the second target cache among the multiple transfer caches whose second determination quantity is a second predetermined value.

[0010] Optionally, the method further includes: when the second target cache stores power grid information, updating a second status code corresponding to the second target cache, and obtaining an updated second status code indicating that the second target cache caches power grid information.

[0011] Optionally, the first target cache is provided with a first pointer, the first main memory component is provided as a first circular queue, the first circular queue includes a plurality of first queue units, the first pointer points to a first target unit among the plurality of first queue units, and the controlling the first target cache to transfer the power grid information to a first main memory component associated with the first target cache includes: transferring the power grid information in the first target cache to the first target unit according to the first pointer.

[0012] Optionally, the second main memory component is set as a second circular queue, the second circular queue includes multiple second queue units, and the multiple second queue units respectively point to corresponding transfer caches through corresponding second pointers. The control of the second main memory component to transfer the power grid information to the second target cache includes: according to the second pointer pointing to the second target cache, transferring the power grid information from the corresponding second queue unit to the second target cache.

[0013] Optionally, the method further includes: obtaining a first quantity of the multiple acquisition buffers and a second quantity of the multiple transfer buffers; determining a first storage quantity used by the first main memory component based on the first quantity; and determining a second storage quantity used by the second main memory component based on the second quantity.

[0014] According to another aspect of an embodiment of the present invention, a power grid information processing device is provided, comprising: a first determination module, used to determine a first target cache among multiple acquisition caches of an acquisition terminal, wherein the first target cache is an acquisition cache that caches power grid information; a first transfer module, used to control the first target cache to transfer the power grid information to a first main memory component associated with the first target cache, wherein the first main memory component is used to transfer the power grid information to a second main memory component; a second determination module, used to determine a second target cache among multiple transfer caches, wherein the second target cache is a transfer cache that does not cache power grid information; a second transfer module, used to control the second main memory component to transfer the power grid information to the second target cache, wherein the second target cache is used to perform sending processing of the power grid information.

[0015] According to another aspect of an embodiment of the present invention, there is provided an electronic device, comprising: one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement any one of the power grid information processing methods.

[0016] In an embodiment of the present invention, a first target cache is determined among multiple acquisition caches of an acquisition terminal, wherein the first target cache is an acquisition cache that caches power grid information; the first target cache is controlled to transfer the power grid information to a first main memory component associated with the first target cache, wherein the first main memory component is used to transfer the power grid information to a second main memory component; a second target cache is determined among multiple transfer caches, wherein the second target cache is a transfer cache that does not cache power grid information; the second main memory component is controlled to transfer the power grid information to the second target cache, wherein the second target cache is used to perform the sending process of the power grid information. The purpose of optimizing the interaction between power grid information acquisition and transmission is achieved, and the technical effect of improving the efficiency of power grid information acquisition and transmission is realized, thereby solving the technical problem of unsatisfactory efficiency of power grid information acquisition and transmission in related technologies. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0018] Figure 1 is a flow chart of an optional power grid information processing method provided according to an embodiment of the present invention;

[0019] Figure 2 is a principle block diagram of an optional power grid information processing method provided according to an embodiment of the present invention;

[0020] Figure 3 is a schematic flow chart of an optional power grid information processing method provided according to an embodiment of the present invention;

[0021] Figure 4 is a schematic diagram of an optional power grid information processing device provided according to an embodiment of the present invention. DETAILED DESCRIPTION

[0022] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0023] 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. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0024] According to an embodiment of the present invention, a method embodiment of power information processing is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0025] Figure 1 is a flow chart of an optional power grid information processing method according to an embodiment of the present invention, such as Figure 1 As shown, the method comprises the following steps:

[0026] Step S102, determining a first target cache among multiple acquisition caches of the acquisition terminal, wherein the first target cache is an acquisition cache that caches power grid information;

[0027] It can be understood that all the acquisition caches in the acquisition terminal are scanned, and these acquisition caches are used to temporarily store the information collected from the power grid. The first target cache is determined according to the state of the cache (i.e., whether the power grid information has been cached), that is, the acquisition cache that has currently cached the power grid information. Through the above processing, the acquisition cache containing the power grid information can be quickly and accurately located, which provides a clear target for subsequent data processing, reduces unnecessary operations on empty caches or irrelevant caches, and improves processing efficiency.

[0028] In an optional embodiment, multiple acquisition caches respectively correspond to first identification codes, and the first identification code is used to indicate that the purpose of the corresponding acquisition cache is acquisition. Among the multiple acquisition caches of the acquisition terminal, a first target cache is determined, including: determining first status codes corresponding to the multiple acquisition caches respectively, wherein the first status code is used to indicate whether the corresponding acquisition cache stores power grid information; performing calculations based on the first identification codes and first status codes corresponding to the multiple acquisition caches respectively, to determine first determination quantities corresponding to the multiple acquisition caches respectively, wherein the first determination quantity indicates that the purpose of the corresponding acquisition buffer is acquisition and that power grid information is cached; and selecting a first target cache whose first determination quantity is a first predetermined value among the multiple acquisition caches.

[0029] It can be understood that in order to more accurately manage the first target cache in the acquisition terminal, the concept of the first identification code and the first status code is introduced, and the qualified first target cache is screened out by calculating the first determination amount. Each acquisition cache is assigned a corresponding first identification code, and the first identification code is used to clearly identify that the purpose of the cache is to collect power grid information, so as to distinguish caches of different types of purposes (acquisition or transmission). Calculation is performed based on the first identification code and the first status code of each acquisition cache to determine the first determination amount. The above calculation process combines the purpose (judged by the first identification code) and the state (judged by the first status code) of the cache. Only when the purpose of the cache is acquisition and the cache has power grid information, its corresponding first determination amount will be set to a specific first predetermined value (such as a specific positive integer or code). After the first determination amount of all acquisition caches is calculated, the first determination amount is traversed, and the cache whose first determination value is the first predetermined value is selected as the first target cache, that is, the cache in the current system that is used for both acquisition and storage of power grid information. By introducing the first identification code and the first status code, the cache used to collect and store power grid information can be accurately distinguished and identified, unnecessary traversal and inspection are avoided, the data processing process is optimized, and the accuracy of data processing is improved.

[0030] Optionally, the status of each acquisition buffer may be continuously or periodically monitored, and a first status code may be generated or updated for them. The first status code may be binary or other forms of encoding, used to indicate whether the buffer currently stores power grid information. For example, a status code of "1" may indicate that the buffer is full (i.e., power grid information is stored), while a status code of "0" may indicate that the buffer is empty.

[0031] Optionally, under the condition that power grid information needs to be collected, an identification code for collecting power grid information in a pre-set pipeline PIPE (i.e., information pipeline) is obtained, and each identification code for collecting power grid information corresponds to a cache for collecting power grid information (i.e., collection cache), which is used to indicate whether the collection cache contains power grid information;

[0032] The pipeline PIPE is a small storage area in the acquisition terminal for storing information. It is used to temporarily store information and calculation values ​​added to the calculation. The identification code y_eftd=F2111_CJ_EFTD(*sy_sjoh,j) for collecting power grid information is in the pipeline PIPE, where j can be replaced by 1, 2, 3,..., representing the jth identification code for collecting power grid information. An identification code for collecting power grid information (i.e., the first identification code) corresponds to a cache for collecting power grid information (i.e., the acquisition cache). Through the status code (i.e., the first status code) of the identification code for collecting power grid information, it can be determined whether the cache for collecting power grid information (i.e., the acquisition cache) contains power grid information.

[0033] Optionally, a preset power grid information collection status code is first obtained, and an & operation (i.e., logical AND operation) is performed with the identification code (i.e., the first identification code) used for collecting power grid information of each cache used for collecting power grid information (i.e., the collection cache) to obtain the corresponding determination quantity (i.e., the first determination quantity) of each collection cache, and then for any collection cache, if the first determination quantity corresponding to the collection cache is a pre-set quantity (i.e., the first predetermined value), it is determined that the collection cache contains power grid information and is regarded as the first target cache.

[0034] For ease of understanding, the above processing is illustrated by an example, that is, first obtain the corresponding identification code for collecting power grid information of each acquisition buffer, for example: y_eftd = F2111_CJ_EFTD (*sy_sjoh, j), obtain the first status code, for example: sy_eftd->tubuvt, perform & operation on the first status code and the first identification code, and obtain the first determination amount corresponding to each acquisition buffer. If the first determination amount is the first predetermined value, then the acquisition buffer carries the power grid information.

[0035] In an optional embodiment, the method further includes: when the power grid information in the first target cache is transferred, updating the first status code corresponding to the first target cache, and obtaining the updated first status code indicating that the first target cache does not cache the power grid information.

[0036] It can be understood that the power grid information in the first target cache is transferred and the power grid information in the first target cache is moved to another storage location. After the power grid information is successfully transferred, the system needs to update the first status code corresponding to the first target cache. The updated first status code indicates that the cache currently does not cache power grid information, and the corresponding bit in the first status code is updated from a value indicating "cache is full" to a value indicating "cache is empty". By timely updating the first status code of the first target cache, the storage status of the power grid information in the acquisition cache can be accurately reflected, avoiding errors or confusion caused by inconsistent status.

[0037] Step S104, controlling the first target cache to transfer the power grid information to a first main memory component associated with the first target cache, wherein the first main memory component is used to transfer the power grid information to a second main memory component;

[0038] It can be understood that the first target cache is controlled to transfer the power grid information stored therein to the first main memory component associated therewith. The first main memory component is used to temporarily store the power grid information received from the acquisition cache, and prepare to further transfer it to the second main memory component. As a data buffer, the first main memory component effectively alleviates the data transmission pressure between the acquisition cache and the subsequent processing links. Through clear transfer operations, it is ensured that the power grid information can flow to the next processing link in an orderly and efficient manner. The above-mentioned main memory can be understood as internal memory.

[0039] In an optional embodiment, the first target cache is provided with a first pointer, the first main memory component is provided as a first circular queue, the first circular queue includes a plurality of first queue units, the first pointer points to a first target unit among the plurality of first queue units, and the first target cache is controlled to transfer power grid information to a first main memory component associated with the first target cache, including: according to the first pointer, transferring the power grid information in the first target cache to the first target unit.

[0040] It can be understood that a first pointer is configured for the first target cache, and the first pointer is used to indicate the specific location of the data transfer. The first main memory component is set in the form of a first circular queue, and the first circular queue contains multiple first queue units for sequentially storing data transferred from the acquisition cache. The power grid information is temporarily stored in the first target cache. When the power grid information needs to be transferred, the position of the current first pointer is identified and pointed to the first target unit in the first circular queue. According to the indication of the first pointer, the power grid information in the first target cache is transferred to the first target unit in the first circular queue. By using a circular queue as a main memory component, the storage space can be effectively utilized, data fragmentation can be avoided, and the complexity of memory management can be reduced, thereby improving the efficiency of power grid information access. Using a pointer to directly indicate the location of the power grid information transfer simplifies the process of power grid information synchronization, reduces processing time and resource consumption, and makes the transmission of power grid information between the cache and the main memory more efficient and orderly.

[0041] Optionally, the main memory component for collecting power grid information (i.e., the first main memory component) is a queue for temporarily storing the collected power grid information, and the main memory component for transmitting power grid information (i.e., the second main memory component) is a queue for the power grid information to be transmitted. The module malloc() can be used to set the queue for collecting power grid information (i.e., the first main memory component) cj_bj->HC_array[j], and the module malloc() can be used to set the queue for transmitting power grid information (i.e., the second main memory component) cd_bj->HC_array[j]. The amount used for storage of the first main memory component and the amount used for storage of the second main memory component for transmitting power grid information have been obtained, so the corresponding area can be cut out in the main memory according to the amount used for storage of the first main memory component, which is used to send to the queue for collecting power grid information, and the corresponding area can be cut out in the main memory according to the amount used for storage of the main memory for transmitting power grid information, which is used to send to the queue for transmitting power grid information.

[0042] Step S106, determining a second target cache among the multiple transfer caches, wherein the second target cache is a transfer cache that does not cache the power grid information;

[0043] It can be understood that a cache that does not currently cache power grid information is searched among multiple transfer caches as the second target cache. The transfer cache is a cache specifically used to store power grid information to be sent. Selecting an uncached cache can ensure that the newly received power grid information will not be overwritten or lost. By selecting an uncached transfer cache, data overwriting and conflict problems are avoided, the integrity and accuracy of information transfer are guaranteed, the storage space of the transfer cache is reasonably used, and resource utilization is improved.

[0044] In an optional embodiment, multiple transfer caches respectively correspond to identification codes, and the identification codes are used to indicate that the purpose of the corresponding transfer cache is transfer. Among the multiple transfer caches of the acquisition terminal, a second target cache is determined, including: determining second status codes respectively corresponding to the multiple transfer caches, wherein the second status code is used to indicate whether the corresponding transfer cache stores power grid information; performing calculations based on the second identification codes and second status codes respectively corresponding to the multiple transfer caches to determine second determination quantities respectively corresponding to the multiple transfer caches, wherein the determination quantity indicates that the purpose of the corresponding transfer buffer is transfer and that the power grid information is not cached; and selecting a second target cache whose second determination quantity is a second predetermined value among the multiple transfer caches.

[0045] It can be understood that each transfer buffer is assigned a second identification code, which is used to indicate that the purpose of the corresponding buffer is transfer, and can distinguish different buffers (such as acquisition buffer, processing buffer, etc.). Each transfer buffer also corresponds to a second status code, which is used to indicate whether the transfer buffer stores power grid information. The second status code can also be set to a specific value (such as 0 for empty and 1 for full), which can be specifically defined according to system design.

[0046] Traverse all transfer caches, and calculate based on the second identification code (confirming that the purpose is transfer) and the second status code (checking whether power grid information is stored) of the transfer cache to obtain a second determination, indicating that the purpose of the cache is transfer and that power grid information is not currently cached. Among all transfer caches, select the second target cache according to the value of the second determination as the second target cache for subsequent power grid information transfer tasks. By accurately selecting a transfer cache that does not store power grid information as the target cache, overwriting the cache of existing power grid information can be avoided, thereby improving the utilization of cache resources. Selecting an empty or available cache as the target can ensure that power grid information can be transferred quickly and unimpeded, reducing delays caused by waiting for cache space.

[0047] It should be noted that dynamically selecting the target cache based on the current cache status enhances the system's adaptability to different workloads and emergencies. By using identification codes and status codes to track and manage caches, the cache allocation, release, and update processes can be simplified, reducing the complexity of system maintenance.

[0048] Optionally, the second status code may be binary or other forms of encoding, used to indicate whether the cache currently stores power grid information. For example, status code "1" may indicate that the cache is full (ie, stores power grid information), while "0" indicates that the cache is empty.

[0049] Optionally, an identification code for transmitting power grid information in a pre-set pipeline PIPE is obtained, and each identification code for collecting power grid information corresponds to a cache for transmitting power grid information, which is used to indicate whether the corresponding cache for transmitting power grid information contains power grid information;

[0050] Optionally, the identification code cd_eftd=F2111_CD_EFTD(*cd_sjoh,j) used to transmit power grid information is in the pipeline PIPE, where j can be replaced by 1, 2, 3,..., representing the jth identification code used to transmit power grid information. An identification code for collecting power grid information corresponds to a cache for collecting power grid information. The status code of the identification code used to transmit power grid information can determine whether the cache used to transmit power grid information contains power grid information.

[0051] For ease of understanding, an example is used for explanation, that is, first obtain the corresponding identification code (i.e., the second identification code) cd_eftd=F2111_CD_EFTD(*cd_sjoh,j) of each transfer cache for transmitting power grid information, obtain the second status code cd_eftd->tubuvt, perform an & operation (i.e., a logical AND operation) on the second status code and the second identification code for transmitting power grid information, and obtain the corresponding second determination amount of each transfer cache. If the second determination amount is the second predetermined value, then the transfer cache does not carry the power grid information, i.e., the second target cache.

[0052] In an optional embodiment, the method further includes: when the second target cache stores the power grid information, updating the second status code corresponding to the second target cache, and obtaining the updated second status code indicating that the second target cache caches the power grid information.

[0053] It can be understood that the new power grid information is transferred from the data source to the second target cache, and the second status code corresponding to the second target cache is updated. The updated status code will indicate that the cache now stores power grid information. By updating the status code in a timely manner, it can be ensured that the cache state is consistent with the actual situation, thereby avoiding data confusion or errors caused by inconsistent states.

[0054] Step S108, controlling the second main memory component to transfer the power grid information to the second target cache, wherein the second target cache is used to perform sending processing of the power grid information.

[0055] It can be understood that the second main memory component (i.e., the main memory component that previously received the power grid information from the first target cache) is controlled to transfer the power grid information to the second target cache, and the second target cache is used for sending processing. Through the above processing, the complete process connection from data collection, caching, main memory temporary storage to transmission cache is realized, and the operation efficiency of the entire collection terminal is improved.

[0056] In an optional embodiment, the second main memory component is configured as a second circular queue, which includes multiple second queue units. The multiple second queue units respectively point to corresponding transfer caches through corresponding second pointers, and control the second main memory component to transfer power grid information to the second target cache, including: according to the second pointer pointing to the second target cache, the power grid information is transferred from the corresponding second queue unit to the second target cache.

[0057] It can be understood that the second main memory component is configured as a second circular queue, and the second circular queue includes a plurality of second queue units for temporarily storing the power grid information to be transferred. Each second queue unit is assigned a corresponding second pointer for establishing a mapping relationship between the second queue unit and the transfer cache. The power grid information is stored in the second queue unit of the second main memory component. According to the second pointer corresponding to the second queue unit, it points to a predetermined transfer cache, that is, the second target cache. By designing the second main memory component as a circular queue and using a pointer to establish a direct mapping relationship between the queue unit and the transfer cache, the power grid information can be quickly located and transferred, thereby improving the efficiency of power grid information transmission. The combination of the circular queue and the pointer mechanism can flexibly manage the storage and transfer process of data, and can dynamically adjust the size of the queue, change the pointer pointing or add new queue units as needed to adapt to different workloads and data transmission requirements.

[0058] Optionally, the method of associating the main memory component for transmitting power grid information (i.e., the second main memory component) with each cache execution for transmitting power grid information is to set the main memory component for collecting power grid information (i.e., the first main memory component) as a circular queue for transmitting power grid information (i.e., the second circular queue), and to associate the queue units in the circular queue for transmitting power grid information with each cache execution for transmitting power grid information.

[0059] The power grid information is temporarily stored in the power grid information transmission queue (i.e., the second main memory component) cd_bj->HC_array[j], where j can be 1, 2, 3, ..., representing the jth queue unit of the queue. Each second queue unit in the power grid information transmission queue corresponds to a cache for transmitting power grid information (i.e., the transmission cache). The main memory component (second main memory component) for transmitting power grid information is associated with each cache for transmitting power grid information (i.e., the transmission cache), that is, each queue unit in the queue is associated with the cache accordingly, so as to facilitate the corresponding transmission of power grid information when the kernel of the acquisition terminal is running.

[0060] In an optional embodiment, the method further includes: obtaining a first number of multiple acquisition buffers and a second number of multiple transfer buffers; determining a first storage usage of the first main memory component based on the first number; and determining a second storage usage of the second main memory component based on the second number.

[0061] It can be understood that the first number of the plurality of acquisition buffers is obtained for temporarily storing the collected power grid information, and the second number of the plurality of transfer buffers is obtained for transferring the power grid information between the acquisition buffers and the main memory component.

[0062] Based on the first quantity of the acquisition buffer, a first storage amount required by the first main memory component is determined. Based on the second quantity of the transfer buffer, a second storage amount required by the second main memory component is determined. The first storage amount and the second storage amount can be adjusted based on various factors such as the capacity of the acquisition buffer, the data update frequency, and the system load. According to the calculated first storage amount and second storage amount, the first main memory component and the second main memory component are set accordingly.

[0063] Optionally, for the setting of the first main memory component and the second main memory component, this may include increasing or decreasing the number of queue units, adjusting the size of the queue, optimizing the storage structure, etc., to ensure that the main memory component can efficiently store and transmit power grid information. The optimized storage structure and resource allocation help reduce the delay and waiting time of data transmission, thereby improving the response speed and overall performance of the system.

[0064] Optionally, the cache for collecting power grid information (collection cache) and the cache for transmitting power grid information (transmission cache) are caches for transmitting power grid information. 7 For a collection terminal with multiple caches, the maximum number of collection and delivery caches available is 2. 7 Each acquisition buffer and transmission buffer can independently achieve the acquisition of power grid information or the transmission of power grid information. To improve the amount of information collected and transmitted by the core of the acquisition terminal at a time, the required main memory component length is determined based on the total number of buffers used to collect power grid information and the number of buffers used to transmit power grid information.

[0065] Optionally, the number of caches used for collecting power grid information (i.e., the first number) and the number of caches used for transmitting power grid information (i.e., the second number) of the main memory of the power grid information collection terminal can be obtained first, and then the amount of main memory used for collecting power grid information can be determined based on the number of caches used for collecting power grid information, and the amount of main memory used for transmitting power grid information can be determined based on the number of caches used for transmitting power grid information. Because the number of caches used for collecting power grid information and the number of caches used for transmitting power grid information are set by the collection terminal itself, the number of caches used for collecting power grid information and the number of caches used for transmitting power grid information must be determined first, and then the amount of main memory component storage can be accurately determined based on the number of caches.

[0066] Through the above step S102, a first target cache is determined among multiple acquisition caches of the acquisition terminal, wherein the first target cache is an acquisition cache that caches power grid information; step S104, the first target cache is controlled to transfer the power grid information to the first main memory component associated with the first target cache, wherein the first main memory component is used to transfer the power grid information to the second main memory component; step S106, a second target cache is determined among multiple transfer caches, wherein the second target cache is a transfer cache that does not cache power grid information; step S108, the second main memory component is controlled to transfer the power grid information to the second target cache, wherein the second target cache is used to perform the sending process of the power grid information. The purpose of optimizing the interaction between power grid information collection and transmission can be achieved, and the technical effect of improving the efficiency of power grid information collection and transmission is achieved, thereby solving the technical problem of unsatisfactory efficiency of power grid information collection and transmission in related technologies.

[0067] Based on the above embodiments and optional embodiments, the present invention proposes an optional implementation mode: Figure 2 It is a principle block diagram of an optional power grid information processing method provided according to an embodiment of the present invention, wherein the acquisition terminal is communicatively connected to the power information acquisition unit, and the acquisition terminal is used to execute and transmit the power grid information transmitted by the power information acquisition unit. The modules running on the acquisition terminal include: an acquisition module, which is used to acquire the main memory storage usage (first storage usage) for acquiring power grid information, and the main memory storage usage (i.e., second storage usage) for transmitting power grid information. A cutting module, which is used to cut out the main memory component for acquiring power grid information (i.e., the first main memory component) corresponding to the main memory storage usage for acquiring power grid information, and the main memory component for transmitting power grid information (i.e., the second main memory component) corresponding to the main memory storage usage for transmitting power grid information.

[0068] An association module is used to associate the main memory component for collecting power grid information with each cache for collecting power grid information (i.e., acquisition cache), so that when acquiring power grid information, all power grid information in the cache for collecting power grid information is sent to the main memory component for collecting power grid information;

[0069] The transmission module is used to associate the main memory component used to transmit power grid information with each cache used to transmit power grid information (i.e., the transmission cache), so that when the power grid information is transmitted, the power grid information in the main memory component used to transmit the power grid information is sent to each cache used to transmit the power grid information for transmission.

[0070] Figure 3 is a schematic flow chart of an optional power grid information processing method provided according to an embodiment of the present invention, such as Figure 3As shown, the following method can be used for processing: Step S11, obtaining the main memory storage usage for collecting power grid information (ie, the first storage usage) and the main memory storage usage for transmitting power grid information (ie, the second storage usage).

[0071] Step S12, a main memory component for collecting power grid information corresponding to the amount of main memory used to store power grid information (i.e., the first main memory component) and a main memory component for transmitting power grid information corresponding to the amount of main memory used to store power grid information (i.e., the second main memory component) are cut out from the main memory.

[0072] Step S13, the main memory component for collecting power grid information (i.e., the first main memory component) is associated with each cache for collecting power grid information (i.e., the collection cache), so that when the power grid information is acquired, the power grid information in all the caches for collecting power grid information is sent to the main memory component for collecting power grid information;

[0073] Step S14, the main memory component used to transmit power grid information (i.e., the second main memory component) is associated with each cache (i.e., the transmission component) used to transmit power grid information, so that when the power grid information is transmitted, the power grid information in the main memory component used to transmit the power grid information is sent to each cache used to transmit the power grid information for transmission.

[0074] The amount of main memory used to collect power grid information is the main memory component length required by the total number of caches used to collect power grid information, and the amount of main memory used to transmit power grid information is the main memory component length required by the total number of caches used to transmit power grid information.

[0075] In step S11, the method for obtaining the main memory storage usage for collecting power grid information and the main memory storage usage for transmitting power grid information is: first obtain the number of caches used for collecting power grid information and the number of caches used for transmitting power grid information in the main memory of the power grid information collection terminal; then determine the main memory storage usage for collecting power grid information based on the number of caches used for collecting power grid information, and also determine the main memory storage usage for transmitting power grid information based on the number of caches used for transmitting power grid information.

[0076] In step S12, the main memory component for collecting power grid information and the main memory component for transmitting power grid information are queues for temporarily storing collected power grid information and queues for transmitting power grid information.

[0077] In step S13, the method for associating the main memory component for collecting power grid information with each cache execution for collecting power grid information is as follows: the main memory component for collecting power grid information is set as a circular queue for collecting power grid information, and the queue units in the circular queue for collecting power grid information are respectively associated with each cache execution for collecting power grid information.

[0078] In step S14, the method for associating the main memory component used to transmit power grid information with each cache used to transmit power grid information is as follows: the main memory component used to collect power grid information is set as a circular queue for transmitting power grid information (i.e., the first circular queue), and the queue unit in the circular queue for transmitting power grid information (i.e., the first queue unit) is respectively associated with each cache used to transmit power grid information (i.e., the transmission cache).

[0079] The method for collecting power information may include:

[0080] Step S21, under the condition of collecting power grid information, obtain the identification code for collecting power grid information in the pre-set pipeline PIPE (i.e., information pipeline), each identification code for collecting power grid information (i.e., the first identification code) corresponds to a cache for collecting power grid information, which is used to indicate whether the corresponding cache for collecting power grid information contains power grid information.

[0081] Step S22, according to the second identification code used to collect power grid information, from all the caches used to collect power grid information, a destination cache (ie, a first target cache) for collecting power grid information with power grid information is identified.

[0082] Step S23, obtain the circular queue pointer (i.e., the first pointer) for collecting power grid information that is set in advance for the purpose cache for collecting power grid information, and store the power grid information in each purpose cache for collecting power grid information into the circular queue for collecting power grid information corresponding to the circular queue pointer for collecting power grid information (i.e., store it in the first queue unit corresponding to the first main memory component and the first pointer).

[0083] In S22, the preset state code of the collected power grid information (i.e., the first state code) is first obtained, and the & operation (i.e., logical AND operation) is performed with the identification code (i.e., the first identification code) of each collection buffer for collecting power grid information to obtain the first determination amount corresponding to each collection buffer. Then, for any collection buffer, if the first determination amount corresponding to the collection buffer is a pre-set amount (i.e., the first predetermined value), it is determined that the buffer for collecting power grid information is a destination buffer for collecting power grid information (i.e., the first target buffer) with power grid information.

[0084] The method for transmitting power information may include: step S31, under the condition that power grid information is to be transmitted, obtaining an identification code (i.e., a second identification code) for transmitting power grid information in a pre-set pipeline PIPE, corresponding to a cache for transmitting power grid information (i.e., a transmission cache), which is used to indicate whether the corresponding transmission cache contains power grid information.

[0085] Step S32, according to the identification code for transmitting the power grid information (i.e., the second identification code), a destination cache (i.e., the second target cache) for transmitting the power grid information without the power grid information is identified from all the transmission caches;

[0086] Step S33, obtain the circular queue pointer (i.e., the second pointer) for transmitting power grid information that is set in advance for the destination cache for transmitting power grid information, and add the power grid information in the circular queue for collecting power grid information corresponding to the circular queue pointer for collecting power grid information to each destination cache for transmitting power grid information to perform transmission.

[0087] The above optional implementation method achieves at least the following effects: an improved main memory setting rule is achieved in the power grid information receiving and transmitting module of the core of the collection terminal, which is beneficial to faster collection and transmission of power grid information behind the core of the collection terminal, and improves the amount of information collected and transmitted by the core of the collection terminal at a single time, thereby improving the way in which the core of the collection terminal controls the main memory of the collection terminal to collect and transmit power grid information to an efficiency close to the ideal state, thereby achieving the effect of improving the function of the core of the collection terminal controlling the main memory of the collection terminal to collect and transmit power grid information.

[0088] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0089] In this embodiment, a power grid information processing 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 terms "module" and "device" can implement a combination of software and / or hardware for 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.

[0090] According to an embodiment of the present invention, there is also provided an embodiment of a device for implementing a power grid information processing method. Figure 4 is a schematic diagram of a power grid information processing device according to an embodiment of the present invention. Figure 4As shown, the above-mentioned power grid information processing device includes: a first determination module 402, a first transfer module 404, a second determination module 406, and a second transfer module 408. The device is described below.

[0091] A first determination module 402 is used to determine a first target cache among multiple acquisition caches of the acquisition terminal, wherein the first target cache is the acquisition cache that caches the power grid information;

[0092] A first transfer module 404 is connected to the first determination module 402 and is used to control the first target cache to transfer the power grid information to a first main memory component associated with the first target cache, wherein the first main memory component is used to transfer the power grid information to a second main memory component;

[0093] A second determination module 406 is connected to the first transfer module 404 and is used to determine a second target cache among the multiple transfer caches, wherein the second target cache is a transfer cache that does not cache the power grid information;

[0094] The second transfer module 408 is connected to the second determination module 406, and is used to control the second main memory component to transfer the power grid information to the second target cache, wherein the second target cache is used to perform the sending process of the power grid information.

[0095] In a power grid information processing device provided by an embodiment of the present invention, a first determination module is set to determine a first target cache among multiple acquisition caches of an acquisition terminal, wherein the first target cache is an acquisition cache that caches power grid information; a first transfer module is used to control the first target cache to transfer the power grid information to a first main memory component associated with the first target cache, wherein the first main memory component is used to transfer the power grid information to a second main memory component; a second determination module is used to determine a second target cache among multiple transfer caches, wherein the second target cache is a transfer cache that does not cache power grid information; a second transfer module is used to control the second main memory component to transfer the power grid information to the second target cache, wherein the second target cache is used to perform the sending process of the power grid information. The purpose of optimizing the interaction between power grid information collection and transmission is achieved, and the technical effect of improving the efficiency of power grid information collection and transmission is achieved, thereby solving the technical problem of unsatisfactory efficiency of power grid information collection and transmission in the related technology.

[0096] It should be noted that the above modules can be implemented by software or hardware. For example, for the latter, it can be implemented in the following ways: the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0097] It should be noted that the first determination module 402, the first transfer module 404, the second determination module 406, and the second transfer module 408 correspond to steps S102 to S108 in the embodiment, and the examples and application scenarios implemented by the modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above embodiment. It should be noted that the modules as part of the device can be run in a computer terminal.

[0098] It should be noted that the optional or preferred implementation of this embodiment can refer to the relevant description in the embodiment, which will not be repeated here.

[0099] The above-mentioned power grid information processing device may also include a processor and a memory. The first determination module 402, the first transfer module 404, the second determination module 406, the second transfer module 408, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.

[0100] The processor includes a kernel, which retrieves the corresponding program unit from the memory. There can be one or more kernels. The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one storage chip.

[0101] An embodiment of the present invention provides a non-volatile storage medium on which a program is stored. When the program is executed by a processor, a method for processing power grid information is implemented.

[0102] An embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: determining a first target cache among multiple acquisition caches of an acquisition terminal, wherein the first target cache is an acquisition cache that caches power grid information; controlling the first target cache to transfer the power grid information to a first main memory component associated with the first target cache, wherein the first main memory component is used to transfer the power grid information to a second main memory component; determining a second target cache among multiple transfer caches, wherein the second target cache is a transfer cache that does not cache power grid information; controlling the second main memory component to transfer the power grid information to the second target cache, wherein the second target cache is used to perform a sending process of the power grid information. The device in this article may be a server, a PC, etc.

[0103] The present invention also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with the following method steps: determining a first target cache among multiple acquisition caches of an acquisition terminal, wherein the first target cache is an acquisition cache that caches power grid information; controlling the first target cache to transfer the power grid information to a first main memory component associated with the first target cache, wherein the first main memory component is used to transfer the power grid information to a second main memory component; determining a second target cache among multiple transfer caches, wherein the second target cache is a transfer cache that does not cache power grid information; controlling the second main memory component to transfer the power grid information to the second target cache, wherein the second target cache is used to perform sending processing of the power grid information.

[0104] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0105] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0106] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0107] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0108] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0109] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0110] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0111] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0112] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0113] The above are only embodiments of the present invention and are 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 substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims

1. A method for processing power grid information, characterized in that: include: Determine a first target cache among multiple acquisition caches of the acquisition terminal, wherein the first target cache is an acquisition cache that caches power grid information; Control the first target cache to transfer the power grid information to a first main memory component associated with the first target cache, wherein the first main memory component is used to transfer the power grid information to a second main memory component; Determine a second target cache among multiple transfer caches, wherein the second target cache is a transfer cache that does not cache power grid information; Control the second main memory component to transfer the power grid information to the second target cache, wherein the second target cache is used to perform sending processing of the power grid information.

2. The method according to claim 1, characterized in that The multiple acquisition buffers respectively correspond to first identification codes, where the first identification codes are used to indicate that the purpose of the corresponding acquisition buffer is acquisition, and determining a first target buffer among the multiple acquisition buffers of the acquisition terminal includes: Determine first status codes respectively corresponding to the plurality of acquisition buffers, wherein the first status codes are used to indicate whether the corresponding acquisition buffer stores power grid information; Calculating based on the first identification codes and the first status codes respectively corresponding to the plurality of acquisition buffers, determining first determination quantities respectively corresponding to the plurality of acquisition buffers, wherein the first determination quantity indicates that the purpose of the corresponding acquisition buffer is acquisition and that power grid information is cached; Among the multiple acquisition buffers, the first target buffer whose first determined amount is a first predetermined value is selected.

3. The method according to claim 2, characterized in that The method further comprises: When the power grid information in the first target cache is transferred, a first status code corresponding to the first target cache is updated, and the updated first status code indicates that the first target cache does not cache the power grid information.

4. The method according to claim 1, characterized in that The multiple transfer buffers correspond to identification codes respectively, and the identification codes are used to indicate that the purpose of the corresponding transfer buffer is transfer. The second target buffer is determined from the multiple transfer buffers of the acquisition terminal, including: Determine second status codes respectively corresponding to the plurality of transfer buffers, wherein the second status codes are used to indicate whether the corresponding transfer buffer stores power grid information; Performing calculation based on the second identification codes and the second status codes respectively corresponding to the plurality of transfer buffers, determining the second determination amounts respectively corresponding to the plurality of transfer buffers, wherein the determination amounts indicate that the use of the corresponding transfer buffers is transfer and no power grid information is cached; Among the multiple transfer caches, the second target cache whose second determined amount is a second predetermined value is selected.

5. The method according to claim 4, characterized in that The method further comprises: When the second target cache stores the power grid information, the second status code corresponding to the second target cache is updated, and the updated second status code indicates that the second target cache has the power grid information cached.

6. The method according to claim 1, characterized in that The first target cache is provided with a first pointer, the first main memory component is provided with a first circular queue, the first circular queue includes a plurality of first queue units, the first pointer points to a first target unit in the plurality of first queue units, and the controlling the first target cache to transfer the power grid information to the first main memory component associated with the first target cache includes: According to the first pointer, the power grid information in the first target cache is transferred to the first target unit.

7. The method according to claim 1, characterized in that The second main memory component is configured as a second circular queue, the second circular queue includes a plurality of second queue units, the plurality of second queue units respectively point to corresponding transfer caches through corresponding second pointers, and the controlling the second main memory component to transfer the power grid information to the second target cache includes: According to the second pointer pointing to the second target cache, the power grid information is transferred from the corresponding second queue unit to the second target cache.

8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: Obtaining a first number of the plurality of acquisition buffers and a second number of the plurality of delivery buffers; Based on the first quantity, determining a first storage usage amount of the first main memory component; Based on the second quantity, a second storage usage of the second main storage component is determined.

9. A power grid information processing device, characterized in that: include: A first determination module is used to determine a first target cache among multiple acquisition caches of the acquisition terminal, wherein the first target cache is an acquisition cache that caches power grid information; A first transfer module, used for controlling the first target cache to transfer the power grid information to a first main memory component associated with the first target cache, wherein the first main memory component is used for transferring the power grid information to a second main memory component; A second determination module is used to determine a second target cache among a plurality of transfer caches, wherein the second target cache is a transfer cache that does not cache power grid information; The second transfer module is used to control the second main memory component to transfer the power grid information to the second target cache, wherein the second target cache is used to perform sending processing of the power grid information.

10. An electronic device, characterized in that: include: One or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the power grid information processing method described in any one of claims 1 to 8.