]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
sick-tim3xx: Add udev rule file and readme file
authorMatous Pokorny <matous.pokorny@me.com>
Fri, 28 Sep 2012 14:30:10 +0000 (16:30 +0200)
committerMatous Pokorny <matous.pokorny@me.com>
Fri, 28 Sep 2012 14:30:10 +0000 (16:30 +0200)
src/sick-tim3xx/udev/81-sick-tim3xx.rules [new file with mode: 0644]
src/sick-tim3xx/udev/README [new file with mode: 0644]

diff --git a/src/sick-tim3xx/udev/81-sick-tim3xx.rules b/src/sick-tim3xx/udev/81-sick-tim3xx.rules
new file mode 100644 (file)
index 0000000..46f40d9
--- /dev/null
@@ -0,0 +1,3 @@
+# SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="19a2", ATTR{idProduct}=="5001", GROUP="usb"
+SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="19a2", ATTR{idProduct}=="5001", MODE="0666"
+
diff --git a/src/sick-tim3xx/udev/README b/src/sick-tim3xx/udev/README
new file mode 100644 (file)
index 0000000..42bf3c1
--- /dev/null
@@ -0,0 +1,11 @@
+To give all users write access to the Sick TiM 300 device, run the following
+commands:
+
+    sudo cp 81-sick-tim3xx.rules /etc/udev/rules.d/
+    sudo udevadm control --reload-rules
+
+Now unplug your USB cable and plug it in again.  This will allow you to
+communicate with the laser scanner without running the node as root and fix the
+following error:
+
+    LIBUSB - Cannot open device; please read sick_tim3xx/udev/README