![如何驱动这个智能钥匙?](https://linux22.com/image/1429709/%E5%A6%82%E4%BD%95%E9%A9%B1%E5%8A%A8%E8%BF%99%E4%B8%AA%E6%99%BA%E8%83%BD%E9%92%A5%E5%8C%99%EF%BC%9F.png)
如果此问题不符合 SuperUser SE 的目标,请随意迁移。它可能是 StackOverflow 或 Unix & Linux SE 的主题。无论如何,我在这里...
我想要连接一个智能钥匙,比如说:
$ lsusb
Bus 002 Device 008: ID 073d:0025 Eutron S.p.a. SmartKey 3
一把 Eutron 智能钥匙。据我所知,这把钥匙是可以使用的,因为我可以使用它,而且公交车可以识别它。进一步说:
$ sudo lsusb -s 002:008 -v
Bus 002 Device 008: ID 073d:0025 Eutron S.p.a. SmartKey 3
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 255 Vendor Specific Class
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x073d Eutron S.p.a.
idProduct 0x0025 SmartKey 3
bcdDevice 1.31
iManufacturer 3 EUTRON
iProduct 1 SmartKey 3
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 18
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 20mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Device Status: 0x0000
(Bus Powered)
dmesg
然后我通过监听以下内容来查看输出和相关事件:
$ tail /var/log/syslog
kernel: [ *] usb 2-1.2: new low-speed USB device number 8 using ehci-pci
kernel: [ *] usb 2-1.2: New USB device found, idVendor=073d, idProduct=0025
kernel: [ *] usb 2-1.2: New USB device strings: Mfr=3, Product=1, SerialNumber=0
kernel: [ *] usb 2-1.2: Product: SmartKey 3
kernel: [ *] usb 2-1.2: Manufacturer: EUTRON
mtp-probe: checking bus 2, device 8: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2"
mtp-probe: bus: 2, device: 8 was not an MTP device
我可以看到媒体传输协议不是这种硬件的原生协议,但什么也没发生。内核没有做出其他决定。如果我深入研究,我可以看到正在使用默认驱动程序,但这没有帮助:
$ lspci -v
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 04) (prog-if 20 [EHCI])
Subsystem: Dell Device 0492
Flags: bus master, medium devsel, latency 0, IRQ 17
Memory at e2e50000 (32-bit, non-prefetchable) [size=1K]
Capabilities: <access denied>
Kernel driver in use: ehci-pci
所以,我想知道如何才能弄清楚:
- 什么应该是正确的驱动程序(使用 ID 在互联网上没有匹配项,它存在于 Debian 中吗?我知道 Windows 有一些技巧,但这不是目的)才能正确驱动密钥?
- 那么,接口文件是什么样的呢?