Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-02-2006, 08:30 PM
|
#1
|
|
Member
Registered: Aug 2004
Location: Bangalore
Posts: 64
Rep:
|
Connecting two computers with a USB cable (data cable)
Hello,
I have two RedHat 9.0 installed machines, and I want to transfer some files from one computer to another computer thru a USB cable by using a shell script or a C program. I have a data cable (it has USB connectors at both the ends), so I can connect these two machines. I will not have a network cable connected between these machines.
Is this possible? Or my imagination is too much? Did anyone tried anything like this before? If it is possible please give me some suggestions.
Thanks
Seran
|
|
|
|
02-02-2006, 08:56 PM
|
#2
|
|
Moderator
Registered: Aug 2002
Posts: 10,756
|
By data cable do you mean a regular USB cable or a special host-to-host cable. You might damage the PCs if you connect them together with regular USB cables.
http://www.linux-usb.org/usbnet/
|
|
|
|
02-02-2006, 09:17 PM
|
#3
|
|
Member
Registered: Aug 2004
Location: Bangalore
Posts: 64
Original Poster
Rep:
|
I have a host-to-host cable. Thanks for the link.
|
|
|
|
03-03-2006, 06:23 AM
|
#4
|
|
LQ Newbie
Registered: Dec 2005
Posts: 5
Rep:
|
Hi
Im doing spmething similar, or trying to.
My Host to Host cable doesnt come with a lot of info tho. The packaging says Y125D and USB-DLINQ.
From lsmod I have
speedtch 12360 0
usbatm 16128 2 speedtch
atm 41236 4 pppoatm,usbatm
uhci_hcd 32016 0
usbcore 126148 6 plusb,usbnet,speedtch,usbatm,uhci_hcd
and cat /proc/bus/usb/devices gives (edited)
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.15.5 uhci_hcd
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 23/900 us ( 3%), #Int= 1, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.15.5 uhci_hcd
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=ff(vend.) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=06b9 ProdID=4061 Rev= 4.00
S: Manufacturer=THOMSON
S: Product=Speed Touch 330
T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 4 Spd=12 MxCh= 0
D: Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=05e3 ProdID=0501 Rev= 3.83
S: Product=USB Host To Host Bridge
Trouble is, now Im Googled out of info and answers. That or Im looking in the wrong places. My Mandriva 2006 setup wont recognise this network connection. It looks as though the system can 'see' the cable, and loads appropriate (I think and hope) driver modules. What else do I need to do for this to work please?
Any more info reqd, just ask. Thanks in advance
|
|
|
|
03-06-2006, 12:16 PM
|
#5
|
|
LQ Newbie
Registered: Dec 2005
Posts: 5
Rep:
|
After a bit more Googling, I have identified my cable as a GeneLink. In the 2.6 kernels, you have to enable gl620a and usbnet. I think, from what I've read so far, its as well to enable bridge as a kernel module, because i think in order to set up the cable, you will need to use brctl (bridge-utils).
dmesg now gives me
usbcore: registered new driver usbfs
usbcore: registered new driver hub
USB Universal Host Controller Interface driver v2.3
PCI: setting IRQ 11 as level-triggered
PCI: Assigned IRQ 11 for device 0000:00:07.2
PCI: Sharing IRQ 11 with 0000:00:07.3
uhci_hcd 0000:00:07.2: UHCI Host Controller
uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:07.2: irq 11, io base 0x0000d400
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
PCI: Found IRQ 11 for device 0000:00:07.3
PCI: Sharing IRQ 11 with 0000:00:07.2
uhci_hcd 0000:00:07.3: UHCI Host Controller
uhci_hcd 0000:00:07.3: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:07.3: irq 11, io base 0x0000d800
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
usb 1-1: new full speed USB device using uhci_hcd and address 2
usb 1-2: new full speed USB device using uhci_hcd and address 3
NET: Registered protocol family 8
NET: Registered protocol family 20
usb 1-1: reset full speed USB device using uhci_hcd and address 2
usbcore: registered new driver speedtch
speedtch 1-1:1.0: found stage 1 firmware speedtch-1.bin
usbcore: registered new driver cdc_acm
drivers/usb/class/cdc-acm.c: v0.23:USB Abstract Control Model driver for USB modems and ISDN adapters
speedtch 1-1:1.0: found stage 2 firmware speedtch-2.bin
usbcore: registered new driver gl620a
NET: Registered protocol family 17
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.2
ATM dev 0: ADSL line is up (2272 kb/s down | 288 kb/s up)
and lsmod
pppoatm 4480 1
ppp_generic 21268 5 pppoatm
slhc 6528 1 ppp_generic
af_packet 13512 0
floppy 58244 0
ide_cd 38532 0
loop 14152 0
nls_iso8859_15 4288 1
ntfs 103984 1
gl620a 3328 0
bridge 37132 0
cdc_acm 11168 0
usbnet 13448 1 gl620a
speedtch 10376 0
usbatm 12992 2 speedtch
atm 37012 4 pppoatm,usbatm
uhci_hcd 31056 0
usbcore 120516 7 gl620a,cdc_acm,usbnet,speedtch,usbatm,uhci_hcd
Now all I need to do, is to find out how to write or adapt or copy a script to get the interface up.
Will post again, as an when.
|
|
|
|
08-01-2006, 04:51 PM
|
#6
|
|
Member
Registered: May 2004
Distribution: Slackware / Debian
Posts: 89
Rep:
|
Damn got the same problem.
How do you send data?
And how do you get usbnet to register it automagically?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:29 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|