LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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

Reply
 
Search this Thread
Old 02-02-2006, 08:30 PM   #1
seran
Member
 
Registered: Aug 2004
Location: Bangalore
Posts: 64

Rep: Reputation: 16
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
 
Old 02-02-2006, 08:56 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,985

Rep: Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753
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/
 
Old 02-02-2006, 09:17 PM   #3
seran
Member
 
Registered: Aug 2004
Location: Bangalore
Posts: 64

Original Poster
Rep: Reputation: 16
I have a host-to-host cable. Thanks for the link.
 
Old 03-03-2006, 06:23 AM   #4
bluejon67
LQ Newbie
 
Registered: Dec 2005
Posts: 5

Rep: Reputation: 0
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
 
Old 03-06-2006, 12:16 PM   #5
bluejon67
LQ Newbie
 
Registered: Dec 2005
Posts: 5

Rep: Reputation: 0
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.
 
Old 08-01-2006, 04:51 PM   #6
shevegen
Member
 
Registered: May 2004
Distribution: Slackware / Debian
Posts: 90

Rep: Reputation: 15
Damn got the same problem.

How do you send data?
And how do you get usbnet to register it automagically?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mobile - USB Data Cable alexrose Slackware 3 01-28-2006 07:03 PM
Connecting a Minuteman UPS SentryII software via USB Cable Jerre Cope Linux - Hardware 0 08-17-2005 01:26 AM
Sony Ericsson T630 & USB data cable norkers Linux - Hardware 0 01-13-2005 07:21 AM
Can I network two computers with a USB A-A cable? pembo13 Linux - Networking 3 01-08-2005 04:03 PM
Connecting Cable Modem via Usb kapoo Slackware 2 10-11-2004 06:32 AM


All times are GMT -5. The time now is 10:36 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration