mazgch / hpg

This project demonstrates a full RTK solution with built in correction services.
88 stars 18 forks source link

Correction source to L-band will never update the keys #26

Closed phant0m85 closed 3 weeks ago

phant0m85 commented 1 month ago

When I set the correction source to "L-band only," the SPARTN keys never update. I have the wifi set up and assumed it would grab fresh keys when on the local network, but it does not. It only works if I set it to Wifi + L-band or LTE + L-band. Once I pick one of the hybrid methods and then change it back to L-band only, it works until the keys expire.

image

mazgch commented 1 month ago

That might be indeed possible, it likely will also not refresh the keys and frequencies regularly after they expire you would need to change the statemachines in the LTE and WLAN code. You would have to remain subscribed to only the keys and freq topics even in LBAND only configuration. Or you could provide keys externally through a communication interface.

If you like to provide a pull request I will review.

phant0m85 commented 3 weeks ago

Can you confirm if the code will or will not update the JSON or keys when connected to local Wi-Fi in L-band only correction source mode?

If it does not auto-update json/keys I am not savvy with code and will just need to upload the updated json file every 28-56 days through the web portal or change to hybrid Wifi/LTE + L-band.

mazgch commented 3 weeks ago

Why don't you just leave it at wifi + lband. You have the benefit that keys are updated and while you are wifi connected you even have a more reliable correction stream as lband can be blocked easily.

For me lband only was just added to allow testing and forcing usage of lband corrections. If this is important for your business and you are willing to sponser my work, I am able to add this feature.

phant0m85 commented 3 weeks ago

I was just testing L-band only and did not want to accidentally connect to wifi/ip stream. Thank you for confirming this.