No internet connection
  1. Home
  2. Technical Support

Latency question

By Kenneth Vindum @vindum2021-04-05 10:23:16.179Z

Hi Michael

I'm trying to use the TinyPilot over the internet on a rather limited 4G/5G connection. I realize that this will in it self cause latency issues because of the slow connection.

My setup is:
A TinyPilot with VPN and local WiFi client. The TinyPilot connects to my Samsung Galaxy s20 5G using broadband sharing.
My laptop connects to the TinyPilot over the internet using VPN.

The setup successfully connects me to the TinyPilot. The problem is the latency. It lags approx. 5-10 seconds behind. The lag can be removed by taking the WIFI out of the equation. It works just fine on the VPN as long as the connection is using a cable based approach.

I do however not always have a LAN connection available. My question is therefore: Would it be possible to somehow configure the TinyPilot to skip all packages that lack to much behind? I'd rather have skipped packages (causing the cursor to jump) than have to wait for the cursor slowly to move into the requested position...

Other suggestions:
It would be great not to have the power splitter in a separate box. I suggest you consider to embed this into the main box.
If possible: Please move the splitter cables to the same side of the box as the HDMI plug. I don't mind the box growing. This would make it easier to fit the TinyPilot into a case, and not require us to remove it before use.

Great product by the way :)

Kind Regards
Kenneth VIndum

  • 2 replies
  1. Michael Lynch @michael2021-04-05 21:22:13.495Z

    Would it be possible to somehow configure the TinyPilot to skip all packages that lack to much behind? I'd rather have skipped packages (causing the cursor to jump) than have to wait for the cursor slowly to move into the requested position...

    Yeah, performance is pretty poor over WiFi or slow connections. It comes down to TinyPilot streaming via MJPEG, which has dual problems of being bandwidth inefficient and having poor support from browsers. I'm planning to move to H264 in the next couple of months, which should substantially improve things.

    In the meantime, there's no way to force TinyPilot to ignore old packets because they're already on the wire by that point, so your browser thinks that you want all of them. What you can do is configure the stream to reduce latency so that there's less congestion:

    https://tinypilotkvm.com/faq/reduce-bandwidth

    I'm working on this as well, and hopefully by the next release, you'll be able to just instantly adjust this from the web UI without dropping into the command line.

    It would be great not to have the power splitter in a separate box. I suggest you consider to embed this into the main box.
    If possible: Please move the splitter cables to the same side of the box as the HDMI plug. I don't mind the box growing. This would make it easier to fit the TinyPilot into a case, and not require us to remove it before use.

    Yes, definitely agreed!

    I'm working with my engineering partners on a solution to this right now. I hope to have an all-in-one box available next month.

    1. V
      In reply tovindum:
      Kenneth Vindum @vindum2021-04-06 12:51:38.566Z

      Hi Michael

      Thank you for both of your replies. I will await your update with excitement. Thanks for the link to the latency FAQ :)
      Please consider if the new cabinet could be offered as an upgrade to your current customers.

      Have great day,
      /Kenneth