question

Kevin avatar image
Kevin asked

NTP or NTP-SEC Integration

Would it be possible to integrate NTP or NTP-SEC into CCGX firmware, as this would make an excellent addition thus enabling accurate timing of computers and radio equipment on board


CCGX Color Control
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

2 Answers
jeroen avatar image
jeroen answered ยท

I am a bit lost here, the ccgx does support NTP...

3 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Kevin avatar image Kevin commented ยท

Hi Jeroen

I know that the CCGX does not support NTP or NTP-SEC.

Would is be possible to hack the Unix like operations system (venus) and make the CCGX a NTP Server as well as doing all it's present work. This would to my limited knowledge go some think like .....

Install ntp or ntp-sec, install gpsd, install pps, install libs for all the above, figure out how to obtain pps from usb gps and the other stuff I don't know about

Just a thought or may be a pipe dream


0 Likes 0 ยท
jeroen avatar image jeroen โ™ฆ Kevin commented ยท

ah, now I understand, you want a ntpd server. I will add that as optional package. It will arrive in the testing feed tomorrow or the day after.

0 Likes 0 ยท
jeroen avatar image jeroen โ™ฆ jeroen โ™ฆ commented ยท

Now included in the venus v2.40 release:

opkg update
opkg install ntp

0 Likes 0 ยท
Kevin avatar image
Kevin answered ยท

Wow.... I'm amazed

Ask and you shall get

Thank you

Kevin

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

jeroen avatar image jeroen โ™ฆ commented ยท

Next time please reply to the comment, not to yourself.

For the moment you need this to install them like below. Obviously you need to configure them to whatever it is you want to do. Any changes to the rootfs will be undone during an update, so you likely want to disable that until you have a post update script installed to restore the behavior you want. For completeness customers should not track the testing feed normally, but candidate instead.

root@ccgx:~# /opt/victronenergy/swupdate-scripts/set-feed.sh testing
Switching feed to testing
root@ccgx:~# opkg update
Downloading https://updates.victronenergy.com/feeds/venus/testing/packages/rocko/all/Packages.gz.
Updated source 'all'.
Downloading https://updates.victronenergy.com/feeds/venus/testing/packages/rocko/cortexa8hf-neon/Packages.gz.
Updated source 'cortexa8hf-neon'.
Downloading https://updates.victronenergy.com/feeds/venus/testing/packages/rocko/ccgx/Packages.gz.
Updated source 'ccgx'.
root@ccgx:~# opkg install ntp gpsd
Installing ntp-tickadj (4.2.8p10) on root
Downloading https://updates.victronenergy.com/feeds/venus/testing/packages/rocko/cortexa8hf-neon/ntp-tickadj_4.2.8p10-r0_cortexa8hf-neon.ipk.
Installing gpsd-conf (3.16) on root
Downloading https://updates.victronenergy.com/feeds/venus/testing/packages/rocko/cortexa8hf-neon/gpsd-conf_3.16-r0_cortexa8hf-neon.ipk.
 Removing any system startup links for gpsd ...
Installing gpsd-gpsctl (3.16) on root
Downloading https://updates.victronenergy.com/feeds/venus/testing/packages/rocko/cortexa8hf-neon/gpsd-gpsctl_3.16-r0_cortexa8hf-neon.ipk.
Installing ntp (4.2.8p10) on root
Downloading https://updates.victronenergy.com/feeds/venus/testing/packages/rocko/cortexa8hf-neon/ntp_4.2.8p10-r0_cortexa8hf-neon.ipk.
 Removing any system startup links for ntpd ...
Running useradd commands...
NOTE: ntp: Performing useradd with [ --system --home-dir /var/lib/ntp                        --no-create-home                        --shell /bin/false --user-group ntp]
Installing gpsd-udev (3.16) on root
Downloading https://updates.victronenergy.com/feeds/venus/testing/packages/rocko/cortexa8hf-neon/gpsd-udev_3.16-r0_cortexa8hf-neon.ipk.
Installing gpsd (3.16) on root
Downloading https://updates.victronenergy.com/feeds/venus/testing/packages/rocko/cortexa8hf-neon/gpsd_3.16-r0_cortexa8hf-neon.ipk.
Configuring gpsd-conf.
 Adding system startup for /etc/init.d/gpsd.
Starting GPS (Global Positioning System) daemon gpsd
Configuring gpsd-gpsctl.
Configuring gpsd-udev.
Configuring gpsd.
update-alternatives: Linking /etc/default/gpsd to /etc/default/gpsd.default
Configuring ntp-tickadj.
Configuring ntp.
update-alternatives: Linking /usr/sbin/ntpd to /usr/sbin/ntpd.ntp
 Adding system startup for /etc/init.d/ntpd.
Starting ntpd: done
root@ccgx:~# /opt/victronenergy/swupdate-scripts/set-feed.sh candidate
Switching feed to candidate


0 Likes 0 ยท