Git Product home page Git Product logo

gps-emulation-using-tcp's Introduction

模拟GPS信号的发送和接收(TCP通信)

设计任务

  1. 通过程序(Client进程)模拟每隔一秒钟发出一帧NMEA-0183格式的标准GPS信号,对GPS信号进行一定的处理后发送给另一个进程(Server)。Server通过IPC(进程间通信)获得Client发出的信号,进行解析,并把解析出的相关信息进行存储和处理后输出。
    1). GPS固定输出数据语句格式:$GPGGA,<1>,<2>,<3>,<4>,<5>,<6>,<7>,<8>,<9>,M,<10>,M,<11>,<12>*hh
举例:$GPGGA,115542.000,3155.3446,N,11852.4283,E,1,03,4.4,32.6,M,5.4,M,,0000*5A  
<1> UTC 时间,hhmmss(时分秒)格式  
<2> 纬度ddmm.mmmm(度分)格式(前面的0 也将被传输)  
<3> 纬度半球N(北半球)或S(南半球)  
<4> 经度dddmm.mmmm(度分)格式(前面的0 也将被传输)   
<5> 经度半球E(东经)或W(西经)  
<6> GPS 状态:0=未定位,1=非差分定位,2=差分定位,6=正在估算  
<7>正在使用解算位置的卫星数量(00-12)(前面的0 也将被传输)  
<8> HDOP水平精度因子(0.5-99.9)  
<9>海拔高度(-9999.9-99999.9)  
<10> 地球椭球面相对大地水准面的高度  
<11> 差分时间(从最近一次接收到差分信号开始的秒数,如果不是差分定位将为空)  
<12> 差分站ID 号0000-1023(前面的0 也将被传输,如果不是差分定位将为空)     
  1. Client每隔1s输出一帧GPS信息。
    3.Server接收到GPS帧后,解码,把相关信息实时存入一个文件,并把解析出的数据以“名称:值”的方式在标准输出输出。
  2. Client和Server两者,一方运行在PC上(Linux或者Windows均可),一方运行在开发板,使用TCP进行通信。
  3. 如果能移植编译sqlite数据库,并把数据存储在sqllite数据库中,加分项。

完成度

  • 实现Client端模拟标准GPS信号并输出
  • 实现Server端接收GPS信号并解析、存储、输出
  • 实现TCP通信
  • 实现使用sqlite进行数据存储

gps-emulation-using-tcp's People

Contributors

blueberry-soda avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.