Hallo *,
Auf meinem FHEM raspi 4 steckt ein HMUART. Läuft seit langem einwandfrei.
Seit heute mit den beiden aktuellen Patches für CUL_HM und HMinfo.
Mein 2. IO ein HMLAN habe ich vor einigen Tagen wegen disconnects alle 5 Minuten entsorgt.
Ersatzweise habe ich ein 2. HMUART auf einem resreve raspi 3 B+ mit frischem aktuellen Raspian OS nach Vorgabe diverser FHEM Wikis installiert.
Läuft in Summe ebenfalls bestens mit socat über Kabel-LAN.
Es ist ein weiterer raspi 4 vorhanden auf dem nextcloudPi einwandfrei läuft.
Auf diesem soll eigentlich der 2. HMUART stecken, um die Stromkosten des reserve raspis zu sparen.
Auch hier alle passenden Wikis durchgearbeitet:
/boot/config.txt
enable_uart=1
# Wegen HM-MOD-RPI-PCB Uart
dtoverlay=miniuart-bt
core_freq=250
/boot/cmdline.txt
console=tty1 root=PARTUUID=5f2de386-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
● serial-getty@ttyAMA0.service
Loaded: masked (Reason: Unit serial-getty@ttyAMA0.service is masked.)
Active: inactive (dead)
ls -l /dev/ser*
lrwxrwxrwx 1 root root 7 Okt 3 15:40 /dev/serial0 -> ttyAMA0
lrwxrwxrwx 1 root root 5 Okt 3 15:40 /dev/serial1 -> ttyS0
ls -l /dev/ttyAMA0
crw-rw---- 1 root dialout 204, 64 Okt 3 18:43 /dev/ttyAMA0
Weder mit socat noch mit ser2net kommt jedoch auf diesem eine Verbindung zu Stande, obwohl netstat auf beiden raspis eine Verbindung anzeigt. Versuchsweise Wechsel der Portnummern auf allen betroffenen raspis (hier 2020) bringt auch nichts.
Log mit verbose 5:
2021.10.03 18:42:01 1: 192.....33:2020 reappeared (XX_HMUART2)
2021.10.03 18:42:02 4: HMUARTLGW XX_HMUART2 StartInit
2021.10.03 18:42:02 5: HMUARTLGW XX_HMUART2 send: 00 00
2021.10.03 18:42:02 5: HMUARTLGW XX_HMUART2 send: (8): fd00030001009e03
2021.10.03 18:42:02 5: DevIo_SimpleWrite XX_HMUART2: fd00030001009e03
2021.10.03 18:42:05 1: HMUARTLGW XX_HMUART2 did not respond for the 1. time, resending
2021.10.03 18:42:05 5: HMUARTLGW XX_HMUART2 send: (8): fd00030001009e03
2021.10.03 18:42:05 5: DevIo_SimpleWrite XX_HMUART2: fd00030001009e03
2021.10.03 18:42:08 1: HMUARTLGW XX_HMUART2 did not respond for the 2. time, resending
2021.10.03 18:42:08 5: HMUARTLGW XX_HMUART2 send: (8): fd00030001009e03
2021.10.03 18:42:08 5: DevIo_SimpleWrite XX_HMUART2: fd00030001009e03
2021.10.03 18:42:11 1: HMUARTLGW XX_HMUART2 did not respond for the 3. time, resending
2021.10.03 18:42:11 5: HMUARTLGW XX_HMUART2 send: (8): fd00030001009e03
2021.10.03 18:42:11 5: DevIo_SimpleWrite XX_HMUART2: fd00030001009e03
2021.10.03 18:42:14 1: HMUARTLGW XX_HMUART2 did not respond after all, reopening
2021.10.03 18:42:14 4: HMUARTLGW XX_HMUART2 Reopen
2021.10.03 18:42:14 3: XX_HMUART2 device closed
2021.10.03 18:42:14 5: HttpUtils url=http://192.....33:2020/ NonBlocking via http
2021.10.03 18:42:14 4: IP: 192.....33 -> 192.....33
und wieder von vorne
2021.10.03 18:42:14 1: 192.....33:2020 reappeared (XX_HMUART2)
.....
Nach Studium im Forum vermute ich einen weiteren Zugriff auf die serielle Schnittstelle.
Mein Linux Knowhow reicht hier leider nicht aus.
Für Hilfe wäre ich sehr dankbar.
Hi,
vermute ich auch :) irgendein Dienst schnappt sich die serielle Schnittstelle.
Was läuft da alles so?
systemctl list-units --type=service
Gruß Otto
Danke für den Tip:
BlueTooth habe ich in dem Zusammenhang über VNC Viewer z.Zt. abgeschaltet. Sollte aber eigentlich wegen presence Erkennung mitlaufen.
UNIT LOAD ACTIVE SUB DESCRIPTION
alsa-restore.service loaded active exited Save/Restore Sound Card State
alsa-state.service loaded active running Manage Sound Card State (restore and store)
apache2.service loaded active running The Apache HTTP Server
avahi-daemon.service loaded active running Avahi mDNS/DNS-SD Stack
bluetooth.service loaded active running Bluetooth service
● bthelper@hci0.service loaded failed failed Raspberry Pi bluetooth helper
colord.service loaded active running Manage, Install and Generate Color Profiles
console-setup.service loaded active exited Set console font and keymap
cron.service loaded active running Regular background program processing daemon
cups-browsed.service loaded active running Make remote CUPS printers available locally
cups.service loaded active running CUPS Scheduler
dbus.service loaded active running D-Bus System Message Bus
dhcpcd.service loaded active running dhcpcd on all interfaces
dphys-swapfile.service loaded active exited dphys-swapfile - set up, mount/unmount, and delete a swap file
fake-hwclock.service loaded active exited Restore / save the current clock
getty@tty1.service loaded active running Getty on tty1
gldriver-test.service loaded active exited Check for v3d driver
hciuart.service loaded active running Configure Bluetooth Modems connected by UART
hmlangw.service loaded active running hmlangw.service
ifupdown-pre.service loaded active exited Helper to synchronize boot up for ifupdown
keyboard-setup.service loaded active exited Set the console keyboard layout
kmod-static-nodes.service loaded active exited Create list of required static device nodes for the current kernel
lightdm.service loaded active running Light Display Manager
mariadb.service loaded active running MariaDB 10.3.29 database server
networking.service loaded active exited Raise network interfaces
php7.3-fpm.service loaded active running The PHP 7.3 FastCGI Process Manager
polkit.service loaded active running Authorization Manager
postfix.service loaded active exited Postfix Mail Transport Agent
postfix@-.service loaded active running Postfix Mail Transport Agent (instance -)
raspi-config.service loaded active exited LSB: Switch to ondemand cpu governor (unless shift key is pressed)
rc-local.service loaded active exited /etc/rc.local Compatibility
redis-server.service loaded active running Advanced key-value store
rng-tools.service loaded active running rng-tools.service
rpi-eeprom-update.service loaded active exited Check for Raspberry Pi EEPROM updates
rsyslog.service loaded active running System Logging Service
ssh.service loaded active running OpenBSD Secure Shell server
systemd-fsck-root.service loaded active exited File System Check on Root Device
systemd-fsck@dev-disk-by\x2dpartuuid-5f2de386\x2d01.service loaded active exited File System Check on /dev/disk/by-partuuid/5f2de386-01
systemd-journal-flush.service loaded active exited Flush Journal to Persistent Storage
systemd-journald.service loaded active running Journal Service
systemd-logind.service loaded active running Login Service
systemd-modules-load.service loaded active exited Load Kernel Modules
systemd-random-seed.service loaded active exited Load/Save Random Seed
systemd-remount-fs.service loaded active exited Remount Root and Kernel File Systems
systemd-sysctl.service loaded active exited Apply Kernel Variables
systemd-sysusers.service loaded active exited Create System Users
systemd-timesyncd.service loaded active running Network Time Synchronization
systemd-tmpfiles-setup-dev.service loaded active exited Create Static Device Nodes in /dev
systemd-tmpfiles-setup.service loaded active exited Create Volatile Files and Directories
systemd-udev-trigger.service loaded active exited udev Coldplug all Devices
systemd-udevd.service loaded active running udev Kernel Device Manager
systemd-update-utmp.service loaded active exited Update UTMP about System Boot/Shutdown
systemd-user-sessions.service loaded active exited Permit User Sessions
triggerhappy.service loaded active running triggerhappy global hotkey daemon
udisks2.service loaded active running Disk Manager
unattended-upgrades.service loaded active running Unattended Upgrades Shutdown
user-runtime-dir@1000.service loaded active exited User Runtime Directory /run/user/1000
user-runtime-dir@109.service loaded active exited User Runtime Directory /run/user/109
user@1000.service loaded active running User Manager for UID 1000
user@109.service loaded active running User Manager for UID 109
vncserver-x11-serviced.service loaded active running VNC Server in Service Mode daemon
wpa_supplicant.service loaded active running WPA supplicant
Moin,
der einzige Verdacht fällt auf cups... ? Drucker... klingt auch nach serieller Schnittstelle. Ist aber nur ins Blaue geraten.
Gruß Otto
Hi,
danke fürs Kümmern.
ich habe mal ein diff über list-units auf beiden raspis gemacht.
diff reserveraspi3 nextcloudraspi4
2a3
> apache2.service loaded active running The Apache HTTP Server
5c6
< bthelper@hci0.service loaded active exited Raspberry Pi bluetooth helper
---
> bthelper@hci0.service loaded failed failed Raspberry Pi bluetooth helper
22a24
> mariadb.service loaded active running MariaDB 10.3.29 database server
23a26
> php7.3-fpm.service loaded active running The PHP 7.3 FastCGI Process Manager
24a28,29
> postfix.service loaded active exited Postfix Mail Transport Agent
> postfix@-.service loaded active running Postfix Mail Transport Agent (instance -)
26a32
> redis-server.service loaded active running Advanced key-value store
29a36
> rtkit-daemon.service loaded active running RealtimeKit Scheduling Policy Service
32c39
< systemd-fsck@dev-disk-by\x2dpartuuid-3980a384\x2d01.service loaded active exited File System Check on /dev/disk/by-partuuid/3980a384-01
---
> systemd-fsck@dev-disk-by\x2dpartuuid-5f2de386\x2d01.service loaded active exited File System Check on /dev/disk/by-partuuid/5f2de386-01
49a57
> unattended-upgrades.service loaded active running Unattended Upgrades Shutdown
51d58
< user-runtime-dir@109.service loaded active exited User Runtime Directory /run/user/109
53d59
< user@109.service loaded active running User Manager for UID 109
cups kommt auf beiden vor. Ist es dann wohl eher nicht?
Fällt dir im diff was auf?
Zitatdem Zusammenhang über VNC Viewer z.Zt. abgeschaltet.
Du hast eine Grafische Oberfläche laufen?
Brauchst Du denn eine Druckersoftwate auf dem Pi? Deinstalliere cups doch einfach ... ich sehe ansonsten aktuell auch keinen Grund
Hi,
cups habe ich deinstalliert.
VNC Interface mittels raspi-config disabled.
reboot mit HMUART auf nextcloud raspi.
Problem besteht weiter. Schade. Versuch wars wert.
Danke erst mal.
Mal schauen, ob ich vielleicht was an nextcloud drehen kann.
auf dem nextcloud system läuft aber auch PiOs? Hintergrund meiner Frage: Unter ubuntu liegt die config woanders, eine "/boot/config.txt" wirkt dort nicht.
Hi,
ich habe zu erst Pi OS mittels PI imager auf SD card kopiert.
Dann frisch gebootet, updatet, etc.
Dann nextcloudPi downloaded und installiert.
Dann die Wikis wegen HMUART abgearbeitet.
Server oder Desktop?
was ist eigentlich "hmlangw.service"?
Hi,
- der hmlangw.service startet gemäß HM-MOD-RPI-PCB Wiki den socat.
- PiOS ist die full Desktop Version.
Uups,
Etwas vielleicht wesentliches habe ich bisher vergessen.
Ich boote den nextcloud raspi4 nicht von der SD card sondern von einer externen SSD am USB Eingang.
Server und Desktop ... nicht schön ...
Läuft überhaupt der socat?
ps aux | grep [s]ocat
hi,
auf nextcloud raspi:
ps aux | grep ocat
root 468 0.0 0.0 5624 1184 ? Ss 17:28 0:00 /usr/bin/socat TCP4-LISTEN:2020,fork,reuseaddr /dev/ttyAMA0,raw,echo=0,b115200
root 1661 0.0 0.0 5624 272 ? S 17:30 0:00 /usr/bin/socat TCP4-LISTEN:2020,fork,reuseaddr /dev/ttyAMA0,raw,echo=0,b115200
netstat -anp | grep 2020
tcp 0 0 0.0.0.0:2020 0.0.0.0:* LISTEN -
tcp 0 0 192.....33:2020 192.....21:60432 VERBUNDEN -
auf fhem raspi:
list XX_HMUART2
Internals:
CFGFN ./FHEM/MyHmIO.cfg
CNT 1
Clients :CUL_HM:
DEF uart://192.....33:2020
DevState 1
DevType UART
DeviceName 192.....33:2020
FD 49
FUUID 61530270-f33f-9dc6-e0f1-b9ad791eb8c812da
LastOpen 1633361613.79163
NAME XX_HMUART2
NOTIFYDEV global
NR 452
NTFY_ORDER 50-XX_HMUART2
PARTIAL
RAWMSG 040200
RSSI -77
STATE opened
TYPE HMUARTLGW
XmitOpen 0
model HM-MOD-UART
owner_CCU XX_VCCU
.....
Läuft das mit dem socat auf dem nextcloud Raspi zweimal? ::)
Hi,
sieht in der Tat komisch aus, scheint aber richtig zu sein.
Hier die Varianter auf dem raspi, bei dem die Verbindung klappt:
root 405 0.0 0.1 5624 1116 ? Ss 18:39 0:00 /usr/bin/socat TCP4-LISTEN:2020,fork,reuseaddr /dev/ttyAMA0,raw,echo=0,b115200
root 824 0.0 0.0 5624 268 ? S 18:48 0:01 /usr/bin/socat TCP4-LISTEN:2020,fork,reuseaddr /dev/ttyAMA0,raw,echo=0,b115200
Hast Du eventuell eine Firewall installiert?
Guten Morgen,
Persönlich habe ich keine Firewall installiert.
Keine Ahnung, ob nextcloud eine mitbringt???
Mein nächster Plan ist es, mal zu sehen, ob socat Debugmöglickeiten hat.
Vielleicht bekomme ich heraus, ob das Problem eher auf der LAN Seite oder auf der seriellen Seite liegt.
Mal noch ne andere Idee: mal mit ser2net probieren? Ich habe immer Schwierigkeiten mit socat gehabt auch jetzt aktuell wieder bei einem Versuch
https://wiki.fhem.de/wiki/HM-MOD-RPI-PCB_HomeMatic_Funkmodul_f%C3%BCr_Raspberry_Pi#Anbindung_.C3.BCber_das_Netzwerk
Hi,
den ser2net Versuch habe ich auf dem nextcloud raspi schon hinter mir bevor ich diesen Thread anfing.
Hat nicht funktioniert.
Leider.
Auf dem reserve raspi habe ich das nicht probiert, da es mit sokat funktionierte.
Ich glaube nicht an eine Firewall aber Du kannst ja mal eine Verbindung auf dem Port daneben testen:
Auf dem nextcloud Pi
nc -l 4001
auf deinem FHEM Pi
nc 4001
Dann solltest Du auf dem FHEM pi weiter text eingeben können, der Zeilenweise (enter) auf dem anderen pi in der Konsole erscheint. Die Verbindung sollte stabil bleiben, bis man sie mit ctrl+c beendet.
Danke für den Tip.
Ich habe inzwischen mit socat gespielt.
Ich habe den hmlangw Dienst gestopt und socat mit debug options per Hand gestartet.
Dann auf dem FHEM raspi ein
set XX_HMUART2 open
gemacht.
Eine Weile später dann wieder das close.
Der socat auf dem nextcloud raspi reagiert sofort mit folgendem Trace:
/usr/bin/socat -d -d -d TCP4-LISTEN:2020,fork,reuseaddr /dev/ttyAMA0,raw,echo=0,b115200
2021/10/05 11:56:08 socat[1744] I socat by Gerhard Rieger and contributors - see www.dest-unreach.org
2021/10/05 11:56:08 socat[1744] I This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/)
2021/10/05 11:56:08 socat[1744] I This product includes software written by Tim Hudson (tjh@cryptsoft.com)
2021/10/05 11:56:08 socat[1744] I setting option "fork" to 1
2021/10/05 11:56:08 socat[1744] I setting option "so-reuseaddr" to 1
2021/10/05 11:56:08 socat[1744] I socket(2, 1, 6) -> 5
2021/10/05 11:56:08 socat[1744] I starting accept loop
2021/10/05 11:56:08 socat[1744] N listening on AF=2 0.0.0.0:2020
2021/10/05 11:56:18 socat[1744] I accept(5, {2, AF=2 192.....21:54738}, 16) -> 6
2021/10/05 11:56:18 socat[1744] N accepting connection from AF=2 192.....21:54738 on AF=2 192.....33:2020
2021/10/05 11:56:18 socat[1744] I permitting connection from AF=2 192.....21:54738
2021/10/05 11:56:18 socat[1744] N forked off child process 1746
2021/10/05 11:56:18 socat[1744] I close(6)
2021/10/05 11:56:18 socat[1744] I still listening
2021/10/05 11:56:18 socat[1744] N listening on AF=2 0.0.0.0:2020
2021/10/05 11:56:18 socat[1746] I just born: child process 1746
2021/10/05 11:56:18 socat[1746] I just born: child process 1746
2021/10/05 11:56:18 socat[1746] I close(5)
2021/10/05 11:56:18 socat[1746] I interpreting address "/dev/ttyAMA0" as file name
2021/10/05 11:56:18 socat[1746] I setting option "raw"
2021/10/05 11:56:18 socat[1746] I setting option "echo" to 0
2021/10/05 11:56:18 socat[1746] I setting option "b115200"
2021/10/05 11:56:18 socat[1746] I "/dev/ttyAMA0" is not a socket, open()'ing it
2021/10/05 11:56:18 socat[1746] N opening character device "/dev/ttyAMA0" for reading and writing
2021/10/05 11:56:18 socat[1746] I open("/dev/ttyAMA0", 02002, 0666) -> 5
2021/10/05 11:56:18 socat[1746] I resolved and opened all sock addresses
2021/10/05 11:56:18 socat[1746] N starting data transfer loop with FDs [6,6] and [5,5]
2021/10/05 11:56:19 socat[1746] I transferred 8 bytes from 6 to 5
2021/10/05 11:56:22 socat[1746] I transferred 8 bytes from 6 to 5
2021/10/05 11:56:25 socat[1746] I transferred 8 bytes from 6 to 5
2021/10/05 11:56:28 socat[1746] I transferred 8 bytes from 6 to 5
2021/10/05 11:56:31 socat[1746] N socket 1 (fd 6) is at EOF
2021/10/05 11:56:31 socat[1744] I accept(5, {2, AF=2 192.....21:54748}, 16) -> 6
2021/10/05 11:56:31 socat[1744] N accepting connection from AF=2 192.....21:54748 on AF=2 192.....33:2020
2021/10/05 11:56:31 socat[1744] I permitting connection from AF=2 192.....21:54748
2021/10/05 11:56:31 socat[1744] N forked off child process 1747
2021/10/05 11:56:31 socat[1744] I close(6)
2021/10/05 11:56:31 socat[1744] I still listening
2021/10/05 11:56:31 socat[1744] N listening on AF=2 0.0.0.0:2020
2021/10/05 11:56:31 socat[1747] I just born: child process 1747
2021/10/05 11:56:31 socat[1747] I just born: child process 1747
2021/10/05 11:56:31 socat[1747] I close(5)
2021/10/05 11:56:31 socat[1747] I interpreting address "/dev/ttyAMA0" as file name
2021/10/05 11:56:31 socat[1747] I setting option "raw"
2021/10/05 11:56:31 socat[1747] I setting option "echo" to 0
2021/10/05 11:56:31 socat[1747] I setting option "b115200"
2021/10/05 11:56:31 socat[1747] I "/dev/ttyAMA0" is not a socket, open()'ing it
2021/10/05 11:56:31 socat[1747] N opening character device "/dev/ttyAMA0" for reading and writing
2021/10/05 11:56:31 socat[1747] I open("/dev/ttyAMA0", 02002, 0666) -> 5
2021/10/05 11:56:31 socat[1747] I resolved and opened all sock addresses
2021/10/05 11:56:31 socat[1747] N starting data transfer loop with FDs [6,6] and [5,5]
2021/10/05 11:56:31 socat[1746] I poll timed out (no data within 0.500000 seconds)
2021/10/05 11:56:31 socat[1746] I shutdown(6, 2)
2021/10/05 11:56:31 socat[1746] N exiting with status 0
2021/10/05 11:56:31 socat[1744] N childdied(): handling signal 17
2021/10/05 11:56:31 socat[1744] I childdied(signum=17)
2021/10/05 11:56:31 socat[1744] I childdied(17): cannot identify child 1746
2021/10/05 11:56:31 socat[1744] I waitpid(): child 1746 exited with status 0
2021/10/05 11:56:31 socat[1744] I waitpid(-1, {}, WNOHANG): no child has exited
2021/10/05 11:56:31 socat[1744] I childdied() finished
2021/10/05 11:56:32 socat[1747] I transferred 8 bytes from 6 to 5
2021/10/05 11:56:35 socat[1747] I transferred 8 bytes from 6 to 5
2021/10/05 11:56:38 socat[1747] I transferred 8 bytes from 6 to 5
2021/10/05 11:56:41 socat[1747] I transferred 8 bytes from 6 to 5
2021/10/05 11:56:44 socat[1747] N socket 1 (fd 6) is at EOF
2021/10/05 11:56:44 socat[1744] I accept(5, {2, AF=2 192.....21:54754}, 16) -> 6
2021/10/05 11:56:44 socat[1744] N accepting connection from AF=2 192.....21:54754 on AF=2 192.....33:2020
2021/10/05 11:56:44 socat[1744] I permitting connection from AF=2 192.....21:54754
2021/10/05 11:56:44 socat[1744] N forked off child process 1749
2021/10/05 11:56:44 socat[1744] I close(6)
2021/10/05 11:56:44 socat[1744] I still listening
2021/10/05 11:56:44 socat[1744] N listening on AF=2 0.0.0.0:2020
2021/10/05 11:56:44 socat[1749] I just born: child process 1749
2021/10/05 11:56:44 socat[1749] I just born: child process 1749
2021/10/05 11:56:44 socat[1749] I close(5)
2021/10/05 11:56:44 socat[1749] I interpreting address "/dev/ttyAMA0" as file name
2021/10/05 11:56:44 socat[1749] I setting option "raw"
2021/10/05 11:56:44 socat[1749] I setting option "echo" to 0
2021/10/05 11:56:44 socat[1749] I setting option "b115200"
2021/10/05 11:56:44 socat[1749] I "/dev/ttyAMA0" is not a socket, open()'ing it
2021/10/05 11:56:44 socat[1749] N opening character device "/dev/ttyAMA0" for reading and writing
2021/10/05 11:56:44 socat[1749] I open("/dev/ttyAMA0", 02002, 0666) -> 5
2021/10/05 11:56:44 socat[1749] I resolved and opened all sock addresses
2021/10/05 11:56:44 socat[1749] N starting data transfer loop with FDs [6,6] and [5,5]
2021/10/05 11:56:44 socat[1747] I poll timed out (no data within 0.500000 seconds)
2021/10/05 11:56:44 socat[1747] I shutdown(6, 2)
2021/10/05 11:56:44 socat[1747] N exiting with status 0
2021/10/05 11:56:44 socat[1744] N childdied(): handling signal 17
2021/10/05 11:56:44 socat[1744] I childdied(signum=17)
2021/10/05 11:56:44 socat[1744] I childdied(17): cannot identify child 1747
2021/10/05 11:56:44 socat[1744] I waitpid(): child 1747 exited with status 0
2021/10/05 11:56:44 socat[1744] I waitpid(-1, {}, WNOHANG): no child has exited
2021/10/05 11:56:44 socat[1744] I childdied() finished
2021/10/05 11:56:45 socat[1749] I transferred 8 bytes from 6 to 5
2021/10/05 11:56:48 socat[1749] I transferred 8 bytes from 6 to 5
2021/10/05 11:56:51 socat[1749] I transferred 8 bytes from 6 to 5
2021/10/05 11:56:54 socat[1749] I transferred 8 bytes from 6 to 5
2021/10/05 11:56:57 socat[1749] N socket 1 (fd 6) is at EOF
2021/10/05 11:56:57 socat[1744] I accept(5, {2, AF=2 192.....21:54760}, 16) -> 6
2021/10/05 11:56:57 socat[1744] N accepting connection from AF=2 192.....21:54760 on AF=2 192.....33:2020
2021/10/05 11:56:57 socat[1744] I permitting connection from AF=2 192.....21:54760
2021/10/05 11:56:57 socat[1744] N forked off child process 1750
2021/10/05 11:56:57 socat[1744] I close(6)
2021/10/05 11:56:57 socat[1744] I still listening
2021/10/05 11:56:57 socat[1744] N listening on AF=2 0.0.0.0:2020
2021/10/05 11:56:57 socat[1750] I just born: child process 1750
2021/10/05 11:56:57 socat[1750] I just born: child process 1750
2021/10/05 11:56:57 socat[1750] I close(5)
2021/10/05 11:56:57 socat[1750] I interpreting address "/dev/ttyAMA0" as file name
2021/10/05 11:56:57 socat[1750] I setting option "raw"
2021/10/05 11:56:57 socat[1750] I setting option "echo" to 0
2021/10/05 11:56:57 socat[1750] I setting option "b115200"
2021/10/05 11:56:57 socat[1750] I "/dev/ttyAMA0" is not a socket, open()'ing it
2021/10/05 11:56:57 socat[1750] N opening character device "/dev/ttyAMA0" for reading and writing
2021/10/05 11:56:57 socat[1750] I open("/dev/ttyAMA0", 02002, 0666) -> 5
2021/10/05 11:56:57 socat[1750] I resolved and opened all sock addresses
2021/10/05 11:56:57 socat[1750] N starting data transfer loop with FDs [6,6] and [5,5]
2021/10/05 11:56:57 socat[1749] I poll timed out (no data within 0.500000 seconds)
2021/10/05 11:56:57 socat[1749] I shutdown(6, 2)
2021/10/05 11:56:57 socat[1749] N exiting with status 0
2021/10/05 11:56:57 socat[1744] N childdied(): handling signal 17
2021/10/05 11:56:57 socat[1744] I childdied(signum=17)
2021/10/05 11:56:57 socat[1744] I childdied(17): cannot identify child 1749
2021/10/05 11:56:57 socat[1744] I waitpid(): child 1749 exited with status 0
2021/10/05 11:56:57 socat[1744] I waitpid(-1, {}, WNOHANG): no child has exited
2021/10/05 11:56:57 socat[1744] I childdied() finished
2021/10/05 11:56:58 socat[1750] I transferred 8 bytes from 6 to 5
2021/10/05 11:57:01 socat[1750] I transferred 8 bytes from 6 to 5
2021/10/05 11:57:04 socat[1750] I transferred 8 bytes from 6 to 5
2021/10/05 11:57:07 socat[1750] I transferred 8 bytes from 6 to 5
2021/10/05 11:57:10 socat[1750] N socket 1 (fd 6) is at EOF
2021/10/05 11:57:10 socat[1744] I accept(5, {2, AF=2 192.....21:54768}, 16) -> 6
2021/10/05 11:57:10 socat[1744] N accepting connection from AF=2 192.....21:54768 on AF=2 192.....33:2020
2021/10/05 11:57:10 socat[1744] I permitting connection from AF=2 192.....21:54768
2021/10/05 11:57:10 socat[1744] N forked off child process 1752
2021/10/05 11:57:10 socat[1744] I close(6)
2021/10/05 11:57:10 socat[1744] I still listening
2021/10/05 11:57:10 socat[1744] N listening on AF=2 0.0.0.0:2020
2021/10/05 11:57:10 socat[1752] I just born: child process 1752
2021/10/05 11:57:10 socat[1752] I just born: child process 1752
2021/10/05 11:57:10 socat[1752] I close(5)
2021/10/05 11:57:10 socat[1752] I interpreting address "/dev/ttyAMA0" as file name
2021/10/05 11:57:10 socat[1752] I setting option "raw"
2021/10/05 11:57:10 socat[1752] I setting option "echo" to 0
2021/10/05 11:57:10 socat[1752] I setting option "b115200"
2021/10/05 11:57:10 socat[1752] I "/dev/ttyAMA0" is not a socket, open()'ing it
2021/10/05 11:57:10 socat[1752] N opening character device "/dev/ttyAMA0" for reading and writing
2021/10/05 11:57:10 socat[1752] I open("/dev/ttyAMA0", 02002, 0666) -> 5
2021/10/05 11:57:10 socat[1752] I resolved and opened all sock addresses
2021/10/05 11:57:10 socat[1752] N starting data transfer loop with FDs [6,6] and [5,5]
2021/10/05 11:57:10 socat[1750] I poll timed out (no data within 0.500000 seconds)
2021/10/05 11:57:10 socat[1750] I shutdown(6, 2)
2021/10/05 11:57:10 socat[1750] N exiting with status 0
2021/10/05 11:57:10 socat[1744] N childdied(): handling signal 17
2021/10/05 11:57:10 socat[1744] I childdied(signum=17)
2021/10/05 11:57:10 socat[1744] I childdied(17): cannot identify child 1750
2021/10/05 11:57:10 socat[1744] I waitpid(): child 1750 exited with status 0
2021/10/05 11:57:10 socat[1744] I waitpid(-1, {}, WNOHANG): no child has exited
2021/10/05 11:57:10 socat[1744] I childdied() finished
2021/10/05 11:57:11 socat[1752] I transferred 8 bytes from 6 to 5
2021/10/05 11:57:14 socat[1752] I transferred 8 bytes from 6 to 5
2021/10/05 11:57:17 socat[1752] I transferred 8 bytes from 6 to 5
2021/10/05 11:57:19 socat[1752] N socket 1 (fd 6) is at EOF
2021/10/05 11:57:20 socat[1752] I poll timed out (no data within 0.500000 seconds)
2021/10/05 11:57:20 socat[1752] I shutdown(6, 2)
2021/10/05 11:57:20 socat[1752] N exiting with status 0
2021/10/05 11:57:20 socat[1744] N childdied(): handling signal 17
2021/10/05 11:57:20 socat[1744] I childdied(signum=17)
2021/10/05 11:57:20 socat[1744] I childdied(17): cannot identify child 1752
2021/10/05 11:57:20 socat[1744] I waitpid(): child 1752 exited with status 0
2021/10/05 11:57:20 socat[1744] I waitpid(-1, {}, WNOHANG): No child processes
2021/10/05 11:57:20 socat[1744] I childdied() finished
^C2021/10/05 11:57:26 socat[1744] N socat_signal(): handling signal 2
2021/10/05 11:57:26 socat[1744] N exiting on signal 2
2021/10/05 11:57:26 socat[1744] N socat_signal(): finishing signal 2
2021/10/05 11:57:26 socat[1744] N exit(130)
Damit klappt zumindest die LAN Verbindung in einer Richtung.
Aber /dev/ttyAMA0 scheint Probleme zu machen.
Kann jemand das interpretieren?
Mit welchem User startest Du socat?
Hi,
1. Der nc Test funktioniert
2. Als user pi
Zitat von: Wernieman am 05 Oktober 2021, 12:32:19
Mit welchem User startest Du socat?
Du startest ev. systemctl mit user pi und sudo aber der Dienst läuft ja mit root (siehe Ausgabe oben) - oder geht es um den Test in #21?
Es ging mir um die Interpretation des letzten Test .. also ja #21
Hi,
der Dienst wird doch normalerweise beim booten gestartet, also doch als root.
Ich habe jetzt meinen Trace ebenfalls als root nach
sudo su
wiederholt. Zusätzlich noch die -x option gesetzt:
root@raspicloud3:/home/pi# /usr/bin/socat -d -d -d -x TCP4-LISTEN:2020,fork,reuseaddr /dev/ttyAMA0,raw,echo=0,b115200 2>&1
2021/10/05 13:24:59 socat[2816] I socat by Gerhard Rieger and contributors - see www.dest-unreach.org
2021/10/05 13:24:59 socat[2816] I This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/)
2021/10/05 13:24:59 socat[2816] I This product includes software written by Tim Hudson (tjh@cryptsoft.com)
2021/10/05 13:24:59 socat[2816] I setting option "fork" to 1
2021/10/05 13:24:59 socat[2816] I setting option "so-reuseaddr" to 1
2021/10/05 13:24:59 socat[2816] I socket(2, 1, 6) -> 5
2021/10/05 13:24:59 socat[2816] I starting accept loop
2021/10/05 13:24:59 socat[2816] N listening on AF=2 0.0.0.0:2020
2021/10/05 13:25:21 socat[2816] I accept(5, {2, AF=2 192. ... .21:57362}, 16) -> 6
2021/10/05 13:25:21 socat[2816] N accepting connection from AF=2 192. ... .21:57362 on AF=2 192. ... .33:2020
2021/10/05 13:25:21 socat[2816] I permitting connection from AF=2 192. ... .21:57362
2021/10/05 13:25:21 socat[2816] N forked off child process 2820
2021/10/05 13:25:21 socat[2816] I close(6)
2021/10/05 13:25:21 socat[2816] I still listening
2021/10/05 13:25:21 socat[2816] N listening on AF=2 0.0.0.0:2020
2021/10/05 13:25:21 socat[2820] I just born: child process 2820
2021/10/05 13:25:21 socat[2820] I just born: child process 2820
2021/10/05 13:25:21 socat[2820] I close(5)
2021/10/05 13:25:21 socat[2820] I interpreting address "/dev/ttyAMA0" as file name
2021/10/05 13:25:21 socat[2820] I setting option "raw"
2021/10/05 13:25:21 socat[2820] I setting option "echo" to 0
2021/10/05 13:25:21 socat[2820] I setting option "b115200"
2021/10/05 13:25:21 socat[2820] I "/dev/ttyAMA0" is not a socket, open()'ing it
2021/10/05 13:25:21 socat[2820] N opening character device "/dev/ttyAMA0" for reading and writing
2021/10/05 13:25:21 socat[2820] I open("/dev/ttyAMA0", 02002, 0666) -> 5
2021/10/05 13:25:21 socat[2820] I resolved and opened all sock addresses
2021/10/05 13:25:21 socat[2820] N starting data transfer loop with FDs [6,6] and [5,5]
> 2021/10/05 13:25:22.452023 length=8 from=0 to=7
fd 00 03 00 01 00 9e 03
2021/10/05 13:25:22 socat[2820] I transferred 8 bytes from 6 to 5
> 2021/10/05 13:25:25.453357 length=8 from=8 to=15
fd 00 03 00 01 00 9e 03
2021/10/05 13:25:25 socat[2820] I transferred 8 bytes from 6 to 5
> 2021/10/05 13:25:28.458246 length=8 from=16 to=23
fd 00 03 00 01 00 9e 03
2021/10/05 13:25:28 socat[2820] I transferred 8 bytes from 6 to 5
> 2021/10/05 13:25:31.464128 length=8 from=24 to=31
fd 00 03 00 01 00 9e 03
2021/10/05 13:25:31 socat[2820] I transferred 8 bytes from 6 to 5
2021/10/05 13:25:34 socat[2820] N socket 1 (fd 6) is at EOF
2021/10/05 13:25:34 socat[2816] I accept(5, {2, AF=2 192. ... .21:57370}, 16) -> 6
2021/10/05 13:25:34 socat[2816] N accepting connection from AF=2 192. ... .21:57370 on AF=2 192. ... .33:2020
2021/10/05 13:25:34 socat[2816] I permitting connection from AF=2 192. ... .21:57370
2021/10/05 13:25:34 socat[2816] N forked off child process 2821
2021/10/05 13:25:34 socat[2816] I close(6)
2021/10/05 13:25:34 socat[2816] I still listening
2021/10/05 13:25:34 socat[2816] N listening on AF=2 0.0.0.0:2020
2021/10/05 13:25:34 socat[2821] I just born: child process 2821
2021/10/05 13:25:34 socat[2821] I just born: child process 2821
2021/10/05 13:25:34 socat[2821] I close(5)
2021/10/05 13:25:34 socat[2821] I interpreting address "/dev/ttyAMA0" as file name
2021/10/05 13:25:34 socat[2821] I setting option "raw"
2021/10/05 13:25:34 socat[2821] I setting option "echo" to 0
2021/10/05 13:25:34 socat[2821] I setting option "b115200"
2021/10/05 13:25:34 socat[2821] I "/dev/ttyAMA0" is not a socket, open()'ing it
2021/10/05 13:25:34 socat[2821] N opening character device "/dev/ttyAMA0" for reading and writing
2021/10/05 13:25:34 socat[2821] I open("/dev/ttyAMA0", 02002, 0666) -> 5
2021/10/05 13:25:34 socat[2821] I resolved and opened all sock addresses
2021/10/05 13:25:34 socat[2821] N starting data transfer loop with FDs [6,6] and [5,5]
2021/10/05 13:25:34 socat[2820] I poll timed out (no data within 0.500000 seconds)
2021/10/05 13:25:34 socat[2820] I shutdown(6, 2)
2021/10/05 13:25:34 socat[2820] N exiting with status 0
2021/10/05 13:25:34 socat[2816] N childdied(): handling signal 17
2021/10/05 13:25:34 socat[2816] I childdied(signum=17)
2021/10/05 13:25:34 socat[2816] I childdied(17): cannot identify child 2820
2021/10/05 13:25:34 socat[2816] I waitpid(): child 2820 exited with status 0
2021/10/05 13:25:34 socat[2816] I waitpid(-1, {}, WNOHANG): no child has exited
2021/10/05 13:25:34 socat[2816] I childdied() finished
> 2021/10/05 13:25:35.481998 length=8 from=0 to=7
fd 00 03 00 01 00 9e 03
2021/10/05 13:25:35 socat[2821] I transferred 8 bytes from 6 to 5
> 2021/10/05 13:25:38.486884 length=8 from=8 to=15
fd 00 03 00 01 00 9e 03
2021/10/05 13:25:38 socat[2821] I transferred 8 bytes from 6 to 5
> 2021/10/05 13:25:41.493071 length=8 from=16 to=23
fd 00 03 00 01 00 9e 03
2021/10/05 13:25:41 socat[2821] I transferred 8 bytes from 6 to 5
> 2021/10/05 13:25:44.496153 length=8 from=24 to=31
fd 00 03 00 01 00 9e 03
2021/10/05 13:25:44 socat[2821] I transferred 8 bytes from 6 to 5
2021/10/05 13:25:47 socat[2821] N socket 1 (fd 6) is at EOF
2021/10/05 13:25:47 socat[2816] I accept(5, {2, AF=2 192. ... .21:57376}, 16) -> 6
2021/10/05 13:25:47 socat[2816] N accepting connection from AF=2 192. ... .21:57376 on AF=2 192. ... .33:2020
2021/10/05 13:25:47 socat[2816] I permitting connection from AF=2 192. ... .21:57376
2021/10/05 13:25:47 socat[2816] N forked off child process 2823
2021/10/05 13:25:47 socat[2816] I close(6)
2021/10/05 13:25:47 socat[2816] I still listening
2021/10/05 13:25:47 socat[2816] N listening on AF=2 0.0.0.0:2020
2021/10/05 13:25:47 socat[2823] I just born: child process 2823
2021/10/05 13:25:47 socat[2823] I just born: child process 2823
2021/10/05 13:25:47 socat[2823] I close(5)
2021/10/05 13:25:47 socat[2823] I interpreting address "/dev/ttyAMA0" as file name
2021/10/05 13:25:47 socat[2823] I setting option "raw"
2021/10/05 13:25:47 socat[2823] I setting option "echo" to 0
2021/10/05 13:25:47 socat[2823] I setting option "b115200"
2021/10/05 13:25:47 socat[2823] I "/dev/ttyAMA0" is not a socket, open()'ing it
2021/10/05 13:25:47 socat[2823] N opening character device "/dev/ttyAMA0" for reading and writing
2021/10/05 13:25:47 socat[2823] I open("/dev/ttyAMA0", 02002, 0666) -> 5
2021/10/05 13:25:47 socat[2823] I resolved and opened all sock addresses
2021/10/05 13:25:47 socat[2823] N starting data transfer loop with FDs [6,6] and [5,5]
2021/10/05 13:25:48 socat[2821] I poll timed out (no data within 0.500000 seconds)
2021/10/05 13:25:48 socat[2821] I shutdown(6, 2)
2021/10/05 13:25:48 socat[2821] N exiting with status 0
2021/10/05 13:25:48 socat[2816] N childdied(): handling signal 17
2021/10/05 13:25:48 socat[2816] I childdied(signum=17)
2021/10/05 13:25:48 socat[2816] I childdied(17): cannot identify child 2821
2021/10/05 13:25:48 socat[2816] I waitpid(): child 2821 exited with status 0
2021/10/05 13:25:48 socat[2816] I waitpid(-1, {}, WNOHANG): no child has exited
2021/10/05 13:25:48 socat[2816] I childdied() finished
> 2021/10/05 13:25:48.523764 length=8 from=0 to=7
fd 00 03 00 01 00 9e 03
2021/10/05 13:25:48 socat[2823] I transferred 8 bytes from 6 to 5
2021/10/05 13:25:50 socat[2823] N socket 1 (fd 6) is at EOF
2021/10/05 13:25:50 socat[2823] I poll timed out (no data within 0.500000 seconds)
2021/10/05 13:25:50 socat[2823] I shutdown(6, 2)
2021/10/05 13:25:50 socat[2823] N exiting with status 0
2021/10/05 13:25:50 socat[2816] N childdied(): handling signal 17
2021/10/05 13:25:50 socat[2816] I childdied(signum=17)
2021/10/05 13:25:50 socat[2816] I childdied(17): cannot identify child 2823
2021/10/05 13:25:50 socat[2816] I waitpid(): child 2823 exited with status 0
2021/10/05 13:25:50 socat[2816] I waitpid(-1, {}, WNOHANG): No child processes
2021/10/05 13:25:50 socat[2816] I childdied() finished
Sieht gleich aus.
Die empfangenen Daten stimmen meiner Erinnerung nach laut verbose=5 mit den vom FHEM raspi gesendeten überein.
Es wird aber nichts zurück gesendet!!
Hi,
Als Vergleich, so sieht das auf dem funktionierenden testraspi aus:
root@testraspi:/home/pi# /usr/bin/socat -d -d -d -x TCP4-LISTEN:2020,fork,reuseaddr /dev/ttyAMA0,raw,echo=0,b115200 2>&1
2021/10/05 13:56:03 socat[861] I socat by Gerhard Rieger and contributors - see www.dest-unreach.org
2021/10/05 13:56:03 socat[861] I This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/)
2021/10/05 13:56:03 socat[861] I This product includes software written by Tim Hudson (tjh@cryptsoft.com)
2021/10/05 13:56:03 socat[861] I setting option "fork" to 1
2021/10/05 13:56:03 socat[861] I setting option "so-reuseaddr" to 1
2021/10/05 13:56:03 socat[861] I socket(2, 1, 6) -> 5
2021/10/05 13:56:03 socat[861] I starting accept loop
2021/10/05 13:56:03 socat[861] N listening on AF=2 0.0.0.0:2020
2021/10/05 13:56:21 socat[861] I accept(5, {2, AF=2 192. ... .21:53188}, 16) -> 6
2021/10/05 13:56:21 socat[861] N accepting connection from AF=2 192. ... .21:53188 on AF=2 192. ... .40:2020
2021/10/05 13:56:21 socat[861] I permitting connection from AF=2 192. ... .21:53188
2021/10/05 13:56:21 socat[861] N forked off child process 862
2021/10/05 13:56:21 socat[861] I close(6)
2021/10/05 13:56:21 socat[861] I still listening
2021/10/05 13:56:21 socat[861] N listening on AF=2 0.0.0.0:2020
2021/10/05 13:56:21 socat[862] I just born: child process 862
2021/10/05 13:56:21 socat[862] I just born: child process 862
2021/10/05 13:56:21 socat[862] I close(5)
2021/10/05 13:56:21 socat[862] I interpreting address "/dev/ttyAMA0" as file name
2021/10/05 13:56:21 socat[862] I setting option "raw"
2021/10/05 13:56:21 socat[862] I setting option "echo" to 0
2021/10/05 13:56:21 socat[862] I setting option "b115200"
2021/10/05 13:56:21 socat[862] I "/dev/ttyAMA0" is not a socket, open()'ing it
2021/10/05 13:56:21 socat[862] N opening character device "/dev/ttyAMA0" for reading and writing
2021/10/05 13:56:21 socat[862] I open("/dev/ttyAMA0", 02002, 0666) -> 5
2021/10/05 13:56:21 socat[862] I resolved and opened all sock addresses
2021/10/05 13:56:21 socat[862] N starting data transfer loop with FDs [6,6] and [5,5]
> 2021/10/05 13:56:22.033217 length=8 from=0 to=7
fd 00 03 00 01 00 9e 03
2021/10/05 13:56:22 socat[862] I transferred 8 bytes from 6 to 5
< 2021/10/05 13:56:22.035255 length=8 from=0 to=7
fd 00 0d 00 01 04 02 43
2021/10/05 13:56:22 socat[862] I transferred 8 bytes from 5 to 6
< 2021/10/05 13:56:22.035937 length=8 from=8 to=15
6f 5f 43 50 55 5f 42 4c
2021/10/05 13:56:22 socat[862] I transferred 8 bytes from 5 to 6
< 2021/10/05 13:56:22.036403 length=2 from=16 to=17
7f 7b
2021/10/05 13:56:22 socat[862] I transferred 2 bytes from 5 to 6
> 2021/10/05 13:56:22.053085 length=8 from=8 to=15
fd 00 03 00 02 03 94 09
2021/10/05 13:56:22 socat[862] I transferred 8 bytes from 6 to 5
< 2021/10/05 13:56:22.479686 length=8 from=18 to=25
fd 00 04 00 02 04 01 19
2021/10/05 13:56:22 socat[862] I transferred 8 bytes from 5 to 6
< 2021/10/05 13:56:22.480247 length=1 from=26 to=26
16
2021/10/05 13:56:22 socat[862] I transferred 1 bytes from 5 to 6
< 2021/10/05 13:56:22.491973 length=8 from=27 to=34
fd 00 0d 00 00 00 43 6f
2021/10/05 13:56:22 socat[862] I transferred 8 bytes from 5 to 6
00 00 80 14 c5 00 00 00
......
2021/10/05 13:56:31 socat[862] I transferred 8 bytes from 5 to 6
< 2021/10/05 13:56:31.779216 length=7 from=544 to=550
00 00 08 eb 02 dc 3b
2021/10/05 13:56:31 socat[862] I transferred 7 bytes from 5 to 6
> 2021/10/05 13:56:40.812263 length=8 from=462 to=469
fd 00 03 00 26 08 cc 30
2021/10/05 13:56:40 socat[862] I transferred 8 bytes from 6 to 5
< 2021/10/05 13:56:40.814834 length=8 from=551 to=558
fd 00 05 00 26 04 02 00
2021/10/05 13:56:40 socat[862] I transferred 8 bytes from 5 to 6
< 2021/10/05 13:56:40.815324 length=2 from=559 to=560
34 59
2021/10/05 13:56:40 socat[862] I transferred 2 bytes from 5 to 6
> 2021/10/05 13:56:40.816492 length=8 from=470 to=477
fd 00 03 00 27 03 ca 0a
2021/10/05 13:56:40 socat[862] I transferred 8 bytes from 6 to 5
2021/10/05 13:56:40 socat[862] W read(6, 0x1969cd8, 8192): Connection reset by peer
2021/10/05 13:56:40 socat[862] N socket 1 to socket 2 is in error
2021/10/05 13:56:40 socat[862] N socket 1 (fd 6) is at EOF
< 2021/10/05 13:56:40.818803 length=8 from=561 to=568
fd 00 04 00 27 04 01 9b
2021/10/05 13:56:40 socat[862] E write(6, 0x1969cd8, 8): Broken pipe
2021/10/05 13:56:40 socat[862] N exit(1)
2021/10/05 13:56:40 socat[862] I shutdown(6, 2)
2021/10/05 13:56:40 socat[862] I shutdown(6, 2): Transport endpoint is not connected
2021/10/05 13:56:40 socat[861] N childdied(): handling signal 17
2021/10/05 13:56:40 socat[861] I childdied(signum=17)
2021/10/05 13:56:40 socat[861] I childdied(17): cannot identify child 862
2021/10/05 13:56:40 socat[861] I waitpid(): child 862 exited with status 1
2021/10/05 13:56:40 socat[861] I waitpid(-1, {}, WNOHANG): No child processes
2021/10/05 13:56:40 socat[861] I childdied() finished
Außer dass er sendet, auch nicht anders. :-[
Hi,
Der Fehler ist gefunden.
Der nextcloud raspi telefoniert jetzt mit HMUART nach Hause.
In den raspi-config gibt es seit raspberry pi 4 einen Eintrag
raspi-config>Performance Options>Fan>Would you like to enable fan temperature control?
Der muss auf Nein stehen.
Aus historischen Gründen hatte ich den bei mir gesetzt, weil mein raspi mit Lüfter geliefert wurde.
Der dazu passenden raspi pin liegt im Bereich der pins des HMUART.
Ich danke euch allen für die Mühe, die ihr mit mir hattet.
"Wer den Fehler nicht findet, sucht an der falschen Stelle"
hat sich wieder mal bewahrheitet.
Naja .. wollte Dich gerade darauf Hinweisen, das sie eben NICHT gleich sein ...
2021/10/05 13:25:34 socat[2821] N starting data transfer loop with FDs [6,6] and [5,5]
2021/10/05 13:25:34 socat[2820] I poll timed out (no data within 0.500000 seconds)
2021/10/05 13:25:34 socat[2820] I shutdown(6, 2)
2021/10/05 13:25:34 socat[2820] N exiting with status 0
Da dürfte ein andere Programm reinschnippen .. was Du eben auch gefunden hast ;o)
Aber für die Zukunft:
Baue ein Server möglichst simpel auf und dazu gehört: keine grafische Oberfläche ...
Hi,
danke für die Lösung!
Ich habe mal auf die Schnelle den Lösungsbeitrag im Wiki verlinkt.
Mal schauen ob man das noch eleganter verhindern kann (config).
Gruß Otto
und die, die einen pi4 mit lüfter haben, können kein hmuart nutzen? oder wie ist das zu verstehen?
ist denn der gpio stecker vom lüfter belegt, so dass das dann
gleich auffällt?
lässt sich der lüfter pin nicht über ein spezielles overlay auf einen anderen pin legen?
Hi,
in der Tat muss man den Lüfterstecker abziehen, sonst kann man den HMUART nicht stecken.
Aber zusätzlich muss man auch dran denken, den config-Schalter zu löschen. :(
Den Lüfter hatte ich auch frühzeitig wieder entfernt. Der war bei mir überflüssig.
Im Gegensatz zum raspi-config kann man am Desktop Pendant unter
Einstellungen>Rasperry-Pi-Konfiguration>Leistung>Fan Temperature
auch die Temperatur einstellen, bei der der Lüfter loslegt.
Die habe ich aber mit FHEM nie erreicht.
Dummerweise liegt der "Fan"-Schalter in der config in der Gruppe "Performance" und nicht wie viele anderen unter "Interfaces".
Ist also leicht zu übersehen.
Zitatlässt sich der lüfter pin nicht über ein spezielles overlay auf einen anderen pin legen?
Kann ich nichts zu sagen.