-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Beirui Kone A2 Remote Control Hardware #62
Comments
Please connect a serial cable to GPIO0 and post the debug output while plugging the device in. |
here is it's hid report descriptor: |
Using http://eleccelerator.com/usbdescreqparser/ this looks like a normal mouse+keyboard combo. |
Actually beirui kone A2 normally send mouse report in absolute position format. Is there any way to let PS/2 support absolute position mouse just like a touch screen? |
No not possible, absolute mode in PS/2 is implemented in proprietary drivers like for older laptop touchpads which I can't support. |
I only see the report for the keyboard, not the mouse. However, when I move the mouse, the cursor jumps to the bottom-right corner. It seems that the keyboard is working normally. Here is part of the report: HID(1,0,MOUSE) mounted HID(1,0,MOUSE) registered for reports HID(1,1,MOUSE) registered for reports HID(1,2,KEYBOARD) registered for reports Thank you for your help! |
This log output only says you pressed the Win+D shortcut. |
I modified ps2ms.c to set ms_streaming to true in an attempt to get the mouse pointer position feedback. However, when I recompile, I encounter the following error: [ 25%] Performing configure step for 'ELF2UF2Build' Could you please help me understand what I might be doing wrong? Thank you! |
Make sure you are on Pico-SDK 1.5.1 and TinyUSB 0.17.0, see: https://github.com/No0ne/ps2x2pico?tab=readme-ov-file#build |
This is the data reported by my device, and all the data is showing up in the bottom right corner. |
What kind of device is this? If I search for "Beirui Kone A2" nothing shows up. |
https://sunlogin.oray.com/hardware/kongkong2 |
Ahh, ok! Does it support relative mouse movements? |
This A2 device is used for forwarding keyboard and mouse data, meaning it forwards the data from the controlling end to the controlled end. For the ps2x2pico, the A2 acts as an input device. The data you see above is being sent from the A2 to the ps2x2pico. |
I will try it with PiKVM (not using the Pico HID bridge) which does absolute and relative mouse on USB. |
I don't see support for absolute and relative mouse movements in this device. Where in the code can I print out the raw received data? I will send you the code for you to take a look. Thank you. |
Without relative mode it will not work, as I said PS/2 doesn't support absolute mode without special drivers. The raw data is coming in here: https://github.com/No0ne/ps2x2pico/blob/main/src/usbin.c#L645 |
I'm experiencing a similar issue with my A2 device. When I quickly move the cursor back and forth on the controlling end, I can see the cursor moving on the controlled end, but it quickly moves to the corner. I was thinking of using this approach to modify the code, but I'm having trouble getting it to compile without errors. If you could help me with this, it would be greatly appreciated. Here is the pseudocode for the idea: // Pseudocode: Convert mouse absolute coordinates to relative coordinates void process_mouse_data(int x_abs, int y_abs) {
} |
Try this, replace: void ms_send_movement(u8 buttons, s8 x, s8 y, s8 z) {
ms_db = buttons;
ms_dx += x;
ms_dy += y;
ms_dz += z;
} With this: s8 x_prev = 0;
s8 y_prev = 0;
void ms_send_movement(u8 buttons, s8 x, s8 y, s8 z) {
ms_db = buttons;
ms_dx += x - x_prev;
ms_dy += y - y_prev;
ms_dz += z;
x_prev = x;
y_prev = y;
} |
This works, but it seems that the network speed is too slow, causing the cursor to occasionally move straight up and down or left and right. Additionally, sometimes the cursor can move in a curved path, but it is very jerky and appears polygonal, with discontinuous movement. |
So,why not just use the relative mode? |
Maybe the conversion to 8-bit signed cuts of the larger absolute values: https://github.com/No0ne/ps2x2pico/blob/main/src/usbin.c#L166 |
The "controlled end mouse" cannot be set to relative mode. |
I still haven't managed to get it working, and I think I'm going to give up. |
留个联系方式,也许可以再讨论下 |
How much does this KVM cost? Can you ship one to Europe? |
I'm interested in trying out a remote control hardware: Beirui Kone A2. Does this device have support? If not, are there any plans to add support for it?
Thank you!
The text was updated successfully, but these errors were encountered: