CN108333961A - A kind of new distribution network data acquisition terminal - Google Patents

A kind of new distribution network data acquisition terminal Download PDF

Info

Publication number
CN108333961A
CN108333961A CN201711498441.9A CN201711498441A CN108333961A CN 108333961 A CN108333961 A CN 108333961A CN 201711498441 A CN201711498441 A CN 201711498441A CN 108333961 A CN108333961 A CN 108333961A
Authority
CN
China
Prior art keywords
module
main control
distribution network
data acquisition
electric energy
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.)
Pending
Application number
CN201711498441.9A
Other languages
Chinese (zh)
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.)
Lishui Power Supply Co of State Grid Zhejiang Electric Power Co Ltd
State Grid Corp of China SGCC
Original Assignee
Lishui Power Supply Co of State Grid Zhejiang Electric Power Co Ltd
State Grid Corp of China SGCC
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 Lishui Power Supply Co of State Grid Zhejiang Electric Power Co Ltd, State Grid Corp of China SGCC filed Critical Lishui Power Supply Co of State Grid Zhejiang Electric Power Co Ltd
Priority to CN201711498441.9A priority Critical patent/CN108333961A/en
Publication of CN108333961A publication Critical patent/CN108333961A/en
Pending legal-status Critical Current

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/00Program-control systems
    • G05B19/02Program-control systems electric
    • G05B19/04Program control other than numerical control, i.e. in sequence controllers or logic controllers
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere

Landscapes

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

Abstract

本发明公开了一种新型配电网数据采集终端。它包括主控板、数据采集板和基板,主控板上设有主控模块、GPRS模块、串口模块、存储模块、报警模块、人机交互模块以及检测配电开关状态的开关状态采集电路,数据采集板上设有电能表模块,基板上设有电源模块和交流信号转换电路,主控模块分别与GPRS模块、串口模块、存储模块、报警模块、人机交互模块和开关状态采集电路电连接,主控模块通过串口模块与电能表模块电连接,电能表模块与交流信号转换电路电连接。本发明实现了对电压、电流、功率、功率因数等电力参数的实时监测,采集开关状态,具有无线通讯技术,将数据和状态反馈给主站,为配电网规划、设计、运维和营销提供数据基础和科学决策依据。

The invention discloses a novel distribution network data acquisition terminal. It includes a main control board, a data acquisition board and a substrate. The main control board is equipped with a main control module, a GPRS module, a serial port module, a storage module, an alarm module, a human-computer interaction module, and a switch state acquisition circuit for detecting the state of a power distribution switch. There is an electric energy meter module on the data acquisition board, a power supply module and an AC signal conversion circuit on the base board, and the main control module is electrically connected to the GPRS module, serial port module, storage module, alarm module, human-computer interaction module and switch state acquisition circuit. , the main control module is electrically connected to the electric energy meter module through the serial port module, and the electric energy meter module is electrically connected to the AC signal conversion circuit. The invention realizes real-time monitoring of power parameters such as voltage, current, power, power factor, etc., collects switch status, has wireless communication technology, and feeds data and status back to the main station, providing distribution network planning, design, operation and maintenance and marketing Provide data basis and scientific decision-making basis.

Description

一种新型配电网数据采集终端A new type of distribution network data acquisition terminal

技术领域technical field

本发明涉及配电网数据监测技术领域,尤其涉及一种新型配电网数据采集终端。The invention relates to the technical field of distribution network data monitoring, in particular to a novel distribution network data acquisition terminal.

背景技术Background technique

配电网是电力系统二次侧直接和低压供用户相连的网络,配电网也是发电、输电、变电、配电的最后一个环节,是电力系统自动化中占有着重要的地位。配电网有两种,城市配电网和农村配电网,两种网络都是由多途径供电、运行方式灵活,因此配电网也复杂多变,配电网多为树状结构,架空线路占绝大部分,可靠性较差,事故率多,例如配电变压器符合严重超载造成的设备损坏、三相负载严重造成的配电变压器损坏、配电网长期轻负荷运行所带来的浪费问题,因此需要加强智能配电网的管理和应用。The distribution network is the network that directly connects the secondary side of the power system with the low-voltage power supply users. The distribution network is also the last link of power generation, transmission, transformation and distribution, and occupies an important position in the automation of the power system. There are two types of distribution network, urban distribution network and rural distribution network. Both networks are powered by multiple channels and have flexible operation modes. Therefore, the distribution network is also complex and changeable. Most of the distribution network is a tree structure, overhead Lines account for the vast majority, with poor reliability and high accident rates, such as equipment damage caused by severe overloading of distribution transformers, damage of distribution transformers caused by severe three-phase loads, and waste caused by long-term light-load operation of distribution networks Therefore, it is necessary to strengthen the management and application of smart distribution network.

发明内容Contents of the invention

本发明为了解决上述问题,提供了一种新型配电网数据采集终端,其实现了对电压、电流、功率、功率因数等电力参数的实时监测,采集开关状态,具有无线通讯技术,将数据和状态反馈给主站,为配电网规划、设计、运维和营销提供数据基础和科学决策依据。In order to solve the above problems, the present invention provides a new type of distribution network data acquisition terminal, which realizes real-time monitoring of power parameters such as voltage, current, power, and power factor, and collects switch states. It has wireless communication technology and integrates data and The status is fed back to the main station to provide data basis and scientific decision-making basis for distribution network planning, design, operation and maintenance and marketing.

为了解决上述问题,本发明采用以下技术方案予以实现:In order to solve the above problems, the present invention adopts the following technical solutions to achieve:

本发明的一种新型配电网数据采集终端,包括主控板、数据采集板和基板,所述主控板上设有主控模块、GPRS模块、串口模块、存储模块、报警模块、人机交互模块以及检测配电开关状态的开关状态采集电路,所述数据采集板上设有电能表模块,所述基板上设有电源模块和交流信号转换电路,所述电源模块用于将从配电网输入的交流电压转换为直流电压给主控板、数据采集板和基板供电,所述交流信号转换电路用于将配电网上的强电信号转换为弱电信号为电能表模块提供采样信号,所述主控模块分别与GPRS模块、串口模块、存储模块、报警模块、人机交互模块和开关状态采集电路电连接,所述主控模块通过串口模块与电能表模块电连接,所述电能表模块与交流信号转换电路电连接。A novel distribution network data acquisition terminal of the present invention includes a main control board, a data acquisition board and a substrate, and the main control board is provided with a main control module, a GPRS module, a serial port module, a storage module, an alarm module, a man-machine An interactive module and a switch state acquisition circuit for detecting the state of the power distribution switch. The data acquisition board is provided with an electric energy meter module, and the base board is provided with a power supply module and an AC signal conversion circuit. The AC voltage input by the network is converted into a DC voltage to supply power to the main control board, data acquisition board and base board. The AC signal conversion circuit is used to convert the strong electric signal on the distribution network into a weak electric signal to provide sampling signals for the electric energy meter module. The main control module is electrically connected with the GPRS module, the serial port module, the storage module, the alarm module, the human-computer interaction module and the switch state acquisition circuit respectively, and the main control module is electrically connected with the electric energy meter module through the serial port module, and the electric energy meter module It is electrically connected with the AC signal conversion circuit.

在本技术方案中,基板上的电源模块的输入端与配电网连接,电源模块将从配电网输入的交流电压转换为直流电压给主控板、数据采集板和基板供电。In this technical solution, the input end of the power module on the substrate is connected to the distribution network, and the power module converts the AC voltage input from the distribution network into a DC voltage to supply power to the main control board, the data acquisition board and the substrate.

交流信号转换电路用于将配电网上的强电信号转换为弱电信号,为电能表模块提供采样信号(电流和电压),电能表模块检测采样信号计算出配电网的电压、电流、功率、功率因数等电力参数,并将检测的数据发送到主控模块,实现检测配电网电压、电流的功能。The AC signal conversion circuit is used to convert the strong electric signal on the distribution network into a weak electric signal, and provide the sampling signal (current and voltage) for the electric energy meter module, and the electric energy meter module detects the sampling signal to calculate the voltage, current, power, power factor and other power parameters, and send the detected data to the main control module to realize the function of detecting the voltage and current of the distribution network.

主控模块接收电能表模块发送的采集数据,进行分析计算,得到相关统计结果,当出现异常信息时报警模块进行报警,同时将相关信息、数据存储在存储模块。主控模块通过GPRS模块将电能表模块的采集数据、自身分析计算的结果及监测的异常情况发送到主站。主控模块可以接收主站的信息。开关状态采集电路用于检测配电开关处于合闸状态还是开闸状态。The main control module receives the collected data sent by the electric energy meter module, performs analysis and calculation, and obtains relevant statistical results. When abnormal information occurs, the alarm module sends an alarm, and at the same time stores relevant information and data in the storage module. The main control module sends the collected data of the electric energy meter module, the results of its own analysis and calculation and the abnormal conditions monitored to the main station through the GPRS module. The master control module can receive information from the master station. The switch state acquisition circuit is used to detect whether the power distribution switch is in the closed state or the open state.

本发明采用三层电路板实现强电和弱电之间的隔离,强电只出现在基板和数据采集板上,不会与主控板接触,保护了主控板上电子器件的安全。The invention adopts a three-layer circuit board to realize the isolation between strong electricity and weak electricity, and the strong electricity only appears on the base plate and the data acquisition board, and will not contact the main control board, thus protecting the safety of electronic devices on the main control board.

作为优选,所述人机交互模块包括显示屏、LED指示灯和按键,所述主控模块分别与显示屏、LED指示灯和按键电连接。Preferably, the human-computer interaction module includes a display screen, LED indicator lights and buttons, and the main control module is electrically connected to the display screen, LED indicator lights and buttons respectively.

作为优选,所述主控模块通过GPRS模块与主站进行无线通信。Preferably, the main control module communicates wirelessly with the main station through a GPRS module.

作为优选,所述基板上还设有用于控制配电开关合闸/开闸的开关控制电路,所述开关控制电路与主控模块电连接。Preferably, a switch control circuit for controlling closing/opening of the power distribution switch is further provided on the substrate, and the switch control circuit is electrically connected to the main control module.

作为优选,所述电能表模块包括ATT7022B电能计量芯片和STC12C5412单片机,所述ATT7022B电能计量芯片与交流信号转换电路电连接,所述ATT7022B电能计量芯片通过SPI接口与STC12C5412单片机电连接,所述主控模块通过串口模块与STC12C5412单片机电连接。Preferably, the electric energy meter module includes an ATT7022B electric energy metering chip and an STC12C5412 single-chip microcomputer, the ATT7022B electric energy metering chip is electrically connected to an AC signal conversion circuit, the ATT7022B electric energy metering chip is electrically connected to the STC12C5412 single-chip microcomputer through an SPI interface, and the main control The module is electrically connected with the STC12C5412 microcontroller through the serial port module.

作为优选,所述电源模块包括AC-DC转换模块、DC-DC转换模块和LDO模块,所述AC-DC转换模块的输入端与三相交流电连接,所述AC-DC转换模块的输出端与DC-DC转换模块的输入端、LDO模块的输入端电连接,所述AC-DC转换模块输出的电压给基板供电,DC-DC转换模块输出的电压给数据采集板供电,LDO模块输出的电压给主控板供电。Preferably, the power supply module includes an AC-DC conversion module, a DC-DC conversion module and an LDO module, the input end of the AC-DC conversion module is connected to the three-phase alternating current, and the output end of the AC-DC conversion module is connected to the The input end of the DC-DC conversion module and the input end of the LDO module are electrically connected, the voltage output by the AC-DC conversion module supplies power to the substrate, the voltage output by the DC-DC conversion module supplies power to the data acquisition board, and the voltage output by the LDO module Supply power to the main control board.

作为优选,所述主控板上还设有蓄电池,所述蓄电池与主控模块、LDO模块的输出端电连接。当电源模块故障时,蓄电池给主控模块供电,主控模块通过GPRS模块发送电源故障信息到主站,通知主站及时维修。Preferably, a storage battery is further provided on the main control board, and the storage battery is electrically connected to the output terminals of the main control module and the LDO module. When the power module fails, the storage battery supplies power to the main control module, and the main control module sends power failure information to the main station through the GPRS module, and notifies the main station for timely maintenance.

本发明的有益效果是:实现了对电压、电流、功率、功率因数等电力参数的实时监测,采集和控制开关状态,具有无线通讯技术,将数据和状态反馈给主站,为配电网规划、设计、运维和营销提供数据基础和科学决策依据。The beneficial effects of the present invention are: real-time monitoring of power parameters such as voltage, current, power, power factor, etc., acquisition and control of switch status, wireless communication technology, feedback of data and status to the master station, and planning for the distribution network , design, operation and maintenance and marketing provide data basis and scientific decision-making basis.

附图说明Description of drawings

图1是本发明的一种结构示意图;Fig. 1 is a kind of structural representation of the present invention;

图2是本发明的一种电路原理连接框图。Fig. 2 is a schematic connection block diagram of a circuit of the present invention.

图中:1、主控板,2、数据采集板,3、基板,4、主控模块,5、GPRS模块,6、串口模块,7、存储模块,8、报警模块,9、人机交互模块,10、开关状态采集电路,11、电能表模块,12、电源模块,13、交流信号转换电路,14、显示屏,15、LED指示灯,16、按键,17、主站,18、开关控制电路。In the figure: 1. Main control board, 2. Data acquisition board, 3. Substrate, 4. Main control module, 5. GPRS module, 6. Serial port module, 7. Storage module, 8. Alarm module, 9. Human-computer interaction Module, 10. Switch state acquisition circuit, 11. Energy meter module, 12. Power supply module, 13. AC signal conversion circuit, 14. Display screen, 15. LED indicator light, 16. Button, 17. Master station, 18. Switch Control circuit.

具体实施方式Detailed ways

下面通过实施例,并结合附图,对本发明的技术方案作进一步具体的说明。The technical solutions of the present invention will be further specifically described below through the embodiments and in conjunction with the accompanying drawings.

实施例:本实施例的一种新型配电网数据采集终端,如图1、图2所示,包括主控板1、数据采集板2和基板3,主控板1上设有主控模块4、GPRS模块5、串口模块6、存储模块7、报警模块8、人机交互模块9以及检测配电开关状态的开关状态采集电路10,数据采集板2上设有电能表模块11,基板3上设有电源模块12和交流信号转换电路13,电源模块12用于将从配电网输入的交流电压转换为直流电压给主控板1、数据采集板2和基板3供电,交流信号转换电路13用于将配电网上的强电信号转换为弱电信号为电能表模块11提供采样信号,主控模块4分别与GPRS模块5、串口模块6、存储模块7、报警模块8、人机交互模块9和开关状态采集电路10电连接,主控模块4通过串口模块6与电能表模块11电连接,电能表模块11与交流信号转换电路13电连接,主控模块4通过GPRS模块5与主站17进行无线通信。Embodiment: A new distribution network data acquisition terminal of this embodiment, as shown in Figure 1 and Figure 2, includes a main control board 1, a data acquisition board 2 and a substrate 3, and the main control board 1 is provided with a main control module 4. GPRS module 5, serial port module 6, storage module 7, alarm module 8, man-machine interaction module 9 and switch state acquisition circuit 10 for detecting the state of power distribution switch, data acquisition board 2 is provided with electric energy meter module 11, substrate 3 There is a power module 12 and an AC signal conversion circuit 13 on it. The power module 12 is used to convert the AC voltage input from the distribution network into a DC voltage to supply power to the main control board 1, the data acquisition board 2 and the substrate 3. The AC signal conversion circuit 13 is used to convert the strong electric signal on the distribution network into a weak electric signal to provide sampling signals for the energy meter module 11, and the main control module 4 communicates with the GPRS module 5, the serial port module 6, the storage module 7, the alarm module 8, and the human-computer interaction module respectively. 9 is electrically connected with the switch state acquisition circuit 10, the main control module 4 is electrically connected with the electric energy meter module 11 through the serial port module 6, the electric energy meter module 11 is electrically connected with the AC signal conversion circuit 13, and the main control module 4 is connected with the main station through the GPRS module 5 17 for wireless communication.

基板上的电源模块的输入端与配电网连接,电源模块将从配电网输入的交流电压转换为直流电压给主控板、数据采集板和基板供电。The input end of the power module on the base board is connected to the distribution network, and the power module converts the AC voltage input from the distribution network into a DC voltage to supply power to the main control board, the data acquisition board and the base board.

交流信号转换电路用于将配电网上的强电信号转换为弱电信号,为电能表模块提供采样信号(电流和电压),电能表模块检测采样信号计算出配电网的电压、电流、功率、功率因数等电力参数,并将检测的数据发送到主控模块,实现检测配电网电压、电流的功能。The AC signal conversion circuit is used to convert the strong electric signal on the distribution network into a weak electric signal, and provide the sampling signal (current and voltage) for the electric energy meter module, and the electric energy meter module detects the sampling signal to calculate the voltage, current, power, power factor and other power parameters, and send the detected data to the main control module to realize the function of detecting the voltage and current of the distribution network.

主控模块接收电能表模块发送的采集数据,进行分析计算,得到相关统计结果,当出现异常信息时报警模块进行报警,同时将相关信息、数据存储在存储模块。主控模块通过GPRS模块将电能表模块的采集数据、自身分析计算的结果及监测的异常情况发送到主站。主控模块可以接收主站的信息。开关状态采集电路用于检测配电开关处于合闸状态还是开闸状态。The main control module receives the collected data sent by the electric energy meter module, performs analysis and calculation, and obtains relevant statistical results. When abnormal information occurs, the alarm module sends an alarm, and at the same time stores relevant information and data in the storage module. The main control module sends the collected data of the electric energy meter module, the results of its own analysis and calculation and the abnormal conditions monitored to the main station through the GPRS module. The master control module can receive information from the master station. The switch state acquisition circuit is used to detect whether the power distribution switch is in the closed state or the open state.

本发明采用三层电路板实现强电和弱电之间的隔离,强电只出现在基板和数据采集板上,不会与主控板接触,保护了主控板上电子器件的安全。The invention adopts a three-layer circuit board to realize the isolation between strong electricity and weak electricity, and the strong electricity only appears on the base plate and the data acquisition board, and will not contact the main control board, thus protecting the safety of electronic devices on the main control board.

主控模块采用AT91SAM7S256芯片。存储模块采用RAMTRON公司FM3116型号的存储器。The main control module adopts AT91SAM7S256 chip. The memory module adopts the memory of FM3116 model of RAMTRON Company.

人机交互模块9包括显示屏14、LED指示灯15和按键16,主控模块4分别与显示屏14、LED指示灯15和按键16电连接。The human-computer interaction module 9 includes a display screen 14 , LED indicator lights 15 and buttons 16 , and the main control module 4 is electrically connected to the display screen 14 , LED indicator lights 15 and buttons 16 respectively.

基板3上还设有用于控制配电开关合闸/开闸的开关控制电路18,开关控制电路18与主控模块4电连接。A switch control circuit 18 for controlling closing/opening of the power distribution switch is also provided on the substrate 3 , and the switch control circuit 18 is electrically connected to the main control module 4 .

电能表模块11包括ATT7022B电能计量芯片和STC12C5412单片机,ATT7022B电能计量芯片与交流信号转换电路13电连接,ATT7022B电能计量芯片通过SPI接口与STC12C5412单片机电连接,主控模块4通过串口模块与STC12C5412单片机电连接。The energy meter module 11 includes an ATT7022B electric energy metering chip and an STC12C5412 single-chip microcomputer. The ATT7022B electric energy metering chip is electrically connected to the AC signal conversion circuit 13. The ATT7022B electric energy metering chip is connected to the STC12C5412 single-chip electromechanical through the SPI interface. The main control module 4 is connected to the STC12C5412 single-chip electromechanical through the serial port module. connect.

电源模块12包括AC-DC转换模块、DC-DC转换模块和LDO模块,AC-DC转换模块的输入端与三相交流电连接,AC-DC转换模块的输出端与DC-DC转换模块的输入端、LDO模块的输入端电连接,AC-DC转换模块输出的电压给基板供电,DC-DC转换模块输出的电压给数据采集板供电,LDO模块输出的电压给主控板供电。The power supply module 12 includes an AC-DC conversion module, a DC-DC conversion module and an LDO module. The input end of the AC-DC conversion module is connected to the three-phase alternating current, and the output end of the AC-DC conversion module is connected to the input end of the DC-DC conversion module. 1. The input terminal of the LDO module is electrically connected, the voltage output by the AC-DC conversion module supplies power to the substrate, the voltage output by the DC-DC conversion module supplies power to the data acquisition board, and the output voltage of the LDO module supplies power to the main control board.

主控板1上还设有蓄电池,蓄电池与主控模块、LDO模块的输出端电连接。当电源模块故障时,蓄电池给主控模块供电,主控模块通过GPRS模块发送电源故障信息到主站,通知主站及时维修。The main control board 1 is also provided with a storage battery, and the storage battery is electrically connected to the output terminals of the main control module and the LDO module. When the power module fails, the storage battery supplies power to the main control module, and the main control module sends power failure information to the main station through the GPRS module, and notifies the main station for timely maintenance.

电能表模块的软件设计,电能表模块的软件设计包括自定义串行通讯协议、单片机控制及通讯软件和计算机软件校表平台设计。自定义的串行通讯保障表模块和软件平台之间的通讯,单片机控制平台可以收发数据信息,并接受命令,控制报文通过全双工串行口向上位机传送。计算机软件校对平台根据表模块的需要,利用设计的界面实现电脑对表模块的控制、储存和显示功能。The software design of the electric energy meter module, the software design of the electric energy meter module includes the custom serial communication protocol, the single-chip microcomputer control and communication software and the computer software meter calibration platform design. For the communication between the customized serial communication guarantee table module and the software platform, the single-chip control platform can send and receive data information, and accept commands, and the control message is transmitted to the host computer through the full-duplex serial port. According to the needs of the table module, the computer software proofreading platform uses the designed interface to realize the control, storage and display functions of the computer to the table module.

A表模块串行通讯协议:A table module serial communication protocol:

串行通讯协议包括三个层次:应用层、数据链路层、异步串行通信协议;The serial communication protocol includes three layers: application layer, data link layer, asynchronous serial communication protocol;

(a)应用层(a) Application layer

应用层的职能是履行数据链路层提供的服务,监察通讯线路的运行状态,和数据链路层之间交换数据,并对数据进行处理。上位机发送给表模块的命令有两种,一个是数据传送命令,该命令可以通过EE3000001E要求表模块初始化并上报错误代码,通过EE45000033要求表模块传输基础数据,通过EE46000034要求表模块传送扩展数据,通过EE47000035传送校表数据。另一个是校表控制命令,是传递误差信息给表模块并控制表模块完成相应的参数精度修正操作。根据不同的上位机命令,表模块返回的数据帧有两类,一类是ATTT022B的计量数据帧,另一类是ATT7022B的校表参数数据帧。The function of the application layer is to perform the services provided by the data link layer, monitor the running status of the communication line, exchange data with the data link layer, and process the data. There are two kinds of commands sent by the host computer to the meter module, one is the data transmission command, which can request the meter module to initialize and report an error code through EE3000001E, request the meter module to transmit basic data through EE45000033, and request the meter module to transmit extended data through EE46000034. Send calibration data through EE47000035. The other is the meter calibration control command, which transmits the error information to the meter module and controls the meter module to complete the corresponding parameter accuracy correction operation. According to different host computer commands, there are two types of data frames returned by the meter module, one is the measurement data frame of ATTT022B, and the other is the calibration parameter data frame of ATT7022B.

(b)数据链路层(b) Data Link Layer

串行通信的核心就是数据链路层,该层的职能就是给应用层提供可靠的服务、组装和拆分帧;The core of serial communication is the data link layer. The function of this layer is to provide reliable services, assemble and split frames for the application layer;

可靠的数据服务的实现,首先需要上位机应用层向数据链路层发送表模块数据,然后上位机数据链路层告知应用层将接受到的表模块数据存放至输入缓冲区,最后数据链路层下达本次通讯是否完成的信息给应用层;To realize reliable data service, firstly, the upper computer application layer needs to send table module data to the data link layer, then the upper computer data link layer informs the application layer to store the received table module data in the input buffer, and finally the data link layer The layer sends the information of whether the communication is completed to the application layer;

对帧进行组装,将数据按照即有的协议分组形成序列,并添加0xEE在每一帧的最前面,将帧的校验值添加在后面,从而构成传输帧;Assemble the frame, group the data into a sequence according to the existing protocol, add 0xEE at the front of each frame, and add the check value of the frame at the back to form a transmission frame;

对帧进行拆分则是将数据帧进行分解,选出数据的部分,改装成为应用层的数据结构,然后传输给应用层。Splitting the frame is to decompose the data frame, select the part of the data, refit it into the data structure of the application layer, and then transmit it to the application layer.

(c)异步串行通信协议(c) Asynchronous serial communication protocol

该协议收发数据的单位是位,一共7-12位(其中,最开始是起始位一个,接着八个数据位,最后是停止位一个,没有校验位)通讯速率为4800bit/s。The unit of sending and receiving data in this protocol is bit, a total of 7-12 bits (among which, at the beginning is one start bit, then eight data bits, and finally one stop bit, without parity bit). The communication rate is 4800bit/s.

B单片机程序设计:B MCU programming:

程序设计主要体现在以下几个方面:中断程序和主程序、表模块初始化程序、复位程序、通讯程序、参数采集程序和数据发送程序、校准程序、读写程序。The program design is mainly reflected in the following aspects: interrupt program and main program, table module initialization program, reset program, communication program, parameter acquisition program and data sending program, calibration program, read and write program.

(a)主程序和中断程序(a) Main program and interrupt program

首先进行初始化,主程序根据ATT7022B异常标志位判断ATT7022B是否掉电或者异常复位,如果异常标志位置位,那么就将ATT7022B复位,并重新写入精度修正参数。然后,主程序根据标志位CJ判断是否更新采集数据,如果置位,则更新采集数据,采集间隔为1s,定时器使用STC12C5412的定时器0定时采集时间,如果定时器溢出,发生中断,将CJ置位,然后进行采集数据的读取。最后,设置命令有效标志位ML,判断串口是否接收到有效的命令,ML=5表示数据传送命令,ML=6表示校表控制命令。Initialize first, the main program judges whether the ATT7022B is powered off or abnormally reset according to the ATT7022B abnormal flag bit, if the abnormal flag bit is set, then reset the ATT7022B and rewrite the accuracy correction parameters. Then, the main program judges whether to update the collected data according to the flag bit CJ. If it is set, the collected data is updated. The collection interval is 1s. The timer uses the timer 0 of STC12C5412 to set the collection time. Set, and then read the collected data. Finally, set the valid flag bit ML of the command to judge whether the serial port has received a valid command. ML=5 means a data transmission command, and ML=6 means a meter calibration control command.

(b)表模块初始化程序(b) Table module initializer

初始化程序主要包括对STC12C5412内部功能、参数和终端的设置,内部功能设置主要是串口和SPI的初始化,串口初始化程序中有两种工作模式,定时器0工作在工作模式1中,功能是数据采集定时,定时器1工作在工作模式2中,功能是进行串口通讯,波特率为4800bit/s。The initialization program mainly includes the setting of internal functions, parameters and terminals of STC12C5412. The internal function setting is mainly the initialization of serial port and SPI. There are two working modes in the serial port initialization program. Timer 0 works in working mode 1, and the function is data acquisition. Timing, timer 1 works in working mode 2, the function is to carry out serial communication, the baud rate is 4800bit/s.

(c)复位程序(c) Reset procedure

设置SIG,当RESET的信号是低电平,且保持时间超过30us,进行复位,SIG显示高电平。当RESET变为高电平,并保持500us后,SIG显示低电平,ATT7022B进入正常状态。Set SIG, when the RESET signal is low level and the hold time exceeds 30us, reset is performed, and SIG shows high level. When RESET becomes high level and keeps for 500us, SIG shows low level, and ATT7022B enters normal state.

(d)通讯程序(d) Communication program

STC12C5412对ATT7022B的读写操作是通过SPI接口实现的,当命令最高位是1,表示写命令,命令最高位为0,表示读命令,后七位代表读入(写入)的寄存器地址,读(写)后需要从DIN端输入24位数据。STC12C5412 reads and writes to ATT7022B through the SPI interface. When the highest bit of the command is 1, it means a write command; when the highest bit of the command is 0, it means a read command; After (writing), 24-bit data needs to be input from the DIN terminal.

(e)参数采集程序和数据发送程序(e) Parameter acquisition program and data sending program

该程序主要是STC12C5412读取ATT7022B的数据,根据规定的格式对电压、电流、功率参数进行处理:The program mainly reads the data of ATT7022B by STC12C5412, and processes the voltage, current and power parameters according to the specified format:

(f)校准程序(f) Calibration procedure

每一类参数都有其相应的校准子程序,每次只对一个参数进行校准,每次完成后需要更新校准参数表。Each type of parameter has its corresponding calibration subroutine, and only one parameter is calibrated at a time, and the calibration parameter table needs to be updated after each completion.

Void Ugain(unsigned char phase,unsigned int Ur);Void Ugain(unsigned char phase, unsigned int Ur);

Void Igain(unsigned char phase,unsigned int Ir);Void Igain(unsigned char phase, unsigned int Ir);

Void Pgain(int err,unsigned char command,unsigned char phase);Void Pgain(int err, unsigned char command, unsigned char phase);

Void Phsreg(float err,unsigned char command,unsigned char phase);Void Phsreg(float err, unsigned char command, unsigned char phase);

Void GainAdc 7(unsigned int Ir7);Void GainAdc 7(unsigned int Ir7);

Void Istartup(float I0);Void Istartup(float I0);

Void Iregion(unsigned char N,float Is);Void Iregion(unsigned char N, float Is);

Void Irechg(float Ig);Void Irechg(float Ig);

Void HFConst(unsigned int PulsEC);Void HFConst(unsigned int PulsEC);

Void HFDouble(unsigned char N);Void HFDouble(unsigned char N);

Void EAddmode(unsigned char N);Void EAddmode(unsigned char N);

Void UADCPga(unsigned char N);Void UADCPga(unsigned char N);

(g)Flash读写程序(g) Flash read and write program

Flash程序存储器共有24个扇区,每个扇区都是512KB,都可以进行读写操作,都可以存储ATT7022B校准参数,但是每个扇区都按字节编程,按扇区擦除。The Flash program memory has 24 sectors in total, and each sector is 512KB, which can be read and written, and can store ATT7022B calibration parameters, but each sector is programmed by byte and erased by sector.

Claims (7)

1. a kind of new distribution network data acquisition terminal, which is characterized in that including master control borad (1), data acquisition board (2) and substrate (3), the master control borad (1) is equipped with main control module (4), GPRS module (5), serial port module (6), memory module (7), alarm mould Block (8), human-computer interaction module (9) and the on off state Acquisition Circuit (10) for detecting panel switches state, the data acquisition Plate (2) is equipped with electric energy meter module (11), and the substrate (3) is equipped with power module (12) and AC signal conversion circuit (13), the power module (12) is used to the alternating voltage inputted from power distribution network being converted to DC voltage to master control borad (1), number It powers according to collection plate (2) and substrate (3), the AC signal conversion circuit (13) is used to convert the forceful electric power signal on power distribution network For weak electric signal be electric energy meter module (11) provide sampled signal, the main control module (4) respectively with GPRS module (5), serial ports Module (6), memory module (7), alarm module (8), human-computer interaction module (9) and on off state Acquisition Circuit (10) electrical connection, The main control module (4) is electrically connected by serial port module (6) with electric energy meter module (11), the electric energy meter module (11) with exchange Signaling conversion circuit (13) is electrically connected.
2. a kind of new distribution network data acquisition terminal according to claim 1, which is characterized in that the human-computer interaction mould Block (9) includes display screen (14), LED light (15) and button (16), the main control module (4) respectively with display screen (14), LED light (15) and button (16) electrical connection.
3. a kind of new distribution network data acquisition terminal according to claim 1, which is characterized in that the main control module (4) it is carried out wireless communication by GPRS module (5) and main website (17).
4. a kind of new distribution network data acquisition terminal according to claim 1 or 2 or 3, which is characterized in that the substrate (3) be additionally provided with the ON-OFF control circuit (18) for closing a floodgate/opening a sluice gate for controlling panel switches on, the ON-OFF control circuit (18) with Main control module (4) is electrically connected.
5. a kind of new distribution network data acquisition terminal according to claim 1 or 2 or 3, which is characterized in that the electric energy Table module (11) includes ATT7022B electric energy computation chips and STC12C5412 microcontrollers, the ATT7022B electric energy computation chips It is electrically connected with AC signal conversion circuit (13), the ATT7022B electric energy computation chips pass through SPI interface and STC12C5412 Monolithic mechatronics, the main control module (4) pass through serial port module (6) and STC12C5412 monolithic mechatronics.
6. a kind of new distribution network data acquisition terminal according to claim 1 or 2 or 3, which is characterized in that the power supply Module (12) includes AC-DC conversion module, DC-DC conversion modules and LDO modules, the input terminal of the AC-DC conversion module with Three-phase alternating current is electrically connected, the input of the output end of the AC-DC conversion module and the input terminal, LDO modules of DC-DC conversion modules End electrical connection, the voltage that the AC-DC conversion module exports are powered to substrate, and the voltage that DC-DC conversion modules export is to data Collection plate is powered, and the voltage that LDO modules export is powered to master control borad.
7. a kind of new distribution network data acquisition terminal according to claim 1 or 2 or 3, which is characterized in that the master control Accumulator is additionally provided on plate (1), the accumulator is electrically connected with the output end of main control module (4), LDO modules.
CN201711498441.9A 2017-12-29 2017-12-29 A kind of new distribution network data acquisition terminal Pending CN108333961A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711498441.9A CN108333961A (en) 2017-12-29 2017-12-29 A kind of new distribution network data acquisition terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711498441.9A CN108333961A (en) 2017-12-29 2017-12-29 A kind of new distribution network data acquisition terminal

Publications (1)

Publication Number Publication Date
CN108333961A true CN108333961A (en) 2018-07-27

Family

ID=62924880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711498441.9A Pending CN108333961A (en) 2017-12-29 2017-12-29 A kind of new distribution network data acquisition terminal

Country Status (1)

Country Link
CN (1) CN108333961A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108808854A (en) * 2018-06-06 2018-11-13 广东电网有限责任公司 A kind of electric distribution network data collection terminal based on intelligent terminal
CN109599941A (en) * 2018-11-23 2019-04-09 江苏智臻能源科技有限公司 A kind of distribute-electricity transformer district perception terminal device and method
CN110971484A (en) * 2019-11-15 2020-04-07 西安海的电子科技有限公司 Signal detection method in communication process
CN112398222A (en) * 2020-11-09 2021-02-23 北京昊创瑞通电气设备有限公司 Intelligent terminal fusion AC acquisition system for transformer area
CN112467873A (en) * 2020-10-29 2021-03-09 国网内蒙古东部电力有限公司经济技术研究院 Power distribution network data acquisition terminal based on intelligent terminal
CN112615368A (en) * 2020-12-11 2021-04-06 国网辽宁省电力有限公司鞍山供电公司 Distributed sensing-based platform area topology generation method and sensing terminal device
CN115397151A (en) * 2022-08-23 2022-11-25 华北电力大学(保定) Preprocessing system and method for power monitoring missing data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436733A (en) * 2011-10-18 2012-05-02 中国电力科学研究院 A thermal power type energy efficiency data acquisition terminal
CN104483541A (en) * 2014-12-01 2015-04-01 沈阳大学 A GPRS power collection system
CN205826742U (en) * 2016-07-14 2016-12-21 国网山东省电力公司聊城供电公司 A kind of power information acquisition system
CN206133918U (en) * 2016-11-03 2017-04-26 南京国电南自城乡电网自动化工程有限公司 Communication of serial communication net gape and fiber communication mix electric flux acquisition terminal of gathering
CN207650261U (en) * 2017-12-29 2018-07-24 国网浙江省电力公司丽水供电公司 A kind of new distribution network data acquisition terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436733A (en) * 2011-10-18 2012-05-02 中国电力科学研究院 A thermal power type energy efficiency data acquisition terminal
CN104483541A (en) * 2014-12-01 2015-04-01 沈阳大学 A GPRS power collection system
CN205826742U (en) * 2016-07-14 2016-12-21 国网山东省电力公司聊城供电公司 A kind of power information acquisition system
CN206133918U (en) * 2016-11-03 2017-04-26 南京国电南自城乡电网自动化工程有限公司 Communication of serial communication net gape and fiber communication mix electric flux acquisition terminal of gathering
CN207650261U (en) * 2017-12-29 2018-07-24 国网浙江省电力公司丽水供电公司 A kind of new distribution network data acquisition terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨蕾: "智能配电网络监测终端的设计", 《中国优秀硕士学位论文全文数据库工程科技Ⅱ辑》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108808854A (en) * 2018-06-06 2018-11-13 广东电网有限责任公司 A kind of electric distribution network data collection terminal based on intelligent terminal
CN109599941A (en) * 2018-11-23 2019-04-09 江苏智臻能源科技有限公司 A kind of distribute-electricity transformer district perception terminal device and method
CN110971484A (en) * 2019-11-15 2020-04-07 西安海的电子科技有限公司 Signal detection method in communication process
CN112467873A (en) * 2020-10-29 2021-03-09 国网内蒙古东部电力有限公司经济技术研究院 Power distribution network data acquisition terminal based on intelligent terminal
CN112398222A (en) * 2020-11-09 2021-02-23 北京昊创瑞通电气设备有限公司 Intelligent terminal fusion AC acquisition system for transformer area
CN112615368A (en) * 2020-12-11 2021-04-06 国网辽宁省电力有限公司鞍山供电公司 Distributed sensing-based platform area topology generation method and sensing terminal device
CN115397151A (en) * 2022-08-23 2022-11-25 华北电力大学(保定) Preprocessing system and method for power monitoring missing data

Similar Documents

Publication Publication Date Title
CN110165782B (en) High-integration satellite centralized power supply monitoring equipment
CN108808854A (en) A kind of electric distribution network data collection terminal based on intelligent terminal
CN103887885A (en) 35 kV integrated intelligent substation
CN113364076A (en) Dynamic intelligent charging system and method for skate based on PowerBus bus
CN113098001A (en) Docker container-based intelligent distribution transformer terminal system
CN103633936B (en) A kind of photovoltaic header box automatic test system
CN106300684A (en) A kind of intelligent integral towards transformer station's standby power system monitors method
CN207650261U (en) A kind of new distribution network data acquisition terminal
CN202918062U (en) Intelligent power distribution room integrated monitor all-in-one terminal
CN103353717A (en) Networked comprehensive intelligent socket and implementation method thereof
CN102946147A (en) Integrated terminal for integrated supervision of intelligent power distribution room
CN206149022U (en) Net feeder automation terminal is joined in marriage to distributing type
CN201662715U (en) A data acquisition device for power generation energy consumption
CN203909603U (en) Communication manager used for monitoring temperature and humidity of transformer station terminal box
CN203827056U (en) DC power fast-switching device
CN203455690U (en) Intelligent transformer oil-pressure on-line monitoring device
CN202524166U (en) On-line monitoring and protection device used in feeder automation system
CN202034825U (en) Intelligent comprehensive device of medium-voltage switch
CN213602450U (en) Monitoring device and monitoring system
CN211790926U (en) Intelligent low-voltage controller, low-voltage switch control system and device
CN108512311A (en) A kind of intelligent substation bay device cluster measure and control device
CN104253487B (en) A kind of integrated intelligent electronic installation of transformer station process layer
CN218867959U (en) Lithium iron phosphate battery management system applied to communication base station
CN208112336U (en) A kind of intelligent substation bay device cluster measure and control device
CN219204192U (en) Feeder terminal with power quality monitoring and governance functions

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180727