当前位置>主页 > 期刊在线 > 信息技术 >

信息技术2018年7期

一种基于TCP 协议的多线程数据采集应用
孟祥杰,栗克国
(天津水运工程勘察设计院,天津 300456)

摘  要:数据采集是监测类信息化项目的基本功能。实现该功能的方法有多种,而最常用的是借助GPRS 技术利用TCP 协议进行采集后数据传输的方法。本文建设的基于TCP 协议的多线程数据采集系统利用C# 编程技术实现,考虑到多终端同时发送数据的实际情况,采集处理用到了多线程技术。


关键词:数据采集;GPRS;TCP;C#;多线程



中图分类号:TP311.52         文献标识码:A         文章编号:2096-4706(2018)07-0022-03


A Multithread Data Acquisition Application Based on TCP Protocol
MENG Xiangjie,LI Keguo
(Tianjin Surey and Design Institute for Water Transport Engineering,Tianjin 300456,China)

Abstract:Data acquisition is the basic function of monitoring information projects. There are many ways to achieve this function,and the most commonly used method is to use GPRS technology to use TCP protocol to collect data after transmission. The multi thread data acquisition system based on TCP protocol in this paper is realized by C# programming technology. Considering the actual situation of multi terminal data transmission at the same time,multi thread technology is used in the acquisition and processing.

Keywords:data acquisition;GPRS;TCP;C#;multithreading


参考文献:

[1] [ 美] 莱特,史蒂文斯.TCP/IP 详解(卷2:实现) [M].陆雪莹,等,译. 北京:机械工业出版社,2008.

[2] 易飞.GPRS 网络信令实例详解 [M]. 北京:人民邮电出版社,2013.

[3] [ 英]Jayaram Krishnaswamy. Learning SQL Server 2008 Reporting Services [M]. 英国:Packt Publishing,2009.

[4] [ 美]EugeneAgafonov. C# 多线程编程实战 [M]. 黄博文,黄辉兰,等,译. 北京:机械工业出版社,2015.


作者简介:孟祥杰(1980-),男,山东齐河人,工程师,工学学士,从事行业软件系统应用开发及项目管理工作。