accessing USB devices in Docker on a TerraMaster F2-221 NAS

Permissions, domain/LDAP, power, security, notification and more.
Locked
User avatar
phreich
Posts: 5
Joined: 23 Nov 2020, 13:26

accessing USB devices in Docker on a TerraMaster F2-221 NAS

Post by phreich »

Hi,

I searched to see if I could find any information about how to access non-storage USB devices on the F2-221 NAS in Docker apps. Specifically, I am running HomeAssistant on the NAS, and want to access a zwave/zigbee radio USB 2.0 dongle. I don't need a set of drivers to access these radios in TNAS, I just need to get the USB serial ports defined to linux so I can reference them in Homeassistant in Docker.

I saw a locked forum post on the forum here:
viewtopic.php?f=67&t=1067

The last entry was from @TMroy on November 18th, 2020 saying he was going to check with the developers and get back to the OP, but there was no later post with the results of that query, and the thread has been locked, so I am starting a new thread to see if information on this exists.

I hope to hear from one of the Terramaster NAS support folks here soon.

Here's a copy of @TMroy's post:
"Post by TMroy » 18 Nov 2020, 03:29
I do not have such driver, let me check with the dev team and get back to you."
User avatar
TMSupport
TerraMaster Team
Posts: 2314
Joined: 13 Dec 2019, 15:15

Re: accessing USB devices in Docker on a TerraMaster F2-221 NAS

Post by TMSupport »

Please provide the specific model of USB, we need to confirm whether there is a related driver.
To contact our team, please send email to following addresses, remember to replace (at) with @
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
User avatar
phreich
Posts: 5
Joined: 23 Nov 2020, 13:26

Re: accessing USB devices in Docker on a TerraMaster F2-221 NAS

Post by phreich »

@TMSUPPORT

The USB dongle is called:
QuickStick Combo, HUSBZB-1, by Nortek
It is also known as GoControl QuickStick Combo
Its description is as follows:
"It is a USB 2.0 stick that houses both a Z-Wave and a Zigbee radio.
Z-Wave Certification ID: ZC10-15090013
Frequency Region: U.S./Canada/Mexico,
Z-Wave Library Version: 6.51.06
Provides interface between computer and Z-Wave and Zigbee network
Plugs into a standard USB port on the host device
Works with third-party home automation software
Appears as two (2) serial ports
Z-Wave Plus certified for wide compatibility"

The PDF of the specifications can be found here:
https://www.gocontrol.com/manuals/HUSBZ ... ration.pdf

We need the ability to access the two separate serial ports that are contained on this single USB 2.0 dongle. These serial ports should show up as being "Silicon Labs USB CP210x family of UART Bridge Controller". So you probably need to be able to have that driver available. You can reference that controller's documentation here:
https://www.silabs.com/developers/usb-t ... cp-drivers
However, for the Linux drivers they have the following note:
"*Note: The Linux 3.x.x and 4.x.x version of the driver is maintained in the current Linux 3.x.x and 4.x.x tree at www.kernel.org."
However, they do have the C source for the drivers available in their downloads, but they recommend using the ones stored at www.kernel.org.

HomeAssistant has the proper software to access it, but it needs to be able to get access to the two USB serial ports on the dongle via Linux, so it will need access to these serial ports that should look something like this:
(for the zwave tty serial port):
/dev/ttyUSB0
(for the Zigbee tty serial port):
/dev/ttyUSB1

Does the Docker package on TNAS have support for Docker Compose, or am I only able to run containers by launching them via the docker interface in TNAS? If I have to use the launch in the docker interface in TNAS, how would I make these ports available to the launched container?

Please let me know if you need any further information.
User avatar
iago1460
Posts: 7
Joined: 06 Sep 2020, 22:52

Re: accessing USB devices in Docker on a TerraMaster F2-221 NAS

Post by iago1460 »

Any update about this? I am also stuck on the f2-421 model
User avatar
phreich
Posts: 5
Joined: 23 Nov 2020, 13:26

Re: accessing USB devices in Docker on a TerraMaster F2-221 NAS

Post by phreich »

TMSupport wrote: 18 Aug 2021, 12:16 Please provide the specific model of USB, we need to confirm whether there is a related driver.
@TMSUPPORT
It has been more 3 months since I replied with the requested information.

When will you answer the questions?

Please advise,
phreich
User avatar
TMSupport
TerraMaster Team
Posts: 2314
Joined: 13 Dec 2019, 15:15

Re: accessing USB devices in Docker on a TerraMaster F2-221 NAS

Post by TMSupport »

Sorry, we do not have such driver.
To contact our team, please send email to following addresses, remember to replace (at) with @
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
User avatar
Hardfecx
Posts: 244
Joined: 04 Jun 2020, 23:17

Re: accessing USB devices in Docker on a TerraMaster F2-221 NAS

Post by Hardfecx »

TMSupport wrote: 11 Nov 2021, 15:15 Sorry, we do not have such driver.
create them :)
User avatar
outkastm
Posts: 1185
Joined: 29 Dec 2020, 23:52

Re: accessing USB devices in Docker on a TerraMaster F2-221 NAS

Post by outkastm »

work in progress as 3rd party .tpk
As these are kernel modules, to be used on your own risk

viewtopic.php?f=37&t=2689
Locked