So how do I set up linux to work with my USB Cable mode?


Page 1 of 2 12 LastLast
Results 1 to 15 of 29

Thread: So how do I set up linux to work with my USB Cable mode?

  1. #1
    Join Date
    Jul 2007
    Posts
    1

    So how do I set up linux to work with my USB Cable mode?

    Hi I am a coplete newbie I am tying to using knoppix live CD to access the Internet. I do not have a Ethernet card so I am using USB cable direct to Cable Modem , It works with window XP So how do I set up linux to work with my USB Cable mode?
    my stats are here

    WebStar scientific-atlanta Inc

    Cable modem

    DPC2100

    Bright House

    USB

  2. #2
    Join Date
    Apr 2003
    Location
    UK
    Posts
    1,181
    I didn't find any info that suggests the cable modem is supported by its USB connection under Linux. The technical data indicates that cable modem has an ethernet port as well, so I suggest you get a cheap PCI/USB ethernet card and connect to the cable modem through that.

    For checking Linux compatibility of hardware, I look for the model number and do a Google 4 Linux search.

  3. #3
    Join Date
    Nov 2003
    Location
    Phoenix, AZ, USA
    Posts
    287
    check out the list that retsaw gave you. not all modems are equal and some are a lot more linux friendly than others.

    if you don't find your modem there, there is a way to make usb modems work, if you use the usbserial module to make them run.

    you can try a quick and dirty test to see if it'll work by doing this:

    open one terminal, give yourself root priveleges and type in:
    Code:
    tail -f /var/log/messages
    keep this terminal open because it'll show you what happens when you plug in your modem. keep an eye on this terminal because it'll show you in real time what's happening.

    then open up another terminal, give yourself root priveleges again and type in
    Code:
    lsusb
    This will show you what the usb devices are attached to your computer. make sure nothing usb is connected, then run the command. then plug in your modem and run the command again. the difference will be your modem's connection. (remember to give it a few seconds before you run the commmand the second time)

    it'll probably look something like this:
    Code:
    Bus 001 Device 003: ID 1410:2110
    . Also take note that the other terminal were you typed in tail -f /var/log/messages will mention that you pluged something into your computer.

    then, run the usbserial module like this:
    Code:
     modprobe usbserial vendor=0x1410 product=0x2110
    . keep in mind that what you enter for "vendor=" and "product=" is going to be different than mine because i'm using a different usb modem. enter what you saw earlier with what i have in my example.

    here, you want to look at that terminal where you typed in tail -f /var/log/messages and see if you can find something that looks like
    Code:
    blah blah blah blah generic converter now attached to ttyUSB0 blah blah blah blah
    . if it says that, then your modem can work with your linux computer.

    if you get this far, we'll talk more about setting it up for internet connection.

    btw: if you don't know how to give yourself root priveleges; you can do it by opening the terminal and typing in
    Code:
    su
    Last edited by Davy; 07-19-2007 at 12:49 AM.
    BEHOLD!!! MY AWESOME HUMILITY!
    Ex Linux, Scientia

    i use:
    centos 5.2 on 3.0 GHz Pentium 4 (filer/print server)
    ubuntu 8.10 on 1.6 GHz Celeron M (personal laptop)

  4. #4
    Join Date
    Mar 2007
    Location
    India
    Posts
    25
    Hi Davy,

    I ran the command tail -f /var/log/messages, plugging my USB adsl router (cable modem) in my ubuntu server edition 7.04 and here's the output :

    Kernel: [754.040000] usb 1-1 : new full speed usb device using uhci_hcd and address 4.

    kernel : [754.220000] usb1-1 : no configuration chosen from 1 choice.

    Above two lines get displayed ...so what should i do....
    what are the conclusions we could draw from this ....
    As fas as i can understand its not recognizing my USB router...though its able to identify that something was connected to USB.

    Pleaze guide ....
    thnx
    srajv
    Beyond fear lies success.

  5. #5
    Join Date
    Mar 2007
    Location
    India
    Posts
    25
    Davy, also

    the o/p of lsusb :
    Bus 001 Device 002 : ID 2001:5b00 Dlink corp

    so i went ahead and did :
    modprobe usbserial vendor = 0x2001 product = 0x5b00

    and i checked the o.p of tail -f /var/log/messages

    found following :

    kernel : [473:5300000] drivers/usb/serial/usb_serial1.c : USB serial support registered for generic.

    kernel : [473:5300000] usbcore : registered new interface driver usbserial_generic

    kernel : [473:5300000] drivers/usb/serial/usb-serial1.c : usb serial driver core.

    so where do we go from here ?
    any conclusions ?
    After all i did , I didnt see my adsl router blinking the USB light emitter.

    Pllllleeeease Help.
    srajv
    Beyond fear lies success.

  6. #6
    Join Date
    Nov 2003
    Location
    Phoenix, AZ, USA
    Posts
    287
    uh.... i thought you were using knoppix, not ubuntu. i'm confused.

    there is a difference. ubuntu edgy eft has some some support for usb internet devices while knoppix doesn't. you can the support to work for knoppix but you must recompile a module.

    it would also be a lot more helpful if you posted the entirety of /var/log/messages that was created while you were trying to connect your modem.

    one last thought: i googled your modem and i see that i has a ethernet jack. use it. modem support via usb is possible, but difficult and doesn't work as well if it's not done properly; while ethernet support is common and easy.
    BEHOLD!!! MY AWESOME HUMILITY!
    Ex Linux, Scientia

    i use:
    centos 5.2 on 3.0 GHz Pentium 4 (filer/print server)
    ubuntu 8.10 on 1.6 GHz Celeron M (personal laptop)

  7. #7
    Join Date
    Nov 2003
    Location
    Phoenix, AZ, USA
    Posts
    287
    hahaha.... oops, i see now. bmnb123 made the thread, but now srajv needs the help.

    okay. let's start over again. I know you're using ubuntu: ubuntu fiesty has some usb modem support already available. what modem are you using?

    the instructions above may apply still. if you car to: try it again, but this time copy and paste the entire output.
    BEHOLD!!! MY AWESOME HUMILITY!
    Ex Linux, Scientia

    i use:
    centos 5.2 on 3.0 GHz Pentium 4 (filer/print server)
    ubuntu 8.10 on 1.6 GHz Celeron M (personal laptop)

  8. #8
    Join Date
    Mar 2007
    Location
    India
    Posts
    25
    The modem iam trying to utilize is DSL 502T Dlink corp

    Pllllleeeease Help.
    srajv
    Beyond fear lies success

  9. #9
    Join Date
    Nov 2003
    Location
    Phoenix, AZ, USA
    Posts
    287
    for you, i recommend the same thing. your router has an ethernet jack will work on almost any linux distribution. even if we were able to get your router working with a usb connection, it can only be 1/10th the speed at best.

    but i see that you're living in india and i can understand that some places in india are a lot more developed than other, so getting an ethernet cable might be a little difficult for you, so we'll go ahead a try.

    ubuntu 7.04 already has some support for usb devices. let's see if this device is automatically supported: i want you to disconnect your modem, restart your computer, and type in
    Code:
    cat /var/log/messages | grep -i usb
    . then i want you to copy and paste the entire contents was what you see on this thread.
    BEHOLD!!! MY AWESOME HUMILITY!
    Ex Linux, Scientia

    i use:
    centos 5.2 on 3.0 GHz Pentium 4 (filer/print server)
    ubuntu 8.10 on 1.6 GHz Celeron M (personal laptop)

  10. #10
    Join Date
    Sep 2002
    Location
    Canada
    Posts
    565
    I found this on TLDP.org

    http://tldp.org/HOWTO/html_single/Ca...dem/#USBCONFIG
    I'm pretty sure, but not 100%, that USB is limited to 11MBps, this should be fine since most ISPs limit you ro 10MBPs and cap your bandiwth much lower, cable is usually share and 5MB/s anyway. Some have boosted it to 10MB/s. In my area anyway.
    Last edited by acid45; 07-26-2007 at 12:31 AM.
    "Getting information from the internet is like taking a drink from a fire hydrant." - Mitchell Kapor

  11. #11
    Join Date
    Jul 2002
    Location
    43.46N 83.52W
    Posts
    982

    Cool

    srajv:
    The modem iam trying to utilize is DSL 502T Dlink corp
    Thought that model looked familiar.

    Davy (et. al.), srajv's got an all-in-one DSL modem/router. It may very well be set up to use USB-Serial internally (doesn't say anything in the manual). Srajv may have to set this up using that, or maybe some sort of USB-SLIP/PPP kludge. You can't use the PPPoE modules, as the device has the router section doing that for you already (see other thread link above). So, essentially, you'd wind up trying to setup something like a USB-ETHx device/protocol.

    Srajv, if you can, get this thing on ethernet (RJ-45) cable. Seriously. If your computer already has an eth0 adaptor in it, then it's only 200 rupees for the cable, a couple of seconds to setup for DHCP, a few minutes to tweak any router settings, and you're up and running. If USB is your only option, then we're back to trying to walk you through getting SLIP/PPP working with usb-serial modules, or having you spend 800 rupees more for an old 10/100 ethernet card (as acid45 points out, even the 10mbps NIC is still plenty fast for cable/DSL).

    And what happened to bmnb123?

    banzai "been there, done that" kai
    "Mind you, I got to do the licking this time, so it wasn't too bad."
    - Jane Horrocks, The Guardian, 1995

  12. #12
    Join Date
    Mar 2007
    Location
    India
    Posts
    25
    Hi Davy,banzaikai,acid45

    I dont have NIC card so ethernet is not the option iam looking for currently....
    and iam hell bent on making my USB connected DSL 502T modem/router to
    work in my Ubuntu, i purposefully want to dig this ....

    Pleeeeeeease guide
    srajv
    Beyond fear lies success

  13. #13
    Join Date
    Nov 2003
    Location
    Phoenix, AZ, USA
    Posts
    287
    i'm willing to help you in pursuing getting a usb connection; but i have to warn you again: using the usbserial module will only let you surf as fast as an ordinary dial up modem. and ethernet connection will let you surf a LOT faster.

    if you want to continue: what was the output of /var/log/messages?
    BEHOLD!!! MY AWESOME HUMILITY!
    Ex Linux, Scientia

    i use:
    centos 5.2 on 3.0 GHz Pentium 4 (filer/print server)
    ubuntu 8.10 on 1.6 GHz Celeron M (personal laptop)

  14. #14
    Join Date
    Mar 2007
    Location
    India
    Posts
    25
    Hi Davy,banzaikai and acid45

    Here's output of /var/log/messages when i disconnected the USB connected modem/router:

    Code:
    Jul 29 20:40:18 ubuntu kernel: [   14.890000] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 5
    Jul 29 20:40:18 ubuntu kernel: [   14.890000] ACPI: PCI Interrupt 0000:00:11.5[C] -> Link [LNKC] -> GSI 5 (level, low) -> IRQ 5
    Jul 29 20:40:18 ubuntu kernel: [   15.740000] lp0: using parport0 (interrupt-driven).
    Jul 29 20:40:18 ubuntu kernel: [   15.940000] Adding 650560k swap on /dev/disk/by-uuid/25dfefad-8c45-44e5-b768-ea62096b68d2.  Priority:-1 extents:1 across:650560k
    Jul 29 20:40:18 ubuntu kernel: [   16.110000] EXT3 FS on hdc3, internal journal
    Jul 29 20:40:18 ubuntu kernel: [   63.130000] NTFS driver 2.1.28 [Flags: R/O MODULE].
    Jul 29 20:40:18 ubuntu kernel: [   63.200000] ufs was compiled with read-only support, can't be mounted as read-write
    Jul 29 20:45:42 ubuntu kernel: [  390.160000] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
    Jul 29 20:45:42 ubuntu kernel: [  390.160000] hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
    Jul 29 20:45:42 ubuntu kernel: [  390.160000] ide: failed opcode was: unknown
    Jul 29 20:46:09 ubuntu kernel: [  417.010000] usb 1-1: USB disconnect, address 2
    Heres' the output of /var/log/messages, when i reconnected the USB modem/router :

    Code:
    Jul 29 20:46:32 ubuntu kernel: [  440.160000] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
    Jul 29 20:46:32 ubuntu kernel: [  440.160000] hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
    Jul 29 20:46:32 ubuntu kernel: [  440.160000] ide: failed opcode was: unknown
    Jul 29 20:46:32 ubuntu kernel: [  440.200000] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
    Jul 29 20:46:32 ubuntu kernel: [  440.200000] hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
    Jul 29 20:46:32 ubuntu kernel: [  440.200000] ide: failed opcode was: unknown
    Jul 29 20:46:32 ubuntu kernel: [  440.200000] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
    Jul 29 20:46:32 ubuntu kernel: [  440.200000] hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
    Jul 29 20:46:32 ubuntu kernel: [  440.200000] ide: failed opcode was: unknown
    Jul 29 20:46:32 ubuntu kernel: [  440.270000] ide0: reset: success
    Jul 29 20:47:18 ubuntu kernel: [  485.600000] usb 1-1: new full speed USB device using uhci_hcd and address 3
    Jul 29 20:47:18 ubuntu kernel: [  485.780000] usb 1-1: no configuration chosen from 1 choice
    Pleeeasee Help Understand this...
    srajv
    Beyond Fear lies success

  15. #15
    Join Date
    Jul 2002
    Location
    43.46N 83.52W
    Posts
    982

    Cool

    Well, this
    ubuntu kernel: [ 485.600000] usb 1-1: new full speed USB device using uhci_hcd and address 3
    ubuntu kernel: [ 485.780000] usb 1-1: no configuration chosen from 1 choice
    means that it saw the modem/router, but had no module to load for it. This is where the usb-serial or usb-eth would be used. Once associated, it'll show up for that device.

    Your bigger problem looks like
    ubuntu kernel: [ 440.200000] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
    ubuntu kernel: [ 440.200000] hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
    ubuntu kernel: [ 440.200000] ide: failed opcode was: unknown
    You may want to see if there's a diagnostic disk you can use to check that guy out. Usually, WD and Seagate provide a CD with the retail-boxed drives, but you can also download utilities from their respective websites.

    banzai "trouble" kai
    "Mind you, I got to do the licking this time, so it wasn't too bad."
    - Jane Horrocks, The Guardian, 1995

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •