CN107437849B - On-line Switch Modulation Digital Communication Control System for Local Power Network - Google Patents

On-line Switch Modulation Digital Communication Control System for Local Power Network Download PDF

Info

Publication number
CN107437849B
CN107437849B CN201710776490.8A CN201710776490A CN107437849B CN 107437849 B CN107437849 B CN 107437849B CN 201710776490 A CN201710776490 A CN 201710776490A CN 107437849 B CN107437849 B CN 107437849B
Authority
CN
China
Prior art keywords
power
network controller
power supply
slave
electrically connected
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.)
Active
Application number
CN201710776490.8A
Other languages
Chinese (zh)
Other versions
CN107437849A (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.)
Linyi Power Supply Co of State Grid Shandong Electric Power Co Ltd
Original Assignee
Linyi Power Supply Co of State Grid Shandong Electric Power Co Ltd
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 Linyi Power Supply Co of State Grid Shandong Electric Power Co Ltd filed Critical Linyi Power Supply Co of State Grid Shandong Electric Power Co Ltd
Priority to CN201710776490.8A priority Critical patent/CN107437849B/en
Publication of CN107437849A publication Critical patent/CN107437849A/en
Application granted granted Critical
Publication of CN107437849B publication Critical patent/CN107437849B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • H02J13/0062
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02HEMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
    • H02H11/00Emergency protective circuit arrangements for preventing the switching-on in case an undesired electric working condition might result
    • H02H11/006Emergency protective circuit arrangements for preventing the switching-on in case an undesired electric working condition might result in case of too high or too low voltage
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/34Parallel operation in networks using both storage and other DC sources, e.g. providing buffering
    • H02J7/345Parallel operation in networks using both storage and other DC sources, e.g. providing buffering using capacitors as storage or buffering devices
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02MAPPARATUS FOR CONVERSION BETWEEN AC AND AC, BETWEEN AC AND DC, OR BETWEEN DC AND DC, AND FOR USE WITH MAINS OR SIMILAR POWER SUPPLY SYSTEMS; CONVERSION OF DC OR AC INPUT POWER INTO SURGE OUTPUT POWER; CONTROL OR REGULATION THEREOF
    • H02M1/00Details of apparatus for conversion
    • H02M1/06Circuits specially adapted for rendering non-conductive gas discharge tubes or equivalent semiconductor devices, e.g. thyratrons, thyristors

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)

Abstract

The utility model discloses a local power utilization network on-line switch modulation digital communication control system, which comprises a master network controller and a slave network controller. The master and slave network controllers form a local area communication network through a power supply line. The main network controller sends information by controlling the power switch to generate instant power failure pulses with different pulse widths on the power supply line, and the auxiliary network controller detects and records the instant power failure pulses with different pulse widths through the information extraction circuit to acquire the information. The utility model realizes the data communication between the master network controller and the slave network controller according to different pulse widths representing different data information. The intelligent control system has the beneficial effects of simple control mode, long transmission distance, no energy consumption and low cost, and can realize intelligent control on LED illumination and other electric equipment.

Description

局域用电网络在线开关调制数字通讯控制系统On-line Switch Modulation Digital Communication Control System for Local Power Network

技术领域technical field

本发明涉及供电网络控制系统,具体涉及局域用电网络在线开关调制数字通讯控制系统。The invention relates to a power supply network control system, in particular to a digital communication control system for on-line switch modulation of a local power consumption network.

背景技术Background technique

局域用电网络的管理是用电网络管理中的重要管控组成部分。随着智能家居、工业自动化控制、物联网远程信息管理的不断发展,局域用电网络的管理的市场需求愈发迫切。当前技术环境下,局域用电设备网络管理多采GPRS或者有线电力载波用来控制一条供电线路上的多个用电设备的监控管理,该方式存在制造成本高、设备数量多、使用维护繁琐且费用相对较高的问题。The management of the local power network is an important part of the management and control of the power network management. With the continuous development of smart home, industrial automation control, and remote information management of the Internet of Things, the market demand for the management of local power consumption networks is becoming more and more urgent. Under the current technical environment, GPRS or wired power carrier is used to control the monitoring and management of multiple electrical equipment on a power supply line for local area electrical equipment network management. This method has high manufacturing costs, a large number of equipment, and cumbersome use and maintenance. and relatively high cost.

专利号CN201520416793公开了一种局域用电设备离线网络管理控制系统。本实用新型公开了一种局域用电设备离线网络管理控制系统,该系统包括一条供电线路,所述供电线路的电源输入始端串联有电源控制开关K1,所述开关K1并联连接有相互串联的离线网络电源管理控制器以及通讯接口开关K2,所述供电线路上还连接有若干相互并联的用电器,所述各用电器分别连接有从网络控制器;所述离线网络电源管理控制器包括主网络控制器,所述主网络控制器的输入端连接有电源输入接口、键盘、互联网接口以及USB接口,所述主网络控制器的输出端连接有电源输出接口、数据通讯接口、显示器以及警示灯。该系统可完成人工及自动控制开关送电功能;在离线状态下与从单片计算机进行数据通讯实现监控管理功能;可通过USB接口及互联网接口以实现与计算机、手机及互联网的通讯功能。该实用新型通讯功能单一,满足不了用电器日益增加的控制需求。Patent No. CN201520416793 discloses an off-line network management and control system for local electrical equipment. The utility model discloses an off-line network management and control system for local electric equipment. The system includes a power supply line. The power supply input start end of the power supply line is connected in series with a power supply control switch K1, and the switch K1 is connected in parallel with a An off-line network power management controller and a communication interface switch K2, the power supply line is also connected to a number of parallel-connected electrical appliances, and each of the electrical appliances is respectively connected to a slave network controller; the off-line network power management controller includes a master A network controller, the input end of the main network controller is connected with a power input interface, keyboard, Internet interface and USB interface, and the output end of the main network controller is connected with a power output interface, a data communication interface, a display and a warning light . The system can complete the function of manual and automatic control switch power transmission; in the off-line state, it can communicate with the single chip computer to realize the monitoring and management function; it can realize the communication function with the computer, mobile phone and the Internet through the USB interface and the Internet interface. The utility model has a single communication function and cannot meet the increasing control requirements of electric appliances.

专利号CN102118183A电力载波通信方法及装置,包括如下步骤:信息采集步骤,物理层接收导频信号以获得信道状态信息;同步状态信息步骤,所述物理层和数据传输控制层同步所述信道状态信息;信息处理步骤,根据所述信道状态信息,得到需要并能够通信的数据包;通信步骤,轮流占用时间段传输所述需要并能够通信的数据包。通讯原理复杂、使用不便、实用性差。Patent No. CN102118183A power carrier communication method and device, including the following steps: the information collection step, the physical layer receives the pilot signal to obtain channel state information; the synchronization state information step, the physical layer and the data transmission control layer synchronize the channel state information ; The information processing step, according to the channel state information, obtains the data packets that need and can be communicated; the communication step, taking turns to occupy the time period to transmit the data packets that need and can be communicated. The communication principle is complex, inconvenient to use, and poor in practicability.

因此设计一种低成本、控制方法简单、便于基层技术人员掌握使用的局域用电网络通讯控制系统成为一种迫切的要求。Therefore, it is an urgent requirement to design a low-cost, simple control method, and easy for grass-roots technicians to master and use the local area power network communication control system.

发明内容Contents of the invention

本发明要解决的技术问题是:提供了一种域用电网络在线开关调制数字通讯控制系统,具有结构简单、操作方便、传输距离远、通信效率高、成本低、实用性强的功能。The technical problem to be solved by the present invention is to provide a digital communication control system for on-line switch modulation of domain electricity network, which has the functions of simple structure, convenient operation, long transmission distance, high communication efficiency, low cost and strong practicability.

本发明要解决的技术问题的技术方案是:局域用电网络在线开关调制数字通讯控制系统,其特征在于:包括主网络控制器和从网络控制器。所述主网络控制器包括电源开关、驱动控制电路、主微控制器、断电缓冲电路以及和主微控制器电气连接的物联网通信模块、键盘、显示单元、电网同步信号提取电路、主电源模块。所述电源开关串接在供电线路中,所述驱动控制电路的输入端与主微控制器之间串联有断电缓冲电路,驱动控制电路的输出端与电源开关的控制端电气连接,所述主电源模块与电源开关输入端的电网端的供电线路电气连接,所述电网同步信号提取电路与电源开关输出端后端的供电线路电气连接。所述从网络控制器包括从微控制器、同步信息提取电路、从电源模块、从机控制单元,所述从微控制器和同步信息提取电路、从电源模块、从机控制单元电气连接,所述同步信息输入电路、从电源模块与电源开关输出端后端的供电线路电气连接。The technical solution of the technical problem to be solved by the present invention is: a digital communication control system for on-line switch modulation of a local power network, which is characterized in that it includes a master network controller and a slave network controller. The main network controller includes a power switch, a drive control circuit, a main microcontroller, a power-off buffer circuit, and an Internet of Things communication module electrically connected to the main microcontroller, a keyboard, a display unit, a grid synchronization signal extraction circuit, and a main power supply. module. The power switch is connected in series in the power supply line, a power-off buffer circuit is connected in series between the input end of the drive control circuit and the main microcontroller, the output end of the drive control circuit is electrically connected with the control end of the power switch, and the The main power supply module is electrically connected to the power supply line at the power grid end of the input end of the power switch, and the grid synchronous signal extraction circuit is electrically connected to the power supply line at the rear end of the power switch output end. The slave network controller includes a slave microcontroller, a synchronous information extraction circuit, a power supply module, and a slave control unit, and the slave microcontroller is electrically connected with the synchronization information extraction circuit, a slave power supply module, and a slave control unit. The synchronous information input circuit is electrically connected from the power supply module to the power supply line at the rear end of the power switch output end.

更好的,所述供电线路为交流供电电网。More preferably, the power supply line is an AC power grid.

更好的,所述电网同步信号提取电路包括第一限流电阻、第二限流电阻、第一整流桥、第一光电耦合器,所述第一整流桥的交流输入端和电源开关输出端后端的供电线路的零、火线之间分别串联有第一限流电阻、第二限流电阻,第一整流桥的直流输出端串接电阻后与第一光电耦合器输入端的正、负极电气连接,第一光电耦合器的射极输出引脚与主微控制器电气连接,第一光电耦合器的集电极与电源正极电气连接。More preferably, the grid synchronous signal extraction circuit includes a first current limiting resistor, a second current limiting resistor, a first rectifier bridge, a first optocoupler, an AC input terminal of the first rectifier bridge and a power switch output terminal A first current-limiting resistor and a second current-limiting resistor are respectively connected in series between the zero and live wires of the power supply line at the rear end, and the DC output terminal of the first rectifier bridge is electrically connected to the positive and negative poles of the input terminal of the first photocoupler after the resistor is connected in series. , the emitter output pin of the first optocoupler is electrically connected to the main microcontroller, and the collector of the first optocoupler is electrically connected to the positive pole of the power supply.

更好的,所述同步信息提取电路包括第三、四限流电阻、第二整流桥、第二光电耦合器,所述第二整流桥的交流输入端和电源开关输出端后端的供电线路的零、火线之间分别串联有第三限流电阻、第四限流电阻,第二整流桥的直流输出端串接电阻后与第二光电耦合器输入端的正、负极电气连接,第二光电耦合器的射极输出引脚与从微控制器电气连接,第二光电耦合器的集电极引脚与电源正极电气连接。More preferably, the synchronous information extraction circuit includes the third and fourth current-limiting resistors, the second rectifier bridge, and the second photocoupler, the AC input terminal of the second rectifier bridge and the power supply line at the rear end of the power switch output terminal A third current-limiting resistor and a fourth current-limiting resistor are respectively connected in series between the zero and live wires, and the DC output terminal of the second rectifier bridge is electrically connected to the positive and negative poles of the input terminal of the second photocoupler after the resistors are connected in series, and the second photoelectric coupler The emitter output pin of the photocoupler is electrically connected to the slave microcontroller, and the collector pin of the second photocoupler is electrically connected to the positive pole of the power supply.

更好的,所述从电源模块为开关电源,所述开关电源设有储能元件,开关电源的输入端和电源开关输出端后端的供电线路的零、火线电气连接,从电源模块输出端与从微控制器电气连接,所述储能元件用以保证在供电线路断电的瞬间从网络控制器正常工作一段时间。More preferably, the secondary power supply module is a switching power supply, and the switching power supply is provided with an energy storage element. The input terminal of the switching power supply is electrically connected to the zero and live wires of the power supply line at the rear end of the power switch output terminal, and the output terminal of the secondary power supply module is connected to the The slave microcontroller is electrically connected, and the energy storage element is used to ensure that the slave network controller works normally for a period of time when the power supply line is cut off.

更好的,所述电源开关为接触器,电源开关的常开触点串接在供电线路与电网连接的一端,电源开关的线圈绕组一端和电源开关输入端前端的供电线路的零线电气连接。电源开关的线圈绕组另一端串接驱动控制电路后和电源开关输入端前端的供电线路的火线电气连接。More preferably, the power switch is a contactor, the normally open contact of the power switch is connected in series to one end of the power supply line connected to the power grid, and one end of the coil winding of the power switch is electrically connected to the zero line of the power supply line at the front end of the input end of the power switch. . The other end of the coil winding of the power switch is electrically connected with the live wire of the power supply line at the front end of the input end of the power switch after the drive control circuit is connected in series.

更好的,所述开关驱动电路包括光耦、第五、六电阻、电容以及可控硅。所述光耦的输入端和断电缓冲电路电气连接,所述第五、六电阻串联在光耦的输出端的第一端和可控硅的第一主电极之间,光耦的输出端的第二端与可控硅的门极电气连接,所述电容的一端和可控硅的第二主电极电气连接,电容的另一端连接在第五、六电阻之间,所述可控硅的一个主电极与电源开关前端的供电线路的零线之间串接电源开关的线圈绕组,可控硅的另一主电极与电源开关前端的供电线路的火线电气连接。More preferably, the switch driving circuit includes an optocoupler, fifth and sixth resistors, a capacitor and a thyristor. The input end of the optocoupler is electrically connected to the power-off buffer circuit, the fifth and sixth resistors are connected in series between the first end of the output end of the optocoupler and the first main electrode of the thyristor, and the first end of the output end of the optocoupler Two terminals are electrically connected to the gate of the thyristor, one end of the capacitor is electrically connected to the second main electrode of the thyristor, and the other end of the capacitor is connected between the fifth and sixth resistors, one of the thyristor The coil winding of the power switch is connected in series between the main electrode and the neutral line of the power supply line at the front end of the power switch, and the other main electrode of the thyristor is electrically connected with the live wire of the power supply line at the front end of the power switch.

更好的,所述断电缓冲电路包括第七电阻、第一、二二极管、第二电容、第三电容、第一、二三极管、第八、九、十电阻。所述第七电阻的一端作为开机送电信号控制端,用以与主网络控制器的微控制器电气连接,第七电阻的另一端与第一三极管的基极电气连接、第二三极管的集电极电气连接、第一二极管的阳极电气连接,所述第一、二二极管的阴极并接作为停电脉冲信号控制端,用以连接主网络控制器的主微控制器,所述第一二极管的阳极分别和第一三极管的基极、第二三极管的集电极电气连接,第二二极管的阳极和第二三极管的基极之间串接有第九电阻,第二二极管的阳极和第一三极管的集电极之间串接有第八电阻,第二二极管的阳极和第二三极管的发射极之间串接有第三电容,所述第二三极管的发射极接地,所述第十电阻的一端和第二电容的正极并接后与电源的正极VDD电气连接,第二电容的负极接地,所述第十电阻的另一端和第一三极管的集电极之间串接光耦,用以与驱动控制电路,第一三极管的发射极接地。More preferably, the power-off buffer circuit includes a seventh resistor, a first and a second diode, a second capacitor, a third capacitor, a first and a second triode, an eighth, a ninth and a tenth resistor. One end of the seventh resistor is used as the power-on power transmission signal control end to be electrically connected to the microcontroller of the main network controller, and the other end of the seventh resistor is electrically connected to the base of the first triode, the second three The collector of the pole tube is electrically connected, the anode of the first diode is electrically connected, and the cathodes of the first and second diodes are connected in parallel as the power failure pulse signal control terminal for connecting the main microcontroller of the main network controller. The anode of the first diode is electrically connected to the base of the first triode and the collector of the second triode respectively, and the anode of the second diode is connected in series with the base of the second triode There is a ninth resistor, an eighth resistor is connected in series between the anode of the second diode and the collector of the first triode, and an eighth resistor is connected in series between the anode of the second diode and the emitter of the second triode There is a third capacitor, the emitter of the second triode is grounded, one end of the tenth resistor is connected in parallel with the positive pole of the second capacitor, and then electrically connected to the positive pole VDD of the power supply, and the negative pole of the second capacitor is grounded. An optocoupler is connected in series between the other end of the tenth resistor and the collector of the first triode for connection with the drive control circuit, and the emitter of the first triode is grounded.

局域用电网络在线开关调制数字通讯控制系统的通信方法,包括以下步骤:The communication method of the online switch modulation digital communication control system of the local area power consumption network comprises the following steps:

步骤1、主网络控制器获取控制指令,获取控制指令的方法有:1.1,通过键盘和显示单元将控制指令传输到主网络控制器的微控制器中;1.2,通过物联网通信模块,将控制指令通过电脑或者手机发送到主网络控制器的微控制器中;Step 1, the main network controller obtains the control instruction, and the methods for obtaining the control instruction are: 1.1, transmit the control instruction to the microcontroller of the main network controller through the keyboard and display unit; 1.2, through the Internet of Things communication module, control The command is sent to the microcontroller of the main network controller through the computer or mobile phone;

步骤2、数据调制,具体为:Step 2, data modulation, specifically:

主微控制器控制电源开关在供电线路上产生一个瞬时停电脉冲,停电脉冲的宽度代表码元的数据长度,由于脉冲宽度不同因此所对应的每一个码元的数据长度也不同,依据不同的码元数据长度进行信息的编码;The main microcontroller controls the power switch to generate an instantaneous power failure pulse on the power supply line. The width of the power failure pulse represents the data length of the symbol. Because the pulse width is different, the corresponding data length of each symbol is also different. According to different codes The metadata length is used to encode information;

主微控制器将得到的控制指令转换成一组码元数据,然后将这一组码元数据编译成产生不同瞬时停电脉冲宽度的驱动程序,主微控制器再将驱动脉冲传递给驱动控制电路;The main microcontroller converts the obtained control instructions into a set of code element data, and then compiles this set of code element data into driver programs that generate different instantaneous power failure pulse widths, and then the main microcontroller transmits the drive pulses to the drive control circuit;

步骤3、主网络控制器的驱动控制电路根据主微控制器的指令控制电源开关产生一组瞬时停电脉冲;Step 3, the drive control circuit of the main network controller controls the power switch according to the instructions of the main microcontroller to generate a group of instantaneous power failure pulses;

步骤4、数据解调,具体为:Step 4, data demodulation, specifically:

从网络控制器通过同步信息提取电路检测瞬时停电脉冲,并通过第二光电耦合器的射极输出引脚传递给从网络控制器的从微控制器,从网络控制器的从微控制器计算瞬时停电脉冲的宽度;The slave network controller detects the instantaneous power failure pulse through the synchronous information extraction circuit, and transmits it to the slave microcontroller of the slave network controller through the emitter output pin of the second photocoupler, and the slave microcontroller of the slave network controller calculates the instantaneous The width of the blackout pulse;

从网络控制器的从微控制器将检测到的单个瞬时停电脉冲信息转换成一组带有数据信息的码元,并根据预设的通信协议进行解码,生成控制指令;The slave microcontroller of the slave network controller converts the detected single instantaneous power failure pulse information into a group of symbols with data information, and decodes it according to the preset communication protocol to generate control instructions;

步骤5、从网络控制器的从微控制器将控制指令发送给从控制单元,从控制单元根据控制指令产生PWM及开关控制信息以实现对用电设备的控制。Step 5, the slave microcontroller of the slave network controller sends the control command to the slave control unit, and the slave control unit generates PWM and switch control information according to the control command to realize the control of the electrical equipment.

本发明的有益效果在于:The beneficial effects of the present invention are:

1、该发明通过在供电线路上产生瞬时停电脉冲实现通信,具有简化供电和通信线路的有益效果;1. The invention achieves communication by generating instantaneous power failure pulses on the power supply line, which has the beneficial effect of simplifying power supply and communication lines;

2、该发明的通信方式具有控制简单、传输距离远、不受线路阻抗的影响的有益效果;2. The communication method of the invention has the beneficial effects of simple control, long transmission distance and no influence of line impedance;

3、该发明通过产生瞬时停电脉冲实现信息的传送具有功耗低的有益效果;3. The invention achieves the transmission of information by generating instantaneous power failure pulses, and has the beneficial effect of low power consumption;

4、该发明具只需要在供电线路上添加主从网络控制器,具有安装施工方便的有益效果;4. The invention only needs to add a master-slave network controller on the power supply line, which has the beneficial effect of convenient installation and construction;

5、本发明具有实用性强、适用范围广的特点,可用于智能照明、智能家居、工业自动化控制等领域。5. The present invention has the characteristics of strong practicability and wide application range, and can be used in fields such as intelligent lighting, intelligent home furnishing, and industrial automation control.

附图说明Description of drawings

图1是本发明局域用电网络在线开关调制数字通讯控制系统的系统结构图,Fig. 1 is the system structural diagram of the on-line switch modulation digital communication control system of the local power consumption network of the present invention,

图2是本发明局域用电网络在线开关调制数字通讯控制系统的主网络控制器的电路结构图,Fig. 2 is the circuit structural diagram of the main network controller of the on-line switch modulation digital communication control system of the local power consumption network of the present invention,

图3是本发明局域用电网络在线开关调制数字通讯控制系统的从网络控制器的电路结构图,Fig. 3 is the circuit structure diagram of the slave network controller of the online switch modulation digital communication control system of the local power consumption network of the present invention,

图4是本发明局域用电网络在线开关调制数字通讯控制系统的主网络控制器的电源开关、驱动控制电路、断电缓冲电路的电路结构图,Fig. 4 is the circuit structural diagram of the power switch of the main network controller of the on-line switch modulation digital communication control system of the local power consumption network of the present invention, drive control circuit, power-off buffer circuit,

图5是本发明局域用电网络在线开关调制数字通讯控制系统的主从网络控制器实现通信的原理图。Fig. 5 is a schematic diagram of communication between the master-slave network controllers of the online switch modulation digital communication control system of the local power consumption network of the present invention.

图中:In the picture:

1、供电线路,2、主网络控制器、21、电源开关,22、驱动控制电路,23、电网同步信号提取电路,24、断电缓冲电路,25、物联网通信模块,26、键盘,27显示单元,3、从网络控制器,31、同步信息输入电路,32、从控制单元,41、主微控制器,42、从微控制器,51、主电源模块,52、从电源模块。1. Power supply line, 2. Main network controller, 21. Power switch, 22. Drive control circuit, 23. Grid synchronization signal extraction circuit, 24. Power-off buffer circuit, 25. Internet of Things communication module, 26. Keyboard, 27 Display unit, 3, slave network controller, 31, synchronous information input circuit, 32, slave control unit, 41, master microcontroller, 42, slave microcontroller, 51, master power module, 52, slave power module.

具体实施方式Detailed ways

为使本发明的技术方案和有益效果更加清楚,下面对本发明的实施方式做进一步的详细解释。In order to make the technical solutions and beneficial effects of the present invention clearer, the implementation manners of the present invention will be further explained in detail below.

如图1所示,局域用电网络在线开关调制数字通讯控制系统,包括主网络控制器2和从网络控制器3。主、从网络控制器2、3通过供电线路1连接,并且构成局域用电网络通信系统。更好的,供电线路1为交流220V的单电源供电网络,包括一条零线和一条火线。供电线路1的一端和市电供电电网连接,主网络控制器2安装在供电线路1上靠近市电供电电网的一端,从网络控制器3设有多个且并接在供电线路1上。主、从网络控制器2、3可通过主网络控制器2、从网络控制器3和供电线路1组成了一个局域通信网络实现通信。As shown in FIG. 1 , the online switch modulation digital communication control system of the local power consumption network includes a master network controller 2 and a slave network controller 3 . The master and slave network controllers 2 and 3 are connected through the power supply line 1, and constitute a local power consumption network communication system. Preferably, the power supply line 1 is a single power supply network of AC 220V, including a neutral line and a live line. One end of the power supply line 1 is connected to the mains power supply grid. The main network controller 2 is installed on the power supply line 1 near the end of the mains power supply grid. There are multiple slave network controllers 3 and connected to the power supply line 1. The master and slave network controllers 2 and 3 can communicate through a local communication network formed by the master network controller 2 , the slave network controller 3 and the power supply line 1 .

主网络控制器2是整个系统的中枢,是控制命令的发出者。如图2所示,主网络控制器2包括电源开关21、驱动控制电路22、主微控制器41、断电缓冲电路24以及和主微控制器41电气连接的物联网通信模块25、键盘26、显示单元27、电网同步信号提取电路23、主电源模块51。为了防止瞬时停电脉冲对主网络控制器2的影响,主电源模块51与电源开关21输入端前端供电线路1的零、火线电气连接,即主电源模块51和开关电源21靠近电网的一端的供电线路1电气连接。主电源模块51的输出端和主微控制器41电气连接用以给主网络控制器2提供电源。与主网络控制器2的主微控制器41电气连接的键盘26、显示单元27、物联网通信模块25用以实现控制指令的获取。键盘26以及显示单元27用以实现数据的显示的指令输入,物联网通信模块25用以实现将电脑或者手机上的指令通过通信的方式传递到主网络控制器2的主微控制器41上。物联网通信模块25是一种连接终端设备和互联网的通信模块,它将终端设备的信息传到互联网上以便于通过手机和电脑进行控制。The main network controller 2 is the center of the whole system and the sender of control commands. As shown in Figure 2, the main network controller 2 includes a power switch 21, a drive control circuit 22, a main microcontroller 41, a power-off buffer circuit 24, and an IoT communication module 25 and a keyboard 26 electrically connected to the main microcontroller 41 , a display unit 27 , a grid synchronization signal extraction circuit 23 , and a main power supply module 51 . In order to prevent the impact of the instantaneous power failure pulse on the main network controller 2, the main power module 51 is electrically connected to the zero and live wires of the power supply line 1 at the input end of the power switch 21, that is, the main power module 51 and the switching power supply 21 are close to the power supply of the power grid. Line 1 is electrically connected. The output end of the main power supply module 51 is electrically connected with the main microcontroller 41 to provide power for the main network controller 2 . The keyboard 26, display unit 27, and IoT communication module 25 electrically connected to the main microcontroller 41 of the main network controller 2 are used to obtain control instructions. The keyboard 26 and the display unit 27 are used to input instructions for data display, and the IoT communication module 25 is used to transfer instructions from the computer or mobile phone to the main microcontroller 41 of the main network controller 2 through communication. The Internet of Things communication module 25 is a communication module that connects the terminal equipment with the Internet, and transmits the information of the terminal equipment to the Internet so as to be controlled by mobile phones and computers.

该系统的主网络控制器2通过在供电线路1上产生一个脉冲宽度不同的瞬时停电脉冲作为信息的载体将信息传递给连接在供电线路1上的从网络控制器3。因此主网络控制器2需要一个可控的开关装置安装在供电线路1上,该开关装置就是电源开关21。因此将电源开关21串联在供电线路1与市电供电电网的一端,用以实现供电线路1上瞬时停电脉冲的产生。在现有技术中,接触器、继电器都可以作为电源开关21,随着电力电子技术的发展,使用大功率双相晶闸管、IGBT等元器件实现通断控制也是较为常用的一种方式。The main network controller 2 of the system transmits the information to the slave network controller 3 connected to the power supply line 1 by generating an instantaneous power failure pulse with different pulse widths on the power supply line 1 as a carrier of information. Therefore, the main network controller 2 needs a controllable switching device installed on the power supply line 1 , and the switching device is the power switch 21 . Therefore, the power switch 21 is connected in series with one end of the power supply line 1 and the mains power supply network to realize the generation of instantaneous power failure pulses on the power supply line 1 . In the prior art, both contactors and relays can be used as the power switch 21 . With the development of power electronics technology, it is also a common way to realize on-off control by using components such as high-power two-phase thyristors and IGBTs.

更好的,如图4所示,电源开关21采用接触器来实现瞬时停电的控制。接触器设有常闭、常开触点和线圈绕组。为了实现停电,控制继电器的常开触点串联在市电供电网络和供电线路1之间,即所有的从网络控制器3安装在电源开关21输出端的后端的供电线路1上。更好的,接触器的线圈绕组的额定电压为交流220V。因此将接触器的线圈绕组的一端和电源开关21电网侧的供电线路1的零线电气连接,另一端串接驱动控制电路22和电源开关21电网侧的供电线路1供电线路1的火线电气连接。More preferably, as shown in FIG. 4 , the power switch 21 uses a contactor to realize instantaneous power failure control. The contactor has normally closed and normally open contacts and coil windings. In order to realize power failure, the normally open contact of the control relay is connected in series between the mains power supply network and the power supply line 1, that is, all slave network controllers 3 are installed on the power supply line 1 at the rear end of the power switch 21 output. Preferably, the rated voltage of the coil winding of the contactor is AC 220V. Therefore, one end of the coil winding of the contactor is electrically connected to the neutral wire of the power supply line 1 on the power grid side of the power switch 21, and the other end is connected in series with the drive control circuit 22 and the live wire of the power supply line 1 on the power grid side of the power switch 21 is electrically connected. .

由于电源开关21是串联在220V供电线路1上,如果主微控制器41直接控制电源开关21,会产生干扰甚至发生主微控制器41烧损的现象,因此电源开关21需要一个驱动控制电路22来实现强弱电的隔离。驱动控制电路22依据主微控制器41发出的控制指令驱动电源开关21实现供电线路1的通断。Since the power switch 21 is connected in series on the 220V power supply line 1, if the main microcontroller 41 directly controls the power switch 21, interference or even the phenomenon of burning of the main microcontroller 41 will occur, so the power switch 21 needs a drive control circuit 22 To achieve the isolation of strong and weak electricity. The drive control circuit 22 drives the power switch 21 according to the control command issued by the main microcontroller 41 to realize the on-off of the power supply line 1 .

更好的,为了实现驱动控制电路22对电源开关21的接触器线圈绕组的通电和断电的控制,驱动控制电路22使用可控硅SCR作为无触点开关。为了实现与220V市电供电网络的隔离保证主网络控制器2的安全,在驱动控制电路22里设置了光耦V3。驱动控制电路22还包括第五、六电阻R5、R6和电容C31。光耦V3的输入端用以和主网络控制器2的主微控制器41电气连接。在本发明中,为了保证从网络控制器3的安全,在主微控制器41和驱动控制电路22之间串联了断电缓冲电路24,因此光耦V3的输入端和断电缓冲电路24的输出端电气连接。光耦V3的输出端的第一端和可控硅SCR的第一主电极之间串联有第五、六电阻R5、R6,光耦V3的输出端的第二端与可控硅SCR的门极电气连接,用以驱动可控硅SCR的通断。电容C31的一端和第五、六电阻R5、R6的连接点电气连接,电容C31的另一端和可控硅SCR的第二主电极电气连接。可控硅SCR的第一、二主电极用以控制电源开关21的接触器的线圈绕组,即可控硅SCR的第一主电极和电源开关21的线圈绕组的一端电气连接,另一主电极和电源开关21输入端前端的供电线路1的电气连接。Preferably, in order to control the power on and off of the contactor coil winding of the power switch 21 by the drive control circuit 22 , the drive control circuit 22 uses a thyristor SCR as a non-contact switch. In order to realize isolation from the 220V mains power supply network and ensure the safety of the main network controller 2 , an optocoupler V3 is provided in the drive control circuit 22 . The drive control circuit 22 also includes fifth and sixth resistors R5 and R6 and a capacitor C31. The input end of the optocoupler V3 is used for electrical connection with the main microcontroller 41 of the main network controller 2 . In the present invention, in order to ensure the safety of the slave network controller 3, the power-off buffer circuit 24 is connected in series between the main micro-controller 41 and the drive control circuit 22, so the input terminal of the optocoupler V3 and the power-off buffer circuit 24 Output electrical connection. There are fifth and sixth resistors R5 and R6 in series between the first end of the output end of the optocoupler V3 and the first main electrode of the thyristor SCR, and the second end of the output end of the optocoupler V3 is electrically connected to the gate electrode of the thyristor SCR. Connected to drive the SCR on and off. One end of the capacitor C31 is electrically connected to the connection point of the fifth and sixth resistors R5 and R6, and the other end of the capacitor C31 is electrically connected to the second main electrode of the thyristor SCR. The first and second main electrodes of the thyristor SCR are used to control the coil winding of the contactor of the power switch 21, that is, the first main electrode of the thyristor SCR is electrically connected to one end of the coil winding of the power switch 21, and the other main electrode Electrical connection with the power supply line 1 at the front end of the input end of the power switch 21.

更好的,为了验证主网络控制器2发出的控制指令是否正确,在主网络控制器2中设置了电网同步信息提取电路23。电网同步信息提取电路23用以将供电线路1上的瞬时停电脉冲信号进行采集和转换然后传递给主网络控制器2的主微控制器41进行处理。电网同步信号提取电路23包括第一限流电阻R1、第二限流电阻R2、第一整流桥BD1、第一光电耦合器V1,所述第一整流桥BD1的交流输入端和供电线路1的零、火线之间分别串联有第一限流电阻R1、第二限流电阻R2,第一整流桥BD1的直流输出端与第一光电耦合器V1的正负极之间串联有电阻,第一光电耦合器V1的射极输出引脚与主网络控制器2的主微控制器41电气连接。Preferably, in order to verify whether the control instruction issued by the main network controller 2 is correct, a grid synchronization information extraction circuit 23 is set in the main network controller 2 . The power grid synchronization information extraction circuit 23 is used to collect and convert the instantaneous power failure pulse signal on the power supply line 1 and then transmit it to the main microcontroller 41 of the main network controller 2 for processing. The grid synchronization signal extraction circuit 23 includes a first current-limiting resistor R1, a second current-limiting resistor R2, a first rectifier bridge BD1, a first photocoupler V1, the AC input terminal of the first rectifier bridge BD1 and the power supply line 1 A first current-limiting resistor R1 and a second current-limiting resistor R2 are connected in series between the zero and live wires, and a resistor is connected in series between the DC output terminal of the first rectifier bridge BD1 and the positive and negative poles of the first photocoupler V1. The emitter output pin of the photocoupler V1 is electrically connected to the main microcontroller 41 of the main network controller 2 .

由于控制过程中电网会有发生停电的现象,由于供电电网的重合闸保护功能,会出现断电后立即送电的现象,电网的短暂的停电间隔会使从网络控制器3会出现断电停机,而从网络控制器3的重启需要一定初始化时间,为了是防止电网快速重新带电对从网络控制器3重启的影响,在电网断电后对主网络控制器2中的电源开关21进行锁定,等待一定之间后在对供电线路1进行送电以此来保护从网络控制器3电路的正常工作。因此在驱动控制电路22和微控制器41之间串联了断电缓冲电路24。Due to the phenomenon of power failure in the power grid during the control process, due to the reclosing protection function of the power supply grid, there will be a phenomenon of power transmission immediately after power failure, and the short power failure interval of the power grid will cause the slave network controller 3 to have a power failure shutdown , and the restart of the slave network controller 3 requires a certain initialization time. In order to prevent the impact of the rapid re-energization of the grid on the restart of the slave network controller 3, the power switch 21 in the master network controller 2 is locked after the grid is powered off. After waiting for a certain period of time, power is sent to the power supply line 1 to protect the normal operation of the circuit from the network controller 3 . Therefore, the power-off buffer circuit 24 is connected in series between the drive control circuit 22 and the microcontroller 41 .

更好的,断电缓冲电路24包括第七电阻R7、第一、二二极管D1、D2、第二电容C2、第三电容C3、第一、二三极管Q1、Q2、、第八、九、十电阻R8、R9、R10。Preferably, the power-off buffer circuit 24 includes a seventh resistor R7, first and second diodes D1 and D2, a second capacitor C2, a third capacitor C3, first and second triodes Q1 and Q2, eighth, nine and ten Resistors R8, R9, R10.

第七电阻R7的一端作为开机送电信号控制端,用以与主微控制器41电气连接。第七电阻R7的另一端分别与第一三极管Q1的基极,用以驱动第一三极管Q1的导通。第一、二二极管D1、D2的阴极并接之后作为瞬时停电脉冲信号控制端,用以连接主微控制器41。第一二极管D1的阳极和第一三极管Q1的基极、第二三极管Q2的集电极电气连接。第二二极管D2的阳极和第二三极管Q2的基极之间串接有第九电阻R9。第二二极管D2的阳极和第一三极管Q1的集电极之间串接有第八电阻R8。第二二极管D2的阳极和第二三极管Q2的发射极之间串接有第三电容C3。第二三极管Q2的发射极接地。第一三极管Q1的发射极接地。第十电阻R10的一端和第二电容C2的正极并接后与电源的正极VDD电气连接。第二电容C2的负极接地。第十电阻R10的另一端和第一三极管Q1的集电极作为控制信号的输出端。在该发明中第十电阻R10的另一端和第一三极管Q1的集电极串联驱动控制电路22的光耦V3,用以与驱动控制电路22中的可控硅SCR。One end of the seventh resistor R7 is used as a power-on power transmission signal control end for electrical connection with the main microcontroller 41 . The other end of the seventh resistor R7 is respectively connected to the base of the first transistor Q1 for driving the conduction of the first transistor Q1 . After the cathodes of the first and second diodes D1 and D2 are connected in parallel, they are used as the control terminal of the instantaneous power failure pulse signal for connecting to the main microcontroller 41 . The anode of the first diode D1 is electrically connected to the base of the first transistor Q1 and the collector of the second transistor Q2. A ninth resistor R9 is connected in series between the anode of the second diode D2 and the base of the second transistor Q2. An eighth resistor R8 is connected in series between the anode of the second diode D2 and the collector of the first triode Q1. A third capacitor C3 is connected in series between the anode of the second diode D2 and the emitter of the second transistor Q2. The emitter of the second transistor Q2 is grounded. The emitter of the first transistor Q1 is grounded. One end of the tenth resistor R10 is connected in parallel with the positive pole of the second capacitor C2 and then electrically connected to the positive pole VDD of the power supply. The negative pole of the second capacitor C2 is grounded. The other end of the tenth resistor R10 and the collector of the first transistor Q1 serve as the output end of the control signal. In this invention, the other end of the tenth resistor R10 and the collector of the first triode Q1 drive the optocoupler V3 of the control circuit 22 in series to drive the SCR in the control circuit 22 .

主网络控制器2的主微控制器41与断电缓冲电路24的输入端电气连接,断电缓冲电路24的输出端和驱动控制电路22的输入端电气连接,驱动控制电路22的输出端和电源开关21的输入端电气连接。其工作原理如下:The main microcontroller 41 of the main network controller 2 is electrically connected to the input end of the power-off buffer circuit 24, the output end of the power-off buffer circuit 24 is electrically connected to the input end of the drive control circuit 22, and the output end of the drive control circuit 22 is electrically connected to the input end of the drive control circuit 22. The input end of the power switch 21 is electrically connected. It works as follows:

1、从网络控制器3的启动。由主网络控制器电路图4中断电缓冲电路24可知,当开机信号控制端为高电平时,第一三极管Q1导通,第二三极管Q2截止,光耦V3被驱动导通,光耦V3导通后控制可控硅SCR导通,电源开关21的接触器线圈绕组带电使电源开关21吸合,从而给供电线路1带电使从网络控制器3启动。1. Startup from the network controller 3. It can be seen from the main network controller circuit diagram 4 of the power interruption buffer circuit 24 that when the power-on signal control terminal is at a high level, the first triode Q1 is turned on, the second triode Q2 is turned off, and the optocoupler V3 is driven to conduct. After the optocoupler V3 is turned on, the thyristor SCR is turned on, and the coil winding of the contactor of the power switch 21 is electrified to make the power switch 21 pull in, thereby electrifying the power supply line 1 and starting the slave network controller 3 .

2、从网络控制器3的保护。由于从网络控制器3内的电容电感以及芯片等储能元件在断电后需要一定的时间进行放电复位后,从网络控制器3才能够正常启动工作。根据图4中断电缓冲电路24的电路结构可知,当出现停机信号后,即开机信号控制端有高电平变为低电平时,电源VDD失电。此时电容C2存储的电能经第十电阻R10、光耦V3、第八电阻R8、第九电阻R9、第二三极管Q2基极对地放电,并驱动第二三极管Q2导通将第一三极管Q1基极电位拉低以此锁住第一三极管Q1使其截止,由于光耦V3为电流驱动型,电容C2存储的电能经过第八、九电阻R8、R9阻值较大使光耦V3的输入电流很小导致驱动光耦V3的输出端截止,双向可控硅失去触发信号而截止控制电源开关21释放,在此期间如再次加入开机高电平信号时由于第一三极管Q1基极电位被第二三极管Q2导通拉低锁住,因此一段时间内不能开机,起到保护从网络控制器3断电复位的作用。待电容C2放电完毕使第二三极管Q2有导通变为截止并对第一三极管Q1基极解锁。因此防止了人员连续按动启动按钮、以及供电网络断电后重合闸对从网络控制器3的影响。2. From the protection of the network controller 3. Since the energy storage elements such as capacitors, inductors and chips in the slave network controller 3 need a certain period of time to discharge and reset after power-off, the slave network controller 3 can start to work normally. According to the circuit structure of the power-off buffer circuit 24 in FIG. 4 , it can be seen that when the shutdown signal occurs, that is, when the power-on signal control terminal changes from a high level to a low level, the power supply VDD is powered off. At this time, the electric energy stored in the capacitor C2 is discharged to the ground through the tenth resistor R10, the optocoupler V3, the eighth resistor R8, the ninth resistor R9, and the base of the second transistor Q2, and drives the second transistor Q2 to conduct. The base potential of the first triode Q1 is pulled down to lock the first triode Q1 to make it cut off. Since the optocoupler V3 is a current-driven type, the electric energy stored in the capacitor C2 passes through the resistance values of the eighth and ninth resistors R8 and R9 If the input current of the optocoupler V3 is too small, the output terminal of the optocoupler V3 will be cut off, and the triac loses the trigger signal and the cut-off control power switch 21 is released. The base potential of the transistor Q1 is turned on and pulled down to lock by the second transistor Q2, so it cannot be turned on for a period of time, which plays a role in protecting the network controller 3 from being powered off and reset. After the capacitor C2 is completely discharged, the second transistor Q2 is turned on and turned off, and the base of the first transistor Q1 is unlocked. Therefore, it prevents personnel from continuously pressing the start button and the influence of reclosing on the slave network controller 3 after the power supply network is powered off.

3,瞬时停电脉冲的产生。断电缓冲电路24中开机信号控制端为高电平时,电源开关21处于闭合状态。当瞬时停电脉冲信号出现时,主微控器41控制端通过第一、二二极管D1、D2输出一个低电平脉冲信号,因此将第一三极管Q1的基极的电压拉低,使第一三极管Q1关断,并通过驱动控制电路22控制电源开关21断开,即瞬时停电脉冲开始。同时由于第二二极管D2的作用将第二三极管Q2的基极的电压拉低,使第二三极管Q2关断,在停电脉冲期间有效的解除了断电保护功能,当停电脉冲结束即主微控器41控制端通过第一、二二极管D1、D2输出有低电平转为高电平时将第一三极管Q1导通,并控制驱动控制电路22双向可控硅SCR导通并驱动电源开关21吸合,完成一个瞬时停电脉冲的产生过程。瞬时停电脉冲时间为十毫秒以上。3. Generation of instantaneous power failure pulses. When the power-on signal control terminal in the power-off buffer circuit 24 is at a high level, the power switch 21 is in a closed state. When the momentary power failure pulse signal occurs, the control terminal of the main micro-controller 41 outputs a low-level pulse signal through the first and second diodes D1 and D2, so the voltage at the base of the first triode Q1 is pulled down to make the second A triode Q1 is turned off, and the drive control circuit 22 controls the power switch 21 to turn off, that is, the instantaneous power failure pulse starts. At the same time, due to the action of the second diode D2, the voltage of the base of the second transistor Q2 is pulled down, so that the second transistor Q2 is turned off, and the power-off protection function is effectively released during the power-off pulse. At the end of the pulse, the control terminal of the main micro-controller 41 turns on the first triode Q1 when the output of the first and second diodes D1 and D2 changes from a low level to a high level, and controls the drive control circuit 22 bidirectional thyristor SCR Turn on and drive the power switch 21 to pull in, and complete a process of generating an instantaneous power failure pulse. The instantaneous power failure pulse time is more than ten milliseconds.

主网络控制器2用以发送数据或者控制指令,从网络控制器3用以接收数据和控制指令。如图3所示,从网络控制器3包括从微控制器42、同步信息提取电路31、从电源模块52、从机控制单元32。从微控制器42和从电源模块52是从网络控制器3运行的基本电路。同步信息提取电路31用以对供电线路1上的瞬时停电脉冲信号进行采集和转换并传递给从微控制器42。从控制单元32用以执行从网络控制器3在供电线路1上获取的控制指令。The master network controller 2 is used to send data or control instructions, and the slave network controller 3 is used to receive data and control instructions. As shown in FIG. 3 , the slave network controller 3 includes a slave microcontroller 42 , a synchronization information extraction circuit 31 , a slave power module 52 , and a slave control unit 32 . The slave microcontroller 42 and the slave power module 52 are basic circuits that the slave network controller 3 operates. The synchronous information extraction circuit 31 is used to collect and convert the instantaneous power failure pulse signal on the power supply line 1 and transmit it to the slave microcontroller 42 . The slave control unit 32 is used to execute control commands obtained from the network controller 3 on the power supply line 1 .

更好的,同步信息提取电路31包括第三、四限流电阻R3、R4、第二整流桥BD2、第二光电耦合器V2,所述第二整流桥BD2的交流输入端和供电线路的零、火线之间分别串联有第三限流电阻R3、第四限流电阻R4,第二整流桥BD2的直流输出端与第二光电耦合器V2正负极之间串联有电阻,用以给第二光电耦合器V2限流。第二光电耦合器V2的射极输出引脚与从网络控制器3的从微控制器42电气连接,用以将瞬时停电脉冲信号传递给从微控制器42进行数据的处理。Preferably, the synchronous information extraction circuit 31 includes the third and fourth current limiting resistors R3, R4, the second rectifier bridge BD2, the second photocoupler V2, the AC input terminal of the second rectifier bridge BD2 and the zero of the power supply line A third current-limiting resistor R3 and a fourth current-limiting resistor R4 are respectively connected in series between the live wire and the live wire, and a resistor is connected in series between the DC output terminal of the second rectifier bridge BD2 and the positive and negative poles of the second photocoupler V2 to provide the first The second photocoupler V2 limits the current. The emitter output pin of the second photocoupler V2 is electrically connected to the slave microcontroller 42 of the slave network controller 3 , so as to transmit the instantaneous power failure pulse signal to the slave microcontroller 42 for data processing.

更好的,为了防止从网络控制器3在瞬时停电脉冲产生时导致从网络控制器3断电,在从网络控制器3的从电源模块52带有储能元件的开关电源。从电源模块52的输入端和电源开关21的输出端后端的供电线路1的零、火线电气连接,从电源模块52的输出端与从微控制器42电气连接。储能元件用以保证在供电线路1断电的瞬间从网络控制器3能够正常工作。更好的,现有技术中,较为常用的储能元件为电解电容,将电解电容的两个电极并接在开关电源的输出端,当开关电源的交流电失电后,电解电容内存储的电能给从网络控制器3中的各元件提供电源。该控制系统数据传输模式不仅应用在交流配电网络中,还可以应用在直流供电网络中。Better, in order to prevent the slave network controller 3 from powering off when the instantaneous power failure pulse is generated, the slave power supply module 52 of the slave network controller 3 has a switching power supply with an energy storage element. The input end of the slave power module 52 is electrically connected with the zero and live wires of the power supply line 1 at the rear end of the output end of the power switch 21 , and the output end of the slave power module 52 is electrically connected with the slave microcontroller 42 . The energy storage element is used to ensure that the slave network controller 3 can work normally when the power supply line 1 is cut off. Even better, in the prior art, the more commonly used energy storage element is an electrolytic capacitor, and the two electrodes of the electrolytic capacitor are connected to the output terminal of the switching power supply in parallel. When the alternating current of the switching power supply loses power, the electric energy stored in the electrolytic capacitor Power is supplied to each component in the slave network controller 3 . The data transmission mode of the control system is not only applied in the AC power distribution network, but also can be applied in the DC power supply network.

以上是对局域用电网络在线开关调制数字通讯控制系统的结构的描述,下面对该系统主、从网络控制器2、3实现通信的具体方法进行描述。如图5所示,其方法包括以下步骤:The above is the description of the structure of the online switch modulation digital communication control system of the local power consumption network, and the specific method for realizing communication between the master and slave network controllers 2 and 3 of the system will be described below. As shown in Figure 5, its method includes the following steps:

步骤1、主网络控制器2获取控制指令。获取控制指令的方法有:Step 1. The main network controller 2 acquires a control instruction. The methods for obtaining control instructions are:

1.1,通过键盘26和显示单元27将控制指令输入到主网络控制器2的主微控制器41中;1.1, control commands are input into the main microcontroller 41 of the main network controller 2 through the keyboard 26 and the display unit 27;

1.2,通过物联网通信模块25,将控制指令通过电脑或者手机发送到主网络控制器2的主微控制器41中;1.2, through the Internet of Things communication module 25, the control command is sent to the main microcontroller 41 of the main network controller 2 through a computer or a mobile phone;

步骤2、数据调制。具体为:Step 2. Data modulation. Specifically:

主微控制器41控制电源开关21在供电线路1上产生单个瞬时停电脉冲,停电脉冲的宽度代表码元的数据长度,由于脉冲宽度不同因此所对应的每一个码元的数据长度也不同,依据不同的码元数据长度进行信息的编码;The main microcontroller 41 controls the power switch 21 to generate a single instantaneous power failure pulse on the power supply line 1. The width of the power failure pulse represents the data length of the symbol. Because the pulse width is different, the corresponding data length of each symbol is also different. Different symbol data lengths are used to encode information;

主微控制器41将得到的控制指令转换成一组码元数据,然后将这一组码元数据转换成产生不同瞬时停电脉冲的驱动程序,主微控制器41再将驱动脉冲传递给驱动控制电路22。The main microcontroller 41 converts the obtained control instructions into a group of symbol data, and then converts this group of symbol data into driver programs that generate different instantaneous power failure pulses, and then the main microcontroller 41 transmits the drive pulses to the drive control circuit twenty two.

步骤3、主网络控制器2的驱动控制电路22根据主微控制器41的指令控制电源开关21在供电线路1上产生瞬时停电脉冲信息。Step 3, the driving control circuit 22 of the main network controller 2 controls the power switch 21 to generate instantaneous power failure pulse information on the power supply line 1 according to the instruction of the main microcontroller 41 .

步骤4、数据解调。具体为:Step 4, data demodulation. Specifically:

从网络控制器3通过同步信息提取电路31检测瞬时停电脉冲,并通过第二光电耦合器V2的射极输出引脚传递给从网络控制器3的从微控制器42,从网络控制器3的从微控制器42计算瞬时停电脉冲的宽度;Slave network controller 3 detects instantaneous power failure pulse by synchronous information extracting circuit 31, and passes to slave microcontroller 42 of network controller 3 by the emitter output pin of the second optocoupler V2, from network controller 3 Calculate the width of the momentary power failure pulse from microcontroller 42;

从网络控制器(3)的从微控制器(42)将检测到的单个瞬时停电脉冲信息转换成一组带有数据信息的码元,并根据预设的通信协议进行解码,生成控制指令;From the microcontroller (42) of the network controller (3), the detected single instantaneous power failure pulse information is converted into a group of symbols with data information, and decoded according to a preset communication protocol to generate control instructions;

步骤5、从网络控制器3的从微控制器42将控制指令发送给从控制单元32,从控制单元32根据控制指令产生PWM及开关等控制信息并对用电设备的控制。Step 5, the slave microcontroller 42 of the network controller 3 sends the control command to the slave control unit 32, and the slave control unit 32 generates PWM and switch control information according to the control command and controls the electrical equipment.

综上所述,仅为本发明的较佳实施例而已,并非用来限定本发明的范围,通过上述的说明内容,相关工作人员完全可以在不偏离本项发明技术思想的范围内,进行多样的变更以及修改。本发明的技术性范围并不局限于说明书上的内容,凡依本发明的要求范围所述的形状、构造、特征及精神所谓的均等变化与修饰,均应包括与本发明的权利要求范围内。In summary, it is only a preferred embodiment of the present invention, and it is not used to limit the scope of the present invention. Through the above description, relevant workers can perform various tasks without departing from the scope of the technical idea of the present invention. changes and modifications. The technical scope of the present invention is not limited to the contents of the description, and all so-called equivalent changes and modifications in terms of shape, structure, features and spirit described in the scope of the claims of the present invention shall be included in the scope of the claims of the present invention.

Claims (7)

1. The local power utilization network on-line switch modulation digital communication control system is characterized in that:
comprises a master network controller (2) and a slave network controller (3),
the main network controller (2) comprises a power switch (21), a driving control circuit (22), a main microcontroller (41), a power-off buffer circuit (24), an Internet of things communication module (25), a keyboard (26), a display unit (27), a power grid synchronous signal extraction circuit (23) and a main power module (51) which are electrically connected with the main microcontroller (41),
the power switch (21) is connected in series in the power supply circuit (1), a power-off buffer circuit (24) is connected in series between the input end of the drive control circuit (22) and the main microcontroller (41), the output end of the drive control circuit (22) is electrically connected with the control end of the power switch (21), the main power module (51) is electrically connected with the power supply circuit (1) of the power grid end of the input end of the power switch (21), the power grid synchronous signal extraction circuit (23) is electrically connected with the power supply circuit (1) of the rear end of the output end of the power switch (21),
the slave network controller (3) comprises a slave microcontroller (42), a synchronous information extraction circuit (31), a slave power module (52) and a slave control unit (32), wherein the slave microcontroller (42) is electrically connected with the synchronous information extraction circuit (31), the slave power module (52) and the slave control unit (32), and the synchronous information extraction circuit (31) and the slave power module (52) are electrically connected with a power supply circuit (1) at the rear end of the output end of the power switch (21);
the power-off buffer circuit (24) comprises a seventh resistor (R7), a first diode (D1), a second diode (D2), a second capacitor (C2), a third capacitor (C3), a first triode (Q1), a second triode (Q2), an eighth resistor, a ninth resistor and a tenth resistor (R8, R9 and R10),
one end of the seventh resistor (R7) is used as a power-on power transmission signal control end and is electrically connected with a main microcontroller (41) of the main network controller (2), the other end of the seventh resistor (R7) is electrically connected with a base electrode of the first triode (Q1), a collector electrode of the second triode (Q2) and an anode of the first diode (D1), cathodes of the first and second diodes (D1 and D2) are connected in parallel and serve as power failure pulse signal control ends and are used for being connected with a main microcontroller (41) of the main network controller (2), an anode of the first diode (D1) is electrically connected with a base electrode of the first triode (Q1) and a collector electrode of the second triode (Q2), a ninth resistor (R9) is connected between an anode of the second diode (D2) and a collector electrode of the first triode (Q1) in series, an eighth resistor (R8) is connected between an anode of the second diode (D2) and a collector electrode of the second triode (Q2) in series, an anode of the second diode (D2) and a cathode of the second diode (C2) are connected with a capacitor of the second triode (Q2) in series, and a capacitor of the second triode (Q2) is connected with the anode of the second diode (C2) in series, and a capacitor of the second triode (C2) is connected with the ground, and the capacitor of the second triode (C2) is connected with the capacitor (C2 in series, and a optocoupler (V3) is connected in series between the other end of the tenth resistor (R10) and the collector electrode of the first triode (Q1) and is used for controlling a driving control circuit (22), and the emitter electrode of the first triode (Q1) is grounded.
2. The local area power-on-line switch-modulated digital communication control system of claim 1, wherein:
the power supply line (1) is an alternating current power supply grid.
3. The local area power-on-line switch-modulated digital communication control system of claim 1, wherein:
the power grid synchronous signal extraction circuit (23) comprises a first current limiting resistor (R1), a second current limiting resistor (R2), a first rectifying bridge (BD 1) and a first photoelectric coupler (V1), wherein the first current limiting resistor (R1) and the second current limiting resistor (R2) are respectively connected in series between an alternating current input end of the first rectifying bridge (BD 1) and zero and fire wires of a power supply circuit (1) at the rear end of an output end of a power switch (21), a direct current output end of the first rectifying bridge (BD 1) is connected with an anode and a cathode of an input end of the first photoelectric coupler (V1) in series, an emitter output pin of the first photoelectric coupler (V1) is electrically connected with a main microcontroller (41), and a collector of the first photoelectric coupler (V1) is electrically connected with a positive electrode of a power supply.
4. The local area power-on-line switch-modulated digital communication control system of claim 1, wherein:
the synchronous information extraction circuit (31) comprises a third current limiting resistor (R3) and a fourth current limiting resistor (R4), a second rectifying bridge (BD 2) and a second photoelectric coupler (V2), wherein the third current limiting resistor (R3) and the fourth current limiting resistor (R4) are respectively connected in series between an alternating current input end of the second rectifying bridge (BD 2) and a zero line and a fire line of a power supply circuit (1) at the rear end of an output end of a power switch (21), a direct current output end of the second rectifying bridge (BD 2) is connected with an anode and a cathode of an input end of the second photoelectric coupler (V2) after being connected with the resistors in series, and an emitter output pin of the second photoelectric coupler (V2) is electrically connected with a slave microcontroller (42), and a collector pin of the second photoelectric coupler (V2) is electrically connected with a power supply anode.
5. The local area power-on-line switch-modulated digital communication control system of claim 1, wherein:
the secondary power supply module (52) is a switching power supply, the switching power supply is provided with an energy storage element, the input end of the switching power supply is electrically connected with zero and live wires of a power supply circuit (1) at the rear end of the output end of a power switch (21), the output end of the secondary power supply module (52) is electrically connected with a secondary microcontroller (42), and the energy storage element is used for ensuring normal operation of the secondary network controller (3) at the moment when the power supply circuit (1) is powered off.
6. The local area power-on-line switch-modulated digital communication control system of claim 1, wherein:
the power switch (21) is a contactor, a normally open contact of the power switch (21) is connected in series with one end of the power supply circuit (1) connected with a power grid, one end of a coil winding of the power switch (21) is electrically connected with a zero line of the power supply circuit (1) at the front end of the power switch (21), and the other end of the coil winding of the power switch (21) is connected in series with a drive control circuit (22) and then electrically connected with a live wire of the power supply circuit (1) at the front end of the power switch (21).
7. The communication method of a local area network on-line switch modulation digital communication control system according to claim 1, characterized by comprising the steps of:
step 1, a main network controller (2) acquires a control instruction, and the method for acquiring the control instruction comprises the following steps:
1.1, transmitting control instructions to a main microcontroller (41) of a main network controller (2) through a keyboard (26) and a display unit (27);
1.2, sending a control instruction to a main microcontroller (41) of the main network controller (2) through a computer or a mobile phone by an Internet of things communication module (25);
step 2, data modulation, specifically:
the main microcontroller (41) controls the power switch (21) to generate an instantaneous power-off pulse on the power supply line (1), the width of the power-off pulse represents the data length of a code element, the data length of each corresponding code element is different because the pulse width is different, and information is encoded according to the different code element data lengths;
the main microcontroller (41) converts the obtained control instruction into a group of code metadata, then compiles the group of code metadata into a driving program for generating different instantaneous power failure pulse widths, and the main microcontroller (41) transmits the driving pulse to the driving control circuit (22);
step 3, a drive control circuit (22) of the main network controller (2) controls a power switch (21) to generate a group of instantaneous power failure pulses according to the instruction of the main microcontroller (41);
and 4, data demodulation, specifically:
the slave network controller (3) detects the instantaneous power failure pulse through the synchronous information extraction circuit (31) and transmits the instantaneous power failure pulse to the slave microcontroller (42) of the slave network controller (3) through the emitter output pin of the second photoelectric coupler (V2), and the slave microcontroller (42) of the slave network controller (3) calculates the width of the instantaneous power failure pulse;
the slave microcontroller (42) of the slave network controller (3) converts a group of detected instantaneous power failure pulse information into a group of code elements with data information, decodes the code elements according to a preset communication protocol and generates a control instruction;
and step 5, a slave microcontroller (42) of the slave network controller (3) sends a control instruction to the slave control unit (32), and the slave control unit (32) generates PWM and switch control information according to the control instruction to control the electric equipment.
CN201710776490.8A 2017-09-01 2017-09-01 On-line Switch Modulation Digital Communication Control System for Local Power Network Active CN107437849B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710776490.8A CN107437849B (en) 2017-09-01 2017-09-01 On-line Switch Modulation Digital Communication Control System for Local Power Network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710776490.8A CN107437849B (en) 2017-09-01 2017-09-01 On-line Switch Modulation Digital Communication Control System for Local Power Network

Publications (2)

Publication Number Publication Date
CN107437849A CN107437849A (en) 2017-12-05
CN107437849B true CN107437849B (en) 2023-07-14

Family

ID=60460170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710776490.8A Active CN107437849B (en) 2017-09-01 2017-09-01 On-line Switch Modulation Digital Communication Control System for Local Power Network

Country Status (1)

Country Link
CN (1) CN107437849B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109375556A (en) * 2018-12-10 2019-02-22 广东新宝电器股份有限公司 Control circuit and control method
CN113472393B (en) * 2021-07-02 2022-11-15 淄博立鼎电子网络科技有限公司 Pulse current data communication system based on power line

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534444A (en) * 2016-11-13 2017-03-22 南京汉隆科技有限公司 Sound control network phone device and control method thereof

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2148212Y (en) * 1992-07-14 1993-12-01 张春华 Starting alarm controller for machine tool and power equipment
CN101009502A (en) * 2006-01-24 2007-08-01 黄勇 A DC power line carrier communication method, system and lamp series using the system
FR2929058B1 (en) * 2008-03-20 2014-01-10 Watteco LOW VOLTAGE CONTROL INTERFACE COUPLER FOR MULTIPULSE TRANSMITTER
CN205489605U (en) * 2016-01-14 2016-08-17 深圳市创维群欣安防科技股份有限公司 Time delay starting circuit and mobile unit
CN106020023B (en) * 2016-05-24 2018-08-17 朱永斌 A kind of online phase-modulation digital communication control system of local power utilization network
CN206264804U (en) * 2016-12-02 2017-06-20 华南理工大学 A kind of battery management system auto sleep and the circuit for waking up
CN207218378U (en) * 2017-09-01 2018-04-10 朱永斌 The online switch modulation digital communication control system of local power utilization network

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534444A (en) * 2016-11-13 2017-03-22 南京汉隆科技有限公司 Sound control network phone device and control method thereof

Also Published As

Publication number Publication date
CN107437849A (en) 2017-12-05

Similar Documents

Publication Publication Date Title
CN103488159B (en) A kind of distribution box type smart home terminal and integrated protection controller
US8914161B2 (en) Power supply control device and ventilating device using same
CN202454840U (en) Multipurpose delay power socket
CN107069655B (en) Voltage protection circuit
CN203561857U (en) A Low Power Standby Control System
CN106841762A (en) Zero cross detection circuit and home appliance
CN203457063U (en) High-frequency switching power supply output rectifier circuit
CN107437849B (en) On-line Switch Modulation Digital Communication Control System for Local Power Network
CN201725734U (en) Time-controlled power switch
CN203561847U (en) A Low Power Consumption Standby Circuit Control System
CN207218378U (en) The online switch modulation digital communication control system of local power utilization network
CN204626593U (en) A kind of water outlet anti-scalding protection device of the electronic toilet
CN202975669U (en) Low standby power-consumption control circuit
CN1588470A (en) Method for realizing zero power consumption standby of household electric appliance
CN203883795U (en) Single-live-wire intelligent switch control circuit
CN202561966U (en) Control circuit of air conditioner and air conditioner
CN203027136U (en) Direct current socket
CN105305171A (en) Remote-controlled intelligent socket
CN204559952U (en) A kind of for the intelligent switch controller in intelligent illuminating system
CN204559951U (en) A kind of intelligent illuminating system
CN207975006U (en) driving circuit
CN201918972U (en) A micro-power consumption standby switch control circuit and its equipment
CN206250835U (en) Voltage transformer power-supply device and its power supply prepared auto restart control device
CN205265549U (en) Realization is less than 0. 1uw consumption standby power circuit
CN203166244U (en) Light-controlled power source socket

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20230619

Address after: 253000 137 Kaiyuan street, Linyi County, Dezhou City, Shandong Province

Applicant after: LINYI POWER SUPPLY COMPANY OF STATE GRID SHANDONG ELECTRIC POWER CO.

Address before: No. 302, Floor 16, Shengshihaoting, Zhoucun District, Zibo City, Shandong Province 255399

Applicant before: Zhu Yongbin

GR01 Patent grant
GR01 Patent grant