NEWS
Kein Zugriff Adapter rpi2 auf gpio?
-
magst du (und andere auf Bookworm, aber gerne auch frühere, ob noch alles geht, wie es soll) mal 2.0.0-alpha.10 des Adapters installieren? Müsste manuell über admin oder mit dem Befehl
iob upgrade rpi2@2.0.0-alpha.10
möglich sein.Damit müsste output gpio gehen und mittlerweile auch wieder input. Was nicht geht (und ohne größeren Aufwand auch nicht zurück kommt), sind die button-Dinger... Und pull-up / pull-down und so Zeug lässt sich aktuell nicht konfigurieren... wird also leider ignoriert )
//Edit: ok, alpha 8 hatte noch Probleme. Ist jetzt alpha 10
-
@garfonso Output geht. Input bekomme ich nicht hin...Mit Raspi4.
-
@laser sagte in Kein Zugriff Adapter rpi2 auf gpio?:
Mit Raspi4.
...und welcher Version des Betriebssystems?
das ist das entscheidende! -
@homoran sagte in Kein Zugriff Adapter rpi2 auf gpio?:
cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=bookworm ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"
-
@laser danke!
war das noch alpha8 oder schon alpha10? -
@homoran Schon Alpha 10, sorry für Verspätung...
-
@laser
Hast du nen log? Am besten debug vom adapter start an. -
@garfonso Mache ich, sobald ich wieder am Raspi bin (heute Vormittag) Den Adapter auf Debug und den Eingang und Ausgang auslösen. Dann das Log vom rpi senden.
-
@Garfonso Ausschnitt aus dem Log:
2024-06-15 10:16:32.254 - debug: rpi2.0 (34773) ---> REGEXP: /SwapTotal:\s+(\d+)/m 2024-06-15 10:16:32.255 - debug: rpi2.0 (34773) GROUPS: 2 2024-06-15 10:16:32.255 - debug: rpi2.0 (34773) ---> POST: $1/1024 2024-06-15 10:16:32.255 - debug: rpi2.0 (34773) PARSING: swap_used 2024-06-15 10:16:32.255 - debug: rpi2.0 (34773) ---> cat /proc/meminfo 2024-06-15 10:16:32.261 - debug: rpi2.0 (34773) ------------- MemTotal: 1891264 kB MemFree: 300056 kB MemAvailable: 949440 kB Buffers: 96032 kB Cached: 586968 kB SwapCached: 0 kB Active: 1164600 kB Inactive: 323312 kB Active(anon): 806116 kB Inactive(anon): 0 kB Active(file): 358484 kB Inactive(file): 323312 kB Unevictable: 0 kB Mlocked: 0 kB SwapTotal: 204796 kB SwapFree: 204796 kB Zswap: 0 kB Zswapped: 0 kB Dirty: 40 kB Writeback: 0 kB AnonPages: 804876 kB Mapped: 149520 kB Shmem: 1204 kB KReclaimable: 33364 kB Slab: 57684 kB SReclaimable: 33364 kB SUnreclaim: 24320 kB KernelStack: 4260 kB PageTables: 5684 kB SecPageTables: 0 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 1150428 kB Committed_AS: 1356440 kB VmallocTotal: 257687552 kB VmallocUsed: 11944 kB VmallocChunk: 0 kB Percpu: 672 kB CmaTotal: 524288 kB CmaFree: 218828 kB 2024-06-15 10:16:32.262 - debug: rpi2.0 (34773) ---> REGEXP: /SwapFree:\s+(\d+)/m 2024-06-15 10:16:32.262 - debug: rpi2.0 (34773) GROUPS: 2 2024-06-15 10:16:32.262 - debug: rpi2.0 (34773) ---> POST: (rpi.swap_total - $1)/1024 2024-06-15 10:16:32.263 - debug: rpi2.0 (34773) PARSING: temperature 2024-06-15 10:16:32.263 - debug: rpi2.0 (34773) PARSING: soc_temp 2024-06-15 10:16:32.263 - debug: rpi2.0 (34773) ---> cat /sys/devices/virtual/thermal/thermal_zone0/temp 2024-06-15 10:16:32.269 - debug: rpi2.0 (34773) ------------- 49173 2024-06-15 10:16:32.270 - debug: rpi2.0 (34773) ---> REGEXP: /(.*)/ 2024-06-15 10:16:32.270 - debug: rpi2.0 (34773) GROUPS: 2 2024-06-15 10:16:32.270 - debug: rpi2.0 (34773) ---> POST: $1/1000 2024-06-15 10:16:32.271 - debug: rpi2.0 (34773) PARSING: uptime 2024-06-15 10:16:32.271 - debug: rpi2.0 (34773) PARSING: uptime 2024-06-15 10:16:32.271 - debug: rpi2.0 (34773) ---> cat /proc/uptime 2024-06-15 10:16:32.277 - debug: rpi2.0 (34773) ------------- 53828.16 210952.21 2024-06-15 10:16:32.277 - debug: rpi2.0 (34773) ---> REGEXP: /(^\S+)/ 2024-06-15 10:16:32.278 - debug: rpi2.0 (34773) GROUPS: 2 2024-06-15 10:16:32.278 - debug: rpi2.0 (34773) ---> POST: 2024-06-15 10:16:32.278 - debug: rpi2.0 (34773) PARSING: wlan 2024-06-15 10:16:32.278 - debug: rpi2.0 (34773) PARSING: wifi_received 2024-06-15 10:16:32.279 - debug: rpi2.0 (34773) ---> cat /sys/class/net/wl*/statistics/rx_bytes 2024-06-15 10:16:32.284 - debug: rpi2.0 (34773) ------------- 0 2024-06-15 10:16:32.285 - debug: rpi2.0 (34773) ---> REGEXP: /(.*)/ 2024-06-15 10:16:32.285 - debug: rpi2.0 (34773) GROUPS: 2 2024-06-15 10:16:32.285 - debug: rpi2.0 (34773) ---> POST: $1*-1 2024-06-15 10:16:32.285 - debug: rpi2.0 (34773) PARSING: wifi_send 2024-06-15 10:16:32.286 - debug: rpi2.0 (34773) ---> cat /sys/class/net/wl*/statistics/tx_bytes 2024-06-15 10:16:32.291 - debug: rpi2.0 (34773) ------------- 0 2024-06-15 10:16:32.292 - debug: rpi2.0 (34773) ---> REGEXP: /(.*)/ 2024-06-15 10:16:32.292 - debug: rpi2.0 (34773) GROUPS: 2 2024-06-15 10:16:32.292 - debug: rpi2.0 (34773) ---> POST: 2024-06-15 10:16:32.293 - debug: rpi2.0 (34773) CURRENT = cpu true 2024-06-15 10:16:32.293 - debug: rpi2.0 (34773) -1 2024-06-15 10:16:32.353 - debug: rpi2.0 (34773) ---> POST: $1/1000 for cpu_frequency in [object Object] 2024-06-15 10:16:32.354 - debug: rpi2.0 (34773) VALUE: 1800000 POST: $1/1000 2024-06-15 10:16:32.354 - debug: rpi2.0 (34773) SETSTATE FOR rpi2.0.cpu.cpu_frequency VALUE = 1800 2024-06-15 10:16:32.410 - debug: rpi2.0 (34773) ---> POST: for load1,load5,load15 in [object Object] 2024-06-15 10:16:32.411 - debug: rpi2.0 (34773) MATCHING: 0.09 2024-06-15 10:16:32.411 - debug: rpi2.0 (34773) NAME: load1 VALUE: 0.09 2024-06-15 10:16:32.411 - debug: rpi2.0 (34773) SETSTATE FOR rpi2.0.cpu.load1 VALUE = 0.09 2024-06-15 10:16:32.461 - debug: rpi2.0 (34773) MATCHING: 0.13 2024-06-15 10:16:32.461 - debug: rpi2.0 (34773) NAME: load5 VALUE: 0.13 2024-06-15 10:16:32.461 - debug: rpi2.0 (34773) SETSTATE FOR rpi2.0.cpu.load5 VALUE = 0.13 2024-06-15 10:16:32.513 - debug: rpi2.0 (34773) MATCHING: 0.07 2024-06-15 10:16:32.514 - debug: rpi2.0 (34773) NAME: load15 VALUE: 0.07 2024-06-15 10:16:32.514 - debug: rpi2.0 (34773) SETSTATE FOR rpi2.0.cpu.load15 VALUE = 0.07 2024-06-15 10:16:32.565 - debug: rpi2.0 (34773) ---> POST: for scaling_governor in [object Object] 2024-06-15 10:16:32.566 - debug: rpi2.0 (34773) SETSTATE FOR rpi2.0.cpu.scaling_governor VALUE = ondemand 2024-06-15 10:16:32.575 - debug: rpi2.0 (34773) CURRENT = raspberry false 2024-06-15 10:16:32.575 - debug: rpi2.0 (34773) -1 2024-06-15 10:16:32.575 - debug: rpi2.0 (34773) raspberry disabled -> clean up. 2024-06-15 10:16:32.576 - debug: rpi2.0 (34773) CURRENT = memory true 2024-06-15 10:16:32.576 - debug: rpi2.0 (34773) -1 2024-06-15 10:16:32.584 - debug: rpi2.0 (34773) ---> POST: $1/1024 for memory_total in [object Object] 2024-06-15 10:16:32.585 - debug: rpi2.0 (34773) VALUE: 1891264 POST: $1/1024 2024-06-15 10:16:32.585 - debug: rpi2.0 (34773) SETSTATE FOR rpi2.0.memory.memory_total VALUE = 1846.94 2024-06-15 10:16:32.637 - debug: rpi2.0 (34773) ---> POST: $1/1024 for memory_free in [object Object] 2024-06-15 10:16:32.637 - debug: rpi2.0 (34773) VALUE: 301320 POST: $1/1024 2024-06-15 10:16:32.638 - debug: rpi2.0 (34773) SETSTATE FOR rpi2.0.memory.memory_free VALUE = 294.26 2024-06-15 10:16:32.689 - debug: rpi2.0 (34773) ---> POST: $1/1024 for memory_available in [object Object] 2024-06-15 10:16:32.689 - debug: rpi2.0 (34773) VALUE: 950452 POST: $1/1024 2024-06-15 10:16:32.690 - debug: rpi2.0 (34773) SETSTATE FOR rpi2.0.memory.memory_available VALUE = 928.18 2024-06-15 10:16:32.741 - debug: rpi2.0 (34773) CURRENT = network true 2024-06-15 10:16:32.741 - debug: rpi2.0 (34773) -1 2024-06-15 10:16:32.749 - debug: rpi2.0 (34773) ---> POST: $1*-1 for net_received in [object Object] 2024-06-15 10:16:32.749 - debug: rpi2.0 (34773) VALUE: 14529676 POST: $1*-1 2024-06-15 10:16:32.750 - debug: rpi2.0 (34773) SETSTATE FOR rpi2.0.network.net_received VALUE = -14529676 2024-06-15 10:16:32.800 - debug: rpi2.0 (34773) ---> POST: for net_send in [object Object] 2024-06-15 10:16:32.801 - debug: rpi2.0 (34773) SETSTATE FOR rpi2.0.network.net_send VALUE = 22703087 2024-06-15 10:16:32.852 - debug: rpi2.0 (34773) CURRENT = sdcard true 2024-06-15 10:16:32.853 - debug: rpi2.0 (34773) -1 2024-06-15 10:16:32.860 - debug: rpi2.0 (34773) ---> POST: $1/1024 for sdcard_root_total in [object Object] 2024-06-15 10:16:32.860 - debug: rpi2.0 (34773) VALUE: 30139824 POST: $1/1024 2024-06-15 10:16:32.861 - debug: rpi2.0 (34773) SETSTATE FOR rpi2.0.sdcard.sdcard_root_total VALUE = 29433.42 2024-06-15 10:16:32.908 - debug: rpi2.0 (34773) ---> POST: $1/1024 for sdcard_boot_total in [object Object] 2024-06-15 10:16:32.909 - debug: rpi2.0 (34773) VALUE: 522230 POST: $1/1024 2024-06-15 10:16:32.909 - debug: rpi2.0 (34773) SETSTATE FOR rpi2.0.sdcard.sdcard_boot_total VALUE = 509.99 2024-06-15 10:16:32.961 - debug: rpi2.0 (34773) ---> POST: $1/1024 for sdcard_root_used in [object Object] 2024-06-15 10:16:32.961 - debug: rpi2.0 (34773) VALUE: 5603516 POST: $1/1024 2024-06-15 10:16:32.962 - debug: rpi2.0 (34773) SETSTATE FOR rpi2.0.sdcard.sdcard_root_used VALUE = 5472.18 2024-06-15 10:16:33.016 - debug: rpi2.0 (34773) ---> POST: $1/1024 for sdcard_boot_used in [object Object] 2024-06-15 10:16:33.017 - debug: rpi2.0 (34773) VALUE: 64614 POST: $1/1024 2024-06-15 10:16:33.017 - debug: rpi2.0 (34773) SETSTATE FOR rpi2.0.sdcard.sdcard_boot_used VALUE = 63.1 2024-06-15 10:16:33.069 - debug: rpi2.0 (34773) CURRENT = swap true 2024-06-15 10:16:33.069 - debug: rpi2.0 (34773) -1 2024-06-15 10:16:33.086 - debug: rpi2.0 (34773) ---> POST: $1/1024 for swap_total in [object Object] 2024-06-15 10:16:33.086 - debug: rpi2.0 (34773) VALUE: 204796 POST: $1/1024 2024-06-15 10:16:33.087 - debug: rpi2.0 (34773) SETSTATE FOR rpi2.0.swap.swap_total VALUE = 200 2024-06-15 10:16:33.137 - debug: rpi2.0 (34773) ---> POST: (rpi.swap_total - $1)/1024 for swap_used in [object Object] 2024-06-15 10:16:33.137 - debug: rpi2.0 (34773) VALUE: 204796 POST: (rpi.swap_total - $1)/1024 2024-06-15 10:16:33.138 - debug: rpi2.0 (34773) SETSTATE FOR rpi2.0.swap.swap_used VALUE = 0 2024-06-15 10:16:33.188 - debug: rpi2.0 (34773) CURRENT = temperature true 2024-06-15 10:16:33.189 - debug: rpi2.0 (34773) -1 2024-06-15 10:16:33.197 - debug: rpi2.0 (34773) ---> POST: $1/1000 for soc_temp in [object Object] 2024-06-15 10:16:33.197 - debug: rpi2.0 (34773) VALUE: 49173 POST: $1/1000 2024-06-15 10:16:33.198 - debug: rpi2.0 (34773) SETSTATE FOR rpi2.0.temperature.soc_temp VALUE = 49.17 2024-06-15 10:16:33.249 - debug: rpi2.0 (34773) CURRENT = uptime true 2024-06-15 10:16:33.249 - debug: rpi2.0 (34773) -1 2024-06-15 10:16:33.257 - debug: rpi2.0 (34773) ---> POST: for uptime in [object Object] 2024-06-15 10:16:33.258 - debug: rpi2.0 (34773) SETSTATE FOR rpi2.0.uptime.uptime VALUE = 53828.16 2024-06-15 10:16:33.308 - debug: rpi2.0 (34773) CURRENT = wlan true 2024-06-15 10:16:33.309 - debug: rpi2.0 (34773) -1 2024-06-15 10:16:33.316 - debug: rpi2.0 (34773) ---> POST: $1*-1 for wifi_received in [object Object] 2024-06-15 10:16:33.316 - debug: rpi2.0 (34773) VALUE: 0 POST: $1*-1 2024-06-15 10:16:33.317 - debug: rpi2.0 (34773) SETSTATE FOR rpi2.0.wlan.wifi_received VALUE = 0 2024-06-15 10:16:33.368 - debug: rpi2.0 (34773) ---> POST: for wifi_send in [object Object] 2024-06-15 10:16:33.369 - debug: rpi2.0 (34773) SETSTATE FOR rpi2.0.wlan.wifi_send VALUE = 0 2024-06-15 10:16:33.669 - debug: rpi2.0 (34773) Creating gpio.23.isInput 2024-06-15 10:16:33.703 - debug: rpi2.0 (34773) Creating gpio.24.isInput 2024-06-15 10:16:33.784 - debug: rpi2.0 (34773) class Default extends classes_1.Device { } 2024-06-15 10:16:33.792 - debug: rpi2.0 (34773) CPU Info: Raspberry Pi 4 Model B Rev 1.4 2024-06-15 10:16:33.793 - debug: rpi2.0 (34773) STDERR: 2024-06-15 10:16:33.794 - debug: rpi2.0 (34773) Got 4 from Raspberry Pi 4 Model B Rev 1.4. 2024-06-15 10:16:33.794 - debug: rpi2.0 (34773) Inputs are pull down. 2024-06-15 10:16:33.794 - debug: rpi2.0 (34773) Buttons are pull down. 2024-06-15 10:16:33.794 - debug: rpi2.0 (34773) Got chip: class Default extends classes_1.Device { } 2024-06-15 10:16:33.794 - debug: rpi2.0 (34773) GPIO chip undefined initialized 2024-06-15 10:16:33.795 - debug: rpi2.0 (34773) Port 23 direction: out 2024-06-15 10:16:33.796 - debug: rpi2.0 (34773) Port 24 direction: in 2024-06-15 10:16:33.846 - debug: rpi2.0 (34773) Adding event listener for port 24 2024-06-15 10:16:33.849 - debug: rpi2.0 (34773) Written true into port 23
-
@laser
Versuch mal bitte alpha.11.
Ich verstehe irgendwie den debounceTimer nicht so richtig. -
@garfonso die 11 installiert. Der Input ging mindestens 1 Mal. Danach nicht mehr.
MOD-EDIT: 1236 Zeilen Code in Spoiler gepackt!
-
@laser und alle anderen
bitte mal die alpha.13 testen und gerne in https://forum.iobroker.net/topic/75290/test-adapter-rpi2-2-x/ weiter diskutieren (dann muss ich nicht an zwei stellen aktualisieren, was ich treibe).