我有一个GPS,PPS在我的非联网嵌入式Linux板上安装了GPIO,运行2.6.37。
我试图保持系统时钟尽可能准确(最好优于20 as的准确性)。我已经从串口GPS设定了几个millis的时间,并希望使用PPS来约束时钟(这是正确的术语吗?)
我已经设置了一个中断来捕捉PPS。
我的中断处理例程类似于:
struct timeval tv;
do_gettimeofday(&tv);
..check that we're really close to a second mark and adjust tv to the nearest second...
do_setti
我试着使用ublox模块和centos从gps数据中获得更准确的时间,但似乎gpsd.sock无法正常工作来将数据按时间顺序进行处理。
我错过了什么吗?
[root@info /]# cat /etc/chrony.conf
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
server 0.centos.pool.ntp.org iburst
server 1.centos.pool.ntp.o
我试图用时间同步PPS和GPSD,但是我得到了'#?‘。在全球定位系统之前,原因是什么?我的chrony.conf文件是,
# Welcome to the chrony configuration file. See chrony.conf(5) for more
# information about usable directives.
# Include configuration files found in /etc/chrony/conf.d.
confdir /etc/chrony/conf.d
# Use Debian vendor zone.
#pool 2.d
我做了一个小bash脚本,通过它可以计算来自接口的pps。一旦传入的pps达到所需的限制,它就会执行一个命令。
我在运行脚本时出错了,有人能帮我吗?
这是剧本
#!/bin/bash
INTERVAL="1" # update interval in seconds
LIMIT="3000" # Limit in KB/S
URL1="http://1.1.1.1/abcd.php"
IFS=( ens3 ) # Interface names
while true
do
for i in "${IFS[@]}