LinuxQuestions.org
Visit Jeremy's Blog.
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 12-09-2014, 04:23 AM   #1
ashwindeshpande
LQ Newbie
 
Registered: Dec 2014
Posts: 3

Rep: Reputation: Disabled
Linux USB Device Drivers and Linux USB Device Side user space application


Background of Problem:
We need to make a USB communication to transfer some data, on the Host side we have a Linux or Windows PC, on device side we have a target board running LINUX on it.

Problem:
1) I need to know whether there are user space APIs available to send data to host?
2) If you have any sample code, transferring only characters, can you please send it across?
3) If you have any idea as to how can we implement the solution to question 1 ?


Thanks
Ashwin Deshpande
 
Old 12-09-2014, 12:37 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,232

Rep: Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296
Can you plug USB-serial in at each end and run kermit?
 
Old 12-09-2014, 09:52 PM   #3
ashwindeshpande
LQ Newbie
 
Registered: Dec 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
No.. we cant plug any external hardware in it...

We dont have such facility to plug any external hardware into our system....

What we need is analogous library as we have 'libusb' on host side.... if not such library does Linux have its own APIs?
 
Old 12-12-2014, 08:05 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,916
Blog Entries: 13

Rep: Reputation: 4948Reputation: 4948Reputation: 4948Reputation: 4948Reputation: 4948Reputation: 4948Reputation: 4948Reputation: 4948Reputation: 4948Reputation: 4948Reputation: 4948
Beaglebone black Angstrom configures network over USB and as a result from either a Windows or Linux host you can attach to the BBB having plugged into it solely via USB cabling and then you're talking to it via the network where you can ssh, scp, or use the webserver.

You'd have to search the Angstrom distro to see how they accomplish this. But my thinking is that your Linux target would need to supply the logical capabilities and then the other PC merely uses the communications mechanism; be that serial or network.

There's also nothing wrong with smallpond's suggestion.

Be aware that your original question basically asks, "Gimme code!" ... Well, people aren't here to just hand you code per your requests. It gives me the impression that you have a board where you're "supposed" to accomplish this because it's an assignment, so you're asking the web to solve that for you.

Further, this next comment is confusing and makes me wonder what's the point here?

Quote:
Originally Posted by ashwindeshpande View Post
We dont have such facility to plug any external hardware into our system....
I see that and I say, "Well ... don't bother since you can't plug in anything anyways!"
 
  


Reply


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
How to design user-space device drivers in Linux carmendriscu Linux - Software 0 11-04-2014 03:46 PM
about usb device in user space abhikohokade Programming 1 01-10-2012 11:15 AM
Interfacing a USB device driver into user space? ddraper Linux - Kernel 2 02-19-2008 05:33 PM

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

All times are GMT -5. The time now is 07:31 PM.

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