Files
emcomm-tools-os-community/overlay/etc/udev/rules.d/76-et-lora.rules
T
2026-07-13 09:56:44 -07:00

37 lines
1.3 KiB
Plaintext

# Author : Gaston Gonzalez
# Date : 14 June 2026
# Updated : 13 July 2026
# Purpose : udev rules for supported LoRa devices
#
# Supported Devices
# 1. Heltec v4
# 2. Heltec v3 (disabled due to collision with et-radio devices)
# 3. LilyGO TTGO v2.1
# 4. RAK4631
#
# Preconditions:
# 1. LoRa device connected via USB cable
#
# Postconditions:
# 1. /dev/et-lora created
# Heltec v4
SUBSYSTEM=="tty", ATTRS{idVendor}=="303a", ATTRS{idProduct}=="1001", ENV{ET_LORA_DEVICE}=="" \
ACTION=="add", \
ENV{ET_LORA_DEVICE}="Heltec v4" GROUP="dialout", MODE="0660", SYMLINK+="et-lora"
# Heltec v3
# Uses the CP210x so this will collide with radios already supported by et-radio
#SUBSYSTEM=="usb", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", \
# GROUP="dialout", MODE="0660", SYMLINK+="et-lora"
# LilyGO TTGO v2.1
SUBSYSTEM=="tty", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="55d4", ENV{ET_LORA_DEVICE}=="" \
ACTION=="add", \
ENV{ET_LORA_DEVICE}="LillyGO TTGO v2.1" GROUP="dialout", MODE="0660", SYMLINK+="et-lora"
# RAK4631 (Tested with Delta Plus Nephilim HV 1.14)
SUBSYSTEM=="tty", ATTRS{idVendor}=="239a", ATTRS{idProduct}=="8029", ENV{ET_LORA_DEVICE}=="" \
ACTION=="add", \
ENV{ET_LORA_DEVICE}="Delta Plus Nephilim" GROUP="dialout", MODE="0660", SYMLINK+="et-lora"