Bouni / tiptoi-dl

A Linux CLI tool for downloading and installing TipToi audiofiles
0 stars 0 forks source link

Figure out how to detect tiptoi pen by PID/VID #1

Open Bouni opened 3 months ago

Bouni commented 3 months ago

Ideally the toll would figure out if a tiptoi pen is connected via the PID/VID.

There is a list of PID/VIDs http://www.linux-usb.org/usb.ids

#
#   List of USB ID's
#
#   Maintained by Stephen J. Gowdy <linux.usb.ids@gmail.com>
#   If you have any new entries, please submit them via
#       http://www.linux-usb.org/usb-ids.html
#   or send entries as patches (diff -u old new) in the
#   body of your email (a bot will attempt to deal with it).
#   The latest version can be obtained from
#       http://www.linux-usb.org/usb.ids
#
# Version: 2024.07.04
# Date:    2024-07-04 20:34:02
#

# Vendors, devices and interfaces. Please keep sorted.

# Syntax:
# vendor  vendor_name
#   device  device_name             <-- single tab
#       interface  interface_name       <-- two tabs
...
2546  Ravensburger
    e301  TipToi Pen
...

So the VID should be 2546 and the PID should be E301.

Bouni commented 3 months ago

Maybe its enough to use /dev/disk/by-label/ as the pen is always named TOI as far as I remember