摘要
进入21世纪以来,随着社会的进步、工业的发展,水作为社会生产、人民生活所必需的最重要的资源之一供需要求逐年紧张。而在供水公司计量系统中,大表计量部分占到了总供水量的很大部分,尤其在大中城市和工业发达地区,所占比例更高。为了解决这一全世界普遍存在的水资源供、需矛盾,结合远程监测和数据分析系统、多方位地管理大用户用水计量成为当今迫切需要解决的问题。
本文介绍了一种基于uclinux的大用户用水管理系统,该系统主要由数据采集,数据通信,数据处理分析和用水情况监控等几部分组成,本课题利用GPRS网络通信实现数据的实时和高速传输,可准确的计量累计用水量,瞬时用水量;根据用水量绘出流量曲线图;还具有强大的数据分析及数据存储功能;紧急情况报警、欠费通知以及电压检测;通过无线上网随时进行软件升级等功能。在软件开发中,充分利用uclinux作为多任务操作系统的特点,实现了系统中多进程之间的协调运行。
本文首先论述了大用户用水管理系统的研究背景及研究意义。在此基础上,结合了大用户用水系统的特点,提出了该系统的软、硬件实现方案,详细阐明了该系统的硬件和软件实现方案。重点介绍了系统的硬件构成,uclinux下gprs拨号上网的实现、文件系统的搭建、硬件驱动程序编写、软件架构、应用程序实现等,并详细说明了系统实现中采用的一些软件技术和策略。
本文所设计的基于uclinux大用户用水管理系统具有功能完善,计量准确通信可靠的优点。随着自动化技术、通信技术和计算机技术的发展,利用GPRS公共网络方式进行远距离控制和数据传输,成本会越来越低,通信也更加可靠,该系统将会有更加广泛的应用前景。
Since 21th century, it has been more and more difficult to meet the needs for the water which is one the essential resources in people’s lives as the development of the industry and whole society. In the quantitative system of the water supplying companies, large water consumer accounts most in the whole water supply. It would be even more in big and medium-sized cities or developed in industry areas. The large water consumer should be managed systematically and synthetically with long distance monitoring and data analyzing to meet the needs for water of the whole world.
The management system for large water consumer based on uclinux is introduced in this paper. And it consists of data collecting, communication, data processing and analyzing, and monitoring. The real-time and high-speed data communication is realized with GPRS network communication. The system could measure water usage accurately, generate the curve graphs, alarm under urgent circumstances, store and analyze data. And the function of arrears notice and voltage detecting is also included. It could be updated through wireless network. The multi-process communication is realized in software development for uclinux is the multi-task operating system.
The research background and significance of the management system for large water consumer are firstly introduced. According to the characteristic of the system, a scheme is given to illustrate the project element. A more detail specification of hardware and software is brought forward. It stress on the system's configuration of hardware, GPRS communication under uclinux , file system establishment, hardware drive program, software architecture and the application program etc. some important soft technical and policy is supplied.
The management system for large water consumer based on uclinux is featured with perfect functions, accurate measurement and reliable communication. With the development of automatic technology, computer technology and communication technology, the cost will be lower, the communication will be more reliable by the use of GPRS public network to transfer and receive data. The quantitative system of water supply based on GPRS will have a prosperous prospect.
引文
[1]汤建泉.远程自动抄表系统的功能及其应用.中国住宅设施, 2003年第03期.p35
[2]刘志中等.住宅小区远程自动抄表的实现.山西大学学报,2002年第08,p26
[3] Robert Love .Linux内核设计与实现.北京:机械工业出版社,2006.1 p50-p65
[4]徐炜.Linuxn内核的管道与信号.电脑编程技巧与维护,2006.10 .p52
[5]赵建光,王社国.基于ARM7TDMI的uClunux内核配置与移植.福建电脑,2006.5 p32
[6]徐炜.Linux内核的进程创建和执行.电脑编程技巧与维护, 2006.9 p64
[7] Tim Parker .TCP/IP技术大全.机械工业出版社,2000.7.1
[8] W.Richard Stevens.TCP/IP详解,卷1:协议.机械工业出版社,2000.4.1
[9]杜春雷.ARM体系结构与编程.北京:清华大学出版社, 2003.2
[10]费浙平.基于ARM的嵌入式系统程序开发要点.单片机与嵌入式系统应用.2004.1 p65
[11]顾敏芬,朱云.基于零功耗磁敏传感器的电子水表基表的研制.南京师范大学学报.2005.6 p54
[12] S3C44B0 datasheet.Samsung Electronics
[13] K9F5608 datasheet. Samsung Electronics. Dec,2003
[14] Jonathan Corbet,Alessandro Rubini.LINUX设备驱动程序.北京:中国电力出版社, 2005.11
[15] MIC29302 datasheet. Micrel Inc. Mar, 2000
[16]田泽.ARM7 uClinux开发实验与实践.北京航空航天大学出版社,2006.11
[17]余先涛,张涛,莫易敏.基于GPRS技术的无线远程抄表的实现,机电一体化,2005.2 p52
[18]陈法国.与GPRS模块串口连接的小区无线抄表系统.单片机与嵌入式系,2006.12.p34
[19]余金仑,赵元黎等GSM/GPRS模块SIM100-E在无线抄表系统中的应用.电子工程师,2006.10.p21
[20]张法全,胡智宏,路立平.基于GPRS的无线抄表系统的软件设计.仪表技术与传感器,2006.6 .p41
[21]杨德芳.通过Linux串口实现GPRS拨号上网的设计.科技咨询导报, 2007.5 p27
[22]高世臣,曾卫华. GPRS的数据传输单元设计,单片机与嵌入式系统应用,2005.5 p31
[23]赵锋,王艳玮,范建华,李琪. GPRS终端拨号上网连接认证注册全过程研究.计算机工程与应用,2004.23. p158
[24]黄承安,张跃.微控制器的GPRS无线上网.单片机与嵌入式系统.2003年第08期.p86
[25]高世臣,曾卫华. GPRS的数据传输单元设计.单片机与嵌入式系统应用,2005.5 p31
[26]张俊刚.光电直读式远传表编程器及抄表仪的研制.中国海洋大学硕士论文.
[27]程凯,吴常玉.Yaffs文件系统在C51系统上的实现.单片机与嵌入式系统, 2006年第11期.p72
[28] Eric S.Raymond .UNIX编程艺术.北京:电子工业出版社,2006.2. p160-p169
[29] Robert Mecklenburg .GNU Make项目管理.东南大学出版社,2006.7 p57-p72
[30]罗苑棠,杨宗得.嵌入式Linux应用系统开发实例精讲.北京:电子工业出版社, 2007.3
[31]李玉波,朱自强,郭军.Linux C编程.北京:清华大学出版设,2005.9 p76-p87
[32] Klaus Wehrle,Frank Pahlke,Hartmut Ritter .Linux网络体系结构.北京:清华大学出版社,2006.7 p122-p130
[33]闫建国.电力负荷管理终端.中国海洋大学硕士论文.
[34] W.Richard Stevens ,Bill Fenner.UNIX网络编程.北京:清华大学出版社, 2005.10 . p79-p98
[35] Marc J.Rochkind .高级UNIX编程.北京:机械工业出版社,2006.5 p102-p123
[36] Michael K.Johnson,Erik W.Troan .LINUX应用程序开发.北京:电子工业出版社2005.11. p157-p160,p169-p173
[37]孙继坤,张小全.嵌入式Linux应用程序开发详解.北京:人民邮电出版社,2006.8.p343-p349
[38]胥静.嵌入式系统设计与开发实例详解.北京:航空航天大学出版社,2005. p66–p140,p359-p363.
[39]《UNIX Network Programming Volume 1 2nd ed,Networking APIs:Socket and XTI》北京:清华大学出版社。Prentice-Hall,1997
[40] W.Richard Stevens《Advanced Programming in the Unix Environment》Addsion-Wesley Publishing Company, Inc
[41]《The GNU C Library Reference Manual》http://www.gnu.org/manual
[42] Neil Matthew,Rick Stones《Beginning Linux Programming》Wrox Press Ltd.1996
[43] http://www.ucdragon.com,优龙论坛
[44] Steve Furber. ARM System-on-Chip Architecture(Second edition).北京航空航天出版社,2003
[45] Berny Goodheart,James Cox.《The Magic Garden Explained:the Unix Environment》Addsion-Wesley Publishing Company,Inc.1992