LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to transfer files across two linux systems with a bare usb cord? (https://www.linuxquestions.org/questions/linux-general-1/how-to-transfer-files-across-two-linux-systems-with-a-bare-usb-cord-924613/)

pdiffley 01-19-2012 09:00 AM

How to transfer files across two linux systems with a bare usb cord?
 
I am working on a programming project where I am supposed to transfer some data(text or a file probably) across two computers via a plain A-A USB cable. How difficult is it to transfer data via usb? Are there any commands in linux that might would abstract the usb hardware (such as "Readbyte()" or "Sendbyte") or will I need to go more in depth and make a driver?

jhwilliams 01-19-2012 10:04 AM

I would guess you'd be able to accomplish this using the libusb userspace library.

http://www.libusb.org/

onebuck 01-19-2012 10:20 AM

Moderator response
 
Moved: This thread is more suitable in <Linux-General> and has been moved accordingly to help your thread/question get the exposure it deserves.

michaelk 01-19-2012 12:03 PM

Welcome to LinuxQuestions.

FYI Since you didn't specify hardware one of the computers must be capable of being a USB device or OTG. If not then you can not use a plain USB cable and there is the possibility of damaging hardware if you did.

jefro 01-19-2012 04:09 PM

Some usb devices can be switched. I think one of the small linux sort of pda/tablets did that so it could be done.

michaelk 01-19-2012 04:30 PM

True, and just like the other thread I do not want to get into a debate over terms. Just wanted to caution the OP. Hopefully will get a better idea on the type of hardware being used in the project.

pdiffley 01-19-2012 08:09 PM

Quote:

Originally Posted by michaelk (Post 4579042)
FYI Since you didn't specify hardware one of the computers must be capable of being a USB device or OTG. If not then you can not use a plain USB cable and there is the possibility of damaging hardware if you did.

The computers would just be two Dell PCs with linux installed. Would I need to use a bridged usb cable? The main point of the project is programming the file interfacing, so a cord that came with software for file management already installed would not be preferable. Would using one PC and having it communicate and write files to a jump drive or vice versa when the drive is plugged in work better?

michaelk 01-19-2012 10:08 PM

Yes, a bridged cable is required in this situation. Not sure I understand your question about the flash drive.

pdiffley 01-20-2012 08:29 AM

OK I'll use a bridged connector. Thanks for the help!


All times are GMT -5. The time now is 08:01 PM.