The Application of GPS and GPRS in Vehicle Traveling Data Recorder

Author
WangWei
Advisor
QinGuiHe
School
Jilin University
Major
Software Engineering
Classification
TP216.2 Automatic recording and indicating instruments
Degree
Master's thesis
Year
2009
Downloads
290
Citations
4

Request the full text

Abstract

With the continuous development of science and technology, automobile become more and more popular in people’s daily life. At the same time, with the expanding of city scale, the exchange between them become more and more frequent. Which resulting much problem in traffic congestion, car accidents and other issues. It is important for the transport sector to build a better plan for traffic operation and a real-time monitor for the traffic. Because of this, a new technology named“Vehicle Traveling Data Recorder”(VTDR) was developed as a role of electronic police. This paper uses VTDR as project background, efforts to develop the use of GPS and GPRS in the car application.VTDR also be known as“black box in vehicle”. It was installed in the bus, taxi, truck and other modes of vehicles. It can record the speed of vehicles, runtime, mileage and other informations. The data was output as digital signals. It was used for enterprise to strengthen the usage, operation and management of vehicles. It provides traffic safety management and accident analysis, as well as law enforcement. It can send the data back to monitoring center through wireless network anytime.GPS is known as the Global Positioning System, which continuously send its own parameters and time information via satellite. The GPS receiver taken by users can receive these informations and calculated the three-dimensional position, three-dimensional direction, velocity and time information. In this paper, the GPS technology was used to get the positioning data of vehicles.GPRS technology was based on the GSM wireless packet switching technology. it has very obvious advantages in data support services. GPRS technology is a good choice for wireless network transmission system.Because of the terminals need to be installed in the car, the embedded system platform must be choosed. According to the definition of IEEE, embedded systems are used to control or monitor machinery, equipment, factory equipment and other large-scale systems. This definition is according to the use of embedded systems. Usually single embedded system’s function was simple, and it’s designed for a specific purposes. It’s a lot difference from the general-purpose computer. There is more commonly used definition for embedded systems: the embedded system is application-centric, based on computer technology, software, hardware, it can be modified to meet any request of the application system, such as reliability, cost, size, power consumption.The build of embedded Linux system platform is including the environment build, Bootloader upload and Linux kernel configuration and upload. The buid of environment including the establishment of cross-compiler, minicom configuration and host services configuration. For bootloader, the U-boot version is used, which is developed from the ppcboot and ARMboot. And we use the minimum Linux kernel of version 2.6.19. After the kernel configuration, the tftp service will be used to burn it into the target board. The hardware design in this paper is that the GPS reciver, GPRS module and other external equipments are connect to the develop board via serial port. And the master chip is AT91SAM9260 from Atmel Company. The GPS receiver in this paper is iTrax02 from FAStrax Company.It is a GPS OEM board with small size and low power consumption. The GPRS module is GTM900 wireless module from Huawei, which is a tri-band GSM/GPRS wireless module, supporting standard AT commands and enhanced AT commands. This module also provides a wealth of voice and data services and other functions.To carry out software function is the emphasis of this paper, which includes GPS and GPRS modules. Because of the GPS and GPRS modules are connected to target board via serial interface, the operation and control on these two modules are carried out by coding on the serial port. In Linux, equipment exists as a kind of file, and is called device I/O file. Device I/O file are saved under /dev, so as serial port equipment. In general, corresponding device I/O files of serial port I and serial port II are named in turn as /dev/ttyS0 and /dev/ttyS1. Therefore, we can open serial port device by open() function like opening normal files, and get its file description. After open the serial port, some important serial port parameters should be setup. These parameters include baud rate, data bits, stop bits and parity check. After setup, its read and write are just like the normal ones’by executing read() and write() functions. The main function of GPS module contained two aspects: GPS data receving and GPS data analyzing. GPS data receiving is actually reading serial port data. Generally speaking, a frame of received GPS data contains a number of data with different formats. This system only needs the data in $GPRMC format. And the major work of GPS data analyzing is to analyze the data in $GPRMC format, extract the information including TIC timing, latitude and longitude, speed and course, and package this information in the format that the vehicle traveling data recorder can take use of.The main function of GPRS module is to transmitting data via wireless network. In this paper, vehicle terminal controls and operates GPRS module by sending AT commands to the module through serial port, then communicates with the control center. Throughout the process, vehicle terminal just needs communicate with GPRS module without considering the communication between GPRS module and control center. The main steps of its communications include GPRS module initialization, status testing, and data transfer between TCP/IP or GSM modules. Considering system speed may differ from GPRS speed, we take receive queue and send queue as buffer. After received from GPRS module, the data is analyzed and saved into the receive queue waiting for system’s processing. When the system needs to send data, put the data into the send queue. Then GPRS extracts the data from send queue, packages them into AT commands, and sends via serial port.The experiment shows this system is basically in line with actual demand. It can successfully access to the GPS data and its GPRS can communicate effectively. This system works well so far. However, system upgrades and feature improvements are necessary for better adapting to technology development and users’needs. This paper argues that the GPS and GPRS modules of this system may be worthwhile to continue the following two aspects of research: In GPS, with the startup of the European Galileo program and China’s Beidou plan, the research on GPS based on the above two plans will be future research focus. In GPRS, as the era of 3G is coming, the transition of vehicle traveling data recorder’s wireless communication from GPRS to 3G is a general trend, witch is also an important future research direction.

Table of contents

Summary 4-7 Chapter 1 Introduction 7-9 1.1 topics About 7 1.2 The main work 7-9 Chapter 2 Embedded System Overview 9-15 2.1 embedded systems Introduction 9-10 2.1.1 embedded systems definition 9 2.1.2 embedded system characteristics 9-10 2.2 embedded systems composed of 10-12 2.2.1 embedded systems, hardware platforms 11 2.2.2 embedded system operating system 11-12 2.2.3 embedded application software 12 2.3 Embedded System Development Overview 12-15 2.3.1 embedded systems development process 12-13 2.3.2 embedded software development process 13-15 Chapter 3 development platform to build and configuration 15-22 3.1 host development environment to build 15-19 3.1.1 Arm-linux-gcc cross-compiler environment to build 15-16 3.1.2 minicom configuration 16-18 3.1.3 host service configuration 18-19 3.2 target Bootloader 19-20 3.2.1 Bootloader About 19 3.2.2 of U-boot use 19-20 3.3 Linux kernel, configure, compile and program the 20-22 3.3.1 kernel configuration and compilation 20-21 3.3.2 kernel programming 21-22 Chapter 4, the overall design 22-26 4.1 hardware design 22-24 4.2 software design 24-26 Chapter 5 GPS positioning module 26-38 5.1 GPS System Introduction 26-28 5.1.1 GPS system composed of 26-27 5.1.2 GPS positioning principle Profile 27-28 5.1.3 GPS data format 28 5.2 interface programming 28-33 5.2.1 Open the serial port 29 5.2.2 the serial port settings 29-31 5.2.3 serial write 31 5.2.4 serial read operation 31-33 5.3 GPS positioning module functions 33-38 5.3.1 GPS positioning module of function Overview 33-34 5.3.2 GPS data receiver 34-35 5.3.3 GPS data analysis 35-38 Chapter 6 GPRS communication module 38-56 6.1 GPRS Profile 38-40 6.1.1 GPRS network system composed of 38-39 6.1.2 GPRS network functionality 39-40 6.2 AT command 40-43 6.2.1 AT command description 40-41 6.2.2 AT command categories 41 6.2.3 AT command syntax 41-42 6.2.4 AT command error code 42-43 6.3 GPRS communication module functions 43-56 6.3.1 GPRS communication module features Overview 43-47 6.3.2 GPRS module initialization 47-48 6.3.3 GPRS module status detection 48-50 6.3.4 TCP / IP mode of data transmission 50-53 6.3.5 GSM mode data transmission 53-56 Chapter 7 Conclusion 56-59 7.1 functional test 56-58 7.2 full-text summary 58 7.3 Future 58-59 References 59-61 thank 61-62 Summary 62-65 ABSTRACT 65-68

Related dissertations

  1. Research and Design of BD/GPS Dual-Mode Intelligent Vehicle System
    XiaoYongJun ·Hunan University ·2013 ·Master's thesis
  2. Design and Implementation of the Client of Remote Vechicle Surveillance System Based on ARM Linux
  3. The GPS/CNSS Navigation System Reaearch Based on Linux
  4. And implementation of vehicle positioning and communication terminal based on GPS/GPRS
    WeiLong ·Northwestern University ·2013 ·Master's thesis
  5. Research on Remote Terminal Monitoring System Based on ARM/Linux
    QiWeiSu ·Tianjin University ·2012 ·Master's thesis
  6. Design and Implementation of a Multi-purpose Vehicle Traveling Data Recorder
  7. The Study and Design of Vehicle Traveling Data Recorder Based on Embedded System
    CaoShiChao ·Jinan University ·2012 ·Master's thesis
  8. Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform
    PanZuoZuo ·Dalian Polytechnic University ·2010 ·Master's thesis
  9. Design and Implementation of GPS-based Logistical Vehicle Monitoring System
    PengCheng ·Shanghai Jiaotong University ·2013 ·Master's thesis
  10. Design of Video Monitoring System Based on the Embedded
  11. The Design of Embedded Network Video Surveillance System Based on ARM9
  12. Research and Realization on the Key Technology of Monitoring System about Granary Environment Based on ARM9
    SunZuoLi ·Hunan University ·2013 ·Master's thesis
  13. The Research of the Design and Application for Embedded Remote Terminal Unit
    XiaRui ·Northeastern University ·2013 ·Master's thesis
  14. Design of Industrial Ethernet Motion Controller Based on ARM
  15. AGV car design and development of image recognition and motion control technology based on
  16. Transplant OpenCV to Embedded System and Face Recognition
    ChenYang ·Liaoning Normal University ·2012 ·Master's thesis
  17. Linux System Transplantation and USB Driver Development Based on CK-CPU Embedded Platform
    XueJiaYin ·Harbin Institute of Technology ·2012 ·Master's thesis
  18. Design and Implementation of Unidirectional Data Transmission Device Based on Removable Storage Media
  19. Design and Realizing of the Video Monitoring System Based on the Embedded Network
    ZhangZuo ·Northeastern University ·2010 ·Master's thesis
  20. Image Monitoring System Based on ARM and GPRS Communication Technology
    YanShiBao ·Liaoning Normal University ·2012 ·Master's thesis