^

Themabewertung:
  • 98 Bewertung(en) - 2.56 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
LCN PCHK und Raspberry Debian Bullseye
#1
Guten Morgen zusammen,
nach einem fatalen Absturz musste ich leider meinen gut funktionieren RaspberryPi 4 neu aufsetzen (LCN PCHK und IP Symcon)
Die Installation der PCHK Software auf Debian 11 funktioniert, bei der Statusabfrage zeigt sich aber, dass der Dienst beendet wurde (active (exited)) und ich bekomme diese Fehlermeldung: "error while loading shared libraries: libwiringPi.so". 
Eine versuchte Installation von wiringpi ergibt leider die folgende Fehlermeldung: "E: Paket wiringpi kann nicht gefunden werden."


Hat jemand eine Lösung, bin für jede Hilfe dankbar?
VG Andreas

P.S.: auf einem älteren Debian läuft leider IP Symcon nicht und mein Backup ist ebenfalls defekt.....
Zitieren
#2
Gleiches Problem bei mir.
Hab herausgefunden dass die Wiring Pi "deprecated " ist.

Auf der Website des Entwicklers gibt es für den RP4B eine neue Version 2.52.
Habs mit dieser versucht --> aber gleicher Fehler.

Bei mir ist PCHK für die Kopplung an openHAB verantwortlich.

Hab über Weihnachten openHabian neu auf einem Raspi installiert da das nun gegen LOG4J geschützt ist.

Dieses Image basiert auch auf Bullseye.

Lösung hab ich leider auch keine parat.
mfg

Karl
Zitieren
#3
So hab nun nach einiger Probiererei eine Lösung die mit meinem SETUP läuft:

Raspi 4B 4GB
openhabian v1.7.1 (Raspi Version von openHAB) das basiert auf BULLSEYE
PCHK 3.22


Als erstes neue Version von WIRING PI für RASPI 4B von der Homepage des AUTORS installieren

1.) Image von openHABian mit Etcher auf SD gebrannt

2.) Wiring PI in der Version 2.52 installiert
cd /tmp
wget https://project-downloads.drogon.net/wir...latest.deb
sudo dpkg -i wiringpi-latest.deb


Version checken mit:

gpio -v

Version 2.52 muss angezeigt werden.


3.) PCHK installieren

Danach hab ich die PCHK ganz normal installiert und den Dienst gestartet.

OpenHAB ist nun über RASPI 4B mit Bullseye und openHAB 3.22 online. 

4.) LCN Binding (Bridge) zeigt nach Eingabe der IP ONLINE
Smile

Denk dann sollte Wiring PI auch für andere Programme unter Bullseye lauffähig sein.
Wird nur nicht mehr mitgeliefert und muss händisch installiert werden.

Hoffe es klappt auch für dich


Karl

Karl
Zitieren
#4
Moin,
mit meinen begrenzten Linux Kenntnissen lande ich leider in einer "Nichtfunktion" ...

Code:
root@raspberrypi:~# gpio -v
gpio version: 2.52
Copyright (c) 2012-2018 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: gpio -warranty

Raspberry Pi Details:
 Type: Pi 3, Revision: 02, Memory: 1024MB, Maker: Sony
 * Device tree is enabled.
 *--> Raspberry Pi 3 Model B Rev 1.2
 * This Raspberry Pi supports user-level GPIO access.
root@raspberrypi:~# sudo systemctl status lcnpchk
● lcnpchk.service - LSB: LCN pchk
    Loaded: loaded (/etc/init.d/lcnpchk; generated)
    Active: active (exited) since Wed 2022-03-30 14:48:37 CEST; 15min ago
      Docs: man:systemd-sysv-generator(8)
   Process: 569 ExecStart=/etc/init.d/lcnpchk start (code=exited, status=0/SUCCESS)
       CPU: 102ms

Mär 30 14:48:36 raspberrypi systemd[1]: Starting LSB: LCN pchk...
Mär 30 14:48:37 raspberrypi lcnpchk[569]: Starting LCN pchk: lcnpchk
Mär 30 14:48:37 raspberrypi lcnpchk[581]: /usr/bin/lcnpchk: [b]error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory[/b]
Mär 30 14:48:37 raspberrypi lcnpchk[592]:  failed!
Mär 30 14:48:37 raspberrypi lcnpchk[569]: .
Mär 30 14:48:37 raspberrypi systemd[1]: Started LSB: LCN pchk.

Hat noch jemand eine Idee wo ich meinen Fehler suchen und beseitigen kann?

Grüße, Uwe
Zitieren
#5
Ich habe nach dieser Anleitung die fehlende Library "WiringPi" installiert:


Install Wiring Pi
Note: Wiring Pi is now pre-installed with standard Raspbian systems. The instructions from the official WiringPi homepage are now depreciated. The original wiringPi source "git://git.drogon.net/wiringPi" is not available.
Wiring Pi is previously not included with early versions of Raspbian. This required users to download and install it. Luckily, Wiring Pi is included in standard Raspbian systems. If you are looking to update using a mirrored Wiring Pi with small updates to support newer hardware, we recommend checking out this GitHub repository.

You'll need git (may be installed by default). If git is not installed, enter the following into the command line.

sudo apt-get install git-core
We highly recommend using Git to download the latest version. To check what version you have, enter the following command.

gpio -v
If you receive an output similar to to the following with the Unknown17, you'll want to update WiringPi on a Raspberry Pi 4 or above.

gpio version: 2.50
Copyright © 2012-2018 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: gpio -warranty

Raspberry Pi Details:
Type: Unknown17, Revision: 02, Memory: 0MB, Maker: Sony
* Device tree is enabled.
* --> Raspberry Pi 4 Model B Rev 1.2
* This Raspberry Pi supports user-level GPIO access.
Enter the following to remove the wiringPi and configuration files.

sudo apt-get purge wiringpi
Then type the following for the Pi to remove all locations that remember wiringPi.

hash -r
As long as you have Git installed, these commands should be all you need to download and install Wiring Pi.

git clone https://github.com/WiringPi/WiringPi.git
This will make a folder in your current directory called WiringPi. Head to the Wiring Pi directory.

cd WiringPi
Then pull the latest changes from the origin.

git pull origin
Then enter the following command. The ./build is a script to build Wiring Pi from the source files. This builds the helper files, modifies some paths in Linux and gets WiringPi ready to rock.

./build
At this point, the library should work. Run the gpio command shown below to view some information about the wiringPi version and the Pi that it is running on.

gpio -v
Entering the following command will draw a table illustrating the configuration for the pins in the 40-pin connector.

gpio readall
Zitieren


Gehe zu: