首页 | 本学科首页   官方微博 | 高级检索  
     

基于Indy控件的遥测中心GPRS数据接收软件应饪
引用本文:熊启龙.基于Indy控件的遥测中心GPRS数据接收软件应饪[J].水利水文自动化,2012(5):49-52.
作者姓名:熊启龙
作者单位:水利部淮河水利委员会水文局,安徽蚌埠232001
摘    要:如何解决数据碰撞和多线程条件下的数据库操作是遥测中心站GPRS数据接收软件开发的关键,采用基于Delphi平台下的Indy控件编写软件,为每个TCP连接分配1个单独线程处理通信任务,是解决数据碰撞的办法之一。多线程条件下数据库操作需要考虑线程安全,采用“连接池”设计模式对多线程操作数据库的连接统一分配和管理,可以减少对数据库资源的占用。通过在山东省水情自动测报系统的应用,说明此设计方式对实现GPRS数据接收遇到的关键问题和功能实现能给出基本模型,很好地改善GPRS数据接收软件的数据库操作性能,减少系统资源的使用。

关 键 词:GPRS网络  TCP  UDP数据接收  数据碰撞  Indy控件  多线程  连接池

Application of GPRS Data Receiving SoRware in Telemetry Center Based on Controls of Indy
XIONG Qilong.Application of GPRS Data Receiving SoRware in Telemetry Center Based on Controls of Indy[J].Automation in Water Resources and Hydrology,2012(5):49-52.
Authors:XIONG Qilong
Affiliation:XIONG Qilong (Bureau of Hydrology, Huaihe River Water Conservancy Commission, the Ministry of Water Resources, Bengbu 232001, China)
Abstract:How to solve database manipulation in the condition of data collision and multithreading is the key of GPRS data receiving software application in telemetry center. The soRware is written with the control of Indy based on Delphi platform. Every TCP connection is distributed an independent thread processing communication task. It is one of methods to solve the data collision. In the condition of multithreading, database manipulation needs to consider thread- safe. The connection of multithreading operation database is assigned and managed by design patterns of "connecting pool" . It can reduce database resource occupancy. Through application of water regime automatic telemetry system in Shandong, it illustrates that the designing style can give the basic model for function implementation and the key problems receiving GPRS data. It well improves database performance of GPRS data receiving soft'ware and reduces the use of system resources.
Keywords:GPRS network  TCP  UDP  data acceptance  data collision  controls of Indy  multithreading  connecting pool
本文献已被 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号