alexreinert / piVCCU

piVCCU is a project to install the original Homematic CCU3 firmware inside a virtualized container (lxc) on ARM based single board computers.
Apache License 2.0
300 stars 62 forks source link

Combination not working pivccu3 / CUXd / ioBroker /zigbee / USB-Dongle CC2531 - solved #480

Closed melzerto closed 1 year ago

melzerto commented 1 year ago

piVCCU 3.67.10.77, Cux-Daemon 2.9.4 After installing the adapter zegbee.0 and configuring the USB-Dongle to /dev/ttyACM0 with TI Z-Stack/CCxxxx The adapter is going to error with log-entry error: zigbee.0 (19252) Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms) Reason: The LXC container will grab the ttyACM0 and provide it to Cux-Daemon. The Cux-Daemon will connect to ttyACM0 and show this port as available at the status page. According to the Cuxd_2.10 manual this is a default behaivor. Solution: Disable this port by adding TTYASSIGN=ttyACM0:NC in the setup page (cuxd.ini) In the status page should be then shown Kein TTY-Device connected!

alexreinert commented 1 year ago

I do not understand your issue. You assign an USB device to the CCU container and complain about the container using it? Just do not assign it to the container.

melzerto commented 1 year ago

The issue is that I dont want to assign the USB port to the LXC container. It does it by default itself including that Cuxd open the port without any use for it. The more clean way would be of course to block the assignement in the /etc/pivccu3/lxc.config or elsewhere. That could be your final proposed solution.

alexreinert commented 1 year ago

And this is already implemented, see the Readme.

melzerto commented 1 year ago

Confirmed. After executing sudo dpkg-reconfigure pivccu3 threre will be the option not to use ttyACM0 device. Thank you for hint