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

[复制链接]
peter 发表于 2018-5-2 17:57:19 | 显示全部楼层 |阅读模式
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:
  1. $ 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文件
  1. # Add a new line

  2. intf:dtoverlay=pps-gpio
复制代码
Checking that PPS is working
  1. $ dmesg |grep pps

  2. [ 1.972430] pps_core: LinuxPPS API ver. 1 registered
  3. [ 1.972441] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
  4. [ 3.361780] rockchip-pinctrl pinctrl: unable to find group for node pps_pins
  5. [ 3.368916] of_get_named_gpiod_flags: parsed 'gpios' property of node '/pps[0]' - status (0)
  6. [ 3.369360] pps_core: source pps.-1 got cdev (252:0)
  7. [ 3.369381] pps pps0: new PPS source pps.-1
  8. [ 3.369477] pps pps0: Registered IRQ 84 as PPS source</code>
复制代码
安装 PPS tool
  1. $ apt-get install pps-tools
复制代码
测试 PPS
  1. $ ppstest /dev/pps0
复制代码


https://tinkerboarding.co.uk/wiki/index.php?title=NEO-6M
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册用户

本版积分规则

 
QQ在线咨询
点击这里给我发消息
点击这里给我发消息
电话咨询
0755-23012315
快速回复 返回顶部 返回列表