Подключил графический планшет к виртуальной машине, в доске отладки появились unclaimed HID input в виде пар usage и value. Более-менее разобравшись какой usage какие данные передаёт, решил их как-то обработать. Но как?
Единственный вариант, который мне пришёл в голову: писать драйвер. Но, судя по информации из той же доски отладки, подключается он очень страшно, в связи с чем два вопроса:
1)Как писать к такому драйвер?
2)Можно ли обойтись без драйвера и программой ловить и обрабатывать эти unclaimed HID input?
При расшифровке report descriptor верхний не сообщает ничего полезного кроме как что usage определяется вендором, а нижний говорит, что у нас на руках User page: Digitizers, Usage: Pointers, и начинает что-то передавать про стилус, но похоже дескриптор не полный, видимо не влез в строку, и дальше понять ничего нельзя.
Прикручиваем планшет
-
- Attachments
-
-
board_out.jpg (47.38 KiB)Вывод доски отладки Viewed 9688 times
-
There is usbhid driver by CleverMouse. My understanding is that you should extend it, not write a new one.Михалыч wrote:1)Как писать к такому драйвер?
The message 'unclaimed HID input' goes from /drivers/usb/usbhid/unclaimed.
AFAIK, no.Михалыч wrote:2)Можно ли обойтись без драйвера и программой ловить и обрабатывать эти unclaimed HID input?
You can open debug logs in any text editor: a) close the debug board, b) find the log in /tmp0/1/BOARDLOG.TXT.Михалыч wrote:похоже дескриптор не полный, видимо не влез в строку, и дальше понять ничего нельзя.
For testing purposes it may also be convenient to duplicate debug log directly to the screen. There is an option for that on the blue boot screen.
You can also press F2 on the Debug Board
Из хаоса в космос
Yes, I tried to understand it, but couldn't figure out where exactly it recognizes the type of device and gives control to the corresponding part of this driver and which part of it I should change.dunkaist wrote:There is usbhid driver by CleverMouse. My understanding is that you should extend it, not write a new one.
The message 'unclaimed HID input' goes from /drivers/usb/usbhid/unclaimed.
I'm not familiar with this particular driver but look here.Михалыч wrote:Yes, I tried to understand it, but couldn't figure out where exactly it recognizes the type of device and gives control to the corresponding part of this driver and which part of it I should change.
Who is online
Users browsing this forum: No registered users and 0 guests