cyoung / stratux

Aviation weather and traffic receiver based on RTL-SDR.
BSD 3-Clause "New" or "Revised" License
1.06k stars 365 forks source link

Utilize MsgLog to populate weather for previously-unconnected clients. #358

Open cyoung opened 8 years ago

cyoung commented 8 years ago

All FIS-B messages are saved in MsgLog for a maximum of 1 minute.

Would it be worthwhile to:

  1. Parse incoming weather reports. De-dupe METARs and such by field name so that we're not using a lot of memory storing duplicate/outdated data. This would also be useful for the network queues.
  2. Save radar frames for a "long time" (1 hour?) since they are sent so infrequently.
  3. Populate each new DHCP lease/client that has connected with the above data.

This boils down to the question: how many people use a device that you connect for the first time while in the air? Maybe it's a good feature if you really want to have a fail-safe device to view data like a smart phone that you rarely connect to stratux.

peepsnet commented 8 years ago

Yes!! I hate loosing all that data.

Would it keep after a reset/restart/power cycle?? If there is an issue and I need to reboot the statux then it would be nice to "inject" all the data.

Would it be feasible to only purge the data after an hour or when new data is received?

This means I could save battery on the tablets by letting the statux run and gather data like a ADS-B buffer and deliver it when I connect.

I would like metars, notams, tafs, and maybe pireps or other weather info. Basically anything non-aircraft from the towers...

Ergonomicmike commented 8 years ago

AFAIK, iFly stores wx info locally. (And reports how old wx info is.) I have no problem with the Stratux storing it too as long as it doesn't cause a problem if Wi-Fi is lost on the tablet and reconnected in flight.

cyoung commented 8 years ago

This means I could save battery on the tablets by letting the statux run and gather data like a ADS-B buffer and deliver it when I connect.

It does this already. Only difference from the above is that you must first connect to stratux to make it aware of your device for it to start buffering data for that device.

peepsnet commented 8 years ago

Picking up from Reddit

It does this already. Only difference from the above is that you must first connect to stratux to make it aware of your device for it to start buffering data for that device.

So if I connect my EFB to the Stratux and then disconnect it(reboot tablet) and connect again I will get all the FIS-B data since the disconnect??

How long will Stratux "backfill" FIS-B Data??

cyoung commented 8 years ago

So if I connect my EFB to the Stratux and then disconnect it(reboot tablet) and connect again I will get all the FIS-B data since the disconnect??

Yep.

How long will Stratux "backfill" FIS-B Data??

It just creates a buffer when it detects that your EFB is out of context or the tablet is asleep. It saves up to 25,000 FIS-B messages in memory and will replay them when your tablet is active again.