摘要
本文研究的是基于GPS和GSM的智能公交系统,该系统是GPS全球定位技术和GSM全球移动通信系统相结合的产物。它通讯范围大、系统运行可靠,而且经济实用、投资少、效益高。
论文在对基于GPS和GSM的智能公交系统的构成、系统功能和关键技术进行了深入的研究的基础上提出了设计方案,并在南京航爵科技有限公司开发出了相应的产品。移动定位终端使用AVR的MEGA64L单片机作为控制核心单元和数据处理单元,因为它带有两个串行口能同时与GSM模块、GPS模块进行通信,一个TWI口同MEGA8L进行通信,片内有64k flash程序存储器,2K EEPROM,可编程的看门狗定时器等,采用它可以省去很多外围元器件,提高了系统的稳定性。系统在通信上使用了成熟的工业级GSM模块Siemens公司的TC35I,采用AT指令集进行控制。系统在获取GPS定位信息上使用了可靠性和定位精度非常高的16通道ANTARIS4定位引擎对,158dBm高灵敏度的ATMEL公司的SDT11模块,在恶劣的天气环境和交通环境下都能够保证有最佳的观测信号。系统中的语音芯片采用了美国ISD公司的ISD4004,保证了语音播放的清晰度,系统还使用了具有有机电激发光技术的OLED显示屏作为移动定位终端的本地显示。在软件开发上,我们对系统进行了细化,采用模块化的设计方式,并给出各个模块的实现方法。
This paper first compare urban public transport status quo at home and abroad. Having a rapid economic development, china has a relatively backward Chinese urban public transport system. Many foreign countries use advanced information and communication technology for targeting public transport vehicles, vehicle monitoring, automatic driving, computer-aided dispatch and the provision of various public transport information services, in order to improve bus services since the 1980s. So China's cities have the necessary to strength the modernization construction of the urban public transport system.
The paper in the second chapter of the smart bus stops automatically on the system carried out a detailed programme of demonstration. As GPS global positioning system developed rapidly in recent years is a satellite positioning navigation, is the 1970s, the U.S. Department of Defense develop the second generation of satellite navigation systems, global, continuous, high positioning accuracy, bounded error, The advantages of lower cost, can solve mankind on earth navigation and positioning problems, the final choice of GPS global positioning system as a public transport system positioning system; GSM cellular mobile communication is the use of cellular wireless Zuwangfangshi, in the terminal and network equipment Wireless access through the inter-linking it to proceed to achieve in the activities of users can communicate with each other, with its stability and low cost are the characteristics of a wide range of applications, using the GSM short messaging can be a convenient bus to the status of the To the console, the final choice of the GSM system as a vehicle of communication module; voice at the station, in a detailed analysis of the advantages and disadvantages of the traditional programme on the basis of the proposed use of ISD's ISD4004 system as a voice chip, the Chip using multi-level direct simulation of storage technology, each sample in the value of direct storage in the memory-chip flashing, it can be very real, natural reproduction of voice, music, sound effects and tones, avoiding the general solid recording circuit Due to quantify and reduce noise and to quantify the "metal sound." But also for the future MP3 programme was discussed, in the next bus stop on the voice of a very good choice, but for economic reasons did not consider using.
Papers in the third chapter detailed introduction of the GSM and GPS positioning and how the characteristics of communication.
Papers in the fourth chapter of the details on the system's hardware design, including the principle of the whole diagram and the various functional part of the hardware design. First of all sites for the location of latitude and longitude collection, and then stored in the EEPROM MEGA64L, so even if the power-down will not be lost data, vehicles in the exercise of non-stop collection of latitude and longitude, when a station at around 40 meters ahead of schedule by car Speaker conducted at stations, through the serial MEGA8L displayed on the LED screen "of a certain station to a" short message through the stations of the code, vehicle trips to the console, for the rational management of vehicles and scheduling, while outbound Forecasting the next stop after 20 metres, are the same big-screen display. This system MEGA64L with MEGA8L I communicate through TWI, the former as the host, the latter as a slave, mainly large-screen display LED transmission of data, the rate is not high on the request; MEGA64L through a serial port access to GPS data,
Porter Porter was set to 9600, 8 data bits, 1 stop bit, no parity bit; MEGA64L through the serial port 0 to communicate with the GSM module, through the AT commands to control the order through the mouth and ISD4004 SPI data transmission, The voice recording, playback, fast forward; MEGA8L through the serial port and large LED screen for data transmission, and display data. Papers detail in Chapter 5 on the part of the system software design, the main function is relatively simple, calling a lot of Functions, after the commencement of procedures in the system initialization, there will be eight seconds of recording time or GPS information collection, If the press the button to set the record button, will enter a recording function, this can be good in accordance with the provisions of the original recording steps if press the keys with the GPS information collection button, will enter GPS information collection function, to be collected at this time At a certain latitude and longitude information, simply have to press the button GPS information collection and pay attention to this GPS data must be a valid data, GPS data that is effective only when the lights acquisition, or the data is invalid data, which was behind the station Will not correct, press the button, taken by latitude and longitude information will be stored in the EEPROM in MEGA64L to, even if such power-down will not lose site of the latitude and longitude information. In eight seconds in the not press any button, the system will scan the keyboard to wait for the cycle. The software system has three parts of interrupted service functions, which are key interrupt service function, GPS data reception interrupt service function and Mike interrupt service function, this will trigger an interrupt any disruption to the implementation of the interrupt service function, which interrupted service function keys, Due to the 12 keys on the flow chart that only a simple click, or will be very cumbersome. Functions are all basically process flowly, some of the initial function is given, in the papers can easily understood. Show that there are two functions, one is used in the digital display on the line, stops, idle time can also be used to show that time and in the system set up at the various status code for the system initialization and the other is the LED Large-screen display functions, as used by the large LED screen integrated character, the function of the design is very simple, just send the code with the Chinese characters can be displayed on the clock. Functions of the various procedures in simple to realize the function and reduce nesting and improve the stability.
Papers in the sixth chapter to sum up with Outlook, the system made the simple evaluation and summary of the final of the system raised expectations. Finally, based on GPS and GSM smart bus system can automatically at stations by the Secretary for greatly reduced the labor intensity, increase the intensity of management of the bus operators, bus strengthen the scientific management of the maintenance operation order to enhance operational efficiency, Ensure operational safety and promote the development of intelligent public transportation is of positive significance.
引文
[1]沈文、Eagle lee、詹卫前. AVR 单片机 C 语言开发入门指导,清华大学出版社,2003 年
[2] 于化成、耿德根、李君凯.AVR 单片机应用设计,北京航空航天大学出版社,2002 年
[3] 耿德根、宋建国、马潮、叶勇建.AVR 高速嵌入式单片机原理与应用,北京航空航天大学出版社,2002 年
[4] Richard Bamett、Larry O’Cull、Sarah Cox,周俊杰(译).嵌入式 C 编程与 Atmel AVR,清华大学出版社,2003 年
[5] 席德勋.现代电子技术,高等教育出版社,2002 年
[6] 邓晖、吴笃斌.GPS、GIS、GSM 技术在特种服务车辆监控中的应用,电子技术,2001 年第 7 期
[7] 李宋,王更生.GPS/GIS+GSM 在智能交通系统中的应用,计算机与现代化,2004 年第 12 期
[8] 李瀚荪.电路分析基础(第三版中册),高等教育出版社,2002 年 6 月
[9] 冀常鹏、包剑、刘建辉.GPS 和 GSM 车辆监控系统研究,微计算机信息,2003 年第 19 卷第 9 期
[10] 费小锋、邓同林.GPS 系统在公交系统领域的应用,计算机与信息技术,2007 年第一期
[11] 朱晓红.GPS 智能车辆的车载设备系统,现代电子技术,2006 年第 11期总第 226 期
[12] 杨大凯、王剑、蔡柏根.GSM 短消息在 GPS 交通控制中的应用,电子技术应用,2002 年第 3 期
[13] 冯悦、李小民、冯振声.GSM 技术在 GPS 车辆监控系统中的应用,微计算机信息,1999 年第 15 卷第 6 期
[14] 刘独华、严新平、吴超仲.短消息通信技术在车辆监控管理系统中的应用,理工大学学报,2004 年 12 月,第 8 卷第 6 期
[15] 王素琴、林碧英.基于 GPS/GSM/GIS 的智能公交车辆监控系统研究,四川大学学报(自然科学版),2005 年 8 月,第 42 卷第 4 期
[16] 戴喜明、袁涛、吴定雪.基于 GSM/GPS/GIS 车辆状态监控系统的设计与实现,《微计算机信息》(测控自动化),2006 年第 22 卷第 9-1 期
[17]许连华、李学庆.基于 GPS 的公交车自动报站系统,计算机工程,2005年 12 月,第 31 卷第 23 期
[18] 周国雄,许明情. 城市公交车自动报站系统设计及其应用[J]. 装备制造技术, 2007,(04).
[19] 颜世强,李树广. 公交车自动报站系统的设计[J]. 工业控制计算机, 2004,(06).
[20] 许连华,李学庆. 基于 GPS 的公交车自动报站系统[J]. 计算机工程, 2005,(23).
[21] 张仁旭,孙雪姣,王培进. 用单片机实现公交车的自动考核与报站[J]. 微计算机信息, 2006,(02).
[22] 路勇,姚鹤龄. 基于 RFID 技术的公交车车站自动识别自动报站系统[J]. 现代电子技术, 2005,(13).
[23] 王章瑞,王勇,张林霞. 基于 RF 的无线公交车报站系统设计[J]. 国外电子测量技术, 2007,(04).
[24] 李民生. 基于 ARM 芯片的自动报站系统设计[J]. 科技广场, 2007,(03).
[25] 林绿洲,王力超,陆起涌. 基于 GPS 与 GPRS 的公交智能监控系统[J]. 仪器仪表学报, 2006,(S1).
[26] 杨瑞霞. GPS 公交车智能报站系统的实现[J]. 电子技术, 2006,(11).
[27] 张波. GPS 自动报站系统的设计与实现[J]. 电子元器件应用, 2006,(02).
[28] 马艳彬,张玲娟. 蓝牙组件在公交车实时定位自动报站系统中的应用[J]. 通化师范学院学报, 2007,(08).
[29] 王章瑞,王勇,张林霞. 基于 RF 的无线公交车报站系统设计[J]. 国外电子测量技术, 2007,(04).
[30] 杨程泽. 基于 51 单片机的公交车报站系统[J]. 电子制作, 2007,(09).
[31] 王勇,王章瑞,张林霞. NRF401 在公交车报站系统中的应用[J]. 世界电子元器件, 2007,(02).
[32] 刘忠. 高精度 GPS 数据处理若干理论与技术问题研究[D]长安大学, 2006.
[33] 林绿洲,王力超,陆起涌. 基于 GPS 与 GPRS 的公交智能监控系统[J]. 仪器仪表学报, 2006,(S1).
[34] 杨瑞霞. GPS 公交车智能报站系统的实现[J]. 电子技术, 2006,(11).
[35] 李民生. 基于 ARM 芯片的自动报站系统设计[J]. 科技广场, 2007,(03).
[36] 刘科,李春澍,陈少华,李晓庆. 基于 GPS 的公交车自动报站和超速报警系统[J]. 科技信息, 2006,(02).
[37] 罗维平,王东,吴雨川,向阳. 智能交通系统中基于 GSM 网络的移动定位技术[J]计算机工程, 2007,(23).