Skip to content

Instantly share code, notes, and snippets.

@RobCranfill
Created November 28, 2019 22:16
Show Gist options
  • Save RobCranfill/70d124c89fec3b84f56251eec091da4c to your computer and use it in GitHub Desktop.
Save RobCranfill/70d124c89fec3b84f56251eec091da4c to your computer and use it in GitHub Desktop.
# 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"
@RobCranfill
Copy link
Author

RobCranfill commented Apr 7, 2021

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment