[Bglug] Using Raspberry Pi to emulate USB keyboard?

William Park opengeometry at yahoo.ca
Sat Dec 5 20:49:44 EST 2015


Yeah, what I found so far:
    - Raspberry Pi (Model B+) cannot do USB client and doesn't have
      physical port.
    - But, BeagleBone Black and ODROID-U3 can do USB client, and do have
      mini-B port, and their online specs do mention "USB client mode".
I have all three, so it's good starting point.

It seems that USB Gadget interface is the key to this issue.  So, begins
my reading...
-- 
William

On Sat, Dec 05, 2015 at 08:12:50PM -0500, Andrew Howlett wrote:
> looks like what you want to do has been done with arduino
> 
> http://blog.petrockblock.com/2012/05/19/usb-keyboard-with-arduino-and-v-usb-library-an-example/ <http://blog.petrockblock.com/2012/05/19/usb-keyboard-with-arduino-and-v-usb-library-an-example/>
> 
> raspberry pi is harder. you probably already found this link on stackexchange, but just in case:
> 
> http://raspberrypi.stackexchange.com/questions/32197/can-the-pi-emulate-an-hid-device-with-via-usb <http://raspberrypi.stackexchange.com/questions/32197/can-the-pi-emulate-an-hid-device-with-via-usb>
> 
> but that doesn???t provide any actual code, just a good description of the problem on pi
> 
> i suppose you could pass instructions from the pi to an arduino and use the arduino to emulate the keyboard. Mission completed.
> 
> later,
> andrew.
> 
> > On 3 Dec 2015, at 2:31 PM, William Park <opengeometry at yahoo.ca> wrote:
> > 
> > Following on the recent discussion of $5 Raspberry Pi...
> > 
> > Do you guys know if it's possible to use Raspberry Pi to emulate USB keyboard?  As far as PC is concerned, it's receiving keypresses from some keyboard, which happens to be RPi faking as keyboard.
> > 
> > If so, where do I start my reading?
> > -- 
> > William
> >   
> > _______________________________________________
> > Group mailing list
> > Group at bglug.ca
> > http://bglug.ca/mailman/listinfo/group_bglug.ca
> 




More information about the Group mailing list