Hi,
I'm trying to install a zwave2mqtt container (on a TS-453D, latest firmware/apps) and would like to add my ZWAVE.ME-USB-stick to the container by using the Device permision R/W on "ACM USB Modem".
For some reason the container can't get access to it (error 2)
If I set the flag for "Run containers in privileged mode." it is however working....but this gives to much authorzation which I don't want to do.
Is there something which I might be missing in here ?
Or do I need to add "some user" to the dialout-group to make this work ?
Thanks.
best regards,
Cyril
R/W Access to USB Device from Container
-
- New here
- Posts: 4
- Joined: Fri Apr 08, 2011 8:09 pm
-
- New here
- Posts: 7
- Joined: Mon Sep 07, 2020 8:13 am
Re: R/W Access to USB Device from Container
Sounds like you need to add the device to your container; i.e., --device= with docker CLI. Find the path of your USB stick and pass it to the container when you create it.
-
- New here
- Posts: 4
- Joined: Fri Apr 08, 2011 8:09 pm
Re: R/W Access to USB Device from Container
Tried to install zwave2mqtt via CLI but can't make it work as the Container interface for some reason.
Also I'm doubting if this will work....but....nothing ventured, nothing gained....
So if someone has an idea to make it work via CLI....
Also I'm doubting if this will work....but....nothing ventured, nothing gained....
So if someone has an idea to make it work via CLI....
-
- New here
- Posts: 7
- Joined: Mon Sep 07, 2020 8:13 am
Re: R/W Access to USB Device from Container
You can start by sharing your docker run command!
-
- New here
- Posts: 4
- Joined: Fri Apr 08, 2011 8:09 pm
Re: R/W Access to USB Device from Container
sorry....nothing special ...
docker run -d --name "zwave2mqtt_test" -e TZ=Europe/Amsterdam --device=/dev/ttyACM0 -v /ContainersConfig/zwave2mqtt:/usr/src/app/store robertslando/zwave2mqtt:4.1.1
The issue I now have (after adjusting some more in the CLI) is:
Failed to apply container settings.
Error Code: 500
Message: 400 Client Error: Bad Request ("invalid reference format")
What I tried to adjust is the Memory, CPU and network (NAT to Bridge).
Also noticed that the name of the docker is changed to "zwave2mqtt_test-temporary-1610481484" and the IP is not changed to the new Bridge IP. (but is still in NAT)
docker run -d --name "zwave2mqtt_test" -e TZ=Europe/Amsterdam --device=/dev/ttyACM0 -v /ContainersConfig/zwave2mqtt:/usr/src/app/store robertslando/zwave2mqtt:4.1.1
The issue I now have (after adjusting some more in the CLI) is:
Failed to apply container settings.
Error Code: 500
Message: 400 Client Error: Bad Request ("invalid reference format")
What I tried to adjust is the Memory, CPU and network (NAT to Bridge).
Also noticed that the name of the docker is changed to "zwave2mqtt_test-temporary-1610481484" and the IP is not changed to the new Bridge IP. (but is still in NAT)
-
- First post
- Posts: 1
- Joined: Mon Jun 09, 2014 3:26 am
Re: R/W Access to USB Device from Container
Any update on this? I'm looking to do the same thing.
-
- Starting out
- Posts: 28
- Joined: Sat Feb 17, 2018 9:01 pm
- Location: netherlands
Re: R/W Access to USB Device from Container
Same question here..
- oyvindo
- Experience counts
- Posts: 1399
- Joined: Tue May 19, 2009 2:08 am
- Location: Norway, Oslo
Re: R/W Access to USB Device from Container
Try adding these two CLI commands(not Docker CLI, but QTS CLI):
insmod /usr/local/modules/cp210x.ko
insmod /usr/local/modules/cdc-acm.ko
insmod /usr/local/modules/cp210x.ko
insmod /usr/local/modules/cdc-acm.ko