Data acquisition method, device and equipment of photovoltaic inverter, storage medium and program product
By dynamically adjusting the data priority and bandwidth allocation of the photovoltaic inverter, the problem of untimely data transmission in traditional photovoltaic inverters is solved, realizing real-time and efficient transmission of important data and improving system stability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA SOUTHERN POWER GRID INTERNET SERVICE CO LTD
- Filing Date
- 2025-05-22
- Publication Date
- 2026-07-21
AI Technical Summary
Traditional photovoltaic inverters fail to effectively distinguish data priorities during data acquisition, resulting in important data not being transmitted in a timely manner and low bandwidth utilization.
By collecting analog, digital, and recorded data from photovoltaic inverters, the system dynamically adjusts data priority based on inverter status parameters and adaptively allocates bandwidth resources to ensure the real-time and efficient transmission of critical data.
It enables precise monitoring of the operating status of photovoltaic inverters, improves bandwidth utilization, and ensures stable system operation, especially under abnormal and bandwidth-limited conditions.
Smart Images

Figure CN120416187B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data acquisition technology, and in particular to a data acquisition method, apparatus, computer equipment, computer-readable storage medium, and computer program product for a photovoltaic inverter. Background Technology
[0002] Photovoltaic inverters require real-time data collection during operation, including voltage, current, temperature, and switch status. These data vary in importance, and traditional data acquisition methods often fail to effectively prioritize data, resulting in important data not being transmitted in a timely manner. Furthermore, traditional data transmission strategies fail to dynamically adjust bandwidth allocation based on system status, leading to low bandwidth utilization. Summary of the Invention
[0003] Therefore, it is necessary to provide a data acquisition method, device, computer equipment, computer-readable storage medium, and computer program product for photovoltaic inverters to address the aforementioned technical problems, thereby ensuring that important data is transmitted in real time and efficiently, improving bandwidth utilization, and ensuring the stable operation of the system.
[0004] Firstly, this application provides a data acquisition method for a photovoltaic inverter, including:
[0005] Collect analog, digital, and recorded data from the photovoltaic inverter;
[0006] Determine the current priority parameters based on the status parameters of the photovoltaic inverter;
[0007] Based on the current priority parameters, the initial priorities of analog data, digital data, and record data are adjusted to obtain the target priorities corresponding to analog data, digital data, and record data respectively; among them, the initial priority of analog data is greater than the initial priority of digital data, and the initial priority of digital data is greater than the initial priority of record data.
[0008] Determine the bandwidth allocation ratio for analog data, digital data, and record data based on the target priority;
[0009] Based on the bandwidth allocation ratio, analog data, switch data, and record data are transmitted.
[0010] In one embodiment, the status parameters include operating status values, abnormal status level values, instantaneous bandwidth utilization, and task urgency. Based on the status parameters of the photovoltaic inverter, the current priority parameters are determined, including:
[0011] Based on preset weight information, the working status value, abnormal status level value, instantaneous bandwidth utilization rate, and task urgency are weighted and summed to obtain the current priority parameter.
[0012] In one embodiment, the initial priorities of analog data, digital data, and recorded data are adjusted according to the current priority parameter to obtain target priorities for each type of data, including:
[0013] If the current priority parameter is greater than or equal to the first preset value, the initial priority of the analog data is increased, and the initial priority of the switch data and the record data is decreased, so as to obtain the target priorities corresponding to the analog data, switch data and the record data respectively.
[0014] If the current priority parameter is greater than the second preset value and less than the first preset value, maintain the initial priority of analog data, switch data, and record data; the first preset value is greater than the second preset value.
[0015] If the current priority parameter is less than or equal to the second preset value, the initial priority of the record data is increased to obtain the target priority corresponding to the record data.
[0016] In one embodiment, determining the bandwidth allocation ratio for analog data, digital data, and recording data based on target priority includes:
[0017] Obtain the adjustment coefficients corresponding to analog data, digital data, and recorded data respectively;
[0018] Based on the target priority and adjustment coefficient, the initial bandwidth allocation ratios for analog data, switch data, and record data are adjusted respectively to obtain the bandwidth allocation ratios for analog data, switch data, and record data.
[0019] In one embodiment, after determining the bandwidth allocation ratio for analog data, digital data, and recording data based on target priority, the method further includes:
[0020] When the current priority parameter is not less than the third preset value and the instantaneous bandwidth occupancy rate is not less than the fourth preset value, according to the preset preemption ratio, a portion of the bandwidth allocation ratio of switch data and record data is allocated to analog data.
[0021] If the urgency of the task is no greater than the fifth preset value, the target priority corresponding to the switch data is assigned to the record data, and the bandwidth allocation ratio of analog data, switch data and record data is re-determined according to the adjusted target priority.
[0022] In one embodiment, the method further includes:
[0023] If the instantaneous bandwidth utilization rate is not less than the sixth preset value, reduce the task rate of recording data;
[0024] In the event of a fault in the photovoltaic inverter, the recorded data should be released first.
[0025] Secondly, this application also provides a data acquisition device for a photovoltaic inverter, comprising:
[0026] The data acquisition module is used to acquire analog data, digital data, and recorded data from the photovoltaic inverter.
[0027] The determination module is used to determine the current priority parameters based on the status parameters of the photovoltaic inverter;
[0028] The adjustment module is used to adjust the initial priority of analog data, digital data, and record data according to the current priority parameters to obtain the target priority for each type of data. The initial priority of analog data is higher than that of digital data, and the initial priority of digital data is higher than that of record data.
[0029] The allocation module is used to determine the bandwidth allocation ratio for analog data, digital data, and recording data based on the target priority.
[0030] The transmission module is used to transmit analog data, switch data, and recording data according to the bandwidth allocation ratio.
[0031] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method described in the first aspect above.
[0032] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the first aspect above.
[0033] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the method described in the first aspect above.
[0034] The aforementioned data acquisition method, device, computer equipment, computer-readable storage medium, and computer program product for photovoltaic inverters acquire analog data, digital data, and recorded data from the photovoltaic inverter. Based on the photovoltaic inverter's status parameters, a current priority parameter is determined. Based on the current priority parameter, the initial priorities of the analog data, digital data, and recorded data are adjusted to obtain target priorities for each data type. The initial priority of analog data is higher than that of digital data, which in turn is higher than that of recorded data. Based on the target priorities, a bandwidth allocation ratio for the analog data, digital data, and recorded data is determined. Based on the bandwidth allocation ratio, the analog data, digital data, and recorded data are transmitted. Through this method, data types are refined, enabling comprehensive and accurate monitoring of the photovoltaic inverter's operating status. Dynamically adjusting data transmission priorities and adaptively allocating bandwidth resources ensures that important data is transmitted in real-time and efficiently, improving bandwidth utilization and ensuring stable system operation. Attached Figure Description
[0035] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0036] Figure 1 This is an application environment diagram of a data acquisition method for a photovoltaic inverter in one embodiment;
[0037] Figure 2 This is a flowchart illustrating a data acquisition method for a photovoltaic inverter in one embodiment;
[0038] Figure 3 This is a structural block diagram of a data acquisition device for a photovoltaic inverter in one embodiment;
[0039] Figure 4 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0040] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0041] The data acquisition method for photovoltaic inverters provided in this application embodiment can be applied to, for example... Figure 1In the application environment shown, the photovoltaic inverter 102 communicates with the server 104 via a network. A data storage system can store the data that the server 104 needs to process. The data storage system can be integrated onto the server 104, or it can be located in the cloud or on another network server. The photovoltaic inverter 102 is equipped with multiple data acquisition interfaces to collect analog data, switch data, and recorded data from itself. The system dynamically adjusts the data transmission priority and adaptively allocates bandwidth resources to transmit the collected data to the server 104. The server 104 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.
[0042] In one exemplary embodiment, such as Figure 2 As shown, a data acquisition method for a photovoltaic inverter is provided, which is then applied to... Figure 1 The following explanation uses the photovoltaic inverter 102 as an example, including:
[0043] Step 202: Collect analog data, digital data, and recorded data from the photovoltaic inverter.
[0044] The photovoltaic inverter is equipped with multiple data acquisition interfaces, including an analog acquisition module, a digital acquisition module, and a communication module. The analog acquisition module is used to collect analog data, including important data such as voltage, current, and temperature; the digital acquisition module is used to collect record-type data, including relay status and alarm signals; and the communication module is used to collect and transmit record-type data, including log data and historical data.
[0045] Step 204: Determine the current priority parameters based on the status parameters of the photovoltaic inverter.
[0046] Among them, the state parameters are used to characterize the operating state of the photovoltaic inverter system, and may include operating state values, abnormal state level values, instantaneous bandwidth utilization, and task urgency. Based on the state parameters of the photovoltaic inverter, the current priority parameters used for dynamically adjusting data priorities are determined.
[0047] Step 206: Adjust the initial priorities of analog data, digital data, and record data according to the current priority parameters to obtain the target priorities corresponding to analog data, digital data, and record data respectively; wherein, the initial priority of analog data is greater than the initial priority of digital data, and the initial priority of digital data is greater than the initial priority of record data.
[0048] Specifically, based on the current priority parameters and a pre-set data priority adjustment strategy, the initial priorities of analog data, digital data, and log data are dynamically adjusted to determine the target priorities for each type of data. The initial priorities can be set according to the following principles: Real-time tasks (P1 level): Analog data, ensuring real-time updates of key information such as current, voltage, and temperature; Periodic tasks (P2 level): Digital data, used to update equipment status; Low-priority tasks (P3 level): Log data, historical data, etc.
[0049] Understandably, the task queue is set up, which includes multiple data transmission tasks, namely real-time tasks, periodic tasks, and low-priority tasks. Based on the target priority determined in step 206, a corresponding priority flag is assigned to each data transmission task. Each priority flag corresponds to a value, for example: P1flag=1 (high priority); P2flag=0.5 (medium priority); P3flag=0 (low priority).
[0050] Step 208: Determine the bandwidth allocation ratio for analog data, digital data, and record data based on the target priority.
[0051] Based on a pre-set bandwidth allocation strategy, the bandwidth allocation ratio for various types of data is adaptively allocated according to the target priority.
[0052] Step 210: Transmit analog data, switch data, and record data according to the bandwidth allocation ratio.
[0053] Based on the task queue, each data transmission task is completed according to the bandwidth allocation ratio of each data transmission task, realizing the transmission of analog data, switch data and record data.
[0054] The aforementioned data acquisition method for photovoltaic (PV) inverters involves collecting analog, digital, and recorded data. Based on the inverter's status parameters, a current priority parameter is determined. The initial priorities of these data types are then adjusted according to the current priority parameter to obtain target priorities for each data type. The initial priority of analog data is higher than that of digital data, which in turn is higher than that of recorded data. Based on the target priorities, a bandwidth allocation ratio for each data type is determined. Finally, the data is transmitted according to the bandwidth allocation ratio. This method refines data types, enabling comprehensive and accurate monitoring of the PV inverter's operating status. Dynamically adjusting data transmission priorities and adaptively allocating bandwidth resources ensures that important data is transmitted in real-time and efficiently, improving bandwidth utilization and ensuring stable system operation.
[0055] In an exemplary embodiment, the status parameters include working status value, abnormal status level value, instantaneous bandwidth occupancy rate, and task urgency level; step 204 includes: according to preset weight information, performing a weighted summation of the working status value, abnormal status level value, instantaneous bandwidth occupancy rate, and task urgency level to obtain the current priority parameter.
[0056] Wherein, assuming the current priority parameter is The current priority parameter is calculated using the following formula:
[0057] ;
[0058] In the formula, , , , The preset weight information can be configured and adjusted according to actual needs.
[0059] The value is the operating status value (dimensionless parameter), which represents the current comprehensive operating status of the photovoltaic inverter. The higher the value, the higher the system operating load or the degree of abnormality. The value range is [0,1].
[0060] This is the abnormal state level value (dimensionless parameter), representing the current abnormal state level of the system. The value ranges from [0,1]. Normal state. Mild abnormality Seriously abnormal .
[0061] This represents the instantaneous bandwidth utilization rate, indicating the current utilization rate of data transmission bandwidth. The value range is [0, 100%].
[0062] The task urgency level (dimensionless parameter) refers to how close the task deadline is, representing the proximity of the transmission deadline for low-priority tasks (P3 level). The value range is [0,1].
[0063] Among them, the operating status values of photovoltaic inverters The calculation formula is as follows:
[0064] ;
[0065] in, This represents the normalized voltage, current, and temperature data for the i-th path. To eliminate the influence of different physical dimensions such as voltage, current, and temperature, the original data is normalized and mapped uniformly to the [0,1] interval. The normalization process follows the formula:
[0066] ;
[0067] ;
[0068] ;
[0069] in, These represent the maximum and minimum values within the normal operating range of voltage, current, and temperature data, respectively. These thresholds can be determined based on the rated operating range of the photovoltaic inverter, device datasheet parameters, experimental data, etc.
[0070] Optionally, a piecewise function is used to quantify the abnormal state level value. Specifically, the abnormal state level value is quantified using the following formula. :
[0071] ;
[0072] in, To provide a margin for recoverability, This is a proportionality coefficient used to adjust the growth rate of mild and severe abnormality levels. This is the threshold for a severe anomaly level.
[0073] In an exemplary embodiment, step 206 includes: increasing the initial priority of analog data and decreasing the initial priority of digital data and recording data when the current priority parameter is greater than or equal to a first preset value, to obtain target priorities corresponding to analog data, digital data and recording data respectively; maintaining the initial priorities of analog data, digital data and recording data when the current priority parameter is greater than a second preset value and less than a first preset value; the first preset value is greater than the second preset value; and increasing the initial priority of recording data when the current priority parameter is less than or equal to the second preset value, to obtain the target priority corresponding to the recording data.
[0074] The first and second preset values are pre-set critical values used to determine the system load status and can be adjusted according to actual needs. Assuming the first preset value is 0.7 and the second preset value is 0.3, the current priority parameters are calculated... The priority of tasks will be dynamically adjusted according to the following strategies:
[0075] when When the system is under high load or in an abnormal state, the priority of P1 level tasks (real-time tasks) is increased, while the priority of P2 and P3 level tasks is reduced accordingly to ensure the real-time transmission of critical data.
[0076] when At that time, the initial priority setting is maintained, i.e., P1>P2>P3.
[0077] when When the system is in a low-load and normal state, the priority of P3 level tasks (low-priority tasks) is increased to accelerate the transmission of log data and historical data.
[0078] Understandably, data priority adjustments can be achieved by updating the priority flags of each data transmission task in the task queue. For example, the initial priorities of various tasks are defined as follows: P1flag=1 (high priority); P2flag=0.5 (medium priority); P3flag=0 (low priority).
[0079] During dynamic adjustment, according to The values of P1flag, P2flag, and P3flag are adjusted according to the strategy described above. For example, when... At that time, P1flag=1.2, P2flag=0.4, and P3flag=0.1.
[0080] In an exemplary embodiment, step 208 includes: obtaining adjustment coefficients corresponding to analog data, switch data, and record data respectively; adjusting the initial bandwidth allocation ratios of analog data, switch data, and record data according to the target priority and adjustment coefficients respectively, to obtain the bandwidth allocation ratios of analog data, switch data, and record data.
[0081] The initial bandwidth allocation ratio is configured as follows:
[0082] ;
[0083] ;
[0084] ;
[0085] ;
[0086] in, Total bandwidth This refers to the initial bandwidth allocated to tasks of levels P1, P2, and P3 based on their initial priority, and which satisfies... . The value ranges from 50% to 80%. The value ranges from 10% to 30%. The value ranges from 5% to 20%.
[0087] Bandwidth allocation ratio According to Dynamic adjustment, the adjustment formula is as follows:
[0088] ;
[0089] ;
[0090] ;
[0091] in, The initial bandwidth allocation ratio (e.g.) , , ), For adjustment coefficients (e.g.) , , Adjusted Must meet If the value exceeds 1, it will be scaled proportionally.
[0092] For example, under normal conditions ( ), , , Under high load conditions ( ), Increase and Reduce bandwidth to ensure that P1 level tasks receive more bandwidth.
[0093] In one optional implementation, a bandwidth allocation strategy adapted to different operating states is adopted to adjust the bandwidth allocation of each data transmission task in the task queue. For example, in the normal state ( Under normal conditions, P1:P2:P3 = 60%:25%:15%; under fault conditions ( P1:P2:P3 = 80%:15%:5%; Bandwidth exceeded ( Limit bandwidth for P3 level tasks or discard some P3 level data.
[0094] Optionally, based on The bandwidth allocation ratio is dynamically adjusted based on real-time values, and the specific transition strategy is as follows:
[0095] when When gradually increasing from 0.5 to 0.7, It increased linearly from 60% to 80%. It decreased linearly from 25% to 15%. It decreased linearly from 15% to 5%.
[0096] when When it decreases from 0.5 to 0.3, It increased linearly from 15% to 20%. and Make appropriate minor adjustments.
[0097] Optionally, the bandwidth allocation adjustment period is set to Tadjust (e.g., 1 second), and within each adjustment period, based on the latest... Value update .
[0098] In an exemplary embodiment, after step 208, the method further includes: when the current priority parameter is not less than a third preset value and the instantaneous bandwidth occupancy rate is not less than a fourth preset value, allocating a portion of the bandwidth allocation ratio of switch data and recording data to analog data according to a preset preemption ratio; when the task urgency is not greater than a fifth preset value, assigning the target priority corresponding to the switch data to the recording data, and redetermining the bandwidth allocation ratio of analog data, switch data, and recording data according to the adjusted target priority.
[0099] The third, fourth, and fifth preset values are all pre-set critical values used to determine the system load status and can be adjusted according to actual needs. This embodiment employs a task preemption mechanism to effectively improve system stability and fault response capabilities. The logic of the task preemption mechanism is as follows: Task P1 can preempt the bandwidth of tasks P2 and P3 to ensure priority transmission of critical data; if task P3... If it gets closer, its priority is increased. The third preset value is 0.8, the fourth preset value is 90%, and the fifth preset value is... For example, the specific process of the task preemption mechanism is as follows:
[0100] when And bandwidth utilization At that time, P1 level tasks can preempt bandwidth from P2 and P3 level tasks, with a preset preemption ratio of min(0.2, ).
[0101] If it's a P3 level mission If (e.g., 5 seconds) the priority of a P3-level task is temporarily raised to P2 level to avoid data loss.
[0102] in, It is a threshold for task deadlines, representing a time limit used to determine whether the deadlines of low-priority tasks (P3 level tasks) are approaching to the point where priority-upgrading measures need to be taken. The specific value can be set according to the actual needs of the photovoltaic inverter system and the data transmission characteristics.
[0103] In an exemplary embodiment, the method further includes: reducing the task rate of recording data when the instantaneous bandwidth occupancy rate is not less than a sixth preset value; and prioritizing the release of recording data when the photovoltaic inverter is in a fault state.
[0104] The sixth preset value is a pre-set threshold for judging the system load status, which can be adjusted according to actual needs. This embodiment employs a resource reclamation mechanism to effectively improve system stability and fault response capabilities. Taking a sixth preset value of 80% as an example, the logic of the resource reclamation mechanism is: monitor bandwidth utilization; if... Reduce the speed of P3 level tasks; in fault conditions, prioritize the release of non-critical data.
[0105] In this embodiment, regarding data acquisition, comprehensive and accurate monitoring of the photovoltaic inverter's operating status is achieved through multiple data acquisition interfaces and refined data types. Regarding data transmission, dynamic priority adjustment and adaptive bandwidth allocation strategies ensure real-time and efficient transmission of critical data, especially under abnormal or bandwidth-constrained conditions, ensuring stable system operation. Regarding system reliability, abnormal state analysis and handling mechanisms, as well as task preemption and resource recovery mechanisms, effectively improve system stability and fault response capabilities. Regarding intelligence, the system possesses high adaptability and configurability, enhancing its overall intelligence level.
[0106] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0107] Based on the same inventive concept, this application also provides a data acquisition device for a photovoltaic inverter to implement the data acquisition method for the photovoltaic inverter described above. The solution provided by this device is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the photovoltaic inverter data acquisition device provided below can be found in the limitations of the photovoltaic inverter data acquisition method described above, and will not be repeated here.
[0108] In one exemplary embodiment, such as Figure 3 As shown, a data acquisition device for a photovoltaic inverter is provided, comprising:
[0109] The acquisition module 302 is used to acquire analog data, switch data and recorded data from the photovoltaic inverter.
[0110] The determination module 304 is used to determine the current priority parameters based on the status parameters of the photovoltaic inverter.
[0111] The adjustment module 306 is used to adjust the initial priority of analog data, switch data and record data according to the current priority parameter to obtain the target priority corresponding to analog data, switch data and record data respectively; wherein, the initial priority of analog data is greater than the initial priority of switch data, and the initial priority of switch data is greater than the initial priority of record data.
[0112] The allocation module 308 is used to determine the bandwidth allocation ratio of analog data, switch data and record data according to the target priority.
[0113] The transmission module 310 is used to transmit analog data, switch data and recording data according to the bandwidth allocation ratio.
[0114] The aforementioned data acquisition device for the photovoltaic inverter collects analog data, digital data, and recorded data from the inverter. Based on the inverter's status parameters, it determines the current priority parameters. Then, based on these priority parameters, it adjusts the initial priorities of the analog, digital, and recorded data to obtain target priorities for each data type. The initial priority of analog data is higher than that of digital data, which in turn is higher than that of recorded data. Based on the target priorities, it determines the bandwidth allocation ratio for each data type. Finally, it transmits the analog, digital, and recorded data according to the bandwidth allocation ratio. This method refines data types, enabling comprehensive and accurate monitoring of the photovoltaic inverter's operating status. Dynamically adjusting data transmission priorities and adaptively allocating bandwidth resources ensures that important data is transmitted in real-time and efficiently, improving bandwidth utilization and ensuring stable system operation.
[0115] In an exemplary embodiment, the status parameters include working status value, abnormal status level value, instantaneous bandwidth occupancy rate, and task urgency level; the determining module 304 is further configured to perform a weighted summation of the working status value, abnormal status level value, instantaneous bandwidth occupancy rate, and task urgency level according to preset weight information to obtain the current priority parameter.
[0116] In an exemplary embodiment, the adjustment module 306 is further configured to: increase the initial priority of analog data and decrease the initial priority of digital data and recording data when the current priority parameter is greater than or equal to a first preset value, to obtain target priorities corresponding to analog data, digital data and recording data respectively; maintain the initial priorities of analog data, digital data and recording data when the current priority parameter is greater than a second preset value and less than a first preset value; the first preset value is greater than the second preset value; and increase the initial priority of recording data when the current priority parameter is less than or equal to the second preset value, to obtain the target priority corresponding to the recording data.
[0117] In an exemplary embodiment, the allocation module 308 is further configured to obtain the adjustment coefficients corresponding to analog data, switch data and record data respectively; and adjust the initial bandwidth allocation ratio of analog data, switch data and record data respectively according to the target priority and the adjustment coefficients to obtain the bandwidth allocation ratio of analog data, switch data and record data.
[0118] In an exemplary embodiment, the allocation module 308 is further configured to allocate a portion of the bandwidth allocation ratio of switch data and record data to analog data according to a preset preemption ratio, provided that the current priority parameter is not less than a third preset value and the instantaneous bandwidth occupancy rate is not less than a fourth preset value; and to assign the target priority corresponding to the switch data to the record data, provided that the task urgency is not greater than a fifth preset value, and to redetermine the bandwidth allocation ratio of analog data, switch data and record data according to the adjusted target priority.
[0119] In an exemplary embodiment, the transmission module 310 is further configured to reduce the task rate of the recording data when the instantaneous bandwidth occupancy rate is not less than a sixth preset value; and to prioritize the release of the recording data when the photovoltaic inverter is in a fault state.
[0120] The modules in the data acquisition device of the aforementioned photovoltaic inverter can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0121] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 4As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a data acquisition method for a photovoltaic inverter.
[0122] Those skilled in the art will understand that Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0123] In an exemplary embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to perform the following steps: acquiring analog data, digital data, and recorded data from a photovoltaic inverter; determining a current priority parameter based on the state parameters of the photovoltaic inverter; adjusting the initial priorities of the analog data, digital data, and recorded data according to the current priority parameter to obtain target priorities for each type of data; wherein the initial priority of the analog data is greater than the initial priority of the digital data, and the initial priority of the digital data is greater than the initial priority of the recorded data; determining a bandwidth allocation ratio for the analog data, digital data, and recorded data based on the target priorities; and transmitting the analog data, digital data, and recorded data according to the bandwidth allocation ratio.
[0124] In one embodiment, when the processor executes the computer program, it further performs the following steps: according to preset weight information, it performs a weighted summation of the working status value, the abnormal status level value, the instantaneous bandwidth utilization rate, and the task urgency to obtain the current priority parameter.
[0125] In one embodiment, when the processor executes the computer program, it further performs the following steps: when the current priority parameter is greater than or equal to a first preset value, the initial priority of the analog data is increased, and the initial priority of the switch data and the record data is decreased, to obtain the target priorities corresponding to the analog data, switch data, and record data respectively; when the current priority parameter is greater than a second preset value and less than the first preset value, the initial priorities of the analog data, switch data, and record data are maintained; the first preset value is greater than the second preset value; when the current priority parameter is less than or equal to the second preset value, the initial priority of the record data is increased, to obtain the target priority corresponding to the record data.
[0126] In one embodiment, when the processor executes the computer program, it further performs the following steps: obtaining the adjustment coefficients corresponding to analog data, switch data, and record data respectively; and adjusting the initial bandwidth allocation ratios of analog data, switch data, and record data respectively according to the target priority and the adjustment coefficients to obtain the bandwidth allocation ratios of analog data, switch data, and record data.
[0127] In one embodiment, when the processor executes the computer program, it further performs the following steps: when the current priority parameter is not less than a third preset value and the instantaneous bandwidth occupancy rate is not less than a fourth preset value, according to a preset preemption ratio, a portion of the bandwidth allocation ratio of switch data and record data is allocated to analog data; when the task urgency is not greater than a fifth preset value, the target priority corresponding to the switch data is assigned to the record data, and the bandwidth allocation ratio of analog data, switch data and record data is re-determined according to the adjusted target priority.
[0128] In one embodiment, the processor, when executing the computer program, also performs the following steps: reducing the task rate of the recording data when the instantaneous bandwidth utilization rate is not less than a sixth preset value; and prioritizing the release of the recording data when the photovoltaic inverter is in a fault state.
[0129] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, it performs the following steps: acquiring analog data, digital data, and recorded data from a photovoltaic inverter; determining a current priority parameter based on the state parameters of the photovoltaic inverter; adjusting the initial priorities of the analog data, digital data, and recorded data according to the current priority parameter to obtain target priorities for each type of data; wherein the initial priority of the analog data is greater than the initial priority of the digital data, and the initial priority of the digital data is greater than the initial priority of the recorded data; determining the bandwidth allocation ratio for the analog data, digital data, and recorded data according to the target priorities; and transmitting the analog data, digital data, and recorded data according to the bandwidth allocation ratio.
[0130] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: according to preset weight information, the working status value, the abnormal status level value, the instantaneous bandwidth utilization rate, and the task urgency are weighted and summed to obtain the current priority parameter.
[0131] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: when the current priority parameter is greater than or equal to a first preset value, the initial priority of the analog data is increased, and the initial priority of the switch data and the record data is decreased, to obtain the target priorities corresponding to the analog data, switch data, and record data respectively; when the current priority parameter is greater than a second preset value and less than a first preset value, the initial priorities of the analog data, switch data, and record data are maintained; the first preset value is greater than the second preset value; when the current priority parameter is less than or equal to the second preset value, the initial priority of the record data is increased, to obtain the target priority corresponding to the record data.
[0132] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: obtaining the adjustment coefficients corresponding to analog data, switch data, and record data respectively; and adjusting the initial bandwidth allocation ratios of analog data, switch data, and record data respectively according to the target priority and the adjustment coefficients to obtain the bandwidth allocation ratios of analog data, switch data, and record data.
[0133] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: when the current priority parameter is not less than a third preset value and the instantaneous bandwidth occupancy rate is not less than a fourth preset value, according to a preset preemption ratio, a portion of the bandwidth allocation ratio of switch data and record data is allocated to analog data; when the task urgency is not greater than a fifth preset value, the target priority corresponding to the switch data is assigned to the record data, and the bandwidth allocation ratio of analog data, switch data and record data is re-determined according to the adjusted target priority.
[0134] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: reducing the task rate of the recording data when the instantaneous bandwidth utilization rate is not less than a sixth preset value; and prioritizing the release of the recording data when the photovoltaic inverter is in a fault state.
[0135] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps: acquiring analog data, digital data, and recorded data from a photovoltaic inverter; determining a current priority parameter based on the state parameters of the photovoltaic inverter; adjusting the initial priorities of the analog data, digital data, and recorded data according to the current priority parameter to obtain target priorities for each data type; wherein the initial priority of the analog data is greater than the initial priority of the digital data, and the initial priority of the digital data is greater than the initial priority of the recorded data; determining the bandwidth allocation ratio for the analog data, digital data, and recorded data based on the target priorities; and transmitting the analog data, digital data, and recorded data according to the bandwidth allocation ratio.
[0136] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: according to preset weight information, the working status value, the abnormal status level value, the instantaneous bandwidth utilization rate, and the task urgency are weighted and summed to obtain the current priority parameter.
[0137] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: when the current priority parameter is greater than or equal to a first preset value, the initial priority of the analog data is increased, and the initial priority of the switch data and the record data is decreased, to obtain the target priorities corresponding to the analog data, switch data, and record data respectively; when the current priority parameter is greater than a second preset value and less than a first preset value, the initial priorities of the analog data, switch data, and record data are maintained; the first preset value is greater than the second preset value; when the current priority parameter is less than or equal to the second preset value, the initial priority of the record data is increased, to obtain the target priority corresponding to the record data.
[0138] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: obtaining the adjustment coefficients corresponding to analog data, switch data, and record data respectively; and adjusting the initial bandwidth allocation ratios of analog data, switch data, and record data respectively according to the target priority and the adjustment coefficients to obtain the bandwidth allocation ratios of analog data, switch data, and record data.
[0139] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: when the current priority parameter is not less than a third preset value and the instantaneous bandwidth occupancy rate is not less than a fourth preset value, according to a preset preemption ratio, a portion of the bandwidth allocation ratio of switch data and record data is allocated to analog data; when the task urgency is not greater than a fifth preset value, the target priority corresponding to the switch data is assigned to the record data, and the bandwidth allocation ratio of analog data, switch data and record data is re-determined according to the adjusted target priority.
[0140] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: reducing the task rate of the recording data when the instantaneous bandwidth utilization rate is not less than a sixth preset value; and prioritizing the release of the recording data when the photovoltaic inverter is in a fault state.
[0141] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0142] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments described above. The memory, database, or other media mentioned in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0143] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0144] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A data acquisition method for a photovoltaic inverter, characterized in that, The method includes: Collect analog, digital, and recorded data from the photovoltaic inverter; The current priority parameters are determined based on the state parameters of the photovoltaic inverter; Based on the current priority parameter, the initial priorities of the analog data, the switch data, and the record data are adjusted to obtain the target priorities corresponding to the analog data, the switch data, and the record data respectively; wherein, the initial priority of the analog data is greater than the initial priority of the switch data, and the initial priority of the switch data is greater than the initial priority of the record data. Based on the target priority, determine the bandwidth allocation ratio of the analog data, the switch data, and the recording data; The analog data, the switch data, and the recording data are transmitted according to the bandwidth allocation ratio. The status parameters include operating status values, abnormal status level values, instantaneous bandwidth occupancy, and task urgency; determining the current priority parameters based on the status parameters of the photovoltaic inverter includes: Based on preset weight information, the working status value, the abnormal status level value, the instantaneous bandwidth occupancy rate, and the task urgency are weighted and summed to obtain the current priority parameter; The method further includes: If the instantaneous bandwidth utilization rate is not less than the sixth preset value, reduce the task rate of the recorded data; In the event that the photovoltaic inverter is in a faulty state, the recorded data shall be released first.
2. The method according to claim 1, characterized in that, The step of adjusting the initial priorities of the analog data, the switch data, and the recorded data according to the current priority parameter to obtain the target priorities corresponding to the analog data, the switch data, and the recorded data respectively includes: If the current priority parameter is greater than or equal to a first preset value, the initial priority of the analog data is increased, and the initial priority of the switch data and the record data is decreased, so as to obtain the target priorities corresponding to the analog data, the switch data and the record data respectively. If the current priority parameter is greater than the second preset value and less than the first preset value, the initial priority of the analog data, the switch data, and the recorded data is maintained; the first preset value is greater than the second preset value. If the current priority parameter is less than or equal to the second preset value, the initial priority of the record data is increased to obtain the target priority corresponding to the record data.
3. The method according to claim 1, characterized in that, The step of determining the bandwidth allocation ratio of the analog data, the digital data, and the recorded data according to the target priority includes: Obtain the adjustment coefficients corresponding to the analog data, the switch data, and the recorded data, respectively; Based on the target priority and the adjustment coefficient, the initial bandwidth allocation ratios of the analog data, the switch data, and the record data are adjusted respectively to obtain the bandwidth allocation ratios of the analog data, the switch data, and the record data.
4. The method according to claim 1, characterized in that, After determining the bandwidth allocation ratio of the analog data, the digital data, and the recorded data according to the target priority, the method further includes: When the current priority parameter is not less than the third preset value and the instantaneous bandwidth occupancy rate is not less than the fourth preset value, the bandwidth allocation ratio of the switch data and the recording data is allocated to the analog data according to the preset preemption ratio. If the urgency of the task is not greater than the fifth preset value, the target priority corresponding to the switch data is assigned to the record data, and the bandwidth allocation ratio of the analog data, the switch data and the record data is re-determined according to the adjusted target priority.
5. A data acquisition device for a photovoltaic inverter, characterized in that, The device includes: The data acquisition module is used to acquire analog data, digital data, and recorded data from the photovoltaic inverter. The determination module is used to determine the current priority parameters based on the status parameters of the photovoltaic inverter; An adjustment module is used to adjust the initial priorities of the analog quantity data, the switch quantity data, and the record data according to the current priority parameter, so as to obtain the target priorities corresponding to the analog quantity data, the switch quantity data, and the record data respectively; wherein, the initial priority of the analog quantity data is greater than the initial priority of the switch quantity data, and the initial priority of the switch quantity data is greater than the initial priority of the record data; The allocation module is used to determine the bandwidth allocation ratio of the analog data, the switch data, and the recording data according to the target priority; The transmission module is used to transmit the analog data, the switch data, and the recording data according to the bandwidth allocation ratio. The status parameters include working status value, abnormal status level value, instantaneous bandwidth occupancy rate, and task urgency level; the determining module is also used to perform a weighted summation of the working status value, the abnormal status level value, the instantaneous bandwidth occupancy rate, and the task urgency level according to preset weight information to obtain the current priority parameter; The transmission module is further configured to reduce the task rate of the recorded data when the instantaneous bandwidth occupancy rate is not less than a sixth preset value; and to release the recorded data preferentially when the photovoltaic inverter is in a fault state.
6. The apparatus according to claim 5, characterized in that, The adjustment module is further configured to, when the current priority parameter is greater than or equal to a first preset value, increase the initial priority of the analog quantity data and decrease the initial priority of the switch quantity data and the record data to obtain target priorities corresponding to the analog quantity data, the switch quantity data and the record data respectively; and maintain the initial priorities of the analog quantity data, the switch quantity data and the record data when the current priority parameter is greater than a second preset value and less than a first preset value. The first preset value is greater than the second preset value; when the current priority parameter is less than or equal to the second preset value, the initial priority of the record data is increased to obtain the target priority corresponding to the record data.
7. The apparatus according to claim 5, characterized in that, The allocation module is further configured to obtain adjustment coefficients corresponding to the analog data, the switch data, and the record data respectively; and adjust the initial bandwidth allocation ratio of the analog data, the switch data, and the record data respectively according to the target priority and the adjustment coefficients to obtain the bandwidth allocation ratio of the analog data, the switch data, and the record data.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 4.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Control system of intelligent flywheel energy storage device
CN101620423A
Photovoltaic power station monitoring system and method
CN105703708A