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
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
安装gpsd software:
- $ sudo apt-get install gpsd gpsd-clients python-gps
复制代码 GPS raw data output:
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" |
设置 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[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>
复制代码 安装 PPS tool
- $ apt-get install pps-tools
复制代码 测试 PPS
https://tinkerboarding.co.uk/wiki/index.php?title=NEO-6M |