A control method, device, equipment and medium for flexible equipment

By building optimization sequences and cache spaces, the flexible device is controlled to extract task parameters from the cache space for business processing, which solves the problem of high memory usage in the existing technology and improves the service processing efficiency of flexible devices.

CN119201287BActive Publication Date: 2025-04-04STATE GRID ZHEJIANG ELECTRIC POWER CO LTD HANGZHOU POWER SUPPLY CO +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411659669.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-20
Publication Date
2025-04-04
Estimated Expiration
2044-11-20

AI Technical Summary

Technical Problem

The prior art occupies a lot of memory when controlling flexible equipment, affecting the efficiency of subsequent business use and is difficult to meet existing usage needs.

Method used

By determining the startup information required to establish a connection between the flexible device and the power grid, several optimization sequences are constructed, and a cache space is constructed according to the number of optimization sequences, the task parameters corresponding to each optimization sequence are stored, and the optimization sequence is sent to the flexible device to control it to extract task parameters from the cache space for business processing.

Benefits of technology

Reduces data occupies memory of flexible devices and frees up memory, allowing flexible devices to use more memory to perform services or tasks, thereby improving the efficiency of processing services or tasks and resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119201287B_ABST
    Figure CN119201287B_ABST
Patent Text Reader

Abstract

The present invention discloses a control method, device, equipment and medium for a flexible device, the method comprising: determining the startup information required for the flexible device to establish a connection with a power grid, constructing several loading sequences according to the startup information; obtaining the device parameters of the flexible device, optimizing each loading sequence using the device parameters, and obtaining several optimized sequences; constructing a cache space according to the number of optimized sequences, and storing the task parameters corresponding to each optimized sequence in the cache space; arranging several optimized sequences according to the sequence identifier of each optimized sequence to obtain a sorting order; sending the optimized sequences to the flexible device in sequence according to the arrangement order, so as to control the flexible device to extract the task parameters from the cache space for business processing according to the optimized sequence. The present invention can reduce the memory occupied by data in the flexible device, and can release the memory of the flexible device, thereby improving the efficiency of the flexible device in processing business or tasks, and improving the utilization rate of resources.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] Existing flexible power electronic devices can be devices used for grid interconnection, energy conversion and power quality management in modern power systems, such as photovoltaic power generation and energy storage devices or photovoltaic storage and flexible direct current integrated devices with flexible power interconnection. Since the above-mentioned types of flexible devices are connected to the power grid, it is necessary to dynamically adjust their startup and operation modes according to changes in grid conditions to control the flexible devices to perform corresponding business processing.

[0003] The commonly used control method at present is: detect the operating parameters of the power grid, determine the startup method of the flexible equipment according to the size of the operating parameters to control the startup of the flexible equipment, and then control the operation of the flexible equipment according to the operating parameters to handle the corresponding business, thereby avoiding the high-voltage signal of the power grid affecting the flexible equipment and ensuring the safety of the equipment.

[0004] However, the commonly used control methods currently have the following technical problems: when starting and controlling flexible devices, it is necessary to perform handshake, parameter configuration, wake-up processing, status detection, and task calling operations in sequence. Each of the above operations requires multiple data interactions, and each data interaction requires occupying the memory of the flexible device, which reduces the memory capacity of the flexible device, affects its business processing efficiency, and is difficult to meet existing usage needs. Summary of the invention

[0005] The present invention provides a control method, device, equipment and medium for a flexible device, which can solve the technical problem in the prior art that a large amount of memory is occupied when controlling a flexible device, thus affecting the use of subsequent services.

[0006] A first aspect of an embodiment of the present invention provides a control method for a flexible device, the method comprising:

[0007] Determine the startup information required for the flexible device to establish a connection with the power grid, and construct a plurality of loading sequences according to the startup information;

[0008] Acquire device parameters of the flexible device, and optimize each of the loading sequences using the device parameters to obtain a plurality of optimized sequences, wherein the device parameters include: state parameters and control parameters;

[0009] Building a cache space according to the number of the optimization sequences, and storing the task parameters corresponding to each of the optimization sequences in the cache space;

[0010] Determine a sequence identifier of each of the optimized sequences, and arrange a plurality of the optimized sequences according to the sequence identifier of each of the optimized sequences to obtain a sorting order;

[0011] The optimization sequence is sent to the flexible device in sequence according to the arrangement order, so as to control the flexible device to extract task parameters from the cache space for business processing according to the optimization sequence.

[0012] In combination with the first aspect, in one implementation, determining the startup information required for the flexible device to establish a connection with the power grid, and constructing a plurality of loading sequences according to the startup information, includes:

[0013] After obtaining the connection mode between the flexible device and the power grid, determining the operation state of the power grid according to the connection mode, and searching for a communication link according to the operation state;

[0014] Acquire a plurality of communication nodes from the communication link, and calculate a path distance between each of the communication nodes and a node of the flexible device;

[0015] A plurality of target nodes are selected from the plurality of communication nodes according to the path distance, and a plurality of target nodes corresponding to each functional unit are topologically sorted by using the Kahn algorithm to obtain a plurality of loading sequences.

[0016] In combination with the first aspect, in one implementation, the device parameters of the flexible device are obtained, and each of the loading sequences is optimized using the device parameters to obtain a plurality of optimized sequences, including:

[0017] Determining whether the parameters of each of the loading sequences conflict with the device parameters;

[0018] If the parameters of the loading sequence conflict with the device parameters, each loading sequence is optimized according to the values ​​of the device parameters to obtain a plurality of optimized sequences.

[0019] In combination with the first aspect, in one implementation, constructing a cache space according to the number of the optimization sequences, and storing the task parameters corresponding to each of the optimization sequences in the cache space includes:

[0020] Counting the number of the optimized sequences and obtaining a sequence identifier of each of the optimized sequences;

[0021] Establishing a multi-level cache structure according to the symbols of the sequence identifier and dividing a plurality of cache spaces according to the number of the optimized sequences;

[0022] After obtaining the task parameters corresponding to the optimization sequence, the task parameters are stored in the corresponding cache space.

[0023] In conjunction with the first aspect, in one implementation, determining a sequence identifier of each of the optimized sequences, and arranging a plurality of the optimized sequences according to the sequence identifier of each of the optimized sequences to obtain a sorting order includes:

[0024] Obtaining a symbol value of a sequence identifier of each of the optimized sequences;

[0025] The plurality of optimized sequences are arranged from large to small according to the size of the symbol values ​​to obtain a sorting order.

[0026] In combination with the first aspect, in one implementation, after the step of sending the optimization sequence to the flexible device in sequence according to the arrangement order to control the flexible device to extract task parameters from the cache space for business processing according to the optimization sequence, the method further includes:

[0027] Counting the number of accesses to the cache space and the duration of the access interval;

[0028] If the number of accesses is less than a preset number of times and the access interval duration is greater than a preset duration, the task parameters stored in the cache space are cleared.

[0029] In combination with the first aspect, in one implementation, after the step of sending the optimization sequence to the flexible device in sequence according to the arrangement order to control the flexible device to extract task parameters from the cache space for business processing according to the optimization sequence, the method further includes:

[0030] After receiving the business processing result of the flexible device, the task parameters stored in the cache space are updated.

[0031] A second aspect of an embodiment of the present invention provides a control device for a flexible device, the device comprising:

[0032] A sequence building module is used to determine the startup information required for the flexible device to establish a connection with the power grid, and to build a number of loading sequences according to the startup information;

[0033] A priority sequence module is used to obtain device parameters of the flexible device, and optimize each of the loading sequences using the device parameters to obtain a plurality of optimized sequences, wherein the device parameters include: state parameters and control parameters;

[0034] A storage parameter module, used to construct a cache space according to the number of the optimization sequences, and store the task parameters corresponding to each of the optimization sequences in the cache space;

[0035] A sequence sorting module, used to determine a sequence identifier of each of the optimized sequences, and to arrange a plurality of the optimized sequences according to the sequence identifier of each of the optimized sequences to obtain a sorting order;

[0036] The device control module is used to send the optimization sequence to the flexible device in sequence according to the arrangement order, so as to control the flexible device to extract task parameters from the cache space for business processing according to the optimization sequence.

[0037] In conjunction with the second aspect, in one implementation, determining the startup information required for the flexible device to establish a connection with the power grid, and constructing a plurality of loading sequences according to the startup information, includes:

[0038] After obtaining the connection mode between the flexible device and the power grid, determining the operation state of the power grid according to the connection mode, and searching for a communication link according to the operation state;

[0039] Acquire a plurality of communication nodes from the communication link, and calculate a path distance between each of the communication nodes and a node of the flexible device;

[0040] A plurality of target nodes are selected from the plurality of communication nodes according to the path distance, and a plurality of target nodes corresponding to each functional unit are topologically sorted by using the Kahn algorithm to obtain a plurality of loading sequences.

[0041] In combination with the second aspect, in one implementation, the device parameters of the flexible device are obtained, and each of the loading sequences is optimized using the device parameters to obtain a plurality of optimized sequences, including:

[0042] Determining whether the parameters of each of the loading sequences conflict with the device parameters;

[0043] If the parameters of the loading sequence conflict with the device parameters, each loading sequence is optimized according to the values ​​of the device parameters to obtain a plurality of optimized sequences.

[0044] In conjunction with the second aspect, in one implementation, constructing a cache space according to the number of the optimization sequences, and storing the task parameters corresponding to each of the optimization sequences in the cache space includes:

[0045] Counting the number of the optimized sequences and obtaining a sequence identifier of each of the optimized sequences;

[0046] Establishing a multi-level cache structure according to the symbols of the sequence identifier and dividing a plurality of cache spaces according to the number of the optimized sequences;

[0047] After obtaining the task parameters corresponding to the optimization sequence, the task parameters are stored in the corresponding cache space.

[0048] In conjunction with the second aspect, in one implementation, determining a sequence identifier of each of the optimized sequences, and arranging a plurality of the optimized sequences according to the sequence identifier of each of the optimized sequences to obtain a sorting order includes:

[0049] Obtaining a symbol value of a sequence identifier of each of the optimized sequences;

[0050] The plurality of optimized sequences are arranged from large to small according to the size of the symbol values ​​to obtain a sorting order.

[0051] In conjunction with the second aspect, in one implementation, the device further includes:

[0052] A statistics module, configured to count the number of accesses to the cache space and the length of the access interval after the step of sending the optimization sequence to the flexible device in sequence according to the arrangement order to control the flexible device to extract task parameters from the cache space for business processing according to the optimization sequence;

[0053] The parameter clearing module is used to clear the task parameters stored in the cache space if the number of accesses is less than a preset number of times and the access interval duration is greater than a preset duration.

[0054] In conjunction with the second aspect, in one implementation, the device further includes:

[0055] The parameter updating module is used to update the task parameters stored in the cache space after receiving the business processing result of the flexible device, after sending the optimization sequence to the flexible device in sequence according to the arrangement order to control the flexible device to extract the task parameters from the cache space according to the optimization sequence for business processing.

[0056] Compared with the prior art, the control method, device, equipment and medium of a flexible device provided by the embodiment of the present invention have the following beneficial effects: the present invention can determine the startup information required for the flexible device to establish a connection with the power grid, and construct several optimization sequences according to the startup information; construct a cache space according to the number of optimization sequences, and store the task parameter values ​​corresponding to each optimization sequence in the cache space; send the optimization sequence to the flexible device to control the flexible device to extract the task parameters from the cache space for business processing according to the optimization sequence. By constructing the parameters required for the cache space to store the task, the flexible device can extract data from the cache space, which can reduce the memory occupied by the data in the flexible device, and can release the memory of the flexible device, so that the flexible device can use more memory to perform its business or tasks, thereby improving the efficiency of the flexible device in processing business or tasks and improving the utilization of resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 is a flow chart of a control method for a flexible device provided by an embodiment of the present invention;

[0058] Figure 2 It is a structural schematic diagram of a control device for a flexible device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0059] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0060] Existing flexible power electronic devices can be devices used for grid interconnection, energy conversion and power quality management in modern power systems, such as photovoltaic power generation and energy storage devices or photovoltaic storage and flexible direct current integrated devices with flexible power interconnection. Since the above-mentioned types of flexible devices are connected to the power grid, it is necessary to dynamically adjust their startup and operation modes according to changes in grid conditions to control the flexible devices to perform corresponding business processing.

[0061] The commonly used control method at present is: detect the operating parameters of the power grid, determine the startup method of the flexible equipment according to the size of the operating parameters to control the startup of the flexible equipment, and then control the operation of the flexible equipment according to the operating parameters to handle the corresponding business, thereby avoiding the high-voltage signal of the power grid affecting the flexible equipment and ensuring the safety of the equipment.

[0062] However, the commonly used control methods currently have the following technical problems: when starting and controlling flexible devices, it is necessary to perform handshake, parameter configuration, wake-up processing, status detection, and task calling operations in sequence. Each of the above operations requires multiple data interactions, and each data interaction requires occupying the memory of the flexible device, which reduces the memory capacity of the flexible device, affects its business processing efficiency, and is difficult to meet existing usage needs.

[0063] In order to solve the above problems, a control method, device, equipment and medium of a flexible device provided in an embodiment of the present application will be introduced and explained in detail through the following specific embodiments.

[0064] Reference Figure 1 , which shows a flow chart of a control method for a flexible device provided by an embodiment of the present invention.

[0065] In one embodiment, the control method of the flexible device can be applied to a server of a power grid or a control system of a power grid, and the server or the control system can be arranged in the power grid system. When the flexible device is connected to the power grid, the server or the control system can establish communication with the flexible device and control the flexible device to perform different business processing.

[0066] As an example, the control method of the flexible device may include:

[0067] S11. Determine the startup information required for the flexible device to establish a connection with the power grid, and construct a plurality of loading sequences according to the startup information.

[0068] In one embodiment, when the flexible device is connected to the power grid and a connection is established, startup information of the flexible device may be obtained. The startup information may include: a startup request, interactive data, parameters required for a task, and the like.

[0069] Several loading sequences are constructed through startup information. Each loading sequence may correspond to the sequence of each step in the interactive process. Subsequently, interactive threads may be constructed according to the sequence, and then flexible devices may be called according to different threads to perform task processing or business processing.

[0070] As an example, determining the startup information required for the flexible device to establish a connection with the power grid and constructing several loading sequences according to the startup information may include the following sub-steps:

[0071] S111 . After obtaining the connection mode between the flexible device and the power grid, determine the operation state of the power grid according to the connection mode, and search for a communication link according to the operation state.

[0072] S112, acquiring multiple communication nodes from the communication link, and calculating a path distance between each of the communication nodes and a node of the flexible device.

[0073] S113, selecting a plurality of target nodes from the plurality of communication nodes according to the path distance, and topologically sorting the plurality of target nodes corresponding to each functional unit by using the Kahn algorithm to obtain a plurality of loading sequences.

[0074] In one embodiment, the connection mode may be grid-connected, off-grid, reactive power compensation connection, etc. Different connection modes involve different devices in the grid and may also affect the operating status of the grid devices.

[0075] In order to fit the actual state of the power grid, the operating state of each device of the power grid under the connection mode can be determined, and the communication link can be found according to the operating state. The communication link is the communication link between each device in the power grid and the flexible device, and then the sequence of different interactive operations, different interactive processes or different interactive links is determined according to the communication link, and several loading sequences can be obtained.

[0076] Since a communication link may involve multiple devices, if the communication data needs to pass through multiple different devices during the interaction process, the interaction time is long, which reduces the communication efficiency.

[0077] In order to simplify the communication link, multiple communication nodes can be obtained from the communication link, and each communication node corresponds to a device or base station in the power grid.

[0078] The path distance between each communication node and the node of the flexible device can be calculated. Then, a number of path distances less than a preset distance are selected from the multiple path distances, and the nodes corresponding to the path distances less than the preset distance are taken as target nodes.

[0079] Subsequently, the Kahn algorithm can be used to perform topological sorting on several target nodes to obtain multiple sorting results, each of which includes one or more target nodes. The nodes of the sorting results can be connected into a new communication link, and each new communication link can be displayed to the user, allowing the user to assign subsequent interaction steps and links to each new communication link.

[0080] Then, the node information of the new communication link, the parameters of each node, and the parameters of each step and link of the interaction with the flexible device are constructed into a loading sequence. Specifically, the text of the above information and parameters can be spliced ​​into a loading sequence.

[0081] By screening nodes and reconstructing the loading sequence, the devices involved in communication can be reduced and the efficiency of communication can be improved. In addition, by combining the actual connection method to construct the loading sequence, flexible control and rapid response of flexible devices can be achieved.

[0082] S12, obtaining device parameters of the flexible device, and optimizing each of the loading sequences using the device parameters to obtain a plurality of optimized sequences, wherein the device parameters include: state parameters and control parameters.

[0083] In one embodiment, the device parameters of the flexible device may be obtained, and the device parameters include: state parameters and control parameters. The state parameters may include communication duration, number of heartbeat packets sent, wake-up words for online status, voltage value, current value, power value, and other parameters. The control parameters may be parameters for controlling the flexible device, including control instructions, switch quantity, set point, operation mode, protection threshold, action time, return coefficient, and the like.

[0084] Since the loading sequence includes parameters of each step and link of interacting with the flexible device, if the loading sequence parameters conflict with the device parameters of the flexible device, the flexible device may not be awakened and controlled to perform business processing. Therefore, each loading sequence can be optimized using device parameters to obtain several optimized sequences. Specifically, the parameters of each loading sequence can be modified using device parameters to complete the optimization and obtain an optimized sequence.

[0085] As an example, the step of acquiring device parameters of the flexible device and optimizing each loading sequence using the device parameters to obtain a plurality of optimized sequences may include the following sub-steps:

[0086] S121. Determine whether the parameters of each loading sequence conflict with the device parameters.

[0087] S122: If the parameters of the loading sequence conflict with the device parameters, each loading sequence is optimized according to the values ​​of the device parameters to obtain a plurality of optimized sequences.

[0088] Specifically, it can be determined whether the parameters of each of the loading sequences are within the parameter range of the device parameters. If the parameters of the loading sequence are not within the parameter range of the device parameters, it means that the parameters of the loading sequence conflict with the device parameters. Conversely, if the parameters of the loading sequence are within the parameter range of the device parameters, it means that the parameters of the loading sequence do not conflict with the device parameters.

[0089] If the parameters of the loading sequence conflict with the device parameters, the values ​​of the corresponding parameters of each loading sequence are modified according to the values ​​of the device parameters to complete the optimization process and obtain several optimized sequences.

[0090] The sequence identifier is an identifier generated according to the address offset, address length, and characteristics of the flexible device of the communication address of the loading sequence.

[0091] S13. Construct a cache space according to the number of the optimization sequences, and store the task parameters corresponding to each of the optimization sequences in the cache space.

[0092] Since each optimization sequence corresponds to an interactive process or step, in order to reduce the amount and capacity of data that the flexible device needs to process during the interaction, a cache space can be built according to the number of optimization sequences, and the task parameters corresponding to each optimization sequence can be stored in the cache space. Later in the interaction process, the flexible device can extract data from the server or control system of the power grid to reduce the cache it occupies.

[0093] As an example, the step of constructing a cache space according to the number of the optimization sequences and storing the task parameters corresponding to each of the optimization sequences in the cache space may include the following sub-steps:

[0094] S131. Count the number of the optimized sequences and obtain a sequence identifier of each of the optimized sequences.

[0095] S132: Establish a multi-level cache structure according to the symbols of the sequence identifier and divide a plurality of cache spaces according to the number of the optimized sequences.

[0096] S133. After obtaining the task parameters corresponding to the optimization sequence, store the task parameters in a corresponding cache space.

[0097] Specifically, in order to distinguish each cache space, the number of optimization sequences may be counted, and a sequence identifier of each optimization sequence may be obtained.

[0098] A multi-level cache structure is established according to the symbols of the sequence identifier and multiple cache spaces are divided according to the number of optimized sequences. Finally, the corresponding sequence identifier is added in each cache space.

[0099] After obtaining the task parameters corresponding to the optimization sequence, the task parameters are stored in the corresponding cache space.

[0100] The task parameters include various parameters required by the process or step, and specifically may be parameters that need to be provided by the power grid server.

[0101] S14: Determine a sequence identifier of each of the optimized sequences, and arrange a plurality of the optimized sequences according to the sequence identifier of each of the optimized sequences to obtain a sorting order.

[0102] Since interactive processing is required, in order to avoid conflicts or duplications when the flexible device executes steps, it is necessary to determine the sign of each optimization sequence, and arrange several optimization sequences according to the sign of each optimization sequence to obtain a sorting order.

[0103] As an example, determining the sequence identifier of each of the optimized sequences, arranging the plurality of optimized sequences according to the sequence identifier of each of the optimized sequences to obtain a sorting order may include the following sub-steps:

[0104] S141. Obtain a symbol value of a sequence identifier of each optimized sequence.

[0105] S142: Arrange the plurality of optimized sequences from large to small according to the size of the symbol values ​​to obtain a sorting order.

[0106] Specifically, the symbol value of the sequence identifier of each optimized sequence may be obtained, and the optimized sequences may be arranged from large to small according to the size of the symbol value to obtain a sorting order.

[0107] Optionally, a plurality of the optimized sequences may be arranged from small to large according to the size of the symbol value to obtain a sorting order.

[0108] Optionally, the length value of the sequence identifier of each optimized sequence may be obtained, and then the optimized sequences may be arranged from small to large or from large to small according to the length value to obtain a sorting order. The specific sorting method may be adjusted according to actual needs.

[0109] S15. Send the optimization sequence to the flexible device in sequence according to the arrangement order, so as to control the flexible device to extract task parameters from the cache space for business processing according to the optimization sequence.

[0110] After the sorting is completed, the optimization sequence can be sent to the flexible device in sequence according to the sorting results. The flexible device can read the optimization sequence, and then communicate with each device of the power grid according to the optimization sequence to be incorporated into the power grid. Since the optimization sequence contains the instructions and related parameters of the task, the flexible device can be controlled according to each instruction to extract the task parameters required for the task from the cache space of the power grid according to the sequence identifier of the optimization sequence, and then execute the corresponding business processing.

[0111] Since the above operation only requires the flexible device to extract data from the cache space of the power grid, the memory occupied by the data in the flexible device can be reduced, and the memory of the flexible device can be released, so that the flexible device can use more memory to perform its business or tasks. In addition, since the memory required by the flexible device is reduced, the structure of the flexible device and the number of components used can be further simplified to reduce the cost of the flexible device.

[0112] In the process of processing tasks by the flexible device, the flexible device may have processed some links of the tasks. If the data of the completed tasks is stored for a long time, the memory of the power grid may be occupied, wasting power grid resources. In order to avoid the above situation, as an example, after the step of sending the optimization sequence to the flexible device in sequence according to the arrangement order to control the flexible device to extract the task parameters from the cache space for business processing according to the optimization sequence, the method also includes:

[0113] S21, counting the number of accesses to the cache space and the duration of the access intervals.

[0114] S22: If the number of accesses is less than a preset number of times and the access interval is longer than a preset interval, clearing the task parameters stored in the cache space.

[0115] Specifically, the number of accesses and the access interval duration of each cache space may be used, wherein the number of accesses is the number of times the flexible device accesses the cache space, and the access interval duration is the interval duration between two adjacent accesses by the flexible device.

[0116] If the number of accesses to the cache space is less than the preset number and the access interval is longer than the preset time, it means that the flexible device may have completed the task, and the task parameters stored in the cache space may be cleared.

[0117] Optionally, it is also possible that the flexible device cannot complete the task for a long time, and the task parameters stored in the cache space need to be called later.

[0118] After determining that the number of accesses to the cache space is less than a preset number and the access interval is longer than a preset duration, task query information may be sent to the flexible device. If the flexible device feeds back a task result, the task parameters stored in the cache space may be cleared.

[0119] In one embodiment, after completing a task, the flexible device may need to perform the next task. In order to facilitate the flexible device to perform the next task and improve the task processing efficiency, as an example, after the step of sending the optimization sequence to the flexible device in sequence according to the arrangement order to control the flexible device to extract the task parameters from the cache space for business processing according to the optimization sequence, the method further includes:

[0120] S31. After receiving the business processing result of the flexible device, update the task parameters stored in the cache space.

[0121] Specifically, after receiving the business processing result of the flexible device, it can be determined that the flexible device has completed the current task. The task parameters stored in the cache space can be cleared according to the operation of the above-mentioned step S22. At the same time, the task parameters of the next task of the flexible device can be obtained, and the task parameters stored in the cache space can be updated with the new task parameters. The flexible device can also subsequently extract new task parameters from the cache space to execute business or tasks.

[0122] In this embodiment, the embodiment of the present invention provides a control method for a flexible device, and its beneficial effects are: the present invention can determine the startup information required for the flexible device to establish a connection with the power grid, and construct several optimization sequences according to the startup information; construct a cache space according to the number of optimization sequences, and store the task parameter values ​​corresponding to each optimization sequence in the cache space; send the optimization sequence to the flexible device to control the flexible device to extract the task parameters from the cache space for business processing according to the optimization sequence. By constructing the parameters required for the cache space to store the task, the flexible device can extract data from the cache space, which can reduce the memory occupied by the data in the flexible device, and can release the memory of the flexible device, so that the flexible device can use more memory to perform its business or tasks, thereby improving the efficiency of the flexible device in processing business or tasks and improving the utilization of resources.

[0123] The present invention also provides a control device for a flexible device. Figure 2 , showing a schematic structural diagram of a control device for a flexible device provided by an embodiment of the present invention.

[0124] Wherein, as an example, the control device of the flexible device may include:

[0125] A sequence building module 210 is used to determine the startup information required for the flexible device to establish a connection with the power grid, and to build a plurality of loading sequences according to the startup information;

[0126] The priority sequence module 220 is used to obtain device parameters of the flexible device, and optimize each of the loading sequences using the device parameters to obtain a plurality of optimized sequences, wherein the device parameters include: state parameters and control parameters;

[0127] A storage parameter module 230 is used to construct a cache space according to the number of the optimization sequences, and store the task parameters corresponding to each of the optimization sequences in the cache space;

[0128] A sequence sorting module 240 is used to determine a sequence identifier of each of the optimized sequences, and to arrange a plurality of the optimized sequences according to the sequence identifier of each of the optimized sequences to obtain a sorting order;

[0129] The device control module 250 is used to send the optimization sequence to the flexible device in sequence according to the arrangement order, so as to control the flexible device to extract task parameters from the cache space for business processing according to the optimization sequence.

[0130] Optionally, the determining of startup information required for the flexible device to establish a connection with the power grid, and constructing a plurality of loading sequences according to the startup information, includes:

[0131] After obtaining the connection mode between the flexible device and the power grid, determining the operation state of the power grid according to the connection mode, and searching for a communication link according to the operation state;

[0132] Acquire a plurality of communication nodes from the communication link, and calculate a path distance between each of the communication nodes and a node of the flexible device;

[0133] A plurality of target nodes are selected from the plurality of communication nodes according to the path distance, and a plurality of target nodes corresponding to each functional unit are topologically sorted by using the Kahn algorithm to obtain a plurality of loading sequences.

[0134] Optionally, the acquiring device parameters of the flexible device and optimizing each of the loading sequences using the device parameters to obtain a plurality of optimized sequences include:

[0135] Determining whether the parameters of each of the loading sequences conflict with the device parameters;

[0136] If the parameters of the loading sequence conflict with the device parameters, each loading sequence is optimized according to the values ​​of the device parameters to obtain a plurality of optimized sequences.

[0137] Optionally, the constructing a cache space according to the number of the optimization sequences, and storing the task parameters corresponding to each of the optimization sequences in the cache space, includes:

[0138] Counting the number of the optimized sequences and obtaining a sequence identifier of each of the optimized sequences;

[0139] Establishing a multi-level cache structure according to the symbols of the sequence identifier and dividing a plurality of cache spaces according to the number of the optimized sequences;

[0140] After obtaining the task parameters corresponding to the optimization sequence, the task parameters are stored in the corresponding cache space.

[0141] Optionally, the determining a sequence identifier of each of the optimized sequences, and arranging a plurality of the optimized sequences according to the sequence identifier of each of the optimized sequences to obtain a sorting order includes:

[0142] Obtaining a symbol value of a sequence identifier of each of the optimized sequences;

[0143] The plurality of optimized sequences are arranged from large to small according to the size of the symbol values ​​to obtain a sorting order.

[0144] Optionally, the device further comprises:

[0145] A statistics module, configured to count the number of accesses to the cache space and the length of the access interval after the step of sending the optimization sequence to the flexible device in sequence according to the arrangement order to control the flexible device to extract task parameters from the cache space for business processing according to the optimization sequence;

[0146] The parameter clearing module is used to clear the task parameters stored in the cache space if the number of accesses is less than a preset number of times and the access interval duration is greater than a preset duration.

[0147] Optionally, the device further comprises:

[0148] The parameter updating module is used to update the task parameters stored in the cache space after receiving the business processing result of the flexible device, after sending the optimization sequence to the flexible device in sequence according to the arrangement order to control the flexible device to extract the task parameters from the cache space according to the optimization sequence for business processing.

[0149] Those skilled in the art can clearly understand that, for the sake of convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0150] Furthermore, an embodiment of the present application also provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the control method of the flexible device as described in the above embodiment is implemented.

[0151] Furthermore, an embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer-executable program, and the computer-executable program is used to enable a computer to execute the control method of the flexible device as described in the above embodiment.

[0152] It should be noted that the orientation or positional relationship indicated by the terms "upper", "lower", etc. is based on the orientation or positional relationship shown in the accompanying drawings, which is only for the convenience of describing the embodiments of the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. When an element such as a layer, region or substrate is referred to as being "on" or "above" another element, it can be directly on the other element, or there can also be an intermediate element. On the contrary, when an element is referred to as "directly on" or "above" another element, there is no intermediate element. It should also be understood that when an element is referred to as being "under" or "below" another element, it can be directly under or below the other element, or there can also be an intermediate element. On the contrary, when an element is referred to as being "directly under" or "below" another element, there is no intermediate element. Unless otherwise clearly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0153] Those skilled in the art will appreciate that the embodiments of the present application may also provide computer program products. Therefore, the present application may adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program codes.

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

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

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

[0157] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A control method for a flexible device, characterized in that: The method comprises: Determine the startup information required for the flexible device to establish a connection with the power grid, and construct a plurality of loading sequences according to the startup information; Acquire device parameters of the flexible device, and optimize each of the loading sequences using the device parameters to obtain a plurality of optimized sequences, wherein the device parameters include: state parameters and control parameters; Building a cache space according to the number of the optimization sequences, and storing the task parameters corresponding to each of the optimization sequences in the cache space; Determine a sequence identifier of each of the optimized sequences, and arrange a plurality of the optimized sequences according to the sequence identifier of each of the optimized sequences to obtain a sorting order; Sending the optimization sequence to the flexible device in sequence according to the arrangement order, so as to control the flexible device to extract task parameters from the cache space for business processing according to the optimization sequence; The step of constructing a cache space according to the number of the optimization sequences and storing the task parameters corresponding to each of the optimization sequences in the cache space includes: Counting the number of the optimized sequences and obtaining a sequence identifier of each of the optimized sequences; Establishing a multi-level cache structure according to the symbols of the sequence identifier and dividing a plurality of cache spaces according to the number of the optimized sequences; After obtaining the task parameters corresponding to the optimization sequence, the task parameters are stored in the corresponding cache space.

2. The control method of the flexible device according to claim 1, characterized in that: The step of determining the startup information required for the flexible device to establish a connection with the power grid and constructing a plurality of loading sequences according to the startup information includes: After obtaining the connection mode between the flexible device and the power grid, determining the operation state of the power grid according to the connection mode, and searching for a communication link according to the operation state; Acquire a plurality of communication nodes from the communication link, and calculate a path distance between each of the communication nodes and a node of the flexible device; A plurality of target nodes are selected from the plurality of communication nodes according to the path distance, and a plurality of target nodes corresponding to each functional unit are topologically sorted by using the Kahn algorithm to obtain a plurality of loading sequences.

3. The control method of the flexible device according to claim 1, characterized in that: The step of obtaining device parameters of the flexible device and optimizing each loading sequence using the device parameters to obtain a plurality of optimized sequences includes: Determining whether the parameters of each of the loading sequences conflict with the device parameters; If the parameters of the loading sequence conflict with the device parameters, each loading sequence is optimized according to the values ​​of the device parameters to obtain a plurality of optimized sequences.

4. The control method of the flexible device according to claim 1, characterized in that: The step of determining a sequence identifier of each of the optimized sequences and arranging the plurality of optimized sequences according to the sequence identifier of each of the optimized sequences to obtain a sorting order includes: Obtaining a symbol value of a sequence identifier of each of the optimized sequences; The plurality of optimized sequences are arranged from large to small according to the size of the symbol values ​​to obtain a sorting order.

5. The control method of the flexible device according to any one of claims 1 to 4, characterized in that: After the step of sending the optimization sequence to the flexible device in sequence according to the arrangement order to control the flexible device to extract task parameters from the cache space for business processing according to the optimization sequence, the method further includes: Counting the number of accesses to the cache space and the duration of the access interval; If the number of accesses is less than a preset number of times and the access interval duration is greater than a preset duration, the task parameters stored in the cache space are cleared.

6. The control method of the flexible device according to any one of claims 1 to 4, characterized in that: After the step of sending the optimization sequence to the flexible device in sequence according to the arrangement order to control the flexible device to extract task parameters from the cache space for business processing according to the optimization sequence, the method further includes: After receiving the business processing result of the flexible device, the task parameters stored in the cache space are updated.

7. A control device for a flexible device, characterized in that: The device comprises: A sequence building module is used to determine the startup information required for the flexible device to establish a connection with the power grid, and to build a number of loading sequences according to the startup information; A priority sequence module is used to obtain device parameters of the flexible device, and optimize each of the loading sequences using the device parameters to obtain a plurality of optimized sequences, wherein the device parameters include: state parameters and control parameters; A storage parameter module, used to construct a cache space according to the number of the optimization sequences, and store the task parameters corresponding to each of the optimization sequences in the cache space; A sequence sorting module, used to determine a sequence identifier of each of the optimized sequences, and to arrange a plurality of the optimized sequences according to the sequence identifier of each of the optimized sequences to obtain a sorting order; A device control module, used to send the optimization sequence to the flexible device in sequence according to the arrangement order, so as to control the flexible device to extract task parameters from the cache space for business processing according to the optimization sequence; The step of constructing a cache space according to the number of the optimization sequences and storing the task parameters corresponding to each of the optimization sequences in the cache space includes: Counting the number of the optimized sequences and obtaining a sequence identifier of each of the optimized sequences; Establishing a multi-level cache structure according to the symbols of the sequence identifier and dividing a plurality of cache spaces according to the number of the optimized sequences; After obtaining the task parameters corresponding to the optimization sequence, the task parameters are stored in the corresponding cache space.

8. An electronic device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the control method of the flexible device according to any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer-executable program, and the computer-executable program is used to enable a computer to execute the control method of the flexible device according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Cached data loading method and apparatus

    CN106021445A

  • Source-grid-load coordinated control system for active distribution network containing microgrid group

    CN107359617A