berthubert / galmon

galileo open source monitoring
GNU General Public License v3.0
198 stars 53 forks source link

Automatic upload of u-center configuration files during startup? #130

Open Avamander opened 3 years ago

Avamander commented 3 years ago

Due to the fact that my module is one of the cheap ones, it loses it's configuration each reboot, I'm currently using a bash script to parse the u-center configuration file and upload everything (including baudrate change) to the m8n module.

I am wondering, is there a way to do this nicely, with galmon and its set of tools?

mahtin commented 3 years ago

@Avamander - can you expand on this?

Plus, which parts of the u-center config file do you think is important..

Avamander commented 3 years ago

Which module? (so we can document this)

Ublox M8N, some random module from AliExpress. I can't find a picture at the moment.

What's the core of your script to do the reset?

I'm using this one: https://gist.github.com/hdoverobinson/42732da4c5b50d031f60c1fae39f0720

What platform? (hw,sw)

RPi4, Ubuntu Server 20.04

Plus, which parts of the u-center config file do you think is important..

Channel/constellation configuration, baudrate, time source, PPS configuration, update rate, power settings. I'm basically uploading the full configuration I exported using u-center.

ahupowerdns commented 3 years ago

Hi Avamander, we can set baud rate now, and we set the update rate for the messages we need, the rest is a bit out of scope. How would you propose the uploading of the configuration to work? Is there a u-center save format perhaps?

Avamander commented 3 years ago

Is there a u-center save format perhaps?

Yes. The script I posted earlier is able to upload those.

Avamander commented 3 years ago

How would you propose the uploading of the configuration to work?

Some configuration option that takes a file path, after that it should just be uploaded when the opportunity arises?