LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-26-2012, 09:14 AM   #1
hari23
LQ Newbie
 
Registered: Oct 2012
Posts: 5

Rep: Reputation: Disabled
Question Transmission through USB between two linux PCs


Hi, Im trying to transfer some data between two linux machines by using USB cables. But i dont know exactly which cable should i use. Please help me find out which USB cable is much supported in linux machines.


Thanks in advance.
 
Old 10-26-2012, 09:20 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
This won|t work with a usual USB cable, since both machines ports are in host configuration. It is much simpler to do what you want to achieve using network cables.
 
1 members found this post helpful.
Old 10-26-2012, 09:29 AM   #3
hari23
LQ Newbie
 
Registered: Oct 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks for ur reply. But i hav no other option i should do it in USB only.. Tats wt my task in the project.. Is there any c++ codes for successful USB transfer. i.e to send and receive like UDP.
 
Old 10-26-2012, 10:06 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Please spell out your words, text-speak is frowned upon this forum.

To your issue, this is not a software issue, it is a hardware issue. There are some cables that can help you with that, but you won't be able to do that with a simple cable and some code. Maybe this can help: http://www.hardwaresecrets.com/artic...-USB-Cable/248
 
1 members found this post helpful.
Old 10-26-2012, 10:15 AM   #5
archShade
Member
 
Registered: Mar 2006
Location: Delft NL
Distribution: Debian; Slackware; windows 7
Posts: 218

Rep: Reputation: 53
There are 2 types of USB enabled devices. That is there are USB hosts and USB clients. Desktop Computer (and laptops) are USB Hosts. There are alos hubs, these appear as the host to all devices connected as a client, and as (a) client(s) to the host.

Each USB network can must have exactly one host. The host maages the the network and supplies power. All other devices must be clients. Warning: You can damage host devices by having 2 hosts on a USB network

I can see 2 ways you could go about this:
  1. You can buy a USB bridge this is a device that looks like a USB A/A cable with a electronics box in the middle. the electronics box acts as 2 USB clients with a interface between them.
    Here is an ebay link to one http://www.ebay.com/itm/USB2-0-PC-to...item3a779d5ed1 . I have no experiance with this type of product I just know they exist.
  2. Buy 2 USB to ethernet adapters then use a crossover cable to link the 2 computers. Then use TCP/UDP to talk between them.

There is USB OTG but this requires specialised hardware and is usually used in tablets/phones to allow one port to act as both client and host depending on the networkwork. this is set by a resitor in the cable.
 
1 members found this post helpful.
Old 10-26-2012, 11:04 PM   #6
hari23
LQ Newbie
 
Registered: Oct 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks for your reply, am using flash link to connect. Can i use it???. And if i can get a sample code for usb transmission, it would mean a lot to me.
 
Old 10-26-2012, 11:37 PM   #7
hari23
LQ Newbie
 
Registered: Oct 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
I'm trying to transfer data between linux and windows machines using USB(Using Amkette flash link)cable. Previously i used network protocol (UDP) to transfer data between linux and windows. But now i need to use USB cable to transfer data, is this possible? If possible which cable we need to Use? Is there any libraries for USB data transfer or samples?
 
  


Reply



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
No transmission circlesdisplayed for wirless transmission in ns2 susanthomas Linux - Newbie 2 05-23-2012 01:14 AM
LXer: Download Transmission 2.50 Beta 1 for Linux LXer Syndicated Linux News 0 02-16-2012 10:20 AM
LXer: Transmission-line Characterization on Linux LXer Syndicated Linux News 0 02-02-2008 11:00 AM
Intercepting packet transmission in linux 2.6 kernel by inserting a module. supriyanaik Linux - Networking 2 01-15-2007 05:51 AM
Linux on very old PCs Misel Linux - General 34 02-12-2006 05:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:34 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