摘要
首先介绍了蓝牙串口通信机制、GPS实时通信协议和GPS数据格式,然后在此基础之上,采用C^#编程语言设计了一套读取GPS设备数据的接口IGPS,并按照接口定义的要求对.NET基础类库System.IO.Ports.Serial-Port进行重新封装和扩展。封装和扩展后的功能模块(GPSSerialPortConnection和GPSSerialPort)可以通过蓝牙串口适配器对GPS设备进行连接、读取、解析、关闭等操作,实现了GPS实时定位信息的获取,并且其设计的GPS接口功能模块已在实际项目中的移动测量、定位、导航等方面得到了较好的应用。
Introduces the Bluetooth serial communication mechanism,GPS real-time communication protocol and GPS data format.On this basis,using the C~# programming language,designed a set of the GPS data reading interfaces(IGPSConnection and IGPS),and in accordance with the requirements of the definitions of the interfaces to the.NET base class library System.IO.Ports.SerialPort to repackage and expansion,package and extended function module(GPSSerialPortConnection and GPSSerialPort)can connect,read,parse,close the GPS device through the Bluetooth serial port adapter,and realize the GPS real-time location information acquisition,and its designed interfaces has been well used in actual projects mobile measurement,positioning,navigation and so on.
出处
《现代测绘》
2016年第3期13-15,18,共4页
Modern Surveying and Mapping
基金
江苏省测绘科研基金项目(JSCHKY201517)
关键词
蓝牙
串口通信
GPS
C^#
bluetooth
serial port communication
GPS
C~#