Open tygamvrelis opened 5 years ago
Very excited about this. Will be thinking about and speaking to people at the Marine Centre for Simulation at Memorial University regarding the possibility of getting the lamp out on a ship as a "remote sensing unit"
If we do this, we will want to use UDP for the transport layer over the internet. This is an unreliable transport protocol, but it's very low overhead and low latency. UDP is used in real-time applications that can tolerate a bit of loss, such as gaming.
I had some luck today transferring angle data between two computers on different networks using the code on on the networking branch. I used LogMeIn Hamachi to create a VPN for these computers, and used the IP addresses for the virtual network adapters for the communication.
Some next steps I can think of are:
For measuring bit rate, I downloaded a tool called GlassWire and recorded the throughput over a 2 minute duration. Approximately 373.5 kB were transmitted from the Python program during this time, meaning that the average bit rate was:
373.5 kbyte * 8 bits per byte / 2 minutes / 60 sec per minute = 24900 bits per second
This was without Hamachi on.
With Hamachi on, the average bit rate was measured to be 22360 bits per second (probably just a random fluctuation). The Hamachi Client Tunneling Engine also sent 26400 bits over a 1-min period (25600 of which were when I first started up Hamachi though)
Also note that we were not getting 100 samples per second with this rate.
Brandon mentioned the idea of having 2 copies of the lamp setup: one mounted on a boat in recording mode, and one mounted in a gallery in playback mode. Data would be sent from the one on the boat to the one in the gallery for actuation, hence linking the two setups.
Things to figure out: