A microcontroller-based intelligent power strip load control method
By establishing a socket status table and historical load fingerprint database through a microcontroller, a steady-state power budget upper limit and a peak-shifting scheduling plan are generated, which solves the problem of unstable access caused by the instability of the power supply environment, realizes load type identification and optimized access control, and improves power supply stability and protection effect.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- NINGYUANXIAN CYBERPOWER INC
- Filing Date
- 2026-04-14
- Publication Date
- 2026-07-10
AI Technical Summary
Existing technologies lack dynamic characterization of power supply environment stability in power control, resulting in unstable socket access decisions and a lack of differentiated identification of load type and startup behavior, making it difficult to optimize peak-shifting scheduling plans. In particular, when the power grid fluctuates or the environment changes, unstable access and excessive protection actions occur.
The microcontroller initializes the sampling channel and the socket drive channel, establishes the socket status table and generates the operating baseline, determines the upper limit of the steady-state power budget, matches the load fingerprint with the historical load fingerprint database to generate the socket access mode parameters, generates the peak-shaving scheduling plan, and collects the operating status information in the observation window to perform protection actions and update the feedback data.
It achieves differentiated access control for different load start-up impacts and power fluctuation characteristics, improves the controllability of socket access and the pertinence of protection actions, and enhances power supply stability and overload risk suppression capabilities in multi-socket concurrent scenarios.
Smart Images

Figure CN122371504A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power distribution control technology, and in particular to a microcontroller-based intelligent power strip load control method. Background Technology
[0002] In recent years, smart power strips, as an important carrier of terminal power distribution, have gradually evolved from simple overload protection to intelligent control. Early development focused on basic safety functions such as overload and leakage protection. Subsequently, capabilities such as timed on / off switching, power metering, remote control, and branch circuit switching were gradually added, transforming power strips from simple power supply connection devices into low-voltage power distribution nodes with certain edge control capabilities. With the widespread application of loads such as switching power supplies and variable frequency motors, the load on the socket side exhibits strong nonlinear characteristics, and grid fluctuations and temperature changes can exacerbate the instability of socket connections. To improve the stability and controllability of terminal power distribution, the industry has begun to integrate multi-source sampling of voltage, current, and temperature into microcontrollers, adopting multi-socket branch control and time-sharing access strategies, and accumulating empirical parameters through event logs and operational data to support the management of socket load connections.
[0003] However, existing technologies rely heavily on static limits for power control, lacking dynamic characterization of power supply environment stability. This leads to overly conservative or falsely triggered protection decisions when the power grid fluctuates or the environment changes, making it difficult to effectively determine the steady-state power budget boundary. At the same time, multi-socket peak-shifting access is based solely on time sorting and priority rules, lacking differentiated identification of load type and startup behavior. In particular, it lacks historical fingerprint description of startup impact and power fluctuations of switching power supplies and inductive loads, resulting in the inability to adaptively update access method parameters and making it difficult to continuously optimize peak-shifting scheduling plans. Consequently, access instability and excessive protection actions occur when load changes are frequent. Summary of the Invention
[0004] In view of the aforementioned existing problems, the present invention is proposed.
[0005] Therefore, this invention provides a microcontroller-based intelligent power strip load control method to solve the problems of unclear power budget boundaries and insufficient peak-shifting access optimization.
[0006] To solve the above-mentioned technical problems, the present invention provides the following technical solution: This invention provides a microcontroller-based intelligent power strip load control method, comprising: initializing the sampling channel and the socket drive channel of the microcontroller, establishing a socket status table and forming an operating baseline, and determining the upper limit of the steady-state power budget, encapsulating it into an initialization output packet; extracting socket access requests from the initialization output packet and verifying the target sockets, while matching load fingerprints for the target sockets using the historical load fingerprint database in the microcontroller, generating socket access mode parameters, and summarizing them to obtain a socket access parameter queue; calculating the current total load power consumption based on the upper limit of the steady-state power budget, obtaining the available steady-state budget, and simultaneously performing admission and sorting on the socket access parameter queue to generate a peak-shaving scheduling plan; the microcontroller accessing the sockets one by one according to the peak-shaving scheduling plan, and collecting operating status information in the observation window; when an anomaly occurs, executing protection actions according to the access mode parameters, forming measured feedback data; and updating the historical load fingerprint database and socket access mode parameters based on the measured feedback data, and continuously optimizing the peak-shaving scheduling plan.
[0007] As a preferred embodiment of the microcontroller-based intelligent connector load control method of the present invention, the microcontroller initializes the sampling channel and the connector drive channel, establishes a connector status table, and forms an operating baseline. Specific steps include: After the microcontroller is powered on, it performs self-test and calibration operations on the voltage sampling channel, current sampling channel and temperature sampling channel in sequence, and simultaneously drives the power supply switches of each port to the off state. When the power switch is in the off state, the microcontroller records the physical connection status and power supply response status of each socket and summarizes them to form a socket status table; Based on the socket status table, the microcontroller continuously observes the total voltage fluctuation, the total current change trend, and the ambient temperature change. When the power environment meets the stability conditions, it generates the operating baseline of the power supply environment.
[0008] As a preferred embodiment of the microcontroller-based intelligent power strip load control method of the present invention, the step of determining the steady-state power budget upper limit and encapsulating it into an initialization output packet includes the following steps: The microcontroller combines the operating baseline and the socket status table to evaluate the maximum steady-state power under the current power supply environment and obtain the upper limit of the steady-state power budget. The socket status table, operating baseline, and steady-state power budget upper limit are uniformly encapsulated to generate an initialization output package.
[0009] As a preferred embodiment of the microcontroller-based intelligent power strip load control method of the present invention, the historical load fingerprint database includes fingerprint index information, load electrical characteristic summary, operating condition and environmental context, and protection and handling history.
[0010] As a preferred embodiment of the microcontroller-based intelligent power strip load control method of the present invention, the steps include: extracting the power strip access request from the initialization output packet and verifying the target power strip; simultaneously matching the load fingerprint of the target power strip with the historical load fingerprint database in the microcontroller; generating power strip access mode parameters; and summarizing them to obtain a power strip access parameter queue. Extract the socket access request from the initialization output packet, record the socket identifier and request timestamp, and write them to the request queue. At the same time, perform a verification operation on the target socket. After the target socket passes the calibration, the microcontroller retrieves the load fingerprint of the target socket from the historical load fingerprint database. When no matching record is found, it provides power for a short time and collects current changes and power fluctuations to generate a load feature fingerprint database. Extract the access method parameters of the socket from the load feature fingerprint database, and associate them with the socket identifier and load fingerprint to generate socket access control information; The microcontroller extracts the socket access control information sequentially according to the time order of the socket access requests, removes duplicate requests, and generates a socket access parameter queue.
[0011] As a preferred embodiment of the microcontroller-based intelligent power strip load control method of the present invention, the step of calculating the current total load power and obtaining the available steady-state budget based on the upper limit of the steady-state power budget includes the following steps: Calculate the current total load power based on the upper limit of the steady-state power budget; Based on the current total load power and the upper limit of the steady-state power budget, obtain the available steady-state budget.
[0012] As a preferred embodiment of the microcontroller-based intelligent power strip load control method of the present invention, the specific steps of admitting and sorting the power strip access parameter queue to generate a peak-shaving scheduling plan include: The power requirement of each socket is determined based on the available steady-state budget. Sockets that exceed the available steady-state budget are marked as delayed access and removed from the access queue. At the same time, sockets that meet the conditions are sorted by time order and priority. Based on the sorted sockets and available steady-state budget, the access time, access method and observation window duration of each socket are set to generate a peak-shifting scheduling plan.
[0013] As a preferred embodiment of the intelligent plug-in load control method based on a microcontroller described in this invention, the microcontroller connects the plug-in unit sequentially according to a staggered peak scheduling plan, collects operating status information in an observation window, and executes protection actions based on the connection method parameters when an anomaly occurs, generating measured feedback data. Specific steps include: The microcontroller connects to each socket one by one according to the off-peak scheduling plan and collects the operating status information of each socket in real time; The microcontroller continuously monitors the operating status information. If an anomaly is detected, it immediately executes protection actions and records the protection event. Based on the monitored operational status information and protection events, actual measurement feedback data is generated.
[0014] As a preferred embodiment of the microcontroller-based intelligent power strip load control method of the present invention, the step of updating the historical load fingerprint database and the socket access method parameters based on measured feedback data includes the following steps: The microcontroller extracts the load characteristics of the socket based on the measured feedback data and updates the historical load fingerprint database. If the socket is operating normally, the load characteristics are updated; if the socket is abnormal, the load fingerprint is adjusted and recorded. Based on the updated historical load fingerprint database, the access method parameters of the sockets are optimized, and the access timing and latency are adjusted for abnormal sockets.
[0015] As a preferred embodiment of the microcontroller-based intelligent power strip load control method of the present invention, the specific steps of continuously optimizing the peak-shaving scheduling plan include: Based on the updated socket access method parameters, the access parameter queue is sorted according to the power requirements and priority of each socket; Based on the sorted access parameter queue, the off-peak scheduling plan is continuously optimized.
[0016] The beneficial effects of this invention are as follows: by matching load fingerprints with historical load fingerprint databases and generating socket access mode parameters, differentiated access control based on the characteristics of different load start-up impacts and power fluctuations is achieved, improving the controllability of socket access and the pertinence of protection actions; by calculating the available steady-state budget by the upper limit of steady-state power budget and generating a peak-shifting scheduling plan, ordered time-sharing access and closed-loop iterative optimization of multiple sockets are achieved, improving the power supply stability and overload risk suppression capability in multi-socket concurrent scenarios. Attached Figure Description
[0017] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a flowchart of a microcontroller-based intelligent power strip load control method.
[0019] Figure 2 A flowchart for generating the socket access parameter queue.
[0020] Figure 3 A flowchart for generating a staggered scheduling plan.
[0021] Figure 4 A flowchart for generating feedback data. Detailed Implementation
[0022] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0023] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.
[0024] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in different places in this specification does not necessarily refer to the same embodiment, nor is it a single or selective embodiment that is mutually exclusive with other embodiments.
[0025] Reference Figures 1-4 This is one embodiment of the present invention, which provides a microcontroller-based intelligent power strip load control method, comprising the following steps: S1. The microcontroller initializes the sampling channel and the socket drive channel, establishes the socket status table and forms the operating baseline, and determines the upper limit of the steady-state power budget, which is then encapsulated as an initialization output packet.
[0026] After the microcontroller is powered on, it performs self-test and calibration operations on the voltage sampling channel, current sampling channel and temperature sampling channel in sequence, and simultaneously drives the power supply switches of each port to the off state.
[0027] The specific process includes: after the microcontroller is powered on, it checks the zero point and range of the voltage sensor to ensure that the voltage sensor accurately measures the voltage signal. When the voltage sensor's measurement information does not match the actual value, the microcontroller performs calibration, adjusts the voltage sensor to restore measurement accuracy, and starts the current sampling channel to check the zero point and range of the current sensor. If there is a deviation, the current sensor is calibrated. At the same time, the temperature sampling channel is started to check the zero point and range of the temperature sensor. If inaccuracy is found, the temperature sensor is calibrated to ensure the reliability of the temperature sampling data. After the self-test and calibration operations are completed, the microcontroller drives the power supply switches of each port to enter the off state to reduce interference from external loads during initialization and ensure the accuracy of subsequent operations.
[0028] When the power switch is in the off state, the microcontroller records the physical connection status and power supply response status of each socket and summarizes them to form a socket status table.
[0029] The specific process includes the following steps: when the power switch is in the off state, the microcontroller checks the physical connection status of each socket to confirm whether the socket is correctly connected to the power supply, and detects the power supply response status of the socket to check whether the socket can receive the power control signal normally. At the same time, the physical connection status and power supply response status are recorded to ensure that the data is accurate. After summarizing, a socket status table is generated.
[0030] It should be noted that the physical connection status refers to whether the microcontroller detects whether each socket is correctly and reliably connected to the power line, including whether the mechanical contact between the plug and the socket is good and whether the line is conductive; the power supply response status refers to whether the socket can perform the on / off operation after the microcontroller sends a control signal to the socket power supply switch, such as whether the switch can operate normally and whether there is a drive circuit fault, etc., which are feedback statuses at the electrical control level.
[0031] Based on the socket status table, the microcontroller continuously observes the total voltage fluctuation, the total current change trend, and the ambient temperature change. When the power environment meets the stability conditions, it generates the operating baseline of the power supply environment.
[0032] The specific process includes keeping the power supply switches of each socket in the off state, extracting sockets with normal physical connection status and normal power supply response status from the socket status table, starting the voltage sampling channel, current sampling channel and temperature sampling channel to perform continuous acquisition operation, summarizing the continuous acquisition information in the voltage sampling channel to form a total voltage fluctuation record, organizing the continuous acquisition information in the current sampling channel to generate a total current change trend, and integrating the continuous acquisition information in the temperature sampling channel to form an ambient temperature change record, and performing stability judgment. When the stability conditions are met, the operating baseline of the power supply environment is generated.
[0033] It should be noted that stability is determined by comparing the changes in adjacent data acquisition values. If the changes in adjacent data acquisition values within the total voltage fluctuation record are small, the voltage fluctuation is considered stable; if the changes in adjacent data acquisition values within the total current trend record are small, the current change is considered stable; and if the changes in adjacent data acquisition values within the ambient temperature change record are small, the temperature change is considered stable. The microcontroller continuously checks various changes in the power environment using these criteria to ensure stability before generating an operating baseline for the power supply environment.
[0034] The microcontroller combines the operating baseline and the socket status table to evaluate the maximum steady-state power under the current power supply environment and obtain the upper limit of the steady-state power budget.
[0035] The specific process includes the microcontroller combining the operating baseline and the socket status table to screen sockets with normal physical connection and normal power supply response status in the socket status table, and checking the power consumption demand. Combining the voltage fluctuation, current change trend and temperature change recorded in the operating baseline, the maximum steady-state power demand of each socket under the current power supply environment is evaluated, and the maximum steady-state power demand of all sockets is summarized to obtain the maximum steady-state power budget upper limit.
[0036] The socket status table, operating baseline, and steady-state power budget upper limit are uniformly encapsulated to generate an initialization output package.
[0037] The specific process includes: the microcontroller uniformly defines the socket status table field, the operating baseline field, and the steady-state power budget upper limit field, and assigns a write position to each field; the socket status table is written to the socket status table field in the order of socket acquisition; the operating baseline is written to the operating baseline field; and the steady-state power budget upper limit is written to the steady-state power budget upper limit field. After the field writing is completed, the initialization output package is generated by summarizing the data.
[0038] S2. Extract the socket access request from the initialization output packet and check the target socket. At the same time, match the load fingerprint for the target socket using the historical load fingerprint database in the microcontroller, generate the socket access method parameters, and summarize them to obtain the socket access parameter queue.
[0039] Extract the socket access request from the initialization output packet, record the socket identifier and request timestamp, and write them to the request queue. At the same time, perform a verification operation on the target socket.
[0040] The specific process includes extracting the socket access request from the initialization output packet, recording the socket identifier and request timestamp, writing the socket identifier and request timestamp into the request queue to form a request queue record item, and after writing into the request queue, reading the physical connection status and power supply response status corresponding to the target socket from the socket status table through the socket identifier, checking the target socket, and removing the socket access request corresponding to the target socket from the request queue if the physical connection status and power supply response status are abnormal.
[0041] After the target socket passes the calibration, the microcontroller retrieves the load fingerprint of the target socket from the historical load fingerprint database. If no matching record is found, it provides power for a short time and collects current changes and power fluctuations to generate a load feature fingerprint database.
[0042] The specific process includes: after the target socket passes the calibration, the microcontroller uses the socket identifier to locate the target socket and searches for the load fingerprint of the target socket in the historical load fingerprint database. When no matching record is returned in the historical load fingerprint database, the microcontroller drives the power switch of the target socket to perform short-term power supply, and simultaneously starts the current sampling channel to continuously record the current change of the target socket. At the same time, it obtains the power fluctuation record of the target socket according to the voltage sampling channel. After the short-term power supply ends, the microcontroller drives the power switch of the target socket to return to the off state, and summarizes the current change and power fluctuation records into the load feature fingerprint entry of the target socket. The load feature fingerprint entry is written together with the socket identifier to generate the load feature fingerprint database.
[0043] It should be noted that the historical load fingerprint database is a data storage module in the microcontroller used to record and manage the historical operating characteristics of the loads connected to each port, enabling intelligent access control. It mainly includes fingerprint index information (for quick retrieval), load electrical characteristic summary (such as starting current, power fluctuation mode), operating condition and environmental context (such as temperature and voltage fluctuation history), and protection and handling history (such as past abnormal events and handling records).
[0044] The access method parameters of the socket are extracted from the load feature fingerprint database and associated with the socket identifier and load fingerprint to generate socket access control information.
[0045] The specific process includes: extracting load feature fingerprints from the load feature fingerprint database based on the socket identifier; matching the socket identifier with the load feature fingerprint to ensure consistency between the socket identifier and the records stored in the database; and extracting the corresponding access method parameters, such as access timing, power requirements, and power supply strategy, when a matching load feature fingerprint is found for the socket identifier. The microcontroller then associates the socket identifier with the extracted load feature fingerprint and access method parameters to generate socket access control information.
[0046] The microcontroller extracts the socket access control information sequentially according to the time order of the socket access requests, removes duplicate requests, and generates a socket access parameter queue.
[0047] The specific process includes the microcontroller extracting the socket access control information one by one according to the time sequence of the socket access requests, and checking the socket identifier and request timestamp in each socket access control information to ensure that they are processed in chronological order. When the microcontroller finds that the access control information with the same socket identifier and the same request timestamp is duplicated, it removes it from the access control information to be processed to avoid duplicate processing. After removing duplicate requests, the microcontroller integrates the remaining socket access control information to generate a socket access parameter queue.
[0048] S3. Calculate the current total load power based on the upper limit of the steady-state power budget, obtain the available steady-state budget, and simultaneously admit and sort the socket access parameter queue to generate a peak-shifting scheduling plan.
[0049] Based on the upper limit of the steady-state power budget, the current total load power is calculated using the following expression: ; in, This indicates the current total power consumption of the load. Indicates load power. Indicates the socket. Indicates the total number of sockets. Indicates the first The state factor of each socket, Indicates voltage. Indicates the socket The current, Indicates the first The load power factor of each socket.
[0050] It should be noted that, Reflects the first The physical connection and power supply response status of a socket is typically represented by a factor indicating the socket's operating status, ranging from 0 to 1, indicating whether the socket is functioning correctly. For example, if the socket is functioning correctly and can provide a stable power supply, the status factor... The value is 1; if the socket malfunctions or is not connected, the status factor is 1. It may take 0 or other low values. Load power factor The power factor is an important parameter describing the power characteristics of a socket load, reflecting the load's power consumption efficiency. Its value typically ranges from 0 to 1; the closer the value is to 1, the more efficient the load is in using power. A power factor of 1 indicates that the load is purely resistive (such as a resistor) with no power loss; a low power factor indicates that the load is inductive or capacitive, with significant power loss. (State factor is also mentioned.) Derived from the socket status table established during the initialization phase, the load power factor is determined based on a comprehensive assessment of the physical connection status (e.g., line continuity) and power supply response status (e.g., switch operation reliability) of each socket. The load power is obtained by analyzing the phase difference angle between the voltage and current sampling signals. It is obtained by the microcontroller calling the voltage sampling channel and the current sampling channel in real time after the socket is connected, and measuring the voltage and current values at both ends of the socket respectively.
[0051] The specific process includes the microcontroller processing each socket sequentially, obtaining the socket's state factor from the socket state table, and acquiring voltage and current through voltage and current sampling channels. Based on the socket's state factor, voltage, and current, the microcontroller calculates the load power of each socket, sums the load power of each socket to obtain the current total load power, and compares the current total load power with the steady-state power budget upper limit to ensure that the total load power does not exceed the steady-state power budget upper limit, thus guaranteeing the stability and safety of the power supply.
[0052] Based on the current total load power and the upper limit of the steady-state power budget, obtain the available steady-state budget.
[0053] The specific process includes the microcontroller comparing the current total load power consumption with the upper limit of the steady-state power budget, reading the current total load power consumption, taking the difference between the current total load power consumption and the upper limit of the steady-state power budget as the available steady-state budget, and ensuring that the obtained available steady-state budget is not negative. If the available steady-state budget is negative, it means that the current load has exceeded the upper limit of the steady-state power budget.
[0054] The power requirement of each socket is determined based on the available steady-state budget. Sockets that exceed the available steady-state budget are marked as delayed access and removed from the access queue. At the same time, sockets that meet the criteria are sorted by time order and priority.
[0055] The specific process includes the microcontroller determining the power requirement of each socket based on the available steady-state budget. For sockets whose power requirement exceeds the available steady-state budget, they are marked as delayed access and removed from the access queue to ensure that they are not overloaded. For sockets whose power requirement is within the available steady-state budget, the microcontroller sorts the access queue according to the time order of the requests and the priority of the sockets, prioritizing the processing of socket access requests that are earlier in the time order and have higher priority. After sorting, the microcontroller processes the socket access requests one by one in sequence to ensure the efficiency and stability of the entire access process.
[0056] It should be noted that the priority judgment criteria are indirectly determined based on the power requirements and importance of each socket. For example, sockets with larger loads and higher stability requirements can be considered as priority access points.
[0057] Based on the sorted sockets and available steady-state budget, the access time, access method and observation window duration of each socket are set to generate a peak-shifting scheduling plan.
[0058] The specific process includes the microcontroller allocating a corresponding access time to each socket according to the time sequence of access requests and the power requirements of the socket (for example, if the access request time of a certain socket is 2 pm, according to the sorting and available steady-state budget, this socket is scheduled to be connected to power at 2:10 pm), ensuring that the access sequence matches the available steady-state budget, and setting the access method of each socket according to the load characteristics of each socket (for example, gradually increasing the supply voltage and current), including the power supply sequence and power allocation method. At the same time, according to the power requirements, load type and access timing of each socket, the microcontroller allocates an observation window duration to each socket (for example, if a certain socket has a large power requirement, the microcontroller allocates a 5-minute observation window to this socket), monitors the operating status, and summarizes the access time, access method and observation window duration of all sockets to generate a complete peak-shifting scheduling plan.
[0059] S4. The microcontroller connects to the system one by one according to the staggered peak scheduling plan and collects the operating status information in the observation window. When an abnormality occurs, it executes protection actions according to the access method parameters and generates actual measurement feedback data.
[0060] The microcontroller connects to each socket one by one according to the off-peak scheduling plan and collects the operating status information of each socket in real time.
[0061] The specific process includes the microcontroller driving the power switch pointed to by the socket identifier to switch from the off state to the on state when the access time arrives, and connecting the socket according to the access method. At the same time, the voltage sampling channel, current sampling channel and temperature sampling channel are started to continuously collect data, and the continuously collected information and socket identifier are written into the operation status information.
[0062] The microcontroller continuously monitors the operating status information. If an anomaly is detected, it immediately executes protection actions and records the protection event.
[0063] The specific process includes the microcontroller continuously monitoring the operating status information of each socket during the observation window. The microcontroller compares the changes in voltage, current and temperature in real time to ensure that the operating status information is within a safe range. When the microcontroller finds that the operating status information exceeds the safe range, it immediately executes the preset protection action (such as disconnecting the power supply and limiting the power output), records the specific information of the protection event (including the abnormality type and trigger time), and stores the protection event in the event log.
[0064] It should be noted that the safe range of the operating status information is not a fixed value. The boundary is given by the operating baseline and the upper limit of the steady-state power budget. The safe range of the voltage sampling channel is between the lowest and highest voltages included in the total voltage fluctuation record. The safe range of the current sampling channel is between the lowest and highest currents included in the total current change trend record. The safe range of the temperature sampling channel is between the lowest and highest temperatures included in the ambient temperature change record.
[0065] It should be noted that the preset protection actions are pre-set by the microcontroller when generating the socket access method parameters. They are based on the load electrical characteristics (such as starting current and power fluctuation mode) and protection history stored in the historical load fingerprint database. For example, for loads that are prone to overload, the power supply will be disconnected and the power output will be limited. These actions are associated with the safety range (such as voltage and current boundaries) given by the operating baseline to ensure that they can be triggered immediately when an abnormality occurs.
[0066] It should be noted that a protection event refers to the detailed event information recorded during the intelligent power strip load control process when the microcontroller detects an anomaly by monitoring the operating status information (such as voltage, current, and temperature sampling data) in real time, and the anomaly exceeds the upper limit of the operating baseline and steady-state power budget. This anomaly includes the type of anomaly (such as overcurrent, overvoltage, or temperature exceeding the limit) and the trigger timestamp.
[0067] Based on the monitored operational status information and protection events, actual measurement feedback data is generated.
[0068] The specific process includes recording the operating status information and protection events of each port, saving them together with the corresponding port identifier and timestamp, and merging the operating status information and protection events into a complete feedback record to generate measured feedback data.
[0069] It should be noted that the measured feedback data is a complete record composed of the operating status information (including continuous data of voltage, current and temperature sampling channels, such as fluctuation values and trends) collected in real time through the observation window after the microcontroller is connected to the socket one by one according to the off-peak scheduling plan, as well as the protection events (such as overcurrent, overvoltage and temperature over-limit) recorded when an abnormality occurs.
[0070] S5. Based on actual test feedback data, update the historical load fingerprint database and socket access method parameters, and continuously optimize the off-peak scheduling plan.
[0071] The microcontroller extracts the load characteristics of the socket based on the measured feedback data and updates the historical load fingerprint database. If the socket is operating normally, the load characteristics are updated; if the socket is abnormal, the load fingerprint is adjusted and recorded.
[0072] The specific process includes the microcontroller checking the operating status of the socket, comparing the socket's load characteristics (such as voltage and current) with the records in the historical load fingerprint database, verifying whether the current operating status of the socket matches the pattern in the historical load fingerprint database. If the socket is operating normally, the load characteristics are updated. If the socket experiences an abnormality during operation (such as an abnormally large increase in current fluctuation), the microcontroller will adjust the load fingerprint and record it to ensure that the data in the historical load fingerprint database can reflect the actual operating status of the socket.
[0073] Based on the updated historical load fingerprint database, the access method parameters of the sockets are optimized, and the access timing and latency are adjusted for abnormal sockets.
[0074] The specific process includes the following steps: after updating the historical load fingerprint database, the microcontroller extracts the load characteristics of each socket and compares them with the current load characteristics. If the comparison result shows that the load characteristics of the socket are normal, the microcontroller maintains the original access parameters and connects the socket as planned. If the load characteristics of the socket deviate, the microcontroller will adjust according to the updated historical load fingerprint database and re-evaluate the timing of the socket connection. If the load fluctuates greatly, the connection time of the socket will be postponed to avoid immediate connection when the load is unstable. At the same time, the delay will be increased to ensure that the socket is connected only after the power environment is stable.
[0075] Based on the updated socket access method parameters, the access parameter queue is sorted according to the power requirements and priority of each socket.
[0076] The specific process includes the microcontroller reading the power requirements and priorities of each socket according to the updated socket access method parameters, combining the power requirements and priority information of each socket, and sorting the socket access parameter queue according to the size of the power requirements and the level of priority. Sockets with higher power requirements will be assigned higher priorities, and sockets with higher priorities will be connected first, ensuring that high-demand sockets can be connected in a timely manner when the power supply environment is stable.
[0077] Based on the sorted access parameter queue, the off-peak scheduling plan is continuously optimized.
[0078] The specific process includes the microcontroller checking the power requirements and priorities of each socket according to the sorted access parameter queue to ensure that the access time matches the power supply capacity. Based on the actual access situation and available steady-state budget, the microcontroller dynamically adjusts the access time to optimize the load distribution. When the access timing and power requirements of a socket change, the microcontroller re-evaluates and adjusts the peak-shifting scheduling plan to ensure that the access process is efficient and does not exceed the upper limit of the steady-state power budget.
[0079] In summary, this invention achieves differentiated access control based on the characteristics of different load startup impacts and power fluctuations by matching load fingerprints with a historical load fingerprint database and generating socket access mode parameters, thereby improving the controllability of socket access and the targeted nature of protection actions. Furthermore, by calculating the available steady-state budget by the upper limit of the steady-state power budget and generating a peak-shifting scheduling plan, it achieves ordered time-sharing access and closed-loop iterative optimization of multiple sockets, thereby improving the power supply stability and overload risk suppression capability in multi-socket concurrent scenarios.
[0080] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.
Claims
1. A microcontroller-based intelligent power strip load control method, characterized in that: include, The microcontroller initializes the sampling channel and the socket drive channel, establishes the socket state table and forms the operating baseline, and determines the upper limit of the steady-state power budget, which is then encapsulated as an initialization output packet. Extract the socket access request from the initialization output packet and check the target socket. At the same time, match the load fingerprint for the target socket using the historical load fingerprint database in the microcontroller, generate the socket access method parameters, and summarize them to obtain the socket access parameter queue. Based on the upper limit of the steady-state power budget, calculate the current total load power and obtain the available steady-state budget. At the same time, admit and sort the socket access parameter queue to generate a peak-shifting scheduling plan. The microcontroller connects to the system one by one according to the staggered peak scheduling plan, and collects the operating status information in the observation window. When an abnormality occurs, it executes protection actions according to the access method parameters and generates measured feedback data. Based on actual test feedback data, the historical load fingerprint database and socket access method parameters are updated, and the peak-shifting scheduling plan is continuously optimized.
2. The intelligent power strip load control method based on a microcontroller as described in claim 1, characterized in that: The microcontroller initializes the sampling channel and the connector drive channel, establishes the connector status table, and forms an operating baseline. Specific steps include: After the microcontroller is powered on, it performs self-test and calibration operations on the voltage sampling channel, current sampling channel and temperature sampling channel in sequence, and simultaneously drives the power supply switches of each port to the off state. When the power switch is in the off state, the microcontroller records the physical connection status and power supply response status of each socket and summarizes them to form a socket status table; Based on the socket status table, the microcontroller continuously observes the total voltage fluctuation, the total current change trend, and the ambient temperature change. When the power environment meets the stability conditions, it generates the operating baseline of the power supply environment.
3. The intelligent power strip load control method based on a microcontroller as described in claim 2, characterized in that: The steps for determining the upper limit of the steady-state power budget and encapsulating it into an initialization output packet include: The microcontroller combines the operating baseline and the socket status table to evaluate the maximum steady-state power under the current power supply environment and obtain the upper limit of the steady-state power budget. The socket status table, operating baseline, and steady-state power budget upper limit are uniformly encapsulated to generate an initialization output package.
4. The intelligent power strip load control method based on a microcontroller as described in claim 3, characterized in that: The historical load fingerprint database includes fingerprint index information, load electrical characteristic summary, operating condition and environmental context, and protection and handling history.
5. The intelligent power strip load control method based on a microcontroller as described in claim 4, characterized in that: The steps include extracting the socket access request from the initialization output packet and verifying the target socket, simultaneously matching the load fingerprint of the target socket with the historical load fingerprint database in the microcontroller, generating socket access method parameters, and summarizing them to obtain the socket access parameter queue. Extract the socket access request from the initialization output packet, record the socket identifier and request timestamp, and write them to the request queue. At the same time, perform a verification operation on the target socket. After the target socket passes the calibration, the microcontroller retrieves the load fingerprint of the target socket from the historical load fingerprint database. When no matching record is found, it provides power for a short time and collects current changes and power fluctuations to generate a load feature fingerprint database. Extract the access method parameters of the socket from the load feature fingerprint database, and associate them with the socket identifier and load fingerprint to generate socket access control information; The microcontroller extracts the socket access control information sequentially according to the time order of the socket access requests, removes duplicate requests, and generates a socket access parameter queue.
6. The intelligent power strip load control method based on a microcontroller as described in claim 5, characterized in that: The steps for calculating the current total load power and obtaining the available steady-state budget based on the upper limit of the steady-state power budget include: Calculate the current total load power based on the upper limit of the steady-state power budget; Based on the current total load power and the upper limit of the steady-state power budget, obtain the available steady-state budget.
7. The intelligent power strip load control method based on a microcontroller as described in claim 6, characterized in that: The specific steps for admitting and sorting the socket access parameter queue and generating a staggered scheduling plan include: The power requirement of each socket is determined based on the available steady-state budget. Sockets that exceed the available steady-state budget are marked as delayed access and removed from the access queue. At the same time, sockets that meet the conditions are sorted by time order and priority. Based on the sorted sockets and available steady-state budget, the access time, access method and observation window duration of each socket are set to generate a peak-shifting scheduling plan.
8. The intelligent power strip load control method based on a microcontroller as described in claim 7, characterized in that: The microcontroller connects sequentially according to the off-peak scheduling plan and collects operating status information in the observation window. When an anomaly occurs, it executes protection actions based on the access method parameters, generating measured feedback data. Specific steps include... The microcontroller connects to each socket one by one according to the off-peak scheduling plan and collects the operating status information of each socket in real time; The microcontroller continuously monitors the operating status information. If an anomaly is detected, it immediately executes protection actions and records the protection event. Based on the monitored operational status information and protection events, actual measurement feedback data is generated.
9. The intelligent power strip load control method based on a microcontroller as described in claim 8, characterized in that: The steps for updating the historical load fingerprint database and port access method parameters based on measured feedback data include: The microcontroller extracts the load characteristics of the socket based on the measured feedback data and updates the historical load fingerprint database. If the socket is operating normally, the load characteristics are updated. If the port is abnormal, adjust the load fingerprint and record it; Based on the updated historical load fingerprint database, the access method parameters of the sockets are optimized, and the access timing and latency are adjusted for abnormal sockets.
10. The intelligent power strip load control method based on a microcontroller as described in claim 9, characterized in that: The specific steps for continuously optimizing the off-peak scheduling plan include: Based on the updated socket access method parameters, the access parameter queue is sorted according to the power requirements and priority of each socket; Based on the sorted access parameter queue, the off-peak scheduling plan is continuously optimized.