PINE64
phone keyboard as generic usb keyboard? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Accessories (https://forum.pine64.org/forumdisplay.php?fid=123)
+--- Thread: phone keyboard as generic usb keyboard? (/showthread.php?tid=15717)



phone keyboard as generic usb keyboard? - heocb - 01-08-2022

is the phone keyboard a full windows keyboard?

If so the keyboard has an usb header, if costs would be within reason,
the phone keyboard could be redesigned into a multi purpose keyboard.

It should then be able to act as a keyboard for none pinephones and pinephones, an usb port for
attaching blue tooth to the keyboard,
if the internal battery could enable such usage and an usb port for wired connection
to the
keyboard. Regarding
android phones a holder should be made. I do not know how many of such
keyboards are on the market? Could such a keyboard provide revenue.


RE: phone keyboard as generic usb keyboard? - VaZso - 01-08-2022

(01-08-2022, 08:29 AM)heocb Wrote: is the phone keyboard a full windows keyboard?

If so the keyboard has an usb header, if costs would be within reason,
the phone keyboard could be redesigned into a multi purpose keyboard.

What you mean about full Windows keyboard?
People usually refer full Windows keyboard as a regular keyboard which has a special button with a window as illustration.

However, standard keyboard used a serial connection and newer keyboards use USB connection which also has standard behaviour and sometimes a more advanced one.

Pinephone's keyboard is absolutely not a standard keyboard.

Simply it has a key matrix and a microcontroller which handles its rows and columns.
It's main purpose is to identify pressed keys (using rows / columns arrangement) then communicate it as an I2C slave device.

So if we are speaking about an USB connection, it depends on the microcontroller itself, the hardware design and also the firmware running on the microcontroller if it is capable to present itself as a USB HID device.

I haven't read too much about the microcontroller used in this device but as far as I read, it is absolutely not a common part (practically it was also designed in China) and although it supports USB communication it may be not easy to do it using an uncommon microcontroller.

Usually simplest microcontrollers only have USB device support and more expensive microcontrollers have both device and host support.
Device can be connected to a computer (like keyboard, mouse) and host may have a device connected (like bluetooth receiver, keyboard, mouse)...

So, PC usually only acts as a host and basic peripherals are devices.