Power information transmission method and device, and nonvolatile storage medium

By correcting the code values ​​and transmission order in the power information transmission records, the problem of long waiting times for less important power information was solved, and timely transmission of less important information was achieved.

CN118748562BActive Publication Date: 2026-01-27STATE GRID BEIJING ELECTRIC POWER CO +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410779971.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2026-01-27
Estimated Expiration
2044-06-17

AI Technical Summary

Technical Problem

Existing technologies only consider the importance of power information during transmission, resulting in problems such as excessively long waiting times and failure to successfully transmit less important power information.

Method used

By acquiring the target transmission records stored in the target container of the power system, including the cumulative waiting frequency and the initial code value, the initial code value is corrected to obtain the target code value. Based on the target code value, the target transmission order is determined, and the power information is transmitted in that order.

Benefits of technology

This approach, by considering the importance of power information and adjusting the transmission order of less important power information based on the cumulative waiting frequency, successfully transmitted less important power information and solved the problem of excessively long waiting times.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118748562B_ABST
    Figure CN118748562B_ABST
Patent Text Reader

Abstract

The application discloses a power information transmission method and device and a nonvolatile storage medium. It relates to the field of power information transmission, and the method comprises the following steps: obtaining a target transmission record of target power information stored in a target container of a power system, wherein the target transmission record comprises an accumulated waiting frequency of the target power information waiting for transmission and an initial code value, and the initial code value is used for indicating the importance of the target power information; in the case that the accumulated waiting frequency is greater than a preset frequency, the initial code value is corrected to obtain a target code value of the target power information; based on the target code value, a target delivery sequence is obtained; and the target power information is transmitted to an information receiving end according to the target delivery sequence. The application solves the technical problem that important power information cannot be successfully transmitted due to the fact that only the importance of the power information is considered for transmission in the related art, and the consideration is not comprehensive, resulting in that the waiting time of the power information with low importance is too long.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power information transmission, and more specifically, to a power information transmission method, apparatus, and non-volatile storage medium. Background Technology

[0002] The power information publishing system is connected to the information receiving device, and the information receiving device is connected to the display control device. The power information publishing system transmits power information to the information receiving device, and the information receiving device transmits the received power information to the display control device for display.

[0003] In related technologies, with the rapid growth of power information, a large amount of highly important power information needs to be transmitted (prioritized transmission). However, transmitting power information based solely on its importance is not comprehensive enough. As a result, much of the less important power information in the power information dissemination system is not transmitted before new, more important power information needs to be transmitted. This leads to excessively long waiting times for the less important power information, which may fail to be transmitted successfully. Consequently, the information receiving device consumes a lot of time but cannot receive the required less important power information.

[0004] There is currently no effective solution to the above problems. Summary of the Invention

[0005] This invention provides a method, apparatus, and non-volatile storage medium for transmitting power information, thereby at least solving the technical problem that, in related technologies, only the importance of power information is considered in the transmission process, resulting in insufficient consideration of all factors and excessively long waiting times for power information of lower importance, which may lead to unsuccessful transmission.

[0006] According to one aspect of the present invention, a power information transmission method is provided, comprising: acquiring a target transmission record of target power information stored in a target container of a power system, wherein the target transmission record includes a cumulative waiting frequency of the target power information awaiting transmission and an initial code value, the initial code value being used to indicate the importance of the target power information; when the cumulative waiting frequency is greater than a preset frequency, correcting the initial code value to obtain a target code value of the target power information, wherein the importance of the target power information corresponding to the target code value is greater than the importance of the target power information corresponding to the initial code value; obtaining a target transmission order based on the target code value; and transmitting the target power information to an information receiving end according to the target transmission order.

[0007] Optionally, when the cumulative waiting frequency is greater than a preset frequency, correcting the initial code value to obtain the target code value of the target power information includes: when the initial code value is greater than a first preset value and the cumulative waiting frequency is greater than the preset frequency, replacing the initial code value with the first preset value to obtain the target code value, wherein the first preset value is used to indicate the importance of the target power information as a primary transmission level.

[0008] Optionally, the step of replacing the initial code value with the first preset value to obtain the target code value when the initial code value is greater than the first preset value and the cumulative waiting frequency is greater than the preset frequency includes: when the initial code value is greater than the first preset value and the cumulative waiting frequency is greater than the preset frequency, acquiring a plurality of first transmission records stored in the target container, wherein the first transmission records are used to indicate the transmission records corresponding to the plurality of power information stored in the target container respectively; detecting whether the initial code value is the lowest code value among the code values ​​corresponding to the plurality of first transmission records; when the initial code value is the lowest code value, storing the target transmission record in the transmission area and detecting whether there is a second transmission record in the transmission area, wherein the second transmission record is used to indicate the transmission record stored in the transmission area with a code value of the first preset value; when the second transmission record is detected not to exist, replacing the initial code value in the transmission area with the first preset value to obtain the target code value.

[0009] Optionally, the method further includes: if the initial code value is detected to be not the minimum code value, storing the target transmission record in a waiting area, and detecting whether a third transmission record is stored in the waiting area, wherein the waiting area is used to store third transmission records corresponding to power information to be transmitted with a cumulative waiting frequency higher than a preset frequency; if at least one third transmission record corresponding to power information is stored in the waiting area, determining whether there is a first code value greater than the initial code value among the code values ​​corresponding to at least one power information; if the first code value exists among the code values ​​corresponding to at least one power information, subtracting a second preset value from the first code value to obtain the processed code value corresponding to at least one power information; if the processed code value corresponding to at least one power information is greater than the initial code value, storing the target transmission record in a transmission area, and detecting whether a second transmission record exists; if the second transmission record is detected to be absent, replacing the initial code value in the transmission area with the first preset value to obtain the target code value.

[0010] Optionally, the method further includes: if the third transmission record is not stored in the waiting area, storing the target transmission record in the transmission area and detecting whether the second transmission record exists; if the second transmission record is detected to be absent, replacing the initial code value in the transmission area with the first preset value to obtain the target code value.

[0011] Optionally, if the target transmission record also includes a pointer offset, then transmitting the target power information to the information receiving end according to the target transmission order includes: determining the target position of the target power information in the target buffer area of ​​the power system based on the pointer offset; obtaining the target power information from the target position; and transmitting the obtained target power information to the information receiving end according to the target transmission order.

[0012] Optionally, after obtaining the target power information from the target location and transmitting the obtained target power information to the information receiving end, the method includes: receiving a feedback signal returned by the information receiving end; based on the feedback signal, deleting the target code value in the transmission area, and adding a preset frequency to the cumulative waiting frequency corresponding to other power information collected by the power system, wherein the other power information is power information collected by the power system other than the target power information.

[0013] According to another aspect of the present invention, a power information transmission device is also provided, comprising: an acquisition module, configured to acquire a target transmission record of target power information stored in a target container of a power system, wherein the target transmission record includes a cumulative waiting frequency of the target power information awaiting transmission and an initial code value, the initial code value being used to indicate the importance of the target power information; a correction module, configured to correct the initial code value when the cumulative waiting frequency is greater than a preset frequency, to obtain a target code value of the target power information, wherein the importance of the target power information corresponding to the target code value is greater than the importance of the target power information corresponding to the initial code value; a transmission order determination module, configured to obtain a target transmission order based on the target code value; and a transmission module, configured to transmit the target power information to an information receiving end according to the target transmission order.

[0014] According to another aspect of the present invention, a non-volatile storage medium is also provided, the non-volatile storage medium storing a plurality of instructions adapted for loading by a processor and executing any one of the power information transmission methods described herein.

[0015] According to another aspect of the present invention, a computer program product is also provided, including a computer program that, when executed by a processor, implements the steps of any of the power information transmission methods described above.

[0016] In this embodiment of the invention, a target transmission record of target power information stored in a target container of a power system is obtained. This record includes a cumulative waiting frequency for the target power information to be transmitted and an initial code value, where the initial code value indicates the importance of the target power information. If the cumulative waiting frequency is greater than a preset frequency, the initial code value is corrected to obtain a target code value for the target power information. The importance of the target power information corresponding to this target code value is greater than the importance of the target power information corresponding to the initial code value. Based on the target code value, a target transmission order is obtained. The target power information is then transmitted to the information receiving end according to this target transmission order. This achieves the goal of considering both the importance and cumulative waiting frequency when transmitting power information, thereby realizing the technical effect of adjusting the target transmission order of less important power information based on the cumulative waiting frequency, and successfully transmitting less important power information. This solves the technical problem in related technologies where only the importance of power information is considered during transmission, resulting in incomplete consideration of factors and excessively long waiting times for less important power information, leading to unsuccessful transmission. Attached Figure Description

[0017] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:

[0018] Figure 1 This is a flowchart of a power information transmission method according to an embodiment of the present invention;

[0019] Figure 2 This is a flowchart of an optional power information transmission method according to an embodiment of the present invention;

[0020] Figure 3 This is a schematic diagram of a power information transmission device according to an embodiment of the present invention;

[0021] Figure 4 This is a schematic diagram of an optional power information transmission device according to an embodiment of the present invention. Detailed Implementation

[0022] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort 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, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0024] First, to facilitate understanding of the embodiments of the present invention, some terms or nouns involved in the present invention will be explained below:

[0025] A code value typically refers to the importance of a piece of information in achieving its intended transmission. This code value may be a number used to measure the criticality of electrical information throughout the transmission process. In the power sector, the importance of electrical information is often directly related to the stability, efficiency, and security of energy supply.

[0026] Cumulative wait frequency refers to the total number of times a certain event or task requires waiting within a specific time period. This metric can be used to measure the busyness or efficiency of a system, and is typically used to evaluate service quality or optimize processes.

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

[0028] Figure 1 This is a flowchart of a power information transmission method according to an embodiment of the present invention, such as... Figure 1 As shown, the method includes the following steps:

[0029] Step S102: Obtain the target transmission record of the target power information stored in the target container of the power system. The target transmission record includes the cumulative waiting frequency of the target power information waiting to be transmitted and the initial code value. The initial code value is used to indicate the importance of the target power information.

[0030] Optionally, target power information within the power system is transmitted to an information receiving end, which then transmits the received power information to a display control device for display. The power information includes the operating status of the power grid, the operating status of equipment within the grid, information about users within the grid, information about grid personnel, environmental information of the grid, and weather information for the date. A target transmission record corresponds one-to-one with the target power information, including the initial code value and cumulative waiting frequency of the target power information. By comprehensively considering the data within the target transmission record, the target transmission order of the target power information is determined. This effectively achieves the goal of considering both the importance of the power information and the cumulative waiting frequency, thereby realizing the technical effect of adjusting the target transmission order of less important power information based on the cumulative waiting frequency, and successfully transmitting less important power information.

[0031] Optionally, before the target power information within the power system is transmitted to the information receiving device, the initial code values ​​of each target transmission record in the target container are arranged in ascending order according to their numerical values. That is, the lower the initial code value of the corresponding power information in the target transmission record, the higher the importance of the target power information, and the higher its priority for transmission. The target container stores the transmission records of the power information to be transmitted. The collected power information is stored in the target buffer area according to a predetermined transmission order, which is determined based on the importance of the power information to be transmitted. For example, the target container contains 2... 4 Each transmission record can correspond one-to-one with 2 4 The initial code values ​​of each transmission record in the target container are zero, one, two...fourteen, fifteen in ascending order. The transmission order is determined according to the above sorting. The power information corresponding to the initial code value of zero is transmitted first, and the remaining power information is transmitted in sequence.

[0032] Step S104: If the cumulative waiting frequency is greater than the preset frequency, the initial code value is corrected to obtain the target code value of the target power information, wherein the importance of the target power information corresponding to the target code value is greater than the importance of the target power information corresponding to the initial code value.

[0033] Optionally, if the cumulative waiting frequency exceeds a preset frequency, meaning the target power information corresponding to that cumulative waiting frequency has been waiting for too long without being transmitted, it may be because the initial code value corresponding to that target power information is low. This results in other power information with higher initial code values ​​being transmitted, preventing the target power information from being successfully transmitted. Since the waiting time for this target power information is too long, the initial code value can be adjusted by combining the cumulative waiting frequency. Specifically, the importance of the target power information with a high cumulative waiting frequency can be increased, thereby adjusting the target power information's transmission frequency to a higher position, allowing the target power information with an excessively high cumulative waiting frequency to be transmitted as quickly as possible. This solves the technical problem in related technologies where only the importance of power information is considered for transmission, resulting in an incomplete consideration of factors and causing power information of lower importance to have excessively long waiting times without successful transmission.

[0034] In one optional embodiment, when the cumulative waiting frequency is greater than a preset frequency, the initial code value is corrected to obtain the target code value of the target power information, including: when the initial code value is greater than a first preset value and the cumulative waiting frequency is greater than the preset frequency, the initial code value is replaced with the first preset value to obtain the target code value, wherein the first preset value is used to indicate the importance of the target power information as the degree of primary transmission.

[0035] Optionally, if the cumulative waiting frequency exceeds a preset frequency, it indicates that the target power information may be of low importance, leading to prolonged transmission delays. In this case, the initial code value of the target power information is replaced with a first preset code value, increasing the importance of the target power information and thus prioritizing its transmission. For example, if the initial code value of the target power information is fifteen when the cumulative waiting frequency exceeds the preset frequency, and since the first preset code value represents the priority level for transmission (i.e., a code value of zero), the initial code value of the target power information can be replaced with zero. In this case, the target power information has the highest importance and is transmitted with priority. This achieves the technical effect of adjusting the transmission order of less important power information based on the cumulative waiting frequency, successfully transmitting less important power information.

[0036] Optionally, the transmission records in the target container are persistent and cyclical, meaning they are transmitted in a sequence from code value zero to code value fifteen. After the power information with code value fifteen is transmitted, the transmission state jumps back to code value zero, and this cycle continues. Using 2 2The storage unit stores bits, enabling cyclic operation within a small target container; the transmission record of the target container has control capabilities, allowing the code value in the transmission record to be incremented or decremented by one. For example, a transmission record with a code value of one is incremented by one and becomes a transmission record with a code value of two, or a transmission record with a code value of zero is decremented by one and becomes a transmission record with a code value of fifteen.

[0037] In an optional embodiment, when the initial code value is greater than a first preset value and the cumulative waiting frequency is greater than a preset frequency, the initial code value is replaced with the first preset value to obtain the target code value. This includes: when the initial code value is greater than the first preset value and the cumulative waiting frequency is greater than the preset frequency, acquiring multiple first transmission records stored in the target container, wherein the first transmission records are used to indicate the transmission records corresponding to the multiple power information stored in the target container; detecting whether the initial code value is the lowest code value among the code values ​​corresponding to the multiple first transmission records; when the initial code value is the lowest code value, storing the target transmission record in the transmission area, and detecting whether there is a second transmission record in the transmission area, wherein the second transmission record is used to indicate the transmission record with a code value of the first preset value stored in the transmission area; when no second transmission record is detected, replacing the initial code value in the transmission area with the first preset value to obtain the target code value.

[0038] Optionally, if the initial code value is greater than a first preset value, it means the importance of the initial code value is lower than the first preset value. In this case, due to its low importance, it cannot be successfully transmitted. If the cumulative waiting frequency is higher than a preset frequency, it means the waiting time for the target power information corresponding to the initial code value is too long, and it has not been successfully transmitted. First, the first transmission records corresponding to multiple power information within the target container can be obtained. If the initial code value is the lowest among the multiple first transmission records, it means that the target power information is of the highest importance compared to the multiple power information within the target container, and can be transmitted with priority. The target transmission record corresponding to the target power information is then stored in the transmission area and awaits transmission within the transmission area. To prioritize the transmission of the target power information, it can be checked whether a second transmission record with a code value of the first preset value exists in the transmission area. If no second transmission record exists, the initial code value of the target power information can be replaced with the first preset value. At this point, the importance of the target power information in the transmission area is increased to the highest, and it can be transmitted with priority. This achieves the effect of successfully transmitting target power information with low importance and a high cumulative waiting frequency.

[0039] In an optional embodiment, the method further includes: if the initial code value is detected to be not the minimum code value, storing the target transmission record in a waiting area, and detecting whether a third transmission record is stored in the waiting area, wherein the waiting area is used to store the third transmission record corresponding to the power information to be transmitted with a cumulative waiting frequency higher than a preset frequency; if at least one third transmission record corresponding to power information is stored in the waiting area, determining whether there is a first code value greater than the initial code value among the code values ​​corresponding to at least one power information; if there is a first code value among the code values ​​corresponding to at least one power information, subtracting a second preset value from the first code value to obtain the processed code value corresponding to at least one power information; if the processed code value corresponding to at least one power information is greater than the initial code value, storing the target transmission record in a transmission area, and detecting whether a second transmission record exists; if no second transmission record is detected, replacing the initial code value in the transmission area with a first preset value to obtain the target code value.

[0040] Optionally, the initial code value is compared with the code values ​​in the first transmission records corresponding to multiple power information within the target container. If the initial code value is not the lowest code value, it indicates that the initial code value is of low importance and cannot be stored in the transmission area for transmission. In this case, the target transmission record corresponding to the target power information can be stored in the waiting area. Within the waiting area, there are third transmission records corresponding to power information to be transmitted that have a cumulative waiting frequency higher than a preset frequency. If a third transmission record exists in the waiting area, the power information corresponding to the third transmission record in the waiting area is preferentially stored in the transmission area; that is, the transmission priority of the power information corresponding to the third transmission record in the waiting area is higher than the transmission priority of the power information corresponding to the first transmission record in the target container.

[0041] Optionally, after storing the target transmission record in the waiting area, the third transmission record stored in the waiting area is retrieved. The code value in the third transmission record is compared to see if there is a first code value greater than the initial code value. The first code value is then subtracted from the second preset value to obtain the processed code value. Since the existence of the third transmission record in the waiting area indicates that the waiting time of the third transmission record is longer than that of the target transmission record (the third transmission record entered the waiting area earlier than the target transmission record), storing the target transmission record in the waiting area may result in the initial code value in the target transmission record being less than the code value in the third transmission record. This means that the importance of the target power information corresponding to the target transmission record is higher than the importance of the power information corresponding to the third transmission record. However, since the waiting time of the power information corresponding to the third transmission record is longer than that of the target power information, it is necessary to comprehensively consider the importance and the cumulative waiting frequency. The first code value in the third transmission record that is higher than the initial code value can be subtracted from the second preset code value, which increases the importance of the power information in the third transmission record that is lower than the target power information. The second preset code value is one, which is the first code value minus one.

[0042] Optionally, the processed code value of the third transmission record is compared with the initial code value. The processed code value and the initial code value are sorted from low to high. If the initial code value is the lowest, it can be stored in the transmission area. Then, it is determined whether a second transmission record exists. If no second transmission record exists, the initial code value is replaced with the first preset code value, and the target power information corresponding to the initial code value is transmitted first. If the initial code value is not the lowest, there is power information with a long waiting time and higher importance than the initial code value. The third transmission record with a lower code value than the initial code value can be stored in the transmission area first. That is, the processed code value of the third transmission record is compared with the initial code value and sorted from low to high, and then stored in the transmission area for transmission. This effectively achieves the effect of successfully transmitting power information with lower importance and higher cumulative waiting frequency.

[0043] Optionally, for example, if the initial code value is seven (less than fifteen and greater than zero), the target transmission record in the target container is stored in the waiting area, that is, the initial code value of the corresponding target power information and the cumulative waiting frequency in the target transmission record are stored in the waiting area; the code value of the third transmission record in the waiting area is higher than the first code value of the initial code value (seven), and the second preset code value (one) is subtracted, that is, the first code value from eight to fifteen is subtracted by one, that is, the records with code value of eight to fifteen are corrected to records with code value of seven to fourteen; the processed code values ​​are sorted and stored in the transmission area according to the sorting order. It should be noted that after the initial code value is moved to the transmission area, it can be placed at the position of the highest code value (xv) in the transmission area to avoid disrupting the transmission order that needs to be transmitted before the initial code value is stored in the transmission area. If there is no second transmission record with a value of zero in the transmission area, the initial code value is moved from the position of the highest code value (xv) to the position of the lowest code value (zero) for priority transmission, thereby achieving the effect of successfully transmitting power information with low importance and high cumulative waiting frequency.

[0044] Optionally, since the transmission records corresponding to the power information in the transmission area are transmitted from zero to fifteen and then from fifteen to zero, a continuous cyclical state is achieved during the transmission process. Furthermore, if the target transmission record is inserted according to the initial code value for the transmission record to be transmitted in the transmission area, it may disrupt the original transmission order. Therefore, when the initial code value is not the lowest code value, the initial code value is first replaced with the highest code value. When there is no second transmission record at the lowest code value, the initial code value is then replaced with the first preset code value to obtain the target code value.

[0045] In an optional embodiment, the method further includes: if no third transmission record is stored in the waiting area, storing the target transmission record in the transmission area and detecting whether a second transmission record exists; if no second transmission record is detected, replacing the initial code value in the transmission area with a first preset value to obtain the target code value.

[0046] Optionally, if there is no third transmission record in the waiting area, there is no power information with a cumulative waiting frequency higher than the preset frequency. The target power information in the waiting area is the lowest code value. The target transmission record can be stored in the transmission area. If there is no second transmission record in the transmission area, the initial code value is replaced with the first preset value, thereby achieving the effect of successfully transmitting power information with low importance and high cumulative waiting frequency.

[0047] Step S106: Based on the target code value, obtain the target transmission order;

[0048] Optionally, a first transmission order is obtained based on the sorting of the target code values ​​in the waiting area. This first transmission order is the order in which the target code values ​​are stored from the waiting area to the transmission area. After the target code values ​​are stored in the transmission area, the target code values ​​are replaced with a first preset code value, thereby obtaining the target transmission order in the transmission area. This target transmission order is the order in which the target power information corresponding to the target code values ​​is transmitted.

[0049] Step S108: Transmit the target power information to the information receiving end according to the target transmission order.

[0050] Optionally, the target transmission order is obtained by adjusting the initial code value after comprehensively considering the cumulative waiting frequency and the importance of the target power information. Based on the above target transmission order, the target power information is transmitted to the information receiving end in sequence. After receiving the target information, the information receiving end displays the target information on the display device for easy viewing by staff.

[0051] In an optional embodiment, if the target transmission record also includes a pointer offset, transmitting the target power information to the information receiving end according to the target transmission order includes: determining the target position of the target power information in the target buffer area of ​​the power system based on the pointer offset; obtaining the target power information from the target position; and transmitting the obtained target power information to the information receiving end according to the target transmission order.

[0052] Optionally, the target transmission record also includes a pointer offset. Based on the target transmission record within the transmission area, the target power information in the target buffer area of ​​the power system is located, and the target power information is then transmitted. Specifically, if the target code value is a first preset code value (zero), it indicates that the target power information is of the highest importance and is about to be transmitted. Based on the pointer offset included in the target transmission record with the target code value of the first preset code value, the target position of the target power information in the target buffer area of ​​the power system is determined, thus identifying the target power information. The acquired target power information is then transmitted to the information receiving end according to the target transmission order, effectively realizing the transmission of power information.

[0053] In one optional embodiment, after obtaining target power information from the target location and transmitting the obtained target power information to the information receiving end, the method includes: receiving a feedback signal returned by the information receiving end; based on the feedback signal, deleting the target code value in the transmission area, and adding a preset frequency to the cumulative waiting frequency corresponding to other power information collected by the power system, wherein the other power information is power information collected by the power system other than the target power information.

[0054] Optionally, to prevent the power system from mistakenly believing that the power information has been successfully transmitted when the target power information has not been successfully transmitted, and thus clearing the transmitted power information, after the information receiving end receives the successful transmission of the target power information, it returns a feedback signal to the power system. Based on the feedback signal, the target transmission record already transmitted in the transmission area and the target power information already transmitted in the target buffer area are cleared.

[0055] Optionally, after receiving the feedback signal, the cumulative waiting frequency corresponding to the power information other than the record with a code value of zero in the power system is added to a preset frequency. The unit of the preset frequency can be seconds, and the preset frequency can be one, that is, the cumulative waiting frequency is added by one.

[0056] Optionally, when new power information to be transmitted is collected, the transmission record of the power information to be transmitted can be sent to the target container in real time. The power information to be transmitted is placed in the corresponding position of the target container according to the initial code value in the transmission record, that is, the transmission record is inserted between the existing transmission records in the target container, and the cumulative waiting frequency of the power information to be transmitted is set to zero. If there is no case where the cumulative waiting frequency is lower than the preset frequency, the pre-set transmission order is repeatedly executed based on the code value until the cumulative waiting frequency of the target transmission record is higher than the preset frequency. Then, steps S102 to S108 are combined, and the transmission is performed by comprehensively considering the waiting time and importance.

[0057] Through the above steps S102 to S108, the goal of transmitting power information can be achieved by considering both the importance of the power information and the cumulative waiting frequency. This realizes the technical effect of adjusting the target transmission order of power information with lower importance based on the cumulative waiting frequency, and successfully transmitting power information with lower importance. This solves the technical problem that in related technologies, only the importance of power information is considered for transmission, which is not comprehensive and results in excessively long waiting times for power information with lower importance, but cannot be successfully transmitted.

[0058] Based on the above embodiments and optional embodiments, the present invention proposes an optional implementation method. Figure 2 This is a flowchart of an optional power information transmission method according to an embodiment of the present invention, such as... Figure 2 As shown, the method includes:

[0059] S1, obtain the cumulative waiting frequency of power information corresponding to multiple transmission records in the target container set within the power system;

[0060] S2, when the cumulative waiting frequency of the target transmission record is not lower than the preset frequency, the initial code value in the target transmission record can be replaced with the first preset code value corresponding to the lowest code value when there is no lowest code value (the code value with the highest importance), that is, when the record of the lowest code value is empty (NULL).

[0061] S21, if the initial code value is lower than the highest code value (the code value with the lowest importance) but higher than the lowest code value, store the target transmission record in the set waiting area;

[0062] S22, subtract the second preset code value from the first code value in the third transmission record stored in the waiting area whose code value is higher than the initial code value;

[0063] S23, sort the third transmission record and the target transmission record in the waiting area according to the code value, and based on the sorting result, store the transmission record in the waiting area at the highest code value in the transmission area, and change the corresponding code value to the highest code value.

[0064] S24, when there is no lowest code value (the code value with the highest importance) in the transmission area, replace the highest code value corresponding to the initial code value with the lowest code value (the first preset code value).

[0065] S3, after replacing the initial code value corresponding to the target transmission record with the lowest code value, obtain the pointer offset in the target transmission record corresponding to the lowest code value that is used to indicate the location of the target power information;

[0066] S4 obtains the target power information within the target buffer area of ​​the power system based on the pointer offset, and transmits the target power information to the information receiving end.

[0067] It should be noted that if each cumulative waiting frequency is lower than the preset frequency, the pre-set transmission order will be repeatedly executed in the absence of a minimum code value until the cumulative waiting frequency of the target transmission record is not lower than the preset frequency, and then steps S1 to S4 above will be executed.

[0068] This invention can transmit power information when the cumulative waiting frequency is not lower than a preset frequency. This achieves the process of prioritizing the transmission of power information in the event of a power information waiting timeout. It effectively avoids the problem of power information of low importance taking a long time to be transmitted, the problem of the information receiving end taking a long time to receive the required power information, and the problem of the display control device taking a long time to display the required power information. This is beneficial to the defect of power information monitoring.

[0069] This embodiment also provides a power information transmission device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the terms "module" and "device" can refer to a combination of software and / or hardware that performs a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0070] According to an embodiment of the present invention, an apparatus embodiment for implementing the above-described power information transmission method is also provided. Figure 3 This is a schematic diagram of the structure of a power information transmission device according to an embodiment of the present invention, such as... Figure 3 As shown, the aforementioned power information transmission device includes: an acquisition module 300, a correction module 302, a transmission order determination module 304, and a transmission module 306, wherein:

[0071] The acquisition module 300 is used to acquire the target transmission record of the target power information stored in the target container of the power system. The target transmission record includes the cumulative waiting frequency of the target power information waiting to be transmitted and the initial code value. The initial code value is used to indicate the importance of the target power information.

[0072] The correction module 302, connected to the acquisition module 300, is used to correct the initial code value when the cumulative waiting frequency is greater than the preset frequency, so as to obtain the target code value of the target power information, wherein the importance of the target power information corresponding to the target code value is greater than the importance of the target power information corresponding to the initial code value.

[0073] The transmission order determination module 304 is connected to the correction module 302 and is used to obtain the target transmission order based on the target code value;

[0074] The transmission module 306 is connected to the transmission order determination module 304 and is used to transmit the target power information to the information receiving end according to the target transmission order.

[0075] 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.

[0076] It should be noted that the acquisition module 300, correction module 302, transmission order determination module 304, and transmission module 306 mentioned above correspond to steps S102 to S108 in the embodiments. The instances and application scenarios implemented by the above modules and their corresponding steps are the same, but they are not limited to the content disclosed in the above embodiments. It should be noted that the above modules, as part of the device, can run in a computer terminal.

[0077] According to an embodiment of the present invention, an apparatus embodiment for implementing the above-described optional power information transmission method is also provided. Figure 4 This is a schematic diagram of the structure of an optional power information transmission device according to an embodiment of the present invention, such as... Figure 4 As shown, the aforementioned power information transmission device includes: an acquisition module 400, a refresh module 402, an offset module 404, and a transmission module 406, wherein:

[0078] The module 400 is used to acquire the cumulative waiting frequency of power information corresponding to multiple transmission records in a set target container within the power system.

[0079] The refresh module 402, connected to the acquisition module 400, is used to replace the initial code value in the target transmission record with the first preset code value corresponding to the lowest code value when the cumulative waiting frequency of the target transmission record is not lower than the preset frequency, and when there is no lowest code value (the code value with the highest importance), that is, when the record of the lowest code value is empty (NULL).

[0080] The offset module 404 is connected to the refresh module 402 and is used to replace the initial code value corresponding to the target transmission record with the lowest code value, and then obtain the pointer offset in the target transmission record corresponding to the lowest code value to indicate the position of the target power information.

[0081] The transmission module 406, connected to the offset module 404, is used to obtain target power information within the target buffer area of ​​the power system based on the pointer offset, and transmit the target power information to the information receiving end.

[0082] 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.

[0083] It should be noted that the acquisition module 400, refresh module 402, offset module 404, and transfer module 406 mentioned above correspond to steps S1 to S4 in the embodiments. The instances and application scenarios implemented by the above modules and their corresponding steps are the same, but they are not limited to the content disclosed in the above embodiments. It should be noted that the above modules, as part of the device, can run in a computer terminal.

[0084] It should be noted that the optional or preferred implementation methods of this embodiment can be found in the relevant descriptions in the embodiments, and will not be repeated here.

[0085] The aforementioned power information transmission device may also include a processor and a memory. The aforementioned acquisition module 300, correction module 302, transmission order determination module 304, and transmission module 306 are all stored in the memory as program modules, and the processor executes the aforementioned program modules stored in the memory to realize the corresponding functions.

[0086] The processor contains a core that retrieves the corresponding program modules from memory. One or more cores may be configured. Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, like read-only memory (ROM) or flash RAM. Memory includes at least one memory chip.

[0087] According to an embodiment of this application, an embodiment of a non-volatile storage medium is also provided. Optionally, in this embodiment, the non-volatile storage medium includes a stored program, wherein, when the program is running, it controls the device containing the non-volatile storage medium to execute any of the aforementioned power information transmission methods.

[0088] Optionally, in this embodiment, the non-volatile storage medium may be located in any computer terminal in a group of computer terminals in a computer network, or in any mobile terminal in a group of mobile terminals, and the non-volatile storage medium includes stored programs.

[0089] Optionally, during program execution, the device containing the non-volatile storage medium performs the following functions: acquiring the target transmission record of the target power information stored in the target container of the power system, wherein the target transmission record includes the cumulative waiting frequency of the target power information awaiting transmission and an initial code value, the initial code value indicating the importance of the target power information; if the cumulative waiting frequency is greater than a preset frequency, correcting the initial code value to obtain the target code value of the target power information, wherein the importance of the target power information corresponding to the target code value is greater than the importance of the target power information corresponding to the initial code value; obtaining the target transmission order based on the target code value; and transmitting the target power information to the information receiving end according to the target transmission order.

[0090] According to an embodiment of this application, an embodiment of a processor is also provided. Optionally, in this embodiment, the processor is used to run a program, wherein the program executes any of the above-described power information transmission methods.

[0091] According to an embodiment of this application, an embodiment of a computer program product is also provided. Optionally, in this embodiment, the computer program product includes a computer program that, when executed by a processor, implements the steps of any of the above-described power information transmission method.

[0092] Optionally, when the above-mentioned computer program product is executed on a data processing device, it is suitable to execute an initialization program with the following method steps: obtaining a target transmission record of target power information stored in a target container of the power system, wherein the target transmission record includes a cumulative waiting frequency of the target power information waiting to be transmitted and an initial code value, the initial code value being used to indicate the importance of the target power information; if the cumulative waiting frequency is greater than a preset frequency, correcting the initial code value to obtain a target code value of the target power information, wherein the importance of the target power information corresponding to the target code value is greater than the importance of the target power information corresponding to the initial code value; obtaining the target transmission order based on the target code value; and transmitting the target power information to the information receiving end according to the target transmission order.

[0093] This 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, it performs the following steps: acquiring a target transmission record of target power information stored in a target container of a power system, wherein the target transmission record includes a cumulative waiting frequency for the target power information to be transmitted and an initial code value, the initial code value indicating the importance of the target power information; when the cumulative waiting frequency is greater than a preset frequency, correcting the initial code value to obtain a target code value for the target power information, wherein the importance of the target power information corresponding to the target code value is greater than the importance of the target power information corresponding to the initial code value; obtaining a target transmission order based on the target code value; and transmitting the target power information to an information receiving end according to the target transmission order.

[0094] The order of the above embodiments of the present invention is merely for description and does not represent the superiority or inferiority of the embodiments.

[0095] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0096] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of modules described above can be a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, or indirect coupling or communication connection between modules, and may be electrical or other forms.

[0097] The modules described above as separate components may or may not be physically separate. Similarly, the components shown as modules may or may not be physical modules; they may be located in one place or distributed across multiple modules. Some or all of the modules can be selected to achieve the purpose of this embodiment, depending on actual needs.

[0098] Furthermore, the functional modules in the various embodiments of the present invention can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.

[0099] If the aforementioned integrated modules are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable non-volatile storage medium. Based on this understanding, the technical solution of this invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a non-volatile storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned non-volatile storage medium includes: USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, optical disks, and other media capable of storing program code.

[0100] The above are merely preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A method for transmitting power information, characterized in that, include: The target transmission record of target power information stored in the target container of the power system is obtained, wherein the target transmission record includes the cumulative waiting frequency of the target power information waiting to be transmitted and an initial code value, the initial code value being used to indicate the importance of the target power information; If the cumulative waiting frequency is greater than the preset frequency, the initial code value is corrected to obtain the target code value of the target power information, wherein the importance of the target power information corresponding to the target code value is greater than the importance of the target power information corresponding to the initial code value; Based on the target code value, the target transmission order is obtained; According to the target transmission order, the target power information is transmitted to the information receiving end; The step of correcting the initial code value to obtain the target code value of the target power information when the cumulative waiting frequency is greater than a preset frequency includes: replacing the initial code value with the first preset value when the initial code value is greater than a first preset value and the cumulative waiting frequency is greater than the preset frequency, to obtain the target code value, wherein the first preset value is used to indicate the importance of the target power information as a primary transmission level; The step of replacing the initial code value with the first preset value to obtain the target code value when the initial code value is greater than the first preset value and the cumulative waiting frequency is greater than the preset frequency includes: when the initial code value is greater than the first preset value and the cumulative waiting frequency is greater than the preset frequency, acquiring a plurality of first transmission records stored in the target container, wherein the first transmission records are used to indicate the transmission records corresponding to the plurality of power information stored in the target container respectively; detecting whether the initial code value is the lowest code value among the code values ​​corresponding to the plurality of first transmission records; when the initial code value is the lowest code value, storing the target transmission record in the transmission area and detecting whether there is a second transmission record in the transmission area, wherein the second transmission record is used to indicate the transmission record stored in the transmission area with a code value of the first preset value; when the second transmission record is detected not to exist, replacing the initial code value in the transmission area with the first preset value to obtain the target code value.

2. The method according to claim 1, characterized in that, The method further includes: If the initial code value is not the minimum code value, the target transmission record is stored in the waiting area, and it is detected whether a third transmission record is stored in the waiting area. The waiting area is used to store the third transmission record corresponding to the power information to be transmitted when the cumulative waiting frequency is higher than the preset frequency. If at least one third transmission record corresponding to power information is stored in the waiting area, determine whether there is a first code value greater than the initial code value among the code values ​​corresponding to at least one power information. If the first code value exists in the code value corresponding to the at least one power information, subtract the second preset value from the first code value to obtain the processed code value corresponding to the at least one power information. If the processed code value corresponding to at least one power information is greater than the initial code value, the target transmission record is stored in the transmission area, and the existence of the second transmission record is detected. If the second transmission record is not detected, the initial code value in the transmission area is replaced with the first preset value to obtain the target code value.

3. The method according to claim 2, characterized in that, The method further includes: If the third transmission record is not stored in the waiting area, the target transmission record is stored in the transmission area, and the existence of the second transmission record is detected. If the second transmission record is not detected, the initial code value in the transmission area is replaced with the first preset value to obtain the target code value.

4. The method according to claim 1, characterized in that, If the target transmission record also includes a pointer offset, then transmitting the target power information to the information receiving end according to the target transmission order includes: Based on the pointer offset, the target location of the target power information in the target buffer area of ​​the power system is determined; The target power information is obtained from the target location and transmitted to the information receiving end according to the target transmission order.

5. The method according to claim 4, characterized in that, After obtaining the target power information from the target location and transmitting the obtained target power information to the information receiving end, the method includes: The feedback signal returned by the information receiving end is received; Based on the feedback signal, the target code value in the transmission area is deleted, and the cumulative waiting frequency corresponding to other power information collected by the power system is increased by a preset frequency, wherein the other power information is power information collected by the power system other than the target power information.

6. A power information transmission device, characterized in that, include: The acquisition module is used to acquire the target transmission record of the target power information stored in the target container of the power system. The target transmission record includes the cumulative waiting frequency of the target power information waiting to be transmitted and the initial code value. The initial code value is used to indicate the importance of the target power information. The correction module is used to correct the initial code value when the cumulative waiting frequency is greater than the preset frequency, so as to obtain the target code value of the target power information, wherein the importance of the target power information corresponding to the target code value is greater than the importance of the target power information corresponding to the initial code value. The transmission order determination module is used to obtain the target transmission order based on the target code value; A transmission module is used to transmit the target power information to the information receiving end according to the target transmission order; The correction module is further configured to replace the initial code value with the first preset value when the initial code value is greater than the first preset value and the cumulative waiting frequency is greater than the preset frequency, thereby obtaining the target code value, wherein the first preset value is used to indicate the importance of the target power information as a primary transmission level. The correction module is further configured to: acquire multiple first transmission records stored in the target container when the initial code value is greater than a first preset value and the cumulative waiting frequency is greater than the preset frequency; indicate transmission records corresponding to multiple power information items stored in the target container; detect whether the initial code value is the lowest code value among the code values ​​corresponding to the multiple first transmission records; if the initial code value is the lowest code value, store the target transmission record in the transmission area and detect whether there is a second transmission record in the transmission area, indicating a transmission record with a code value of the first preset value stored in the transmission area; if the second transmission record is not detected, replace the initial code value in the transmission area with the first preset value to obtain the target code value.

7. A non-volatile storage medium, characterized in that, The non-volatile storage medium stores multiple instructions, which are adapted to be loaded by a processor and executed by the power information transmission method according to any one of claims 1 to 5.

8. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the power information transmission method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Call processing method and apparatus

    CN108259685A