Comments (4)
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.
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.
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.
Expired. (Please open new issue later)
from rasp_vusb.
Related Issues (18)
- ABS mouse movements do not work HOT 4
- Mouse proxy HOT 1
- INCLUDE Directories HOT 1
- get bus error
- API docs/C++ DLL HOT 4
- Writing to the hid_tester input screen doesnt do anything HOT 1
- Job for usb_server.service failed because the control process exited with error code HOT 1
- Increase hold of left click HOT 2
- [Question] Why send always a 1 in the Modifier Key byte HOT 2
- Compatible with Raspberry Pi Zero 2 HOT 3
- How to do a mouse click? HOT 1
- InputController.exe only searches for 192.168.178.255 HOT 1
- deploy script: ssh_init: Network error: Cannot assign requested address HOT 5
- Overall working flow HOT 1
- Question: If i wanted to directly comunicate to the pi with mouse input with Python how would I do that HOT 8
- Fail in "Create Mouse/Keyboard USB gadgets" HOT 2
- Run by Pi HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rasp_vusb.