论文部分内容阅读
摘要:借助GSM的手机短信远程监控技术实现油田输油管道输油状况的远程监控。通过手机短信完成油井端远端采样量传输,同时进行油库端近端采样,并通过串口发送近端采样量到PC机进行远近端采样量的比较,将结果准确及时地进行反馈。其最大特点是远近端的采样、传输和处理是全自动的,给用户提供了一个轻松的环境。
关键词:GSM;手机短信;输油状况;采样;远程监控
中图法分类号:TP278 文献标识码:A 文章编号:1009-3044(2008)27-2104-03
Design of Oilfield Pipeline Monitoring System Based on GSM SMS Platform
YU Ji-wu 1, XING Yuan-xiu 2
(1.Wuhan Vocational College of Software and Engineering, Wuhan 430033, China; 2.Wuhan University of Science and Technology, Wuhan 430081, China)
Abstract: In this paper, recurring to SMS platform of GSM, the transmission conditions of oil is monitored by remote monitoring technology. The far-ends sampling transmission of oil well is accomplished by SMS. At the same time the data of near-ends oil depot is sampled and transmitted to PC by serial port, and is compared with far-ends sampling data, the result is accurate and timely feedback. The most important characteristic of this system is that sampling data of far and near ends in sampling, transmitting and processing are all automatic. So it provides user with an ease interface.
Key words: GSM; SMS; oil transmission conditions; sample; remote monitor
近年来,社会上一些不法分子使用较先进的通信交通工具和作案手段,疯狂盗窃输管线中的原油,原油泄漏事故频繁发生,造成了巨大的经济损失和环境污染,影响管道运行状况和安全环境;同时随着输油管道使用年限的不断增加,管道老化腐蚀泄漏对环境污染的问题愈来愈突出,所以需要建立一个能够及时发现泄漏并精确定位的监测系统。
基于GSM的油田输油管道监控系统,充分利用了覆盖面广、运行可靠的GSM公用无线网络的SMS(短信服务)或GPRS功能,实现输油管线的监测。该系统能及时掌握每条输油管线和油井的信息,监控油管的输油状况和油井的采油状况,及时发现管道的漏油、盗油及油井的故障,可免野外人工巡视输油管线和油井的工作,提高各油区管理水
平。
1 GSM短信工作原理
在该系统中,PC机监控软件通过串口来读取SIM卡中的监控短信,主要利用GSM模块中GSM07.05规定的AT指令集来实现,PC机通过串口向模块收发一系列的AT命令就能达到控制GSM 模块收发短消息的目的,常用的AT指令如表1所示。
这里主要介绍油井出油流量测量仪固件程序。首先需要上电初始化硬件设备,之后检测是否入网,不能入网则需重启模块,接着对系统工作进行初始化,设置采样模式(采样模式为“00”~“07”,不同的数值代表不同的时间间隔),本文采用82C54进行采样计数,采样频率可高达12MHz,片内包含3个独立的16位计数通道,每个计数通道有6种工作方式,可由程序设置和改变,所有的输入/输出电平信号都与TTL兼容 当采样间隔时间到达时固件程序转入中断处理,采样数据通过GSM短信传送到PC机,由于GSM手机短信在传输时是以16进制的ASCII码传输的,所以我们首先要定义通信协议,其中采样通信协议:起始位(‘S’)+采样模式+82c54采样值+采样时间。下面的代码说明了如何进行上电初始化硬件设备。
关键词:GSM;手机短信;输油状况;采样;远程监控
中图法分类号:TP278 文献标识码:A 文章编号:1009-3044(2008)27-2104-03
Design of Oilfield Pipeline Monitoring System Based on GSM SMS Platform
YU Ji-wu 1, XING Yuan-xiu 2
(1.Wuhan Vocational College of Software and Engineering, Wuhan 430033, China; 2.Wuhan University of Science and Technology, Wuhan 430081, China)
Abstract: In this paper, recurring to SMS platform of GSM, the transmission conditions of oil is monitored by remote monitoring technology. The far-ends sampling transmission of oil well is accomplished by SMS. At the same time the data of near-ends oil depot is sampled and transmitted to PC by serial port, and is compared with far-ends sampling data, the result is accurate and timely feedback. The most important characteristic of this system is that sampling data of far and near ends in sampling, transmitting and processing are all automatic. So it provides user with an ease interface.
Key words: GSM; SMS; oil transmission conditions; sample; remote monitor
近年来,社会上一些不法分子使用较先进的通信交通工具和作案手段,疯狂盗窃输管线中的原油,原油泄漏事故频繁发生,造成了巨大的经济损失和环境污染,影响管道运行状况和安全环境;同时随着输油管道使用年限的不断增加,管道老化腐蚀泄漏对环境污染的问题愈来愈突出,所以需要建立一个能够及时发现泄漏并精确定位的监测系统。
基于GSM的油田输油管道监控系统,充分利用了覆盖面广、运行可靠的GSM公用无线网络的SMS(短信服务)或GPRS功能,实现输油管线的监测。该系统能及时掌握每条输油管线和油井的信息,监控油管的输油状况和油井的采油状况,及时发现管道的漏油、盗油及油井的故障,可免野外人工巡视输油管线和油井的工作,提高各油区管理水
平。
1 GSM短信工作原理
在该系统中,PC机监控软件通过串口来读取SIM卡中的监控短信,主要利用GSM模块中GSM07.05规定的AT指令集来实现,PC机通过串口向模块收发一系列的AT命令就能达到控制GSM 模块收发短消息的目的,常用的AT指令如表1所示。

这里主要介绍油井出油流量测量仪固件程序。首先需要上电初始化硬件设备,之后检测是否入网,不能入网则需重启模块,接着对系统工作进行初始化,设置采样模式(采样模式为“00”~“07”,不同的数值代表不同的时间间隔),本文采用82C54进行采样计数,采样频率可高达12MHz,片内包含3个独立的16位计数通道,每个计数通道有6种工作方式,可由程序设置和改变,所有的输入/输出电平信号都与TTL兼容 当采样间隔时间到达时固件程序转入中断处理,采样数据通过GSM短信传送到PC机,由于GSM手机短信在传输时是以16进制的ASCII码传输的,所以我们首先要定义通信协议,其中采样通信协议:起始位(‘S’)+采样模式+82c54采样值+采样时间。下面的代码说明了如何进行上电初始化硬件设备。