# This file maintains persistent names for Honeywell barcode readers with the following interfaces: # CDC-ACM aka ComPort emulation # HidPos (USB Point of Sales usage pages) # SurePos (IBM OEM interface, for cash registers) # UVC (USB Video Class) # ReM Secondary configuration interfaces # # # See udev(7) for syntax. # Note: The links without serial number only works well if one device of same kind is connected. ACTION!="add|change|move|bind", GOTO="hsm_bcr_end" ############################################################################################### # ReM interface # Create symlinks for ReM # Put hsm into group plugdev ATTRS{interface}=="REM", ENV{INTERFACETYPE}="REM" ATTRS{idVendor}=="0c2e|0536", ENV{INTERFACETYPE}=="REM", SUBSYSTEM=="hidraw", \ SYMLINK+="hsm-rem-$attr{product}", SYMLINK+="hsm-rem-$attr{product}-$attr{serial}", \ SYMLINK+="hsm-rem", SYMLINK+="hsm-rem-$attr{serial}", \ MODE="660", GROUP="plugdev", GOTO="hsm_bcr_end" ############################################################################################### # HidPos interface # Create symlinks for HidPos # Put hsm into group plugdev ATTRS{interface}=="HID POS", ENV{INTERFACETYPE}="HIDPOS" ATTRS{idVendor}=="0c2e|0536", ENV{INTERFACETYPE}=="HIDPOS", SUBSYSTEM=="hidraw", \ SYMLINK+="hsm-$attr{product}", SYMLINK+="hsm-$attr{product}-$attr{serial}", \ SYMLINK+="hsm", SYMLINK+="hsm-$attr{serial}", \ MODE="660", GROUP="plugdev", GOTO="hsm_bcr_end" ############################################################################################### # SurePos interface # Create symlinks for SurePos # Put hsm into group plugdev ATTRS{interface}=="* Scanner (Usage = 4A00h, Usage Page = FF45h)", ENV{INTERFACETYPE}="SurePos" ATTRS{idVendor}=="0c2e|0536", ENV{INTERFACETYPE}=="SurePos", SUBSYSTEM=="hidraw", \ SYMLINK+="hsm-$attr{product}", SYMLINK+="hsm-$attr{product}-$attr{serial}", \ SYMLINK+="hsm", SYMLINK+="hsm-$attr{serial}", \ MODE="660", GROUP="plugdev", GOTO="hsm_bcr_end" ############################################################################################### # UVC interface # Create symlinks for video # We keep it in group video ATTRS{idVendor}=="0c2e|0536", SUBSYSTEM=="video4linux", \ SYMLINK+="hsm-video$attr{index}-$attr{product}", SYMLINK+="hsm-video$attr{index}-$attr{product}-$attr{serial}", \ SYMLINK+="hsm-video$attr{index}", SYMLINK+="hsm-video$attr{index}-$attr{serial}", \ GOTO="hsm_bcr_end" ############################################################################################### # CDC-ACM interface # Create symlinks for CDC-ACM # Put hsm into group plugdev # Ensure the ModemManager does not touch our device ATTRS{idVendor}=="0c2e|0536", SUBSYSTEM=="tty", \ SYMLINK+="hsm-$attr{product}", SYMLINK+="hsm-$attr{product}-$attr{serial}", \ SYMLINK+="hsm", SYMLINK+="hsm-$attr{serial}", \ MODE="660", GROUP="plugdev" ATTRS{idVendor}=="0c2e|0536", SUBSYSTEM=="tty", \ ENV{ID_MM_PORT_IGNORE}:="1", ENV{ID_MM_DEVICE_IGNORE}:="1", ENV{ID_MM_CANDIDATE}:="0" ############################################################################################### LABEL="hsm_bcr_end" # eof