markosjal
Posts: 11
Joined: Sun Mar 18, 2012 3:03 pm

Re: Pi USB as a device port

Sun Mar 18, 2012 3:22 pm

I know the Pi USB will work as a host however will the hardware allow it to work as a USB device?

I am interested in making a multifunction device that needs both USB host and USB device port.

Maybe there are projects already doing the following on the Pi?

Applications:

1) would be able to map Network drives such as SMB/NFS and emulate a memory stick in order to present them to any device with a USB port for a memory stick/Hard disk. What some have called a "reverse NAS". (this is where the USB device mode would be required)

2) would be able to connect to a WiFi (via USB Dongle) access point when in range , however when not in range, would change in order to act as an access point. May also allow the optional use of mobile broadband USB device, and/or bluetooth

3) Of course would allow the use of storage devices Hard disks and memory sticks

Mark

User avatar
Burngate
Posts: 6006
Joined: Thu Sep 29, 2011 4:34 pm
Location: Berkshire UK Tralfamadore
Contact: Website

Re: Pi USB as a device port

Sun Mar 18, 2012 4:06 pm

Short answer: No

Slightly longer answer: model B - No. Model A (when they hatch) maybe.

The google search box on the front page takes you to

http://www.raspberrypi.org/for.....-read-this

bredman
Posts: 1415
Joined: Tue Jan 17, 2012 2:38 pm

Re: Pi USB as a device port

Tue Mar 20, 2012 10:31 am

For item 2 above, you do not need to change the USB configuration. You need a WiFi module which supports both client mode and AP mode. When acting as an AP, the WiFi device is still a USB device, not a USB host.

User avatar
SN
Posts: 1014
Joined: Mon Feb 13, 2012 8:06 pm
Location: Romiley, UK
Contact: Website

Re: Pi USB as a device port

Tue Mar 20, 2012 11:22 am

surely you would need some linux drivers that would sit behind the usb wifi dongle to support acting as a host (as I assume is in Android 2.2 upwards when you enable AP / Hotspot functionality) because you will need the raspi to act as a router-cum-dhcp server at the very least
Steve N – binatone mk4->intellivision->zx81->spectrum->cbm64->cpc6128->520stfm->pc->raspi ?

bredman
Posts: 1415
Joined: Tue Jan 17, 2012 2:38 pm

Re: Pi USB as a device port

Tue Mar 20, 2012 12:53 pm

If the WiFi dongle supports AP mode and has Linux drivers available, the drivers will include all of the AP functionality. The routing and network services are your own responsibility, but these are all available for Linux.

Return to “General discussion”