LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
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.

Notices


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

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


Hello!
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!)
Thanks!
 
Old 04-04-2014, 05:40 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
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
tzippy
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.
 
  


Reply

Tags
usb



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 04:11 AM.

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