peter 发表于 2018-5-2 17:57:19

GPS使用--tinkerboard/Tinker board S (linux下)

gps on Tinker Board
1,烧录最新的tinkerOS_Debian
Module: NEO6M GPS Module
[*]Default Baud rate: 9600 bps
[*]VCC: 3.3-5.5V
[*]PPS: clock pulse output pin
https://tinkerboarding.co.uk/wiki/images/a/aa/Gps_module.png
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
https://tinkerboarding.co.uk/wiki/images/1/1b/TB_gpio.PNG


安装gpsd software:
$ sudo apt-get install gpsd gpsd-clients python-gpsGPS raw data output:
https://tinkerboarding.co.uk/wiki/images/1/12/xTB_gps_output_1.png.pagespeed.ic.NpM-E714Vp.webp
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




formatlatitudelongitude
ddmm.mmmm2507.4572712128.17944
dd°mm'ss"25°07'27.4362"121°28'10.7664"

设置 pps on Tinker Board
修改 hw_intf.conf文件
# 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' - 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>安装 PPS tool
$ apt-get install pps-tools测试 PPS
$ ppstest /dev/pps0https://tinkerboarding.co.uk/wiki/images/5/5f/TB_pps_output_1.png

https://tinkerboarding.co.uk/wiki/index.php?title=NEO-6M
页: [1]
查看完整版本: GPS使用--tinkerboard/Tinker board S (linux下)