[gelöst] Presence Neuinstallation

Begonnen von Edi77, 05 November 2017, 21:32:31

Vorheriges Thema - Nächstes Thema

Edi77

Wenn ich auf einem RPI jessie/Stretch (lite) installiere

Danach laut Wiki presenced/lepresenced und auf dem FHEM Hauptserver collectored - noch alles ok
Installiere ich jetzt auf dem RPi 3 fhem

sudo apt-get install libdevice-serialport-perl
sudo apt-get install libio-socket-ssl-perl
wget  http://fhem.de/fhem-5.8.deb
sudo dpkg -i fhem-5.8.deb

dann reboot
noch alles ok Bluetooth funktioniert und sendet seine Daten an den FHEM Hauptserver

FHEM läuft aber lokal noch nicht

sudo apt-get install -f

reboot
FHEM läuft jetzt auch auf dem RPi 3 aber das Bluetooth startet nicht mehr

[Failed] to start Configure Bluetooth Modems connected by UART
See 'systemctl status hciuart.service' for details


Nach apt-get dist-upgrade kommen keine Fehler mehr
aber
bluetoothctl
Waiting to connect to bluetoothd...
hcitool lescan
Could not open device: No such device

message.log
Nov  5 20:22:23 raspberrypi kernel: [   15.370615] Bluetooth: Core ver 2.22
Nov  5 20:22:23 raspberrypi kernel: [   15.370703] NET: Registered protocol family 31
Nov  5 20:22:23 raspberrypi kernel: [   15.370708] Bluetooth: HCI device and connection manager initialized
Nov  5 20:22:23 raspberrypi lepresenced[534]: [tid:1] main::bluetooth_scan_thread: Received unknown output: 'Invalid device: No such device'!
Nov  5 20:22:23 raspberrypi lepresenced[534]: [tid:1] main::bluetooth_scan_thread: hcitool exited, retrying...
Nov  5 20:22:23 raspberrypi kernel: [   15.371858] Bluetooth: HCI socket layer initialized
Nov  5 20:22:23 raspberrypi kernel: [   15.371874] Bluetooth: L2CAP socket layer initialized
Nov  5 20:22:23 raspberrypi kernel: [   15.371916] Bluetooth: SCO socket layer initialized
Nov  5 20:22:23 raspberrypi lepresenced[534]: [tid:2] main::bluetooth_dump_thread: hcidump exited, retrying...
Nov  5 20:22:24 raspberrypi lepresenced[534]: [tid:1] main::bluetooth_scan_thread: Received unknown output: 'Invalid device: No such device'!
Nov  5 20:22:24 raspberrypi lepresenced[534]: [tid:1] main::bluetooth_scan_thread: hcitool exited, retrying...
Nov  5 20:22:24 raspberrypi lepresenced[534]: [tid:2] main::bluetooth_dump_thread: hcidump exited, retrying...
Nov  5 20:22:25 raspberrypi lepresenced[534]: [tid:1] main::bluetooth_scan_thread: Received unknown output: 'Invalid device: No such device'!
Nov  5 20:22:25 raspberrypi lepresenced[534]: [tid:1] main::bluetooth_scan_thread: hcitool exited, retrying...
Nov  5 20:22:25 raspberrypi lepresenced[534]: [tid:2] main::bluetooth_dump_thread: hcidump exited, retrying...
Nov  5 20:22:26 raspberrypi kernel: [   18.091617] TCP: request_sock_TCP: Possible SYN flooding on port 5333. Sending cookies.  Check SNMP counters.
Nov  5 20:22:26 raspberrypi kernel: [   18.299469] TCP: request_sock_TCP: Possible SYN flooding on port 5111. Sending cookies.  Check SNMP counters.



Ich frage mich wieso nach dem apt-get install -f das Bluetooth Modul plötzlich nicht mehr am UART Prot verfügbar ist.

Was bei apt-get install -f gemacht wurde


root@raspberrypi:/home/pi# apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libauthen-sasl-perl libcommon-sense-perl libdbd-sqlite3-perl libdbi-perl
  libfile-listing-perl libfont-afm-perl libhtml-form-perl libhtml-format-perl
  libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl
  libhttp-negotiate-perl libjson-perl libjson-xs-perl
  liblwp-protocol-https-perl libmailtools-perl libnet-http-perl
  libnet-smtp-ssl-perl libtext-diff-perl libtypes-serialiser-perl libwww-perl
  libwww-robotrules-perl sqlite3
Suggested packages:
  libdigest-hmac-perl libgssapi-perl libclone-perl libmldbm-perl
  libnet-daemon-perl libsql-statement-perl libcrypt-ssleay-perl
  libauthen-ntlm-perl sqlite3-doc
The following NEW packages will be installed:
  libauthen-sasl-perl libcommon-sense-perl libdbd-sqlite3-perl libdbi-perl
  libfile-listing-perl libfont-afm-perl libhtml-form-perl libhtml-format-perl
  libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl
  libhttp-negotiate-perl libjson-perl libjson-xs-perl
  liblwp-protocol-https-perl libmailtools-perl libnet-http-perl
  libnet-smtp-ssl-perl libtext-diff-perl libtypes-serialiser-perl libwww-perl
  libwww-robotrules-perl sqlite3
0 upgraded, 23 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 2602 kB of archives.
After this operation, 7264 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libfile-lis                                                                                        ting-perl all 6.04-1 [10.3 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libhtml-tre                                                                                        e-perl all 5.03-2 [210 kB]
Get:3 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libhttp-coo                                                                                        kies-perl all 6.01-1 [17.4 kB]
Get:4 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libhttp-neg                                                                                        otiate-perl all 6.00-2 [13.6 kB]
Get:5 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libnet-http                                                                                        -perl all 6.12-1 [23.8 kB]
Get:6 http://mirrordirector.raspbian.org/raspbian stretch/main armhf liblwp-prot                                                                                        ocol-https-perl all 6.06-2 [9582 B]
Get:7 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libwww-robo                                                                                        trules-perl all 6.01-1 [14.3 kB]
Get:8 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libwww-perl                                                                                         all 6.15-1 [195 kB]
Get:9 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libjson-per                                                                                        l all 2.90-1 [86.0 kB]
Get:10 http://mirrordirector.raspbian.org/raspbian stretch/main armhf sqlite3 ar                                                                                        mhf 3.16.2-5 [709 kB]
Get:11 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libdbi-per                                                                                        l armhf 1.636-1+b1 [759 kB]
Get:12 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libdbd-sql                                                                                        ite3-perl armhf 1.54-1 [157 kB]
Get:13 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libtext-di                                                                                        ff-perl all 1.44-1 [27.4 kB]
Get:14 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libauthen-                                                                                        sasl-perl all 2.1600-1 [50.8 kB]
Get:15 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libcommon-                                                                                        sense-perl armhf 3.74-2 [23.6 kB]
Get:16 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libfont-af                                                                                        m-perl all 1.20-2 [13.6 kB]
Get:17 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libhtml-fo                                                                                        rm-perl all 6.03-1 [23.9 kB]
Get:18 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libhtml-fo                                                                                        rmat-perl all 2.12-1 [43.5 kB]
Get:19 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libhttp-da                                                                                        emon-perl all 6.01-1 [17.3 kB]
Get:20 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libtypes-s                                                                                        erialiser-perl all 1.0-1 [12.7 kB]
Get:21 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libjson-xs                                                                                        -perl armhf 3.030-1 [90.0 kB]
Get:22 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libnet-smt                                                                                        p-ssl-perl all 1.04-1 [6184 B]
Get:23 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libmailtools-perl all 2.18-1 [88.5 kB]
Fetched 2602 kB in 1min 20s (32.4 kB/s)
Selecting previously unselected package libfile-listing-perl.
(Reading database ... 37772 files and directories currently installed.)
Preparing to unpack .../00-libfile-listing-perl_6.04-1_all.deb ...
Unpacking libfile-listing-perl (6.04-1) ...
Selecting previously unselected package libhtml-tree-perl.
Preparing to unpack .../01-libhtml-tree-perl_5.03-2_all.deb ...
Unpacking libhtml-tree-perl (5.03-2) ...
Selecting previously unselected package libhttp-cookies-perl.
Preparing to unpack .../02-libhttp-cookies-perl_6.01-1_all.deb ...
Unpacking libhttp-cookies-perl (6.01-1) ...
Selecting previously unselected package libhttp-negotiate-perl.
Preparing to unpack .../03-libhttp-negotiate-perl_6.00-2_all.deb ...
Unpacking libhttp-negotiate-perl (6.00-2) ...
Selecting previously unselected package libnet-http-perl.
Preparing to unpack .../04-libnet-http-perl_6.12-1_all.deb ...
Unpacking libnet-http-perl (6.12-1) ...
Selecting previously unselected package liblwp-protocol-https-perl.
Preparing to unpack .../05-liblwp-protocol-https-perl_6.06-2_all.deb ...
Unpacking liblwp-protocol-https-perl (6.06-2) ...
Selecting previously unselected package libwww-robotrules-perl.
Preparing to unpack .../06-libwww-robotrules-perl_6.01-1_all.deb ...
Unpacking libwww-robotrules-perl (6.01-1) ...
Selecting previously unselected package libwww-perl.
Preparing to unpack .../07-libwww-perl_6.15-1_all.deb ...
Unpacking libwww-perl (6.15-1) ...
Selecting previously unselected package libjson-perl.
Preparing to unpack .../08-libjson-perl_2.90-1_all.deb ...
Unpacking libjson-perl (2.90-1) ...
Selecting previously unselected package sqlite3.
Preparing to unpack .../09-sqlite3_3.16.2-5_armhf.deb ...
Unpacking sqlite3 (3.16.2-5) ...
Selecting previously unselected package libdbi-perl.
Preparing to unpack .../10-libdbi-perl_1.636-1+b1_armhf.deb ...
Unpacking libdbi-perl (1.636-1+b1) ...
Selecting previously unselected package libdbd-sqlite3-perl.
Preparing to unpack .../11-libdbd-sqlite3-perl_1.54-1_armhf.deb ...
Unpacking libdbd-sqlite3-perl (1.54-1) ...
Selecting previously unselected package libtext-diff-perl.
Preparing to unpack .../12-libtext-diff-perl_1.44-1_all.deb ...
Unpacking libtext-diff-perl (1.44-1) ...
Selecting previously unselected package libauthen-sasl-perl.
Preparing to unpack .../13-libauthen-sasl-perl_2.1600-1_all.deb ...
Unpacking libauthen-sasl-perl (2.1600-1) ...
Selecting previously unselected package libcommon-sense-perl.
Preparing to unpack .../14-libcommon-sense-perl_3.74-2_armhf.deb ...
Unpacking libcommon-sense-perl (3.74-2) ...
Selecting previously unselected package libfont-afm-perl.
Preparing to unpack .../15-libfont-afm-perl_1.20-2_all.deb ...
Unpacking libfont-afm-perl (1.20-2) ...
Selecting previously unselected package libhtml-form-perl.
Preparing to unpack .../16-libhtml-form-perl_6.03-1_all.deb ...
Unpacking libhtml-form-perl (6.03-1) ...
Selecting previously unselected package libhtml-format-perl.
Preparing to unpack .../17-libhtml-format-perl_2.12-1_all.deb ...
Unpacking libhtml-format-perl (2.12-1) ...
Selecting previously unselected package libhttp-daemon-perl.
Preparing to unpack .../18-libhttp-daemon-perl_6.01-1_all.deb ...
Unpacking libhttp-daemon-perl (6.01-1) ...
Selecting previously unselected package libtypes-serialiser-perl.
Preparing to unpack .../19-libtypes-serialiser-perl_1.0-1_all.deb ...
Unpacking libtypes-serialiser-perl (1.0-1) ...
Selecting previously unselected package libjson-xs-perl.
Preparing to unpack .../20-libjson-xs-perl_3.030-1_armhf.deb ...
Unpacking libjson-xs-perl (3.030-1) ...
Selecting previously unselected package libnet-smtp-ssl-perl.
Preparing to unpack .../21-libnet-smtp-ssl-perl_1.04-1_all.deb ...
Unpacking libnet-smtp-ssl-perl (1.04-1) ...
Selecting previously unselected package libmailtools-perl.
Preparing to unpack .../22-libmailtools-perl_2.18-1_all.deb ...
Unpacking libmailtools-perl (2.18-1) ...
Setting up libcommon-sense-perl (3.74-2) ...
Setting up libfont-afm-perl (1.20-2) ...
Setting up libnet-smtp-ssl-perl (1.04-1) ...
Setting up libhttp-cookies-perl (6.01-1) ...
Setting up libtext-diff-perl (1.44-1) ...
Setting up libhttp-daemon-perl (6.01-1) ...
Setting up libtypes-serialiser-perl (1.0-1) ...
Setting up sqlite3 (3.16.2-5) ...
Setting up libhtml-tree-perl (5.03-2) ...
Setting up libhtml-form-perl (6.03-1) ...
Setting up libfile-listing-perl (6.04-1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up libnet-http-perl (6.12-1) ...
Setting up libjson-perl (2.90-1) ...
Setting up libwww-robotrules-perl (6.01-1) ...
Setting up libauthen-sasl-perl (2.1600-1) ...
Setting up libdbi-perl (1.636-1+b1) ...
Setting up libhttp-negotiate-perl (6.00-2) ...
Setting up libmailtools-perl (2.18-1) ...
Setting up libhtml-format-perl (2.12-1) ...
Setting up libdbd-sqlite3-perl (1.54-1) ...
Setting up libjson-xs-perl (3.030-1) ...
Setting up liblwp-protocol-https-perl (6.06-2) ...
Setting up libwww-perl (6.15-1) ...
Setting up fhem (5.8) ...
Starting fhem...


Kein Device wird gefunden.

root@raspberrypi:/home/pi# hcitool dev
Devices:


Was auch noch interessant ist das plötzlich bei raspi-config bei Interfaces Serial aktiv ist, obwohl ich es nicht aktiviert habe!!!
Ich vermute mal das das mit der URAT Schnittstelle zusammen hängt.

Das interessante daran ist, installiere ich jessie/Stretch (lite) auf einem RPi 2 mit einem LogiLink BT0015 / CLS Bluetooth Stick und danach fhem gibt es keine Probleme und alles läuft  :o

Des weiteren habe ich jetzt festgestellt das dies immer bei der Lite Version ist.
Installiere ich jessie/Stretch läuft Bluetooth. Stelle ich in der raspi-config ein das er in der CLI starten soll, geht es wieder nicht.

Teste jetzt schon seit einer Woche rum und weiß jetzt echt nimmer weiter.
Ich hoffe jemand hat hier noch eine gute Idee

Vielleicht hat jemand das gleiche Problem bei der Neuinstallation und Bluetooth
Master FHEM 6 als VM auf ESX Ubuntu 20.04 LTS mit MAXCube/MAX!/FS20|TabletUI|Flightradar|Tasmota|TTN Lora|CCU3 HomematicIP|RPi mit GammaScout|MQTT EasyESP 8266|LuftdatenInfo|deCONZ HUEDev|probemon|Siemens Logo|P4D|3D PRINTER RAISE3D

kroman

Ich kann nur darauf verweisen:

https://forum.fhem.de/index.php/topic,77407.msg693422.html#msg693422

Ich habe wie dort gesagt viel rumprobiert. Was in den logs stand weiß ich jetzt allerdings nicht mehr.
Ich hatte 2 RPI3, bei einem gings, beim anderen nicht.
Linux-Paket- und config-mäßig war alles gleich.
Ich dachte dann schon, dass es an der Hardware liegen muss und hab mir einen dritten RPI3 bestellt, ging auch nicht.
Es hat auch mit der SD Karte vom 1. im 3. RPI3 nicht funktioniert.
Ich denke, es lag an der Firmware, rpi-update gemacht oder nicht.
Jedenfalls lasse ich seitdem die Finger vom internen BT.

Otto123

Hi,

da ich das HMUART Modul verwende und dies die normale UART braucht betreibe ich meinen Pi 3 mit dem Overlay welches die miniUART und die UART tauscht. -> https://wiki.fhem.de/wiki/HM-MOD-RPI-PCB_HomeMatic_Funkmodul_f%C3%BCr_Raspberry_Pi
Damit habe ich mit dem BT Modul keine Probleme.

Gruß Otto
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

Edi77

Also ich glaub ich habe es jetzt herausgefunden.

Mit der Lite Version scheint es nicht zu gehen.
Wenn ich "Boot to CLI" geht es auch nicht mehr

Wenn man das beachtet geht es mit presenced/lepresenced/collectord/fhem
Master FHEM 6 als VM auf ESX Ubuntu 20.04 LTS mit MAXCube/MAX!/FS20|TabletUI|Flightradar|Tasmota|TTN Lora|CCU3 HomematicIP|RPi mit GammaScout|MQTT EasyESP 8266|LuftdatenInfo|deCONZ HUEDev|probemon|Siemens Logo|P4D|3D PRINTER RAISE3D