Luckfox Pico Plus as NTP server with GPS time source
Posted: 2025-06-04 14:05
Hello everyone
I connected the GPS device to UART3 and maid a buildroot image, including gpsd and ntpd. I also made [network.ntp] enable=0 in the file /oem/usr/share/rkipc-300w.ini
gpsd works fine (I control it with cgps & gpspipe ), but ntpd gives an error (refclock_newpeer: clock type 28 invalid), when I specify server 127.127.28.0 as the time source
If I do ln -s /dev/ttyS3 /dev/gps0 and specify 127.127.20.0 as the time source, then manually ntpd -qn synchronizes the time once
But I also need to synchronize the system time via GPS and act as a server for the entire local network. How to do it correctly?
I connected the GPS device to UART3 and maid a buildroot image, including gpsd and ntpd. I also made [network.ntp] enable=0 in the file /oem/usr/share/rkipc-300w.ini
gpsd works fine (I control it with cgps & gpspipe ), but ntpd gives an error (refclock_newpeer: clock type 28 invalid), when I specify server 127.127.28.0 as the time source
If I do ln -s /dev/ttyS3 /dev/gps0 and specify 127.127.20.0 as the time source, then manually ntpd -qn synchronizes the time once
But I also need to synchronize the system time via GPS and act as a server for the entire local network. How to do it correctly?