kopia lustrzana https://github.com/cyoung/stratux
49 wiersze
2.4 KiB
Plaintext
49 wiersze
2.4 KiB
Plaintext
# To be placed in /etc/udev/rules.d.
|
|
# Auto-detect common USB stratux peripherals.
|
|
|
|
# u-blox devices. Known devices include
|
|
# ublox9: experimental boards
|
|
# ublox8: RY835AI, RY836AI, GPYes 2.0
|
|
# ublox7: VK-172, RY725AI, GPYes
|
|
# ublox6: VK-162
|
|
|
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a9", SYMLINK+="ublox9"
|
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a8", SYMLINK+="ublox8"
|
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a7", SYMLINK+="ublox7"
|
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a6", SYMLINK+="ublox6"
|
|
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a7", SYMLINK+="vk172"
|
|
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a6", SYMLINK+="vk162"
|
|
|
|
# Stratux uatradio.
|
|
# 0403:7028 (Stratux UATRadio)
|
|
ATTRS{idProduct}=="7028", ATTRS{idVendor}=="0403", RUN+="/sbin/modprobe -q ftdi_sio" RUN+="/bin/sh -c 'echo 0403 7028 > /sys/bus/usb-serial/drivers/ftdi_sio/new_id'", OWNER="root", MODE="0666", SYMLINK+="uatradio"
|
|
|
|
|
|
|
|
# pl2303 devices are indistinguishable using idVendor and idProduct.
|
|
# Currently the BU-353-S4 and the TU-S9 (serialout) use the pl2303.
|
|
|
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", SYMLINK+="prolific%n"
|
|
|
|
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", SYMLINK+="bu353s4"
|
|
#SUBSYSTEMS=="usb", ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", SYMLINK+="tu-s9"
|
|
|
|
# CP2102-based serial adapters. Assume that all devices plugged in with this idVendor and idProduct are for serialout.
|
|
#cp210x-program --write-cp210x -m 10C4:EA60 \
|
|
# --set-product-string="Stratux Serialout" \
|
|
# --set-max-power=100 \
|
|
# --set-bus-powered=no
|
|
|
|
SUBSYSTEMS=="usb", ATTRS{interface}=="Stratux Serialout", SYMLINK+="serialout%n"
|
|
|
|
|
|
# SoftRF.
|
|
|
|
# SoftRF Standalone (NodeMCU or DoIt ESP32 devkit with CP2102 chip)
|
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", ATTRS{product}=="DIY SoftRF", SYMLINK+="softrf"
|
|
# TTGO T-Beam (ESP32 with OTP CP2104 chip)
|
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", ATTRS{product}=="CP2104 USB to UART Bridge Controller", SYMLINK+="softrf"
|
|
# Dongle Edition (LilyGO & SoftRF T-Motion. USB CDC ACM output)
|
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740", SYMLINK+="softrf"
|
|
# end of SoftRF section
|