Power distribution system control method and device, computer equipment, readable storage medium and program product
By identifying and updating the expansion module of the control terminal in the distribution system and obtaining and adjusting timing parameters, the problem of inefficiency of traditional distribution systems when facing distributed energy access is solved, real-time monitoring and rapid response are achieved, and improving The overall control efficiency of the distribution system.
Patent Information
- Application Number
- CN202411351012.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2024-12-27
AI Technical Summary
When traditional distribution monitoring and control terminals face the access of distributed energy equipment in new distribution systems, they cannot effectively respond to the needs of large-scale distributed energy access, real-time monitoring and rapid response, resulting in low control efficiency.
Provide a power distribution system control method, which realizes dynamic adjustment and transmission of data by determining the expansion module connected to the power distribution control terminal, obtaining and updating the control program, and obtaining interface and protocol timing parameters, ensuring the real-time and compatibility of the system.
Through automated control program updates and module identification, the system's response speed to distributed energy access is improved, real-time monitoring and rapid response are achieved, and the control efficiency of the distribution system is improved.
Smart Images

Figure CN119209915A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of power grid control technology, and in particular to a power distribution system control method, device, computer equipment, computer-readable storage medium and computer program product. Background Art
[0002] With the development of new power system construction, especially in the access of distributed energy, the topology and number of equipment in the distribution network are changing rapidly, and the distribution system is gradually facing new challenges.
[0003] The design of traditional power distribution monitoring and control terminals is relatively simple, mainly focusing on the collection of basic electrical parameters such as voltage and current and the remote control of switching equipment. They have fixed functions and are installed on fixed nodes, such as switchgear, ring network cabinets, small substations, etc.
[0004] However, this traditional method cannot effectively cope with the requirements of large-scale distributed energy access, real-time monitoring and rapid response when dealing with the access of distributed energy equipment in new distribution systems, resulting in low control efficiency of the distribution system. Summary of the invention
[0005] Based on this, it is necessary to provide a power distribution system control method, device, computer equipment, computer readable storage medium and computer program product to address the above technical problems.
[0006] In a first aspect, the present application provides a power distribution system control method, the method being applied to a power distribution control terminal of the power distribution system, the method comprising:
[0007] Determine an expansion module connected to the power distribution control terminal; the expansion module includes a first expansion module and a second expansion module; the first expansion module includes a storage function module, and the second expansion module includes other function modules except the storage function module;
[0008] Acquire a target program version of a first control program for controlling the expansion module, and acquire a current program version of a second control program on the power distribution control terminal;
[0009] Comparing the current program version with the target program version, and when the current program version does not match the target program version, acquiring the first control program, and updating the control program of the power distribution control terminal according to the first control program;
[0010] Acquire interface timing parameters and protocol timing parameters according to the first control program obtained after updating;
[0011] receiving and sending data of the first expansion module according to the interface timing parameters;
[0012] Receive and send data of the second expansion module according to the protocol timing parameters.
[0013] In one embodiment, receiving and sending data of the first expansion module of the power distribution system according to the interface timing parameter includes:
[0014] adjusting the data communication cycle of the first expansion module according to the interface timing parameters, and modifying the data transmission pulse width, the transmission address time and the data holding time according to the operation status of the first expansion module;
[0015] Data is received and sent with the first expansion module according to the communication cycle, the data sending pulse width, the sending address time and the data holding time.
[0016] In one embodiment, receiving and sending data of a second expansion module of the power distribution system according to the protocol timing parameter includes:
[0017] receiving data of the second extension module according to the protocol timing parameters, and converting the received data of the second extension module into data conforming to the interface timing parameters;
[0018] The data conforming to the interface timing parameters are converted into data conforming to the protocol timing parameters, and the data conforming to the protocol timing parameters are sent to the second expansion module.
[0019] In one embodiment, converting the received data of the second expansion module into data conforming to the interface timing parameters includes:
[0020] In the process of receiving the data provided by the second expansion module, if the data conversion speed is greater than the data receiving speed, writing the data that meets the interface timing parameters into the data buffer, and receiving the data written into the data buffer according to the interface timing parameters;
[0021] In the process of sending data to the second expansion module, if the data conversion speed is greater than the data sending speed, the data that meets the protocol timing parameters is written into the data buffer, and the data written into the data buffer is sent according to the protocol timing parameters.
[0022] In one embodiment, comparing the current program version with the target program version, and when the current program version does not match the target program version, acquiring the first control program, and updating the control program of the power distribution control terminal according to the first control program, includes:
[0023] When the current program version is lower than the target program version, sending a program loading request for acquiring the first control program to a cloud server through a network connection;
[0024] On a preset data line, the first control program returned by the cloud server in response to the program loading request is received, and the second control program is updated to the first control program.
[0025] In one embodiment, after the control program of the power distribution control terminal is updated according to the first control program, the method further includes:
[0026] Sending test data to the expansion module according to a preset data line;
[0027] Receiving test feedback data from the extension module to obtain updated test results;
[0028] If the update test result indicates that the update is successful, the data transmission requirement of the expansion module is determined according to the working state of the expansion module, and a query of the interface timing parameters and the protocol timing parameters related to the data transmission requirement is triggered;
[0029] If the update test result indicates that the update fails, the program is rolled back to the second control program, and a program loading request for obtaining the first control program is resent to the cloud server.
[0030] In a second aspect, the present application also provides a power distribution system control device, comprising:
[0031] A module identification and classification module, used to determine the expansion module connected to the power distribution control terminal; the expansion module includes a first expansion module and a second expansion module; the first expansion module includes a storage function module, and the second expansion module includes other function modules except the storage function module;
[0032] A version management and comparison module, used to obtain a target program version of a first control program for controlling the extension module, and to obtain a current program version of a second control program on the power distribution control terminal;
[0033] A version update module, used for comparing the current program version with the target program version, and when the current program version does not match the target program version, obtaining the first control program, and updating the control program of the power distribution control terminal according to the first control program;
[0034] A timing parameter acquisition module, used to acquire interface timing parameters and protocol timing parameters according to the first control program obtained after updating;
[0035] A first expansion module data transmission module, used for receiving and sending data of the first expansion module according to the interface timing parameters;
[0036] The second expansion module data transmission module is used to receive and send data of the second expansion module according to the protocol timing parameters.
[0037] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0038] Determine an expansion module connected to the power distribution control terminal; the expansion module includes a first expansion module and a second expansion module; the first expansion module includes a storage function module, and the second expansion module includes other function modules except the storage function module;
[0039] Acquire a target program version of a first control program for controlling the expansion module, and acquire a current program version of a second control program on the power distribution control terminal;
[0040] Comparing the current program version with the target program version, and when the current program version does not match the target program version, acquiring the first control program, and updating the control program of the power distribution control terminal according to the first control program;
[0041] Acquire interface timing parameters and protocol timing parameters according to the first control program obtained after updating;
[0042] receiving and sending data of the first expansion module according to the interface timing parameters;
[0043] Receive and send data of the second expansion module according to the protocol timing parameters.
[0044] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0045] Determine an expansion module connected to the power distribution control terminal; the expansion module includes a first expansion module and a second expansion module; the first expansion module includes a storage function module, and the second expansion module includes other function modules except the storage function module;
[0046] Acquire a target program version of a first control program for controlling the expansion module, and acquire a current program version of a second control program on the power distribution control terminal;
[0047] Comparing the current program version with the target program version, and when the current program version does not match the target program version, acquiring the first control program, and updating the control program of the power distribution control terminal according to the first control program;
[0048] Acquire interface timing parameters and protocol timing parameters according to the first control program obtained after updating;
[0049] receiving and sending data of the first expansion module according to the interface timing parameters;
[0050] Receive and send data of the second expansion module according to the protocol timing parameters.
[0051] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0052] Determine an expansion module connected to the power distribution control terminal; the expansion module includes a first expansion module and a second expansion module; the first expansion module includes a storage function module, and the second expansion module includes other function modules except the storage function module;
[0053] Acquire a target program version of a first control program for controlling the expansion module, and acquire a current program version of a second control program on the power distribution control terminal;
[0054] Comparing the current program version with the target program version, and when the current program version does not match the target program version, acquiring the first control program, and updating the control program of the power distribution control terminal according to the first control program;
[0055] Acquire interface timing parameters and protocol timing parameters according to the first control program obtained after updating;
[0056] receiving and sending data of the first expansion module according to the interface timing parameters;
[0057] Receive and send data of the second expansion module according to the protocol timing parameters.
[0058] The above-mentioned power distribution system control method, device, computer equipment, computer-readable storage medium and computer program product applied to the power distribution control terminal are determined by determining the extension module connected to the power distribution control terminal; the extension module includes a first extension module and a second extension module; the first extension module includes a storage function module, and the second extension module includes other function modules except the storage function module; the target program version of the first control program used to control the extension module is obtained, and the current program version of the second control program on the power distribution control terminal is obtained; the current program version is compared with the target program version, and when the current program version does not match the target program version, the first control program is obtained, and the control program of the power distribution control terminal is updated according to the first control program; the interface timing parameters and the protocol timing parameters are obtained according to the first control program obtained after the update; according to the interface timing parameters, the data of the first extension module is received and sent; according to the protocol timing parameters, the data of the second extension module is received and sent. In this application, the control program is updated through automation to ensure that the control program can be updated to a compatible version in real time, thereby improving the system's response speed to distributed energy access; by identifying extension modules and distinguishing their functions, and controlling them according to timing parameters, the distribution system can control different modules, so that the entire system control can realize multiple functions, and at the same time enable the system to correctly receive and send data from different extension modules at the first time, ensuring that the operation of the system meets real-time requirements, realizing real-time monitoring and rapid response to large-scale distributed energy access, and improving the control efficiency of the distribution system. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0060] FIG1 is a schematic flow chart of a power distribution control method in one embodiment;
[0061] FIG2 is a schematic diagram of GPCM interface data transmission in one embodiment;
[0062] FIG3 is a schematic diagram of GPCM interface data reception in one embodiment;
[0063] FIG4 is a schematic diagram of a structure of data conversion in one embodiment;
[0064] FIG5 is a schematic diagram of the structure of data buffering in one embodiment;
[0065] FIG6 is a block diagram of a power distribution system control device in one embodiment;
[0066] FIG. 7 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0067] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0068] In one embodiment, as shown in FIG1 , a power distribution system control method is provided, and the method is applied to a power distribution control terminal of the power distribution system. In this embodiment, the method includes the following steps:
[0069] Step S101, determining an expansion module connected to the power distribution control terminal; the expansion module includes a first expansion module and a second expansion module; the first expansion module includes a storage function module, and the second expansion module includes other function modules except the storage function module.
[0070] The expansion module refers to a functional module connected through the power distribution control terminal. The expansion module is to enhance the function of the power distribution system and support the needs of various application scenarios. The power distribution control terminal can detect the type of the expansion module and dynamically load the corresponding control logic. The expansion module may include a first expansion module and a second expansion module.
[0071] The first expansion module refers to a module with storage function. Its main function is to provide additional data storage capacity for the distribution control terminal, which is used to store a large amount of historical data, such as equipment operation records, fault recordings, etc. The storage module can include static random access memory (Static Random-Access Memory, SRAM), synchronous dynamic random access memory (Synchronous Dynamic Random-Access Memory, SDRAM), read-only memory (Read-OnlyMemory, ROM), pseudo static random access memory (Pseudo Static Random-Access Memory, PSRAM), Nor Flash Memory and Nand Flash Memory, etc.
[0072] The second extension module includes all other functional modules except the storage function. The extension module can be a display module, an analog quantity acquisition module, an Internet of Things module, etc. These modules are responsible for communication with external devices, data acquisition and display functions, and can obtain and present the operating status of the power distribution system in real time, or perform remote communication through the Internet of Things module.
[0073] Optionally, the power distribution control terminal can automatically identify the type of expansion module connected to it through a preset interface and signal detection mechanism. In one embodiment, the power distribution control terminal detects and confirms whether the expansion module connected to the interface is a storage module or a non-storage module by scanning its physical interface.
[0074] In some embodiments, the power distribution control terminal can determine the type of the expansion module in advance through manual configuration. This method can be used in scenarios where the network is unstable or resources are limited, without automatic identification.
[0075] Step S102, obtaining a target program version of a first control program for controlling the expansion module, and obtaining a current program version of a second control program on the power distribution control terminal.
[0076] The first control program is the core software instruction set for controlling the expansion module. It defines the operation logic, timing control and communication protocol between the expansion module and the power distribution control terminal. Functionally, the first control program determines the operation mode of the expansion module.
[0077] The target program version is the version number of the first control program, which is used to identify the latest updated version of the control program. The target program version is stored in a storage unit of a remote server or an expansion module, and represents the latest set of functions that the system expects the expansion module to run.
[0078] The second control program is the control program currently running on the power distribution control terminal, which is responsible for coordinating all operations between the power distribution control terminal and external devices, including the control of the expansion module. The current program version is the current version number of the second control program, which identifies the control program version currently running in the power distribution control terminal and determines the current functions of the power distribution control terminal and its compatibility with the expansion module.
[0079] Optionally, during operation, the power distribution control terminal acquires, through detection, a target program version of the first control program for controlling the extension module and a current program version of the second control program of the power distribution control terminal itself.
[0080] In some embodiments, when the system is offline or the network is unstable, the target program version can be directly loaded into the power distribution control terminal through local storage. The terminal can pre-configure a local storage device to read the required target program version.
[0081] Step S103, comparing the current program version with the target program version, and when the current program version does not match the target program version, obtaining a first control program, and updating the control program of the power distribution control terminal according to the first control program.
[0082] Optionally, after obtaining the current program version and the target program version, the version number is checked byte by byte. If the current program version is consistent with the target program version, the power distribution control terminal will keep the current control program and continue its normal operation. If they are inconsistent, it means that the current program version cannot meet the operation requirements of the expansion module, triggering the control program update process, and the power distribution control terminal will actively request to obtain the latest first control program.
[0083] The power distribution control terminal writes the newly acquired first control program into the local storage space to replace the current second control program. In order to ensure the safety and correctness of the program update, the power distribution control terminal will first verify the integrity of the program and confirm that the downloaded program is not damaged or wrong before installing it.
[0084] Optionally, the power distribution control terminal can set a regular update mechanism to automatically check the target program version at a preset time interval, and obtain the latest target program version of the first control program in advance and save it to the local cache. When the power distribution control terminal finds that the target program version is the latest, it directly loads the latest first control program from the local cache.
[0085] Step S104, acquiring interface timing parameters and protocol timing parameters according to the updated first control program.
[0086] Specifically, after the control program is updated, the power distribution control terminal will immediately parse out the interface timing parameters and protocol timing parameters related to the expansion module from the updated first control program.
[0087] The power distribution control terminal obtains the interface timing parameters required for communication with the expansion module through the timing control table or configuration file in the first control program.
[0088] For non-storage expansion modules, the power distribution control terminal extracts corresponding protocol timing parameters from the first control program.
[0089] Step S105: receiving and sending data of the first expansion module according to the interface timing parameters.
[0090] Specifically, the power distribution control terminal applies the interface timing parameters to the interface signal control between it and the first expansion module, and receives and sends the data of the first expansion module.
[0091] Optionally, if the power distribution control terminal cannot automatically obtain the timing parameters of the extension module, it may respond to manually inputting the interface timing control parameters of the extension module.
[0092] Step S106: receiving and sending data of the second expansion module according to the protocol timing parameters.
[0093] Specifically, before the power distribution control terminal communicates with the second expansion module, it first sets the timing control signal of the communication interface according to the predetermined protocol timing parameters. The protocol timing parameters include the start time of data transmission, the interval time of data frames, the duration of handshake signals, etc. The power distribution control terminal adjusts the specific execution process of the communication protocol according to the protocol timing parameters to ensure that the communication with the second expansion module complies with the protocol specifications.
[0094] In the above-mentioned power distribution system control method, the method is applied to the power distribution control terminal of the power distribution system, by determining the extension module connected to the power distribution control terminal; the extension module includes a first extension module and a second extension module; the first extension module includes a storage function module, and the second extension module includes other function modules except the storage function module; the target program version of the first control program used to control the extension module is obtained, and the current program version of the second control program on the power distribution control terminal is obtained; the current program version is compared with the target program version, and when the current program version does not match the target program version, the first control program is obtained, and the control program of the power distribution control terminal is updated according to the first control program; the interface timing parameters and the protocol timing parameters are obtained according to the first control program obtained after the update; according to the interface timing parameters, the data of the first extension module is received and sent; according to the protocol timing parameters, the data of the second extension module is received and sent. In this embodiment, the control program is updated automatically to ensure that the control program can be updated to a compatible version in real time, thereby improving the system's response speed to distributed energy access; by identifying extension modules and distinguishing their functions, and controlling them according to timing parameters, the distribution system can control different modules, so that the entire system control can realize multiple functions, and at the same time enable the system to correctly receive and send data from different extension modules at the first time, ensuring that the operation of the system meets real-time requirements, realizing real-time monitoring and rapid response to large-scale distributed energy access, and improving the overall control efficiency of the distribution system.
[0095] In an exemplary embodiment, data of a first expansion module of a power distribution system is received and sent according to interface timing parameters, including: adjusting the data communication cycle of the first expansion module according to the interface timing parameters, and modifying the data sending pulse width, sending address time and data holding time according to the operating status of the first expansion module; receiving and sending data with the first expansion module according to the communication cycle, data sending pulse width, sending address time and data holding time.
[0096] The interface timing parameters include: receive / send data bus turnaround time, receive data cycle time, send data pulse width, send address setup time and send address / data hold time.
[0097] The receive / transmit data bus turnaround time refers to the time it takes for the data bus to turn around when the system switches from receive mode to transmit mode or vice versa during data transmission. During this turnaround time, the bus will not receive or send data, and the system needs to wait for this time period to end before continuing to transmit data normally.
[0098] The receive data cycle time is the delay time required to read data from the start of the receive cycle to the validity of the read enable signal. In actual operation, this is the time the system needs to wait after issuing a read request.
[0099] The transmit data pulse width is the length of time that the data pulse remains valid during the transmit operation. This pulse width defines the write timing of the data.
[0100] The send address setup time is the period of time during which the address is set and stabilized in advance before the write enable signal takes effect.
[0101] The send address / data hold time indicates the time that the address and data signals need to remain unchanged after being sampled after the data is sent.
[0102] Specifically, the power distribution control terminal first adjusts the communication cycle with the first expansion module according to the interface timing parameters obtained from the first control program. The data communication cycle is adjusted to match the current operating state and workload of the first expansion module. If the expansion module is in a high load state, the data communication cycle may need to be appropriately extended to ensure that the module can process the data transmitted each time. In a low load state, the communication cycle can be shortened to increase the data transmission rate.
[0103] In one embodiment, the power distribution system control terminal is provided with a storage controller (GPCM), and the control pin of the GPCM can be directly connected to the control pin of the first expansion module, and the GPCM completes the data receiving and sending operations of the storage class module according to the interface timing parameters.
[0104] In the process of receiving data from a storage module, as shown in Figure 2, first, the chip select signal (CS) is pulled low to select the storage module. Then, the output enable signal (OE_N) is pulled low to start the data receiving operation. At this time, the receive data cycle time begins to take effect. The data to be read is determined by the address signal (ADDR[18:0]). Before reading, the address signal must remain stable to ensure that the power distribution control terminal reads the data from the correct storage location. During data transmission, the send address / data hold time ensures that the address and data continue to remain stable before the read is completed to prevent incomplete data reading. After the read operation is completed, the bus returns to the idle state through the receive data bus turnaround time to prepare for the next transmission.
[0105] In the process of sending data to the storage module, as shown in Figure 3, the chip select signal (CS) is pulled low, indicating that the non-storage module has been selected and is ready to communicate. Next, the write enable signal (WE_N) is pulled low to start the transmission operation. At the same time, the transmission address setup time comes into effect, stipulating that the address signal (ADDR[18:0]) remains stable before writing data. Then, the data transmission pulse width controls the effective time of the data signal (DATA[31:0]) on the data bus to ensure that the data has enough time to be transmitted to the storage module during the writing process. After the transmission operation is completed, the transmission address hold time and the transmission data hold time ensure that the address and data signals continue to be maintained for a period of time after the transmission is completed to prevent data loss. Finally, the receive / transmit data bus turnaround time controls the bus switching between receiving and transmitting, ensuring that the bus can safely return to the idle state after the transmission operation is completed.
[0106] In some embodiments, the SRAM is connected to the GPCM memory controller. As shown in Table 1, the address lines (GPCM_A0-A15) of the GPCM are connected one-to-one with the address lines (A0-A15) of the SRAM to ensure that the GPCM can access the storage cells of the SRAM through these address lines. Data transmission is carried out through the data lines (GPCM_D0-D15) of the GPCM and the input and output pins (IO0-IO15) of the SRAM. These data lines are bidirectional, allowing data to be transferred between the GPCM and the SRAM. The chip select signal (GPCM_CSn_B) is connected to the chip select pin (CE_N) of the SRAM to select the SRAM chip for operation. The write enable signal (GPCM_WE_B) and the read enable signal (GPCM_OE_B) control the write and read operations respectively, and are connected to the write enable (WE_N) and read enable (OE_N) pins of the SRAM. In addition, the lower byte control line (GPCM_BS0_B) and upper byte control line (GPCM_BS1_B) of the GPCM are connected to the lower byte (LB_N) and upper byte (UB_N) control pins of the SRAM, respectively, for selecting byte operations.
[0107]
[0108] Table 1
[0109] In some embodiments, the SDRAM is connected to the GPCM memory controller, as shown in Table 2, the GPCM address lines (GPCM_A0-A12) are connected to the address lines (A0-A12) of the SDRAM. The data lines are connected in a similar way to the SRAM, with the GPCM's (GPCM_D0-D15) connected to the SDRAM's (DQ0-DQ15), allowing bidirectional data transmission. The chip select signal (GPCM_CSn_B) controls the chip select function of the SDRAM through the CS_N pin, while the write enable (GPCM_WE_B) directly controls the write operation. Unlike SRAM, SDRAM does not have a dedicated read enable signal. The GPCM low-byte and high-byte control lines (GPCM_BS0_B, GPCM_BS1_B) are connected to the SDRAM's (BS0, BS1) pins respectively to control byte access.
[0110]
[0111] Table 2
[0112] In some embodiments, Flash is connected to the GPCM memory controller, as shown in Table 3, the GPCM address and data lines are multiplexed into the same group (GPCM_D0-D7), connected to the input and output pins (IO0-IO7) of Flash for data transmission. The chip select signal (GPCM_CSn_B) controls the chip select pin (#CE) of Flash, while the write enable and read enable signals control the write and read operations through (GPCM_WE_B) and (GPCM_OE_B), respectively, connected to the (#WE) and (#RE) pins. In addition, Flash also includes a flash address latch enable signal (ALE) and a flash command latch enable signal (CLE), which are controlled by GPCM's (GPCM_A17) and (GPCM_A16), respectively, and are responsible for the latching of addresses and commands.
[0113]
[0114] Table 3
[0115] In this embodiment, the power distribution control terminal can dynamically adjust the data communication cycle, data transmission pulse width, transmission address time and data retention time according to the operating status of the first expansion module and the current interface timing parameters, thereby ensuring the accuracy and stability of data transmission.
[0116] In an exemplary embodiment, data of a second expansion module of a power distribution system is received and sent according to protocol timing parameters, including: receiving data of the second expansion module according to the protocol timing parameters, converting the received data of the second expansion module into data that conforms to the interface timing parameters; converting the data that conforms to the interface timing parameters into data that conforms to the protocol timing parameters, and sending the data that conforms to the protocol timing parameters to the second expansion module.
[0117] Specifically, the power distribution control terminal first receives data from the second expansion module according to the protocol timing parameters. The protocol timing parameters specify the data transmission timing. After the received data is processed by the protocol timing parameters, it arrives at the power distribution control terminal according to the specified timing. After the data is received, the power distribution control terminal converts the received data that conforms to the protocol timing parameters into a data format that conforms to the interface timing parameters.
[0118] When sending data to the second expansion module, the power distribution control terminal will first convert the internal data that conforms to the interface timing parameters into data that conforms to the protocol timing parameters. This process includes adjusting the data transmission rate, controlling the signal synchronization timing, arranging the data frame sequence, etc. Finally, the power distribution control terminal sends the data to the second expansion module according to the protocol timing parameters.
[0119] In one embodiment, as shown in FIG4 , the power distribution control terminal is provided with a GPCM and a programmable logic device (FPGA), and the GPCM communicates with the FPGA through multiple signal lines, including a data line (data), an address line (addr), a chip select signal (CS_N), a write enable signal (WE_N), an output enable signal (OE_N), and other auxiliary signals (BS0, BS1). These signals are transmitted synchronously according to the interface timing parameters.
[0120] After receiving the data signal, address signal and control signal from GPCM, FPGA will convert the data that meets the interface timing parameters into data that meets the protocol timing parameters of the external communication protocol to meet the communication requirements of the non-storage module. After FPGA correctly processes the data, the data processed according to the protocol timing parameters will be sent to the second expansion module.
[0121] Similarly, when the non-storage module needs to feed back data to the GPCM, the FPGA will receive the feedback data from the non-storage module and convert the data from the protocol timing parameters to the interface timing parameters that meet the GPCM internal communication requirements, ensuring that the GPCM can correctly parse the feedback data according to its own timing specifications and realize two-way data transmission and communication.
[0122] In this embodiment, the compatibility problem caused by different communication protocols and different internal data transmission mechanisms is effectively solved. By combining the protocol timing parameters and the interface timing parameters, the power distribution control terminal can be compatible with various expansion modules and ensure the accuracy and reliability of data transmission, which greatly improves the response speed and data processing capability of the system.
[0123] In an exemplary embodiment, the data received from the second expansion module is converted into data that conforms to the interface timing parameters, including: in the process of receiving the data provided by the second expansion module, if the data conversion speed is greater than the data reception speed, the data that conforms to the interface timing parameters is written into the data buffer, and the data written into the data buffer is received according to the interface timing parameters; in the process of sending data to the second expansion module, if the data conversion speed is greater than the data sending speed, the data that conforms to the protocol timing parameters is written into the data buffer, and the data written into the data buffer is sent according to the protocol timing parameters.
[0124] Specifically, in the process of receiving data from the second expansion module, if the data conversion speed is faster than the data receiving speed, the power distribution control terminal will temporarily write the data that meets the interface timing parameters into the data buffer. The data buffer is used to store the data that has been converted but not yet fully received. In the buffer, the data queues according to the interface timing parameters to ensure that the data will not be lost or timing errors will occur when the data receiving speed is slow. Then, the power distribution control terminal gradually extracts data from the data buffer according to the interface timing parameters to ensure that the system can stably receive data according to the correct timing.
[0125] In the process of sending data to the second expansion module, if the data conversion speed is faster than the data sending speed, the power distribution control terminal will write the data that meets the protocol timing parameters into the data buffer. In this buffer, the data is temporarily stored according to the protocol timing parameters to cope with the situation where the external expansion module receives data at a slow speed. When the system is ready to send data, the power distribution control terminal extracts the stored data from the buffer according to the protocol timing parameters and sends it to the second expansion module according to the timing requirements. This processing method ensures the stability and continuity of data transmission, and even if the external expansion module receives data at a slow speed, the data will not be lost or sent.
[0126] In a specific embodiment, the process of data buffering of the power distribution control terminal can be implemented through the architecture shown in Figure 5. When receiving data from the GPCM interface, the received data is first passed to the FPGA through the read-write controller. The FPGA is responsible for converting the received data from the protocol timing parameters to the interface timing parameter format required within the system. After this conversion is completed, the data will be further processed. If the data conversion speed of the FPGA is faster than the receiving speed of the GPCM, the converted data will be temporarily stored in the receiving buffer (RX_FIFO) and wait for further processing to prevent the converted data from accumulating or being lost when the GPCM interface receives data at a slow speed. The GPCM reads data from the RX_FIFO according to the interface timing parameters to ensure that the data continues to be transmitted and processed in a predetermined order.
[0127] When the control unit needs to send data to an external device or other module, the FPGA first obtains the data from the terminal and converts it from the interface timing format to a format that conforms to the protocol timing parameters of the external device. When the data conversion is completed, if the external device receives data at a slow speed, the FPGA will temporarily store the converted data in the transmit buffer (TX_FIFO) to ensure that the data will not be lost or cannot be sent in time due to the low reception rate of the external device. Then, the FPGA reads the data from the TX_FIFO buffer in order according to the protocol timing parameters and sends it to the external expansion module.
[0128] In this embodiment, a buffer mechanism is implemented through data conversion, and the timing parameters are precisely controlled, so that data can be transmitted continuously and stably in links with different rates, avoiding communication problems caused by rate mismatch. The system can therefore achieve more efficient data processing and more stable communication performance. By improving the smoothness of the data flow, the overall reliability and processing capacity of the system are significantly improved.
[0129] In an exemplary embodiment, the current program version is compared with the target program version. When the current program version does not match the target program version, a first control program is obtained, and the control program of the power distribution control terminal is updated according to the first control program, including: when the current program version is lower than the target program version, sending a program loading request for obtaining the first control program to a cloud server through a network connection; receiving the first control program returned by the cloud server in response to the program loading request on a preset data line, and updating the second control program to the first control program.
[0130] Specifically, when the current program version is lower than the target program version, the power distribution control terminal will send a program loading request to the cloud server through a network connection. The request may include the device's identification information and the current program version number, and the server uses this information to match the target version control program required by the device, that is, the first control program. After receiving the request, the cloud server sends the matched first control program to the power distribution control terminal.
[0131] The power distribution control terminal receives the first control program from the cloud server through a preset data line. The received first control program replaces the current second control program, completing the program update process and ensuring that the power distribution control terminal has the latest control logic and functions.
[0132] In this embodiment, the power distribution control terminal can timely obtain and load the appropriate control program version through the cloud. The preset data line ensures the reliability of data transmission and avoids data loss or errors that may occur during the update process, thereby improving the overall function and stability of the system.
[0133] In an exemplary embodiment, after the control program of the power distribution control terminal is updated according to the first control program, it also includes: sending test data to the expansion module according to a preset data line; receiving test feedback data from the expansion module to obtain an update test result; if the update test result indicates that the update is successful, determining the data transmission requirements of the expansion module according to the working status of the expansion module, and triggering a query on interface timing parameters and protocol timing parameters related to the data transmission requirements; if the update test result indicates that the update fails, rolling back to the second control program, and re-sending a program loading request to obtain the first control program to the cloud server.
[0134] Specifically, according to the preset data line, the power distribution control terminal sends test data to the expansion module to verify the status of the expansion module or the success of the update. After receiving the test data, the expansion module returns the test feedback data. The power distribution control terminal receives and analyzes the feedback data to obtain the update test result. If the update test result indicates that the update is successful, the power distribution control terminal will determine its data transmission requirements according to the working status of the expansion module, and trigger the query of the interface timing parameters and protocol timing parameters related to these requirements to ensure the correctness and efficiency of subsequent data transmission.
[0135] If the update test result indicates that the update has failed, the system will automatically roll back to the second control program and restore the previous operating state. At the same time, the power distribution control terminal will resend a program loading request to the cloud server to obtain the first control program to retry the update process. This double verification and rollback mechanism ensures that the expansion module can always maintain normal operation when the update fails.
[0136] In this embodiment, by sending test data to the expansion module, receiving test feedback and judging the update result, if successful, the timing parameters are adjusted, if failed, the update program is rolled back and re-acquired, the system realizes automatic verification and dynamic parameter adjustment of the expansion module after the update, thereby achieving the effect of improving the system update reliability, optimizing data transmission efficiency and reducing the impact of update failure.
[0137] In order to enable those skilled in the art to better understand the above steps, the embodiment of the present application is illustrated below by using an example, but it should be understood that the embodiment of the present application is not limited to this.
[0138] In the power distribution system, although the traditional distribution control terminal can perform basic monitoring and control functions, it is difficult to meet the requirements of the new power system for flexibility, scalability and rapid response. In addition, due to the different scales of new energy access, the uniformly designed distribution control terminal will face a significant increase in manufacturing costs and cannot effectively respond to the differences in requirements of various application scenarios. Therefore, there is an urgent need for a modular and standardized solution that can expand the functions of the control terminal in a plug-and-play manner and adapt to the flexible update of different scenarios and equipment.
[0139] The present invention is improved based on this. In an exemplary embodiment, first, an expansion module connected to the power distribution control terminal is determined, and the expansion module includes a first expansion module and a second expansion module, wherein the first expansion module has a storage function module, and the second expansion module is a function module other than the storage function module. Then, the target program version of the first control program for controlling the expansion module is obtained, and the current program version of the second control program on the power distribution control terminal is obtained at the same time. The current program version is compared with the target program version. When it is detected that the current program version is lower than the target program version, a program loading request for obtaining the first control program is sent to the cloud server through a network connection, the first control program returned in response to the request from the cloud server is received, and the second control program is updated to the first control program.
[0140] After the first control program is updated, the power distribution control terminal obtains the interface timing parameters and the protocol timing parameters according to the first control program, which are used for data communication with the first expansion module and the second expansion module respectively. For the first expansion module, the power distribution control terminal adjusts its data communication cycle according to the interface timing parameters, and dynamically modifies the data transmission pulse width, the transmission address time and the data retention time according to the operating status of the first expansion module. After the adjustment, the power distribution control terminal performs data reception and transmission operations according to the set timing parameters.
[0141] For the second extension module, the power distribution control terminal receives its data according to the protocol timing parameters, and converts the received data from the protocol timing format to a data format that conforms to the interface timing parameters. Subsequently, the data that conforms to the interface timing parameters is transmitted to the inside of the power distribution control terminal; during the data transmission process, the power distribution control terminal converts the data that conforms to the interface timing parameters into a data format that conforms to the protocol timing parameters to ensure that the data can be sent to the second extension module in accordance with the protocol requirements. In this process, if the data conversion speed is faster than the data reception speed, the power distribution control terminal writes the converted data into the data buffer, and gradually extracts and receives the data in the buffer according to the interface timing parameters; if the data conversion speed is faster than the data transmission speed, the power distribution control terminal writes the converted data into the transmission buffer, and gradually sends the data from the buffer according to the protocol timing parameters.
[0142] If the update fails, the power distribution control terminal will restore the power distribution control terminal to the second control program through a rollback mechanism, and resend a request to obtain the first control program to the cloud server to ensure that the power distribution control terminal can automatically recover when an update failure occurs.
[0143] In this embodiment, by having remote update capabilities, the program of the expansion module can be loaded through software, avoiding hardware redesign, so as to reduce the workload of repeated development. At the same time, flexible control is performed on various types of connected expansion modules to cope with complex distributed energy access scenarios, and efficient monitoring and management of the entire distribution system is achieved, thereby achieving the effect of improving system reliability, ensuring data transmission continuity and reducing update risks.
[0144] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0145] Based on the same inventive concept, the embodiment of the present application also provides a power distribution system control device for implementing the power distribution system control method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more power distribution system control device embodiments provided below can refer to the limitations of the power distribution system control method above, and will not be repeated here.
[0146] In an exemplary embodiment, as shown in FIG6 , a power distribution system control device is provided, including: a module identification and classification module 610, a version management and comparison module 620, a version update module 630, a timing parameter acquisition module 640, a first expansion module data transmission module 650, and a second expansion module data transmission module 660, wherein:
[0147] The module identification and classification module 610 is used to determine the expansion module connected to the power distribution control terminal; the expansion module includes a first expansion module and a second expansion module; the first expansion module includes a storage function module, and the second expansion module includes other function modules except the storage function module;
[0148] A version management and comparison module 620, used to obtain a target program version of a first control program for controlling the extension module, and to obtain a current program version of a second control program on the power distribution control terminal;
[0149] A version update module 630 is used to compare the current program version with the target program version, and when the current program version does not match the target program version, obtain the first control program, and update the control program of the power distribution control terminal according to the first control program;
[0150] A timing parameter acquisition module 640, configured to acquire interface timing parameters and protocol timing parameters according to the first control program obtained after update;
[0151] A first expansion module data transmission module 650, configured to receive and send data of the first expansion module according to the interface timing parameters;
[0152] The second expansion module data transmission module 660 is used to receive and send data of the second expansion module according to the protocol timing parameters.
[0153] In one embodiment, the version update module 630 is used to: when the current program version is lower than the target program version, send a program loading request to the cloud server through a network connection to obtain the first control program; receive the first control program returned by the cloud server in response to the program loading request on a preset data line, and update the second control program to the first control program.
[0154] In one embodiment, the version update module 630 is used to: send test data to the expansion module according to a preset data line; receive test feedback data from the expansion module to obtain an update test result; if the update test result indicates that the update is successful, determine the data transmission requirements of the expansion module according to the working status of the expansion module, and trigger a query of interface timing parameters and protocol timing parameters related to the data transmission requirements; if the update test result indicates that the update fails, roll back to the second control program, and resend a program loading request to obtain the first control program to the cloud server.
[0155] In one embodiment, the first expansion module data transmission module 650 is used to: adjust the data communication cycle of the first expansion module according to the interface timing parameters, and modify the data sending pulse width, the sending address time and the data holding time according to the operating status of the first expansion module; receive and send data with the first expansion module according to the communication cycle, the data sending pulse width, the sending address time and the data holding time.
[0156] In one embodiment, the second expansion module data transmission module 660 is used to: receive data from the second expansion module according to the protocol timing parameters, convert the received data from the second expansion module into data that conforms to the interface timing parameters; convert the data that conforms to the interface timing parameters into data that conforms to the protocol timing parameters, and send the data that conforms to the protocol timing parameters to the second expansion module.
[0157] In one embodiment, the second expansion module data transmission module 660 is used to: in the process of receiving data provided by the second expansion module, if the data conversion speed is greater than the data receiving speed, write the data that conforms to the interface timing parameters into the data buffer, and receive the data written into the data buffer according to the interface timing parameters; in the process of sending data to the second expansion module, if the data conversion speed is greater than the data sending speed, write the data that conforms to the protocol timing parameters into the data buffer, and send the data written into the data buffer according to the protocol timing parameters.
[0158] Each module in the above-mentioned power distribution system control device can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.
[0159] In an exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG7. The computer device includes a processor, a memory, an input / output interface, and a communication interface. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies.
[0160] Those skilled in the art will understand that the structure shown in FIG. 7 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0161] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0162] 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, the steps in the above-mentioned method embodiments are implemented.
[0163] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0164] 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, stored data, displayed data, 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 relevant data must comply with relevant regulations.
[0165] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present 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. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0166] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, 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.
[0167] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A power distribution system control method, characterized in that: The method is applied to a power distribution control terminal of the power distribution system, and the method comprises: Determine an expansion module connected to the power distribution control terminal; the expansion module includes a first expansion module and a second expansion module; the first expansion module includes a storage function module, and the second expansion module includes other function modules except the storage function module; Acquire a target program version of a first control program for controlling the expansion module, and acquire a current program version of a second control program on the power distribution control terminal; Comparing the current program version with the target program version, and when the current program version does not match the target program version, acquiring the first control program, and updating the control program of the power distribution control terminal according to the first control program; Acquire interface timing parameters and protocol timing parameters according to the first control program obtained after updating; receiving and sending data of the first expansion module according to the interface timing parameters; Receive and send data of the second expansion module according to the protocol timing parameters.
2. The method according to claim 1, characterized in that The receiving and sending data of the first expansion module of the power distribution system according to the interface timing parameter includes: adjusting the data communication cycle of the first expansion module according to the interface timing parameters, and modifying the data transmission pulse width, the transmission address time and the data holding time according to the operation status of the first expansion module; Data is received and sent with the first expansion module according to the communication cycle, the data sending pulse width, the sending address time and the data holding time.
3. The method according to claim 1, characterized in that The receiving and sending data of the second expansion module of the power distribution system according to the protocol timing parameters includes: receiving data of the second extension module according to the protocol timing parameters, and converting the received data of the second extension module into data conforming to the interface timing parameters; The data conforming to the interface timing parameters are converted into data conforming to the protocol timing parameters, and the data conforming to the protocol timing parameters are sent to the second expansion module.
4. The method according to claim 3, characterized in that The step of converting the received data of the second expansion module into data conforming to the interface timing parameters includes: In the process of receiving the data provided by the second expansion module, if the data conversion speed is greater than the data receiving speed, writing the data that meets the interface timing parameters into the data buffer, and receiving the data written into the data buffer according to the interface timing parameters; In the process of sending data to the second expansion module, if the data conversion speed is greater than the data sending speed, the data that meets the protocol timing parameters is written into the data buffer, and the data written into the data buffer is sent according to the protocol timing parameters.
5. The method according to any one of claims 1 to 4, characterized in that: The comparing the current program version with the target program version, and when the current program version does not match the target program version, acquiring the first control program, and updating the control program of the power distribution control terminal according to the first control program, comprises: When the current program version is lower than the target program version, sending a program loading request for acquiring the first control program to a cloud server through a network connection; On a preset data line, the first control program returned by the cloud server in response to the program loading request is received, and the second control program is updated to the first control program.
6. The method according to any one of claims 1 to 4, characterized in that: After the control program of the power distribution control terminal is updated according to the first control program, the method further includes: Sending test data to the expansion module according to a preset data line; Receiving test feedback data from the extension module to obtain updated test results; If the update test result indicates that the update is successful, the data transmission requirement of the expansion module is determined according to the working state of the expansion module, and a query of the interface timing parameters and the protocol timing parameters related to the data transmission requirement is triggered; If the update test result indicates that the update fails, the program is rolled back to the second control program, and a program loading request for obtaining the first control program is resent to the cloud server.
7. A power distribution system control device, characterized in that: The device comprises: A module identification and classification module, used to determine the expansion module connected to the power distribution control terminal; the expansion module includes a first expansion module and a second expansion module; the first expansion module includes a storage function module, and the second expansion module includes other function modules except the storage function module; A version management and comparison module, used to obtain a target program version of a first control program for controlling the extension module, and to obtain a current program version of a second control program on the power distribution control terminal; A version update module, used for comparing the current program version with the target program version, and when the current program version does not match the target program version, obtaining the first control program, and updating the control program of the power distribution control terminal according to the first control program; A timing parameter acquisition module, used to acquire interface timing parameters and protocol timing parameters according to the first control program obtained after updating; A first expansion module data transmission module, used for receiving and sending data of the first expansion module according to the interface timing parameters; The second expansion module data transmission module is used to receive and send data of the second expansion module according to the protocol timing parameters.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Control system of propeller and clock synchronization method thereof
CN121348812A
