Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. [Gelöst] Proxmox (LXC) - CC2531 - Error opening serialport

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    SOLVED [Gelöst] Proxmox (LXC) - CC2531 - Error opening serialport

    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rth last edited by rth

      Hallo,

      ich habe heute bei meinen CC2531 Stick ein Update von Z-Stack1.2_20180815 auf 20190608 mit dem CC-Debugger und dem flash-programmer gemacht.
      Seither startet die zigbee Instanz nicht mehr (gelb), Log siehe unten

      Der iobroker läuft unter proxmox in einem LXC Container seit Monaten fehlerfrei.

      Könnt ihr mir weiterhelfen?

      Danke vorab.

      USB Konfig Proxmox

      root@proxmox:~# lsusb
      Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
      Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
      Bus 001 Device 003: ID 1bcf:288e Sunplus Innovation Technology Inc. 
      Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
      Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
      Bus 004 Device 002: ID 0bc2:231a Seagate RSS LLC Expansion Portable
      Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
      Bus 003 Device 003: ID 0451:16a8 Texas Instruments, Inc. 
      Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
      root@proxmox:~# ls -l /dev/serial/by-id
      total 0
      lrwxrwxrwx 1 root root 13 Apr 13 01:06 usb-Texas_Instruments_TI_CC2531_USB_CDC___0X00124B0018ED2EDD-if00 -> ../../ttyACM0
      root@proxmox:~# ls -l /dev/bus/usb/003/003
      crw-rw-r-- 1 root root 189, 258 Apr 13 01:06 /dev/bus/usb/003/003
      root@proxmox:~# ls -l /dev/ttyACM0
      crw-rw-rw- 1 root dialout 166, 0 Apr 13 01:12 /dev/ttyACM0
      
      

      USB Konfig iobroker Container

      root@iobroker:~# lsusb
      Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
      Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
      Bus 001 Device 003: ID 1bcf:288e Sunplus Innovation Technology Inc. 
      Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
      Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
      Bus 004 Device 002: ID 0bc2:231a Seagate RSS LLC Expansion Portable
      Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
      Bus 003 Device 003: ID 0451:16a8 Texas Instruments, Inc. 
      Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
      root@iobroker:~# ls -l /dev/ttyACM0 
      crw-rw-rw- 1 nobody nogroup 166, 0 Apr 13 01:12 /dev/ttyACM0
      
      

      Log

      zigbee.0	2020-04-13 01:13:09.351	error	at binding.open.then.err (/opt/iobroker/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:242:12)
      zigbee.0	2020-04-13 01:13:09.351	error	at SerialPort._error (/opt/iobroker/node_modules/zigbee-herdsman/node_modules/@serialport/stream/lib/index.js:198:14)
      zigbee.0	2020-04-13 01:13:09.351	error	at SerialPort.serialPort.open (/opt/iobroker/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:111:49)
      zigbee.0	2020-04-13 01:13:09.351	error	at __awaiter (/opt/iobroker/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:4:12)
      zigbee.0	2020-04-13 01:13:09.351	error	at new Promise (<anonymous>)
      zigbee.0	2020-04-13 01:13:09.351	error	at /opt/iobroker/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:8:71
      zigbee.0	2020-04-13 01:13:09.351	error	at Generator.next (<anonymous>)
      zigbee.0	2020-04-13 01:13:09.351	error	at Znp.<anonymous> (/opt/iobroker/node_modules/zigbee-herdsman/dist/adapter/z-stack/znp/znp.js:113:32)
      zigbee.0	2020-04-13 01:13:09.351	error	(591) Error: Error while opening serialport 'Error: Error Resource temporarily unavailable Cannot lock port'
      zigbee.0	2020-04-13 01:13:09.350	error	(591) Failed to start Zigbee
      zigbee.0	2020-04-13 01:13:09.235	info	(591) Starting Zigbee...
      zigbee.0	2020-04-13 01:13:09.234	info	(591) Try to reconnect. 1 attempts left
      
      Systemdata Bitte Ausfüllen
      Node-Version: 10.19.0
      Nodejs-Version: 10.19.0
      NPM-Version: 6.13.4
      1 Reply Last reply Reply Quote 0
      • R
        rth last edited by

        Ich habe zur Sicherheit den CC2531 an einem Raspberry PI ausprobiert, dort startet der zigbee Adapter fehlerfrei. Es hat also nichts mit dem Z-Stack update zu tun und die CC2531 Hardware ist auch nicht defekt.

        Bleibt noch Proxmox bzw. das Durchreichen in den Container.

        1 Reply Last reply Reply Quote 0
        • R
          rth last edited by

          Problem gelöst, aber wirklich verständlich ist es nicht für mich. Vielleicht hilft es dennoch dem Einen oder Anderen:

          1. Aus- / Einstecken des CC2531 führt bei mir zur Änderung des USB Ports am Proxmox von 003/003 nach 003/004
          2. Ändern des USB Mappings proxmox -> Container von
          lxc.mount.entry: /dev/bus/usb/003/003 dev/bus/usb/003/003 none bind,optional,cre
          ate=file
          

          nach

          lxc.mount.entry: /dev/bus/usb/003/004 dev/bus/usb/003/004 none bind,optional,cre
          ate=file
          
          
          1. Start des iobroker Containers: zigbee startet
          2. Stop des iobroker Containers
          3. Reboot proxmox
          4. Änderung rückgängig gemacht
          5. Start des iobroker Containers: zigbee startet

          Leider sind alle Geräte nicht mehr gepaired, liegt aber vermutlich am Versionssprung der Z-Stack firmware von 20180815 auf 20190608.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Support us

          ioBroker
          Community Adapters
          Donate

          915
          Online

          31.6k
          Users

          79.6k
          Topics

          1.3m
          Posts

          cc2531 proxmox serialport zigbee
          1
          3
          686
          Loading More Posts
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes
          Reply
          • Reply as topic
          Log in to reply
          Community
          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
          The ioBroker Community 2014-2023
          logo