Giter Club home page Giter Club logo

global_positioning_system's Introduction

This NIIC devlop for gps sdk 

1.how to compile
if you compiler file arm-linux-gnueabihf-gcc path is:
/home/fan/ti-processor-sdk-linux-rt-am335x-evm-05.00.00.15/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc

then:
set you compiler "arm-linux-gnueabihf-gcc"  path to env like this:
export PATH=/home/fan/ti-processor-sdk-linux-rt-am335x-evm-05.00.00.15/linux-devkit/sysroots/x86_64-arago-linux/usr/bin:$PATH

do this:
make
make install


├── bin         ->runable file in this diretory
├── config      ->ntp config file to config ntp
├── include
├── ko
├── lib
├── Makefile
├── README
└── src

├── bin         ->runable file in this diretory
├── configure   ->json file to config avalible gpio
├── include     ->head file *.h in this directory
├── lib         ->so file in this directory
├── Makefile
├── readme
└── src         -> source file in this folder



2.how to test gps module

when compile completed a test file "_gps_test" file will generate in this "bin" directory

just run ./_gps_test

to test gps module

3. how to used gps module sdk

get the file include/_gps.h and lib/lib_gps.so 

this gps ability can be find in the head file include/_gps.h

and the src/_gps_test.c is the example how to use the gps module.



1. 设置系统时间指令
date -s "2019-04-17 05:17:50"

2. ln -s /dev/ttyS1 /dev/gps1
    ln -s /dev/pps1 /dev/gpspps1

3. ntpd -c /etc/ntp.conf 

4.  insmod /lib/modules/4.14.40-rt29-gd5443cbd3b/pps-ktimer.ko 
     insmod /lib/modules/4.14.40-rt29-gd5443cbd3b/pps-ldisc.ko 
     insmod /lib/modules/4.14.40-rt29-gd5443cbd3b/pps-gpio.ko 

5.  ppstest /dev/pps1 

6. watch ntpq -p

7. ntpd  -D 2

8.
root@NECRO:~# cat /etc/ntp.conf 
# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help

#Changes recquired to use pps synchonisation as explained in documentation:
#http://www.ntp.org/ntpfaq/NTP-s-config-adv.htm#AEN3918

# NMEA refclock driver directly from serial port
server 127.127.20.1 mode 17 minpoll 4 iburst prefer true
fudge 127.127.20.1 flag1 1 flag2 0 flag3 0 flag4 1 time1 0.00 refid GPS
# ATOM PPS driver directly from interrupt through /dev/pps1
server 127.127.22.1 minpoll 4 maxpoll 4 iburst true
fudge 127.127.22.1 flag1 1 flag2 0 flag3 1 flag4 1 time1 0.0 refid PPS


9.hwclock –w 
把时间写入CMOS

10.ntpd  -g 取消大于1000s错误

global_positioning_system's People

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.