rk3288 gps
原文链接: rk3288 gps
https://github.com/adrianmo/go-nmea
GPS 通过 uart1 与 cpu 进行通讯 ,设备树打开 uart1,配置 gps 使能和复位引脚即可 。(默认GPS打开)
/{
misc_control {
status = "okay";
compatible = "rockchip";
pinctrl-names = "default";
pinctrl-0 = <&gps_en>, <gps_rst>;
gps-en = <&gpio7 RK_PB7 GPIO_ACTIVE_LOW>;
gps-rst = <&gpio7 RK_PA3 GPIO_ACTIVE_HIGH>;
};
};
misc_control {
gps_en: gps-en-gpios {
rockchip,pins = <7 RK_PB7 RK_FUNC_GPIO &pcfg_pull_down>;
};
gps_rst: gps-rst-gpios {
rockchip,pins = <7 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
uart1 {
status = "okay";
};
查看gps状态 cat /dev/ttysWK2 可以看到串口向cpu传输即时数据
安装 GPS 服务软件 sudo apt-get install gpsd gpsd-clients
vim /etc/default/gpsd
配置 gps 参数
sudo service gpsd restart
重启gps服务
cgps -s
查看gps状态
作者:xiaoma_2018
来源:CSDN
原文:https://blog.csdn.net/xiaoma_2018/article/details/84344562
版权声明:本文为博主原创文章,转载请附上博文链接!