"Initial commit to Gerrit"
[profile/ivi/gpsd.git] / gpsd.rules
1 # udev rules for gpsd
2 #
3 # This file is Copyright (c) 2010 by the GPSD project
4 # BSD terms apply: see the file COPYING in the distribution root for details.
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 - something similar will apply on 
14 # other distributions:
15
16 #   /lib/udev/rules.d/025_gpsd.rules
17 #   /lib/udev/gpsd.hotplug.wrapper
18 #   /lib/udev/gpsd.hotplug
19
20 # Setting the link in /lib/udev/rules.d activates the rule and determines
21 # when to run it on boot (similar to init.d processing).
22
23 SUBSYSTEM!="tty", GOTO="gpsd_rules_end"
24
25 # Prolific Technology, Inc. PL2303 Serial Port
26 ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper"
27 # ATEN International Co., Ltd UC-232A Serial Port [pl2303]
28 ATTRS{idVendor}=="0557", ATTRS{idProduct}=="2008", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper"
29 # FTDI 8U232AM / FT232
30 ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper"
31 # Cypress M8/CY7C64013 (DeLorme uses these)
32 ATTRS{idVendor}=="1163", ATTRS{idProduct}=="0100", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper"
33 # PS-360 OEM (Microsoft GPS sold with Street and Trips 2005)
34 ATTRS{idVendor}=="067b", ATTRS{idProduct}=="aaa0", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper"
35 # Garmin International GPSmap, various models (tested with Garmin GPS 18 USB)
36 ATTRS{idVendor}=="091e", ATTRS{idProduct}=="0003", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper"
37 # Cygnal Integrated Products, Inc. CP210x Composite Device (Used by Holux m241 and Wintec grays2 wbt-201)
38 ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper"
39 # u-blox AG, u-blox 5 (tested with Navilock NL-402U)
40 ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a5", SYMLINK="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper"
41
42 ACTION=="remove", RUN+="/lib/udev/gpsd.hotplug.wrapper"
43
44 LABEL="gpsd_rules_end"