On 09.08.2017 20:49, Matthias Urlichs via Owfs-developers wrote:
On 09.08.2017 19:46, Martin Patzak (GMX) wrote:
SUBSYSTEMS=="usb", ATTRS{manufacturer}=="FTDI", ATTRS{product}=="FT232R USB UART", ATTRS{serial}=="A800bXHr", GROUP="owsrv", MODE="0664", SYMLINK+="LinkUSB"

For me this works perfectly (a) without the symlink (b) with an additional DRIVER=="USB" condition.

(a) symlinking doesn't work with USB bus entries.
(b) is required because you don't want to use the TTY. owserver needs to access the "raw" USB device, i.e. (in my case)
/sys/devices/platform/soc/20980000.usb/usb1/1-1/1-1.3
instead of
/sys/devices/platform/soc/20980000.usb/usb1/1-1/1-1.3/1-1.3\:1.0/tty/ttyACM0

Matthias, thank you for your swift and in-depth response.
For today I am udev-ed out! So I will try your changes to my rule tomorrow.

Meanwhile I was tinkering some more and I found the device node that owserver uses:

/ls -al /dev/bus/usb/003/017
    crw-rw-r-- 1 root root 189, 272 Aug  9 21:05 017

/I changed the group of that node to 'owsrv' and owserver with ftdi:... does indeed start without sudo!

Martin
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to