-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path99-antstick.rules
More file actions
53 lines (45 loc) · 1.38 KB
/
99-antstick.rules
File metadata and controls
53 lines (45 loc) · 1.38 KB
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
# Place this file in /etc/udev/rules.d
#
# It will give consistent names for the Ant device.
# e.g., /dev/ttyANT0 (for first Ant device), /dev/ttyANT1 etc.
# Ant devbox
SUBSYSTEM=="tty" ACTION=="add" \
ATTRS{product}=="Dynastream ANT Development Board Rev 3.0" \
SYMLINK+="ttyANT%n"
# Ant little dev board
SUBSYSTEM=="tty" ACTION=="add" \
ATTRS{idProduct}=="1006" \
ATTRS{idVendor}=="0fcf" \
SYMLINK+="ttyANT%n"
# Ant stick
SUBSYSTEM=="tty" ACTION=="add" \
ATTRS{idProduct}=="1004" \
ATTRS{idVendor}=="0fcf" \
SYMLINK+="ttyANT%n"
# Ant stick, usbm driver
SUBSYSTEM=="usb" ACTION=="add" \
ATTRS{idProduct}=="1009" \
ATTRS{idVendor}=="0fcf" \
RUN+="/sbin/modprobe option" \
RUN+="/bin/sh -c 'echo 0fcf 1009 > /sys/bus/usb-serial/drivers/option1/new_id'"
# Ant stick, usbm
SUBSYSTEM=="tty" ACTION=="add" \
ATTRS{idProduct}=="1009" \
ATTRS{idVendor}=="0fcf" \
SYMLINK+="ttyANT%n"
# Ant stick, usb2 driver
SUBSYSTEM=="usb" ACTION=="add" \
ATTRS{idProduct}=="1008" \
ATTRS{idVendor}=="0fcf" \
RUN+="/sbin/modprobe option" \
RUN+="/bin/sh -c 'echo 0fcf 1008 > /sys/bus/usb-serial/drivers/option1/new_id'"
# Ant stick, usb2
SUBSYSTEM=="tty" ACTION=="add" \
ATTRS{idProduct}=="1008" \
ATTRS{idVendor}=="0fcf" \
SYMLINK+="ttyANT%n"
# AntRCT
SUBSYSTEM=="tty" ACTION=="add" \
ATTRS{idProduct}=="1007" \
ATTRS{idVendor}=="0fcf" \
SYMLINK+="ttyANT%n"