USB on RPI

I am newbie to Linux and RPI and have some problem understanding USB:

Basically what i try to achieve is to have a DMX dongle on the usb with the ola binding and arduino binding on serial:

String Arduino "Arduino" { serial="/dev/ttyACM0@9600" }

So what does this mean:

sudo nano /etc/udev/rules.d/30-ftdidmx.rules


ACTION=="add", BUS=="usb", SYSFS{idVendor}=="0403", SYSFS{idProduct}=="6001", GROUP:="dialout", MODE:="0660"

and this basically rename usb device to a given usb name:

SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="A40360T2", SYMLINK+="ttyUSB99"

Do I also need to give the openhab user some rights to accsess the usb port?

Here is what I get when I run dmesg

[1019430.714846] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[1019430.714941] ftdi_sio 1-1.4:1.0: device disconnected
[1019520.557154] usb 1-1.4: new full-speed USB device number 9 using dwc_otg
[1019520.684706] usb 1-1.4: New USB device found, idVendor=0403, idProduct=6001
[1019520.684736] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[1019520.684753] usb 1-1.4: Product: FT232R USB UART
[1019520.684770] usb 1-1.4: Manufacturer: FTDI
[1019520.684785] usb 1-1.4: SerialNumber: AM022SBS
[1019520.693560] ftdi_sio 1-1.4:1.0: FTDI USB Serial Device converter detected
[1019520.693754] usb 1-1.4: Detected FT232RL
[1019520.694715] usb 1-1.4: FTDI USB Serial Device converter now attached to ttyUSB0
[1735203.298767] usb 1-1.2: new full-speed USB device number 10 using dwc_otg
[1735203.412663] usb 1-1.2: New USB device found, idVendor=2341, idProduct=0043
[1735203.412694] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=220
[1735203.412712] usb 1-1.2: Manufacturer: Arduino (www.arduino.cc)
[1735203.412729] usb 1-1.2: SerialNumber: 8543632353135151F032
[1735203.414253] cdc_acm 1-1.2:1.0: ttyACM0: USB ACM device

and this is what I get when I am running lsusb
lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 010: ID 2341:0043 Arduino SA Uno R3 (CDC ACM)
Bus 001 Device 009: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC

So could someone help me out how I can get my two USB port setup correctly:)

Yes. Do an ls -l on the device (e.g. /dev/ttyACM0) and see what group it belongs to. Often it is the dialout group. You need to add the openhab user to that group so it has permission to read/write it.

Thanks, I will write up some more on this topic when I am back from skiing on monday.