VOGONS


First post, by N0tiK

User metadata
Rank Newbie
Rank
Newbie

Hi Gentleman, new member here.

I'm looking for a solution for my Windows SBC to change a specific USB port serial
to act as a Mouse device to be connected via a USB male to male connector
between the Mini pc and Host pc to manipulate mouse events externally
without the host pc recognizing mouse event manipulation

I've been using parsec as a RDP for mouse movement but some games
have a hissy fit and completely disable win32api.

I'm hoping for something software related, nothing external like an Arduino
staying away from hardware is strictly ideal.

If this isn't the right forum/sub forum for this question ill kindly move on,
Cheers

Attachments

Last edited by N0tiK on 2024-02-28, 02:27. Edited 2 times in total.

Reply 1 of 4, by GrizzlyAdams

User metadata
Rank Newbie
Rank
Newbie

That's not how USB works. USB A ports can't just talk to other USB A ports. What you want is a USB On-The-Go port which can flip flop between host and guest roles. Typically those are USB-C, or micro-AB or mini-AB plugs found on SBCs and things like an Pi Pico etc. If you are running linux on your "Mini PC" and it has a OTG port, you can use the HID Gadget to emulate a USB mouse through that OTG port. https://docs.kernel.org/usb/gadget_hid.html You still end up writing a fair bit of code to stuff reports into the queue to send to the USB host.

Reply 2 of 4, by N0tiK

User metadata
Rank Newbie
Rank
Newbie
GrizzlyAdams wrote on 2024-02-28, 01:47:

That's not how USB works. USB A ports can't just talk to other USB A ports. What you want is a USB On-The-Go port which can flip flop between host and guest roles. Typically those are USB-C, or micro-AB or mini-AB plugs found on SBCs and things like an Pi Pico etc. If you are running linux on your "Mini PC" and it has a OTG port, you can use the HID Gadget to emulate a USB mouse through that OTG port. https://docs.kernel.org/usb/gadget_hid.html You still end up writing a fair bit of code to stuff reports into the queue to send to the USB host.

Ah yeah ive seen such, ive been researching a little bit, please bare with me with my lack of knowledge, but can i go USB input to the SBC and out via GPIO or SPI to a microcontroller to USB?

Reply 3 of 4, by myne

User metadata
Rank Member
Rank
Member
GrizzlyAdams wrote on 2024-02-28, 01:47:

That's not how USB works. USB A ports can't just talk to other USB A ports. What you want is a USB On-The-Go port which can flip flop between host and guest roles. Typically those are USB-C, or micro-AB or mini-AB plugs found on SBCs and things like an Pi Pico etc. If you are running linux on your "Mini PC" and it has a OTG port, you can use the HID Gadget to emulate a USB mouse through that OTG port. https://docs.kernel.org/usb/gadget_hid.html You still end up writing a fair bit of code to stuff reports into the queue to send to the USB host.

A hundred years ago I had a usbA-A "crossover cable" and it worked fine with the specific software it was bundled with.

Assuming you're right though, can't a couple of those GPIO pins become "USB" pins?
It's only a mouse. I assume boring USB1 speeds will be fine.

Alternately, there's some headers for USB on the board. Switch the I/O pins on the header and see if it works?

Things I built:
Mechwarrior 2 installer for Windows 10/11 Re: A comprehensive guide to install and play MechWarrior 2 on new versions on Windows.
Dos+Windows 3.11 auto-install iso template (for vmware)

Reply 4 of 4, by darry

User metadata
Rank l33t++
Rank
l33t++

This might help, assuming the computer that you want to control with your virtual mouse supports serial mice.

https://github.com/mborjesson/USB-Mouse-to-Serial

Alternatively, maybe might be able to connect a virtual USB mouse over IP .

https://usbip.sourceforge.net/