论文标题:基于单片机的网络电表数据集中器的软件开发 Software Development of Net Electric Energy Meter Data Collector Based on Microprocessor 论文作者 奂永慧 论文导师 李宇成,论文学位 硕士,论文专业 检测技术与自动化装置 论文单位 北方工业大学,点击次数 148,论文页数 88页File Size4371k 2003-06-06论文网 http://www.lw23.com/lunwen_39749587/ 数据集中器;智能网络电表;HFC网络;自动抄表 Collector,Intelligent network electric meter,HFC network,Automatic meter reading 本论文旨在开发一种基于单片机的新型智能网络电表数据集中器的软件系统,实现HFC智能网络电表系统项目的技术要求。即电力公司能通过电网监控计算机—数据集中器—电表系统采集城市工业或居民用户的实时用电状态与用电量,进而实现不同时段内用电量的分时计费等要求,并为电网运行过程中的实时数据监控与维护提供参考依据。 电表数据集中器处于电网监控系统的信息通路的中间位置,其主要功能为接收主站监控系统下发的指令,同下一级的数据采集器(网络电表)进行实时通讯,下发主站指令并获取各下级数据采集器上传的数据结果,然后将数据结果打包成特定的电表网络数据帧,回传到主站监控系统并主动上传可能存在的电网或电表异常信息。电表数据集中器的硬件系统是通过单片机来控制以太网卡,进行传输数据,加载TCP/IP协议连接到电网监控网络的。 电表数据集中器的软件系统开发作为本课题的重点,采用Keil C51的集成开发工具,运用单片机C51语言进行程序开发,设计开发了数据集中器软件。该软件主要由三大功能模块构成,分别为数据集中器模块,串行数据通讯模块,网络通讯模块。其中数据集中器模块包含了指令数据帧分析子功能模块、协议转换子功能模块、电表数据组合上传帧子功能模块;串行数据通讯模块包含了串口初始化子模块、数据发送子模块、数据接收子模块;网络通讯模块包含了网卡初始化子模块、数据发送子模块和数据接收子模块。文中给出了各模块涉及到的主要功能函数代码编写流程图,并给出了指令数据帧分析模块函数等的详细源代码。 此外,本文还对电表数据集中器的系统调试过程及调试结果给予了简要介绍,并对系统的进一步改进提出了自己的设想。 New microprocessor-based data collector software of intelligent network electric meters was developed in this dissertation to meet the technical requirements of Hybrid Fiber Coax (HFC) intelligent network electric energy meter system project. The electric power company can easily gather the real-time electric energy meter status and consume amount of certain city industrial or citizen users through the computer network system composed of electric network monitoring and controlling computer -electric energy data collector-electric energy meter, carry out the specific charging plans such as various electric prices in different time periods, and obtain better reference information for real-time data monitoring and maintaining of electric power transmission.Since the electric energy meter data collectors are in the middle layer of HFC network structure of electric energy transportation monitoring and controlling information system, its software should realize the following functions at least: receiving, analyzing and decomposing the instructions sent by master monitoring and controlling computer, real conveying the instructions of master computer to the electric energy meters by means of point to point, capturing the status data of electric energy meters, composing specific message frames and uploading them to the master computer via Internet. In the hardware system of electric energy meter data collector, general microprocessor exchanges data or instructions with electric energy transportation monitoring and controlling system by means of the Internet card and TCP/IP protocol.As the most important part of this paper, the software system of electric energy meter data collector was realized by integrated developing tools of Keil C51. Microprocessor C51 language was used in writing program. This software is composed of the following three functional modules: data collector module, serial data communicating module and networkcommunicating module respectively. The data collector module includes analysis sub-module of command data frame, protocol exchange sub-module and electric energy data synthesizing sub-module of up-sending frame. The serial data-communicating module includes serial port initialization sub-module, data sending sub-module and data receiving sub-module. Network communicating module includes network card initialization sub-module, data sending sub-module and data receiving sub-module. The flow charts of main function programming involved by various functional modules were listed out, and the detail codes of some specific module function such as command data frame analysis function were also listed out.In addition, system debugging process and result of electric meter data collector software were briefly introduced, and some suggestions on further improvement on this system software were proposed.
|