I have created a simple rule called "99-usb.rules" that simply names a tty port of a specific device
KERNEL=="ttyACM*", ATTRS{idVendor}=="2341", NAME="mydevice"
This rule works fine when I run a udevadm test with the command
udevadm test $(udevadm info -q path -n /dev/ttyACM0)
Running this command causes "/dev/mydevice" to appear, and I can communicate with my usb device through "mydevice". The problem is, I can't get this rule to be triggered outside of the test environment. I have tried "udevadm control -R" and "udevadm trigger" aswell as disconnecting and reconnecting the device and rebooting my system. Any ideas why "udevadm trigger" would fail? I am using udev version 173 on OS OpenWrt Barrier Breaker 14.07.
trigger
; "add" is what happens at boot time, or hardware connect). How about disconnect+reconnect? I assume that's convenient to test, at least you don't have to wait for a reboot and trawl through the debug of all that. – sourcejedi May 01 '18 at 23:55