Intelligent socket control method and system
Through the power calculation and historical data analysis of smart sockets, the charging time is optimized, and the problem of poor charging experience of the device is solved, achieving a healthier and safer charging process.
Patent Information
- Application Number
- CN202510314987.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-18
- Publication Date
- 2025-07-11
AI Technical Summary
Existing smart sockets cannot provide a good charging experience in device charging scenarios, especially when charging a mobile phone, it is easy to continuously charge after the battery is fully charged, which affects the health of the battery and users cannot accurately set the charging time.
By obtaining the charging mode selected by the user and the power information of the device, calculate the time and end time required for charging, and analyze user habits in combination with historical data, optimize the power-on time of the socket to ensure that the device is fully charged at the right time and avoid overcharging.
It improves the health of the device charging, reduces the long-term full load after the device is fully charged, provides a better charging experience, and adjusts the charging time in time when the load is too large to ensure safety.
Smart Images

Figure CN120295179A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home technologies, and in particular, to a method and system for controlling a smart socket. Background Art
[0002] With the development of technology, smart home devices have gradually become popular. As an important part of smart homes, smart sockets are widely used in places such as homes, offices, and hotels.
[0003] Currently, smart sockets generally come with a timing control function, that is, the socket can be set to turn on or off at a specific time, which is suitable for scenarios where an electrical appliance needs to be controlled at a certain fixed time point, such as turning on an electric kettle at a fixed time in the morning and turning off a table lamp at a fixed time in the evening; a cyclic timing can also be set to turn the socket on and off in a certain cycle, for example, turning on and off an air purifier at a fixed time every day.
[0004] In the above related technologies, although smart sockets have a timing function, they still cannot provide a good user experience for some scenarios where timing is not universal. For example, in the scenario of charging a mobile phone, users will connect the mobile phone to the charger and insert it into the socket before going to bed at night, and what they need is for the battery to be fully charged when they wake up. If the socket is powered on from the beginning, it is easy for the mobile phone to continue charging after the battery is fully charged, which will affect the health of the mobile phone battery; even when using the timing function, since the battery level before charging the mobile phone is not fixed, users cannot determine the specific start time point, so they cannot charge the mobile phone well; therefore, the current smart sockets still cannot provide a good charging experience for the scenario of charging devices, and there is still room for improvement. Summary of the Invention
[0005] In order to provide a good charging experience when charging a device, the present application provides a method and system for controlling a smart socket.
[0006] In a first aspect, the present application provides a method for controlling a smart socket, adopting the following technical solution: A method for controlling a smart socket includes: Obtaining the selected charging mode of the user; When the selected charging mode is consistent with a preset intelligent charging mode, obtaining a predetermined end time, controlling the smart socket to be powered on for a preset unit duration, and obtaining the pre-charging power level and the post-charging power level of the device within the unit duration; Calculating based on the pre-charging power level and the post-charging power level of the device to determine the unit recharge power; Calculating based on the post-charging power level of the device and a preset full-load power level of the device to determine the power to be recharged; Calculate according to the unit recharge power, the power waiting to be recharged, and the unit duration to determine the waiting recharge duration, and determine the theoretical start time according to the predetermined end time and the waiting recharge duration, and control the smart socket to be powered on for the waiting recharge duration at the theoretical start time.
[0007] Optionally, after obtaining the predetermined end time, the smart socket control method further includes: Judge whether the predetermined end time is empty; If the predetermined end time is not empty, determine the theoretical start time according to the predetermined end time; If the predetermined end time is empty, obtain the unit flowing current within the unit duration, and determine the device charging parameter according to the unit flowing current and the unit duration; Construct a historical interval on the preset time axis with the current time point as the rear endpoint and the width as the preset historical duration, and determine the historical charging period according to the device charging parameter in the historical interval, and determine the device insertion time and the device extraction time according to the historical charging period; Calculate according to the current device insertion time and the device insertion time of the historical charging period to determine the insertion interval duration, and define the historical charging period with the insertion interval duration less than the preset permission deviation duration as the effective reference period; Define the device extraction time of the effective reference period as the reference extraction time, and calculate according to each reference extraction time to generate the predetermined end time.
[0008] Optionally, the step of calculating according to each reference extraction time to generate the predetermined end time includes: Randomly select a reference extraction time from all the reference extraction times as the key extraction time, and define the remaining reference extraction times as the secondary extraction times; Calculate according to the key extraction time and each secondary extraction time to determine the time representative parameter; Determine the time representative parameter with the largest value according to the preset sorting rule, and define the key extraction time corresponding to the time representative parameter with the largest value as the representative extraction time; Construct a similar time interval according to the representative extraction time and the preset similar duration, and determine the predetermined end time according to the reference extraction times within the similar time interval.
[0009] Optionally, the step of determining the predetermined end time according to the reference extraction times within the similar time interval includes: Define the reference extraction times within the similar time interval as the feasible extraction times; Count according to the historical charging periods corresponding to each feasible extraction time in the historical interval to determine the feasible charging times; Define the feasible unplugging time with the number of feasible charging times greater than the preset habitual charging times as the habitual unplugging time; Determine the earliest habitual unplugging time among all the habitual unplugging times as the predetermined end time.
[0010] Optionally, after determining the theoretical start time, the intelligent socket control method further includes: Obtain the number of device connections of the socket; Determine whether the number of device connections is greater than one; If the number of device connections is not greater than one, control the power-on of the intelligent socket according to the theoretical start time; If the number of device connections is greater than one, determine the single-device operation period according to the theoretical start time and the predetermined end time, and perform a merging process on all single-device operation periods to determine the overall operation period; Calculate according to the device charging parameters at each time point during the overall operation period to determine the single-point operation voltage; Determine whether there is a situation where the single-point operation voltage is greater than the preset instantaneous upper limit voltage; If there is no situation where the single-point operation voltage is greater than the instantaneous upper limit voltage, control the power-on of the intelligent socket according to the theoretical start time; If there is a situation where the single-point operation voltage is greater than the instantaneous upper limit voltage, output a power-on abnormal signal.
[0011] Optionally, after outputting the power-on abnormal signal, the intelligent socket control method further includes: Randomly generate a moving duration for each single-device operation period, generate a moving virtual period according to the moving duration and the single-device operation period, and generate an adjustment processing plan according to each moving virtual period; Analyze according to each moving virtual period to define the adjustment processing plan without a power-on abnormal signal as an effective processing plan; Count the single-device operation periods with non-zero moving duration in the effective processing plan to determine the number of period changes; Determine the smallest number of period changes according to the sorting rule, define the effective processing plan corresponding to the smallest number of period changes as the alternative processing plan, select the only used processing plan from the alternative processing plans, and control the power-on of the sockets corresponding to each device according to each moving virtual period in the used processing plan.
[0012] Optionally, the step of selecting the only used processing plan from the alternative processing plans includes: Determine the reasonable change parameters corresponding to each moving duration in the alternative processing plan according to the preset reasonable matching relationship; Calculate the average value according to each reasonable change parameter to determine the average change parameter; Determine the mean change parameter with the largest value according to the sorting rule, and determine the alternative processing solution corresponding to the mean change parameter as the usage processing solution.
[0013] In a second aspect, the present application provides an intelligent socket control system, adopting the following technical solution: An intelligent socket control system includes: An acquisition module, configured to acquire the user's selected charging mode; A processing module, connected to the acquisition module and the judgment module, for storing and processing information; A judgment module, connected to the acquisition module and the processing module, for judging information; When the judgment module judges that the selected charging mode is consistent with the preset intelligent charging mode, the acquisition module acquires the predetermined end time, and enables the processing module to control the intelligent socket to be powered on for a preset unit duration, and enables the acquisition module to acquire the pre-charging power of the device and the post-charging power of the device within the unit duration; The processing module calculates based on the pre-charging power of the device and the post-charging power of the device to determine the unit recharge power; The processing module calculates based on the post-charging power of the device and the preset full-load power of the device to determine the power to be recharged; The processing module calculates based on the unit recharge power, the power to be recharged, and the unit duration to determine the waiting recharge duration, and determines the theoretical start time based on the predetermined end time and the waiting recharge duration, and controls the intelligent socket to be powered on for the waiting recharge duration at the theoretical start time.
[0014] In summary, the present application includes at least one of the following beneficial technical effects: When the device is connected to the socket and needs to be charged, the specific power-on time of the socket can be controlled according to the charging situation and unplugging situation of the device, so as to reduce the situation that the device remains fully loaded for a long time after being fully charged while ensuring that the device can be charged well, improve the health of the device battery, and provide a better charging experience when the device is charging; When the user does not set the corresponding end time, the charging time point can be analyzed and determined according to the user's daily habits, thus bringing a better charging experience to the user; During the process of scheduled charging, the possible load of the entire socket can be comprehensively analyzed, so as to adjust the charging time period in a timely manner when there is a potential safety hazard in the load, ensuring the safety of the charging process. Description of the Drawings
[0015] Figure 1 It is a flowchart of the intelligent socket control method.
[0016] Figure 2 It is a module flowchart of the intelligent socket control method. Specific embodiments
[0017] In order to make the objectives, technical solutions and advantages of the present application clearer and more understandable, the following further details the present application in combination with Figure 1 - Figure 2 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.
[0018] The following further describes the embodiments of the present application in detail with reference to the accompanying drawings of the specification.
[0019] The embodiments of the present application disclose an intelligent socket control method. Referring to Figure 1 , the method flow of the intelligent socket control method includes the following steps: Step S100: Obtain the selected charging mode of the user.
[0020] The selected charging mode is the mode selected by the user for charging the device after connecting the device to the charger. This mode can include intelligent charging mode, immediate charging mode, timed charging mode, etc. The available modes are set by the staff according to the actual situation. The user can select the specific mode through the touch button on the socket.
[0021] Step S101: When the selected charging mode is consistent with the preset intelligent charging mode, obtain the predetermined end time, control the intelligent socket to be powered on for a preset unit duration, and obtain the pre-charging power of the device and the post-charging power of the device within the unit duration.
[0022] The intelligent charging mode is the power-on mode of the socket that analyzes the self-power situation and charging speed of the device to be charged, so that the device can be fully charged before the user needs to unplug it and the full-charging duration is maintained short; the predetermined end time is the time point when the user sets to unplug the device after selecting the intelligent charging mode; the unit duration is a fixed duration set by the staff. By controlling the power-on of the socket, the charging process of the device can be realized. The pre-charging power of the device is the remaining power value of the device monitored when the socket is just powered on, and the post-charging power of the device is the remaining power value of the device monitored when the socket is about to be powered off. Both values are percentage values.
[0023] Step S102: Calculate based on the pre-charging power of the device and the post-charging power of the device to determine the unit recharge power.
[0024] The unit recharge power is the power value charged into the device within the unit duration, which is determined by subtracting the pre-charging power of the device from the post-charging power of the device.
[0025] Step S103: Calculate the amount of power waiting to be recharged based on the post-charging power of the device and the preset full-load power of the device.
[0026] The full load power of the device refers to the power value when the device is fully charged, that is, 100%. The waiting charge power refers to the power value that the device still needs to be charged, which is determined by subtracting the post-charging power of the device from the full load power of the device.
[0027] Step S104: Calculate the waiting time for recharging based on the unit recharge power, the waiting time for recharging and the unit time, determine the theoretical start time based on the scheduled end time and the waiting time for recharging, and control the smart socket to power on and wait for recharging at the theoretical start time.
[0028] The waiting time for recharging is the time required to charge the waiting amount of electricity under theoretical circumstances. The charging efficiency is obtained by dividing the unit recharge amount by the unit time, and the waiting time for recharging is obtained by dividing the waiting amount of electricity by the charging efficiency. The theoretical start time is the time point obtained by adjusting the scheduled end time forward by the waiting time for recharging, that is, the time point when the socket is theoretically required to be powered on. When the socket is powered on at the theoretical start, it can be ensured that the device will be charged to near the required amount of electricity at the scheduled end time. If the battery is fully charged, it will not be powered on for a long time after being fully charged, thereby improving the charging experience of the user when charging the device.
[0029] After obtaining the scheduled end time, the smart socket control method further includes: Step S200: Determine whether the scheduled end time is empty.
[0030] The purpose of the judgment is to find out whether the user has forgotten to set the scheduled end time.
[0031] Step S2001: If the scheduled end time is not empty, determine the theoretical start time according to the scheduled end time.
[0032] When the scheduled end time is not empty, it means that the user has not forgotten to set the scheduled end time. At this time, the theory can be normally determined to start practice.
[0033] Step S2002: If the scheduled end time is empty, the unit current flowing within the unit time is obtained, and the device charging parameters are determined according to the unit current flowing and the unit time.
[0034] When the scheduled end time is empty, it indicates that there is a situation where the user forgets to set the scheduled end time. In this case, it is necessary to analyze and determine the specific charging period; the current value of the current flowing through the ammeter per unit time through the socket to the device. Through the current flowing per unit time and the unit time, some charging parameters of the current device charging can be known, such as the rated power and so on.
[0035] Step S201: Construct a historical interval on the preset time axis with the current time point as the rear endpoint and a width of the preset historical duration, and determine the historical charging period according to the device charging parameters in the historical interval, and determine the device insertion time and the device removal time according to the historical charging period.
[0036] The time axis is an axis formed by combining each time point. This axis points from the passed time points to the time points that have not yet arrived. Among them, the passed time points are on the left side of the time axis, and the left side is defined as the front end of the time axis; the historical duration is the duration set by the staff for obtaining data on the historical charging situation of this smart socket. By constructing the historical interval, it is convenient to obtain and analyze the data within the historical duration; the historical charging period is the charging time period when the device with the device charging parameters is being charged. At this time, the corresponding charging time period can be considered as the charging time period of the currently charging device in the historical situation. The device insertion time is the front endpoint in the historical charging period, and the device removal time is the rear endpoint in the historical charging period.
[0037] Step S202: Calculate according to the current device insertion time and the device insertion time of the historical charging period to determine the insertion interval duration, and define the historical charging period with the insertion interval duration less than the preset permitted deviation duration as the effective reference period.
[0038] The insertion interval duration is the duration between the current device insertion time and the device insertion time of the historical charging period within the 24-hour timekeeping system of a day, that is, without considering the duration difference brought by the date, only considering the duration difference brought by hours, minutes, and seconds; the permitted deviation duration is the maximum insertion interval duration allowed by the staff when it is considered that the charging habits are relatively similar. When the insertion interval duration is less than the permitted deviation duration, it indicates that the charging behaviors of the two are relatively similar. At this time, the effective reference period is defined to distinguish different historical charging periods for subsequent analysis.
[0039] Step S203: Define the device removal time of the effective reference period as the reference removal time, and calculate according to each reference removal time to generate the scheduled end time.
[0040] Define a reference extraction time to distinguish different device extraction times. At this time, through each reference extraction time, the extraction times of most devices under this charging behavior can be known. Therefore, a predetermined end time can be generated. The generation method can be determined by calculating the average value of each reference extraction time, or can be determined according to the method of steps S300 - S303.
[0041] The steps of calculating to generate a predetermined end time according to each reference extraction time include: Step S300: Randomly select a reference extraction time from all reference extraction times as the key extraction time, and define the remaining reference extraction times as secondary extraction times.
[0042] Define the key extraction time and the secondary extraction time to distinguish different reference extraction times, which is convenient for subsequent analysis.
[0043] Step S301: Calculate according to the key extraction time and each secondary extraction time to determine the time representative parameter.
[0044] The time representative parameter is the parameter value representing the possibility of the key extraction time representing all reference extraction times. The larger this value, the greater the possibility. It is determined by calculating the time intervals between the key extraction time and each secondary extraction time respectively, summing them up and then taking the reciprocal.
[0045] Step S302: Determine the time representative parameter with the largest value according to the preset sorting rule, and define the key extraction time corresponding to the time representative parameter with the largest value as the representative extraction time.
[0046] The sorting rule is a method set by the staff that can sort the value sizes, such as the bubble sort method. Through the sorting rule, the time representative parameter with the largest value can be determined, that is, the key extraction time corresponding to this time can best represent all reference extraction times at this time. Just define it as the representative extraction time at this time.
[0047] Step S303: Construct a similar time interval according to the representative extraction time and the preset similar duration, and determine the predetermined end time according to the reference extraction times within the similar time interval.
[0048] The similar duration is the time interval between the farthest point around a time point and this time point set by the staff. By pushing the representative extraction time forward and backward by the similar duration respectively, a similar time interval can be constructed. That is, the times within this interval may all be the times when the user extracts the current device. Therefore, use the reference extraction times within the similar time interval to determine the predetermined end time. The predetermined end time can be determined by the average value, or can be determined by the method of steps S400 - S403 for the predetermined end time.
[0049] The steps of determining a predetermined end time according to the reference unplugging times within a similar time interval include: Step S400: Define the reference unplugging times within a similar time interval as the feasible unplugging times.
[0050] Defining the feasible unplugging times is to distinguish different reference unplugging times, facilitating subsequent analysis.
[0051] Step S401: Count the historical charging periods corresponding to each feasible unplugging time in the historical interval to determine the feasible charging times.
[0052] The feasible charging times are the number of times the device is unplugged at the feasible unplugging times when the current user has historically charged the device.
[0053] Step S402: Define the feasible unplugging times with the feasible charging times greater than the preset habitual charging times as the habitual unplugging times.
[0054] The habitual charging times are the feasible charging times required to be reached when the staff determines that the user has a certain charging habit; defining the habitual unplugging times is to distinguish different feasible unplugging times, facilitating subsequent analysis.
[0055] Step S403: Determine the earliest habitual unplugging time among all the habitual unplugging times as the predetermined end time.
[0056] Determining the earliest habitual unplugging time as the predetermined end time is to facilitate effective charging of the device.
[0057] After determining the theoretical start time, the intelligent socket control method further includes: Step S500: Obtain the number of device connections of the socket.
[0058] The number of device connections is the number of devices that need to be intelligently charged and are connected to the current intelligent socket.
[0059] Step S501: Determine whether the number of device connections is greater than one.
[0060] The purpose of the determination is to know whether only the power-on situation of one device needs to be controlled.
[0061] Step S5011: If the number of device connections is not greater than one, control the power-on of the intelligent socket according to the theoretical start time.
[0062] When the number of device connections is not greater than one, it means that only the power-on situation of one device needs to be controlled. At this time, the socket can be normally controlled according to the theoretical start time.
[0063] Step S5012: If the number of connected devices is greater than one, determine the single-device operation period based on the theoretical start time and the predetermined end time, and perform a merging process based on all single-device operation periods to determine the overall operation period.
[0064] When the number of connected devices is greater than one, it indicates that there are multiple devices that need to be charged and controlled. At this time, there may be a situation where the charging load of the socket is too large during the same time period. Therefore, further analysis is required; the single-device operation period is the time period during which a single device needs to be powered on and charged under theoretical conditions, that is, the time period between the corresponding theoretical start time and the predetermined end time of the device; the overall operation period is the time period during which the socket as a whole needs to be powered on, that is, the time period formed by the earliest theoretical start time and the latest predetermined end time.
[0065] Step S502: Calculate according to the device charging parameters at each time point during the overall operation period to determine the single-point operation voltage.
[0066] The single-point operation voltage is the voltage value of the overall load required by the socket at each time point during the simulated charging according to the specific charging conditions of each device during the overall operation period.
[0067] Step S503: Determine whether there is a situation where the single-point operation voltage is greater than the preset instantaneous upper limit voltage.
[0068] The instantaneous upper limit voltage is the maximum single-point operation value allowed in an instantaneous situation when the socket can be used properly without potential safety hazards. The purpose of the determination is to find out whether there will be potential safety hazards during the subsequent charging of each device.
[0069] Step S5031: If there is no situation where the single-point operation voltage is greater than the instantaneous upper limit voltage, control the power-on of the smart socket according to the theoretical start time.
[0070] When there is no situation where the single-point operation voltage is greater than the instantaneous upper limit voltage, it indicates that each device can be charged properly. At this time, control the power-on of each socket on the smart socket according to each theoretical start time.
[0071] Step S5032: If there is a situation where the single-point operation voltage is greater than the instantaneous upper limit voltage, output a power-on abnormal signal.
[0072] When there is a situation where the single-point operation voltage is greater than the instantaneous upper limit voltage, it indicates that there is a situation where a device cannot be safely charged. At this time, output a power-on abnormal signal to identify this situation so that the user can be informed of this situation to process the device.
[0073] After the power-on abnormal signal is output, the smart socket control method further includes: Step S600: Randomly generate a moving duration for each single-operation period, generate a moving virtual period based on the moving duration and the single-operation period, and generate an adjustment processing plan according to each moving virtual period.
[0074] The moving duration is a randomly generated duration value for moving the single-operation period forward. The moving virtual period is the time period obtained by changing the single-operation period according to the moving duration. The adjustment processing plan is the plan that includes each moving virtual period.
[0075] Step S601: Analyze according to each moving virtual period and define the adjustment processing plan without a power-on abnormal signal as an effective processing plan.
[0076] When there is no power-on abnormal signal, it indicates that each device can safely charge under this adjustment processing plan. At this time, it is defined as an effective processing plan for identification, which is convenient for subsequent analysis.
[0077] Step S602: Count the single-operation periods with non-zero moving durations in the effective processing plan to determine the number of period changes.
[0078] When the moving duration is non-zero, it means that the single-operation period of this device needs to be adjusted, that is, this device cannot charge during the optimal charging period. At this time, count it to determine the number of devices that cannot charge during the optimal charging period, so as to determine the number of period changes.
[0079] Step S603: Determine the smallest number of period changes according to the sorting rule, define the effective processing plan corresponding to the smallest number of period changes as the alternative processing plan, select a unique used processing plan from the alternative processing plans, and control the power-on of the corresponding sockets of each device according to each moving virtual period in the used processing plan.
[0080] Through the sorting rule, the smallest number of period changes can be determined, that is, the number of devices that can charge during the optimal charging period under the effective processing plan corresponding to this number of period changes is the largest at this time. Therefore, it is defined as the alternative processing plan to distinguish different effective processing plans. At this time, just select a used processing plan from the alternative processing plans to control the power-on situation of each device to ensure the normal charging of each device. The determination method of the used processing plan can be random selection or can be determined by the method of steps S700 - S702.
[0081] The steps of selecting a unique used processing plan from the alternative processing plans include: Step S700: Determine the reasonable change parameters corresponding to each moving duration in the alternative processing plan according to the preset reasonable matching relationship.
[0082] The reasonable variation parameter is the parameter value that reflects the moving situation reasonably after the moving duration of the charging period of the device is moved. The larger this value is, the better the moving situation is. The reasonable matching relationship between the two is determined by the staff through multiple tests in advance, and it is necessary to ensure that the larger the moving duration is, the smaller the corresponding reasonable variation parameter is.
[0083] Step S701: Calculate the mean value according to each reasonable variation parameter to determine the mean variation parameter.
[0084] The mean variation parameter is the average value of each reasonable variation parameter.
[0085] Step S702: Determine the mean variation parameter with the largest value according to the sorting rule, and determine the alternative processing solution corresponding to this mean variation parameter as the used processing solution.
[0086] Through the sorting rule, the mean variation parameter with the largest value can be determined, that is, the charging situation of each device under this mean variation parameter is the most reasonable at this time. Therefore, it is only necessary to determine the alternative processing solution corresponding to it as the used processing solution.
[0087] Refer to Figure 2 , based on the same inventive concept, an embodiment of the present invention provides an intelligent socket control system, including: An acquisition module, configured to acquire the selected charging mode of the user; A processing module, connected to the acquisition module and the judgment module, and configured to store and process information; A judgment module, connected to the acquisition module and the processing module, and configured to judge information; When the judgment module judges that the selected charging mode is consistent with the preset intelligent charging mode, the acquisition module acquires the predetermined end time, and enables the processing module to control the intelligent socket to be powered on for a preset unit duration, and enables the acquisition module to acquire the pre-charging power and the post-charging power of the device within the unit duration; The processing module calculates according to the pre-charging power and the post-charging power of the device to determine the unit recharge power; The processing module calculates according to the post-charging power of the device and the preset full-load power of the device to determine the power to be recharged; The processing module calculates according to the unit recharge power, the power to be recharged, and the unit duration to determine the waiting recharge duration, and determines the theoretical start time according to the predetermined end time and the waiting recharge duration, and controls the intelligent socket to be powered on for the waiting recharge duration at the theoretical start time; A predetermined end time analysis module, which analyzes and processes the situation where the user does not set a predetermined end time; A predetermined end time determination module determines the predetermined end time according to the device unplugging situation of the user in the historical situation; A predetermined end time generation module is used to generate a specific predetermined end time; A power-on situation analysis module is used to simulate and analyze the device reservation charging situation; A power-on time period moving module is used to control the movement of the specific charging time period of the device; A usage processing solution screening module is used to select a unique usage processing solution from multiple alternative processing solutions that meet the requirements.
[0088] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the above division of each functional module is used as an example. In actual applications, the above functions can be assigned to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.
Claims
1. A method for controlling an intelligent socket, characterized in that, Including: Obtain the user's selected charging mode; When the selected charging mode is consistent with the preset intelligent charging mode, obtain the predetermined end time, control the smart socket to be powered on for a preset unit duration, and obtain the pre-charging power of the device and the post-charging power of the device within the unit duration; Calculate based on the pre-charging power and the post-charging power of the device to determine the unit recharge power; Calculate based on the post-charging power of the device and the preset full-load power of the device to determine the power to be recharged; Calculate based on the unit recharge power, the power to be recharged, and the unit duration to determine the waiting recharge duration, determine the theoretical start time based on the predetermined end time and the waiting recharge duration, and control the smart socket to be powered on for the waiting recharge duration at the theoretical start time.
2. The intelligent socket control method according to claim 1, wherein After obtaining the predetermined end time, the smart socket control method further includes: Judge whether the predetermined end time is empty; If the predetermined end time is not empty, determine the theoretical start time according to the predetermined end time; If the predetermined end time is empty, obtain the unit flowing current within the unit duration, and determine the device charging parameters according to the unit flowing current and the unit duration; Construct a historical interval on the preset time axis with the current time point as the rear endpoint and a width of the preset historical duration, determine the historical charging period according to the device charging parameters in the historical interval, and determine the device insertion time and the device removal time according to the historical charging period; Calculate based on the current device insertion time and the device insertion time of the historical charging period to determine the insertion interval duration, and define the historical charging period with the insertion interval duration less than the preset permitted deviation duration as the effective reference period; Define the device removal time of the effective reference period as the reference removal time, and calculate based on each reference removal time to generate the predetermined end time.
3. The intelligent socket control method according to claim 2, wherein, The step of calculating to generate the predetermined end time based on each reference removal time includes: Randomly select a reference removal time from all the reference removal times as the key removal time, and define the remaining reference removal times as the secondary removal times; Calculate based on the key removal time and each secondary removal time to determine the time representative parameter; Determine the time representative parameter with the largest value according to the preset sorting rule, and define the key removal time corresponding to the time representative parameter with the largest value as the representative removal time; Construct a similar time interval based on the representative removal time and the preset similar duration, and determine the predetermined end time according to the reference removal times within the similar time interval.
4. The intelligent socket control method according to claim 3, wherein The step of determining the predetermined end time according to the reference removal times within the similar time interval includes: Define the reference removal times within the similar time interval as the feasible removal times; Count according to the historical charging periods corresponding to each feasible removal time in the historical interval to determine the feasible charging times; Define the feasible removal times with the feasible charging times greater than the preset habitual charging times as the habitual removal times; Determine the earliest habitual removal time among all the habitual removal times as the predetermined end time.
5. The intelligent socket control method according to claim 1, wherein After determining the theoretical start time, the smart socket control method further includes: Obtain the number of device connections of the socket; Determine whether the number of connected devices is greater than one; If the number of connected devices is not greater than one, power on the smart socket according to the theoretical start time; If the number of connected devices is greater than one, determine the single operation period according to the theoretical start time and the predetermined end time, and perform a merging process based on all single operation periods to determine the overall operation period; Calculate according to the device charging parameters at each time point during the overall operation period to determine the single-point operation voltage; Determine whether there is a situation where the single-point operation voltage is greater than the preset instantaneous upper limit voltage; If there is no situation where the single-point operation voltage is greater than the instantaneous upper limit voltage, power on the smart socket according to the theoretical start time; If there is a situation where the single-point operation voltage is greater than the instantaneous upper limit voltage, output a power-on abnormal signal.
6. The intelligent socket control method according to claim 5, wherein, After the power-on abnormal signal is output, the smart socket control method further includes: Randomly generate a moving duration for each single operation period, generate a moving virtual period based on the moving duration and the single operation period, and generate an adjustment processing plan based on each moving virtual period; Analyze according to each moving virtual period to define the adjustment processing plan without a power-on abnormal signal as an effective processing plan; Count the single operation periods with non-zero moving duration in the effective processing plan to determine the number of period changes; Determine the period change number with the smallest value according to the sorting rule, define the effective processing plan corresponding to the period change number with the smallest value as an alternative processing plan, select a unique used processing plan from the alternative processing plans, and power on the sockets corresponding to each device according to each moving virtual period in the used processing plan.
7. The intelligent socket control method according to claim 6, wherein The step of selecting a unique used processing plan from the alternative processing plans includes: Determine the reasonable change parameters corresponding to each moving duration in the alternative processing plan according to the preset reasonable matching relationship; Calculate the mean value according to each reasonable change parameter to determine the mean change parameter; Determine the mean change parameter with the largest value according to the sorting rule, and determine the alternative processing plan corresponding to the mean change parameter as the used processing plan.
8. An intelligent socket control system, characterized in that, Includes: An acquisition module for acquiring the selected charging mode of the user; A processing module, connected to the acquisition module and the judgment module, for storing and processing information; A judgment module, connected to the acquisition module and the processing module, for judging information; When the judgment module determines that the selected charging mode is consistent with the preset intelligent charging mode, the acquisition module acquires the predetermined end time, enables the processing module to power on the smart socket for a preset unit duration, and enables the acquisition module to acquire the pre-charging power and the post-charging power of the device within the unit duration; The processing module calculates according to the pre-charging power and the post-charging power of the device to determine the unit recharge power; The processing module calculates according to the post-charging power of the device and the preset full-load power of the device to determine the power to be recharged; The processing module calculates according to the unit recharge power, the power to be recharged, and the unit duration to determine the waiting recharge duration, determines the theoretical start time according to the predetermined end time and the waiting recharge duration, and powers on the smart socket for the waiting recharge duration at the theoretical start time.
