计算机应用与软件2016,Vol.33Issue(10):6-8,102,4.DOI:10.3969/j.issn.1000-386x.2016.10.002
基于 TCP Socket 和 HTTP POST 的现代有轨电车定位系统
MODERN STREETCAR POSITIONING SYSTEM BASED ON TCP SOCKET AND HTTP POST
摘要
Abstract
In order to timely get the running status of modern streetcars and to transmit data in a more stable and reliable way,we designed a positioning system for modern streetcars,it is based on transmission control protocol (TCP)socket and hypertext transfer protocol (HTTP) POST requests protocol.It uses dual-mode positioning module of BeiDou Navigation Satellite System (BDS)/Global Positioning System (GPS)to retrieve vehicles coordinates data,its centre platform receives data in the way of mainly using TCP protocol-based Socket communication server software but having HTTP POST request together with Hypertext Preprocessor (PHP)page as the supplement,its data is stored in MySQL database.The streetcars running status is displayed on Baidu map and TCP server software.Finally the system is capable of receiving,storing and displaying the operation data of streetcar in real time,and can automatically switch to HTTP Post request model to send data when the software at TCP server is down.Test result indicates that the system has high positioning precision,is stable and reliable in sending and receiving data as well as in operation,it is an optional positioning way for modern streetcar.关键词
BDS/GPS/TCP Socket/HTTP的POST请求/百度地图Key words
BDS/GPS/TCP socket/POST requests of HTTP/Baidu map分类
信息技术与安全科学引用本文复制引用
陈荣超,杨厅..基于 TCP Socket 和 HTTP POST 的现代有轨电车定位系统[J].计算机应用与软件,2016,33(10):6-8,102,4.基金项目
甘肃省自然科学基金项目(145RJZA213)。 ()