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?
|
I would guess you'd be able to accomplish this using the libusb userspace library.
http://www.libusb.org/ |
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.
|
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. |
Some usb devices can be switched. I think one of the small linux sort of pda/tablets did that so it could be done.
|
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.
|
Quote:
|
Yes, a bridged cable is required in this situation. Not sure I understand your question about the flash drive.
|
OK I'll use a bridged connector. Thanks for the help!
|
All times are GMT -5. The time now is 08:01 PM. |