SOC: VWID

Alles rund um SoC (Ladezustand des Fahrzeuges). Probleme, Fragen, Fehlfunktionen gehören hier hin
rleidner
Beiträge: 799
Registriert: Mo Nov 02, 2020 9:50 am

Re: SOC: VWID

Beitrag von rleidner »

SpaceMan hat geschrieben: Sa Dez 03, 2022 5:09 pm Oh, der Reboot ging auch deutlich schneller und sieht auch viel besser aus:

Code: Alles auswählen

2022-12-03 17:59:30: at_reboot: Collecting urllib3
2022-12-03 17:59:22: at_reboot: lxml installed...
2022-12-03 17:59:22: at_reboot: ipparser installed...
2022-12-03 17:59:21: at_reboot: jq installed...
2022-12-03 17:59:21: at_reboot: python requests installed...
Das sieht jetzt OK aus.
Jetzt kommt:

Code: Alles auswählen

2022-12-03 18:03:36: PID: 14041: Lp1: tokens initialization exception: set tokens_old to initial value
2022-12-03 18:03:36: PID: 14041: Lp1: tokens initialization exception: e=[Errno 2] No such file or directory: '/var/www/html/openWB/ramdisk/soc_vwid_tokenslp1'
2022-12-03 18:03:35: PID: 13924: Lp1: Requesting SoC (LV0)
Aber das hatte ich hier im Thread schon gesehen. :D
Dieser "Fehler" ist normal beim 1. Abruf. Das SOC-Modul speichert die aktuellen OAUTH - Token in einer Datei in der ramdisk und die ist nach dem Reboot noch nicht vorhanden.
Dann sollte der SOC jetzt ankommen.
openWB-2 Standard+ | openWB EVU Kit v2 MID| 9,9kWp mit Kostal Plenticore 8.5 plus | VW ID.3, Smart EQ forfour
SpaceMan
Beiträge: 13
Registriert: Fr Nov 11, 2022 11:42 am

Re: SOC: VWID

Beitrag von SpaceMan »

Das Problem mit der Datei kommt aber immer noch. Und ich habe den Fehler, der als Punkt 4 beschrieben ist. Ich habe aber als Modul VW ID ausgewählt:

Code: Alles auswählen

2022-12-04 01:02:46: PID: 14008: Lp1: tokens initialization exception: set tokens_old to initial value
2022-12-04 01:02:46: PID: 14008: Lp1: tokens initialization exception: e=[Errno 2] No such file or directory: '/var/www/html/openWB/ramdisk/soc_vwid_tokenslp1'
2022-12-04 01:02:44: PID: 13935: Lp1: Requesting SoC (LV0)
concurrent.futures._base.TimeoutError (LV0)
    raise asyncio.TimeoutError from None
  File "/usr/local/lib/python3.5/dist-packages/aiohttp/helpers.py", line 596, in __exit__
    break
  File "/usr/local/lib/python3.5/dist-packages/aiohttp/client.py", line 582, in _request
    response = await self.session.get(API_BASE + "/vehicles/" + self.vin + "/status", headers=self.headers)
  File "/var/www/html/openWB/modules/soc_vwid/libvwid.py", line 189, in get_status
    data = await w.get_status()
  File "/var/www/html/openWB/modules/soc_vwid/soc_vwid.py", line 68, in main
    result = coro.throw(exc)
  File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
    raise self._exception
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    return future.result()
  File "/usr/lib/python3.5/asyncio/base_events.py", line 466, in run_until_complete
    loop.run_until_complete(main())
  File "/var/www/html/openWB/modules/soc_vwid/soc_vwid.py", line 106, in <module>
2022-12-04 00:25:34: PID: 31816: Lp1: Error from soc_vwid: Traceback (most recent call last):
concurrent.futures._base.TimeoutError (LV0)
    raise asyncio.TimeoutError from None
  File "/usr/local/lib/python3.5/dist-packages/aiohttp/helpers.py", line 596, in __exit__
    break
  File "/usr/local/lib/python3.5/dist-packages/aiohttp/client.py", line 582, in _request
    response = await self.session.get(API_BASE + "/vehicles/" + self.vin + "/status", headers=self.headers)
  File "/var/www/html/openWB/modules/soc_vwid/libvwid.py", line 189, in get_status
    data = await w.get_status()
  File "/var/www/html/openWB/modules/soc_vwid/soc_vwid.py", line 68, in main
    result = coro.throw(exc)
  File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
    raise self._exception
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    return future.result()
  File "/usr/lib/python3.5/asyncio/base_events.py", line 466, in run_until_complete
    loop.run_until_complete(main())
  File "/var/www/html/openWB/modules/soc_vwid/soc_vwid.py", line 106, in <module>
2022-12-04 00:21:43: PID: 3753: Lp1: Error from soc_vwid: Traceback (most recent call last):
2022-12-04 00:20:33: PID: 31903: Lp1: tokens initialization exception: set tokens_old to initial value
2022-12-04 00:20:33: PID: 31903: Lp1: tokens initialization exception: e=[Errno 2] No such file or directory: '/var/www/html/openWB/ramdisk/soc_vwid_tokenslp1'
2022-12-04 00:20:32: PID: 31816: Lp1: Requesting SoC (LV0)
2022-12-04 00:16:42: PID: 3768: Lp1: tokens initialization exception: set tokens_old to initial value
2022-12-04 00:16:42: PID: 3768: Lp1: tokens initialization exception: e=[Errno 2] No such file or directory: '/var/www/html/openWB/ramdisk/soc_vwid_tokenslp1'
2022-12-04 00:16:40: PID: 3753: Lp1: Requesting SoC (LV0)
2022-12-04 00:16:35: PID: 2758: Lp1: Nothing to do yet. Incrementing timer. (LV0)
2022-12-04 00:16:24: PID: 1492: Lp1: Nothing to do yet. Incrementing timer. (LV0)
2022-12-04 00:16:15: PID: 32708: Lp1: Nothing to do yet. Incrementing timer. (LV0)
2022-12-04 00:16:04: PID: 31512: Lp1: Nothing to do yet. Incrementing timer. (LV0)
2022-12-04 00:15:55: PID: 30280: Lp1: Nothing to do yet. Incrementing timer. (LV0)
2022-12-04 00:15:45: PID: 29084: Lp1: Nothing to do yet. Incrementing timer. (LV0)
2022-12-04 00:15:35: PID: 27889: Lp1: Nothing to do yet. Incrementing timer. (LV0)
2022-12-04 00:15:27: PID: 26686: Lp1: Error from EVCC: 2022/12/04 00:15:27 cannot create type 'id': unexpected length (LV0)
2022-12-04 00:15:25: PID: 26686: Lp1: Requesting SoC (LV0)
Oder wo muss ich das umstellen? Bei mir ist jedenfalls als SOC Modul 'VW ID' ausgewählt. Danke!
rleidner
Beiträge: 799
Registriert: Mo Nov 02, 2020 9:50 am

Re: SOC: VWID

Beitrag von rleidner »

SpaceMan hat geschrieben: So Dez 04, 2022 12:10 am Das Problem mit der Datei kommt aber immer noch. Und ich habe den Fehler, der als Punkt 4 beschrieben ist. Ich habe aber als Modul VW ID ausgewählt:

Oder wo muss ich das umstellen? Bei mir ist jedenfalls als SOC Modul 'VW ID' ausgewählt. Danke!
Wo das mit EVCC herkommt, kann ich nicht beantworten.
Evtl. das SOC-Modul noch mal aus der Konfiguration rausnehmen, speichern, neu eintragen, speichern.

Die "tokens initialization exception" ist erwartet und kann erst mal ignoriert werden.

Zum Timeout-Fehler:
Der SOC-Modul in Deiner openWB bekommt beim ersten Kontaktversuch keine Verbindung zum VW-Server.

Bei mir hat letzte Nacht der VW-Server sauber geantwortet:

Code: Alles auswählen

2022-12-04 02:29:17: PID: 10859: Lp1: SoC: 60 (LV0)
2022-12-04 02:29:17: PID: 10941: Lp1: tokens_new != tokens_old, rewrite tokens file
2022-12-04 02:29:14: PID: 10859: Lp1: Requesting SoC (LV0)
2022-12-04 00:29:08: PID: 8983: Lp1: SoC: 60 (LV0)
2022-12-04 00:29:08: PID: 9059: Lp1: tokens_new != tokens_old, rewrite tokens file
2022-12-04 00:29:04: PID: 8983: Lp1: Requesting SoC (LV0)
2022-12-03 22:28:57: PID: 2927: Lp1: SoC: 60 (LV0)
2022-12-03 22:28:57: PID: 3009: Lp1: tokens_new != tokens_old, rewrite tokens file
2022-12-03 22:28:54: PID: 2927: Lp1: Requesting SoC (LV0)
Ein sonst immer mal mögliches Problem bei VW scheint also eher nicht vorzuliegen.

Da auch die Installation von lxml nicht gleich funktioniert hatte, noch mal die Frage:
Wie ist die openWB in Deinem LAN angebunden?
LAN oder WLAN?
Welcher Router?
Firewall, Managed Switches, VLAN, Fritzbox-GastNetz, WLAN-Nachtabschaltung oder sonstige Komponenten, die den Zugriff der openWB auf das Internet blockieren könnten?
openWB-2 Standard+ | openWB EVU Kit v2 MID| 9,9kWp mit Kostal Plenticore 8.5 plus | VW ID.3, Smart EQ forfour
SpaceMan
Beiträge: 13
Registriert: Fr Nov 11, 2022 11:42 am

Re: SOC: VWID

Beitrag von SpaceMan »

rleidner hat geschrieben: So Dez 04, 2022 9:53 am Da auch die Installation von lxml nicht gleich funktioniert hatte, noch mal die Frage:
Wie ist die openWB in Deinem LAN angebunden?
LAN oder WLAN?
Welcher Router?
Firewall, Managed Switches, VLAN, Fritzbox-GastNetz, WLAN-Nachtabschaltung oder sonstige Komponenten, die den Zugriff der openWB auf das Internet blockieren könnten?
Hi, werde das mit dem neu konfigurieren gleich mal ausprobieren. Die openWB ist per LAN angebunden und darf frei ins Internet kommunizieren. Allerdings gibt es bei mir bei manchen Zielsystemen Probleme, wenn diese auch per IPv6 erreichbar sind. Dann geht nicht mal ein ping durch. Das war hier scheinbar der Fall. In der OPNsense auf IPv4 only umgestellt und das ging direkt. Aktuell ist nur IPv4 im Einsatz, daher sollte die openWB problemlos raustelefonieren können.

Aber jetzt werde ich erstmal die Config neu machen und schauen, was dann passiert. Danke!
SpaceMan
Beiträge: 13
Registriert: Fr Nov 11, 2022 11:42 am

Re: SOC: VWID

Beitrag von SpaceMan »

Ok, es hat nichts mit der Config zu tun und scheint wirklich am Netzwerk zu hängen. Ich habe die openWB mal direkt an die FritzBox gehängt, da funktioniert es. Also

Internet <--> FritzBox <--> openWB

funktioniert, wenn es an meiner OPNsense, die hinter der FritzBox hängt, geht es nicht:

Internet <--> FritzBox <--> OPNsense <--> openWB

Allerdings ist der Outbound Traffic komplett erlaubt. Mir war nur aufgefallen, dass die openWB IGMP, sprich MultiCast, nutzt. Und das scheint nicht zu klappen. Egal, ich hänge die openWB mal zurück und mache einen Netzwerk-Trace. Es liegt jedenfalls nicht am Modul. Den Rest werde ich schon rausfinden. Das ist mein Metier :D

Danke für die flotte Unterstützung. Zur Not greife ich von meinem externen Modul auf die ramdisk zu und prüfe, ob das Fahrzeug verbunden ist :D
rleidner
Beiträge: 799
Registriert: Mo Nov 02, 2020 9:50 am

Re: SOC: VWID

Beitrag von rleidner »

SpaceMan hat geschrieben: So Dez 04, 2022 11:20 am Ok, es hat nichts mit der Config zu tun und scheint wirklich am Netzwerk zu hängen. Ich habe die openWB mal direkt an die FritzBox gehängt, da funktioniert es. Also

Internet <--> FritzBox <--> openWB

funktioniert, wenn es an meiner OPNsense, die hinter der FritzBox hängt, geht es nicht:

Internet <--> FritzBox <--> OPNsense <--> openWB

Allerdings ist der Outbound Traffic komplett erlaubt. Mir war nur aufgefallen, dass die openWB IGMP, sprich MultiCast, nutzt. Und das scheint nicht zu klappen. Egal, ich hänge die openWB mal zurück und mache einen Netzwerk-Trace. Es liegt jedenfalls nicht am Modul. Den Rest werde ich schon rausfinden. Das ist mein Metier :D

Danke für die flotte Unterstützung. Zur Not greife ich von meinem externen Modul auf die ramdisk zu und prüfe, ob das Fahrzeug verbunden ist :D
Danke für die Rückmeldung.
Lass mich bitte wissen was dabei rauskommt.
Wenn es allgemein nützlich ist würde ich gerne den 1. Beitrag ergänzen für Systeme mit Firewall.
openWB-2 Standard+ | openWB EVU Kit v2 MID| 9,9kWp mit Kostal Plenticore 8.5 plus | VW ID.3, Smart EQ forfour
SpaceMan
Beiträge: 13
Registriert: Fr Nov 11, 2022 11:42 am

Re: SOC: VWID

Beitrag von SpaceMan »

Jetzt geht es ... ich vermute, es lag bei mir am IPv6 (wo ich wie gesagt bei manchen Hosts Probleme habe), muss mir da mal die MTU und so genau anschauen. Jedenfalls ging es dann zwar immer noch eine Weile nicht, aber nun scheint er eine andere IP abzufragen und jetzt geht es :D
rleidner
Beiträge: 799
Registriert: Mo Nov 02, 2020 9:50 am

Re: SOC: VWID

Beitrag von rleidner »

👍 :D
openWB-2 Standard+ | openWB EVU Kit v2 MID| 9,9kWp mit Kostal Plenticore 8.5 plus | VW ID.3, Smart EQ forfour
Becker
Beiträge: 765
Registriert: Mi Okt 07, 2020 4:34 pm

Re: SOC: VWID

Beitrag von Becker »

habe gerade auf die Nightly geupdated und neugestartet, vorher wurde der SoC nicht aktualisiert, jetzt immer noch nicht:

Code: Alles auswählen

2022-12-05 14:13:50: PID: 8492: Lp1: SoC:  (LV0)
Get status failed
2022-12-05 14:13:50: PID: 8406: Lp2: SoC:  (LV0)
Get status failed
2022-12-05 14:13:48: PID: 8534: Lp1: tokens initialization exception: set tokens_old to initial value
2022-12-05 14:13:48: PID: 8534: Lp1: tokens initialization exception: e=[Errno 2] No such file or directory: '/var/www/html/openWB/ramdisk/soc_vwid_tokenslp1'
2022-12-05 14:13:47: PID: 8422: Lp2: tokens initialization exception: set tokens_old to initial value
2022-12-05 14:13:47: PID: 8422: Lp2: tokens initialization exception: e=[Errno 2] No such file or directory: '/var/www/html/openWB/ramdisk/soc_vwid_tokenslp2'
2022-12-05 14:13:47: PID: 8492: Lp1: Requesting SoC (LV0)
2022-12-05 14:13:46: PID: 8406: Lp2: Requesting SoC (LV0)
2022-12-05 14:05:49: PID: 12638: Lp2: SoC:  (LV0)
Get status failed
2022-12-05 14:05:47: PID: 12663: Lp2: tokens initialization exception: set tokens_old to initial value
2022-12-05 14:05:47: PID: 12663: Lp2: tokens initialization exception: e=[Errno 2] No such file or directory: '/var/www/html/openWB/ramdisk/soc_vwid_tokenslp2'
2022-12-05 14:05:46: PID: 12638: Lp2: Requesting SoC (LV0)
2022-12-05 14:05:40: PID: 11406: Lp1: SoC:  (LV0)
Get status failed
2022-12-05 14:05:38: PID: 11445: Lp1: tokens initialization exception: set tokens_old to initial value
2022-12-05 14:05:38: PID: 11445: Lp1: tokens initialization exception: e=[Errno 2] No such file or directory: '/var/www/html/openWB/ramdisk/soc_vwid_tokenslp1'
2022-12-05 14:05:37: PID: 11406: Lp1: Requesting SoC (LV0)
2022-12-05 14:04:06: PID: 2298: Lp1: SoC:  (LV0)
Get status failed
2022-12-05 14:04:05: PID: 2213: Lp2: SoC:  (LV0)
Get status failed
2022-12-05 14:04:04: PID: 2336: Lp1: tokens initialization exception: set tokens_old to initial value
2022-12-05 14:04:04: PID: 2336: Lp1: tokens initialization exception: e=[Errno 2] No such file or directory: '/var/www/html/openWB/ramdisk/soc_vwid_tokenslp1'
2022-12-05 14:04:03: PID: 2237: Lp2: tokens initialization exception: set tokens_old to initial value
2022-12-05 14:04:03: PID: 2237: Lp2: tokens initialization exception: e=[Errno 2] No such file or directory: '/var/www/html/openWB/ramdisk/soc_vwid_tokenslp2'
2022-12-05 14:04:03: PID: 2298: Lp1: Requesting SoC (LV0)
2022-12-05 14:04:02: PID: 2213: Lp2: Requesting SoC (LV0)
**** REBOOT ****

VW ID Android App funktioniert. :?:
openWB series2 Buchse (2021)
go-eCharger HOME+ 22 kW (2022)
Andreas.M
Beiträge: 24
Registriert: Mo Dez 05, 2022 1:27 pm

Re: SOC: VWID

Beitrag von Andreas.M »

Hallo und viele Grüße,
ich bin hier neu, habe die Custom mit Display, Phasenumschaltung, RFID seit ein paar Monaten und seit 3 Tagen auch das Auto dazu.
Es funktioniert(e) alles. Laden/PV/richtiger Zähler/und SoC Auslesen - bis gestern Nacht.

Bei mir ist auch seit heute Mittag (vormittag habe ich nicht getestet) ein ähnliches Bild: Der SoC kann nicht mehr ausgelesen werden.
Geändert habe ich wissentlich nur die Android App-Anbindungen "Media Control" (welche auch bei mir schwarz bleibt) und "maps + more". Sonst gleiche Konfiguration wie gestern abend.

Code: Alles auswählen

2022-12-05 14:24:53: PID: 24595: Lp1: Charging, but nothing to do yet. Incrementing timer. (LV2) at 93 main modules/soc_vwid/main.sh
Get status failed (LV0) at 83 getAndWriteSoc modules/soc_vwid/main.sh
2022-12-05 14:24:47: PID: 23281: Lp1: SoC: password_form: ignore line:         }
2022-12-05 14:24:43: PID: 23281: Lp1: Requesting SoC (LV0) at 70 getAndWriteSoc modules/soc_vwid/main.sh
2022-12-05 14:24:33: PID: 21977: Lp1: Charging, but nothing to do yet. Incrementing timer. (LV2) at 93 main modules/soc_vwid/main.sh
2022-12-05 14:24:23: PID: 20684: Lp1: Charging, but nothing to do yet. Incrementing timer. (LV2) at 93 main modules/soc_vwid/main.sh
Das ist das SoC Log (Level2) sobald mal auf das SoC Aktualisieren Icon geklickt hat.
Eingestellt ist "VW ID" als Modul. Beide Android Apps (Connect + Connect ID) funktionieren. Die Browser Seite ebenfalls - dort sind auch keine Dialoge wegzuklicken.

Abwarten oder auf Nightly updaten? Hatte vorher die Nightly 1.9.282 und bin gerade vor drei Tagen auf die Stable 1.9.288 gewechselt. Damit lief ja auch alles.
Antworten