LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Transmission through USB between two linux PCs (https://www.linuxquestions.org/questions/linux-newbie-8/transmission-through-usb-between-two-linux-pcs-4175434203/)

hari23 10-26-2012 09:14 AM

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.

TobiSGD 10-26-2012 09:20 AM

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.

hari23 10-26-2012 09:29 AM

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.

TobiSGD 10-26-2012 10:06 AM

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

archShade 10-26-2012 10:15 AM

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.

hari23 10-26-2012 11:04 PM

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.

hari23 10-26-2012 11:37 PM

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?


All times are GMT -5. The time now is 02:14 AM.