[go: up one dir, main page]

CN104932335B - Control method and device for jack working state - Google Patents

Control method and device for jack working state Download PDF

Info

Publication number
CN104932335B
CN104932335B CN201510252739.6A CN201510252739A CN104932335B CN 104932335 B CN104932335 B CN 104932335B CN 201510252739 A CN201510252739 A CN 201510252739A CN 104932335 B CN104932335 B CN 104932335B
Authority
CN
China
Prior art keywords
amplitude
jack
electrical
signal
threshold
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201510252739.6A
Other languages
Chinese (zh)
Other versions
CN104932335A (en
Inventor
蹇林旎
尉进
李晓阳
董斌
彭国彬
闵思怡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Southern University of Science and Technology
Original Assignee
Southern University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Southern University of Science and Technology filed Critical Southern University of Science and Technology
Priority to CN201510252739.6A priority Critical patent/CN104932335B/en
Publication of CN104932335A publication Critical patent/CN104932335A/en
Application granted granted Critical
Publication of CN104932335B publication Critical patent/CN104932335B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25341Single chip programmable controller

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Supply And Distribution Of Alternating Current (AREA)
  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)

Abstract

本发明提供了一种插孔工作状态的控制方法及装置。该方法包括:获取用电器所在的受控插孔的当前电信号的幅值;判断该当前电信号的幅值是否大于预设的插孔阈值;若否,则控制该用电器所在的受控插孔断电。本发明实施例采用获取当前电信号的幅值,并与预设的插孔阈值进行比较,进而判断用电器的工作状态,当用电器处于关机状态时,自动将用电器所在插孔断电,无需手动切断电源,解决了用电器在关机状态下因未切掉总电源而耗电的问题,同时还提高了安全性。

The invention provides a method and device for controlling the working state of a socket. The method includes: obtaining the amplitude of the current electrical signal of the controlled jack where the electrical appliance is located; judging whether the amplitude of the current electrical signal is greater than the preset threshold of the jack; if not, controlling the controlled socket where the electrical appliance is located The socket is powered off. The embodiment of the present invention obtains the amplitude of the current electrical signal and compares it with the preset jack threshold, and then judges the working state of the electrical appliance. There is no need to manually cut off the power supply, which solves the problem of power consumption due to the failure to cut off the main power supply of the electrical appliance in the shutdown state, and also improves safety.

Description

一种插孔工作状态的控制方法及装置A method and device for controlling the working state of a jack

技术领域technical field

本发明涉及日常生活用品技术领域,具体而言,涉及一种插孔工作状态的控制方法及装置。The invention relates to the technical field of daily necessities, in particular to a method and device for controlling the working state of a socket.

背景技术Background technique

随着科学技术的发展,人们生活水平的提高,各种智能化设备应运而生,家用电器的种类很多,尤其是现在的科学技术迅速发展,很多家用电器都是智能化的,在一定程度上给人们带来了便利。With the development of science and technology and the improvement of people's living standards, various intelligent devices have emerged as the times require. There are many types of household appliances, especially with the rapid development of science and technology, many household appliances are intelligent. Bring convenience to people.

然而,一方面,目前的电脑、电饭锅、电冰箱、洗衣机等,只按了关闭按钮或使用遥控器关机是不能完全关闭电源的,电器不使用时不拔插头的情况下,即耗电又对用电器有影响,并且存在安全隐患,要使它们完全脱离电源,就必须把这些用电器的插头从插座上拔下来,这给人们生活带来了一定的不便。However, on the one hand, current computers, electric rice cookers, refrigerators, washing machines, etc., can not completely turn off the power supply only by pressing the off button or using the remote control to turn off the power supply. It has an impact on the electrical appliances again, and there is a potential safety hazard. To make them completely break away from the power supply, the plugs of these electrical appliances must be pulled out from the socket, which brings certain inconvenience to people's lives.

另一方面,现有技术中不具备状态查询和远程控制的功能,当主人在家里的一个房间希望对其他房间的开关进行控制或对其开关状态进行查询时,依靠现有的开关系统不能实现。On the other hand, the existing technology does not have the functions of status query and remote control. When the owner wants to control the switches of other rooms or query the switch status in one room of the home, it cannot be realized by relying on the existing switch system. .

通过上述分析可知,现有技术中对用电器的控制方式简单且单一,无法自动控制用电器所在线路的通断,因此,需要提供一种自动控制用电器所在插孔的通断的方法。From the above analysis, it can be seen that the control method of the electrical appliances in the prior art is simple and single, and cannot automatically control the on-off of the circuit where the appliance is located. Therefore, it is necessary to provide a method for automatically controlling the on-off of the socket where the appliance is located.

发明内容Contents of the invention

有鉴于此,本发明实施例的目的在于提供一种插孔工作状态的方法及装置,以解决上述问题。In view of this, the purpose of the embodiments of the present invention is to provide a method and device for working state of a socket, so as to solve the above-mentioned problems.

本发明实施例提供了一种插孔工作状态的控制方法,包括:An embodiment of the present invention provides a method for controlling the working state of a jack, including:

获取用电器所在的受控插孔的当前电信号的幅值;Obtain the amplitude of the current electrical signal of the controlled socket where the electrical appliance is located;

判断所述当前电信号的幅值是否大于预设的插孔阈值;judging whether the amplitude of the current electrical signal is greater than a preset jack threshold;

若否,则控制所述用电器所在的受控插孔断电。If not, control the controlled socket where the electric appliance is located to be powered off.

优选的,所述插孔阈值是通过如下步骤获得的:Preferably, the jack threshold is obtained through the following steps:

分别测量两次所述用电器处于关机状态时所在的受控插孔的电信号的幅值,以确定第一幅值和第二幅值;respectively measuring twice the amplitude of the electrical signal of the controlled jack where the electrical appliance is in the shutdown state, to determine the first amplitude and the second amplitude;

判断所述第一幅值与所述第二幅值的偏差比例是否小于预设的比例阈值,judging whether the deviation ratio between the first amplitude value and the second amplitude value is smaller than a preset ratio threshold,

若是,则将所述第一幅值与所述第二幅值的平均值作为插孔阈值;If yes, then use the average value of the first amplitude value and the second amplitude value as the jack threshold;

若否,则将所述第二幅值作为插孔阈值。If not, the second magnitude is used as the jack threshold.

优选的,该方法还包括:Preferably, the method also includes:

若获取到无线开启信号或声控开启信号,则执行步骤所述获取用电器所在的受控插孔电信号的幅值。If the wireless turn-on signal or the voice-activated turn-on signal is obtained, the steps described in the step are performed to obtain the amplitude of the electrical signal of the controlled socket where the electrical appliance is located.

优选的,该方法还包括:Preferably, the method also includes:

若接受到通电信号指令,则控制所述通电信号指令所对应的用电器所在的插孔通电,所述通电信号指令包括无线信号指令或按钮开关发出的信号指令;If the energization signal instruction is received, the socket where the electrical appliance corresponding to the energization signal instruction is controlled is energized, and the energization signal instruction includes a wireless signal instruction or a signal instruction sent by a button switch;

若接收到断电信号指令,则控制断所述电信号指令所对应的用电器所在的插孔断电,所述断电信号指令包括无线信号指令或按钮开关发出的信号指令。If a power-off signal command is received, control the power-off of the socket where the electrical appliance corresponding to the electric signal command is located, and the power-off signal command includes a wireless signal command or a signal command sent by a button switch.

优选的,该方法还包括:Preferably, the method also includes:

每隔预定时间将所述当前电信号的幅值通过无线信号发送至移动终端,sending the amplitude of the current electrical signal to the mobile terminal via a wireless signal every predetermined time,

或接收所述移动终端发送的请求指令后,向所述移动终端发送所述当前电信号的幅值。Or after receiving the request instruction sent by the mobile terminal, send the amplitude of the current electrical signal to the mobile terminal.

优选的,在步骤所述控制所述用电器所在的受控插孔断电之前还包括:Preferably, before controlling the power-off of the controlled socket where the electrical appliance is located in the step, the method further includes:

判断所述用电器处于关机状态的时间是否大于预设的时间阈值,judging whether the time that the electrical appliance is in the shutdown state is greater than a preset time threshold,

若是,则执行步骤所述控制所述用电器所在的受控插孔断电。If yes, perform the steps described in the step of controlling the controlled socket where the electrical appliance is located to be powered off.

优选的,该方法还包括:Preferably, the method also includes:

判断所述当前电信号的幅值是否大于预设的最大额定值,judging whether the amplitude of the current electrical signal is greater than a preset maximum rated value,

若是,则控制所述用电器所在的插孔断电并发送异常警报信息。If so, control the socket where the electrical appliance is located to be powered off and send abnormal alarm information.

优选的,该方法还包括:Preferably, the method also includes:

若检测到所有受控插孔都断电,则自动将总电路断电。If it is detected that all controlled sockets are powered off, the total circuit will be automatically powered off.

优选的,该方法还包括:Preferably, the method also includes:

判断所述用电器所在插孔的在预定时间内功耗是否大于预设的可用电阈值,judging whether the power consumption of the socket where the electrical appliance is located within a predetermined time is greater than a preset available power threshold,

若是,则控制所述用电器所在的插孔断电。If yes, then control the power-off of the jack where the electrical appliance is located.

本发明实施例还提供了一种控制用电器所在插孔工作状态的控制装置,该装置包括:The embodiment of the present invention also provides a control device for controlling the working state of the socket where the electrical appliance is located, and the device includes:

获取模块,用于获取用电器所在的受控插孔的当前电信号的幅值;An acquisition module, configured to acquire the amplitude of the current electrical signal of the controlled socket where the electrical appliance is located;

判断模块,用于判断所述当前电信号的幅值是否大于预设的插孔阈值;A judging module, configured to judge whether the amplitude of the current electrical signal is greater than a preset jack threshold;

控制模块,用于当所述当前电信号小于等于预设的插孔阈值时,控制所述用电器所在的受控插孔断电。A control module, configured to control the controlled socket where the electric appliance is located to be powered off when the current electrical signal is less than or equal to a preset socket threshold.

本发明实施例提供的一种插孔工作状态的控制方法。通过获取用电器所在的受控插孔的当前电信号的幅值;判断该当前电信号的幅值是否大于预设的插孔阈值;若否,则控制该用电器所在的受控插孔断电。本发明实施例采用获取当前电信号的幅值,并与预设的插孔阈值进行比较,进而判断用电器的工作状态,当用电器处于关机状态时,自动将用电器所在插孔断电,无需手动切断总电源,解决了用电器在关机状态下因未切掉总电源而耗电的问题,同时还提高了安全性。An embodiment of the present invention provides a method for controlling the working state of a socket. By obtaining the amplitude of the current electrical signal of the controlled jack where the electrical appliance is located; judging whether the amplitude of the current electrical signal is greater than the preset jack threshold; if not, then controlling the controlled jack where the electrical appliance is located to shut off Electricity. The embodiment of the present invention obtains the amplitude of the current electrical signal and compares it with the preset jack threshold to judge the working status of the electrical appliance. There is no need to manually cut off the main power supply, which solves the problem of power consumption due to the fact that the main power supply is not cut off when the electrical appliance is turned off, and also improves safety.

为使本发明的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present invention more comprehensible, preferred embodiments will be described in detail below together with the accompanying drawings.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention, and thus It should be regarded as a limitation on the scope, and those skilled in the art can also obtain other related drawings based on these drawings without creative work.

图1示出了本发明实施例所提供的一种插孔工作状态的控制方法的流程示意图;FIG. 1 shows a schematic flowchart of a method for controlling the working state of a jack provided by an embodiment of the present invention;

图2示出了本发明实施例所提供的一种插孔工作状态的控制方法的另一流程示意图;Fig. 2 shows another schematic flowchart of a method for controlling the working state of a socket provided by an embodiment of the present invention;

图3示出了本发明实施例所提供的一种插孔工作状态的控制装置的结构示意图。Fig. 3 shows a schematic structural diagram of a device for controlling the working state of a socket provided by an embodiment of the present invention.

具体实施方式detailed description

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本发明实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本发明的实施例的详细描述并非旨在限制要求保护的本发明的范围,而是仅仅表示本发明的选定实施例。基于本发明的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is a part of embodiments of the present invention, but not all embodiments. The components of the embodiments of the invention generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations. Accordingly, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of the present invention.

为便于对本实施例进行理解,首先对本发明实施例所公开的一种插孔工作状态的控制方法进行详细介绍,该方法主要为自动检测用电器所在插孔的电信号,判断用电器的当前工作状态,并通过生成相应的控制信号,控制用电器所在插孔断电。In order to facilitate the understanding of this embodiment, a method for controlling the working state of the socket disclosed in the embodiment of the present invention is firstly introduced in detail. state, and by generating corresponding control signals, control the power-off of the socket where the electrical appliance is located.

考虑到在未拔掉用电器总电源的情况下,用电器处于待机状态,由于部分器件仍在运转而耗电的现象,同时还存在一定的安全隐患,然而,需要手动拔掉电源或断开总开关,给人们的生活带来一定不便。基于此,本发明实施例提供了一种插孔工作状态的控制方法,下面通过实施例进行描述。Considering that when the main power supply of the electrical appliance is not unplugged, the electrical appliance is in a standby state, and some devices are still running and consume power, and there are certain safety hazards. However, it is necessary to manually unplug the power supply or disconnect the The main switch brings certain inconvenience to people's life. Based on this, an embodiment of the present invention provides a method for controlling the working state of a jack, which will be described below through an embodiment.

如图1所述,该方法包括步骤S101-S103,具体如下:As shown in Figure 1, the method includes steps S101-S103, specifically as follows:

步骤S101:获取用电器所在的受控插孔的当前电信号的幅值;Step S101: Obtain the amplitude of the current electrical signal of the controlled socket where the electrical appliance is located;

首先,打开总开关,单片机向常开型继电器发出通电信号,以控制相应的受控插孔通电,然后通过与所述受控插孔连接的电压电流传感器采集所述受控插孔的电信号,并将此电信号发送至A/D转换器,该A/D转换器再将所述电信号转化为数字信号后,发送至单片机进行计算处理后,即可得到当前的电信号幅值。First, turn on the main switch, and the single-chip microcomputer sends a power-on signal to the normally open relay to control the power-on of the corresponding controlled jack, and then collect the electrical signal of the controlled jack through the voltage and current sensor connected to the controlled jack , and send the electric signal to the A/D converter, and the A/D converter converts the electric signal into a digital signal, and sends it to the single-chip microcomputer for calculation and processing to obtain the current electric signal amplitude.

具体的,该当前的电信号幅值包括电压、电流、功率、用电量等其中的至少一个,一般选用功率为当前的电信号幅值。为了便于用户通过所述电信号幅值对用电器进行直观的监控,可以将所述电信号幅值在与所述单片机连接的显示器上显示。Specifically, the current electrical signal amplitude includes at least one of voltage, current, power, power consumption, etc., and power is generally selected as the current electrical signal amplitude. In order to facilitate users to intuitively monitor electrical appliances through the amplitude of the electrical signal, the amplitude of the electrical signal can be displayed on a display connected to the single-chip microcomputer.

需要说明的是,所述单片机内预先存储有处理程序,在本发明提供的一个实施例中,所述处理程序包括各参数计算与判断程序,数据收发子程序,计时器子程序与显示屏子程序等。It should be noted that a processing program is pre-stored in the single-chip microcomputer. In one embodiment provided by the present invention, the processing program includes various parameter calculation and judgment programs, data sending and receiving subroutines, timer subroutines and display subroutines. program etc.

在本发明提供的一个具体实施例中,上述单片机可以选择9S12XE系列单片机,选择可实现上述功能的单片机即可。In a specific embodiment provided by the present invention, the above-mentioned single-chip microcomputer can be a 9S12XE series single-chip microcomputer, and only a single-chip microcomputer that can realize the above-mentioned functions can be selected.

需要说明的是,在上述实施例中仅进行了示例性的描述,在现有技术中仍有多种变更方式也可以实现本步骤,在此不再赘述,其均在本申请的保护范围之内。It should be noted that, in the above-mentioned embodiments, only exemplary descriptions are made, and there are still many ways of modification in the prior art that can also realize this step, which will not be repeated here, and all of them are within the scope of protection of the present application Inside.

步骤S102:判断所述当前电信号的幅值是否大于预设的插孔阈值;Step S102: judging whether the amplitude of the current electrical signal is greater than a preset jack threshold;

通过步骤S101,已获得用电器所在的受控插孔的当前电信号的幅值后,接下来,需要判断该当前电信号的幅值是否大于预设的插孔阈值。Through step S101, after obtaining the amplitude of the current electrical signal of the controlled jack where the electrical appliance is located, next, it is necessary to determine whether the amplitude of the current electrical signal is greater than the preset threshold of the jack.

一般而言,插孔阈值选择为功率参数,因此,此时上述当前电信号的幅值也选择功率参数。Generally speaking, the jack threshold is selected as a power parameter, therefore, at this time, the amplitude of the above-mentioned current electrical signal is also selected as a power parameter.

需要说明的是,本方法在使用时需要设定预设的插孔阈值,同时本方法根据实际需求适用于用电器关机、待机等不同的工作状态,以关机状态为例,所述预设的插孔阈值是通过如下方式获得的:It should be noted that this method needs to set a preset jack threshold when it is used. At the same time, this method is applicable to different working states such as power-off and standby of electrical appliances according to actual needs. Taking the power-off state as an example, the preset The jack threshold is obtained as follows:

分别测量两次所述用电器处于关机状态时所在的受控插孔的电信号的幅值,以确定第一幅值和第二幅值;respectively measuring twice the amplitude of the electrical signal of the controlled jack where the electrical appliance is in the shutdown state, to determine the first amplitude and the second amplitude;

判断所述第一幅值与所述第二幅值的偏差比例是否小于预设的比例阈值,judging whether the deviation ratio between the first amplitude value and the second amplitude value is smaller than a preset ratio threshold,

若是,则将所述第一幅值与所述第二幅值的平均值作为插孔阈值;If yes, then use the average value of the first amplitude value and the second amplitude value as the jack threshold;

若否,则将所述第二幅值作为插孔阈值。If not, the second magnitude is used as the jack threshold.

其中,所述第一幅值是在用电器的插头插入所述受控插孔后,所述用电器尚未开机时测量的所述受控插孔的电信号的幅值;Wherein, the first amplitude is the amplitude of the electrical signal of the controlled jack measured when the electrical appliance is not turned on after the plug of the electrical appliance is inserted into the controlled jack;

所述第二幅值是在所述用电器开机再关机后,测量的所述受控插孔的电信号的幅值;The second amplitude is the amplitude of the electrical signal of the controlled jack measured after the electrical appliance is turned on and then turned off;

之所以分两次测量所述受控插孔的电信号的幅值,是由于有些用电器关机后的关机功率和启动前的关机功率差很多,比如某些元件在关机后仍耗电,而开启前没有耗电,导致两次关机功率存在较大的偏差,由于需要确定的是由正常工作变为关机状态的关机功率,而第一幅值是只给用电器供电但未开机的关机功率,基于此,需选择第二幅值作为插孔阈值,以进一步的提高插孔阈值准确度。The reason why the amplitude of the electrical signal of the controlled jack is measured twice is that the shutdown power of some electrical appliances after shutdown is much different from the shutdown power before startup. For example, some components still consume electricity after shutdown, but There is no power consumption before turning on, resulting in a large deviation in the power of the two shutdowns, because it is necessary to determine the shutdown power from normal operation to shutdown, and the first amplitude is the shutdown power that only supplies power to electrical appliances but is not turned on , based on this, the second amplitude needs to be selected as the jack threshold to further improve the jack threshold accuracy.

需要说明的是,所述第一幅值与所述第二幅值的偏差比例为第一幅值与第二幅值的差值的绝对值再除以第一幅值所得到的比例,之所以此处阈值选择以比例的形式,是考虑到用电器可能为多种不同的类型,而不同用电器的关机功率不同,因此,允许两次测量结果的差值也略有不同,在以所述偏差比例进行比较的情况下,当更换用电器时,该预设的比例阈值不需要重新设定。It should be noted that the deviation ratio between the first amplitude and the second amplitude is the ratio obtained by dividing the absolute value of the difference between the first amplitude and the second amplitude by the first amplitude, where Therefore, the threshold is selected in the form of ratio here, considering that there may be many different types of electrical appliances, and the shutdown power of different electrical appliances is different, so the difference between the two measurement results is allowed to be slightly different. In the case of comparing with the above-mentioned deviation ratio, when the electrical appliance is replaced, the preset ratio threshold does not need to be reset.

采用上述方法确定插孔阈值,提高了插孔阈值的准确度,下面以一个具体实例进行详细说明。The jack threshold is determined by the above method, which improves the accuracy of the jack threshold. A specific example will be used to describe in detail below.

具体的,确定插孔阈值方法的具体如下:Specifically, the method for determining the jack threshold is as follows:

首先,选择设置指令,该设置指令可以是移动终端发出的,也可以是在控制面板上选择的,单片机接收该设置指令后,通过显示屏或移动终端提示进入插孔阈值设置状态,进入确定插孔阈值程序,提示用户将待确定插孔阈值的插孔上的用电器设置为关机状态,自动检测该插孔的电路状态,并计算此时的关机功率即第一幅值。First, select the setting command, which can be sent by the mobile terminal or selected on the control panel. After receiving the setting command, the single-chip microcomputer will prompt to enter the jack threshold setting state through the display screen or the mobile terminal, and enter the confirmation plug-in state. The hole threshold value program prompts the user to set the electrical appliance on the jack whose jack threshold value is to be determined to the shutdown state, automatically detects the circuit state of the jack, and calculates the shutdown power at this time, that is, the first amplitude.

具体的,上述第一幅值具体的确定方法为:单片机等待15秒后,电压电流检测模块开始检测该插孔电路状态,通过计算100秒内有效测量功率(50个到150个之间)的平均值确定关机功率,其中,在计算过程中,将与相邻十个测量结果的平均值间的误差大于30%的数据视为无效数据,舍弃该无效数据,根据上述可知,采用多次采集关机功率并将异常数据去除的方式确定关机功率即第一幅值,提高了数据的精度。Specifically, the specific method for determining the above-mentioned first amplitude value is: after the single-chip microcomputer waits for 15 seconds, the voltage and current detection module starts to detect the state of the jack circuit, and calculates the effective measurement power (between 50 and 150) within 100 seconds. The average value determines the shutdown power, wherein, in the calculation process, the data with an error greater than 30% from the average value of the adjacent ten measurement results is regarded as invalid data, and the invalid data is discarded. According to the above, multiple acquisitions are used The method of shutting down the power and removing the abnormal data determines the shutting down power, which is the first amplitude, which improves the accuracy of the data.

然后,提示用户将待确定插孔阈值的插孔上的用电器设置为开机状态,自动检测该插孔的电路状态,并计算此时的开机功率。Then, the user is prompted to set the electrical appliance on the jack whose jack threshold value is to be determined to the power-on state, automatically detects the circuit state of the jack, and calculates the power-on power at this time.

具体的,上述开机功率具体的确定方法为:单片机等待30秒后,电压电流检测模块开始检测该插孔电路状态,通过计算3分钟内测量功率(50个到150个之间)的平均值确定用电器的开机功率。Specifically, the specific method for determining the above power-on power is: after the single-chip microcomputer waits for 30 seconds, the voltage and current detection module starts to detect the state of the jack circuit, and determines by calculating the average value of the measured power (between 50 and 150) within 3 minutes. The starting power of the electrical appliance.

最后,提示用户将待确定插孔阈值的插孔上的用电器再次设置为关机状态,自动检测该插孔的电路状态,并计算此时的关机功率即第二幅值;Finally, the user is prompted to set the electrical appliance on the jack whose threshold value is to be determined to the shutdown state again, automatically detects the circuit status of the jack, and calculates the shutdown power at this time, that is, the second amplitude;

具体的,上述第二幅值具体的确定方法为:单片机等待一分钟后,电压电流检测模块开始检测该插孔电路状态,通过计算100秒内有效测量功率(50个到150个之间)的平均值确定关机功率,其中,在计算过程中,将与相邻十个测量结果的平均值间的误差大于30%的数据视为无效数据,舍弃该无效数据,根据上述可知,采用多次采集关机功率并将异常数据去除的方式确定关机功率即第二幅值,提高了数据的精度。Specifically, the specific method for determining the above-mentioned second amplitude value is: after the single-chip microcomputer waits for one minute, the voltage and current detection module starts to detect the state of the jack circuit, and calculates the effective measured power (between 50 and 150) within 100 seconds. The average value determines the shutdown power, wherein, in the calculation process, the data with an error greater than 30% from the average value of the adjacent ten measurement results is regarded as invalid data, and the invalid data is discarded. According to the above, multiple acquisitions are used The method of shutting down the power and removing the abnormal data determines the shutting down power, that is, the second amplitude, which improves the accuracy of the data.

比较上述第一幅值与第二幅值偏差比例与预设的比例阈值间的关系,进而确定插孔阈值,将该插孔阈值存储在相应的存储单元。Comparing the relationship between the deviation ratio of the first amplitude value and the second amplitude value and the preset ratio threshold value, and then determining the jack threshold value, and storing the jack threshold value in a corresponding storage unit.

具体的,以预设比例阈值为5%为例,当偏差阈值小于5%时,说明两次测量的功率偏差较小,取第一幅值与第二幅值的平均值作为插孔阈值;当偏差阈值大于5%时,说明两次测量的功率偏差较大,可能由于有些用电器关机后的关机功率和启动前的关机功率差很多,比如某些元件在关机后仍耗电,而开启前没有耗电,导致两次关机功率存在较大的偏差,由于需要确定的是由正常工作变为关机状态的关机功率,而第一幅值是只给用电器供电但未开机的关机功率,基于此,需选择第二幅值作为插孔阈值,以进一步的提高插孔阈值准确度。Specifically, taking the preset ratio threshold of 5% as an example, when the deviation threshold is less than 5%, it means that the power deviation between the two measurements is small, and the average value of the first amplitude and the second amplitude is taken as the jack threshold; When the deviation threshold is greater than 5%, it means that the power deviation between the two measurements is large, which may be due to the difference between the shutdown power of some electrical appliances after shutdown and the shutdown power before startup. There is no power consumption before, resulting in a large deviation in the power of the two shutdowns. Since it is necessary to determine the shutdown power that changes from normal operation to the shutdown state, and the first amplitude is the shutdown power that only supplies power to electrical appliances but is not turned on. Based on this, it is necessary to select the second amplitude value as the jack threshold to further improve the accuracy of the jack threshold.

需要说明的是,本发明实施例中的方法可通过单片机程序的编写或开发多线程同时工作程序,控制各插孔的程序同时单独运行而互不干扰,实现多插孔单独控制,需要分别确定各个用电器所在插孔的插孔阈值,可以采取同样的确定方法,与现有的只能预先对某种特定的用电器设定插孔阈值相比,该方法提高了插孔阈值的准确度,同时,当更换了插孔上的用电器时,考虑到不同用电器的关机功率不同,用户选择再次进入设置状态后,将自动检测新用电器的插孔阈值,并将此次结果作为预定的插孔阈值。It should be noted that, the method in the embodiment of the present invention can control the programs of each socket to run independently at the same time without interfering with each other through the writing of the single-chip microcomputer program or the development of a multi-threaded simultaneous working program, so as to realize the independent control of multiple sockets, which need to be determined separately The jack threshold of each electrical appliance can be determined in the same way. Compared with the existing method that can only pre-set the jack threshold for a specific electrical appliance, this method improves the accuracy of the jack threshold , at the same time, when the electrical appliance on the socket is replaced, considering that the shutdown power of different electrical appliances is different, after the user chooses to enter the setting state again, the socket threshold value of the new electrical appliance will be automatically detected, and the result will be used as the preset jack threshold.

另外,确定插孔阈值时,根据用电器需要自动断电的工作状态去确定,例如电脑对应关机阈值,而遥控电视、空调等对应待机阈值即使用遥控器关机后的功率,这样通过待机阈值的设定可以保证晚上使用遥控器关闭所述电视或空调后,自动切断供电,避免了该电视或空调等用电器的待机耗电,同时降低待机时发生事故的几率。另外,对于电脑而言,可以区分关机状态和待机状态,可以解决待机状态下的用电器误断电的问题。In addition, when determining the threshold value of the jack, it should be determined according to the working state of the electrical appliance that needs to be automatically powered off. For example, the computer corresponds to the shutdown threshold, and the remote control TV, air conditioner, etc. correspond to the standby threshold, which is the power after the remote control is turned off. The setting can ensure that the power supply is automatically cut off after the TV or the air conditioner is turned off by the remote controller at night, thereby avoiding the standby power consumption of the TV or the air conditioner and other electrical appliances, and simultaneously reducing the probability of accidents during standby. In addition, for a computer, it is possible to distinguish between a shutdown state and a standby state, and it is possible to solve the problem of accidental power-off of electrical appliances in the standby state.

通过本实施例提供的方法可以实现自动断电,尤其现在电器智能化越来越高,许多用电器都配有遥控器,一方面,给人们的生活带来一定的便利且解决了因未切断电源而耗电的问题,另一方面,提高了安全性,同时延长了用电器的使用寿命。The method provided by this embodiment can realize automatic power-off, especially now that electrical appliances are becoming more and more intelligent, and many electrical appliances are equipped with remote controls. On the one hand, it brings certain convenience to people’s life and solves the On the other hand, it improves safety and prolongs the service life of electrical appliances.

通过步骤S102由判断单元执行比较动作,判断由步骤S101获得的用电器所在的受控插孔的当前电信号的幅值是否大于该插孔阈值。Through step S102, the judging unit performs a comparison action to judge whether the amplitude of the current electrical signal of the controlled socket where the electrical consumer is located obtained in step S101 is greater than the threshold of the socket.

步骤S103:若否,则控制所述用电器所在的受控插孔断电。Step S103: If not, control the controlled socket where the electrical consumer is located to be powered off.

根据上述步骤S102的判断结果,当用电器所在的受控插孔的当前电信号的幅值小于等于该插孔阈值时,说明该用电器处于关机状态,则执行步骤S103自动控制该用电器所在的受控插孔断电,停止向该用电器供电。According to the judgment result of the above step S102, when the amplitude of the current electric signal of the controlled jack where the electrical appliance is located is less than or equal to the threshold value of the jack, it means that the electrical appliance is in the shutdown state, and step S103 is executed to automatically control the electrical appliance where the electrical appliance is located. The controlled jack is powered off, and the power supply to the appliance is stopped.

本发明实施例提供的一种插孔工作状态的控制方法中通过获取用电器所在受控插孔的电信号的幅值,并将该幅值与预先存储的插孔阈值进行比较,当该幅值小于等于该插孔阈值时,说明该用电器处于关机状态,进而控制该用电器所在插孔自动断电,自动将用电器所在插孔断电,无需手动切断电源,解决了用电器在关机状态下因未切掉总电源而耗电的问题,且延长了用电器的使用寿命,同时还提高了安全性。In the method for controlling the working state of the jack provided by the embodiment of the present invention, the amplitude of the electrical signal of the controlled jack where the electrical appliance is located is obtained, and the amplitude is compared with the pre-stored jack threshold. When the value is less than or equal to the threshold value of the jack, it means that the electrical appliance is in the shutdown state, and then controls the automatic power-off of the jack where the electrical appliance is located, and automatically cuts off the power of the jack where the electrical appliance is located. The problem of power consumption due to the failure to cut off the main power supply in the state, and prolong the service life of the electrical appliances, and improve the safety at the same time.

考虑到,要想重新启动插座,需要手动方式打开,但一般在家庭或者办公室中,插座都放置在不容易触及的地方,手动开关很不方便,为了提高易用性,本发明提供的一个实施例中还包括步骤:Considering that if you want to restart the socket, you need to open it manually, but generally in the family or office, the socket is placed in a place that is not easy to reach, and the manual switch is very inconvenient. In order to improve the usability, an implementation provided by the present invention The example also includes steps:

若获取到无线开启信号或声控开启信号,则执行步骤所述获取用电器所在的受控插孔电信号的幅值。If the wireless turn-on signal or the voice-activated turn-on signal is obtained, the steps described in the step are performed to obtain the amplitude of the electrical signal of the controlled socket where the electrical appliance is located.

该方法采用了通过无线信号实现远程控制的技术,可以通过移动终端发送通电指令或断电指令至无线信号接收模块,所述无线信号接收模块再将所述通电指令或断电指令发送给总继电器,控制总继电器的关闭或断开,进而控制给单片机供电或断电,该无线信号可以是wifi信号,也可以是蓝牙信号,或者其他无线信号,此处不再赘述,其均在本发明的保护范围之内。This method adopts the technology of realizing remote control through wireless signals, and can send the power-on command or power-off command to the wireless signal receiving module through the mobile terminal, and the wireless signal receiving module sends the power-on command or power-off command to the main relay , to control the closing or disconnection of the main relay, and then control the power supply or power-off of the single-chip microcomputer. The wireless signal can be a wifi signal, or a bluetooth signal, or other wireless signals. within the scope of protection.

另外,本方法还可以采用声控信号控制给单片机供电,从而提高该方法的易用性和适用范围。In addition, the method can also use the voice control signal to control the power supply to the single-chip microcomputer, thereby improving the ease of use and scope of application of the method.

为了提高本方法的适用范围,方便用户控制用电器的通电与断电,在本发明提供的一个实施例中,还包括:In order to improve the scope of application of this method and facilitate the user to control the power-on and power-off of electrical appliances, an embodiment provided by the present invention also includes:

若接受到通电信号指令,则控制所述通电信号指令所对应的用电器所在的插孔通电,所述通电信号指令包括无线信号指令或按钮开关发出的信号指令;If the energization signal instruction is received, the socket where the electrical appliance corresponding to the energization signal instruction is controlled is energized, and the energization signal instruction includes a wireless signal instruction or a signal instruction sent by a button switch;

若接收到断电信号指令,则控制断所述电信号指令所对应的用电器所在的插孔断电,所述断电信号指令包括无线信号指令或按钮开关发出的信号指令。If a power-off signal command is received, control the power-off of the socket where the electrical appliance corresponding to the electric signal command is located, and the power-off signal command includes a wireless signal command or a signal command sent by a button switch.

除了自动控制受控插孔断电外,为了提高在不同场合的实用性,本发明提供的一个实施例中,还包括通过按钮开关控制受控插孔的通电和断电,可以实现本地的开关控制,也可以实现远程控制的功能。In addition to automatically controlling the power-off of the controlled jack, in order to improve the practicability in different occasions, an embodiment provided by the present invention also includes controlling the power-on and power-off of the controlled jack through a button switch, which can realize local switching Control, also can realize the function of remote control.

在本发明提供的一个实施例中,该方法采用了通过无线信号实现远程控制的技术,可以在移动终端控制指定插孔的通电或断电,该无线信号可以是wifi信号,也可以是蓝牙信号或是其他无线控制方式,通过无线信号,可以在任何地点控制受控用电器的工作,如当用户下班回家后可以实时控制公司电脑的断电或通电。In an embodiment provided by the present invention, the method adopts the technology of realizing remote control through wireless signals, which can control the power-on or power-off of the designated socket on the mobile terminal. The wireless signal can be a wifi signal or a bluetooth signal Or other wireless control methods, through wireless signals, the work of controlled electrical appliances can be controlled in any place, such as when the user returns home from get off work, he can control the power off or power on of the company's computer in real time.

需要说明的是,本发明实施例中的方法可通过单片机程序的编写或开发多线程同时工作程序,控制各插孔的程序同时单独运行而互不干扰,实现多插孔单独控制,因此,可以通过无线信号或按钮开关信号,单独控制某一用电器所在插孔的通电或断电。It should be noted that the method in the embodiment of the present invention can control the programs of each jack to run independently without interfering with each other through the writing of the single-chip microcomputer program or the development of a multi-threaded simultaneous working program, so as to realize the independent control of multiple jacks. Therefore, it is possible to Through the wireless signal or the button switch signal, the power on or off of the socket where a certain electrical appliance is located is individually controlled.

为了实现用户通过移动终端远程监控用电器的用电状态,本发明提供的一个实施例中,还包括:每隔预定时间将所述当前电信号的幅值通过无线信号发送至移动终端,In order to enable the user to remotely monitor the power consumption status of the electrical appliance through the mobile terminal, an embodiment provided by the present invention further includes: sending the amplitude of the current electrical signal to the mobile terminal through a wireless signal every predetermined time,

或接收所述移动终端发送的请求指令后,向所述移动终端发送所述当前电信号的幅值。Or after receiving the request instruction sent by the mobile terminal, send the amplitude of the current electric signal to the mobile terminal.

通过本方法,用户可在移动终端上随时监控用电器的用电状况,如监控子女是否在家看电视等,从而方便进一步通过远程遥控等方式关闭电视等。又如,在移动终端上监控电动车或其他充电设备是否已充满电,若已充满则可及时断电,避免过充降低电池寿命。或是用户在家可以实时监控公司的用电器,实现远程查询和远程控制,当下班后忘记将用电器(如,电脑)关机或是检测到电脑处于正常运行状态,说明此时电脑可能被他人使用,可以通过远程控制将其关闭。Through this method, the user can monitor the power consumption status of the electrical appliances at any time on the mobile terminal, such as monitoring whether the children are watching TV at home, so as to facilitate further turning off the TV through remote control and other methods. Another example is to monitor whether the electric vehicle or other charging equipment is fully charged on the mobile terminal. If it is fully charged, the power can be cut off in time to avoid overcharging and reduce battery life. Or the user can monitor the company's electrical appliances in real time at home to realize remote query and remote control. If they forget to turn off the electrical appliances (such as computers) after get off work or detect that the computers are in normal operation, it means that the computers may be used by others at this time. , which can be turned off by remote control.

同时,还可以外界显示屏,在用电器比较多的情况下,可以实现实时监控每个用电器的电参数及使用情况,如大型网吧、大型企业等等。At the same time, an external display screen can also be used. In the case of a large number of electrical appliances, real-time monitoring of the electrical parameters and usage of each electrical appliance can be realized, such as large Internet cafes, large enterprises, and so on.

考虑到一些用电器的功率是波动的,或者在某一段时间内是较低的,对于只针对当前电信号的幅值响应断电的情形,可能会存在误操作,因此,本发明提供的一个实施例中,在步骤所述控制所述用电器所在的受控插孔断电之前还包括:Considering that the power of some electrical appliances fluctuates, or is low in a certain period of time, there may be misoperations in the case of only responding to a power outage based on the magnitude of the current electrical signal. Therefore, the present invention provides a In an embodiment, before controlling the power-off of the controlled socket where the electrical appliance is located in the step, the method further includes:

判断所述用电器处于关机状态的时间是否大于预设的时间阈值,judging whether the time that the electrical appliance is in the shutdown state is greater than a preset time threshold,

若是,则执行步骤所述控制所述用电器所在的受控插孔断电。If yes, perform the steps described in the step of controlling the controlled socket where the electrical appliance is located to be powered off.

在本实施例中,通过本方法增加了时间因子,当检测到在预设的时间阈值内,用电器的电信号的幅值一直低于预设的插孔阈值,则可判断其处于关机状态,进而响应断电。避免了无时间因子时响应过于灵敏导致的误断电。In this embodiment, the time factor is added through this method. When it is detected that within the preset time threshold, the amplitude of the electrical signal of the electrical appliance is always lower than the preset jack threshold, it can be judged that it is in the shutdown state , in turn responding to power down. It avoids false power-off caused by too sensitive response when there is no time factor.

考虑到当用电器过载时可能会引起火灾等安全事故,本发明提供的一个实施例中,如图2所示,该方法还包括步骤S104-105,具体如下:Considering that safety accidents such as fire may be caused when electrical appliances are overloaded, in one embodiment provided by the present invention, as shown in Figure 2, the method further includes steps S104-105, specifically as follows:

步骤S104:判断所述当前电信号的幅值是否大于预设的最大额定值,Step S104: judging whether the amplitude of the current electrical signal is greater than a preset maximum rated value,

步骤S105:若是,则控制所述用电器所在的插孔断电并发送异常警报信息。Step S105: If yes, control the socket where the electrical appliance is located to be powered off and send abnormal alarm information.

具体的,当检测到当前功率大于插孔的最大额定值时,单片机需向相应的继电器发出断电信号并通过无线信号发送异常报警信息至移动终端,该无线信号可以是wifi信号,也可以是蓝牙信号或是其他无线信号。Specifically, when it is detected that the current power is greater than the maximum rated value of the jack, the microcontroller needs to send a power-off signal to the corresponding relay and send an abnormal alarm message to the mobile terminal through a wireless signal. The wireless signal can be a wifi signal or a Bluetooth signal or other wireless signal.

在本发明提供的实施例中,该方法还包括步骤:In the embodiment provided by the present invention, the method also includes the steps of:

若检测到所有插孔都断电,则自动将总电路断电。If it is detected that all jacks are powered off, the total circuit will be automatically powered off.

通过本步骤,当所有插孔都断电时,自动将总电路断电,可以降低单片机自身的电能消耗,以及消除电路带电的潜在触电、漏电等安全隐患。Through this step, when all jacks are powered off, the total circuit will be automatically powered off, which can reduce the power consumption of the single-chip microcomputer itself, and eliminate potential safety hazards such as electric shock and leakage caused by live circuits.

在本发明提供的实施例中,该方法还包括步骤:In the embodiment provided by the present invention, the method also includes the steps of:

判断所述用电器所在插孔的在预定时间内功耗是否大于预设的可用电阈值,judging whether the power consumption of the socket where the electrical appliance is located within a predetermined time is greater than a preset available power threshold,

若是,则控制所述用电器所在的插孔断电。If yes, then control the power-off of the jack where the electrical appliance is located.

具体的,可以统计用电器的用电功率和用电量,限制某些用电器的使用时间,如家长可通过手机查看孩子使用电脑的时间,并加以控制。Specifically, it is possible to count the power consumption and electricity consumption of electrical appliances, and limit the usage time of certain electrical appliances. For example, parents can check and control the time their children use the computer through their mobile phones.

本发明提供的实施例中,各插孔采用并联方式,单片机通过检测不同用电器的工作状态,采集相应的电信号的幅值并进行比较,分别控制不同用电器断电,同时,也可以通过无线信号单独控制某一用电器的通电或断电,通过预先编写的程序控制,该单片机可以同时精确控制多个插孔的用电器运行而互不干扰。In the embodiment provided by the present invention, the jacks are connected in parallel, and the single-chip microcomputer detects the working status of different electrical appliances, collects and compares the amplitudes of corresponding electrical signals, and controls the power-off of different electrical appliances respectively. The wireless signal alone controls the power-on or power-off of a certain electrical appliance. Through the pre-written program control, the single-chip microcomputer can precisely control the electrical operation of multiple jacks at the same time without interfering with each other.

本发明实施例还提供了一种插孔工作状态的控制装置,如图3所示,该装置包括:The embodiment of the present invention also provides a control device for the working state of the jack, as shown in Figure 3, the device includes:

获取模块301,用于获取用电器所在的受控插孔的当前电信号的幅值;An acquisition module 301, configured to acquire the amplitude of the current electrical signal of the controlled socket where the electrical appliance is located;

判断模块302,用于判断所述当前电信号的幅值是否大于预设的插孔阈值;A judging module 302, configured to judge whether the amplitude of the current electrical signal is greater than a preset jack threshold;

控制模块303,用于当所述当前电信号小于等于预设的插孔阈值时,控制所述用电器所在的受控插孔断电。The control module 303 is configured to control the controlled socket where the electric appliance is located to be powered off when the current electrical signal is less than or equal to a preset socket threshold.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described system and device can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.

最后应说明的是:以上所述实施例,仅为本发明的具体实施方式,用以说明本发明的技术方案,而非对其限制,本发明的保护范围并不局限于此,尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本发明实施例技术方案的精神和范围。都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。Finally, it should be noted that: the above-described embodiments are only specific implementations of the present invention, used to illustrate the technical solutions of the present invention, rather than limiting them, and the scope of protection of the present invention is not limited thereto, although referring to the foregoing The embodiment has described the present invention in detail, and those skilled in the art should understand that any person familiar with the technical field can still modify the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention Changes can be easily imagined, or equivalent replacements can be made to some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. All should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (9)

1.一种插孔工作状态的控制方法,其特征在于,包括:1. A method for controlling the working state of a socket, comprising: 获取用电器所在的受控插孔的当前电信号的幅值;Obtain the amplitude of the current electrical signal of the controlled socket where the electrical appliance is located; 判断所述当前电信号的幅值是否大于预设的插孔阈值;judging whether the amplitude of the current electrical signal is greater than a preset jack threshold; 若否,则控制所述用电器所在的受控插孔断电;If not, then control the controlled socket where the electrical appliance is located to be powered off; 其中,在第一幅值与第二幅值的偏差比例小于预设的比例阈值时,所述插孔阈值为所述第一幅值与所述第二幅值的平均值,在所述第一幅值与所述第二幅值的偏差比例大于或等于所述预设的比例阈值时,所述插孔阈值为所述第二幅值;Wherein, when the deviation ratio between the first amplitude value and the second amplitude value is less than a preset ratio threshold, the jack threshold is the average value of the first amplitude value and the second amplitude value, and in the first amplitude value When the deviation ratio between an image value and the second amplitude is greater than or equal to the preset ratio threshold, the jack threshold is the second amplitude; 所述第一幅值是在所述用电器的插头插入所述用电器所在的受控插孔后,所述用电器尚未开机时测量的所述用电器所在的受控插孔的电信号的幅值,所述第二幅值是在所述用电器开机再关机后,测量的所述用电器所在的受控插孔的电信号的幅值。The first amplitude is the electrical signal of the controlled jack where the electrical consumer is located that is measured when the electrical consumer is not turned on after the plug of the electrical consumer is inserted into the controlled jack where the electrical consumer is located. Amplitude, the second amplitude is the measured amplitude of the electrical signal of the controlled socket where the electrical appliance is located after the electrical appliance is turned on and then turned off. 2.根据权利要求1所述的一种插孔工作状态的控制方法,其特征在于,还包括:2. The method for controlling the working state of a jack according to claim 1, further comprising: 若获取到无线开启信号或声控开启信号,则执行步骤所述获取用电器所在的受控插孔电信号的幅值。If the wireless turn-on signal or the voice-activated turn-on signal is obtained, the steps described in the step are performed to obtain the amplitude of the electrical signal of the controlled socket where the electrical appliance is located. 3.根据权利要求1所述的一种插孔工作状态的控制方法,其特征在于,还包括:3. The method for controlling the working state of a jack according to claim 1, further comprising: 若接受到通电信号指令,则控制所述通电信号指令所对应的用电器所在的受控插孔通电,所述通电信号指令包括无线信号指令或按钮开关发出的信号指令;If the energization signal instruction is received, the controlled socket where the electrical appliance corresponding to the energization signal instruction is controlled is energized, and the energization signal instruction includes a wireless signal instruction or a signal instruction sent by a button switch; 若接收到断电信号指令,则控制断所述电信号指令所对应的用电器所在的受控插孔断电,所述断电信号指令包括无线信号指令或按钮开关发出的信号指令。If a power-off signal instruction is received, the controlled socket where the electrical appliance corresponding to the electric signal instruction is located is controlled to be powered off, and the power-off signal instruction includes a wireless signal instruction or a signal instruction sent by a button switch. 4.根据权利要求1所述的一种插孔工作状态的控制方法,其特征在于,还包括:4. The method for controlling the working state of a jack according to claim 1, further comprising: 每隔预定时间将所述当前电信号的幅值通过无线信号发送至移动终端,sending the amplitude of the current electrical signal to the mobile terminal via a wireless signal every predetermined time, 或接收所述移动终端发送的请求指令后,向所述移动终端发送所述当前电信号的幅值。Or after receiving the request instruction sent by the mobile terminal, send the amplitude of the current electric signal to the mobile terminal. 5.根据权利要求1所述的一种插孔工作状态的控制方法,其特征在于,在步骤所述控制所述用电器所在的受控插孔断电之前还包括:5. The method for controlling the working state of a jack according to claim 1, characterized in that, before the step of controlling the power-off of the controlled jack where the electrical appliance is located, the method further includes: 判断所述当前电信号的幅值小于所述插孔阈值的时间是否大于预设的时间阈值,judging whether the time when the amplitude of the current electrical signal is less than the jack threshold is greater than a preset time threshold, 若是,则执行步骤所述控制所述用电器所在的受控插孔断电。If yes, perform the steps described in the step of controlling the controlled socket where the electrical appliance is located to be powered off. 6.根据权利要求1所述的一种插孔工作状态的控制方法,其特征在于,还包括:6. The method for controlling the working state of a jack according to claim 1, further comprising: 判断所述当前电信号的幅值是否大于预设的最大额定值,judging whether the amplitude of the current electrical signal is greater than a preset maximum rated value, 若是,则控制所述用电器所在的受控插孔断电并发送异常警报信息。If so, control the controlled socket where the electrical appliance is located to be powered off and send abnormal alarm information. 7.根据权利要求1所述的一种插孔工作状态的控制方法,其特征在于,还包括:7. The method for controlling the working state of a socket according to claim 1, further comprising: 若检测到全部受控插孔都断电,则将总电路断电。If it is detected that all controlled sockets are powered off, the total circuit is powered off. 8.根据权利要求1所述的一种插孔工作状态的控制方法,其特征在于,还包括:8. The method for controlling the working state of a jack according to claim 1, further comprising: 判断所述用电器所在受控插孔的在预定时间内功耗是否大于预设的可用电阈值,judging whether the power consumption of the controlled socket where the electrical appliance is located within a predetermined time is greater than a preset available power threshold, 若是,则控制所述用电器所在的受控插孔断电。If yes, then control the controlled socket where the electrical appliance is located to be powered off. 9.一种插孔工作状态的控制装置,其特征在于,包括:9. A control device for jack working state, characterized in that it comprises: 获取模块,用于获取用电器所在的受控插孔的当前电信号的幅值;An acquisition module, configured to acquire the amplitude of the current electrical signal of the controlled socket where the electrical appliance is located; 判断模块,用于判断所述当前电信号的幅值是否大于预设的插孔阈值;A judging module, configured to judge whether the amplitude of the current electrical signal is greater than a preset jack threshold; 控制模块,用于当所述当前电信号小于等于所述插孔阈值时,控制所述用电器所在的受控插孔断电;A control module, configured to control the controlled socket where the electrical appliance is located to be powered off when the current electrical signal is less than or equal to the socket threshold; 其中,在第一幅值与第二幅值的偏差比例小于预设的比例阈值时,所述插孔阈值为所述第一幅值与所述第二幅值的平均值,在所述第一幅值与所述第二幅值的偏差比例大于或等于所述预设的比例阈值时,所述插孔阈值为所述第二幅值;Wherein, when the deviation ratio between the first amplitude value and the second amplitude value is less than a preset ratio threshold, the jack threshold is the average value of the first amplitude value and the second amplitude value, and in the first amplitude value When the deviation ratio between an image value and the second amplitude is greater than or equal to the preset ratio threshold, the jack threshold is the second amplitude; 所述第一幅值是在所述用电器的插头插入所述用电器所在的受控插孔后,所述用电器尚未开机时测量的所述用电器所在的受控插孔的电信号的幅值,所述第二幅值是在所述用电器开机再关机后,测量的所述用电器所在的受控插孔的电信号的幅值。The first amplitude is the electrical signal of the controlled jack where the electrical consumer is located that is measured when the electrical consumer is not turned on after the plug of the electrical consumer is inserted into the controlled jack where the electrical consumer is located. Amplitude, the second amplitude is the measured amplitude of the electrical signal of the controlled socket where the electrical appliance is located after the electrical appliance is turned on and then turned off.
CN201510252739.6A 2015-05-18 2015-05-18 Control method and device for jack working state Expired - Fee Related CN104932335B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510252739.6A CN104932335B (en) 2015-05-18 2015-05-18 Control method and device for jack working state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510252739.6A CN104932335B (en) 2015-05-18 2015-05-18 Control method and device for jack working state

Publications (2)

Publication Number Publication Date
CN104932335A CN104932335A (en) 2015-09-23
CN104932335B true CN104932335B (en) 2017-06-23

Family

ID=54119546

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510252739.6A Expired - Fee Related CN104932335B (en) 2015-05-18 2015-05-18 Control method and device for jack working state

Country Status (1)

Country Link
CN (1) CN104932335B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107170226A (en) * 2017-05-27 2017-09-15 环球智达科技(北京)有限公司 The detection determination methods of closing control
CN107123256A (en) * 2017-05-27 2017-09-01 环球智达科技(北京)有限公司 Detect judgment means
CN107085935A (en) * 2017-05-27 2017-08-22 环球智达科技(北京)有限公司 closing control method
CN107230341A (en) * 2017-05-27 2017-10-03 环球智达科技(北京)有限公司 Open the detection determination methods of control
CN107065587A (en) * 2017-05-27 2017-08-18 环球智达科技(北京)有限公司 Control device
CN107123255A (en) * 2017-05-27 2017-09-01 环球智达科技(北京)有限公司 Method for controlling opening and closing
CN108898690A (en) * 2018-05-31 2018-11-27 四川斐讯信息技术有限公司 A kind of power-saving method and power saving apparatus
CN111403967B (en) * 2020-03-02 2022-01-04 安徽鑫龙低压电器有限公司 Controlled socket
CN112072410A (en) * 2020-08-21 2020-12-11 江苏扬航绳网带有限公司 Socket, terminal equipment and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103116296A (en) * 2013-01-16 2013-05-22 李严凝 Control system of energy saving socket, energy saving socket and control method
CN103138122A (en) * 2011-12-02 2013-06-05 胜德国际研发股份有限公司 Socket with load detection function
CN203276006U (en) * 2013-06-03 2013-11-06 陕西科技大学 Intelligent home appliance power control system
CN103401103A (en) * 2013-08-13 2013-11-20 葛荣超 Automatic cut-off conversion socket for electric apparatus standby
CN103996936A (en) * 2014-05-06 2014-08-20 Tcl集团股份有限公司 Intelligent socket and control method for intelligent socket

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201324980A (en) * 2011-12-02 2013-06-16 Powertech Ind Ltd Dynamic energy-saving socket

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103138122A (en) * 2011-12-02 2013-06-05 胜德国际研发股份有限公司 Socket with load detection function
CN103116296A (en) * 2013-01-16 2013-05-22 李严凝 Control system of energy saving socket, energy saving socket and control method
CN203276006U (en) * 2013-06-03 2013-11-06 陕西科技大学 Intelligent home appliance power control system
CN103401103A (en) * 2013-08-13 2013-11-20 葛荣超 Automatic cut-off conversion socket for electric apparatus standby
CN103996936A (en) * 2014-05-06 2014-08-20 Tcl集团股份有限公司 Intelligent socket and control method for intelligent socket

Also Published As

Publication number Publication date
CN104932335A (en) 2015-09-23

Similar Documents

Publication Publication Date Title
CN104932335B (en) Control method and device for jack working state
TWI440277B (en) Power controller, power controlling device and power saving method for power controlling device
US9501134B2 (en) Remotely controllable electrical sockets with plugged appliance detection and identification
US20220149571A1 (en) Technologies for a smart electrical outlet and a smart electrical cord
TWI419431B (en) Socket with power management ability
US20080164768A1 (en) Energy-saving electrical adaptor
CN104716516A (en) Intelligent socket with wireless data communication function and obtaining method thereof
WO2021000436A1 (en) Wireless control module, wireless wall switch, powered device, and system
CN105610011B (en) A kind of Intelligent energy-saving socket and method by terminal device Bluetooth control
CN204597184U (en) A kind of intelligent wireless controls socket
US10349149B2 (en) Communications apparatus and method for standby power controller which interrupts power to an appliance in a standby state
TWM526148U (en) Intelligent home monitoring system
TWM398237U (en) Intelligent socket apparatus
CN204720712U (en) Control circuit of intelligent power strip and intelligent power strip
KR101801808B1 (en) System and Method for managing Indoor Standby Power
CN107479435A (en) A kind of smart jack control system
KR101362777B1 (en) Wireless communication based outlet device and standby power blocking method
CN109215299A (en) A kind of intelligent electric appliance early warning system
KR20110017949A (en) Standby power saving device and method
TWI415354B (en) Energy - saving power extension cord
KR100979259B1 (en) A automatic breaking unit of waiting electric power and automatic breaking method thereof
CN213023412U (en) Power supply control system for kitchen and bathroom electric appliance
KR101433710B1 (en) Multi-tap device with cutting off standby power for controlling electronic device and method thereof
KR101367969B1 (en) Concent device and control method thereof
CN108683031B (en) Intelligent plug, control method thereof and patch board with intelligent plug

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170623

Termination date: 20200518