Skip to content

Cannot lock port #582

@FrankGiesecke

Description

@FrankGiesecke

I have a problem connecting my Sonoff Zigbee 3.0 USB Dongle Plus on a fresh installed Raspberry Pi 4 with Node Red and node-red-contrib-zigbee.

The same adapter works fine on a CCU3 with RedMatic and node-red-contrib-zigbee.

The Log says:

21 Sep 14:22:04 - [info] [zigbee-shepherd:Sonoff Zigbee 3.0 USB Dongle Plus] Herdsman   version: v0.13.194
21 Sep 14:22:04 - [info] [zigbee-shepherd:Sonoff Zigbee 3.0 USB Dongle Plus] Converters version: v14.0.610
21 Sep 14:22:04 - [info] [zigbee-shepherd:Sonoff Zigbee 3.0 USB Dongle Plus] persistPath /home/nodered/.node-red/zigbee/422d3c95de8e2b58
21 Sep 14:22:04 - [info] [zigbee-shepherd:Sonoff Zigbee 3.0 USB Dongle Plus] connecting /dev/ttyUSB0 {"adapter":"zstack","path":"/dev/ttyUSB0","baudRate":115200,"rtscts":false}
21 Sep 14:22:23 - [info] [zigbee-shepherd:Sonoff Zigbee 3.0 USB Dongle Plus] Currently 0 devices are joined:
21 Sep 14:22:23 - [error] [zigbee-shepherd:Sonoff Zigbee 3.0 USB Dongle Plus] this.herdsman.supportsLED is not a function
21 Sep 14:22:23 - [info] [zigbee-shepherd:Sonoff Zigbee 3.0 USB Dongle Plus] Zigbee network parameters: {"panID":12908,"extendedPanID":"0x00124b0025e15c69","channel":11}
21 Sep 14:22:23 - [info] [zigbee-shepherd:Sonoff Zigbee 3.0 USB Dongle Plus] Coordinator: zStack3x0 2.7.1 20210708
21 Sep 14:22:33 - [info] [zigbee-shepherd:Sonoff Zigbee 3.0 USB Dongle Plus] connecting /dev/ttyUSB0 {"adapter":"zstack","path":"/dev/ttyUSB0","baudRate":115200,"rtscts":false}
21 Sep 14:22:33 - [error] [zigbee-shepherd:Sonoff Zigbee 3.0 USB Dongle Plus] Error while opening serialport 'Error: Error Resource temporarily unavailable Cannot lock port'

Serial check:

root@node-red:~# ls -l /proc/[0-9]*/fd/* |grep /dev/ttyUSB0
lrwx------ 1 nodered        nodered        64 Sep 21 14:04 /proc/374/fd/22 -> /dev/ttyUSB0

There is no other process using this device, just the node red instance.

The user, running node red is in all necessary groups:

nodered@node-red:~ $ groups
nodered tty uucp dialout

System Information:

root@node-red:~# uname -a
Linux node-red 5.15.61-v8+ #1579 SMP PREEMPT Fri Aug 26 11:16:44 BST 2022 aarch64 GNU/Linux
root@node-red:~# cat /etc/*release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
root@node-red:~# node --version
v18.8.0

Here is a snippet from the log of my CCU using the same adapter:

Sep 21 14:53:39 ccu3-webui daemon.info node-red[2559]: [zigbee-shepherd:Sonoff Zigbee 3.0 USB Dongle Plus] Herdsman   version: v0.13.79
Sep 21 14:53:39 ccu3-webui daemon.info node-red[2559]: [zigbee-shepherd:Sonoff Zigbee 3.0 USB Dongle Plus] Converters version: v14.0.85
Sep 21 14:53:39 ccu3-webui daemon.info node-red[2559]: [zigbee-shepherd:Sonoff Zigbee 3.0 USB Dongle Plus] persistPath /usr/local/addons/redmatic/var/zigbee/c9f2d9be.4ed388
Sep 21 14:53:39 ccu3-webui daemon.info node-red[2559]: [zigbee-shepherd:Sonoff Zigbee 3.0 USB Dongle Plus] connecting /dev/ttyUSB0 undefined
Sep 21 14:54:00 ccu3-webui daemon.info node-red[2559]: [zigbee-shepherd:Sonoff Zigbee 3.0 USB Dongle Plus] Currently 0 devices are joined:
Sep 21 14:54:00 ccu3-webui daemon.info node-red[2559]: [zigbee-shepherd:Sonoff Zigbee 3.0 USB Dongle Plus] Zigbee network parameters: {"panID":12908,"extendedPanID":"0xdddddddddddddddd","channel":23}
Sep 21 14:54:00 ccu3-webui daemon.info node-red[2559]: [zigbee-shepherd:Sonoff Zigbee 3.0 USB Dongle Plus] Coordinator: zStack3x0 2.7.1 20210708

I have no idea what the problem is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions