Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Apr 2022 12:01:26 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        Peter Jeremy <peterj@freebsd.org>, freebsd-arm@freebsd.org, freebsd-usb@freebsd.org
Subject:   Re: USB-OTG on BananaPi M1
Message-ID:  <4ce2559a-56a7-cad4-a884-16781e6e84b2@selasky.org>
In-Reply-To: <YmSoduTyzSfTbvQh@server.rulingia.com>
References:  <YmSoduTyzSfTbvQh@server.rulingia.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 4/24/22 03:31, Peter Jeremy wrote:
> (I actually want to emulate a keyboard but I thought I'd start with
> something that's documented to work).

Some hints for that:

> usbtest
> [0] - Select Computer Mode:
> 
>    1) This computer is Running the Device Side
>    2) This computer is Running the Host Side
>    x) Return to previous menu
> 
>>1
> [0.1] - Select Device Mode Test Group:
> 
>      1) Audio (UAUDIO)
>      2) Mass Storage (MSC)
>      3) Ethernet (CDCE)
>      4) Keyboard Input Device (UKBD)
>      5) Mouse Input Device (UMS)
>      6) Message Transfer Protocol (MTP)
>      7) Modem (CDC)
>      8) Generic Endpoint Loopback (GENERIC)
>      x) Return to previous menu
> 
>>4
> [0.1.4] - Select Keyboard Model:
> 
>        1) Generic Keyboard 
>        x) Return to previous menu 
> 
>>1
> [0.1.4.1] - Default Keyboard Settings:
> 
>          1) Set silent mode (selected)
>          2) Set pattern mode 
>          3) Change pattern: 'abcdefpattern'
>          4) Change key press interval: 1023 ms
>          x) Return to previous menu
>          s: Ready for enumeration

And:

/boot/kernel/g_keyboard.ko

Patches are welcome!

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4ce2559a-56a7-cad4-a884-16781e6e84b2>