by ShadowBanThis01 · 3y ago · 0 comments
Do you expect your Keyboard to act as a USB Host?
If your Keyboard were USB OTG, then it would be a keyboard when plugged into a computer, but a mouse could plug into the keyboard and then the keyboard would be the USB Host. This bi-directional feature would be useful for maybe a modern Commodore 64 like device or something (I dunno, just making stuff up).
Traditionally, USB OTG was for phones. They want to be a device when plugged into a computer, but the phones also want to accept a mouse/keyboard/USB Mass Storage.
"OTG" is inherently meaningless. Kind of like a "red flag warning" (for any CA readers).
On-The-Go: An OTG product is a portable device that uses a single Micro-AB receptacle (and no other USB receptacles) to operate at times as a USB Targeted Host and at times as a USB peripheral. OTG devices shall always operate as a standard peripheral when connected to a standard USB host.
You can get the rest of the details from the specification itself: https://www.usb.org/document-library/go-and-embedded-host-su...As to "meaningless is fine..." no. And doubly no to the abbreviation of a meaningless name.
"Dual-mode" or "dual-role" USB would make at least some sense and convey some information.
You underestimate the complexity of modern protocols and the amount of computational power in everyday devices.
All USB devices have more compute power than the entirety of the Apollo Moon Lander program. And we use that compute power to format USB checksums, USB packets, and other such protocol details.
In practice, a keyboard today has the compute potential exceeding that of supercomputers of decades past. We just don't think about it very much.
---------
A modern mouse is more obvious, in that it uses convolution kernels over the scanned 2d infrared picture to figure out if the image moved right, left, up or down about 100x per second and reports the results to the host.
That's how optical mouse works. Lots and lots of matrix multiplications and 2d digital signal processing...
a) A keyboard has a little computer in it too. Fundamentally they're both computers. It's not the "computerness" that matters, it's "is this normally a peripheral?"
b) This is normally a peripheral - you connect it to a host computer to program it.
"OTG" is such a gallingly stupid, uninformative term.
1. You can plug them into your PC and they act as a device (e.g. mass storage device for downloading your photos, drawing power to charge)
2. You can plug devices into them, and they'll act as a host (e.g. you can plug in a mouse if your touchscreen is broken, download the photos from your non-smartphone camera onto your smartphone, supply power to charge something else)
3. They'll do all this through a single port.
Hardly any normal people use these capabilities, as the cables are somewhat rare and the software support is somewhat patchy. But if you're buying a development board ready to make your own product, you can read this as "can be a usb host or device, whichever your product needs"