durygus
Posts: 2
Joined: Fri Feb 26, 2016 11:18 am

One USB ports Raspberry Pi B+ like USB HID. Is it possible?

Fri Feb 26, 2016 11:27 am

One USB ports Raspberry Pi B+ like USB HID. Is it possible?

User avatar
experix
Posts: 204
Joined: Mon Nov 10, 2014 7:39 pm
Location: Coquille OR
Contact: Website

Re: One USB ports Raspberry Pi B+ like USB HID. Is it possib

Fri Feb 26, 2016 5:16 pm

I don't understand the question. I looked up USB HID in wikipedia, and it speaks of standards for human interface devices such as keyboards and mice. Certainly you can use those with a Raspberry Pi. If there is a specific not-so-common thing that you want to use I can only suggest checking whether it needs a special driver, or maybe just plug it in and see if it works.

User avatar
Douglas6
Posts: 4740
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: One USB ports Raspberry Pi B+ like USB HID. Is it possib

Fri Feb 26, 2016 5:30 pm

Raspberry Pis B and B+ and 2 cannot act as USB devices of any type (they're host only). The Pi Zero however, can. Google 'Raspberry Pi gadget mode'. Adafruit has excellent tutorials and video on the Zero's gadget mode.

fruitoftheloom
Posts: 20496
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: One USB ports Raspberry Pi B+ like USB HID. Is it possib

Fri Feb 26, 2016 5:33 pm

Douglas6 wrote:Raspberry Pis B and B+ and 2 cannot act as USB devices of any type (they're host only). The Pi Zero however, can. Google 'Raspberry Pi gadget mode'. Adafruit has excellent tutorials and video on the Zero's gadget mode.
Does "Gadget Mode" also work with A / A+ ????
Retired disgracefully.....

User avatar
Douglas6
Posts: 4740
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: One USB ports Raspberry Pi B+ like USB HID. Is it possib

Fri Feb 26, 2016 5:48 pm

Good question, and I don't know the answer. Someone smarter than me will reply. I think there's an extra USB pin on the Zero's OTG connector, but I'm guessing.

drgeoff
Posts: 9760
Joined: Wed Jan 25, 2012 6:39 pm

Re: One USB ports Raspberry Pi B+ like USB HID. Is it possib

Fri Feb 26, 2016 5:56 pm

fruitoftheloom wrote:
Douglas6 wrote:Raspberry Pis B and B+ and 2 cannot act as USB devices of any type (they're host only). The Pi Zero however, can. Google 'Raspberry Pi gadget mode'. Adafruit has excellent tutorials and video on the Zero's gadget mode.
Does "Gadget Mode" also work with A / A+ ????
ISTR previous discussions where it was stated that the relevant USB OTG mode sense pin is not tracked out from the SoC on the RPis available at that time. I don't know if that changed on later RPis or if the mode can be changed by software alone.

User avatar
thagrol
Posts: 1780
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: One USB ports Raspberry Pi B+ like USB HID. Is it possib

Fri Feb 26, 2016 7:47 pm

fruitoftheloom wrote:
Douglas6 wrote:Raspberry Pis B and B+ and 2 cannot act as USB devices of any type (they're host only). The Pi Zero however, can. Google 'Raspberry Pi gadget mode'. Adafruit has excellent tutorials and video on the Zero's gadget mode.
Does "Gadget Mode" also work with A / A+ ????
Not when I last tried it. With a kernel and driver compiled for gadget mode only, A and A+ were not recognized by the host. The same code running on a zero worked as expected.
This space unintentionally left blank.

gregeric
Posts: 1509
Joined: Mon Nov 28, 2011 10:08 am

Re: One USB ports Raspberry Pi B+ like USB HID. Is it possib

Fri Feb 26, 2016 8:58 pm

drgeoff wrote:
fruitoftheloom wrote:
Douglas6 wrote:Raspberry Pis B and B+ and 2 cannot act as USB devices of any type (they're host only). The Pi Zero however, can. Google 'Raspberry Pi gadget mode'. Adafruit has excellent tutorials and video on the Zero's gadget mode.
Does "Gadget Mode" also work with A / A+ ????
ISTR previous discussions where it was stated that the relevant USB OTG mode sense pin is not tracked out from the SoC on the RPis available at that time. I don't know if that changed on later RPis or if the mode can be changed by software alone.
The USB controlledr's OTG sense pin on both A & A+ is wired to ground ie hard-wired as host mode. The upstream dwc2 driver would have to be patched to ignore this & make it work (hints to a possible fix were posted in the gadget mode how-to thread). It can be overcome in software, after all it works as such on the vc4 from bootrom (BCM2708 Boot) & under ThreadX (Raspberr y PiMass storage).

Return to “Advanced users”