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?
Luckfox Pico Plus as NTP server with GPS time source
Hello.
If you don't want the default ntpd service to select its own source, you need to modify or delete /etc/init.d/S49ntp to prevent the used ntp server from being the system's default configuration.
To make Luckfox Pico Plus act as an NTP server, you should set /etc/ntp.conf. Within the local network, you may also need to set up a firewall. The main issue is likely to be a software layer problem.
The detailed specifics can only be found by you by referring to other relevant materials. I have no experience with GPS devices and can only provide simple suggestions.
If you don't want the default ntpd service to select its own source, you need to modify or delete /etc/init.d/S49ntp to prevent the used ntp server from being the system's default configuration.
To make Luckfox Pico Plus act as an NTP server, you should set /etc/ntp.conf. Within the local network, you may also need to set up a firewall. The main issue is likely to be a software layer problem.
The detailed specifics can only be found by you by referring to other relevant materials. I have no experience with GPS devices and can only provide simple suggestions.