Skip to content

Instantly share code, notes, and snippets.

@goldbattle
Last active November 13, 2021 20:16
Show Gist options
  • Save goldbattle/ea55b80ed361de3cf28c37bc12d7b2e4 to your computer and use it in GitHub Desktop.
Save goldbattle/ea55b80ed361de3cf28c37bc12d7b2e4 to your computer and use it in GitHub Desktop.
udev rules for microstrain sensors.
# Universal rule for GX3/4/5 devices
#SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{product}=="Lord Inertial Sensor", SYMLINK="microstrain", MODE="0666"
# Vendor/Product-locked rules for GX3/4/5 devices
#SUBSYSTEM=="tty", ATTRS{idVendor}=="199b", ATTRS{idProduct}=="3065", SYMLINK="microstrain", MODE="0666"
#SUBSYSTEM=="tty", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740", SYMLINK="microstrain", MODE="0666"
# Uncomment these rules if you'd like the serial number to appear in the symlink. Useful if you have multiple devices.
SUBSYSTEM=="tty", ATTRS{idVendor}=="199b", ATTRS{idProduct}=="3065", SYMLINK+="microstrain_%s{serial}", MODE="0666"
SUBSYSTEM=="tty", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740", SYMLINK+="microstrain_%s{serial}", MODE="0666"
SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{product}=="Lord Inertial Sensor", SYMLINK+="microstrain_%s{serial}", MODE="0666"
# etc/udev/rules.d/61-microstrain.rules
ATTRS{product}=="3DM-GX3-25 Orientation Sensor", MODE="0666", SYMLINK+="imu"
ATTRS{product}=="STMicroelectronics STM32F407", MODE="0666", SYMLINK+="imu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment