by zanecodes · 4y ago · 0 comments
On the Photon at least, emulating a keyboard and mouse is incredibly easy and is baked into the firmware, but implementing the Barrier protocol so that it can appear as a client on the network and pass on the keyboard/mouse input seems like it's going to take some effort.
[1] https://docs.particle.io/photon/ [2] https://beagleboard.org/black
[1] https://docs.particle.io/reference/device-os/firmware/#movet...
There's a rewarding UX that can be made by switching the touchscreen to relative instead of absolute, you get more fine grained control.
https://qemu-stsquad.readthedocs.io/en/doc-updates/system/us...
I remember remote controlling an OS that needed me to install absolute touchscreen drivers to work best (probably a VM, but maybe Synergy drivers??)
If so, neat idea, and I've done stuff like that before. You can even have the client appliances be configuration free -- they announce themselves to the network and the server pushes out after pairing.
Interesting and fun to build, but I don't quite see the use of such a thing. It would still require running the barrier server on your laptop. I'd try to possibly go a different direction: A cheap device (RP2040 based?) that sits in between an external keyboard and your laptop. Other copies of the same hardware plug into the usb ports of other computers you'd wish to control.
I really wish my 49" Samsung Odyssey G9 supported DDC over DisplayPort, so I could also switch my monitor input via software, and essentially have a KVM without buying any additional hardware.
A major consideration for me is avoiding introducing any extra input latency between my input/output devices and my personal desktop, since I use it for gaming. I'm okay with trading off additional latency when controlling my work laptop in exchange for lower latency on my main desktop. That said, I may end up using my BeagleBone rather than my Photon, since it has an ethernet port, and running Linux may prove advantageous.
Personally I've had the same need (shared keyboard and mouse) and same requirement (work policy preventing additional software) for many years now so have resorted to using a KM switch (no V) bought off eBay.
If you look up "KM switch", the first thing you'll notice is that most search engines will automatically assume you meant "KVM switch" instead. This is what I believe contributes to the highly niche market and niche prices for KM switches. Anything under $100 is rare, hence used ones on eBay being the better option.
It should be possible to have a series of Atmel 32u4 microcontrollers acting as a keyboard/mouse devices controlled by a single host device over I2C. The problem is that people with the skills and people with the motivation haven't overlapped in a significant way.
Yeah... I, uh, have the skills (and I'm guessing you do too), but I don't see the point of the product. But you're right, a KM switch could be made very inexpensively. Could also be made modular, and wireless (for people who are into that thing).
You don't even need heterogeneous nodes, I think. All the nodes could be the same -- an RP2040 (now my favorite microcontroller for personal projects) can handle being a USB device, and host. The nodes could connect to each other through a daisy chained i2c, with another layer above for autoconfig.
What would be a price people would pay for such a thing? Say, 1 control node and 3 client nodes (allowing you to control 4 computers with 1 keyboard and mouse)? You say under $100 is rare?