Skip to content

soc_VWID/VWEUDA: improvements#3548

Merged
LKuemmel merged 1 commit into
openWB:masterfrom
rleidner:soc_vwid_p14
Jun 16, 2026
Merged

soc_VWID/VWEUDA: improvements#3548
LKuemmel merged 1 commit into
openWB:masterfrom
rleidner:soc_vwid_p14

Conversation

@rleidner

Copy link
Copy Markdown
Collaborator
  • improve field parsing and logging
  • terminate thread if module removed from vehicle

@LKuemmel , please merge ASAP, thanks!

Comment on lines +855 to +862
topic = f"openWB/vehicle/{vehicle}/soc_module/config"
conf = os.popen(f"mosquitto_sub -C 1 -t {topic}").read()
_LOGGER.debug(f"thread loop: conf={conf}")
_type = json.loads(conf)['type']
_LOGGER.info(f"thread loop: _type={_type}")
if _type != 'vwid':
_LOGGER.info(f"vehicle {vehicle} is not using module vwid: terminate now")
return

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dieser Code ist eher ein Workaround und zeigt, dass while True keine saubere Lösung ist. Gibt es eine andere Lösung für das Thread-Handling, konsistent zum restlichen Code?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HalloLena, Ich mache das noch schöner, Kann ich die Config des EV bzw. dessen SoC-Modul Config intern abfragen?
Das "while True" werde ich durch eine bessere Bedingung erstzen aber momentan fehlt mir die Zeit.
Es wäre schön wenn es erst mal gemerged würde damit die Tester weitermachen können.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Das SoC-Modul soll möglichst unabhängig von der Fahrzeug-Klasse Ev sein.

@LKuemmel LKuemmel merged commit d678972 into openWB:master Jun 16, 2026
1 check passed
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.

2 participants