Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. Ask your questions right here!
  3. Time taken to connect to VPN is inconsistent and long

Time taken to connect to VPN is inconsistent and long

Scheduled Pinned Locked Moved Ask your questions right here!
6 Posts 2 Posters 631 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hmlow
    Regular
    wrote on last edited by
    #1

    Hi devs

    Im running v0.50 of the software suite on VOXL. I have my own OpenVPN server and am using the LTEv2 board on the VOXL.

    I noticed that the time taken for the modem and time-sync (needed so that OpenVPN can validate the certs) services to complete is inconsistent and long. Sometimes it takes 2mins and at times up to 4mins.

    I also noticed that the voxl-time-sync service takes a very long time to complete; almost 1-1.5mins.

    May i know if there is a way to speed up the process?
    I noticed that while /etc/systemd/timesyncd.conf exists, ntpd.service does not exist?
    ntpd.service
    Loaded: not-found (Reason: No such file or directory)
    Active: inactive (dead)

    Hope you guys can help!

    Eric KatzfeyE 1 Reply Last reply
    0
    • H hmlow

      Hi devs

      Im running v0.50 of the software suite on VOXL. I have my own OpenVPN server and am using the LTEv2 board on the VOXL.

      I noticed that the time taken for the modem and time-sync (needed so that OpenVPN can validate the certs) services to complete is inconsistent and long. Sometimes it takes 2mins and at times up to 4mins.

      I also noticed that the voxl-time-sync service takes a very long time to complete; almost 1-1.5mins.

      May i know if there is a way to speed up the process?
      I noticed that while /etc/systemd/timesyncd.conf exists, ntpd.service does not exist?
      ntpd.service
      Loaded: not-found (Reason: No such file or directory)
      Active: inactive (dead)

      Hope you guys can help!

      Eric KatzfeyE Offline
      Eric KatzfeyE Offline
      Eric Katzfey
      ModalAI Team
      wrote on last edited by
      #2

      @hmlow Yes, it is the ntp time sync service that takes so long. And you cannot connect to the VPN until you have a reasonable system time otherwise the certificate authentication will fail. If you could figure out how to make it happen faster that would be great!

      H 2 Replies Last reply
      0
      • Eric KatzfeyE Eric Katzfey

        @hmlow Yes, it is the ntp time sync service that takes so long. And you cannot connect to the VPN until you have a reasonable system time otherwise the certificate authentication will fail. If you could figure out how to make it happen faster that would be great!

        H Offline
        H Offline
        hmlow
        Regular
        wrote on last edited by
        #3

        @Eric-Katzfey but what does VOXL actually uses for the time sync?

        If I'm not mistaken voxl-time-sync is just a simple python script to grab updated system date and time?

        Eric KatzfeyE 1 Reply Last reply
        0
        • H hmlow

          @Eric-Katzfey but what does VOXL actually uses for the time sync?

          If I'm not mistaken voxl-time-sync is just a simple python script to grab updated system date and time?

          Eric KatzfeyE Offline
          Eric KatzfeyE Offline
          Eric Katzfey
          ModalAI Team
          wrote on last edited by
          #4

          @hmlow chronyd:

          ● chronyd.service - NTP client/server
             Loaded: loaded (/lib/systemd/system/chronyd.service; enabled; vendor preset: enabled)
             Active: active (running) since Thu 1970-01-01 00:00:08 UTC; 1min 16s ago
            Process: 2334 ExecStart=/usr/sbin/chronyd $OPTIONS (code=exited, status=0/SUCCESS)
           Main PID: 2350 (chronyd)
             CGroup: /system.slice/chronyd.service
                     └─2350 /usr/sbin/chronyd
          
          Jan 01 00:00:07 apq8096 systemd[1]: Starting NTP client/server...
          Jan 01 00:00:08 apq8096 chronyd[2350]: chronyd version 2.4 starting (+CMDMON +NTP +REFCLOCK +RTC -PRIVDROP -SCFILTER -SECHASH +ASYNCDNS +IPV6 -DEBUG)
          Jan 01 00:00:08 apq8096 systemd[1]: Started NTP client/server.
          
          1 Reply Last reply
          0
          • Eric KatzfeyE Eric Katzfey

            @hmlow Yes, it is the ntp time sync service that takes so long. And you cannot connect to the VPN until you have a reasonable system time otherwise the certificate authentication will fail. If you could figure out how to make it happen faster that would be great!

            H Offline
            H Offline
            hmlow
            Regular
            wrote on last edited by hmlow
            #5

            @Eric-Katzfey said in Time taken to connect to VPN is inconsistent and long:

            @hmlow Yes, it is the ntp time sync service that takes so long. And you cannot connect to the VPN until you have a reasonable system time otherwise the certificate authentication will fail. If you could figure out how to make it happen faster that would be great!

            I think the process is long because chronyd is meant to make small adjustments over time. So when the VOXL boots up with a sys date as 1970, chronyd (even with makestep) doesnt work well.

            I installed ntpd and ran it with the -q command to make that one large stepped correction when the modem is connected. chronyd.service starts only after ntpd -q completes and takes over to track and correct for time difference for the remainder of the flight.

            Time taken from boot to openvpn connection is now about 1min 45s which is good enough for me.

            Eric KatzfeyE 1 Reply Last reply
            0
            • H hmlow

              @Eric-Katzfey said in Time taken to connect to VPN is inconsistent and long:

              @hmlow Yes, it is the ntp time sync service that takes so long. And you cannot connect to the VPN until you have a reasonable system time otherwise the certificate authentication will fail. If you could figure out how to make it happen faster that would be great!

              I think the process is long because chronyd is meant to make small adjustments over time. So when the VOXL boots up with a sys date as 1970, chronyd (even with makestep) doesnt work well.

              I installed ntpd and ran it with the -q command to make that one large stepped correction when the modem is connected. chronyd.service starts only after ntpd -q completes and takes over to track and correct for time difference for the remainder of the flight.

              Time taken from boot to openvpn connection is now about 1min 45s which is good enough for me.

              Eric KatzfeyE Offline
              Eric KatzfeyE Offline
              Eric Katzfey
              ModalAI Team
              wrote on last edited by
              #6

              @hmlow Great, thanks for looking into that!

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              ModalAI
              Categories Recent Tags ModalAI.com Docs
              © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups