查看: 317|回复: 9

GPS对EVO授时不成功

[复制链接]

4

主题

19

帖子

72

积分

科员

Rank: 2

积分
72
发表于 2020-11-16 20:32:16 | 显示全部楼层 |阅读模式
外接GPS授时模块,hexdump /dev/miivii-sync-in-a每秒有数据打印出来,cat /dev/ttyTHS1也有GPS的NMEA报文数据出来,MIIVII SETTING里也选择了GPS,但当我修改系统时间,系统时间并没有自动修改回GPS时间
回复

使用道具 举报

0

主题

26

帖子

90

积分

科员

Rank: 2

积分
90
发表于 2020-11-16 23:36:11 | 显示全部楼层
首先修改系统时间的时候要停掉hexdump和cat这两个进程,否则会影响系统授时,其次看一下NMEA数据是否是有效数据,是否含有时间字段,如果无效系统会丢弃,不校时。检查没有问题修改系统时间仍然不校时,请您提供如下信息:
1.ps -ef | grep sync
2.cat /dev/miivii_release
3.dpkg -l | grep miivii
4.是否对设备刷过机,如有请提供刷机工具版本
回复

使用道具 举报

4

主题

19

帖子

72

积分

科员

Rank: 2

积分
72
 楼主| 发表于 2020-11-17 11:16:45 | 显示全部楼层
本帖最后由 luosong 于 2020-11-17 11:18 编辑
喵喵 发表于 2020-11-16 23:36
首先修改系统时间的时候要停掉hexdump和cat这两个进程,否则会影响系统授时,其次看一下NMEA数据是否是有效 ...

nvidia@miivii-tegra:~/workspace/luosong/test$ ps -ef | grep sync
root      5280     1  0 Nov16 ?        00:00:43 /bin/bash /etc/systemd/sync_auto.sh
root      7079  5280  0 Nov16 ?        00:00:03 /usr/local/bin/sync_auto
nvidia    8280 13332  0 11:15 pts/0    00:00:00 grep --color=auto sync
systemd+ 13214     1  0 Nov16 ?        00:00:00 /lib/systemd/systemd-timesyncd
nvidia@miivii-tegra:~/workspace/luosong/test$ cat /dev/miivii_release
cat: /dev/miivii_release: No such file or directory
nvidia@miivii-tegra:~/workspace/luosong/test$ dpkg -l | grep miivii
ii  miivii-accelerator                            2.0.0                                            arm64        miivii accelerator sdk
ii  miivii-accelerator-data                       1.0.0                                            arm64        miivii accelerator data
ii  miivii-accelerator-models                     1.6.0                                            arm64        miivii accelerator yolo models
ii  miivii-autostarter                            2.3.0                                            arm64        MiiVii Autostater Service.
ii  miivii-sensor-sync                            1.4.0                                            arm64        MiiVii sensor sync demo.
ii  miivii-settings                               1.4.0                                            arm64        MiiVii Settings.
自己未刷过机,曾经返修过,应该没有刷机
回复

使用道具 举报

0

主题

26

帖子

90

积分

科员

Rank: 2

积分
90
发表于 2020-11-17 14:31:17 | 显示全部楼层
luosong 发表于 2020-11-17 11:16
nvidia@miivii-tegra:~/workspace/luosong/test$ ps -ef | grep sync
root      5280     1  0 Nov16 ?    ...

您目前的miivii-autostarter的版本比较老,请做以下操作
1.再次配置miivii_settings中GPS选项
2.确认/opt/miivii/config/sync/sync.cfg文件中sync_type的配置项为0(sync_type:0),如果不是修改为0.
3.重启系统修改系统时间查看
另外提供一下您的系统版本号
cat /etc/miivii_release

回复

使用道具 举报

4

主题

19

帖子

72

积分

科员

Rank: 2

积分
72
 楼主| 发表于 2020-11-17 15:38:06 | 显示全部楼层
本帖最后由 luosong 于 2020-11-17 15:42 编辑

$GNRMC,073535.00,A,2235.12544,N,11357.49183,E,0.059,,171120,,,D*62
$GNVTG,,T,,M,0.059,N,0.110,K,D*34
$GNGGA,073535.00,2235.12544,N,11357.49183,E,2,12,1.28,155.1,M,-2.7,M,,0000*50
$GNGSA,A,3,10,23,20,31,12,21,26,41,40,,,,1.79,1.28,1.25*1B
$GNGSA,A,3,73,71,74,,,,,,,,,,1.79,1.28,1.25*1F
$GPGSV,4,1,13,01,01,310,33,10,70,176,40,12,21,044,18,20,33,161,21*70
$GPGSV,4,2,13,21,06,291,37,23,38,156,22,25,55,069,,26,23,201,37*74
$GPGSV,4,3,13,29,07,126,,31,49,279,38,32,51,357,24,40,20,257,32*78
$GPGSV,4,4,13,41,46,237,39*40
$GLGSV,2,1,07,69,42,111,,70,56,005,,71,13,330,37,73,57,233,39*66
$GLGSV,2,2,07,74,09,217,28,79,08,029,,80,61,007,21*50
$GNGLL,2235.12544,N,11357.49183,E,073535.00,A,D*73
$GNRMC,073536.00,A,2235.12544,N,11357.49182,E,0.024,,171120,,,D*6A
$GNVTG,,T,,M,0.024,N,0.045,K,D*3F
$GNGGA,073536.00,2235.12544,N,11357.49182,E,2,12,1.28,155.1,M,-2.7,M,,0000*52
$GNGSA,A,3,10,23,20,32,31,12,21,26,41,40,,,1.79,1.28,1.25*1A
$GNGSA,A,3,69,73,71,74,,,,,,,,,1.79,1.28,1.25*10
$GPGSV,4,1,13,01,01,310,32,10,70,176,39,12,21,044,18,20,33,161,22*7C
$GPGSV,4,2,13,21,06,291,37,23,38,156,21,25,55,069,,26,23,201,36*76
$GPGSV,4,3,13,29,07,126,,31,49,279,38,32,51,357,25,40,20,257,32*79这是GPS接收机发出来的NMEA信息
$GPGSV,4,4,13,41,46,237,39*40
$GLGSV,2,1,07,69,42,111,29,70,56,005,,71,13,330,37,73,57,233,40*63
$GLGSV,2,2,07,74,09,217,30,79,08,029,,80,61,007,22*5A
$GNGLL,2235.12544,N,11357.49182,E,073536.00,A,D*71
$GNRMC,073537.00,A,2235.12543,N,11357.49179,E,0.039,,171120,,,D*64
$GNVTG,,T,,M,0.039,N,0.073,K,D*36
$GNGGA,073537.00,2235.12543,N,11357.49179,E,2,12,1.28,155.1,M,-2.7,M,,0000*50
$GNGSA,A,3,10,23,20,32,31,12,21,26,41,40,,,1.79,1.28,1.25*1A
$GNGSA,A,3,73,71,74,,,,,,,,,,1.79,1.28,1.25*1F
$GPGSV,4,1,13,01,01,310,32,10,70,176,40,12,21,044,16,20,33,161,22*7C
$GPGSV,4,2,13,21,06,291,36,23,38,156,19,25,55,069,,26,23,201,35*7F
$GPGSV,4,3,13,29,07,126,,31,49,279,38,32,51,357,26,40,20,257,32*7A
$GPGSV,4,4,13,41,46,237,39*40
$GLGSV,2,1,07,69,42,111,,70,56,005,,71,13,330,37,73,57,233,39*66
$GLGSV,2,2,07,74,09,217,31,79,08,029,,80,61,007,26*5F
$GNGLL,2235.12543,N,11357.49179,E,073537.00,A,D*73
$GNRMC,073538.00,A,2235.12541,N,11357.49177,E,0.036,,171120,,,D*68
$GNVTG,,T,,M,0.036,N,0.067,K,D*3C
$GNGGA,073538.00,2235.12541,N,11357.49177,E,2,11,1.28,155.0,M,-2.7,M,,0000*51
$GNGSA,A,3,10,20,31,12,21,26,41,40,,,,,1.79,1.28,1.25*1A
$GNGSA,A,3,73,71,74,,,,,,,,,,1.79,1.28,1.25*1F
$GPGSV,4,1,13,01,01,310,32,10,70,176,39,12,21,044,14,20,33,161,23*71
$GPGSV,4,2,13,21,06,291,36,23,38,156,,25,55,069,,26,23,201,34*76
$GPGSV,4,3,13,29,07,126,,31,49,279,38,32,51,357,,40,20,257,32*7E
$GPGSV,4,4,13,41,46,237,39*40
$GLGSV,2,1,07,69,42,111,23,70,56,005,,71,13,330,37,73,57,233,39*67
$GLGSV,2,2,07,74,09,217,30,79,08,029,,80,61,007,28*50
$GNGLL,2235.12541,N,11357.49177,E,073538.00,A,D*70
$GNRMC,073539.00,A,2235.12539,N,11357.49176,E,0.008,,171120,,,D*6A
$GNVTG,,T,,M,0.008,N,0.014,K,D*35
$GNGGA,073539.00,2235.12539,N,11357.49176,E,2,11,1.28,155.0,M,-2.7,M,,0000*5E
$GNGSA,A,3,10,20,31,12,21,26,41,40,,,,,1.79,1.28,1.25*1A
$GNGSA,A,3,73,71,74,,,,,,,,,,1.79,1.28,1.25*1F
$GPGSV,4,1,13,01,01,310,32,10,70,176,39,12,21,044,12,20,33,161,22*76
$GPGSV,4,2,13,21,06,291,36,23,38,156,18,25,55,069,,26,23,201,35*7E
$GPGSV,4,3,13,29,07,126,,31,49,279,38,32,51,357,22,40,20,257,32*7E
$GPGSV,4,4,13,41,46,237,39*40
$GLGSV,2,1,07,69,42,111,22,70,56,005,,71,13,330,37,73,57,233,39*66
$GLGSV,2,2,07,74,09,217,30,79,08,029,,80,61,007,27*5F
$GNGLL,2235.12539,N,11357.49176,E,073539.00,A,D*7F
$GNRMC,073540.00,A,2235.12538,N,11357.49177,E,0.022,,171120,,,D*6C
$GNVTG,,T,,M,0.022,N,0.040,K,D*3C
$GNGGA,073540.00,2235.12538,N,11357.49177,E,2,12,1.28,154.9,M,-2.7,M,,0000*5B
$GNGSA,A,3,10,20,31,12,21,26,41,40,,,,,1.79,1.28,1.25*1A
$GNGSA,A,3,69,73,71,74,,,,,,,,,1.79,1.28,1.25*10
$GPGSV,4,1,13,01,01,310,32,10,70,176,39,12,21,044,11,20,33,161,22*75
$GPGSV,4,2,13,21,06,291,36,23,38,156,17,25,55,069,,26,23,201,36*72
$GPGSV,4,3,13,29,07,126,,31,49,279,38,32,51,357,21,40,20,257,32*7D
$GPGSV,4,4,13,41,46,237,39*40
$GLGSV,2,1,07,69,42,111,22,70,56,005,,71,13,330,37,73,57,233,39*66
$GLGSV,2,2,07,74,09,217,29,79,08,029,,80,61,007,26*56
$GNGLL,2235.12538,N,11357.49177,E,073540.00,A,D*71

回复

使用道具 举报

4

主题

19

帖子

72

积分

科员

Rank: 2

积分
72
 楼主| 发表于 2020-11-17 15:39:54 | 显示全部楼层
nvidia@miivii-tegra:~$ lsb_release -a
No LSB modules are available.
Distributor ID:        Ubuntu
Description:        Ubuntu 18.04.4 LTS
Release:        18.04
Codename:        bionic
回复

使用道具 举报

4

主题

19

帖子

72

积分

科员

Rank: 2

积分
72
 楼主| 发表于 2020-11-17 15:57:18 | 显示全部楼层
nvidia@miivii-tegra:~$ cat /etc/miivii_release
MIIVII EVO XAVIER 4.4-1.0.0
回复

使用道具 举报

0

主题

26

帖子

90

积分

科员

Rank: 2

积分
90
发表于 2020-11-17 16:40:31 | 显示全部楼层
从你的NMEA数据来看没有GPRMC格式输出,目前我们只支持GPRMC格式校时,您可以修改GPS的配置添加输出格式,或是替换有GPRMC数据输出格式的GPS校时。
回复

使用道具 举报

4

主题

19

帖子

72

积分

科员

Rank: 2

积分
72
 楼主| 发表于 2020-11-17 17:44:20 | 显示全部楼层
喵喵 发表于 2020-11-17 16:40
从你的NMEA数据来看没有GPRMC格式输出,目前我们只支持GPRMC格式校时,您可以修改GPS的配置添加输出格式, ...

修改为GPRMC输出,可以完成时间同步了
回复

使用道具 举报

0

主题

26

帖子

90

积分

科员

Rank: 2

积分
90
发表于 2020-11-17 17:57:03 | 显示全部楼层
luosong 发表于 2020-11-17 17:44
修改为GPRMC输出,可以完成时间同步了

好的,可以结帖了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点我注册

本版积分规则


快速回复 返回顶部 返回列表