From 72f7e1b9729b9ff76cb75a307ac32888d59e7501 Mon Sep 17 00:00:00 2001 From: Serge Vakulenko Date: Fri, 21 Sep 2018 12:17:23 -0700 Subject: [PATCH] Add access rules for Linux. --- 99-dmr.rules | 12 ++++++++++++ README.md | 18 ++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 99-dmr.rules diff --git a/99-dmr.rules b/99-dmr.rules new file mode 100644 index 0000000..ab74745 --- /dev/null +++ b/99-dmr.rules @@ -0,0 +1,12 @@ +# +# Enable user access to USB devices of DMR radios. +# Install this file into directory: /etc/udev/rules.d +# To reload the rules, use: +# sudo udevadm control --reload-rules +# + +# TYT MD-UV380 +SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE="666" + +# Baofeng RD-5R +SUBSYSTEM=="usb", ATTRS{idVendor}=="15a2", ATTRS{idProduct}=="0073", MODE="666" diff --git a/README.md b/README.md index ce09957..8c4adc3 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,24 @@ Update database of contacts from CSV file: Option -t enables tracing of USB protocol. +## Permissions + +On Linux, a permission to access USB device is required. +It's possible to run dmrconfig as root, like "sudo dmrconfig", +but it's safer to enable access for users. +Create a file /etc/udev/rules.d/99-dmr.rules with the following contents: + + # TYT MD-UV380 + SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE="666" + + # Baofeng RD-5R + SUBSYSTEM=="usb", ATTRS{idVendor}=="15a2", ATTRS{idProduct}=="0073", MODE="666" + +To activate it, run: + + sudo udevadm control --reload-rules + +Then re-attach the USB cable to the radio. ## Sources