Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 04-02-2014, 08:47 AM   #1
LQ Newbie
Registered: May 2013
Posts: 7

Rep: Reputation: Disabled
Question How to transfer data from usb peropheral device to host

I am developing a usb device with an i.mx6 chip and want to transfer large amount of data to a host via USB.
In that context I came across gadgetfs, functionfs and usblibg.
Whats the easiest way to transfer data from my application to the host (high througput!)
Old 04-04-2014, 05:40 PM   #2
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
The truly easiest/best is if the USB interface on your ARM board is a USB-OTG (USB On The Go), which means it is a 'device' (in contrast to a 'host'). Commonly, USB OTG ports are built with mini-USB connectors (although that's not the final indicator). If not, you will have to use USB Gadget support, which means that the USB port can only function in the role of a device.
I can't really give much more info than that, but a little Google research for USB-OTG should help you along your way.
Old 04-07-2014, 08:19 AM   #3
LQ Newbie
Registered: May 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
That sounds interesting.
So far I was under the assumption that the OTG port (which my board does indeed have!) was a port which, once connected to a host (a PC for example) would make the board appear as a device.
But if I would connect a device to that very port (a flash drive for example) the board would itself act as a host to that flash drive.
I thought that's how smartphones would appear as a device to the PC they are connected and as host to a Memory card reader for example.
My goal is to have the board indeed appear as a device.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
transfer file to usb device saharnic Linux - Software 2 08-29-2012 06:00 AM
file transfer from a usb device ashishkd Ubuntu 2 01-28-2012 11:57 PM
how to check Speed(data transfer) of usb 2.0 saheelahamed Linux - Software 4 07-03-2009 04:42 PM
Required to achieve host to host communication via USB file transfer cable may1284 Linux - General 1 03-14-2007 04:02 PM
data transfer bet RH8.0 pc to & fro device thru /dev/ttyS0 shivanitha Linux - Newbie 0 10-30-2003 07:25 AM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 09:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration