Idle detection method, idle detection device and socket
Patent Information
- Application Number
- CN202310808001.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-03
- Publication Date
- 2026-09-22
- Estimated Expiration
- 2043-07-03
AI Technical Summary
[0004]上述技术采用预设阈值与检测到的电流进行比较,而预设阈值大多是固定的一个阈值,可能并不符合用户的使用习惯,导致检测准确性不高
[0034]本申请提供的空载检测方法、空载检测装置及插座,在空载检测装置中设置有处理单元,该处理单元通过获取检测单元检测到的插座的多个使用数据,使用数据能够体现出插座的使用情况,再采用聚类算法对多个使用数据进聚类,得到两个数据簇,这样能够确定各数据簇分别对应的目标电流阈值,该目标电流阈值是针对插座确定的,更符合该插座的使用情况,从而根据目标电流阈值控制检测单元检测插座是否处于空载状态时,能够检测的更加准确,从而提高了检测准确性。
Smart Images

Figure CN116859155B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of artificial intelligence technology, and in particular to an unloaded detection method, an unloaded detection device, and a socket. Background Technology
[0002] With the rapid development of technology, people are using electronic products more and more frequently in their daily lives, such as computers, mobile phones, and other office or personal electronic devices. Most of these electronic products are equipped with chargers for charging. After charging, people disconnect the charger from the device to use it, while the charger may remain connected to the socket for future charging. However, in this situation, the socket is unloaded, which can easily cause components to age and overheat, and even pose a fire hazard.
[0003] In related technologies, the current between the socket and the charger is detected and compared with a preset threshold to determine whether the socket is in an unloaded state. When the socket is in an unloaded state, the connection between the charger and the socket is automatically disconnected.
[0004] The above technology compares the detected current with a preset threshold. However, the preset threshold is mostly a fixed threshold, which may not conform to the user's usage habits, resulting in low detection accuracy. Summary of the Invention
[0005] This application provides an unloaded detection method, an unloaded detection device, and a socket, which can improve detection accuracy.
[0006] In a first aspect, this application provides an unloaded detection method, applied to a processing unit in an unloaded detection device, the unloaded detection device further including a detection unit, the processing unit being electrically connected to the detection unit, and the unloaded detection device being disposed in a socket; the method includes:
[0007] The system acquires multiple usage data corresponding to the socket. The usage data includes the current value, status information, and timestamp corresponding to the socket. The current value is obtained by the detection unit detecting the current of the circuit where the socket is located at the time indicated by the timestamp. The status information indicates the status of the socket at the time indicated by the timestamp, and the status information is either a working state or an unloaded state.
[0008] A clustering algorithm is invoked to cluster the multiple usage data to obtain two data clusters, each of which includes at least one usage data.
[0009] Based on the at least one usage data included in each of the data clusters, a target current threshold corresponding to each of the data clusters is determined, and the target current threshold is used to detect whether the socket is in an unloaded state.
[0010] Based on the target current threshold corresponding to each of the data clusters, the detection unit is controlled to detect whether the socket is in an unloaded state.
[0011] Optionally, determining the target current threshold corresponding to each data cluster based on the at least one usage data included in each data cluster includes:
[0012] For each of the aforementioned data clusters:
[0013] Determine the mean current value and standard deviation of the current value of at least one used data included in the data cluster;
[0014] The difference between the mean current value and the standard deviation parameter is determined as the target current threshold corresponding to the data cluster, and the standard deviation parameter is twice the standard deviation of the current value.
[0015] Optionally, controlling the detection unit to detect whether the socket is in an unloaded state based on the target current threshold corresponding to each of the data clusters includes:
[0016] The detection unit is controlled to detect whether the socket is in an unloaded state within a preset detection time period, according to the minimum current threshold among the determined target current thresholds.
[0017] Optionally, controlling the detection unit to detect whether the socket is in an unloaded state based on the target current threshold corresponding to each of the data clusters includes:
[0018] The working time included in the data of the center point in each data cluster is determined as the target working time corresponding to each data cluster. The target working time is used to detect whether the socket is in an unloaded state.
[0019] Based on the target current threshold and target operating time corresponding to each of the data clusters, the detection unit is controlled to detect whether the socket is in an unloaded state.
[0020] Optionally, controlling the detection unit to detect whether the socket is in an unloaded state based on the target current threshold and target operating time corresponding to each of the data clusters includes:
[0021] According to the target working time corresponding to each data cluster, the preset detection time period is divided into two target detection time periods, and different target working times belong to different target detection time periods;
[0022] The detection unit is controlled to detect whether the socket is in an unloaded state according to the corresponding target current threshold during the target detection time period.
[0023] Optionally, the processing unit is also communicatively connected to an electronic device, and after acquiring multiple usage data corresponding to the socket, the method further includes:
[0024] Send multiple usage data corresponding to the socket to the electronic device so that the electronic device can display the multiple usage data corresponding to the socket.
[0025] Optionally, the method further includes:
[0026] Once the latest usage data corresponding to the socket is obtained, the clustering algorithm is used to determine the data cluster to which the latest usage data belongs, and the latest usage data is added to the data cluster.
[0027] Optionally, the method further includes:
[0028] When the number of the latest usage data reaches a preset number, the clustering algorithm is invoked to cluster the acquired latest usage data and the multiple usage data to obtain two updated data clusters.
[0029] Secondly, this application provides an unloaded detection device, which is disposed in a socket and includes a processing unit and a detection unit, wherein the detection unit and the processing unit are electrically connected.
[0030] The detection unit is used to send the usage data corresponding to the socket to the processing unit. The usage data includes current value, working status and timestamp. The current value is obtained by the detection unit detecting the current of the circuit where the socket is located at the time indicated by the timestamp. The status information indicates the status of the socket at the time indicated by the timestamp. The status information is either working status or no-load status.
[0031] The processing unit is configured to invoke a clustering algorithm to cluster the acquired multiple usage data to obtain two data clusters, each data cluster including at least one usage data; based on the at least one usage data included in each data cluster, determine a target current threshold corresponding to each data cluster, the target current threshold being used to detect whether the socket is in an unloaded state; and based on the target current threshold corresponding to each data cluster, control the detection unit to detect whether the socket is in an unloaded state.
[0032] Thirdly, this application provides a socket, which includes a socket body, a power cord, and an unload detection device as described in the second aspect;
[0033] The socket body is connected to the mains power through the power cord, and the no-load detection device is set between the power cord and the load to detect whether the socket is in a no-load state.
[0034] The no-load detection method, no-load detection device, and socket provided in this application include a processing unit in the no-load detection device. This processing unit acquires multiple usage data of the socket detected by the detection unit. The usage data reflects the usage status of the socket. Then, a clustering algorithm is used to cluster the multiple usage data to obtain two data clusters. This allows for the determination of the target current threshold corresponding to each data cluster. The target current threshold is determined specifically for the socket and is more consistent with the usage status of the socket. Therefore, when the detection unit detects whether the socket is in a no-load state based on the target current threshold, the detection can be more accurate, thereby improving the detection accuracy. Attached Figure Description
[0035] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0036] Figure 1 This is a schematic diagram illustrating an application scenario according to an exemplary embodiment;
[0037] Figure 2 This is a flowchart illustrating an unloaded detection method according to an exemplary embodiment;
[0038] Figure 3 This is a flowchart illustrating an unloaded detection method according to another exemplary embodiment;
[0039] Figure 4 This is a schematic diagram of the structure of an unloaded detection device according to an exemplary embodiment;
[0040] Figure 5 This is a schematic diagram illustrating an unloaded detection method according to an exemplary embodiment;
[0041] Figure 6 This is a schematic diagram of the structure of a socket according to an exemplary embodiment.
[0042] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0043] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0044] In the following descriptions of the embodiments, "a plurality of" means two or more, unless otherwise explicitly specified.
[0045] The collection, storage, use, processing, transmission, provision, and disclosure of financial data or user data involved in the technical solution of this application all comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0046] To clearly understand the technical solution of this application, the solutions of the prior art will be described in detail first.
[0047] With the rapid development of technology, people are using electronic devices more and more frequently in their daily lives, such as computers, mobile phones, and other office or personal electronic devices. Most of these electronic devices are equipped with chargers for charging. For example, a charger can be a mobile phone charger or a power adapter. A mobile phone charger is a switching power supply circuit that takes in 220V AC mains power and converts it to low-voltage DC output, used to charge the mobile phone battery or for continuous operation. A power adapter is also a switching power supply circuit that takes in 220V AC mains power and converts it to low-voltage DC output, used to power laptops, typically with an output of 18-24V and a rated current between 2A-5A. During charging, the socket is connected to the charger, the charger is connected to the electronic device, and the electronic device acts as a load on the socket, consuming a certain amount of power. After charging the electronic device, people disconnect the charger from the electronic device to use it, while the charger may remain connected to the socket for the next charging. However, in this case, the socket is in an unloaded state, and the charger itself also consumes a certain amount of power, approximately 0.3W-1W. Leaving electrical outlets unused for extended periods not only hinders energy conservation and emission reduction but also leads to component aging, overheating, and even fire hazards. However, due to busy schedules and frequent movement, people often find it difficult to remember and consistently unplug electronic devices when leaving or not in use.
[0048] In related technologies, the current between the socket and the charger is detected and compared with a preset threshold to determine whether the socket is in an unloaded state. If the socket is in an unloaded state, the connection between the charger and the socket is automatically disconnected. However, this technology compares the detected current with a preset threshold, which is often a fixed threshold and may not conform to user habits, leading to low detection accuracy.
[0049] To address the issue of low detection accuracy in existing technologies, the inventors discovered that a solution can be found by setting corresponding current thresholds for sockets based on their usage patterns. This adapts to different socket conditions and improves detection accuracy. Specifically, the no-load detection device includes a processing unit. This unit acquires multiple usage data points from the socket detected by the detection unit. These usage data points reflect the socket's usage status. A clustering algorithm is then used to cluster the multiple usage data points, resulting in two data clusters. This allows for the determination of a target current threshold for each data cluster. This target current threshold is specifically designed for the socket and better reflects its usage. Therefore, by controlling the detection unit to detect whether the socket is in a no-load state based on the target current threshold, the detection accuracy is improved.
[0050] The following describes the application scenarios of the no-load detection method provided in the embodiments of this application.
[0051] Figure 1 This is a schematic diagram illustrating an application scenario according to an exemplary embodiment. For example... Figure 1 As shown, this application scenario includes: a processing unit 1 and a detection unit 2. The processing unit 1 and the detection unit 2 are electrically connected.
[0052] In this embodiment, processing unit 1 and detection unit 2 are housed within an unloaded detection device. The unloaded detection device detects whether the socket is in an unloaded state. Detection unit 2 detects whether the socket is in an unloaded state and sends the corresponding usage data of the socket to processing unit 1. Processing unit 1 determines a target current threshold based on the usage data of the socket, and then controls detection unit 2 according to the target current threshold. In this embodiment, processing unit 1 acquires multiple usage data points corresponding to the socket, then uses a clustering algorithm to cluster the multiple usage data points to obtain two data clusters. Based on at least one usage data point included in each data cluster, it determines the target current threshold corresponding to each data cluster. Finally, based on the target current threshold corresponding to each data cluster, it controls the detection unit to detect whether the socket is in an unloaded state.
[0053] The technical solution of this application and how it solves the above-mentioned technical problems will be described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.
[0054] Figure 2 This is a flowchart illustrating an unloaded detection method according to an exemplary embodiment. The execution entity of the unloaded detection method provided in this application is a processing unit in an unloaded detection device. The unloaded detection device also includes a detection unit, and the processing unit is electrically connected to the detection unit. The unloaded detection device is disposed in a socket. Figure 2 As shown, the no-load detection method provided in this embodiment includes the following steps:
[0055] Step S101: Obtain multiple usage data corresponding to the socket. The usage data includes the current value, status information and timestamp corresponding to the socket. The current value is obtained by the detection unit detecting the current of the circuit where the socket is located at the time indicated by the timestamp. The status information indicates the status of the socket at the time indicated by the timestamp, which is either working state or no-load state.
[0056] In this embodiment, the detection unit checks whether the socket is in an unloaded state at preset time intervals. During the detection process, usage data corresponding to the socket is generated and sent to the processing unit. The preset time interval can be set as needed, and this embodiment does not limit it. For example, the preset time interval can be 1 minute, 5 minutes, 10 minutes, etc. When detecting whether the socket is in an unloaded state, the detection unit obtains the current value of the circuit where the socket is located. If the current value is not 0, it determines whether the current value is less than a current threshold. If the current value is less than the current threshold and not 0, the socket is determined to be in an unloaded state. If the current value is not less than the current threshold, the socket is determined to be in a working state. If the current value is 0, the socket is determined to be in an idle state. The current threshold can be the target current threshold in this application. If the target current threshold is not determined, the current threshold can be a preset current threshold. The preset current threshold can be set as needed, and this embodiment does not limit it. The target current threshold not being determined means that the usage data corresponding to the socket has not yet been generated. It should be noted that the unloaded state is not the same as the idle state, because the socket still provides power when it is in an unloaded state. Each time the detection unit checks whether the socket is in an unloaded state, it sends the usage data generated during the detection process to the processing unit. Correspondingly, the processing unit stores the received usage data. When the received usage data reaches a preset number, it executes step S101 to retrieve multiple stored usage data corresponding to the socket. The preset number can be set as needed, for example, 50, 100, or 200.
[0057] Step S102: Invoke the clustering algorithm to cluster multiple data sets to obtain two data clusters, each of which includes at least one data set of usage data.
[0058] The clustering algorithm can be selected as needed, for example, the KMeans algorithm. Clustering groups similar data into clusters, so the data used in each cluster are relatively similar, specifically, similar current values, similar state information, or similar timestamps.
[0059] Step S103: Based on at least one usage data included in each data cluster, determine the target current threshold corresponding to each data cluster. The target current threshold is used to detect whether the socket is in an unloaded state.
[0060] Among them, since each data cluster includes at least one similar usage data, and the usage data can reflect the usage of the socket, the target current threshold corresponding to the data cluster is closer to the socket usage of the corresponding data cluster, and the accuracy is higher.
[0061] Step S104: Based on the target current threshold corresponding to each data cluster, control the detection unit to detect whether the socket is in an unloaded state.
[0062] After determining the target current threshold, the detection unit can be controlled to detect whether the socket is in an unloaded state based on the target current threshold.
[0063] In this embodiment, a processing unit is provided in the no-load detection device. This processing unit acquires multiple usage data of the socket detected by the detection unit. The usage data can reflect the usage status of the socket. Then, a clustering algorithm is used to cluster the multiple usage data to obtain two data clusters. This allows the determination of the target current threshold corresponding to each data cluster. The target current threshold is determined for the socket and is more consistent with the usage status of the socket. Therefore, when the detection unit detects whether the socket is in a no-load state based on the target current threshold, the detection can be more accurate, thereby improving the detection accuracy.
[0064] In the above Figure 2 Based on the illustrated embodiment, in an optional embodiment, step S103 is implemented as follows: for each data cluster: determine the mean current value and standard deviation of the current value of at least one data used in the data cluster; determine the difference between the mean current value and the standard deviation parameter as the target current threshold corresponding to the data cluster, where the standard deviation parameter is twice the standard deviation of the current value.
[0065] It should be noted that when the data cluster includes only one piece of usage data, the current value in that piece of usage data is directly determined as the target current threshold. When the data cluster includes multiple pieces of usage data, the target current threshold is determined according to the above implementation method.
[0066] In this embodiment, the mean current value reflects the overall current level of at least one usage data point in the data cluster, while the standard deviation of the current value reflects the dispersion of the current value of at least one usage data point in the data cluster. By determining the difference between the mean current value and the standard deviation as the target current threshold, the determined target current threshold is more accurate and better reflects the usage of the socket.
[0067] In another optional embodiment, step S103 is implemented by: for each data cluster, determining the current value in the data of the center point included in the data cluster as the target current threshold corresponding to the data cluster. Here, the center point data is determined by the clustering algorithm during the clustering process. This center point data can represent the overall situation of the corresponding data cluster, and correspondingly, the current value included in the center point data can represent the overall current value of the corresponding data cluster. This method is faster and more efficient.
[0068] In the above Figure 2Based on the illustrated embodiment, in an optional embodiment, step S104 is implemented by controlling the detection unit to detect whether the socket is in an unloaded state according to the minimum current threshold among the determined target current thresholds within a preset detection time period.
[0069] The preset detection time period is the time period during which the socket is detected to be in an unloaded state. This preset detection time period can be set as needed, for example, from 7:00 to 18:00 every day, or from 17:00 to 24:00 every day. Specifically, the processing unit sends a minimum current threshold to the detection unit. The detection unit deletes the current threshold referenced in the previous detection, stores the minimum current threshold, and performs the detection according to the minimum current threshold in subsequent detections.
[0070] In this implementation, since the status information in the data may be in a working state or an unloaded state, and the current value in the working state is greater than the current value in the unloaded state, the minimum current threshold in the target current threshold corresponding to the two data clusters is closer to the current value in the unloaded state. Therefore, by controlling the detection unit to detect whether the socket is in an unloaded state according to the minimum current threshold, the operation is simple and relatively accurate.
[0071] In another optional embodiment, step S104 is implemented by: determining the working time included in the data of the center point in each data cluster as the target working time corresponding to each data cluster, and using the target working time to detect whether the socket is in an unloaded state; and controlling the detection unit to detect whether the socket is in an unloaded state based on the target current threshold and the target working time corresponding to each data cluster.
[0072] In this embodiment, the data used for the center point is determined by the clustering algorithm during the clustering process. This data can represent the overall situation of the corresponding data cluster. Correspondingly, the working time included in the data used for the center point can represent the overall working time of the corresponding data cluster. By determining the target working time using this working time, the accuracy of the determined target working time is relatively high. This makes it more accurate to detect whether the socket is in an unloaded state based on the target current threshold and the target working time.
[0073] In one optional implementation of this embodiment, the method of controlling the detection unit to detect whether the socket is in an unloaded state based on the target current threshold and target working time corresponding to each data cluster includes: dividing the preset detection time period into two target detection time periods according to the target working time corresponding to each data cluster, and different target working times belonging to different target detection time periods; controlling the detection unit to detect whether the socket is in an unloaded state according to the corresponding target current threshold within the target detection time period.
[0074] The duration ratio of the two target detection time periods can be set as needed, and this embodiment does not limit it. For example, the duration ratio of the two target detection time periods can be 1:1 or 1:2.
[0075] In this implementation, since the target current thresholds corresponding to different target working times may be different, the preset detection time period can be divided according to the two target working times, thereby controlling the detection unit to perform detection according to the corresponding target current threshold during the corresponding target detection time period. This is more in line with the usage of the socket, and thus the detection is more accurate.
[0076] In the above Figure 2 Based on the illustrated embodiment, in an optional embodiment, the processing unit is also communicatively connected to an electronic device, which is the electronic device used by the user corresponding to the socket, such as a mobile phone, computer, or smartwatch. The user corresponding to the socket can be any user using the socket. After acquiring multiple usage data corresponding to the socket, the no-load detection method provided in this application further includes: sending the multiple usage data corresponding to the socket to the electronic device, so that the electronic device displays the multiple usage data corresponding to the socket. The electronic device receives the multiple usage data corresponding to the socket, displays a prompt message, which is used to prompt the user that the usage data corresponding to the socket has been received, and displays the multiple usage data corresponding to the socket in response to receiving a display instruction. The display instruction is triggered by the user and is used to instruct the display of the multiple usage data corresponding to the socket. Optionally, the electronic device uses the matplotlib library to visualize the usage data.
[0077] In this embodiment, through the communication connection between the processing unit and the electronic device, the interaction of multiple usage data of the socket is realized, so that the electronic device can display the multiple usage data so that the user can view the usage status of the socket.
[0078] In the above Figure 2 Based on the illustrated embodiment, in an optional embodiment, the usage data generated by the detection unit changes more and more over time. Accordingly, the no-load detection method provided in this application further includes: when the latest usage data corresponding to the socket is obtained, a clustering algorithm is used to determine the data cluster to which the latest usage data belongs, and the latest usage data is added to the data cluster.
[0079] Each time the detection unit generates a piece of usage data, it sends the usage data to the processing unit. After obtaining the usage data, the processing unit can call a clustering algorithm to determine the data cluster to which the usage data belongs, and then add the usage data to the data cluster to which it belongs.
[0080] In this embodiment, a clustering algorithm is used to update the data clusters as soon as the latest data is obtained, thereby realizing real-time updates of the data clusters.
[0081] In the above Figure 2 Based on the illustrated embodiment, in an optional embodiment, the idle detection method provided by this application further includes: when the number of the latest usage data reaches a preset number, invoking a clustering algorithm to cluster the acquired latest usage data and multiple usage data to obtain two updated data clusters.
[0082] If the number of latest usage data reaches a preset number, indicating that the amount of latest usage data is sufficient, the processing unit can re-cluster the usage data corresponding to the socket. This usage data includes multiple previously acquired usage data sets as well as the latest acquired usage data. After obtaining the two updated data clusters, steps S103-S104 are executed. Alternatively, the processing unit can also directly use a clustering algorithm to cluster the preset number of latest usage data sets to obtain the two updated data clusters.
[0083] In this embodiment, when a sufficient amount of the latest usage data is obtained, clustering is performed again, so that the detection unit can perform detection with a more accurate current threshold, thereby improving the detection accuracy.
[0084] The processing unit in this embodiment can be viewed as an intelligent learning unit, capable of learning the usage patterns of the sockets by analyzing their corresponding usage data, and then automatically adjusting the current threshold based on the learned results. Furthermore, the processing module can continuously learn and optimize its learning results. For example, if the usage data changes, the learning results can be updated with new usage data, and the current threshold can be adjusted accordingly. Optionally, the processing module first uses the pandas library in Python to process the usage data, ensuring it meets requirements such as normalization, then uses the KMeans algorithm from the scikit-learn library to cluster the usage data, and finally uses the numpy library to determine the target current threshold.
[0085] Figure 3 This is a flowchart illustrating an unloaded detection method according to another exemplary embodiment. The execution entity of the unloaded detection method provided in this application is a processing unit in an unloaded detection device. The unloaded detection device also includes a detection unit, and the processing unit is electrically connected to the detection unit. The unloaded detection device is disposed in a socket. Figure 3 As shown, the no-load detection method provided in this embodiment includes the following steps:
[0086] Step S201: Obtain multiple usage data corresponding to the socket.
[0087] Step S202: Invoke the clustering algorithm to cluster multiple data sets to obtain two data clusters, each of which includes at least one data set of usage data.
[0088] Step S203: Determine the mean current value and standard deviation of the current value of at least one used data included in each data cluster.
[0089] Step S204: The difference between the mean current value and the standard deviation parameter corresponding to each data cluster is determined as the target current threshold corresponding to each data cluster. The standard deviation parameter is twice the standard deviation of the current value. The target current threshold is used to detect whether the socket is in an unloaded state.
[0090] In another embodiment, steps S203-S204 can be replaced by: for each data cluster, determining the target current threshold corresponding to the data cluster by using the current value in the data to identify the center point included in the data cluster.
[0091] Step S205: The control detection unit detects whether the socket is in an unloaded state within a preset detection time period, according to the minimum current threshold among the determined target current thresholds.
[0092] In another embodiment, step S205 can be replaced by: determining the working time included in the data of the center point in each data cluster as the target working time corresponding to each data cluster, and using the target working time to detect whether the socket is in an unloaded state; based on the target current threshold and target working time corresponding to each data cluster, controlling the detection unit to detect whether the socket is in an unloaded state.
[0093] The implementation of steps S201-S205 in this embodiment is the same as in the above embodiment, and will not be repeated here.
[0094] Figure 4 This is a schematic diagram of the structure of an unloaded detection device according to an exemplary embodiment, such as... Figure 4 As shown, in this embodiment, the no-load detection device 300 is installed in the socket. The no-load detection device 300 includes a detection unit 301 and a processing unit 302, which are electrically connected.
[0095] The detection unit 301 is used to send the usage data corresponding to the socket to the processing unit 302. The usage data includes the current value, the working status and the timestamp. The current value is obtained by the detection unit 301 detecting the current of the circuit where the socket is located at the time indicated by the timestamp. The status information indicates the status of the socket at the time indicated by the timestamp. The status information is either the working status or the no-load status.
[0096] The processing unit 302 is used to call a clustering algorithm to cluster the acquired multiple usage data to obtain two data clusters, each data cluster including at least one usage data; based on the at least one usage data included in each data cluster, a target current threshold corresponding to each data cluster is determined, the target current threshold is used to detect whether the socket is in an unloaded state; based on the target current threshold corresponding to each data cluster, the detection unit 301 is controlled to detect whether the socket is in an unloaded state.
[0097] The implementation principle and technical effect of the no-load detection device 300 are similar to those of the above-described method embodiments, and will not be described in detail here.
[0098] The no-load detection device 300 operates between the 220V AC mains power and the charger. When the charger is connected to the electronic product, the no-load detection device 300 is activated, outputting 220V to power the charger and enable it to charge the electronic product. The detection unit 301 determines that the socket is in a no-load state when it detects that the current value in the circuit is lower than a current threshold. Optionally, the detection unit 301 obtains the current value through the voltage drop of a sampling resistor connected in series in the circuit.
[0099] Optionally, the no-load detection device 300 further includes an alarm unit electrically connected to the detection unit 301. When the detection unit 301 detects that the socket is in a no-load state, it sends a no-load signal to the alarm unit, which then sounds an alarm upon receiving the signal. Optionally, the alarm unit includes at least one of a buzzer and an LED indicator. Accordingly, taking an alarm unit including both a buzzer and an LED indicator as an example, the detection unit 301 is electrically connected to both the buzzer and the LED indicator. If the alarm unit includes a buzzer, it outputs a preset audio signal upon receiving the no-load signal. If the alarm unit includes an LED indicator, it controls the LED indicator to flash or remain lit upon receiving the no-load signal.
[0100] Optionally, the no-load detection device 300 also includes a fault unit, which is electrically connected to the detection unit 301, the processing unit 302, and the alarm unit. The detection unit 301 sends usage data to the fault unit. After receiving the usage data, the fault unit determines whether the usage data meets the conditions. If it does not meet the conditions, it sends fault signals to the alarm unit and the processing unit 302 respectively. Accordingly, the alarm unit sounds an alarm upon receiving a fault signal. Upon receiving a fault signal, the processing unit 302 controls the detection unit 301 to stop working. The conditions can be a current value greater than a preset value, or other conditions. The preset value can be set as needed.
[0101] Optionally, the no-load detection device 300 also includes a disconnection unit electrically connected to the detection unit 301. When the detection unit 301 detects that the socket is in a no-load state, it sends a no-load signal to the disconnection unit. Upon receiving this no-load signal, the disconnection unit controls the circuit to disconnect. Accordingly, the disconnection unit includes a relay, which achieves circuit disconnection through relay self-locking protection. After the relay self-locks, all downstream electrical appliances are de-energized, and the relay itself does not violate the no-load requirement. The relay can be a 5A rated current relay. To extend the relay contact life, capacitor arc suppression protection can be added.
[0102] Figure 5 This is a schematic diagram of an unloaded detection according to an exemplary embodiment, such as... Figure 5 As shown, the 220V AC mains power supply provides power to the detection unit and the load. The detection unit receives the current and checks if the current value is less than the target current threshold. If the current value is lower than the target current threshold, it sends a no-load signal to the alarm unit and the disconnection unit. The alarm unit receives the no-load signal and, if the alarm unit includes a buzzer and LED indicator, triggers an audible and visual alarm. The disconnection unit receives the no-load signal and triggers automatic power-off. The processing unit receives usage data and learns the socket's usage status based on this data. Then, it automatically adjusts the target current threshold based on the learned usage status. If the fault unit detects a fault in the no-load detection device, it triggers the alarm unit to issue an audible and visual alarm and triggers the processing unit to control the detection unit to stop working, thus protecting the socket. For ease of illustration, Figure 5 In this context, "threshold" represents the target current threshold.
[0103] The no-load detection device provided in this embodiment has a simple structure, is easy to use, and has a high degree of intelligence. It improves electrical safety and has energy-saving benefits without changing users' existing electricity usage habits. Furthermore, it is suitable for office buildings, factories, restaurants, and homes, and has broad application prospects, enabling it to achieve significant benefits.
[0104] This application also provides a socket. Figure 6 This is a schematic diagram of the structure of a socket according to an exemplary embodiment, such as... Figure 6 As shown, the socket 400 includes a socket body 401, a power cord 402, and a no-load detection device 300;
[0105] The socket body 401 is connected to the mains power through the power cord 402. The no-load detection device 300 is set between the power cord 402 and the load to detect whether the socket 400 is in a no-load state.
[0106] It should be noted that the no-load detection device 300 is located inside the socket; this is for illustrative purposes only. Figure 6 An example is given with the no-load detection device 300 located externally.
[0107] The implementation principle and technical effects of the no-load detection device 300 are described in the above embodiments and will not be repeated here.
[0108] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily essential to this application.
[0109] It should be further noted that although the steps in the flowchart are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowchart may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0110] It should be understood that the above-described device embodiments are merely illustrative, and the device of this application can also be implemented in other ways. For example, the division of units / modules in the above embodiments is only a logical functional division, and there may be other division methods in actual implementation. For example, multiple units, modules, or components may be combined, or integrated into another system, or some features may be ignored or not executed.
[0111] Furthermore, unless otherwise specified, the functional units / modules in the various embodiments of this application can be integrated into one unit / module, or each unit / module can exist physically separately, or two or more units / modules can be integrated together. The integrated units / modules described above can be implemented in hardware or as software program modules.
[0112] When an integrated unit / module is implemented in hardware, the hardware can be digital circuits, analog circuits, etc. The physical implementation of the hardware structure includes, but is not limited to, transistors, memristors, etc. Unless otherwise specified, the processing unit can be any suitable hardware processor, such as a Central Processing Unit (CPU), Graphics Processing Unit (GPU), Application Specific Integrated Circuit (ASIC), Digital Signal Processor (DSP), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), controller, microcontroller, microprocessor, or other electronic component.
[0113] If the integrated unit / module is implemented as a software program module and sold or used as an independent product, it can be stored in a computer-readable storage device. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application.
[0114] In the above embodiments, the descriptions of each embodiment have their own emphasis. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments. The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as the combination of these technical features does not contradict each other, it should be considered within the scope of this specification.
[0115] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0116] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A method for detecting unloaded loads, characterized in that, A processing unit is used in an unloaded detection device, the unloaded detection device further includes a detection unit, the processing unit is electrically connected to the detection unit, and the unloaded detection device is disposed in a socket; the method includes: The system acquires multiple usage data corresponding to the socket. The usage data includes the current value, status information, and timestamp corresponding to the socket. The current value is obtained by the detection unit detecting the current of the circuit where the socket is located at the time indicated by the timestamp. The status information indicates the status of the socket at the time indicated by the timestamp, and the status information is either a working state or an unloaded state. A clustering algorithm is invoked to cluster the multiple usage data to obtain two data clusters, each of which includes at least one usage data. Based on the at least one usage data included in each of the data clusters, a target current threshold corresponding to each of the data clusters is determined, and the target current threshold is used to detect whether the socket is in an unloaded state. Based on the target current threshold corresponding to each of the data clusters, the detection unit is controlled to detect whether the socket is in an unloaded state. The step of determining the target current threshold corresponding to each data cluster based on the at least one usage data included in each data cluster includes: For each of the aforementioned data clusters: If the data cluster includes a usage data, the current value in the usage data is determined as the target current threshold. Alternatively, if the data cluster includes multiple usage data, determine the mean current value and the standard deviation of the current value of the multiple usage data included in the data cluster; determine the difference between the mean current value and the standard deviation parameter as the target current threshold corresponding to the data cluster, wherein the standard deviation parameter is twice the standard deviation of the current value.
2. The method according to claim 1, characterized in that, The step of controlling the detection unit to detect whether the socket is in an unloaded state based on the target current threshold corresponding to each of the data clusters includes: The detection unit is controlled to detect whether the socket is in an unloaded state within a preset detection time period, according to the minimum current threshold among the determined target current thresholds.
3. The method according to claim 1, characterized in that, The step of controlling the detection unit to detect whether the socket is in an unloaded state based on the target current threshold corresponding to each of the data clusters includes: The working time included in the data of the center point in each data cluster is determined as the target working time corresponding to each data cluster. The target working time is used to detect whether the socket is in an unloaded state. Based on the target current threshold and target operating time corresponding to each of the data clusters, the detection unit is controlled to detect whether the socket is in an unloaded state.
4. The method according to claim 3, characterized in that, The step of controlling the detection unit to detect whether the socket is in an unloaded state based on the target current threshold and target operating time corresponding to each of the data clusters includes: According to the target working time corresponding to each data cluster, the preset detection time period is divided into two target detection time periods, and different target working times belong to different target detection time periods; The detection unit is controlled to detect whether the socket is in an unloaded state according to the corresponding target current threshold during the target detection time period.
5. The method according to claim 1, characterized in that, The processing unit is also communicatively connected to an electronic device. After acquiring multiple usage data corresponding to the socket, the method further includes: Send multiple usage data corresponding to the socket to the electronic device so that the electronic device can display the multiple usage data corresponding to the socket.
6. The method according to claim 1, characterized in that, The method further includes: Once the latest usage data corresponding to the socket is obtained, the clustering algorithm is used to determine the data cluster to which the latest usage data belongs, and the latest usage data is added to the data cluster.
7. The method according to claim 6, characterized in that, The method further includes: When the number of the latest usage data reaches a preset number, the clustering algorithm is invoked to cluster the acquired latest usage data and the multiple usage data to obtain two updated data clusters.
8. An unloaded detection device, characterized in that, The no-load detection device is installed in the socket, and the no-load detection device includes a processing unit and a detection unit, which are electrically connected to the processing unit. The detection unit is used to send the usage data corresponding to the socket to the processing unit. The usage data includes current value, status information and timestamp. The current value is obtained by the detection unit detecting the current of the circuit where the socket is located at the time indicated by the timestamp. The status information indicates the status of the socket at the time indicated by the timestamp. The status information is either working status or no-load status. The processing unit is configured to invoke a clustering algorithm to cluster the acquired multiple usage data to obtain two data clusters, each data cluster including at least one usage data; based on the at least one usage data included in each data cluster, determine a target current threshold corresponding to each data cluster, the target current threshold being used to detect whether the socket is in an unloaded state; and based on the target current threshold corresponding to each data cluster, control the detection unit to detect whether the socket is in an unloaded state. The step of determining the target current threshold corresponding to each data cluster based on the at least one usage data included in each data cluster includes: for each data cluster: when the data cluster includes one usage data, determining the current value in the usage data as the target current threshold; or, when the data cluster includes multiple usage data, determining the mean current value and the standard deviation of the current value of the multiple usage data included in the data cluster; and determining the difference between the mean current value and the standard deviation parameter as the target current threshold corresponding to the data cluster, wherein the standard deviation parameter is twice the standard deviation of the current value.
9. A socket, characterized in that, The socket includes a socket body, a power cord, and an unloaded detection device as described in claim 8; The socket body is connected to the mains power through the power cord, and the no-load detection device is set between the power cord and the load to detect whether the socket is in a no-load state.
Citation Information
Patent Citations
Control system of energy saving socket, energy saving socket and control method
CN103116296A
Intelligent socket grouping method and device
CN108153640A