RFLink USB Gateway - Help needed

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
Captain
Posts: 3
Joined: Sunday 19 November 2017 23:02
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11786
Location: US
Contact:

RFLink USB Gateway - Help needed

Post by Captain »

I've recently rebuilt a headless Raspberry Pi 3B+ with Domoticz in a Docker container.

When I attempt to add RFLink USB Gateway, the Serial Port dropdown is blank and does not allow a manual entry. What am I missing? It worked on the same hardware in the previous build.

Thanks,

Domoticz Version: 4.11786
Build Hash: 16cbfa328
Compile Date: 2020-03-14 14:27:12
dzVents Version: 3.0.1
Python Version: 3.7.5 (default, Oct 17 2019, 19:23:24) [GCC 8.3.0]

pi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME=“Raspbian GNU/Linux 10 (buster)”
NAME=“Raspbian GNU/Linux”
VERSION_ID=“10”
VERSION=“10 (buster)”

pi@raspberrypi:~ $ sudo docker version
Client: Docker Engine - Community
Version: 19.03.12
API version: 1.40
Go version: go1.13.10
Git commit: 48a6621
Built: Mon Jun 22 15:57:03 2020
OS/Arch: linux/arm
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: RFLink USB Gateway - Help needed

Post by EddyG »

Which Docker container? And did you follow the rules to install the container?
For instance: https://hub.docker.com/r/demydiuk/domoticz
Captain
Posts: 3
Joined: Sunday 19 November 2017 23:02
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11786
Location: US
Contact:

Re: RFLink USB Gateway - Help needed

Post by Captain »

Thanks,

In the new light of the morning I did go back and read the docs - and I found what I was missing.

from https://hub.docker.com/r/linuxserver/domoticz

Passing Through USB Devices
To get full use of Domoticz, you probably have a USB device you want to pass through. To figure out which device to pass through, you have to connect the device and look in dmesg for the device node created. Issue the command 'dmesg | tail' after you connected your device and you should see something like below.

usb 1-1.2: new full-speed USB device number 7 using ehci-pci
ftdi_sio 1-1.2:1.0: FTDI USB Serial Device converter detected
usb 1-1.2: Detected FT232RL
usb 1-1.2: FTDI USB Serial Device converter now attached to ttyUSB0
As you can see above, the device node created is ttyUSB0. It does not say where, but it's almost always in /dev/. The correct tag for passing through this USB device is '--device /dev/ttyUSB0:/dev/ttyUSB0'

so creating the container now looks like this ...

docker create \
--name=domoticz \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=America/New_York \
-p 8080:8080 \
-p 6144:6144 \
-p 1443:1443 \
-v /media/Media4/DockerContainers/domoticz/:/config \
--network macvlan \
--ip 192.168.1.27 \
--device /dev/ttyACM0:/dev/ttyACM0 \
--restart unless-stopped \
linuxserver/domoticz:arm32v7-latest

I'll also take a look at https://hub.docker.com/r/demydiuk/domoticz
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest