[go: up one dir, main page]

CN1547091A - Method and system for data synchronous acquisition/control of information transmitted via GSM - Google Patents

Method and system for data synchronous acquisition/control of information transmitted via GSM Download PDF

Info

Publication number
CN1547091A
CN1547091A CNA2003101171837A CN200310117183A CN1547091A CN 1547091 A CN1547091 A CN 1547091A CN A2003101171837 A CNA2003101171837 A CN A2003101171837A CN 200310117183 A CN200310117183 A CN 200310117183A CN 1547091 A CN1547091 A CN 1547091A
Authority
CN
China
Prior art keywords
gsm
chip
microprocessor
gps
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA2003101171837A
Other languages
Chinese (zh)
Inventor
于庆广
赖俊彦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tsinghua University
Original Assignee
Tsinghua University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tsinghua University filed Critical Tsinghua University
Priority to CNA2003101171837A priority Critical patent/CN1547091A/en
Publication of CN1547091A publication Critical patent/CN1547091A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

The invention is a kind of data synchronous acquisition/control method which uses GSM to transmit information. The character lies in: it uses GPS chip to receive the standard time sent by the GPS system and uses the time as the criterion of information acquisition, uses GSM chip to send the acquired data, time and I/O information to the control centre remotely under control of the microprocessor with mode of short message, correspondently, the control command sent by the GSM chip is received by the GSM short message centre receiving control centre, then uses the microprocessor to send the executing commands. The constructing cost is low, it is stable, safe, high precision, high efficiency, and low transmission cost.

Description

通过GSM传输信息的数据同步采集/控制的方法及系统Method and system for data synchronous acquisition/control of information transmitted via GSM

技术领域technical field

一种通过GSM传输信息的数据同步采集/控制的方法及系统属于通过全球移动通讯系统传输信息的远程无线数据同步采集/控制领域。A method and system for data synchronous acquisition/control of information transmitted through GSM belongs to the field of remote wireless data synchronous acquisition/control of information transmitted through the Global System for Mobile Communications.

背景技术Background technique

目前,很多水厂(包括有引进设备的水厂)的自动监控基本照搬西方的模式,虽然采用了庞大的自动化系统、投资很大,然而在一些关键环节上的调节功能并不强,且运营费用高。这些自动监控系统并不完全符合提高水厂技术经济效益这一根本目的。对于众多的中小水厂,经济条件有限,应在坚持国产化、实用化的原则下,着重发展那些对供水质量、运行费用有重要影响的工艺环节的自动监控技术与设备,建立规模适宜的集散型计算机监控系统。一般来说,取水口都远离净水厂本部,原水通过管道进行输送,取水口通常都设有数台深井水泵,取水口涉及的大部分控制都是关于这些水泵的。取水口的水处理比较简单,无须仪表来监控反应过程,一般只是在水井和输水管道中设置水位计、压力计和流量计用于监测水的输送,水源信号的监测系统也就成为一个相对独立的信号监测系统。目前,现有的远程数据采集/控制技术方案均存在许多严重的缺陷。如:频率利用率低,从而造成系统容量小,信号传输距离有限,难以实现大范围的覆盖,通讯稳定性差,维护工作量大,一般不能实现话音和环境状况信息数据的同时传送等其它功能。At present, the automatic monitoring of many water plants (including those with imported equipment) basically copy the Western model. Although a huge automation system is adopted and the investment is large, the adjustment function in some key links is not strong, and the operation costly. These automatic monitoring systems do not fully meet the fundamental purpose of improving the technical and economic benefits of water plants. For many small and medium-sized water plants, the economic conditions are limited. Under the principle of localization and practicality, we should focus on the development of automatic monitoring technology and equipment for those process links that have an important impact on water supply quality and operating costs, and establish a suitable scale of distribution type computer monitoring system. Generally speaking, the water intake is far away from the headquarters of the water purification plant, and the raw water is transported through pipelines. The water intake is usually equipped with several deep well water pumps, and most of the controls involved in the water intake are related to these pumps. The water treatment at the water intake is relatively simple, and there is no need for instruments to monitor the reaction process. Generally, water level gauges, pressure gauges, and flow meters are installed in wells and water pipelines to monitor water delivery. The monitoring system for water source signals becomes a relative Independent signal monitoring system. At present, the existing remote data acquisition/control technical solutions all have many serious defects. Such as: low frequency utilization, resulting in small system capacity, limited signal transmission distance, difficult to achieve wide-area coverage, poor communication stability, heavy maintenance workload, and generally unable to realize simultaneous transmission of voice and environmental status information data and other functions.

GPS(Global Positioning System)全球卫星定位技术:GPS是美国国防部投资100亿美元,历时20余年开发成功的一种无线电导航定位系统。进入90年代以来,GPS在宇航领域地位得到认可,1993年此项技术开放用于民用后,立刻显示了广泛的应用前景。特别得到公安、金融、保险、交通、运输等部门的广泛关注。全球卫星定位系统GPS是随着现代科学技术的发展建立起来的一个高精度、全天候和全球性的无线电导航定位、定时的多功能系统。它利用位于距地球2万多公里高的、由24颗人造卫星组成的卫星网,向地球不断发射定位信号。地球上的任何一个GPS接收机,均能接收到四颗以上的卫星发出的信号,经过计算后,就可报出GPS接收机的位置(经度、纬度、高度)、时间和运动状态(速度、航向)。目前,没有任何一种传统的导航定位技术能够达到GPS这样的高精度、高速度、全天候和全球性的性能。GPS (Global Positioning System) global satellite positioning technology: GPS is a radio navigation and positioning system successfully developed by the US Department of Defense for more than 20 years with an investment of 10 billion US dollars. Since the 1990s, the status of GPS in the aerospace field has been recognized. After the technology was opened for civilian use in 1993, it immediately showed a wide range of application prospects. In particular, it has received extensive attention from departments such as public security, finance, insurance, traffic, and transportation. Global Satellite Positioning System (GPS) is a high-precision, all-weather and global radio navigation positioning and timing multifunctional system established with the development of modern science and technology. It uses a satellite network composed of 24 artificial satellites located more than 20,000 kilometers above the earth to continuously transmit positioning signals to the earth. Any GPS receiver on the earth can receive signals from more than four satellites. After calculation, it can report the position (longitude, latitude, altitude), time and motion status (speed, speed, etc.) of the GPS receiver. course). At present, no traditional navigation and positioning technology can achieve the high precision, high speed, all-weather and global performance of GPS.

全球移动通讯系统GSM(Global System for Mobile Communications):简称GSM,GSM全球移动通讯系统是目前国内覆盖最广、系统可靠性最高、话机保有量最大的数字移动通讯系统。GSM以统一的方式向各地用户提供具有所有电信业务的国内和国际漫游。用户身份鉴别可保护网络避免无权用户使用。GSM系统除提供话音业务外,还提供数据业务、短消息(SMS)业务等多项功能。GPS/GSM多功能移动跟踪服务系统则是采用了SMS短消息功能实现固定站与移动站之间的数据传输。在GSM体系结构中,有一个通信管理层(CM)。CM的功能是:应用户的要求,在用户之间建立连接,并能维持和释放这些呼叫。SMS就是属于CM层的附加功能。GSM系统的话音或数据传送,都是按照一定的规程建立、释放和管理的,而SMS是GSM中唯一不要求建立端——端业务路径的业务。简单地讲,GSM系统的通讯信道分为话音(或数据)信道和控制信道,SMS是通过控制信道来实现的。短消息的基本过程是:在GSM系统中有一个短消息服务中心(SMSC),手机将短消息和要发送的目的站号一同发给SMSC,再由SMSC转发给指定的另一手机。SMS向上发送的信息占用的是信令信道,占用时间极短,且SMS不占用话音信道,发送短消息对网络的接通率不会造成太大的影响,因此采用该种方式通讯费用低廉。对于定位监控系统来说并不是所有监控的车辆都在不停地发消息,而是定时地报道一下位置信息,只有在特殊情况下才进行连续跟踪。这样GSM网络的短信息服务为GPS移动定位系统提供了良好的通信平台。GSM系统的性能和特点:Global System for Mobile Communications GSM (Global System for Mobile Communications): referred to as GSM, GSM global mobile communication system is currently the digital mobile communication system with the widest coverage, the highest system reliability, and the largest number of telephones in China. GSM provides domestic and international roaming with all telecommunication services to users everywhere in a unified manner. User authentication protects the network from unauthorized users. In addition to providing voice services, the GSM system also provides multiple functions such as data services and short message (SMS) services. The GPS/GSM multifunctional mobile tracking service system uses the SMS short message function to realize data transmission between fixed stations and mobile stations. In the GSM architecture, there is a communication management layer (CM). The function of CM is: to establish connections between users at the request of users, and to maintain and release these calls. SMS is an additional function belonging to the CM layer. The voice or data transmission of the GSM system is established, released and managed according to certain regulations, and SMS is the only service in GSM that does not require the establishment of an end-to-end service path. Simply speaking, the communication channels of the GSM system are divided into voice (or data) channels and control channels, and SMS is realized through the control channel. The basic process of the short message is: there is a short message service center (SMSC) in the GSM system, and the mobile phone sends the short message together with the destination station number to be sent to the SMSC, and then forwards it to another mobile phone designated by the SMSC. The information sent upward by SMS occupies the signaling channel, which occupies a very short time, and SMS does not occupy the voice channel. Sending short messages will not have a great impact on the connection rate of the network, so the communication cost of this method is low. For the positioning monitoring system, not all the monitored vehicles are sending messages non-stop, but the location information is reported regularly, and continuous tracking is only carried out under special circumstances. In this way, the short message service of the GSM network provides a good communication platform for the GPS mobile positioning system. Performance and features of GSM system:

1.系统容量大。GSM短信中心可以支持数以万计的用户,在最小配置下,一分钟可接收超过1.5万目标信息数据;1. Large system capacity. The GSM SMS center can support tens of thousands of users, and under the minimum configuration, it can receive more than 15,000 target information data in one minute;

2.系统功能齐全:系统除具有语音通话(手机自身固有)功能外,还利用手机的收发功能实现数字短信息通信,完成同步采集、报警、服务请求、控制等消息传递功能;2. The system has complete functions: In addition to the function of voice call (the mobile phone itself), the system also uses the sending and receiving function of the mobile phone to realize digital short message communication, and completes message transmission functions such as synchronous collection, alarm, service request, and control;

3.系统服务范围广:可以说中国移动GSM网覆盖的地域,都是系统服务的范围;3. Wide range of system services: It can be said that the areas covered by China Mobile's GSM network are all within the scope of system services;

4.系统集成度高:系统采用集中式管理方式,监控服务中心统管本部门以及与其它部门间的业务;系统设施集成在客户服务中心内,便于维护、升级与管理。4. High degree of system integration: the system adopts a centralized management method, and the monitoring service center manages the business of the department and other departments; the system facilities are integrated in the customer service center, which is convenient for maintenance, upgrade and management.

5.系统建设投资省:由于以GSM为通信平台,可以大大节省系统建设的费用;5. Low investment in system construction: Since GSM is used as the communication platform, the cost of system construction can be greatly saved;

6.可以实现跨地区的同步监测:如果当地没有监控服务中心,但是已开通短讯,则可以通过当地的短讯通道向异地的监控中心发送监测数据,实现远程同步监测;6. Synchronous monitoring across regions can be realized: If there is no monitoring service center in the local area, but SMS has been opened, the monitoring data can be sent to the monitoring center in other places through the local SMS channel to realize remote synchronous monitoring;

7.安全保密好:这体现在:(a)在传输阶段,GPS数据和命令是经过GSM信令通道的,对该部分监听难。(b)服务中心只对固定信息进行处理,对其它数据只是进行分发、储存,因此客户可根据需要对自身私有数据加密,其他用户无法获得。7. Good security and confidentiality: This is reflected in: (a) In the transmission stage, GPS data and commands pass through the GSM signaling channel, which is difficult to monitor. (b) The service center only processes fixed information, and only distributes and stores other data. Therefore, customers can encrypt their own private data according to their needs, and other users cannot obtain it.

全球移动通讯系统GSM(Global System for Mobile communication)是目前基于时分多址技术的移动通讯体制中最成熟、最完善、应用最广的一种系统。在远程数据采集/控制系统中,有大量的现场监测设备需要将采集的数据传送到信息/控制中心以待处理,这些设备的特点是数量大、分布广,同时对数据传输的实时性要求不是很高。而每个短信息的发送单元的成本低,系统维护工作量小,短信息服务可以作为具有以上特点数据通讯的首选方案。每个数据采集设备都配备一个短信息通讯单元,并相应配备一个SIM卡。数据采集模块将采集的模拟量转化为数字量,并通过相应的AT编码处理,将数据传送给通讯模块的基带部分,基带部分完成信号调制和编码功能,再将信号传送给射频部分,最后通过天线发射给GSM网;GSM网有专门的短信息处理器存储专门的短信息服务,通过电信系统将短信息数据传送相应的数据处理中心。GSM (Global System for Mobile communication) is the most mature, perfect and widely used system in the mobile communication system based on time division multiple access technology. In the remote data acquisition/control system, there are a large number of on-site monitoring devices that need to transmit the collected data to the information/control center for processing. These devices are characterized by a large number and wide distribution, and the real-time requirements for data transmission are not very high. However, the cost of each short message sending unit is low, and the system maintenance workload is small. Short message service can be used as the first choice for data communication with the above characteristics. Each data acquisition device is equipped with a short message communication unit and correspondingly equipped with a SIM card. The data acquisition module converts the collected analog quantities into digital quantities, and transmits the data to the baseband part of the communication module through corresponding AT coding processing. The baseband part completes the signal modulation and coding functions, and then transmits the signal to the radio frequency part. The antenna transmits to the GSM network; the GSM network has a special short message processor to store the special short message service, and transmits the short message data to the corresponding data processing center through the telecommunication system.

目前科技文献大量报道有关基于GSM数据采集系统,但和本发明都不相同,如文献:[1]李业德,基于GSM短消息方式的远程自来水厂地下水位自动监控系统,仪表技术与传感器,2002年第8期;[2]彭宁昆,卢钢,卢益民,基于GSM短消息的GPS车辆监控移动单元设计,电子工程师,2002年第2期;[3]专利技术名称:一种GPS(全球卫星定位系统)定位信息和控制信息的传输方法(专利号:99125949·1)。文献[1]所述的系统没有本发明的GPS标准时间功能,如果遇到GSM短消息堵塞将无法判断远程数据的真实性;文献[2][3]所述的系统是车辆等移动目标的GPS定位系统的监测,通过GSM传送的是GPS的定位信息;本发明是固定目标的GPS标准时间的同步采集和监测,通过GSM传送的是GPS的标准时间信息。文献[3]通过GSM传送还有车辆内的一些声音、图象等信息,本发明通过GSM传送的是经过模数转换得到的同步采集数据,本发明中微处理器具有标准通讯接口,也可以通过无线电台、红外线等方式完成远程数据采集/控制功能。Present science and technology literature reports relevant based on GSM data acquisition system in large quantities, but is not identical with the present invention, as literature: [1] Li Yede, the remote waterworks groundwater level automatic monitoring system based on GSM short message mode, instrument technology and sensor, 2002 No. 8; [2] Peng Ningkun, Lu Gang, Lu Yimin, Design of GPS Vehicle Monitoring Mobile Unit Based on GSM Short Message, Electronic Engineer, No. 2, 2002; [3] Patent technology name: A GPS (Global Satellite Positioning System ) transmission method of positioning information and control information (patent number: 99125949·1). The system described in document [1] does not have the GPS standard time function of the present invention, if run into GSM short message jam and can't judge the authenticity of long-distance data; The system described in document [2][3] is the vehicle etc. The monitoring of the GPS positioning system transmits GPS positioning information through GSM; the present invention is the synchronous acquisition and monitoring of GPS standard time of a fixed target, and transmits GPS standard time information through GSM. Document [3] also has information such as some voices, images in the vehicle by GSM transmission, what the present invention transmits by GSM is the synchronous collection data that obtains through analog-to-digital conversion, microprocessor has standard communication interface in the present invention, also can Complete remote data collection/control functions through radio stations, infrared rays, etc.

GSM是我国覆盖面最广、功能最强、抗干扰能力最强、通信可靠性最高的数字移动通信网,GSM短消息具有随时在线、不需拨号、价格便宜等特点。基于GSM短消息的水源远程监测系统就是一种适用于中小型水厂的无线远程自动控制设备,本发明实现了在GSM短消息方式下进行远程无线数据采集/控制的问题,给出了系统的硬件和软件设计及实现,解决了系统实现过程中的关键技术问题。GSM is a digital mobile communication network with the widest coverage, the strongest functions, the strongest anti-interference ability, and the highest communication reliability in my country. GSM short messages are online at any time, without dialing, and cheap. The water source remote monitoring system based on GSM short message is a kind of wireless remote automatic control equipment suitable for small and medium-sized water plants. The invention realizes the problem of remote wireless data collection/control in the GSM short message mode, and provides the system The design and implementation of hardware and software have solved the key technical problems in the process of system implementation.

附图说明Description of drawings

图1是本发明的系统组成示意图。Fig. 1 is a schematic diagram of the system composition of the present invention.

图2是本发明的装置组成示意图。Fig. 2 is a schematic diagram of the composition of the device of the present invention.

图3是微处理器和GSM芯片的连接图。Figure 3 is a connection diagram of the microprocessor and the GSM chip.

图4是微处理器和GPS芯片的连接图。Figure 4 is a connection diagram of the microprocessor and the GPS chip.

图5是微处理器和A/D转换器连接图。Figure 5 is a connection diagram of the microprocessor and the A/D converter.

图6是本发明所述方法的流程框图。Fig. 6 is a block flow diagram of the method of the present invention.

具体实施方式Detailed ways

本发明所述的方法见图6。The method of the present invention is shown in FIG. 6 .

本系统是以高档微处理器为控制器(33MHz),使用模数转换器件ADS7864对模拟量输入信号进行实时同步采集的远程无线数据同步采集/控制装置。远程无线数据同步采集/控制装置的系统实现结构图如图1所示,微处理器具有2个RS232串行口,一个RS232口接GSM模块,另一个RS232口接GPS模块。微处理器把模数转换同步采集的数据和GPS(GlobalPositioning System)全球卫星定位系统的时间信息通过一个RS232口传送到GSM模块中,由GSM模块通过短信中心传送到控制中心,控制中心有一台个人计算机组成,实现对远程采集的数据进行存盘和发出远程控制命令等管理功能,完成远程无线数据的同步采集;反之,控制中心发出的命令通过短信中心传到GSM模块中,由GSM模块通过一个RS232口传送给微处理器,微处理器通过输出口发出执行命令。This system uses a high-end microprocessor as the controller (33MHz), and uses the analog-to-digital conversion device ADS7864 to perform real-time synchronous acquisition of analog input signals. It is a remote wireless data synchronous acquisition/control device. The system structure diagram of the remote wireless data synchronous acquisition/control device is shown in Figure 1. The microprocessor has two RS232 serial ports, one RS232 port is connected to the GSM module, and the other RS232 port is connected to the GPS module. The microprocessor transmits the data collected synchronously by analog-to-digital conversion and the time information of the GPS (Global Positioning System) global satellite positioning system to the GSM module through an RS232 port, and the GSM module transmits it to the control center through the SMS center. The control center has a personal Composed of computers, it realizes management functions such as saving the data collected remotely and issuing remote control commands, and completes the synchronous collection of remote wireless data; on the contrary, the commands issued by the control center are transmitted to the GSM module through the SMS center, and the GSM module passes through a RS232 The output port is sent to the microprocessor, and the microprocessor issues an execution command through the output port.

GSM短消息远程无线数据同步采集/控制装置硬件组成方框图如图2所示,下面分别介绍各组成部分的功能和实现。The block diagram of the hardware composition of the GSM short message remote wireless data synchronous acquisition/control device is shown in Figure 2. The functions and implementation of each component are introduced below.

微处理器核心采用高速8位单片微处理器产品,它是8051的改进产品,与标准80C52引脚和指令系统兼容,并且有3个兼容的定时器/计数器;2个串行口;4个8位I/O口;片上256B的RAM、1KB的SRAM、16KB的ROM;双数据指针。由于微控制器具有片上存储器,因此本系统不需要片外程序/数据存储器,系统只扩展KB键盘、LCM液晶显示器、A/D模数转换器和GPS模块。微处理器的2个串行口分别接GPS模块和GSM模块。The microprocessor core uses a high-speed 8-bit single-chip microprocessor product, which is an improved product of 8051, compatible with the standard 80C52 pin and instruction system, and has 3 compatible timers/counters; 2 serial ports; 4 8-bit I/O ports; on-chip 256B RAM, 1KB SRAM, 16KB ROM; double data pointers. Because the microcontroller has on-chip memory, this system does not need off-chip program/data memory, and the system only expands KB keyboard, LCM liquid crystal display, A/D analog-to-digital converter and GPS module. The two serial ports of the microprocessor are respectively connected to the GPS module and the GSM module.

水位及压力信号的采集是通过水位变送器和压力变送器把水位及压力数据转变为4-20mA的模拟量信号,这个4-20mA的电流信号再通过接口电路转化为0-5V的电压信号后,系统才能完成对水位的模拟量信号到数字量信号的转换。The acquisition of water level and pressure signals is to convert the water level and pressure data into 4-20mA analog signal through the water level transmitter and pressure transmitter, and then convert the 4-20mA current signal into 0-5V voltage through the interface circuit After the signal, the system can complete the conversion of the analog signal of the water level to the digital signal.

为了保证城市供水的安全运行和了解水源地水井的状况,需要对不同的水井同时进行实时检测和分析。以往人们测量的多路参数大多是通过多路模拟开关共用一个A/D转换器,这样不仅电路复杂、价格较高,而且还难以避免采样的孔径时间以及器件间影响所引起的误差,无法实现同步采样。本发明选用了ADS7864芯片进行A/D转换,ADS7864可以使测量电路变得简单,而且能够保证同步测量的精度和准确性。在ADS7864电路中,保持信号及控制信号接在一起,保证6路信号的同时采样。如5V电压要求以5mV精度变换时,精度为5mV/5V=0.1%,即1/1000十进制的1000用二进制表示时要求为10位,而本系统所采用的A/D模块分辨率为12bit,其精度在±0.05%以上,该精度等级足以满足控制系统要求。设水位计满量程是20米,压力传感器输出的信号经运算器放大后,进入A/D转换器ADS7864。ADS7864是12位转换器,输出的数字量是0-4095。那么此系统的分辨率是0.5cm,其精度为±0.025%。完全满足水位测量的要求。In order to ensure the safe operation of urban water supply and understand the status of wells in water sources, it is necessary to conduct real-time detection and analysis of different wells at the same time. In the past, most of the multi-channel parameters measured by people used one A/D converter shared by multiple analog switches. This not only complicated the circuit and high price, but also it was difficult to avoid the error caused by the sampling aperture time and the influence between devices. Synchronous sampling. The present invention selects the ADS7864 chip for A/D conversion, and the ADS7864 can make the measurement circuit simple, and can ensure the precision and accuracy of the synchronous measurement. In the ADS7864 circuit, the hold signal and the control signal are connected together to ensure simultaneous sampling of 6 signals. For example, when the 5V voltage is required to be converted with 5mV precision, the precision is 5mV/5V=0.1%, that is, 1000 of 1/1000 decimal is required to be 10 bits when expressed in binary, and the resolution of the A/D module used in this system is 12bit. Its accuracy is above ±0.05%, which is sufficient to meet the requirements of the control system. Assuming that the full-scale range of the water level gauge is 20 meters, the signal output by the pressure sensor is amplified by the arithmetic unit and then enters the A/D converter ADS7864. ADS7864 is a 12-bit converter, and the output digital quantity is 0-4095. The resolution of this system is then 0.5 cm and its accuracy is ±0.025%. Fully meet the requirements of water level measurement.

GSM模块所放置的地方为水源地,GSM模块主要由射频天线、内部Flash、GSM基带处理器、匹配电源和1个40脚的ZIP插座组成。GSM模块通过一个ZIF(Zero Insertion Force)连接器(40针的电缆)与微处理器接口,这40个引脚可以划分为5类,即电源、数据输入/输出、SIM卡、音频接口和控制,微处理器和GSM模块的电气接线如图3所示。第1~14脚为电源部分,其中1~5为电源电压输入端Vbatt+,提供3.3~5.5V峰值2A的直流电源;6~10为电源地GND;(1~5,6~10的供电电路,接地电路都要分别并联在一起)11、12充电引脚,13对外输出电压(供外电路使用),14为ACCU-TEMP接负温度系数的热敏电阻。24~29为SIM卡引脚,分别为CC FIN、CC RST、CC IO、CC CLK、CC VCC和CC GND;33~40为语音接口用来接电话手柄。15、30、31和32脚为控制部分,15为点火线IGT(Ignition),当TC35通电后必须给IGT一个大于100ms低电平,模块才启动。对TC35模块控制,IGT信号非常地重要,只有正确的IGT信号才可以使TC35模块正常地运行。系统加电后,为使TC35进入工作状态,必须给IGT加一延时大于100ms的低脉冲,电平下降持续时间不可超过1ms。启动后,IGT应保持高电平。驱动IGT时,TC35供电电压不能低于3.3V,否则不能激活为了确保正确的IGT信号的输入,系统利用单片机来驱动TC35模块,运用软件来完成这项工作。30为RTC backup,31为power down,32为SYNC。16~23位数据输入/输出分别为DSR0、RING0、RXD0、TXD0、CTS0、RTS0、DTR0和DCD0。The place where the GSM module is placed is the water source. The GSM module is mainly composed of a radio frequency antenna, internal Flash, GSM baseband processor, matching power supply and a 40-pin ZIP socket. The GSM module interfaces with the microprocessor through a ZIF (Zero Insertion Force) connector (40-pin cable). These 40 pins can be divided into 5 categories, namely power supply, data input/output, SIM card, audio interface and control , the electrical wiring of the microprocessor and the GSM module is shown in Figure 3. The 1st to 14th pins are the power supply part, of which 1 to 5 are the power supply voltage input terminals Vbatt+, which provide a DC power supply with a peak value of 3.3 to 5.5V and 2A; 6 to 10 are the power ground GND; (1 to 5, 6 to 10 power supply circuit , the grounding circuit should be connected in parallel respectively) 11, 12 charging pins, 13 external output voltage (for external circuit use), 14 is the thermistor with negative temperature coefficient connected to ACCU-TEMP. 24~29 are SIM card pins, respectively CC FIN, CC RST, CC IO, CC CLK, CC VCC and CC GND; 33~40 are voice interfaces used to connect to the phone handle. Pins 15, 30, 31 and 32 are the control part, and pin 15 is the ignition wire IGT (Ignition). When TC35 is powered on, IGT must be given a low level greater than 100ms before the module starts. For TC35 module control, IGT signal is very important, only correct IGT signal can make TC35 module run normally. After the system is powered on, in order to make the TC35 enter the working state, a low pulse with a delay of more than 100ms must be added to the IGT, and the duration of the level drop cannot exceed 1ms. After startup, IGT should remain high. When driving IGT, the power supply voltage of TC35 cannot be lower than 3.3V, otherwise it cannot be activated. In order to ensure the correct IGT signal input, the system uses a single-chip microcomputer to drive the TC35 module, and uses software to complete this work. 30 is RTC backup, 31 is power down, and 32 is SYNC. 16-23 bits of data input/output are DSR0, RING0, RXD0, TXD0, CTS0, RTS0, DTR0 and DCD0 respectively.

本发明还设计有GPS模块接口,可以把GPS的时间信息同时通过GSM发送给控制中心。GPS模块主要有12针的电缆与单片机接口,这12个引脚和MCU单片机系统的电气接线如图4所示,VIN是3.6VDC-6VDC的电源,GND是电源的地;PPS是秒脉冲输出;TXD1和RXD1是标准RS232接口,TXD1输出数据(-5VDC-+5VDC),RXD1输入数据(-15VDC-+15VDC)。The present invention is also designed with a GPS module interface, which can simultaneously send GPS time information to the control center through GSM. The GPS module mainly has a 12-pin cable and the MCU interface. The electrical connection between these 12 pins and the MCU MCU system is shown in Figure 4. VIN is the power supply of 3.6VDC-6VDC, GND is the ground of the power supply; PPS is the second pulse output ; TXD1 and RXD1 are standard RS232 interfaces, TXD1 output data (-5VDC-+5VDC), RXD1 input data (-15VDC-+15VDC).

本发明是在自行开发的软件下实现数据远程监控的。AT指令集是由诺基亚、爱立信、摩托罗拉等厂家共同为GSM系统研制的,GSM模块支持GSM的AT指令集,其中包括了对SMS短消息的控制。GSM对SMS的控制有二个实现途径,Text Mode和PDU Mode。本发明是通过PDU Mode方式发送和接收短消息的。GSM定时发送短消息流程图如图5所示。假设如果需要发送数字“23”到手机号码13041065863,则首先发送数据串AT+CMGS=19<CR>,然后等待ASCII字符“>”,然后输入PDU数据00 11 00 0D 91 683140015668F3 00 08 A9 04320033001A。长度19不包括PDU数据中第一个字节00。TC35模块可以将PDU数据返回给单片机,假设接收短消息数据为“23”,发送方是13520896603,则TC35发送给单片机的数据是<CRLF>08 91 683140015668F3 11 00 0D 91 683125806906F3 00 08 30601061729380 0432003300<CRLF>。The present invention realizes data remote monitoring under self-developed software. The AT instruction set is jointly developed by Nokia, Ericsson, Motorola and other manufacturers for the GSM system. The GSM module supports the AT instruction set of GSM, including the control of SMS short messages. GSM has two ways to realize the control of SMS, Text Mode and PDU Mode. The present invention sends and receives short messages through the PDU Mode. The flow chart of sending short messages regularly by GSM is shown in Figure 5. Suppose if you need to send the number "23" to the mobile phone number 13041065863, first send the data string AT+CMGS=19<CR>, then wait for the ASCII character ">", and then input the PDU data 00 11 00 0D 91 683140015668F3 00 08 A9 04320033001A. Length 19 does not include the first byte 00 in the PDU data. The TC35 module can return the PDU data to the microcontroller, assuming that the received short message data is "23" and the sender is 13520896603, then the data sent by the TC35 to the microcontroller is <CRLF>08 91 683140015668F3 11 00 0D 91 683125806906F3 00 08 306010613040CR20<CR2 >.

本本发明采用了现有的GSM数字移动通信网,避免了原有类似系统建微波站的投入和微波站的维护工作。具备建设费用低、维护费用少、安全稳定性好、数据采集精度高、数据传输准确率高、工作效率高、传输费用低等特点,并有多路同步数据采集、定时数据传输、主站呼叫数据传输、故障紧急数据传输、六路数据共用一条短信传输等功能。本发明采用GPS对同步采集的数据打上时间标签,解决了因为GSM短消息堵塞造成的麻烦。The present invention adopts the existing GSM digital mobile communication network, which avoids the investment in building microwave stations and the maintenance work of microwave stations in the original similar system. It has the characteristics of low construction cost, low maintenance cost, good safety and stability, high data collection accuracy, high data transmission accuracy, high work efficiency, low transmission cost, etc., and multi-channel synchronous data collection, timing data transmission, master station call Data transmission, fault emergency data transmission, six channels of data sharing a short message transmission and other functions. The invention uses GPS to mark time labels on the synchronously collected data, which solves the trouble caused by the blockage of GSM short messages.

本发明利用了现有的GSM网络资源发挥网络覆盖率高、传输特性好等优势,为现有同步数据采集/控制系统提供了一种便捷的无线远程数据传输方式,这必将成为工业控制及现场监控领域新的发展趋势,不但可用在城市供水行业,并有广泛发展空间,为安防、电力、石油、矿山等其它行业的无线远程监控系统提供了新的思路。The present invention utilizes the existing GSM network resources to give full play to the advantages of high network coverage and good transmission characteristics, and provides a convenient wireless remote data transmission method for the existing synchronous data acquisition/control system, which will become an industrial control and The new development trend in the field of on-site monitoring, not only can be used in the urban water supply industry, but also has a wide range of development space, providing a new idea for wireless remote monitoring systems in other industries such as security, electric power, petroleum, and mining.

使用证明,通过GSM传输信息的数据同步采集/控制的方法及系统可实现预期目的,系统的测试结果如下:Use proves that the method and system for data synchronous acquisition/control of GSM transmission information can achieve the intended purpose, and the test results of the system are as follows:

1.进行6路模拟量同步采集的分辨力为12位。1. The resolution for synchronous acquisition of 6 analog quantities is 12 bits.

2.模拟量采样分辨率不超过20微秒。2. The sampling resolution of the analog quantity does not exceed 20 microseconds.

3.模拟量采样精度在±0.05%以上。3. The sampling accuracy of the analog quantity is above ±0.05%.

Claims (2)

1、通过GSM传输信息时数据同步采集/控制的方法,含有基于全球移动通讯系统GSM短信息方式传输,由微处理机采集到的模拟量数据、按收到的全球卫星定位系统GPS信息的方法,其特征在于:它是一种由微处理机把模拟量数据和GPS标准时间信息通过GSM短信中心进行远程同步采集/控制的方法,它依次含有以下步骤:1. The method of data synchronous acquisition/control when transmitting information through GSM, including the method of transmitting the analog quantity data collected by the microprocessor based on the GSM short message mode of the global mobile communication system, and according to the received GPS information of the global satellite positioning system , it is characterized in that: it is a kind of method that analog quantity data and GPS standard time information are carried out remote synchronous collection/control by GSM short message center by microprocessor, and it contains following steps successively: (1)微处理机按GPS芯片即全球卫星标准时钟芯片接收到的GPS标准时间来初始化自己的定时器,即设定采样起始时间、采样周期和采样次数;(1) The microprocessor initializes its own timer by the GPS standard time received by the GPS chip, that is, the global satellite standard clock chip, that is, the sampling start time, the sampling period and the number of sampling times are set; (2)微处理机按基于GPS标准时间的采样间隔、采样周期从模/数转换器A/D读取标准采样时刻,I/O信号及相应的采样数据,再通过GSM芯片把它们经由GSM短信中心无线发送到控制中心;(2) The microprocessor reads the standard sampling time, I/O signal and corresponding sampling data from the analog/digital converter A/D according to the sampling interval and sampling period based on the GPS standard time, and then transmits them through the GSM chip through the GSM chip. The SMS center sends it to the control center wirelessly; (3)控制中心再把相应的命令经由GSM短信中心传输到与上述微处理器相连的上述GSM芯片,上述微处理机根据从上述GSM芯片收到的控制命令通过控制信号输出口发出执行命令。(3) The control center transmits the corresponding command to the above-mentioned GSM chip connected to the above-mentioned microprocessor via the GSM short message center, and the above-mentioned microprocessor sends an execution command through the control signal output port according to the control command received from the above-mentioned GSM chip. 2、通过GSM传输信息的数据同步采集/控制的系统,含有微处理机、GSM芯片及连接GPS的接口,其特征在于它含有:设置于水源地的8051改进型高速8位单片微处理器、GSM芯片TC35、两个RS232串行接口MAX232、GPS芯片GARMIN 25LVS、模/数转换芯片ADS7864以及水位、压力变送器,其中:GPS芯片的秒脉冲输出端PPS与微处理器的相应的信号输入端相连,MAX232的输入/输出数据端RXD1/TXD1分别和微处理器、GPS芯片的相应端3、4以及5、4相连,GPS芯片的电源端VIN、接地端GND分别和微处理器的相应端VCC、VSS相连,GPS芯片的复位端RESET和微处理器的相应端相连;另一个MAX232的TXD、RXD端分别和GSM芯片的19、18端相连,它的TXDO、RXDO端分别与微处理器的11、10端相连,GSM芯片的IGT端和微处理器的14端相连;所述的GSM芯片还连接着一个用户身份卡SIM,ADS7864和单片微处理器87C520WCL的数据地址相应端相连。2. A system for data synchronous acquisition/control of information transmitted through GSM, which contains a microprocessor, a GSM chip and an interface connected to GPS, and is characterized in that it contains: an 8051 improved high-speed 8-bit single-chip microprocessor arranged at a water source , GSM chip TC35, two RS232 serial interfaces MAX232, GPS chip GARMIN 25LVS, analog/digital conversion chip ADS7864, and water level and pressure transmitters, among them: the second pulse output terminal PPS of the GPS chip and the corresponding signal of the microprocessor The input terminal is connected, the input/output data terminal RXD1/TXD1 of MAX232 is respectively connected with the corresponding terminals 3, 4 and 5, 4 of the microprocessor and the GPS chip, and the power supply terminal VIN and the ground terminal GND of the GPS chip are respectively connected with the corresponding terminals of the microprocessor. The corresponding terminals VCC and VSS are connected, and the reset terminal RESET of the GPS chip is connected with the corresponding terminal of the microprocessor; the TXD and RXD terminals of the other MAX232 are respectively connected with the 19 and 18 terminals of the GSM chip, and its TXDO and RXDO terminals are respectively connected with the microprocessor terminals. The 11,10 ends of the processor are connected, and the IGT end of the GSM chip is connected with the 14 ends of the microprocessor; the GSM chip is also connected with a subscriber identity card SIM, ADS7864 and the corresponding end of the data address of the single-chip microprocessor 87C520WCL connected.
CNA2003101171837A 2003-12-05 2003-12-05 Method and system for data synchronous acquisition/control of information transmitted via GSM Pending CN1547091A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2003101171837A CN1547091A (en) 2003-12-05 2003-12-05 Method and system for data synchronous acquisition/control of information transmitted via GSM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2003101171837A CN1547091A (en) 2003-12-05 2003-12-05 Method and system for data synchronous acquisition/control of information transmitted via GSM

Publications (1)

Publication Number Publication Date
CN1547091A true CN1547091A (en) 2004-11-17

Family

ID=34337723

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2003101171837A Pending CN1547091A (en) 2003-12-05 2003-12-05 Method and system for data synchronous acquisition/control of information transmitted via GSM

Country Status (1)

Country Link
CN (1) CN1547091A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101586979B (en) * 2009-07-10 2010-09-15 国网电力科学研究院 A constant-flow bubble type automatic water level measurement method
CN102592397A (en) * 2010-04-02 2012-07-18 上海市电力公司 Early warning device for preventing water accumulation of power distribution station
CN102868839A (en) * 2012-08-30 2013-01-09 浙江中博智能技术有限公司 Intelligent security control system for transmitting remote multimedia data
CN104700595A (en) * 2015-03-11 2015-06-10 成都中兢伟奇科技有限责任公司 Intelligent pressure transmitter based on mobile phone short message
CN111436180A (en) * 2019-09-18 2020-07-21 深圳市海洋王照明工程有限公司 Synchronous control drive circuit and synchronous control lamp

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101586979B (en) * 2009-07-10 2010-09-15 国网电力科学研究院 A constant-flow bubble type automatic water level measurement method
CN102592397A (en) * 2010-04-02 2012-07-18 上海市电力公司 Early warning device for preventing water accumulation of power distribution station
CN102868839A (en) * 2012-08-30 2013-01-09 浙江中博智能技术有限公司 Intelligent security control system for transmitting remote multimedia data
CN104700595A (en) * 2015-03-11 2015-06-10 成都中兢伟奇科技有限责任公司 Intelligent pressure transmitter based on mobile phone short message
CN111436180A (en) * 2019-09-18 2020-07-21 深圳市海洋王照明工程有限公司 Synchronous control drive circuit and synchronous control lamp

Similar Documents

Publication Publication Date Title
CN203745870U (en) Water resource intelligent integrated monitoring system
CN101799979B (en) All-weather driving service system
CN203151492U (en) Data acquisition and monitor system based on Beidou satellite short message remote communication
CN101749542A (en) Wireless management system for oil and gas transportation metering and leakage alarming
CN201123095Y (en) Mobile telephone system capable of locating and tracing
CN202067405U (en) Personnel and vehicle dispatching monitoring system
CN101789154A (en) Returning location searching method for leased bicycle
CN201060554Y (en) Full-automatic station-reporting and monitoring manager for public transport vehicle
CN201708928U (en) Personal positioning device
CN102421063A (en) Vehicle monitoring system based on GPS + GPRS
CN1547091A (en) Method and system for data synchronous acquisition/control of information transmitted via GSM
CN103529464A (en) Terminal device based on Compass satellite system
CN1301411C (en) Global positioning monitoring device for mobile object
CN201707061U (en) Short message telemetering multiparameter recorder
CN204423620U (en) A kind of electric energy acquisition terminal based on the communication of Big Dipper short message
CN1360289A (en) Mobile intelligent electronic bus stop bulletin board combined with GPS
CN201467448U (en) Police moving switch-in device with functions of locating and communicating
CN201114296Y (en) GPS positioning communications interphone
CN2824060Y (en) Remote communication positioning monitor for intelligent loader
CN111953703B (en) Gas turbine remote transmission system and method based on satellite communication
CN1419350A (en) GPRS based long distance monitoring control system
CN2421208Y (en) On-vehicle equipment with integrated positioning, communication and anti-theft warning functions
CN103093595A (en) GPRS-based embedded remote data acquisition system
CN113916286A (en) A river bank water quality monitoring system based on LORA
CN201331688Y (en) Hydroelectric generating set operation monitoring device based on GSM communication

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication