1# udev rules for gpsd 2# 3# This file is Copyright (c) 2010 by the GPSD project 4# SPDX-License-Identifier: BSD-2-clause 5# 6# GPSes don't have their own USB device class. They're serial-over-USB 7# devices, so what you see is actually the ID of the serial-over-USB chip. 8# Fortunately, just two of these account for over 80% of consumer-grade 9# GPS sensors. The gpsd.hotplug wrapper script will tell a running gpsd 10# that it should look at the device that just went active, because it 11# might be a GPS. 12# 13# The following setup works on Debian and Ubuntu - something similar 14# will apply on other distributions: 15# 16# /lib/udev/rules.d/25-gpsd.rules 17# /lib/udev/gpsd.hotplug 18# 19# Setting the link in /lib/udev/rules.d activates the rule and determines 20# when to run it on boot (similar to init.d processing). 21 22SUBSYSTEM!="tty", GOTO="gpsd_rules_end" 23 24# Prolific Technology, Inc. PL2303 Serial Port [linux module: pl2303] 25ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", SYMLINK+="gps%n", @udevcommand@ 26# ATEN International Co., Ltd UC-232A Serial Port [linux module: pl2303] 27ATTRS{idVendor}=="0557", ATTRS{idProduct}=="2008", SYMLINK+="gps%n", @udevcommand@ 28# PS-360 OEM (GPS sold with MS Street and Trips 2005) [linux module: pl2303] 29ATTRS{idVendor}=="067b", ATTRS{idProduct}=="aaa0", SYMLINK+="gps%n", @udevcommand@ 30# FTDI 8U232AM / FT232 [linux module: ftdi_sio] 31ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SYMLINK+="gps%n", @udevcommand@ 32# Cypress M8/CY7C64013 (Delorme uses these) [linux module: cypress_m8] 33ATTRS{idVendor}=="1163", ATTRS{idProduct}=="0100", SYMLINK+="gps%n", @udevcommand@ 34# Cypress M8/CY7C64013 (DeLorme LT-40) 35ATTRS{idVendor}=="1163", ATTRS{idProduct}=="0200", SYMLINK+="gps%n", @udevcommand@ 36# Garmin International GPSmap, various models (tested with Garmin GPS 18 USB) [linux module: garmin_gps] 37ATTRS{idVendor}=="091e", ATTRS{idProduct}=="0003", SYMLINK+="gps%n", @udevcommand@ 38# Cygnal Integrated Products, Inc. CP210x Composite Device (Used by Holux m241 and Wintec grays2 wbt-201) [linux module: cp210x] 39ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", SYMLINK+="gps%n", @udevcommand@ 40# Cygnal Integrated Products, Inc. [linux module: cp210x] 41ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea71", SYMLINK+="gps%n", @udevcommand@ 42# u-blox AG, u-blox 5 (tested with Navilock NL-402U) [linux module: cdc_acm] 43ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a5", SYMLINK+="gps%n", @udevcommand@ 44# u-blox AG, u-blox 6 (tested with GNSS Evaluation Kit TCXO) [linux module: cdc_acm] 45ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a6", SYMLINK+="gps%n", @udevcommand@ 46# u-blox AG, u-blox 7 [linux module: cdc_acm] 47ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a7", SYMLINK+="gps%n", @udevcommand@ 48# u-blox AG, u-blox 8 (tested with GNSS Evaluation Kit EKV-M8N) [linux module: cdc_acm] 49ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a8", SYMLINK+="gps%n", @udevcommand@ 50# MediaTek (tested with HOLUX M-1200E) [linux module: cdc_acm] 51ATTRS{idVendor}=="0e8d", ATTRS{idProduct}=="3329", SYMLINK+="gps%n", @udevcommand@ 52# Telit wireless solutions (tested with HE910G) [linux module: cdc_acm] 53ATTRS{interface}=="Telit Wireless Module Port", ATTRS{bInterfaceNumber}=="06", SYMLINK+="gps%n", @udevcommand@ 54# 55# u-blox AG, u-blox 8 (tested with u-blox8 GNSS Mouse Receiver / GR-801) [linux module: cdc_acm] 56ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", SYMLINK+="gps%n", TAG+="systemd", ENV{SYSTEMD_WANTS}="gpsdctl@%k.service" 57 58ACTION=="remove", @udevcommand@ 59 60LABEL="gpsd_rules_end" 61