NEO-6M

From Tinker Board Wiki
Jump to navigation Jump to search

Outline

  • Setting gps on Tinker Board
  • Setting pps on Tinker Board


Setting gps on Tinker Board


Image version:

Please use V2.0.3 image version or above

Module: NEO6M GPS Module

  • Default Baud rate: 9600 bps
  • VCC: 3.3-5.5V
  • PPS: clock pulse output pin
    Error creating thumbnail: Unable to save thumbnail to destination

Connect GPIO:

  • VCC to Pin 17
  • TX to Pin 37, which is RX
  • RX to Pin 36, Which is TX
  • Gnd to Pin 34, which is Gnd
  • PPS to Pin 22, which is GP5C3
Error creating thumbnail: Unable to save thumbnail to destination

Install the gpsd software:

$ sudo apt-get install gpsd gpsd-clients python-gps

GPS raw data output:

Error creating thumbnail: Unable to save thumbnail to destination

GPS raw data format:

GPS NMEA Protocol: The hardware interface for GPS units is designed to meet the NMEA requirements.
Global Positioning System Fix Data(GGA)
$GPGGA,<1>,<2>,<3>,<4>,<5>,<6>,<7>,<8>,<9>,M,<10>,M,<11>,<12>*hh

  • <2> latitude: ddmm.mmmm(度分)format
  • <4> longitude: dddmm.mmmm(度分)format
format latitude longitude
ddmm.mmmm 2507.45727 12128.17944
dd°mm'ss" 25°07'27.4362" 121°28'10.7664"

Setting pps on Tinker Board


Modifing hw_intf.conf in SD card

# Add a new line

intf:dtoverlay=pps-gpio 

Checking that PPS is working

$ dmesg |grep pps

[ 1.972430] pps_core: LinuxPPS API ver. 1 registered 
[ 1.972441] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> 
[ 3.361780] rockchip-pinctrl pinctrl: unable to find group for node pps_pins 
[ 3.368916] of_get_named_gpiod_flags: parsed 'gpios' property of node '/pps[0]' - status (0) 
[ 3.369360] pps_core: source pps.-1 got cdev (252:0) 
[ 3.369381] pps pps0: new PPS source pps.-1 
[ 3.369477] pps pps0: Registered IRQ 84 as PPS source</code>

Install PPS tool

$ apt-get install pps-tools

Testing PPS

$ ppstest /dev/pps0
Error creating thumbnail: Unable to save thumbnail to destination