Created
November 28, 2019 22:16
-
-
Save RobCranfill/70d124c89fec3b84f56251eec091da4c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cranfill - udev rules for mapping X10 CM11 device to /dev/cm11, and Vantage data logger to /dev/vantageVue | |
# Lives in /etc/udev/rules.d | |
# | |
# serial to /dev/cm11a | |
ACTION=="add",SUBSYSTEM=="tty",ATTRS{idVendor}=="067b",ATTRS{product}=="USB-Serial Controller D",SYMLINK+="cm11a",MODE="0777" | |
# UART to /dev/vantageVue | |
# ACTION=="add",ATTRS{idVendor}=="10c4",ATTRS{product}=="CP2102 USB to UART Bridge Controller",MODE="0666",SYMLINK+="/sys/dev/vantageVue" | |
ACTION=="add",ATTRS{product}=="CP2102 USB to UART Bridge Controller",MODE="0666",SYMLINK+="vantageVue" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is safer, more concise - don't use product name, which can change (and has); instead use the product ID:
ACTION=="add",SUBSYSTEM=="tty",ATTRS{idVendor}=="067b",ATTRS{idProduct}=="2303",SYMLINK+="cm11a",MODE="0777" ACTION=="add",ATTRS{idVendor}=="10c4",ATTRS{idProduct}=="ea60",SYMLINK+="vantageVue",MODE="0666"