Skip to content

Feat/device discovery#250

Merged
HugoCLSC merged 19 commits into
devfrom
feat/device-discovery
Jun 26, 2026
Merged

Feat/device discovery#250
HugoCLSC merged 19 commits into
devfrom
feat/device-discovery

Conversation

@HugoCLSC

Copy link
Copy Markdown
Member

Description

  • Feature

Printer configurations require the serial path of hardware devices, as is the case for beacon probe. This pull request finds the serial path of such devices and adds it to the configuration file printer.cfg.

This is the first effort on creating an automatic detector of hardware on the machine, future work will include recon for CAN devices, USB cameras etc, the storage module will also be refacored to create a single use tool which will be mainly done in cpp.

HugoCLSC and others added 19 commits June 22, 2026 16:18
When updating the system for the first time, the configurator
will sync the config repo with the printer config directory,
but it will create rescursive nested config dirs,
the problem has two parts, first, the rescursiveness only happens
when there is an update, and the repo/printer config are out of
sync, the second is because of the legacy configurations.
We now clean the previous printer config repo dirs, before
actually symlinking the repo with the printer configurations. This
is only part of the fix.
The second part of this commit, adds the second sync mode to the
tool, but it will not be used right now, this is prepign for
future work.
Co-authored-by: Guilherme Costa <guilherme.costa@blockstec.com>
Signed-off-by: Hugo Costa <hugo.santos.costa@gmail.com>
There was a problem with printer.cfg merging, everytime merging occured two
things happened, first was that the beacon section on pritner.cfg was not
ignored, this made the configured serial path to be lost, the second problem
was that the saved configuration (footer) was duplicated everytime, so if the
screen restarted we whould have thounsands of lines duplicated.

With this fix, both issues are resolved.

Another quality of life is that, the deletetion of the printer configurations
subdirectories is not done unless there is actually something different between
the config repo and the printers config dir.
…marker

There were a bunch of problems that would make merging files difficult, one
of those was the merger or configparser sections, the default is to use =
but the code was using : to set values to options.
Then there was a problem when checking nestes config dirs on the default
configuration directory. This looks like it has been solved as well.
@HugoCLSC HugoCLSC merged commit 9eb4b4a into dev Jun 26, 2026
8 checks passed
@HugoCLSC HugoCLSC deleted the feat/device-discovery branch June 26, 2026 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant