From 6235be09eb2619d0d06eb2f77e7b239f816a18a8 Mon Sep 17 00:00:00 2001 From: pierreluctg Date: Mon, 15 Apr 2019 13:31:50 -0400 Subject: [PATCH 1/2] Create 99-intrepidcs.rules --- 99-intrepidcs.rules | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 99-intrepidcs.rules diff --git a/99-intrepidcs.rules b/99-intrepidcs.rules new file mode 100644 index 0000000..24f2500 --- /dev/null +++ b/99-intrepidcs.rules @@ -0,0 +1,26 @@ +# Intrepid Control System, Inc. neoVI Devices +SUBSYSTEM=="usb", ATTRS{idVendor}=="093c", GROUP="users", MODE="0666" +KERNEL=="ttyUSB?", ATTRS{idVendor}=="093c", GROUP="users", MODE="0666" +KERNEL=="ttyACM?", ATTRS{idVendor}=="093c", GROUP="users", MODE="0666" + +# neoVI ION/PLASMA PIDs are not in the latest ftdi_sio driver so lets make a +# rule to add it when we see a new unclaimed device. +# PLASMA = 0x0801, ION = 0x0901 +ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_interface", \ + ATTRS{idVendor}=="093c", ATTRS{idProduct}=="0801", \ + DRIVER=="", \ + RUN+="/sbin/modprobe -b ftdi_sio" +ACTION=="add", SUBSYSTEM=="drivers", \ + ENV{DEVPATH}=="/bus/usb-serial/drivers/ftdi_sio", \ + ATTR{new_id}="093c 0801" +ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_interface", \ + ATTRS{idVendor}=="093c", ATTRS{idProduct}=="0901", \ + DRIVER=="", \ + RUN+="/sbin/modprobe -b ftdi_sio" +ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_interface", \ + ATTRS{idVendor}=="093c", ATTRS{idProduct}=="1000", \ + DRIVER=="", \ + RUN+="/sbin/modprobe -b ftdi_sio" +ACTION=="add", SUBSYSTEM=="drivers", \ + ENV{DEVPATH}=="/bus/usb-serial/drivers/ftdi_sio", \ + ATTR{new_id}="093c 0901" From cd391b18e10d4d7dcf44bf9ff84de9a505f3c62e Mon Sep 17 00:00:00 2001 From: pierreluctg Date: Mon, 15 Apr 2019 13:32:54 -0400 Subject: [PATCH 2/2] Update README.md --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bd72d96..dbe458e 100644 --- a/README.md +++ b/README.md @@ -121,4 +121,10 @@ The dependencies are as follows - CMake 3.2 or above - GCC 4.7 or above, 4.8+ recommended - `libusb-1.0-0-dev` - - `build-essential` is recommended \ No newline at end of file + - `build-essential` is recommended + +If you'd like to be able to run programs that use this library without being root, consider using the included udev rules + +``` +$ sudo cp 99-intrepidcs.rules /etc/udev/rules.d/ +```