Giter Site home page Giter Site logo

Comments (4)

stjeong avatar stjeong commented on September 27, 2024

Sorry for that. Because I have no physical device installing Linux, I haven't ever tested it on the environment.

Anyway, for troubleshooting, you have to check triple_usb_device.sh at Line 25 echo command as follows,

https://github.com/stjeong/rasp_vusb/blob/master/script/triple_usb_device.sh#L25

that means HID device report descriptor. If you run that script, mouse and keyboard device will be recognized at Linux. If not, well... you have to modify the descriptor for Linux.

from rasp_vusb.

phyos-eng-backup avatar phyos-eng-backup commented on September 27, 2024

Hello! Thank you for responding. After looking at the current HID device descriptor at https://github.com/stjeong/rasp_vusb/blob/master/script/triple_usb_device.sh#L25, we've encountered two HID describing two mouse devices. Whats the reasoning behind this? Shouldn't there just be one? Thank you!

from rasp_vusb.

stjeong avatar stjeong commented on September 27, 2024

Because, I failed to make "one" HID device descriptor for mouse report of absolute position and relative position.

At first, I'd like to use this one,

05, 01 USAGE_PAGE (Generic Desktop)
09, 30 USAGE (X)
09, 31 USAGE (Y)
15, 81 LOGICAL_MINIMUM (-127)
25, 7f LOGICAL_MAXIMUM (127)
75, 08 REPORT_SIZE (8)
95, 02 REPORT_COUNT (2)
81, 06 INPUT (Data, Var, Rel)

05, 01 USAGE_PAGE (Generic Desktop)
09, 30 USAGE (X)
09, 31 USAGE (Y)
15, 00, LOGICAL_MINIMUM(0)
26, ff, 7f LOGICAL_MAXIMUM(32767)
75, 10 REPORT_SIZE (16)
95, 02 REPORT_COUNT (2)
81, 02 INPUT (Data, Var, Abs)

for this purpose.

struct mouse_report_t
{
uint8_t buttons;
int8_t relX;
int8_t relY;
int16_t absX;
int16_t absY;
};

But, its report can't be recognized. So I have to provide two mouse, one is for absolute position, another is for relative position.

struct mouse_rel_report_t
{
uint8_t report_id; /* 2 */
uint8_t buttons;
int8_t x;
int8_t y;
};

struct mouse_abs_report_t
{
uint8_t report_id; /* 3 */
int16_t x;
int16_t y;
int8_t wheel;
};

05, 01 USAGE_PAGE (Generic Desktop)
09, 02 USAGE (Mouse)
a1, 01 COLLECTION (Application)
09, 01 USAGE (Pointer)
a1, 00 COLLECTION (Physical)
85, 02 REPORT_ID (2)
05, 09 USAGE_PAGE (Button)
19, 01 USAGE_MINIMUM (Button 1)
29, 03 USAGE_MAXIMUM (Button 3)
15, 00 LOGICAL_MINIMUM (0)
25, 01 LOGICAL_MAXIMUM (1)
95, 03 REPORT_COUNT (3)
75, 01 REPORT_SIZE (1)
81, 02 INPUT (Data, Var, Abs)
95, 01 REPORT_COUNT (1)
75, 05 REPORT_SIZE (5)
81, 03 INPUT (Cnst, Var, Abs)
05, 01 USAGE_PAGE (Generic Desktop)
09, 30 USAGE (X)
09, 31 USAGE (Y)
15, 81 LOGICAL_MINIMUM (-127)
25, 7f LOGICAL_MAXIMUM (127)
75, 08 REPORT_SIZE (8)
95, 02 REPORT_COUNT (2)
81, 06 INPUT (Data, Var, Rel)
C0 END_COLLECTION
C0 END_COLLECTION

05, 01 USAGE_PAGE (Generic Desktop)
09, 02 USAGE (Mouse)
a1, 01 COLLECTION (Application)
09, 01 USAGE (Pointer)
a1, 00 COLLECTION (Physical)
85, 03 REPORT_ID (3)
05, 01 USAGE_PAGE (Generic Desktop)
09, 30 USAGE (X)
09, 31 USAGE (Y)
15, 00, LOGICAL_MINIMUM(0)
26, ff, 7f LOGICAL_MAXIMUM(32767)
75, 10 REPORT_SIZE (16)
95, 02 REPORT_COUNT (2)
81, 02 INPUT (Data, Var, Abs)
09, 38 USAGE (Wheel)
15, 81 LOGICAL_MINIMUM (-127)
25, 7f LOGICAL_MAXIMUM (127)
75, 08 REPORT_SIZE (8)
95, 01 REPORT_COUNT (1)
81, 06 INPUT (Data, Var, Rel)
C0 END_COLLECTION
C0 END_COLLECTION

Can you make the one descriptor?

from rasp_vusb.

stjeong avatar stjeong commented on September 27, 2024

Expired. (Please open new issue later)

from rasp_vusb.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.