forked from RishiGupta12/SerialPundit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
99-sp-cp210x.rules
executable file
·57 lines (44 loc) · 2.67 KB
/
99-sp-cp210x.rules
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#
# This file is part of SerialPundit.
#
# Copyright (C) 2014-2016, Rishi Gupta. All rights reserved.
#
# The SerialPundit is DUAL LICENSED. It is made available under the terms of the GNU Affero
# General Public License (AGPL) v3.0 for non-commercial use and under the terms of a commercial
# license for commercial use of this software.
#
# The SerialPundit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
# without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#################################################################################################
# This is a udev rule file for all devices from Silicon Labs with VID 0x10C4 (not specific to any
# Silicon Labs product (USB PID)). Place this file in /etc/udev/rules.d/ for Ubuntu Linux distro.
# These rules will grant read and write access to all users, include non-privileged users, for all
# USB devices that have a matching Vendor ID according to the rules below. If required, more
# restrictions on access to these devices can be achieved. Please learn more about writing udev
# rules for putting more restrctions. It is possible to set up a group or user owner for accessing
# a specific device.
# This file can be renamed as per the requirement. After putting it in /etc/udev/rules.d/ directory
# udev need not be restarted. Just un-lug or plug the device in USB port again. Also vendor ID and
# Product ID may be case sensitive. Please use dmesg to check device information when device is
# plugged in system. System supplied default rules are generally placed in /lib/udev/rules.d and gets
# overridden by rules placed in /etc/udev/rules.d directory.
# We can also add user to dialout group if it is not member of dialout group.
# $groups YOURUSERNAME
# $sudo gpasswd --add YOURUSERNAME dialout
# Logout then login and then insert the USB-UART device.
# It may be required to reload udev rules if the udev rule file is added in running system.
# $ sudo udevadm control --reload-rules
# $ sudo udevadm trigger --attr-match=subsystem=tty
ACTION=="remove", GOTO="cp210x_end"
SUBSYSTEM!="tty", GOTO="cp210x_end"
SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", MODE="0666"
# If we want to load these rules for a specific USB product with product ID, here is how to do it:
# (example for CP2101/2/3/4).
# SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", MODE="0666"
# CP2105
# SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea70", MODE="0666"
# CP2108
# SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea71", MODE="0666"
# CP2110
# SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea80", MODE="0666"
LABEL="cp210x_end"