pivccu3 ( 3.59.6-59) funktioniert nach update nicht mehr

Virtualisierte CCU für Raspberry Pi und Clones

Moderator: Co-Administratoren

Antworten
carstendirks
Beiträge: 22
Registriert: 02.11.2019, 08:50

pivccu3 ( 3.59.6-59) funktioniert nach update nicht mehr

Beitrag von carstendirks » 28.08.2021, 13:35

Device: Raspberry PI4 mit HB-RF-USB(Platine HB-RF-USB-TK)
pivccu3: 3.59.6-59

Ich habe heute einen Update via

Code: Alles auswählen

sudo apt update && sudo apt upgrade
durchgeführt - ohne sichtbare Fehler. Dann reboot durchgeführt.

Danach startet das System (man sieht die WebUI mit alle Räumen&Geräte), allerdings lässt sich kein Gerät mehr steuern und es gibt häufig den Fehler:

Code: Alles auswählen

HmIP-RF
Eine Komponente der Homematic Zentrale reagiert nicht mehr.

Code: Alles auswählen

pivccu-info:

piVCCU version: 3.59.6-59
Kernel modules: Available
Raw UART dev:   Available
Rasp.Pi UART:   Assigned to GPIO pins
HMRF Hardware:  FAKE_HMRF
 Board serial:  FKE1170418
 Radio MAC:     0xff768f
HMIP Hardware:  unknown
 SGTIN:         3014F711A061A7D5699DAB52
 Radio MAC:     0xff768f
State:          RUNNING
PID:            3121
IP:             192.168.178.45
CPU use:        10.42 seconds
BlkIO use:      64.00 KiB
Link:           vethpivccu
 TX bytes:      46.26 KiB
 RX bytes:      97.05 KiB
 Total bytes:   143.31 KiB

Code: Alles auswählen

 systemctl status pivccu.service:
 
pivccu.service - piVCCU
   Loaded: loaded (/lib/systemd/system/pivccu.service; disabled; vendor preset: enabled)
   Active: active (running) since Sat 2021-08-28 12:26:37 BST; 8s ago
  Process: 2698 ExecStart=/var/lib/piVCCU3/start_container.sh (code=exited, status=0/SUCCESS)
 Main PID: 3110 (lxc-start)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/pivccu.service
           └─3110 /usr/bin/lxc-start --lxcpath /var/lib/piVCCU3 --name lxc --pidfile /var/run/pivccu3.pid --daemon

Aug 28 12:26:23 raspberrypi start_container.sh[2698]: find: ‘/proc/2875’: No such file or directory
Aug 28 12:26:23 raspberrypi start_container.sh[2698]: find: ‘/proc/2876’: No such file or directory
Aug 28 12:26:26 raspberrypi start_container.sh[2698]: find: ‘/proc/2894’: No such file or directory
Aug 28 12:26:29 raspberrypi start_container.sh[2698]: find: ‘/proc/2902’: No such file or directory
Aug 28 12:26:31 raspberrypi start_container.sh[2698]: find: ‘/proc/2910’: No such file or directory
Aug 28 12:26:34 raspberrypi start_container.sh[2698]: find: ‘/proc/2918’: No such file or directory
Aug 28 12:26:36 raspberrypi piVCCU3[2943]: HMIP hardware was not detected
Aug 28 12:26:36 raspberrypi start_container.sh[2698]: <12>Aug 28 12:26:36 piVCCU3: HMIP hardware was not detected
Aug 28 12:26:36 raspberrypi start_container.sh[2698]: kernel.sched_rt_runtime_us = -1
Aug 28 12:26:37 raspberrypi systemd[1]: Started piVCCU.


Code: Alles auswählen

 
/boot/config.txt:

dtparam=audio=on

[pi4] 
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2

[all]
#dtoverlay=vc4-fkms-v3d
dtoverlay=pi3-miniuart-bt
max_framebuffers=2

[all]
#dtoverlay=vc4-fkms-v3d
dtoverlay=pi3-miniuart-bt
enable_uart=1
force_turbo=1

dtoverlay=pivccu-raspberrypi

Benutzeravatar
deimos
Beiträge: 5396
Registriert: 20.06.2017, 10:38
System: Alternative CCU (auf Basis OCCU)
Wohnort: Leimersheim
Hat sich bedankt: 121 Mal
Danksagung erhalten: 957 Mal
Kontaktdaten:

Re: pivccu3 ( 3.59.6-59) funktioniert nach update nicht mehr

Beitrag von deimos » 28.08.2021, 13:37

Hi,

"sudo dpkg-reconfigure pivccu3" und dort dann bitte das richtige Funkmodul auswählen. (Hint: HmIP-RFUSB ist was anderes als HB-RF-USB, auch wenn in beidem die Buchstaben USB vorkommen).

Viele Grüße
Alex

carstendirks
Beiträge: 22
Registriert: 02.11.2019, 08:50

Re: pivccu3 ( 3.59.6-59) funktioniert nach update nicht mehr

Beitrag von carstendirks » 28.08.2021, 14:14

Vielen Dank für die schnelle Antwort.

Ich habe bekomme dort 3 Optionen:

Code: Alles auswählen

HM-MOD-RPI-PCB or RPI-RF-MOD (only on supported platforms)
HmIP-RFUSB (HmIP only)
Fake radio emulation
Ursprünglich war hier "HmIP-RFUSB" gewählt. Jetzt habe ich den 1. Eintrag gewählt und bekomme den folgenden Output:

Code: Alles auswählen

systemctl status pivccu.service:

● pivccu.service - piVCCU
   Loaded: loaded (/lib/systemd/system/pivccu.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2021-08-28 14:07:40 CEST; 3s ago
  Process: 8438 ExecStart=/var/lib/piVCCU3/start_container.sh (code=exited, status=0/SUCCESS)
 Main PID: 8642 (code=exited, status=1/FAILURE)
Aug 28 14:07:39 raspberrypi piVCCU3[8476]: HMIP hardware was not detected
Aug 28 14:07:39 raspberrypi start_container.sh[8438]: <12>Aug 28 14:07:39 piVCCU3: HMIP hardware was not detected
Aug 28 14:07:40 raspberrypi start_container.sh[8438]: kernel.sched_rt_runtime_us = -1
Aug 28 14:07:40 raspberrypi start_container.sh[8438]: lxc-start: lxc: lxccontainer.c: wait_on_daemonized_start: 842 Received container state "ABO
Aug 28 14:07:40 raspberrypi start_container.sh[8438]: lxc-start: lxc: tools/lxc_start.c: main: 330 The container failed to start
Aug 28 14:07:40 raspberrypi start_container.sh[8438]: lxc-start: lxc: tools/lxc_start.c: main: 333 To get more details, run the container in fore
Aug 28 14:07:40 raspberrypi start_container.sh[8438]: lxc-start: lxc: tools/lxc_start.c: main: 336 Additional information can be obtained by sett
Aug 28 14:07:40 raspberrypi systemd[1]: Started piVCCU.
Aug 28 14:07:40 raspberrypi systemd[1]: pivccu.service: Main process exited, code=exited, status=1/FAILURE
Aug 28 14:07:40 raspberrypi systemd[1]: pivccu.service: Failed with result 'exit-code'.
Bei Auswahl der 3. Option "Fake radio emulation" bekomme ich folgenden Output:

Code: Alles auswählen

systemctl status pivccu.service:

● pivccu.service - piVCCU
   Loaded: loaded (/lib/systemd/system/pivccu.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2021-08-28 14:08:47 CEST; 7s ago
  Process: 8844 ExecStart=/var/lib/piVCCU3/start_container.sh (code=exited, status=0/SUCCESS)
 Main PID: 9055 (lxc-start)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/pivccu.service
           └─9055 /usr/bin/lxc-start --lxcpath /var/lib/piVCCU3 --name lxc --pidfile /var/run/pivccu3.pid --daemon

Aug 28 14:08:45 raspberrypi systemd[1]: Starting piVCCU...
Aug 28 14:08:45 raspberrypi start_container.sh[8844]: grep: /local/lib/udev/rules.d/: No such file or directory
Aug 28 14:08:45 raspberrypi start_container.sh[8844]: grep: /run/udev/rules.d/: No such file or directory
Aug 28 14:08:47 raspberrypi start_container.sh[8844]: kernel.sched_rt_runtime_us = -1
Aug 28 14:08:47 raspberrypi systemd[1]: Started piVCCU.
Ich bin dann bei der 3. Option geblieben. Allerdings kann ich immer noch kein Gerät über die WebUI steuern. Ganz generell ist die WebUI auch sehr träge.

Benutzeravatar
deimos
Beiträge: 5396
Registriert: 20.06.2017, 10:38
System: Alternative CCU (auf Basis OCCU)
Wohnort: Leimersheim
Hat sich bedankt: 121 Mal
Danksagung erhalten: 957 Mal
Kontaktdaten:

Re: pivccu3 ( 3.59.6-59) funktioniert nach update nicht mehr

Beitrag von deimos » 28.08.2021, 14:26

Hi,

nochmal: Du musst da das Funkmodul wählen, welches du auch physikalisch hast. Oben schreibst du, dass du eine HB-RF-USB hast, dann gehe ich mal davon aus, dass du ein RPI-RF-MOD oder ein HM-MOD-RPI-PCB aufgesteckt hast? Wenn du dann eine Software Emulation wählst, ist es wenig verwunderlich, wenn du deine Geräte nicht anfunken kannst.

Viele Grüße
Alex

carstendirks
Beiträge: 22
Registriert: 02.11.2019, 08:50

Re: pivccu3 ( 3.59.6-59) funktioniert nach update nicht mehr

Beitrag von carstendirks » 28.08.2021, 14:42

Sorry, vielleicht stehe ich hier auf dem Schlauch. Ich habe von smartkram 3 Dinge bestellt:
1. NEUES HOMEMATIC FUNKMODUL FÜR CCU3 (FERTIG AUFGEBAUT) - FÜR RASPBERRYMATIC / PIVCCU3 MIT EXTERNER ANTENNE
2. PLATINE HB-RF-USB-TK
3. Gehäuse

Faktisch hat das ganze auch seit ca. 2 Jahren ohne Probleme funktioniert. Jetzt ist nach dem Update keine Bedienung mehr möglich - an dieser Klippe hänge ich gerade.

Benutzeravatar
deimos
Beiträge: 5396
Registriert: 20.06.2017, 10:38
System: Alternative CCU (auf Basis OCCU)
Wohnort: Leimersheim
Hat sich bedankt: 121 Mal
Danksagung erhalten: 957 Mal
Kontaktdaten:

Re: pivccu3 ( 3.59.6-59) funktioniert nach update nicht mehr

Beitrag von deimos » 28.08.2021, 15:48

Hi,

das klingt nach dem Funkmodul RPI-RF-MOD, also wähle bitte das aus.
Danach ein Reboot, 10 Minuten warten und dann "sudo pivccu-info" und die Ausgabe hier posten.

Und wenn du dann noch weitere Schritte machst, dann sag das bitte. Beim Update stellt sich das nicht von alleine auf HmIP-RFUSB, das musst du selber ausgwählt haben.

Viele Grüße
Alex

carstendirks
Beiträge: 22
Registriert: 02.11.2019, 08:50

Re: pivccu3 ( 3.59.6-59) funktioniert nach update nicht mehr

Beitrag von carstendirks » 28.08.2021, 15:56

So - ich habe ein RPI-RF-MOD (1. Option).

Nach erneuter Konfiguration und Reboot haben sich die Probleme erledigt.

Den wirklichen Root Cause kann ich nicht nachvollziehen.

Danke aber für die Unterstützung.

carstendirks
Beiträge: 22
Registriert: 02.11.2019, 08:50

Re: pivccu3 ( 3.59.6-59) funktioniert nach update nicht mehr

Beitrag von carstendirks » 28.08.2021, 16:07

Ich konnte es besser nachvollziehen:
* Ich habe eine kleine Speicherkarte am USB. Dies scheint defekt zu sein und führt dazu, dass der Raspberry nicht mehr richtig startet
* Ich habe auf die pivccu3 Software als Problem geschlossen und die Konfiguration auf RFUSB geändert
* Endgültig habe ich nach dem Reboot nicht lange genug gewartet und gleich wieder andere Konfigurationen ausprobiert

Also Hardwareproblem und dann Userproblem.

Antworten

Zurück zu „piVCCU“