{{tag>[hardware gps versalogic centos apu]}} {{:pd0b-ip5_img_1397.jpg?nolink&600|PC Engines APU and Versalogic GPS}} =====Versalogic VL-MPEu-G2 GPS===== ====Documentation==== * {{::mmpeug2.pdf|VL-MPEu-G2 Reference Manual}} * {{::neo-7_datasheet_gps.g7-hw-11004_.pdf|Neo-7 Data Sheet}} * {{::u-blox7-v14_receiverdescriptionprotocolspec_public_gps.g7-sw-12001_.pdf|u-blox 7 Receiver Description: Including Protocol Specification V14}} ====Configuration for CentOS 6.5==== * Install the VL-MPEu-G2 module. * Start the PC Engines APU. * Test serial data. stty -F /dev/ttyACM0 ispeed 4800 && cat ====Install GPSd==== * Install prerequisite packages. yum install chrpath scons libxslt-devel ncurses-devel asciidoc python-devel * Download source code from: [[https://savannah.nongnu.org/projects/gpsd/]] * Extract. tar zxvf gpsd-3.10.tar.gz * Compile. cd gpsd-3.10 scons prefix=/opt/gpsd sudo scons udev-install * Test gpsd. gpsd -D 5 -N -n /dev/ttyACM0 ====/etc/ntp.conf==== # Allow more distance between GPS (USB) and Serial PPS. # Stratum level 12 when no ref source available tos mindist 0.010 orphan 12 driftfile /var/lib/ntp/ntp.drift statsdir /var/log/ntpstats/ statistics loopstats peerstats clockstats filegen loopstats file loopstats type day enable filegen peerstats file peerstats type day enable filegen clockstats file clockstats type day enable # Local servers server ntp1.polaire.nl server ntp2.polaire.nl server ntp3.home.polaire.nl # ATOM PPS (/dev/pps0) server 127.127.22.0 minpoll 4 maxpoll 4 fudge 127.127.22.0 refid PPS # GPS (USB /dev/ttyACM0) server 127.127.28.0 minpoll 4 maxpoll 4 prefer fudge 127.127.28.0 refid GPSd fudge 127.127.28.0 time1 0.065 # By default, exchange time with everybody, but don't allow configuration. restrict -4 default kod notrap nomodify nopeer noquery restrict -6 default kod notrap nomodify nopeer noquery # Local users may interrogate the ntp server more closely. restrict 127.0.0.1 restrict ::1