Temat: Uniwersalny pilot do routera
Dostępny jest za kilkadziesiąt złotych na aukcjach internetowych. Okazało się że jest to zestaw emulujący zwykłą klawiaturę i mysz na usb - przyjrzyjcie się uważnie pilotowi to zauważycie i mysz i pełną klawiaturę znakową (obsługiwaną identycznie jak tak w telefonach).
May 25 09:02:15 OpenWrt kern.info kernel: [ 201.340000] input: HID 1d57:ad02 as /devices/platform/ohci-platform/usb1/1-1/1-1:1.0/input/input0
May 25 09:02:15 OpenWrt kern.info kernel: [ 201.350000] generic-usb 0003:1D57:AD02.0001: input,hiddev0: USB HID v1.10 Keyboard [HID 1d57:ad02] on usb-ohci-platform-1/input0
May 25 09:02:15 OpenWrt kern.info kernel: [ 201.380000] input: HID 1d57:ad02 as /devices/platform/ohci-platform/usb1/1-1/1-1:1.1/input/input1
May 25 09:02:15 OpenWrt kern.info kernel: [ 201.380000] generic-usb 0003:1D57:AD02.0002: input,hiddev0: USB HID v1.10 Mouse [HID 1d57:ad02] on usb-ohci-platform-1/input1
May 25 09:02:15 OpenWrt kern.info kernel: [ 201.400000] usbcore: registered new interface driver usbhid
May 25 09:02:15 OpenWrt kern.info kernel: [ 201.400000] usbhid: USB HID core driver
Pod OpenWrt wykrywany jest jako urządzenie:
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=1d57 ProdID=ad02 Rev= 1.05
C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=01 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=10ms
I:* If#= 1 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=usbhid
E: Ad=82(I) Atr=03(Int.) MxPS= 5 Ivl=10ms
Obsługa - standardowo jak to w przypadku klawiatury - instalujemy kmod-usb-hid oraz triggerhappy, robimy odpowiednie przypisanie klawiszy i akcji które mają wykonywać. Bardzo prosty i nieskompilowany pilot.